|
|
@@ -32,49 +32,43 @@
|
|
|
:header-cell-style="{ background: '#EEEEEE', border: 'none' }"
|
|
|
>
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
- :label="`${getDictValue('类型用途', baseInfo.assetType)}编码`"
|
|
|
- prop="onlyCode"
|
|
|
- ></el-table-column> -->
|
|
|
- <el-table-column label="包装编码" prop="num"></el-table-column>
|
|
|
+ <el-table-column label="调拔单号" prop="code"></el-table-column>
|
|
|
+ <el-table-column label="调拔名称" prop="name"></el-table-column>
|
|
|
+ <el-table-column label="物品名称" prop="categoryName"></el-table-column>
|
|
|
+ <el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
+ <el-table-column label="包装编码" prop="packageNo"></el-table-column>
|
|
|
<el-table-column
|
|
|
- label="最小包装单元"
|
|
|
- align="center"
|
|
|
- prop=""
|
|
|
- v-if="!baseInfo.isUnpack"
|
|
|
- >
|
|
|
- <template slot-scope="{ row }">{{
|
|
|
- `${row.measurementUnit || ''}${row.unit}/${row.minPackUnit}`
|
|
|
- }}</template>
|
|
|
- </el-table-column>
|
|
|
+ label="包装数量"
|
|
|
+ prop="packingQuantity"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column label="包装单位" prop="packingUnit"></el-table-column>
|
|
|
<el-table-column
|
|
|
- label="批次号"
|
|
|
- prop="batchNo"
|
|
|
- v-if="$route.query.dimension == 1"
|
|
|
+ label="计量数量"
|
|
|
+ prop="measureQuantity"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="调拔单号" prop="dialNumber"></el-table-column>
|
|
|
-
|
|
|
- <el-table-column label="调出货位" prop="warehouseName">
|
|
|
+ <el-table-column label="计量单位" prop="measureUnit"></el-table-column>
|
|
|
+ <el-table-column label="重量" prop="weight"></el-table-column>
|
|
|
+ <el-table-column label="重量单位" prop="weightUnit"></el-table-column>
|
|
|
+ <el-table-column label="调出区域" prop="warehouseName">
|
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.warehouseName }} - {{ row.outWarehouseAreaName }} -
|
|
|
- {{ row.outWarehouseAreaGoodsCode }} - {{ row.outGoodsAllocationCode }}
|
|
|
+ {{ warehouseLabel(row) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="调入货位" prop="inWarehouseName">
|
|
|
+ <el-table-column label="调入区域" prop="inWarehouseName">
|
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.inWarehouseName }} - {{ row.inWarehouseAreaName }} -
|
|
|
- {{ row.inWarehouseAreaGoodsCode }} - {{ row.inGoodsAllocationCode }}
|
|
|
+ {{ targetWarehouseLabel(row) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="审核时间" prop="auditorTime"></el-table-column>
|
|
|
+ <el-table-column label="创建时间" prop="createTime"></el-table-column>
|
|
|
</el-table>
|
|
|
- <Pagination
|
|
|
- class="pagination"
|
|
|
- :total="total"
|
|
|
- :page.sync="page"
|
|
|
- :size.sync="size"
|
|
|
- @pagination="handlePageChange"
|
|
|
- />
|
|
|
+ <div class="pagination"
|
|
|
+ ><Pagination
|
|
|
+ :total="total"
|
|
|
+ :page.sync="page"
|
|
|
+ :size.sync="size"
|
|
|
+ @pagination="handlePageChange"
|
|
|
+ /></div>
|
|
|
+
|
|
|
<!-- <InventoryAllocationDialog
|
|
|
ref="detailRef"
|
|
|
:assetCode="baseInfo.assetCode"
|
|
|
@@ -84,6 +78,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import storageApi from '@/api/warehouseManagement';
|
|
|
import Pagination from '@/components/Pagination';
|
|
|
// import { getTransferDetail } from '@/api/stockManagement/stockLedger'
|
|
|
import InventoryAllocationDialog from './InventoryAllocationDialog';
|
|
|
@@ -108,16 +103,76 @@
|
|
|
key: ''
|
|
|
},
|
|
|
tableData: [],
|
|
|
- size: 15,
|
|
|
+ size: 10,
|
|
|
page: 1,
|
|
|
total: 0
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
// this.requestDict('类型用途')
|
|
|
- // this.getList()
|
|
|
+ this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ warehouseLabel(row) {
|
|
|
+ if (
|
|
|
+ row.warehouseName &&
|
|
|
+ row.areaName &&
|
|
|
+ row.goodsShelfName &&
|
|
|
+ row.goodsAllocationName
|
|
|
+ ) {
|
|
|
+ return (
|
|
|
+ row.warehouseName +
|
|
|
+ '/' +
|
|
|
+ row.areaName +
|
|
|
+ '/' +
|
|
|
+ row.goodsShelfName +
|
|
|
+ '/' +
|
|
|
+ row.goodsAllocationName
|
|
|
+ );
|
|
|
+ } else if (row.warehouseName && row.areaName && row.goodsShelfName) {
|
|
|
+ return (
|
|
|
+ row.warehouseName + '/' + row.areaName + '/' + row.goodsShelfName
|
|
|
+ );
|
|
|
+ } else if (row.warehouseName && row.areaName) {
|
|
|
+ return row.warehouseName + '/' + row.areaName;
|
|
|
+ } else {
|
|
|
+ return row.warehouseName;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ targetWarehouseLabel(row) {
|
|
|
+ if (
|
|
|
+ row.targetWarehouseName &&
|
|
|
+ row.targetAreaName &&
|
|
|
+ row.targetGoodsShelfName &&
|
|
|
+ row.targetGoodsAllocationName
|
|
|
+ ) {
|
|
|
+ return (
|
|
|
+ row.targetWarehouseName +
|
|
|
+ '/' +
|
|
|
+ row.targetAreaName +
|
|
|
+ '/' +
|
|
|
+ row.targetGoodsShelfName +
|
|
|
+ '/' +
|
|
|
+ row.targetGoodsAllocationName
|
|
|
+ );
|
|
|
+ } else if (
|
|
|
+ row.targetWarehouseName &&
|
|
|
+ row.targetAreaName &&
|
|
|
+ row.targetGoodsShelfName
|
|
|
+ ) {
|
|
|
+ return (
|
|
|
+ row.targetWarehouseName +
|
|
|
+ '/' +
|
|
|
+ row.targetAreaName +
|
|
|
+ '/' +
|
|
|
+ row.targetGoodsShelfName
|
|
|
+ );
|
|
|
+ } else if (row.targetWarehouseName && row.targetAreaName) {
|
|
|
+ return row.targetWarehouseName + '/' + row.targetAreaName;
|
|
|
+ } else {
|
|
|
+ return row.targetWarehouseName;
|
|
|
+ }
|
|
|
+ },
|
|
|
search() {
|
|
|
this.page = 1;
|
|
|
this.getList();
|
|
|
@@ -133,22 +188,16 @@
|
|
|
this.getList();
|
|
|
},
|
|
|
async getList() {
|
|
|
- const res = await inventorybookPage({
|
|
|
- size: this.size,
|
|
|
- page: this.page,
|
|
|
- bizStatus: 3
|
|
|
- // ...this.baseParams,
|
|
|
- // ...this.searchForm,
|
|
|
- // batchNum: this.baseParams.batchNum || this.searchForm.batchNum
|
|
|
- // bizNum,
|
|
|
- // batchNum,
|
|
|
- // inventoryCode: this.assetCode
|
|
|
- });
|
|
|
- if (res?.success) {
|
|
|
- // this.tableData = res.data
|
|
|
- this.tableData = res.data.records;
|
|
|
- this.total = res.data.total;
|
|
|
- }
|
|
|
+ storageApi
|
|
|
+ .getAllotDetails({
|
|
|
+ size: this.size,
|
|
|
+ pageNum: this.page,
|
|
|
+ ...this.baseParams
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.tableData = res.list;
|
|
|
+ this.total = res.count;
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -170,9 +219,9 @@
|
|
|
}
|
|
|
}
|
|
|
.pagination {
|
|
|
- flex: 0 0 50px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
</style>
|