Commit 5feec2a8b90c8aa40562893d1276dc1cb5dfa66f

Authored by gesilong
1 parent 435a2809

commit:修复bug

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