Browse Source

bug修复

chenrui 4 years ago
parent
commit
09da062795
1 changed files with 12 additions and 10 deletions
  1. 12 10
      src/views/salesManagement/salesQuery/chooseCustomModal.vue

+ 12 - 10
src/views/salesManagement/salesQuery/chooseCustomModal.vue

@@ -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!!')