设备组线可以绑定辅助设备,辅助设备不能绑定设备

master
A0010407 12 months ago
parent 10ff65c6c0
commit d0bb145ed1

@ -1112,6 +1112,11 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
queryAuxiliaryEquipmentParams: {
pageNum: 1,
pageSize: 1000,
equipmentCategory : null,
},
options: [ options: [
{ {
status: "1", status: "1",
@ -1234,19 +1239,6 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
listEquipment(this.queryParams).then((response) => { listEquipment(this.queryParams).then((response) => {
this.auxiliaryEquipmentLeftList = [];
this.auxiliaryEquipmentRightList = [];
for (let i in response.rows) {
// 穿
this.auxiliaryEquipmentLeftList.push({
key: response.rows[i].equipmentCode,
label: response.rows[i].equipmentName,
});
}
for (let i in response.selected) {
this.auxiliaryEquipmentRightList.push(response.selected[i].key);
this.form.auxiliaryEquipmentRightData = this.auxiliaryEquipmentRightList;
}
this.equipmentList = response.rows; this.equipmentList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -1351,7 +1343,18 @@ export default {
}); });
this.repairRecordSteps = 0; this.repairRecordSteps = 0;
this.rightList = []; this.rightList = [];
this.auxiliaryEquipmentLeftList = [];
this.auxiliaryEquipmentRightList = []; this.auxiliaryEquipmentRightList = [];
this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
for (let i in response.rows) {
// 穿
this.auxiliaryEquipmentLeftList.push({
key: response.rows[i].equipmentCode,
label: response.rows[i].equipmentName,
});
}
});
this.open = true; this.open = true;
this.title = "添加设备管理"; this.title = "添加设备管理";
}, },
@ -1363,6 +1366,22 @@ export default {
getWorkCenterList().then((response) => { getWorkCenterList().then((response) => {
this.options1 = response.rows; this.options1 = response.rows;
}); });
this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
this.auxiliaryEquipmentLeftList = [];
this.auxiliaryEquipmentRightList = [];
for (let i in response.rows) {
// 穿
this.auxiliaryEquipmentLeftList.push({
key: response.rows[i].equipmentCode,
label: response.rows[i].equipmentName,
});
}
for (let i in response.selected) {
this.auxiliaryEquipmentRightList.push(response.selected[i].key);
this.form.auxiliaryEquipmentRightData = this.auxiliaryEquipmentRightList;
}
});
getEquipment(equipmentId).then((response) => { getEquipment(equipmentId).then((response) => {
this.form = response.data; this.form = response.data;
this.rightList = []; this.rightList = [];

Loading…
Cancel
Save