Commit 5ed353c6 authored by 张海景's avatar 张海景

update:修改生产排产

parent 86ff8504
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="工作中心" prop="workstationName"> <el-form-item v-if="!workstationId" label="工作中心" prop="workstationName">
<el-input <el-input
v-model="queryParams.workstationName" v-model="queryParams.workstationName"
placeholder="请输入工作中心名称" placeholder="请输入工作中心名称"
...@@ -102,6 +102,10 @@ export default { ...@@ -102,6 +102,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
workstationId: {
type: String | Number,
default: "",
},
workunitId: { workunitId: {
type: Number | undefined, type: Number | undefined,
default: undefined, default: undefined,
...@@ -135,6 +139,7 @@ export default { ...@@ -135,6 +139,7 @@ export default {
workunitName: null, workunitName: null,
workstationId: null, workstationId: null,
workstationName: this.workstationName, workstationName: this.workstationName,
workstationId: this.workstationId,
workunitId: null, workunitId: null,
enableFlag: "Y", enableFlag: "Y",
}, },
...@@ -145,13 +150,15 @@ export default { ...@@ -145,13 +150,15 @@ export default {
handler(newName) { handler(newName) {
this.selectedWorkunitId = null this.selectedWorkunitId = null
this.selectedRows = [] this.selectedRows = []
this.queryParams.workstationName = this.workstationName;
this.queryParams.workstationId = this.workstationId;
this.getList();
}, },
immediate: true immediate: true
} }
}, },
created() { created() {
this.getList();
this.queryParams.workstationName = this.workstationName;
}, },
methods: { methods: {
/** 查询生产工单列表 */ /** 查询生产工单列表 */
......
...@@ -411,7 +411,7 @@ ...@@ -411,7 +411,7 @@
<WorkuintSelect <WorkuintSelect
ref="WorkunitSelect" ref="WorkunitSelect"
:workstationName="currentData.workstationName" :workstationId="currentData.workstationId"
@onSelected="onWorkunitSelect" @onSelected="onWorkunitSelect"
/> />
......
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