|
@@ -18,7 +18,7 @@
|
|
|
<template v-slot:toolbar> </template>
|
|
<template v-slot:toolbar> </template>
|
|
|
<!-- 批次号 -->
|
|
<!-- 批次号 -->
|
|
|
<template v-slot:batchNo="{ row }">
|
|
<template v-slot:batchNo="{ row }">
|
|
|
- <el-popover placement="bottom" width="800" trigger="hover">
|
|
|
|
|
|
|
+ <el-popover placement="right-start" width="800" trigger="hover">
|
|
|
<el-table :data="row.outInBatchDetailsVOList">
|
|
<el-table :data="row.outInBatchDetailsVOList">
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
width="150"
|
|
width="150"
|
|
@@ -171,6 +171,12 @@
|
|
|
label: '包装单位',
|
|
label: '包装单位',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'paths',
|
|
|
|
|
+ width: 230,
|
|
|
|
|
+ label: '仓库',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
// {
|
|
// {
|
|
|
// prop: '',
|
|
// prop: '',
|
|
|
// label: '安全库存',
|
|
// label: '安全库存',
|
|
@@ -197,6 +203,10 @@
|
|
|
label: '批次号',
|
|
label: '批次号',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
});
|
|
});
|
|
|
|
|
+ let index = obj.findIndex((item) => item.label == '仓库');
|
|
|
|
|
+ if (index !== -1) {
|
|
|
|
|
+ obj.splice(index, 1);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
return obj;
|
|
return obj;
|
|
|
}
|
|
}
|
|
@@ -245,13 +255,19 @@
|
|
|
const dimension = this.$refs.refSeavch.dimension;
|
|
const dimension = this.$refs.refSeavch.dimension;
|
|
|
const treeId = this.$parent.$parent.$parent.current.id;
|
|
const treeId = this.$parent.$parent.$parent.current.id;
|
|
|
if (this.selectedDime == 1) {
|
|
if (this.selectedDime == 1) {
|
|
|
- return ouint.getRealTimeInventory({
|
|
|
|
|
|
|
+ const data = ouint.getRealTimeInventory({
|
|
|
...where,
|
|
...where,
|
|
|
...order,
|
|
...order,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
|
dimension: dimension
|
|
dimension: dimension
|
|
|
});
|
|
});
|
|
|
|
|
+ return data.then((res) => {
|
|
|
|
|
+ let item = res.list.map((item) => {
|
|
|
|
|
+ return { ...item, paths: item.pathName.split(',')[0] };
|
|
|
|
|
+ });
|
|
|
|
|
+ return item;
|
|
|
|
|
+ });
|
|
|
} else if (this.selectedDime == 2) {
|
|
} else if (this.selectedDime == 2) {
|
|
|
const params = {
|
|
const params = {
|
|
|
categoryLevelId: treeId,
|
|
categoryLevelId: treeId,
|
|
@@ -285,7 +301,11 @@
|
|
|
});
|
|
});
|
|
|
return data.then((res) => {
|
|
return data.then((res) => {
|
|
|
let item = res.list.map((item) => {
|
|
let item = res.list.map((item) => {
|
|
|
- return { ...item, minUnit: item.packingUnit };
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ ...item,
|
|
|
|
|
+ minUnit: item.packingUnit,
|
|
|
|
|
+ paths: item.pathName.split(',')[0]
|
|
|
|
|
+ };
|
|
|
});
|
|
});
|
|
|
return item;
|
|
return item;
|
|
|
});
|
|
});
|