feat(wms): 添加冷硬卷板切边统计和类别宽度统计功能

- 新增冷硬卷板切边统计页面和API接口
- 新增类别宽度统计页面和API接口
- 修改发货单页面,调整列显示
- 扩展统计预览功能,支持多种统计类型展示
This commit is contained in:
砂糖
2026-03-09 16:07:07 +08:00
parent 1038b17a66
commit fef2f132d0
6 changed files with 211 additions and 12 deletions

View File

@@ -8,18 +8,17 @@
<el-col :span="18">
<div style="height: calc(100vh - 124px); overflow-y: scroll; overflow-x: hidden;">
<div v-if="currentRow.summaryId">
<Preview :data="currentRow.statJson" />
<Preview :data="currentRow.statJson" :statType="currentRow.statType" />
</div>
<div v-else>
<div>钢卷生产统计详情</div>
</div>
</div>
</el-col>
</el-row>
<el-dialog v-loading="previewLoading" title="效果预览" :visible.sync="previewOpen" width="800px" append-to-body>
<Preview :data="liveData" />
<el-dialog v-loading="previewLoading" title="效果预览" :visible.sync="previewOpen" width="100vw" fullscreen append-to-body>
<Preview :data="liveData" :statType="form.statType" />
<el-button type="primary" @click="handleSave">保存</el-button>
</el-dialog>
</div>
@@ -31,6 +30,7 @@ import LeftList from "./components/LeftList.vue";
import Preview from "@/views/wms/coil/panels/Perspective/index.vue";
import { listRawMaterialPerspective } from "@/api/wms/rawMaterial";
import { listCoilTrimStatistics, categoryWidthStatistics } from "@/api/wms/coil";
export default {
name: "CoilStatisticsSummary",
@@ -74,7 +74,7 @@ export default {
},
previewLoading: false,
previewOpen: false,
liveData: {},
liveData: [],
currentRow: {},
};
},
@@ -162,7 +162,26 @@ export default {
this.previewLoading = false;
});
}
else if (form.statType == '冷硬卷板') {
this.previewLoading = true;
listCoilTrimStatistics().then(response => {
this.liveData = response.data;
}).finally(() => {
this.previewLoading = false;
});
}
else if (form.statType == '汇总') {
this.previewLoading = true;
categoryWidthStatistics().then(response => {
this.liveData = response.data;
}).finally(() => {
this.previewLoading = false;
});
}
else {
this.$modal.msgError("未知类型");
}
this.previewLoading = false;
},
handleSave() {
addCoilStatisticsSummary({