|
|
@ -1453,25 +1453,23 @@ export default {
|
|
|
|
handleUpdate(row) {
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const equipmentId = row.equipmentId || this.ids;
|
|
|
|
const equipmentId = row.equipmentId || this.ids;
|
|
|
|
|
|
|
|
|
|
|
|
getWorkCenterList().then((response) => {
|
|
|
|
getWorkCenterList().then((response) => {
|
|
|
|
this.options1 = response.rows;
|
|
|
|
this.options1 = response.rows;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
|
|
|
|
this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
|
|
|
|
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
|
|
|
|
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
|
|
|
|
this.auxiliaryEquipmentLeftList = [];
|
|
|
|
this.auxiliaryEquipmentLeftList = [];
|
|
|
|
this.auxiliaryEquipmentRightList = [];
|
|
|
|
|
|
|
|
for (let i in response.rows) {
|
|
|
|
for (let i in response.rows) {
|
|
|
|
// 将返回的列表赋值于穿梭框左边列表
|
|
|
|
// 将返回的列表赋值于穿梭框左边列表
|
|
|
|
this.auxiliaryEquipmentLeftList.push({
|
|
|
|
this.auxiliaryEquipmentLeftList.push({
|
|
|
|
key: response.rows[i].equipmentCode,
|
|
|
|
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) => {
|
|
|
|
getEquipment(equipmentId).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.rightList = [];
|
|
|
|
this.rightList = [];
|
|
|
|