巡检计划优化

master
wws 11 months ago
parent 759f9254ae
commit 512c5ca9a7

@ -20,7 +20,7 @@
<el-form-item label="车间" prop="planWorkshop">
<el-input
v-model="queryParams.planWorkshop"
placeholder="请输入车间"
placeholder="请输入车间编码"
clearable
@keyup.enter.native="handleQuery"
/>
@ -736,13 +736,6 @@ export default {
created() {
this.setWorkCenter();
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: {
//
@ -1003,13 +996,7 @@ export default {
this.setWorkCenter();
listPlan(this.queryParams).then(response => {
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.loading = false;
});

Loading…
Cancel
Save