|
@@ -309,6 +309,13 @@ export default {
|
|
|
this.spinning = true
|
|
|
updateByCustomerSn(params).then(res => {
|
|
|
this.spinning = false
|
|
|
+ if (res.status == 200) {
|
|
|
+ // 保存销售单
|
|
|
+ this.salesSaveFun()
|
|
|
+ this.spinning = false
|
|
|
+ } else {
|
|
|
+ this.spinning = false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 保存
|
|
@@ -319,10 +326,10 @@ export default {
|
|
|
if (valid) {
|
|
|
// 保存客户信息
|
|
|
_this.handleSaveCust()
|
|
|
- // 保存销售单
|
|
|
- if (_this.form.buyerSn) {
|
|
|
- _this.salesSaveFun()
|
|
|
- }
|
|
|
+ // // 保存销售单
|
|
|
+ // if (_this.form.buyerSn) {
|
|
|
+ // _this.salesSaveFun()
|
|
|
+ // }
|
|
|
} else {
|
|
|
console.log('error submit!!')
|
|
|
return false
|