From a2361cfd075e81f4726fde551e5623bce7dca469 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Tue, 25 Dec 2018 11:03:27 +0800 Subject: [PATCH] bug --- .../PurchasingCenter/PurchaseContractApproval/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/PurchasingCenter/PurchaseContractApproval/index.vue b/src/views/PurchasingCenter/PurchaseContractApproval/index.vue index 6a913066..70be29f5 100644 --- a/src/views/PurchasingCenter/PurchaseContractApproval/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractApproval/index.vue @@ -197,6 +197,7 @@ export default { }, methods: { fetchData() { + this.person = [] initBuyer().then(response => { for (let i = 0; i < response.data.length; i++) { this.person.push({ @@ -206,6 +207,7 @@ export default { }) } }) + this.contractNum = [] initContract().then(response => { for (let i = 0; i < response.data.length; i++) { this.contractNum.push({ @@ -244,7 +246,12 @@ export default { if (response.data[0].result === '1') { this.$message.success('审批成功') this.dialogVisible3 = false + this.fetchData() // 重新初始化 + this.contractNumValue = '' + this.personValue = '' + this.supplierName = '' this.searchTable1() + this.returns = '' } else { this.$message.error('审批失败') } }) } else {