lilei 11 months ago
parent
commit
0c65108922
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/views/salesManagement/waitDispatchNew/queryPart.vue

+ 4 - 5
src/views/salesManagement/waitDispatchNew/queryPart.vue

@@ -662,7 +662,7 @@ export default {
     handleAdd (row) {
       if (row && row.productEntity && row.productEntity.productBrandName == '箭冠' && row.productEntity.productTypeName3 == '轮胎') {
         if (!row.lockStockQty) {
-          this.$message.warning('锁定库存不足!')
+          this.$message.warning('锁定库存为0,不可添加!!')
         } else {
           this.$emit('addProduct', [row.salesBillDetailSn])
         }
@@ -723,7 +723,7 @@ export default {
 
       // 库存为0的产品
       const noStockRow = this.dataSource.filter(item => chooseList.includes(item.id) && !item.stockQty)
-      // 冻结库存为0的产品
+      // 锁定库存为0的产品
       const noLockStockRow = this.dataSource.filter(item => chooseList.includes(item.id) && item.productEntity && item.productEntity.productBrandName == '箭冠' && item.productEntity.productTypeName3 == '轮胎' && !item.lockStockQty)
 
       // 库存为0产品编码列表
@@ -733,7 +733,7 @@ export default {
         noObj.push(item.productCode)
         noObjSn.push(item.salesBillDetailSn)
       })
-      // 冻结库存为0的产品
+      // 锁定库存为0的产品
       const noLockObj = []
       const noLockObjSn = []
       noLockStockRow && noLockStockRow.map(item => {
@@ -750,7 +750,6 @@ export default {
       chooseRow && chooseRow.map(item => {
         obj.push(item.salesBillDetailSn)
       })
-
       if (obj.length) {
         this.$confirm({
           title: '提示',
@@ -763,7 +762,7 @@ export default {
           }
         })
       } else {
-        _this.$message.warning(noLockObj.length ? '所选产品冻结库存都为0,不可添加!' : '所选产品库存都为0,不可添加!')
+        _this.$message.warning(noLockObj.length ? '所选产品锁定库存都为0,不可添加!' : '所选产品库存都为0,不可添加!')
       }
     },
     // 整单取消