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