From e68055a0bf3a411f25a49db2f7533f52b147111d Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Wed, 3 Nov 2021 17:19:18 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=20=E5=BC=80=E7=A5=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=82=AE=E7=BC=96=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../arriveAndInvoicing/modules/InvoicingModule.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue b/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue index 1c4666a..52cdccd 100644 --- a/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue +++ b/src/views/financialManagement/arriveAndInvoicing/modules/InvoicingModule.vue @@ -50,6 +50,7 @@ import pick from 'lodash.pick' import { money } from '../../../../utils/validate' import { addPayBill, addPaymentPhase, editAmountPhase, editPayBill } from '../../../../api/incomePaymentsApi' import { addZero } from '../../../../utils/util' +import { getContactsById } from '../../../../api/api' export default { name: 'InvoicingModule', @@ -115,7 +116,8 @@ export default { rules: [{ required: true, message: '请选择开票日期' }], validateTrigger: 'change' } - } + }, + postalCode: '', // 邮寄联系人邮编 } }, methods: { @@ -126,11 +128,17 @@ export default { edit(record) { this.form.resetFields() this.model = Object.assign({}, record) + this.getMailContactPostalCode() this.visible = true this.$nextTick(() => { this.form.setFieldsValue(pick(this.model, 'invoiceAmount', 'billNo', 'billDate', 'remark')) }) }, + getMailContactPostalCode() { + getContactsById({id: this.mailContactsId}).then(res => { + this.postalCode = res.result.postalCode + }) + }, handleOk() { if (this.confirmLoading) { return @@ -141,6 +149,7 @@ export default { // values.chargeCompanyName = this.chargeCompanyName values.projectName = this.projectName values.contactId = this.mailContactsId + values.postalCode = this.postalCode const formData = Object.assign(this.model, values) console.log('表单提交数据', formData) let okHttpMethod