feat(KLPService选择组件): 新增默认查询参数支持并优化钢卷录入页面
1. 为ProductSelect和RawMaterialSelect组件新增defaultQueryParams属性,支持传入默认查询参数合并到请求参数中 2. 优化钢卷录入页面:默认选中成品类型,根据解析的钢卷数据自动设置物料选择器的查询参数 3. 移除页面冗余空行和注释代码
This commit is contained in:
@@ -163,6 +163,10 @@ export default {
|
||||
filters: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
defaultQueryParams: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -235,6 +239,9 @@ export default {
|
||||
this.getList();
|
||||
this.listRecentlySelected();
|
||||
}
|
||||
},
|
||||
defaultQueryParams(val) {
|
||||
this.queryParams = { ...this.queryParams, ...val };
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -151,6 +151,10 @@ export default {
|
||||
filters: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
},
|
||||
defaultQueryParams: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -234,6 +238,9 @@ export default {
|
||||
this.listRecentlySelected();
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
defaultQueryParams(val) {
|
||||
this.queryParams = { ...this.queryParams, ...val };
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user