|
|
@@ -282,6 +282,9 @@ export default {
|
|
|
} else if (this.dimension == 2) {
|
|
|
// 批次维度
|
|
|
const data = await storageApi.getBatchList(this.searchForm);
|
|
|
+ for (let i = 0; i < data.list.length; i++) {
|
|
|
+ data.list[i].outboundNum = data.list[i].measureQuantity;
|
|
|
+ }
|
|
|
this.tableData = data.list;
|
|
|
this.total = data.count;
|
|
|
} else if (this.dimension == 4) {
|
|
|
@@ -360,12 +363,24 @@ export default {
|
|
|
}
|
|
|
console.log(this.selectionList);
|
|
|
let data = null;
|
|
|
- if (this.dimension != 1) {
|
|
|
+ if (this.dimension == 3) {
|
|
|
data = await storageApi.getHierarchyList({
|
|
|
ids: this.selectionList.map((item) => item.id).join(','),
|
|
|
type: this.dimension
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (this.dimension == 2) {
|
|
|
+ data = await storageApi.getHierarchyFifo({
|
|
|
+ type: this.dimension,
|
|
|
+ ids: this.selectionList.map((item) => item.id).join(','),
|
|
|
+ builders: this.selectionList.map((item) => {
|
|
|
+ return {
|
|
|
+ categoryId: item.categoryId,
|
|
|
+ num: item.outboundNum,
|
|
|
+ id: item.id,
|
|
|
+ };
|
|
|
+ })
|
|
|
+ });
|
|
|
+ } else if (this.dimension == 1) {
|
|
|
data = await storageApi.getHierarchyFifo({
|
|
|
type: this.dimension,
|
|
|
builders: this.selectionList.map((item) => {
|