|
@@ -401,8 +401,10 @@ export default {
|
|
|
}
|
|
|
this.spinning = true
|
|
|
updateByCustomerSn(params).then(res => {
|
|
|
- if (res.status != 200) {
|
|
|
- this.$message.error(res.message)
|
|
|
+ this.spinning = false
|
|
|
+ if (res.status == 200) {
|
|
|
+ // 保存销售单
|
|
|
+ this.salesSaveFun()
|
|
|
this.spinning = false
|
|
|
} else {
|
|
|
this.spinning = false
|
|
@@ -424,19 +426,19 @@ export default {
|
|
|
onOk () {
|
|
|
// 保存客户信息
|
|
|
_this.handleSaveCust()
|
|
|
- // 保存销售单
|
|
|
- if (_this.form.buyerSn) {
|
|
|
- _this.salesSaveFun()
|
|
|
- }
|
|
|
+ // // 保存销售单
|
|
|
+ // if (_this.form.buyerSn) {
|
|
|
+ // _this.salesSaveFun()
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
// 保存客户信息
|
|
|
_this.handleSaveCust()
|
|
|
- // 保存销售单
|
|
|
- if (_this.form.buyerSn) {
|
|
|
- _this.salesSaveFun()
|
|
|
- }
|
|
|
+ // // 保存销售单
|
|
|
+ // if (_this.form.buyerSn) {
|
|
|
+ // _this.salesSaveFun()
|
|
|
+ // }
|
|
|
}
|
|
|
} else {
|
|
|
console.log('error submit!!')
|