feat(调拨单): 新增调拨单管理功能
- 新增调拨单主表和明细表相关API接口 - 新增调拨单主表和明细表前端页面 - 新增钢卷选择器组件和调拨明细表格组件 - 修改产品信息和原料信息渲染组件支持更多字段 - 修改产品选择和原料选择组件支持数值类型值 - 修改钢卷号渲染组件支持更多字段和外部数据 - 新增调拨单匹配物料接口
This commit is contained in:
@@ -153,7 +153,7 @@ export default {
|
||||
},
|
||||
props: {
|
||||
value: {
|
||||
type: String,
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
},
|
||||
readonly: {
|
||||
@@ -224,7 +224,7 @@ export default {
|
||||
this.selectedId = val || '';
|
||||
if (this.selectedId) {
|
||||
const res = await getProduct(this.selectedId);
|
||||
if (res.code === 200) this.selectedRow = res.data;
|
||||
if (res.code === 200 && res.data != null) this.selectedRow = res.data || {};
|
||||
} else {
|
||||
this.selectedRow = {};
|
||||
}
|
||||
@@ -233,6 +233,7 @@ export default {
|
||||
dialogVisible(val) {
|
||||
if (val) {
|
||||
this.getList();
|
||||
this.listRecentlySelected();
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -408,10 +409,10 @@ export default {
|
||||
this.resetForm("form");
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.listRecentlySelected();
|
||||
this.getList();
|
||||
},
|
||||
// mounted() {
|
||||
|
||||
// this.getList();
|
||||
// },
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user