From 9e6bde4efa5d6a32838ad188e467fcdbb7d555cd Mon Sep 17 00:00:00 2001 From: chenjianan Date: Sat, 17 Nov 2018 10:59:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=90=88=E5=90=8C=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=EF=BC=9A=E9=87=87=E8=B4=AD=E5=91=98clearable=EF=BC=9B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=98=E6=9B=B4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchasingCenter/ContractChange/index.vue | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/src/views/PurchasingCenter/ContractChange/index.vue b/src/views/PurchasingCenter/ContractChange/index.vue index c83b801e..5a587a48 100644 --- a/src/views/PurchasingCenter/ContractChange/index.vue +++ b/src/views/PurchasingCenter/ContractChange/index.vue @@ -26,7 +26,7 @@ 采购员: - + 采购员: - + { - this.contractValue = '' - this.changeReason = '' - if (response.data[0].result === '1') { - this.$message.success('变更成功') - this.searchTable1() - this.contractNumValue = '' - this.contractNumValue3 = '' - this.fetchData() - } else { this.$message.error('变更失败') } + this.$confirm('确定更改该合同?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + contractChange(this.contractValue, this.changeReason).then(response => { + this.contractValue = '' + this.changeReason = '' + if (response.data[0].result === '1') { + this.$message.success('变更成功') + this.searchTable1() + this.contractNumValue = '' + this.contractNumValue3 = '' + this.fetchData() + } else { this.$message.error('变更失败') } + }) + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消操作' + }) }) } else { this.$message.error('请先选择合同')