设备管理点巡检,保养的计划新增加巡检级别

master
maxw@mesnac.com 1 month ago
parent ba106f1116
commit b9d0f6c356

@ -213,6 +213,15 @@
<el-form-item label="计划编号" prop="planInspectCode"> <el-form-item label="计划编号" prop="planInspectCode">
<el-input v-model="form.planInspectCode" placeholder="请输入计划编号,如a001" /> <el-input v-model="form.planInspectCode" placeholder="请输入计划编号,如a001" />
</el-form-item> </el-form-item>
<el-form-item label="巡检级别" prop="inspectLevel">
<el-radio-group v-model="form.inspectLevel">
<el-radio
v-for="dict in dict.type.dms_inspect_level"
:key="dict.value"
:label="parseInt(dict.value)"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="计划名称" prop="planInspectName"> <el-form-item label="计划名称" prop="planInspectName">
<el-input v-model="form.planInspectName" placeholder="请输入计划名称,如二楼巡检计划" /> <el-input v-model="form.planInspectName" placeholder="请输入计划名称,如二楼巡检计划" />
</el-form-item> </el-form-item>
@ -242,12 +251,37 @@
<el-input v-model="form.deviceAmount" placeholder="请输入设备总数" :disabled=true > <el-input v-model="form.deviceAmount" placeholder="请输入设备总数" :disabled=true >
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="时间" prop="week"> <!-- <el-form-item label="时间" prop="week">-->
<!-- &lt;!&ndash; <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>&ndash;&gt;-->
<!-- &lt;!&ndash; <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>&ndash;&gt;-->
<!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="时间" prop="hour">-->
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- &lt;!&ndash; <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>&ndash;&gt;-->
<!-- &lt;!&ndash; <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>&ndash;&gt;-->
<!-- </el-form-item>-->
<el-form-item label="年" prop="year" v-if="form.inspectLevel==3">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.year" placeholder="请输入年份" :precision="0" :min="0" :max="2030"/>
</el-form-item>
<el-form-item label="周" prop="week" v-if="form.inspectLevel==2">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>--> <!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>--> <!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/> <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>
</el-form-item> </el-form-item>
<el-form-item label="时间" prop="hour"> <el-form-item label="月" prop="month">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.month" placeholder="请输入月份" :precision="0" :min="0" :max="12"/>
</el-form-item>
<el-form-item label="天" prop="day" v-if="form.inspectLevel!=2">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.day" placeholder="请输入几号" :precision="0" :min="0" :max="30"/>
</el-form-item>
<el-form-item label="时" prop="hour">
<el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/> <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>--> <!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>--> <!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>-->
@ -343,7 +377,7 @@ import {findUserList} from "@/api/system/user";
export default { export default {
components: { Crontab }, components: { Crontab },
name: "DmsPlanInspect", name: "DmsPlanInspect",
dicts:['dms_inspect_type','dms_cycle_period'], dicts:['dms_maint_level','dms_inspect_type','dms_cycle_period','dms_inspect_level'],
data() { data() {
return { return {
// Cron // Cron
@ -400,6 +434,9 @@ export default {
hour: [ hour: [
{ required: true, message: "定时计划时不能为空", trigger: "blur" } { required: true, message: "定时计划时不能为空", trigger: "blur" }
], ],
inspectLevel: [
{ required: true, message: "巡检级别不能为空", trigger: "blur" }
],
} }
}; };
}, },

@ -240,12 +240,27 @@
</el-form-item> </el-form-item>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="时间" prop="week"> <el-form-item label="年" prop="year" v-if="form.maintLevel==3">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.year" placeholder="请输入年份" :precision="0" :min="0" :max="2030"/>
</el-form-item>
<el-form-item label="周" prop="week" v-if="form.maintLevel==2">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>
</el-form-item>
<el-form-item label="月" prop="month">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.month" placeholder="请输入月份" :precision="0" :min="0" :max="12"/>
</el-form-item>
<el-form-item label="天" prop="day" v-if="form.maintLevel!=2">
<!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>--> <!-- <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>-->
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>--> <!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/> <el-input-number v-model="form.day" placeholder="请输入" :precision="0" :min="0" :max="30"/>
</el-form-item> </el-form-item>
<el-form-item label="时间" prop="hour"> <el-form-item label="时" prop="hour">
<el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/> <el-input-number v-model="form.hour" placeholder="请输入几点" :precision="0" :min="0" :max="23"/>
<!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>--> <!-- <el-input-number v-model="form.timeLimitHours" placeholder="请输入几日" :precision="0" :min="0" :max="31"/>-->
<!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>--> <!-- <el-input-number v-model="form.week" placeholder="请输入周几" :precision="0" :min="0" :max="7"/>-->
@ -379,6 +394,9 @@ export default {
hour: [ hour: [
{ required: true, message: "定时计划时不能为空", trigger: "blur" } { required: true, message: "定时计划时不能为空", trigger: "blur" }
], ],
maintLevel: [
{ required: true, message: "保养计划不能为空", trigger: "blur" }
],
} }
}; };
}, },

Loading…
Cancel
Save