Преглед на файлове

Merge branch 'develop_yh43' of http://git.chelingzhu.com/jianguan-web/jg-ocs-html into develop_yh43

chenrui преди 11 месеца
родител
ревизия
3f15dc64b3
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 5 5
      src/views/salesManagement/waitDispatchNew/queryPart.vue

+ 5 - 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('锁定库存为0,不可添加!')
+          this.$message.warning('锁定库存为0,不可添加!')
         } else {
           this.$emit('addProduct', [row.salesBillDetailSn])
         }
@@ -721,9 +721,9 @@ export default {
         return
       }
 
-      // 库存为0的产品
-      const noStockRow = this.dataSource.filter(item => chooseList.includes(item.id) && !item.stockQty)
-      // 锁定库存为0的产品
+      // 库存为0的产品,不包括箭冠轮胎产品
+      const noStockRow = this.dataSource.filter(item => chooseList.includes(item.id) && !item.stockQty && item.productEntity && item.productEntity.productBrandName != '箭冠' && item.productEntity.productTypeName3 != '轮胎')
+      // 锁定库存为0的产品,只判断箭冠轮胎产品
       const noLockStockRow = this.dataSource.filter(item => chooseList.includes(item.id) && item.productEntity && item.productEntity.productBrandName == '箭冠' && item.productEntity.productTypeName3 == '轮胎' && !item.lockStockQty)
 
       // 库存为0产品编码列表
@@ -741,7 +741,7 @@ export default {
         noLockObjSn.push(item.salesBillDetailSn)
       })
 
-      // 可添加产品
+      // 可添加产品,不包括库存未0和箭冠轮胎锁定库存为0的产品
       const chooseRow = this.dataSource.filter(item => {
         return chooseList.includes(item.id) && !noObjSn.includes(item.salesBillDetailSn) && !noLockObjSn.includes(item.salesBillDetailSn)
       })