点检计划

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

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

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

File diff suppressed because it is too large Load Diff

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

Loading…
Cancel
Save