|
|
|
@ -1453,25 +1453,23 @@ export default {
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const equipmentId = row.equipmentId || this.ids;
|
|
|
|
|
|
|
|
|
|
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].remark + response.rows[i].equipmentCode + response.rows[i].equipmentName,
|
|
|
|
|
label: response.rows[i].equipmentCode + response.rows[i].equipmentName + response.rows[i].remark,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
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 = [];
|
|
|
|
|