fix(wms): 修复钢卷操作中物料类型和ID的同步问题
- 在split.vue中确保子卷继承母卷的itemType、itemId和materialType - 在typing.vue中根据materialType自动设置itemType - 在actflow.vue中使用coil-selector组件替换手动选择钢卷逻辑
This commit is contained in:
@@ -587,12 +587,13 @@ export default {
|
||||
|
||||
// 复制当前信息到更新表单
|
||||
copyFromCurrent() {
|
||||
const itemType = this.currentInfo.materialType === '原料' ? 'raw_material' : 'product';
|
||||
this.updateForm = {
|
||||
currentCoilNo: this.currentInfo.currentCoilNo,
|
||||
team: this.currentInfo.team,
|
||||
materialType: this.currentInfo.materialType,
|
||||
// 不复制 itemType 和 itemId,让它们由 materialType 自动决定
|
||||
itemType: null,
|
||||
itemType,
|
||||
itemId: null,
|
||||
grossWeight: parseFloat(this.currentInfo.grossWeight) || null,
|
||||
netWeight: parseFloat(this.currentInfo.netWeight) || null,
|
||||
|
||||
Reference in New Issue
Block a user