|
@@ -222,11 +222,15 @@ export default {
|
|
|
updatamergePurchase(values).then(res => {
|
|
|
this.$message.success('修改成功!')
|
|
|
this.handleCancel()
|
|
|
+ }).catch(() => {
|
|
|
+ this.confirmLoading = false
|
|
|
})
|
|
|
} else {
|
|
|
mergePurchase(values).then(res => {
|
|
|
this.$message.success('创建成功!')
|
|
|
this.handleCancel()
|
|
|
+ }).catch(() => {
|
|
|
+ this.confirmLoading = false
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -237,6 +241,7 @@ export default {
|
|
|
},
|
|
|
handleCancel (values) {
|
|
|
this.visible = false
|
|
|
+ this.confirmLoading = false
|
|
|
this.data = []
|
|
|
this.form.resetFields()
|
|
|
this.$emit('ok', values)
|