|
|
@ -1081,6 +1081,7 @@ import {
|
|
|
|
getSparePartsList,
|
|
|
|
getSparePartsList,
|
|
|
|
getRightSparePartsList,
|
|
|
|
getRightSparePartsList,
|
|
|
|
changeEquipmentStatus,
|
|
|
|
changeEquipmentStatus,
|
|
|
|
|
|
|
|
getEquipmentListByCategory,
|
|
|
|
} from "@/api/wms/equipment";
|
|
|
|
} from "@/api/wms/equipment";
|
|
|
|
import { getWorkCenterList, listFactory } from "@/api/wms/factory";
|
|
|
|
import { getWorkCenterList, listFactory } from "@/api/wms/factory";
|
|
|
|
import { listTeamMembers } from "@/api/wms/team";
|
|
|
|
import { listTeamMembers } from "@/api/wms/team";
|
|
|
@ -1239,6 +1240,7 @@ export default {
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 1000,
|
|
|
|
pageSize: 1000,
|
|
|
|
equipmentCategory: null,
|
|
|
|
equipmentCategory: null,
|
|
|
|
|
|
|
|
equipmentCode: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1501,10 +1503,19 @@ export default {
|
|
|
|
this.options1 = response.rows;
|
|
|
|
this.options1 = response.rows;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getEquipment(equipmentId).then((response) => {
|
|
|
|
|
|
|
|
console.log("getEquipment");
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
this.rightList = [];
|
|
|
|
|
|
|
|
for (let i in response.data.selectedData) {
|
|
|
|
|
|
|
|
// 将返回的备品备件列表赋值于穿梭框右边列表
|
|
|
|
|
|
|
|
this.rightList.push(response.data.selectedData[i].spareCode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.auxiliaryEquipmentLeftList = [];
|
|
|
|
this.queryAuxiliaryEquipmentParams.equipmentCategory = "0";
|
|
|
|
this.queryAuxiliaryEquipmentParams.equipmentCategory = "0";
|
|
|
|
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
|
|
|
|
this.queryAuxiliaryEquipmentParams.equipmentCode = this.form.equipmentCode;
|
|
|
|
console.log("listEquipment");
|
|
|
|
getEquipmentListByCategory(this.queryAuxiliaryEquipmentParams).then((response) => {
|
|
|
|
this.auxiliaryEquipmentLeftList = [];
|
|
|
|
|
|
|
|
for (let i in response.rows) {
|
|
|
|
for (let i in response.rows) {
|
|
|
|
// 将返回的列表赋值于穿梭框左边列表
|
|
|
|
// 将返回的列表赋值于穿梭框左边列表
|
|
|
|
this.auxiliaryEquipmentLeftList.push({
|
|
|
|
this.auxiliaryEquipmentLeftList.push({
|
|
|
@ -1518,23 +1529,13 @@ export default {
|
|
|
|
console.log(this.auxiliaryEquipmentRightList);
|
|
|
|
console.log(this.auxiliaryEquipmentRightList);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
getEquipment(equipmentId).then((response) => {
|
|
|
|
|
|
|
|
console.log("getEquipment");
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
this.rightList = [];
|
|
|
|
|
|
|
|
for (let i in response.data.selectedData) {
|
|
|
|
|
|
|
|
// 将返回的备品备件列表赋值于穿梭框右边列表
|
|
|
|
|
|
|
|
this.rightList.push(response.data.selectedData[i].spareCode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.auxiliaryEquipmentRightList = [];
|
|
|
|
this.auxiliaryEquipmentRightList = [];
|
|
|
|
console.log(this.auxiliaryEquipmentRightList);
|
|
|
|
|
|
|
|
for (let i in response.data.selectedEquipmentData) {
|
|
|
|
for (let i in response.data.selectedEquipmentData) {
|
|
|
|
// 将返回的辅助设备列表赋值于穿梭框右边列表
|
|
|
|
// 将返回的辅助设备列表赋值于穿梭框右边列表
|
|
|
|
this.auxiliaryEquipmentRightList.push(
|
|
|
|
this.auxiliaryEquipmentRightList.push(
|
|
|
|
response.data.selectedEquipmentData[i].auxiliaryEquipmentCode
|
|
|
|
response.data.selectedEquipmentData[i].auxiliaryEquipmentCode
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(this.auxiliaryEquipmentRightList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data.imageFiles != null) {
|
|
|
|
if (response.data.imageFiles != null) {
|
|
|
|
var newFiles = [];
|
|
|
|
var newFiles = [];
|
|
|
@ -1568,6 +1569,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.form.workCenter = this.form.workshopCode;
|
|
|
|
this.form.workCenter = this.form.workshopCode;
|
|
|
|
this.repairRecordSteps = 0;
|
|
|
|
this.repairRecordSteps = 0;
|
|
|
|
|
|
|
|
this.queryAuxiliaryEquipmentParams.equipmentCode = null;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改设备管理";
|
|
|
|
this.title = "修改设备管理";
|
|
|
|
});
|
|
|
|
});
|
|
|
|