feat(钢卷管理): 添加长度字段支持及相关功能
refactor(订单管理): 重构订单状态显示及操作记录功能 fix(权限控制): 移除导出订单明细的权限校验 perf(钢卷操作): 使用策略模式重构钢卷操作逻辑
This commit is contained in:
@@ -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 || []
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user