点检计划

master
wws 1 year ago
parent 13e3e35528
commit 6acbc09c61

@ -0,0 +1,53 @@
import request from '@/utils/request'
// 处理计划-设备信息
export function formatEquItem(data) {
return request({
url: '/device/spotCheckPlan/formatEquItem',
method: 'post',
data: data
});
}
// 查询点检计划列表
export function listSpotCheckPlan(query) {
return request({
url: '/device/spotCheckPlan/list',
method: 'get',
params: query
});
}
// 查询点检计划详细
export function getSpotCheckPlan(planId) {
return request({
url: '/device/spotCheckPlan/' + planId,
method: 'get'
});
}
// 新增点检计划
export function addSpotCheckPlan(data) {
return request({
url: '/device/spotCheckPlan',
method: 'post',
data: data
});
}
// 修改点检计划
export function updateSpotCheckPlan(data) {
return request({
url: '/device/spotCheckPlan',
method: 'put',
data: data
});
}
// 删除点检计划
export function delSpotCheckPlan(planId) {
return request({
url: '/device/spotCheckPlan/' + planId,
method: 'delete'
});
}

@ -158,16 +158,16 @@
v-hasPermi="['device:faultType:remove']" v-hasPermi="['device:faultType:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5">--> <el-col :span="1.5">
<!-- <el-button--> <el-button
<!-- type="warning"--> type="warning"
<!-- plain--> plain
<!-- icon="el-icon-download"--> icon="el-icon-download"
<!-- size="mini"--> size="mini"
<!-- @click="handleExport"--> @click="handleExport"
<!-- v-hasPermi="['device:faultType:export']"--> v-hasPermi="['device:faultType:export']"
<!-- >导出</el-button>--> >导出</el-button>
<!-- </el-col>--> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
@ -414,15 +414,9 @@ export default {
this.open = true; this.open = true;
this.title = "添加故障类型维护"; this.title = "添加故障类型维护";
}, },
/** 修改按钮操作 */ /** 委外计划操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); console.log("点击了委外计划")
const faultId = row.faultId || this.ids
getFaultType(faultId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改故障类型维护";
});
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {

@ -229,7 +229,7 @@
>删除 >删除
</el-button> </el-button>
</el-col> </el-col>
<el-col v-if="false" :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
plain plain
@ -337,7 +337,7 @@
<el-step title="巡检人员"></el-step> <el-step title="巡检人员"></el-step>
</el-steps> </el-steps>
<!-- 巡检计划基本信息 --> <!-- 巡检计划基本信息 -->
<div class="my-step-body" v-if="this.inspectionPlanStep==0"> <div class="my-step-body" v-if="inspectionPlanStep==0">
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="计划名称"> <el-form-item label="计划名称">
@ -402,7 +402,7 @@
</el-row> </el-row>
</div> </div>
<!-- 选择设备巡检项目 --> <!-- 选择设备巡检项目 -->
<div class="my-step-body" v-if="this.inspectionPlanStep==1"> <div class="my-step-body" v-if="inspectionPlanStep==1">
<el-row> <el-row>
<el-col class="my-step-mar" :span="1.5"> <el-col class="my-step-mar" :span="1.5">
<el-button <el-button
@ -560,7 +560,7 @@
</el-dialog> </el-dialog>
</div> </div>
<!-- 巡检人员 --> <!-- 巡检人员 -->
<div class="my-step-body" v-if="this.inspectionPlanStep==2"> <div class="my-step-body" v-if="inspectionPlanStep==2">
<el-row> <el-row>
<el-col :span="24" :offset="1"> <el-col :span="24" :offset="1">
<el-transfer <el-transfer
@ -577,9 +577,9 @@
</div> </div>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button v-if="this.inspectionPlanStep>0" @click="stepLast"></el-button> <el-button v-if="inspectionPlanStep>0" @click="stepLast"></el-button>
<el-button v-if="this.inspectionPlanStep<2" @click="stepNext"></el-button> <el-button v-if="inspectionPlanStep<2" @click="stepNext"></el-button>
<el-button v-if="this.inspectionPlanStep==2" type="primary" @click="submitForm"> </el-button> <el-button v-if="inspectionPlanStep==2" type="primary" @click="submitForm"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -603,10 +603,6 @@ export default {
dicts: ['device_loop_type', 'sys_normal_disable'], dicts: ['device_loop_type', 'sys_normal_disable'],
data() { data() {
return { return {
//
changeCenter() {
},
// list // list
workCenterList: [], workCenterList: [],
// 穿 // 穿
@ -738,6 +734,10 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
//
changeCenter() {
},
// //
changeArray(e) { changeArray(e) {
console.log(e) console.log(e)

@ -178,17 +178,17 @@
>删除 >删除
</el-button> </el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5">--> <el-col :span="1.5">
<!-- <el-button--> <el-button
<!-- type="warning"--> type="warning"
<!-- plain--> plain
<!-- icon="el-icon-download"--> icon="el-icon-download"
<!-- size="mini"--> size="mini"
<!-- @click="handleExport"--> @click="handleExport"
<!-- v-hasPermi="['device:item:export']"--> v-hasPermi="['device:item:export']"
<!-- >导出--> >导出
<!-- </el-button>--> </el-button>
<!-- </el-col>--> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>

File diff suppressed because it is too large Load Diff

@ -238,7 +238,7 @@
>删除 >删除
</el-button> </el-button>
</el-col> </el-col>
<el-col v-if="false" :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
plain plain

Loading…
Cancel
Save