feat(wms): 更新钢卷追溯功能并优化发货单状态管理

- 在detailTable.vue中将edgeType字段从edgeRequirement改为trimmingRequirement
- 在waybill/index.vue和bills/index.vue中注释掉导出按钮
- 在base.vue中为钢卷追溯添加加载状态
- 在bills/index.vue中启用发货状态选择器并添加状态更新逻辑
- 重构CoilTraceResult.vue,优化钢卷追溯信息展示和交互体验
This commit is contained in:
砂糖
2026-01-28 17:22:32 +08:00
parent d15a629300
commit c87b43ae95
5 changed files with 517 additions and 301 deletions

View File

@@ -268,7 +268,7 @@
<!-- 钢卷追溯对话框使用封装的组件 -->
<el-dialog title="钢卷追溯" :visible.sync="traceOpen" width="90%" append-to-body>
<coil-trace-result :trace-result="traceResult"></coil-trace-result>
<coil-trace-result v-loading="traceLoading" :trace-result="traceResult"></coil-trace-result>
</el-dialog>
<!-- 标签预览弹窗 -->
@@ -411,6 +411,8 @@ export default {
buttonLoading: false,
// 遮罩层
loading: true,
// 追溯加载中
traceLoading: false,
// 选中数组
ids: [],
// 非单个禁用
@@ -646,6 +648,7 @@ export default {
/** 追溯按钮操作 */
handleTrace(row) {
this.traceOpen = true;
this.traceLoading = true;
this.traceResult = null; // 清空历史数据
getMaterialCoilTrace({
enterCoilNo: row.enterCoilNo,
@@ -655,6 +658,8 @@ export default {
}).catch(err => {
console.error('溯源查询失败:', err);
this.$message.error('溯源查询失败,请重试');
}).finally(() => {
this.traceLoading = false;
});
},
handleGradeChange(row) {