feat(打包模块): 新增打包单据功能及相关组件

refactor(CoilSelector): 修改change事件返回参数包含完整钢卷信息

chore: 添加打包模块相关图标和API文件

test: 添加打包模块单元测试

docs: 更新打包模块API文档
This commit is contained in:
砂糖
2026-03-24 09:16:22 +08:00
parent f5a8d35831
commit 396f861882
37 changed files with 1727 additions and 33 deletions

View File

@@ -318,7 +318,7 @@ export default {
// 同步到v-model
if (this.useTrigger && val.coilId) {
this.$emit('input', val.coilId);
this.$emit('change', val.coilId);
this.$emit('change', val.coilId, val);
}
}
},
@@ -529,7 +529,7 @@ export default {
// 触发器模式下支持v-model双向绑定
if (this.useTrigger) {
this.$emit('input', row.coilId);
this.$emit('change', row.coilId); // 兼容v-model的change事件
this.$emit('change', row.coilId, row); // 兼容v-model的change事件
}
// 选择后关闭对话框
this.handleClose();
@@ -540,7 +540,7 @@ export default {
this.selectedCoil = null;
this.selectedCoils = []; // 清空多选数据
this.$emit('input', '');
this.$emit('change', '');
this.$emit('change', '', null); // 兼容v-model的change事件
this.$emit('clear', true); // 触发清除事件
},