库存盘点搜索条件参数
This commit is contained in:
parent
2287696d74
commit
2fb5341550
|
|
@ -406,8 +406,8 @@ export default {
|
||||||
"pageNum": this.queryParams.pageNum,
|
"pageNum": this.queryParams.pageNum,
|
||||||
"checkWay": 1,
|
"checkWay": 1,
|
||||||
"warehouseId": this.baseInfo.warehouseId,
|
"warehouseId": this.baseInfo.warehouseId,
|
||||||
// "materialName": this.queryParams.materialName,
|
"materialName": this.queryParams.materialName,
|
||||||
// "materialCode": this.queryParams.materialCode,
|
"materialCode": this.queryParams.materialCode,
|
||||||
"categoryIds": this.queryParams.materialTypeIds,
|
"categoryIds": this.queryParams.materialTypeIds,
|
||||||
}
|
}
|
||||||
getCheckInventoryMaterialPageApi(param).then(response => {
|
getCheckInventoryMaterialPageApi(param).then(response => {
|
||||||
|
|
@ -460,15 +460,15 @@ export default {
|
||||||
this.noMaterial = false;
|
this.noMaterial = false;
|
||||||
if(this.materialList.length>0){
|
if(this.materialList.length>0){
|
||||||
this.materialList.forEach(item=>{
|
this.materialList.forEach(item=>{
|
||||||
if(item.actualNum==0){
|
// if(item.actualNum==0){
|
||||||
this.noMaterial = true
|
// this.noMaterial = true
|
||||||
}else{
|
// }else{
|
||||||
let obj = Object.assign({}, item)
|
let obj = Object.assign({}, item)
|
||||||
obj.differNum = Number(obj.actualNum)-Number(obj.bookNum)
|
obj.differNum = Number(obj.actualNum)-Number(obj.bookNum)
|
||||||
obj.differAmount = (Number(obj.actualNum)-Number(obj.bookNum))*obj.price;
|
obj.differAmount = (Number(obj.actualNum)-Number(obj.bookNum))*obj.price;
|
||||||
obj.actualAmount = Number(obj.actualNum)*(obj.price)
|
obj.actualAmount = Number(obj.actualNum)*(obj.price)
|
||||||
param.detailList.push(obj)
|
param.detailList.push(obj)
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(this.noMaterial){
|
if(this.noMaterial){
|
||||||
|
|
@ -519,15 +519,15 @@ export default {
|
||||||
this.noMaterial = false;
|
this.noMaterial = false;
|
||||||
if(this.materialList.length>0){
|
if(this.materialList.length>0){
|
||||||
this.materialList.forEach(item=>{
|
this.materialList.forEach(item=>{
|
||||||
if(item.actualNum==0){
|
// if(item.actualNum==0){
|
||||||
this.noMaterial = true
|
// this.noMaterial = true
|
||||||
}else{
|
// }else{
|
||||||
let obj = Object.assign({}, item)
|
let obj = Object.assign({}, item)
|
||||||
obj.differNum = Number(obj.actualNum)-Number(obj.bookNum)
|
obj.differNum = Number(obj.actualNum)-Number(obj.bookNum)
|
||||||
obj.differAmount = (Number(obj.actualNum)-Number(obj.bookNum))*obj.price;
|
obj.differAmount = (Number(obj.actualNum)-Number(obj.bookNum))*obj.price;
|
||||||
obj.actualAmount = Number(obj.actualNum)*(obj.price)
|
obj.actualAmount = Number(obj.actualNum)*(obj.price)
|
||||||
param.detailList.push(obj)
|
param.detailList.push(obj)
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(this.noMaterial){
|
if(this.noMaterial){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue