巡检任务 加上报修类型和紧急程度

dev
wangwei 2 years ago
parent ce9b753f7d
commit 80a5fce9e5

@ -82,7 +82,8 @@
<el-form-item label="项目类型:" prop="type"> <el-form-item label="项目类型:" prop="type">
<el-select v-model="inspectTake.type" style="width: 90%" <el-select v-model="inspectTake.type" style="width: 90%"
:disabled="formName == 'edit' || type == 3" :disabled="formName == 'edit' || type == 3"
placeholder="请选择项目类型" clearable="true" @change="repairType"
placeholder="请选择项目类型"
> >
<el-option label="巡检" :value="1"></el-option> <el-option label="巡检" :value="1"></el-option>
<el-option label="养护" :value="2"></el-option> <el-option label="养护" :value="2"></el-option>
@ -93,6 +94,32 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="ischeck">
<el-col :span="10">
<el-form-item class="query-form-item" label="维修类型:" prop="repairType">
<el-select v-model="inspectTake.repairType"
:disabled="formName == 'edit' || type == 3"
placeholder="请选择维修类型" style="width: 90%" clearable>
<el-option label="自行维修" :value=1></el-option>
<el-option label="外部维修" :value=2></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item class="query-form-item" label="紧急程度:" prop="level">
<el-select v-model="inspectTake.level"
:disabled="formName == 'edit' || type == 3"
placeholder="请选择紧急程度" style="width: 90%" clearable>
<el-option label="正常" :value=1></el-option>
<el-option label="较急" :value=2></el-option>
<el-option label="特急" :value=3></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
@ -346,6 +373,7 @@ export default {
updateTime: null, updateTime: null,
taskOrderIdFk: null taskOrderIdFk: null
}, },
ischeck:false,
deviceList: [], deviceList: [],
delectList: [], delectList: [],
deviceTotal: 0, deviceTotal: 0,
@ -361,6 +389,8 @@ export default {
deviceName: [{required: true, message:"请输入设备名称!",trigger: 'blur'}], deviceName: [{required: true, message:"请输入设备名称!",trigger: 'blur'}],
code: [{required: true, message:"请输入物资编码!",trigger: 'blur'}], code: [{required: true, message:"请输入物资编码!",trigger: 'blur'}],
type: [{required: true, message:"请选择类型!",trigger: 'blur'}], type: [{required: true, message:"请选择类型!",trigger: 'blur'}],
repairType: [{required: true, message:"请选择维修类型!",trigger: 'blur'}],
level: [{required: true, message:"请选择紧急程度!",trigger: 'blur'}],
}, },
statusMap: { statusMap: {
1: "未开始", 1: "未开始",
@ -387,6 +417,15 @@ export default {
this.getInvList(); this.getInvList();
}); });
}, },
repairType(val){
if(val == 3){
//
this.ischeck = true;
}else
this.ischeck = false;
},
getInvList() { getInvList() {
let params = {deptCode: this.inspectTake.deptCode}; let params = {deptCode: this.inspectTake.deptCode};
getInvListByUser(params) getInvListByUser(params)
@ -646,6 +685,9 @@ export default {
this.getUserBus(); this.getUserBus();
if (!isBlank(this.inspectTake.id)) { if (!isBlank(this.inspectTake.id)) {
this.selectDeviceInspecTakeDetail({taskOrderIdFk: this.inspectTake.orderId}); this.selectDeviceInspecTakeDetail({taskOrderIdFk: this.inspectTake.orderId});
if(this.inspectTake.type == 3){
this.ischeck =true
}
} }
} }
, ,

@ -71,7 +71,9 @@
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
<el-form-item label="项目类型:" prop="type"> <el-form-item label="项目类型:" prop="type">
<el-select v-model="inspectTake.type" style="width: 90%" disabled placeholder="请选择项目类型" clearable="true"> <el-select v-model="inspectTake.type" style="width: 90%"
@change="repairType"
disabled placeholder="请选择项目类型" clearable="true">
<el-option label="巡检" :value="1"></el-option> <el-option label="巡检" :value="1"></el-option>
<el-option label="养护" :value="2"></el-option> <el-option label="养护" :value="2"></el-option>
<el-option label="报修" :value="3"></el-option> <el-option label="报修" :value="3"></el-option>
@ -96,6 +98,31 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="ischeck">
<el-col :span="10">
<el-form-item class="query-form-item" label="维修类型:" prop="repairType">
<el-select v-model="inspectTake.repairType"
disabled
placeholder="请选择维修类型" style="width: 90%" clearable>
<el-option label="自行维修" :value=1></el-option>
<el-option label="外部维修" :value=2></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item class="query-form-item" label="紧急程度:" prop="level">
<el-select v-model="inspectTake.level"
disabled
placeholder="请选择紧急程度" style="width: 90%" clearable>
<el-option label="正常" :value=1></el-option>
<el-option label="较急" :value=2></el-option>
<el-option label="特急" :value=3></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
@ -245,6 +272,7 @@ export default {
updateTime: null, updateTime: null,
taskOrderIdFk: null taskOrderIdFk: null
}, },
ischeck:false,
deviceList: [], deviceList: [],
delectList: [], delectList: [],
deviceTotal: 0, deviceTotal: 0,
@ -312,6 +340,15 @@ export default {
}, },
//!-------------------------------------------------------------- --------------------------------------------------------- // //!-------------------------------------------------------------- --------------------------------------------------------- //
repairType(val){
if(val == 3){
//
this.ischeck = true;
}else
this.ischeck = false;
},
selectDeviceInspecTakeDetail(obj) { selectDeviceInspecTakeDetail(obj) {
selectDeviceInspecTakeDetail(obj).then((res) => { selectDeviceInspecTakeDetail(obj).then((res) => {
this.loading = false; this.loading = false;
@ -459,6 +496,9 @@ export default {
this.getUserBus(); this.getUserBus();
if (!isBlank(this.inspectTake.id)) { if (!isBlank(this.inspectTake.id)) {
this.selectDeviceInspecTakeDetail({taskOrderIdFk: this.inspectTake.orderId}); this.selectDeviceInspecTakeDetail({taskOrderIdFk: this.inspectTake.orderId});
if(this.inspectTake.type == 3){
this.ischeck =true
}
} }
} }
, ,

Loading…
Cancel
Save