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

update:修改生产排产

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