Commit 5feec2a8b90c8aa40562893d1276dc1cb5dfa66f

Authored by gesilong
1 parent 435a2809

commit:修复bug

@@ -18,6 +18,15 @@ export function domesticCustomerCreditSaveApi(data) { @@ -18,6 +18,15 @@ export function domesticCustomerCreditSaveApi(data) {
18 }) 18 })
19 } 19 }
20 20
  21 +export function domesticCustomerCreditUpdateApi(data) {
  22 + return request({
  23 + url: '/procurement/domesticCustomerCredit',
  24 + method: 'put',
  25 + data,
  26 + contentType: ContentTypeEnum.JSON
  27 + })
  28 +}
  29 +
21 export function domesticCustomerCreditGetApi(id) { 30 export function domesticCustomerCreditGetApi(id) {
22 return request({ 31 return request({
23 url: '/procurement/domesticCustomerCredit/get', 32 url: '/procurement/domesticCustomerCredit/get',
@@ -762,8 +762,6 @@ export default { @@ -762,8 +762,6 @@ export default {
762 { key: 'operationMode', label: '操作方式' }, 762 { key: 'operationMode', label: '操作方式' },
763 { key: 'accountingProcess', label: '进销账务如何处理' }, 763 { key: 'accountingProcess', label: '进销账务如何处理' },
764 { key: 'transportMode', label: '运输方式' }, 764 { key: 'transportMode', label: '运输方式' },
765 - { key: 'commonMaterialIssue', label: '常见料质问题' },  
766 - { key: 'otherIssue', label: '合作中的其它问题' },  
767 { key: 'purchaseDepartment', label: '采购处' }, 765 { key: 'purchaseDepartment', label: '采购处' },
768 { key: 'reviewValidUntil', label: '评审有效期' }, 766 { key: 'reviewValidUntil', label: '评审有效期' },
769 { key: 'investigatorId', label: '资信调查人ID' } 767 { key: 'investigatorId', label: '资信调查人ID' }
@@ -351,7 +351,7 @@ import FileUpload from '@/components/file-upload/index.vue' @@ -351,7 +351,7 @@ import FileUpload from '@/components/file-upload/index.vue'
351 import SingleSelectSheet from '@/components/single-select/index.vue' 351 import SingleSelectSheet from '@/components/single-select/index.vue'
352 import MultiSelectSheet from '@/components/multi-select/index.vue' 352 import MultiSelectSheet from '@/components/multi-select/index.vue'
353 import { getDicByCodes, getDicName } from '@/utils/dic.js' 353 import { getDicByCodes, getDicName } from '@/utils/dic.js'
354 -import { domesticCustomerCreditGetApi, domesticCustomerCreditSaveApi, getPurchaseDeptApi, getAllRegionApi, getRegionApi } from '@/api/procure-manage/domesticCustomerCredit.js' 354 +import { domesticCustomerCreditGetApi, domesticCustomerCreditUpdateApi, getPurchaseDeptApi, getAllRegionApi, getRegionApi } from '@/api/procure-manage/domesticCustomerCredit.js'
355 355
356 export default { 356 export default {
357 name: 'DomesticTradeModify', 357 name: 'DomesticTradeModify',
@@ -751,8 +751,6 @@ export default { @@ -751,8 +751,6 @@ export default {
751 { key: 'operationMode', label: '操作方式' }, 751 { key: 'operationMode', label: '操作方式' },
752 { key: 'accountingProcess', label: '进销账务如何处理' }, 752 { key: 'accountingProcess', label: '进销账务如何处理' },
753 { key: 'transportMode', label: '运输方式' }, 753 { key: 'transportMode', label: '运输方式' },
754 - { key: 'commonMaterialIssue', label: '常见料质问题' },  
755 - { key: 'otherIssue', label: '合作中的其它问题' },  
756 { key: 'purchaseDepartment', label: '采购处' }, 754 { key: 'purchaseDepartment', label: '采购处' },
757 { key: 'reviewValidUntil', label: '评审有效期' }, 755 { key: 'reviewValidUntil', label: '评审有效期' },
758 { key: 'investigatorId', label: '资信调查人ID' } 756 { key: 'investigatorId', label: '资信调查人ID' }
@@ -831,7 +829,7 @@ export default { @@ -831,7 +829,7 @@ export default {
831 this.submitting = true 829 this.submitting = true
832 const payload = this.buildPayload() 830 const payload = this.buildPayload()
833 try { 831 try {
834 - await domesticCustomerCreditSaveApi(payload) 832 + await domesticCustomerCreditUpdateApi(payload)
835 uni.showToast({ title: '保存成功', icon: 'success' }) 833 uni.showToast({ title: '保存成功', icon: 'success' })
836 setTimeout(() => { uni.redirectTo({ url: '/pages/domestic_trade/index' }) }, 300) 834 setTimeout(() => { uni.redirectTo({ url: '/pages/domestic_trade/index' }) }, 300)
837 } catch (e) { 835 } catch (e) {