检查项

yangwl
wws 12 months ago
parent 7dc0596720
commit b095b6a12a

@ -17,6 +17,14 @@ export function formatEquItem(data) {
data: data data: data
}); });
} }
// 处理计划-设备信息
export function formatEquItemNoCondition(data) {
return request({
url: '/device/upkeepPlan/formatEquItemNoCondition',
method: 'post',
data: data
});
}
// 查询保养计划列表 // 查询保养计划列表
export function listUpkeepPlan(query) { export function listUpkeepPlan(query) {

@ -1169,7 +1169,7 @@ import {
addUpkeepOrder, addUpkeepOrder,
updateUpkeepOrder, subInspect updateUpkeepOrder, subInspect
} from "@/api/device/upkeepOrder"; } from "@/api/device/upkeepOrder";
import {formatEquItem, querySpareList} from "@/api/device/upkeepPlan"; import {formatEquItem, formatEquItemNoCondition, querySpareList} from "@/api/device/upkeepPlan";
import {getEquList, getPersonList, getWorkCenter} from "@/api/device/plan"; import {getEquList, getPersonList, getWorkCenter} from "@/api/device/plan";
import {delDeviceOrder, getDeviceOrder, listDeviceOrder, updateDeviceOrder} from "@/api/device/deviceOrder"; import {delDeviceOrder, getDeviceOrder, listDeviceOrder, updateDeviceOrder} from "@/api/device/deviceOrder";
import {getInspectionWork, updateInspectionWork} from "@/api/device/inspectionWork"; import {getInspectionWork, updateInspectionWork} from "@/api/device/inspectionWork";
@ -1636,7 +1636,7 @@ export default {
this.form.equipmentItem = []; this.form.equipmentItem = [];
// //
formatEquItem(this.selectEquList).then(response => { formatEquItemNoCondition(this.selectEquList).then(response => {
for (let i = 0; i < response.data.length; i++) { for (let i = 0; i < response.data.length; i++) {
this.form.equipmentItem.push(response.data[i]); this.form.equipmentItem.push(response.data[i]);

@ -873,7 +873,7 @@ import {
delUpkeepPlan, delUpkeepPlan,
addUpkeepPlan, addUpkeepPlan,
updateUpkeepPlan, updateUpkeepPlan,
formatEquItem, setSpareList, querySpareList formatEquItem, setSpareList, querySpareList, formatEquItemNoCondition
} from "@/api/device/upkeepPlan"; } from "@/api/device/upkeepPlan";
import { import {
addPlan, addPlan,
@ -1401,14 +1401,25 @@ export default {
} }
// //
formatEquItem(this.selectEquList).then(response => { if (this.form.calculationRule == "2"){
formatEquItem(this.selectEquList).then(response => {
for (let i = 0; i < response.data.length; i++) { for (let i = 0; i < response.data.length; i++) {
this.form.equipmentItem.push(response.data[i]); this.form.equipmentItem.push(response.data[i]);
} }
this.selectEqu = false; this.selectEqu = false;
}) })
}else {
formatEquItemNoCondition(this.selectEquList).then(response => {
for (let i = 0; i < response.data.length; i++) {
this.form.equipmentItem.push(response.data[i]);
}
this.selectEqu = false;
})
}
}, },
// //

Loading…
Cancel
Save