lilei 1 week ago
parent
commit
b8701e91f8

+ 16 - 10
src/views/salesManagement/salesQueryNew/detail.vue

@@ -819,7 +819,8 @@ export default {
               </ol>
             </div>,
             onOk () {
-              _this.verificationSuccess(isBatch)
+              // 售价是否低于参考成本价
+              _this.validPriceLessCost(d, isBatch)
             },
             onCancel () {
               _this.spinning = false
@@ -835,16 +836,21 @@ export default {
           return
         }
         // 售价是否低于参考成本价
-        if (d.length) {
-          if (isBatch) { // 一键审核,弹框文字提示
-            _this.tempData = { vaildPriceList: d[0].data.map(item => item.productCode) }
-            _this.verificationSuccess(isBatch)
-          } else {
-            // 审核或上级审核,弹框表格提示
-            _this.openVaildPrice(d[0])
-          }
-        } else {
+        _this.validPriceLessCost(d, isBatch)
+      } else {
+        _this.verificationSuccess(isBatch)
+      }
+    },
+    // 售价是否低于参考成本价提示弹框
+    validPriceLessCost (d, isBatch) {
+      const _this = this
+      if (d.length) {
+        if (isBatch) { // 一键审核,弹框文字提示
+          _this.tempData = { vaildPriceList: d[0].data.map(item => item.productCode) }
           _this.verificationSuccess(isBatch)
+        } else {
+          // 审核或上级审核,弹框表格提示
+          _this.openVaildPrice(d[0])
         }
       } else {
         _this.verificationSuccess(isBatch)

+ 5 - 1
src/views/salesManagement/salesQueryNew/edit.vue

@@ -453,7 +453,11 @@ export default {
             </ol>
           </div>,
           onOk () {
-            _this.submitOrder()
+            if (c.length > 0) {
+              _this.openVaildPrice(c[0])
+            } else {
+              _this.submitOrder()
+            }
           },
           onCancel () {
             _this.spinning = false