优化商品库存流水记录,分仓库查询
This commit is contained in:
@@ -230,8 +230,12 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
showMaterialInOutList(record) {
|
showMaterialInOutList(record) {
|
||||||
this.$refs.materialInOutList.show(record);
|
let depotIds = ''
|
||||||
this.$refs.materialInOutList.title = "查看商品库存流水(全部仓库)";
|
if(this.depotSelected && this.depotSelected.length>0) {
|
||||||
|
depotIds = this.depotSelected.join()
|
||||||
|
}
|
||||||
|
this.$refs.materialInOutList.show(record, depotIds);
|
||||||
|
this.$refs.materialInOutList.title = "查看商品库存流水";
|
||||||
this.$refs.materialInOutList.disableSubmit = false;
|
this.$refs.materialInOutList.disableSubmit = false;
|
||||||
},
|
},
|
||||||
exportExcel() {
|
exportExcel() {
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
toFromType: '',
|
toFromType: '',
|
||||||
// 查询条件
|
// 查询条件
|
||||||
queryParam: {
|
queryParam: {
|
||||||
materialId:''
|
depotIds: '',
|
||||||
|
materialId:'',
|
||||||
},
|
},
|
||||||
tabKey: "1",
|
tabKey: "1",
|
||||||
// 表头
|
// 表头
|
||||||
@@ -85,7 +86,7 @@
|
|||||||
sm: { span: 16 },
|
sm: { span: 16 },
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
list: "/depotItem/findDetailByTypeAndMaterialId"
|
list: "/depotItem/findDetailByDepotIdsAndMaterialId"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -99,9 +100,10 @@
|
|||||||
param.pageSize = this.ipagination.pageSize;
|
param.pageSize = this.ipagination.pageSize;
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
show(record) {
|
show(record, depotIds) {
|
||||||
this.model = Object.assign({}, record);
|
this.model = Object.assign({}, record);
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
this.queryParam.depotIds = depotIds
|
||||||
this.queryParam.materialId = record.id
|
this.queryParam.materialId = record.id
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user