检查项

yangwl
wws 12 months ago
parent 7dc0596720
commit b095b6a12a

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

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

@ -873,7 +873,7 @@ import {
delUpkeepPlan,
addUpkeepPlan,
updateUpkeepPlan,
formatEquItem, setSpareList, querySpareList
formatEquItem, setSpareList, querySpareList, formatEquItemNoCondition
} from "@/api/device/upkeepPlan";
import {
addPlan,
@ -1401,6 +1401,7 @@ export default {
}
//
if (this.form.calculationRule == "2"){
formatEquItem(this.selectEquList).then(response => {
for (let i = 0; i < response.data.length; i++) {
@ -1409,6 +1410,16 @@ export default {
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