diff --git a/src/views/foodManage/stockManage/inventoryCount/edit.vue b/src/views/foodManage/stockManage/inventoryCount/edit.vue index 0adb357a..915f7d10 100644 --- a/src/views/foodManage/stockManage/inventoryCount/edit.vue +++ b/src/views/foodManage/stockManage/inventoryCount/edit.vue @@ -406,8 +406,8 @@ export default { "pageNum": this.queryParams.pageNum, "checkWay": 1, "warehouseId": this.baseInfo.warehouseId, - // "materialName": this.queryParams.materialName, - // "materialCode": this.queryParams.materialCode, + "materialName": this.queryParams.materialName, + "materialCode": this.queryParams.materialCode, "categoryIds": this.queryParams.materialTypeIds, } getCheckInventoryMaterialPageApi(param).then(response => { @@ -460,15 +460,15 @@ export default { this.noMaterial = false; if(this.materialList.length>0){ this.materialList.forEach(item=>{ - if(item.actualNum==0){ - this.noMaterial = true - }else{ + // if(item.actualNum==0){ + // this.noMaterial = true + // }else{ let obj = Object.assign({}, item) obj.differNum = Number(obj.actualNum)-Number(obj.bookNum) obj.differAmount = (Number(obj.actualNum)-Number(obj.bookNum))*obj.price; obj.actualAmount = Number(obj.actualNum)*(obj.price) param.detailList.push(obj) - } + // } }) } if(this.noMaterial){ @@ -519,15 +519,15 @@ export default { this.noMaterial = false; if(this.materialList.length>0){ this.materialList.forEach(item=>{ - if(item.actualNum==0){ - this.noMaterial = true - }else{ + // if(item.actualNum==0){ + // this.noMaterial = true + // }else{ let obj = Object.assign({}, item) obj.differNum = Number(obj.actualNum)-Number(obj.bookNum) obj.differAmount = (Number(obj.actualNum)-Number(obj.bookNum))*obj.price; obj.actualAmount = Number(obj.actualNum)*(obj.price) param.detailList.push(obj) - } + // } }) } if(this.noMaterial){