Commit 5d74d88e authored by 沈翠玲's avatar 沈翠玲

编排对照单筛选增加

parent 10202a77
......@@ -10,10 +10,11 @@ export function listProcess(query) {
}
// 查询所有有效生产工序
export function listAllProcess() {
export function listAllProcess(query) {
return request({
url: '/mes/pro/process/listAll',
method: 'get'
method: 'get',
params: query
})
}
......
......@@ -7,7 +7,10 @@
>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="所属工序" prop="processName">
<el-select v-model="queryParams.processName" placeholder="请选择工序">
<el-select v-model="queryParams.processName" placeholder="请选择工序" filterable
remote
:remote-method="getProcess"
:loading="loading">
<el-option
v-for="item in processOptions"
:key="item.processId"
......@@ -131,8 +134,8 @@
});
},
//查询工序信息
getProcess(){
listAllProcess().then( response =>{
getProcess(keyword = null){
listAllProcess({processName: keyword}).then( response =>{
this.processOptions = response.data;
});
},
......@@ -148,6 +151,7 @@
processName: null,
processCode: null,
};
this.getProcess()
this.resetForm("queryForm");
this.handleQuery();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment