fix(wms): 修复钢卷操作中物料类型和ID的同步问题

- 在split.vue中确保子卷继承母卷的itemType、itemId和materialType
- 在typing.vue中根据materialType自动设置itemType
- 在actflow.vue中使用coil-selector组件替换手动选择钢卷逻辑
This commit is contained in:
砂糖
2025-11-27 15:43:27 +08:00
parent 1579c725e9
commit ad8ef21ff6
3 changed files with 15 additions and 13 deletions

View File

@@ -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,