feat(调拨单): 新增调拨单管理功能

- 新增调拨单主表和明细表相关API接口
- 新增调拨单主表和明细表前端页面
- 新增钢卷选择器组件和调拨明细表格组件
- 修改产品信息和原料信息渲染组件支持更多字段
- 修改产品选择和原料选择组件支持数值类型值
- 修改钢卷号渲染组件支持更多字段和外部数据
- 新增调拨单匹配物料接口
This commit is contained in:
砂糖
2026-03-28 14:08:27 +08:00
parent 00939dae2f
commit 499654907b
13 changed files with 2520 additions and 33 deletions

View File

@@ -139,7 +139,7 @@ export default {
props: {
// 绑定值原材料ID 单选字符串格式
value: {
type: String,
type: [String, Number],
default: ''
},
// 是否只读
@@ -222,7 +222,7 @@ export default {
// 有选中ID则获取详情赋值
if (this.selectedId) {
const res = await getRawMaterial(this.selectedId);
if (res.code === 200) this.selectedRow = res.data;
if (res.code === 200) this.selectedRow = res.data || {};
} else {
this.selectedRow = {};
}
@@ -231,6 +231,7 @@ export default {
// 弹窗打开时加载数据
dialogVisible(val) {
if (val) {
this.listRecentlySelected();
this.getList();
}
}
@@ -417,10 +418,10 @@ export default {
this.dialogVisible = false;
}
},
mounted() {
this.listRecentlySelected();
this.getList();
}
// mounted() {
// this.listRecentlySelected();
// this.getList();
// }
};
</script>