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