|
|
|
@ -1112,6 +1112,11 @@ export default {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
},
|
|
|
|
|
queryAuxiliaryEquipmentParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 1000,
|
|
|
|
|
equipmentCategory : null,
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
status: "1",
|
|
|
|
@ -1234,19 +1239,6 @@ export default {
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
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.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -1351,7 +1343,18 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.repairRecordSteps = 0;
|
|
|
|
|
this.rightList = [];
|
|
|
|
|
this.auxiliaryEquipmentLeftList = [];
|
|
|
|
|
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.title = "添加设备管理";
|
|
|
|
|
},
|
|
|
|
@ -1363,6 +1366,22 @@ export default {
|
|
|
|
|
getWorkCenterList().then((response) => {
|
|
|
|
|
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) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.rightList = [];
|
|
|
|
|