|
|
|
@ -18,6 +18,21 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="检查类型" prop="inspectType">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.inspectType"
|
|
|
|
|
placeholder="检查类型"
|
|
|
|
|
clearable
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.dms_inspect_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="巡检线路ID,关联dm_base_inspect_route的inspect_route_id" prop="inspectRouteId">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="queryParams.inspectRouteId"-->
|
|
|
|
@ -124,11 +139,11 @@
|
|
|
|
|
<el-table-column label="计划编号" align="center" prop="planInspectCode" />
|
|
|
|
|
<el-table-column label="计划名称" align="center" prop="planInspectName" />
|
|
|
|
|
<!-- <el-table-column label="检查类型(1巡检,2点检)" align="center" prop="inspectType" />-->
|
|
|
|
|
<!-- <el-table-column label="巡检类型" align="center" prop="inspectType">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<el-table-column label="巡检类型" align="center" prop="inspectType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="巡检线路ID,关联dm_base_inspect_route的inspect_route_id" align="center" prop="inspectRouteId" />-->
|
|
|
|
|
<el-table-column label="巡检线路" align="center" prop="inspectRouteId" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -148,7 +163,12 @@
|
|
|
|
|
<span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="循环周期" align="center" prop="cyclePeriod" />
|
|
|
|
|
<!-- <el-table-column label="循环周期" align="center" prop="cyclePeriod" />-->
|
|
|
|
|
<el-table-column label="循环周期" align="center" prop="cyclePeriod">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.dms_cycle_period" :value="scope.row.inspectType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="执行人员" align="center" prop="performer" />
|
|
|
|
|
<!-- <el-table-column label="是否标识:1-是;0-否" align="center" prop="isFlag" />-->
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
@ -202,15 +222,15 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="巡检类型" prop="checkState">-->
|
|
|
|
|
<!-- <el-radio-group v-model="form.inspectType">-->
|
|
|
|
|
<!-- <el-radio-->
|
|
|
|
|
<!-- v-for="dict in dict.type.dms_inspect_type"-->
|
|
|
|
|
<!-- :key="dict.value"-->
|
|
|
|
|
<!-- :label="dict.value"-->
|
|
|
|
|
<!-- >{{dict.label}}</el-radio>-->
|
|
|
|
|
<!-- </el-radio-group>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="巡检类型" prop="checkState">
|
|
|
|
|
<el-radio-group v-model="form.inspectType">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.dms_inspect_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="设备总数" prop="deviceAmount">
|
|
|
|
|
<el-input v-model="form.deviceAmount" placeholder="请输入设备总数" />
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -222,8 +242,17 @@
|
|
|
|
|
placeholder="请选择计划巡检时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="循环周期" prop="cyclePeriod">-->
|
|
|
|
|
<!-- <el-input v-model="form.cyclePeriod" placeholder="请输入循环周期" />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<el-form-item label="循环周期" prop="cyclePeriod">
|
|
|
|
|
<el-input v-model="form.cyclePeriod" placeholder="请输入循环周期" />
|
|
|
|
|
<el-radio-group v-model="form.cyclePeriod">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in dict.type.dms_cycle_period"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="执行人员" prop="performer">
|
|
|
|
|
<el-input v-model="form.performer" placeholder="请输入执行人员" />
|
|
|
|
@ -249,10 +278,9 @@ import { listDmsBaseInspectRoute } from '@/api/dms/dmsBaseInspectRoute'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "DmsPlanInspect",
|
|
|
|
|
dicts:['dms_inspect_type'],
|
|
|
|
|
dicts:['dms_inspect_type','dms_cycle_period'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
inspectType:'',
|
|
|
|
|
dmsBaseInspectRouteList:[],
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
@ -309,16 +337,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
/** 查询巡检计划信息列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
if (this.$route.path=='/dms/inspect/dmsPlanInspect')
|
|
|
|
|
{
|
|
|
|
|
this.queryParams.inspectType =1
|
|
|
|
|
this.inspectType = 1
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
this.queryParams.inspectType = 2
|
|
|
|
|
this.inspectType = 2
|
|
|
|
|
}
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listDmsPlanInspect(this.queryParams).then(response => {
|
|
|
|
|
this.dmsPlanInspectList = response.rows;
|
|
|
|
@ -389,14 +407,12 @@ export default {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.planInspectId != null) {
|
|
|
|
|
this.form.inspectType = this.inspectType;
|
|
|
|
|
updateDmsPlanInspect(this.form).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.form.inspectType = this.inspectType;
|
|
|
|
|
addDmsPlanInspect(this.form).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|