巡检计划优化

master
wws 1 year ago
parent 759f9254ae
commit 512c5ca9a7

@ -20,7 +20,7 @@
<el-form-item label="车间" prop="planWorkshop"> <el-form-item label="车间" prop="planWorkshop">
<el-input <el-input
v-model="queryParams.planWorkshop" v-model="queryParams.planWorkshop"
placeholder="请输入车间" placeholder="请输入车间编码"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -736,13 +736,6 @@ export default {
created() { created() {
this.setWorkCenter(); this.setWorkCenter();
this.getList(); this.getList();
for (let i = 0; i < this.planList.length; i++) {
for (let j = 0; j < this.workCenterList.length; j++) {
if (this.planList[i].planWorkshop == this.workCenterList[j].factoryCode) {
this.planList[i].workCenterName = this.workCenterList[j].factoryName;
}
}
}
}, },
methods: { methods: {
// //
@ -1003,13 +996,7 @@ export default {
this.setWorkCenter(); this.setWorkCenter();
listPlan(this.queryParams).then(response => { listPlan(this.queryParams).then(response => {
this.planList = response.rows; this.planList = response.rows;
for (let i = 0; i < this.planList.length; i++) {
for (let j = 0; j < this.workCenterList.length; j++) {
if (this.planList[i].planWorkshop == this.workCenterList[j].factoryCode) {
this.planList[i].workCenterName = this.workCenterList[j].factoryName;
}
}
}
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
}); });

Loading…
Cancel
Save