refactor(wms): 优化钢卷操作表单的数据结构
使用对象展开运算符简化表单数据初始化与提交逻辑 添加质量状态、包装要求等新字段 移除冗余的watch和重复的仓库名称获取逻辑
This commit is contained in:
@@ -577,7 +577,11 @@ export default {
|
||||
grossWeight: null,
|
||||
netWeight: null,
|
||||
warehouseId: null,
|
||||
actualWarehouseId: null
|
||||
actualWarehouseId: null,
|
||||
qualityStatus: '',
|
||||
packagingRequirement: '',
|
||||
packingStatus: '',
|
||||
trimmingRequirement: ''
|
||||
});
|
||||
},
|
||||
|
||||
@@ -653,16 +657,9 @@ export default {
|
||||
currentCoilNo: this.motherCoil.currentCoilNo,
|
||||
hasMergeSplit: 1, // 1表示分条
|
||||
newCoils: this.splitList.map(item => ({
|
||||
enterCoilNo: this.motherCoil.enterCoilNo, // 子卷继承母卷的入场钢卷号
|
||||
currentCoilNo: item.currentCoilNo,
|
||||
team: item.team,
|
||||
materialType: item.materialType,
|
||||
...item,
|
||||
itemType: item.itemType || this.motherCoil.itemType,
|
||||
itemId: item.itemId || this.motherCoil.itemId,
|
||||
grossWeight: item.grossWeight,
|
||||
netWeight: item.netWeight,
|
||||
warehouseId: item.warehouseId,
|
||||
actualWarehouseId: item.actualWarehouseId,
|
||||
hasMergeSplit: 1
|
||||
}))
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user