feat: 添加钢卷ID字段并实现导出功能
- 在WmsActualWarehouseVo中添加coilId字段 - 在WmsActualWarehouseServiceImpl中设置coilId值 - 在WarehouseBird组件中添加导出库内钢卷信息功能 - 在CoilTable组件中添加总卷数和总净重统计显示
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 统计信息 -->
|
||||
<div class="coil-stats" style="margin-bottom: 10px; padding: 10px; background-color: #f5f7fa; border-radius: 4px;">
|
||||
<span style="margin-right: 20px;"><strong>总卷数:{{ totalCoils }}</strong></span>
|
||||
<span><strong>总净重:{{ totalNetWeight }} kg</strong></span>
|
||||
</div>
|
||||
<KLPTable :data="data" :floatLayer="true" :floatLayerConfig="floatLayerConfig">
|
||||
<el-table-column label="入场钢卷号" align="center" prop="enterCoilNo">
|
||||
<template slot-scope="scope">
|
||||
@@ -21,21 +26,8 @@
|
||||
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="长度 (米)" align="center" prop="length" />
|
||||
<!-- <el-table-column label="关联信息" align="center" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.parentCoilNos && scope.row.hasMergeSplit === 1 && scope.row.dataType === 1">
|
||||
<el-tag type="warning" size="mini">来自母卷:{{ scope.row.parentCoilNos }}</el-tag>
|
||||
</span>
|
||||
<span v-else-if="scope.row.parentCoilNos && scope.row.dataType === 0">
|
||||
<el-tag type="info" size="mini">分为子卷:{{ scope.row.parentCoilNos }}</el-tag>
|
||||
</span>
|
||||
<span v-else-if="scope.row.parentCoilNos && scope.row.hasMergeSplit === 2">
|
||||
<el-tag type="success" size="mini">合并自:{{ scope.row.parentCoilNos }}</el-tag>
|
||||
</span>
|
||||
<span v-else>—</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<!-- <el-table-column label="长度 (米)" align="center" prop="length" /> -->
|
||||
<el-table-column label="净重(t)" align="center" prop="netWeight" />
|
||||
|
||||
<el-table-column label="质量状态" align="center" prop="qualityStatus"></el-table-column>
|
||||
|
||||
@@ -101,6 +93,18 @@ export default {
|
||||
LabelRender,
|
||||
CoilNo
|
||||
},
|
||||
computed: {
|
||||
// 计算总卷数
|
||||
totalCoils() {
|
||||
return this.data.length;
|
||||
},
|
||||
// 计算总净重
|
||||
totalNetWeight() {
|
||||
return this.data.reduce((sum, item) => {
|
||||
return sum + (Number(item.netWeight) || 0);
|
||||
}, 0).toFixed(2);
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
floatLayerConfig: {
|
||||
|
||||
Reference in New Issue
Block a user