chenrui 3 years ago
parent
commit
c18f2f459b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      pages/sales/chooseProduct.vue

+ 6 - 0
pages/sales/chooseProduct.vue

@@ -365,6 +365,12 @@
 										}
 									})
 								})
+								// 添加 产品总库存为0添加为急件时的情况
+								if(listArr.length == 1 && chooseList.length == 1 && chooseList[0].oosFlag==1){
+									_this.$nextTick(() => {
+										_this.listData[listInd[0]].saleQty = 1  // 非0即可,用于判断是否显示添加产品按钮
+									})
+								}
 							}else if(type == 'del'){
 								console.log('删除', chooseList,'++',listArr)
 								listArr.map((subItem, subInd) => {