feat(钢卷管理): 添加长度字段支持及相关功能

refactor(订单管理): 重构订单状态显示及操作记录功能

fix(权限控制): 移除导出订单明细的权限校验

perf(钢卷操作): 使用策略模式重构钢卷操作逻辑
This commit is contained in:
砂糖
2025-12-29 16:22:18 +08:00
parent 9b8c5ab80b
commit 825a967f7b
13 changed files with 344 additions and 170 deletions

View File

@@ -182,6 +182,12 @@
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="长度(m)">
<el-input v-model.number="targetCoil.length" placeholder="请输入长度" type="number" step="0.01"
:disabled="readonly">
<template slot="append"></template>
</el-input>
</el-form-item>
<el-form-item label="逻辑库区">
<WarehouseSelect
v-model="targetCoil.warehouseId"
@@ -257,7 +263,8 @@ export default {
qualityStatus: '',
packagingRequirement: '',
packingStatus: '',
trimmingRequirement: ''
trimmingRequirement: '',
length: null,
},
buttonLoading: false,
loading: false,
@@ -359,6 +366,9 @@ export default {
materialName: '',
productName: '',
specification: '',
grossWeight: null,
netWeight: null,
length: null,
bomItems: []
},
{
@@ -372,6 +382,9 @@ export default {
materialName: '',
productName: '',
specification: '',
grossWeight: null,
netWeight: null,
length: null,
bomItems: []
}
];
@@ -400,6 +413,9 @@ export default {
productName: data.productName || (data.product ? data.product.productName : ''),
specification: data.rawMaterial?.specification || data.product?.specification || '',
bomItems: data.bomItemList || [],
grossWeight: data.grossWeight || null,
netWeight: data.netWeight || null,
length: data.length || null,
},
{
coilId: null,
@@ -412,7 +428,10 @@ export default {
materialName: '',
productName: '',
specification: '',
bomItems: []
bomItems: [],
grossWeight: null,
netWeight: null,
length: null,
}
];
@@ -488,6 +507,9 @@ export default {
materialName: data.materialName || (data.rawMaterial ? data.rawMaterial.rawMaterialName : ''),
productName: data.productName || (data.product ? data.product.productName : ''),
specification: data.rawMaterial?.specification || data.product?.specification || '',
grossWeight: data.grossWeight || null,
netWeight: data.netWeight || null,
length: data.length || null,
bomItems: data.bomItemList || [],
actionId: pending.actionId // 保存待操作ID用于后续完成操作
});
@@ -662,6 +684,9 @@ export default {
materialName: coil.materialName || '',
productName: coil.productName || '',
specification: coil.rawMaterial?.specification || coil.product?.specification || '',
grossWeight: coil.grossWeight || null,
netWeight: coil.netWeight || null,
length: coil.length || null,
bomItems: coil.bomItemList || []
});