浏览代码

bug修复

chenrui 3 年之前
父节点
当前提交
b994ea0ace
共有 1 个文件被更改,包括 11 次插入4 次删除
  1. 11 4
      src/views/salesManagement/salesReturn/chooseCustomModal.vue

+ 11 - 4
src/views/salesManagement/salesReturn/chooseCustomModal.vue

@@ -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