|
@@ -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,8 +721,8 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // 库存为0的产品
|
|
|
- const noStockRow = this.dataSource.filter(item => chooseList.includes(item.id) && !item.stockQty)
|
|
|
+ // 库存为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)
|
|
|
|