|
|
|
|
@ -10,6 +10,11 @@ |
|
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="{row}" slot="overStatusSearch"> |
|
|
|
|
<el-select placeholder="请选择完成状态" v-model="searchForm.overStatus"> |
|
|
|
|
<el-option v-for="item in overStatusList" :key="item.value" :label="item.name" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot="fillingTimeSearch"> |
|
|
|
|
<el-date-picker v-model="form.fillingTimeRange" type="daterange" range-separator="至" start-placeholder="提报开始日期" |
|
|
|
|
end-placeholder="提报结束日期"> |
|
|
|
|
@ -775,6 +780,14 @@ export default { |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "完成状态", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
prop: "overStatus", |
|
|
|
|
search: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
hide:true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "设备名称", |
|
|
|
|
labelWidth: 120, |
|
|
|
|
@ -835,7 +848,8 @@ export default { |
|
|
|
|
{ |
|
|
|
|
label:'维修人员', |
|
|
|
|
prop:"repairPersonName", |
|
|
|
|
hide:false |
|
|
|
|
hide:false, |
|
|
|
|
search:true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "审批时间", |
|
|
|
|
@ -897,8 +911,8 @@ export default { |
|
|
|
|
headers: { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
overStatusList:[], |
|
|
|
|
completeImgList: [],//维修完成上传图片 |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
@ -940,6 +954,61 @@ export default { |
|
|
|
|
|
|
|
|
|
this.role_id = this.userInfo.role_id |
|
|
|
|
this.dataTypes = this.userInfo.dataType |
|
|
|
|
// dataTypes 1:实验室 2:客服 3:维修负责人 4:维修人员 |
|
|
|
|
if(this.dataTypes == 2){ |
|
|
|
|
this.overStatusList = [ |
|
|
|
|
{ |
|
|
|
|
value:'101,400,205', |
|
|
|
|
name:'待派单' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'201,401,402,301', |
|
|
|
|
name:'待维修' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'403,202,405,105,406', |
|
|
|
|
name:'维修完成' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'203,204', |
|
|
|
|
name:'已完成' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}else if(this.dataTypes == 3){ |
|
|
|
|
this.overStatusList = [ |
|
|
|
|
{ |
|
|
|
|
value:'201', |
|
|
|
|
name:'待确认' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'103,404,401', |
|
|
|
|
name:'维修中' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'403,202,405,105,406', |
|
|
|
|
name:'维修完成' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'203,204', |
|
|
|
|
name:'已完成' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}else if(this.dataTypes == 4){ |
|
|
|
|
this.overStatusList = [ |
|
|
|
|
{ |
|
|
|
|
value:'201', |
|
|
|
|
name:'待确认' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'401,105', |
|
|
|
|
name:'待提交' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
value:'403,104,202,203,204,400', |
|
|
|
|
name:'已完成' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
// 获取维修人员列表 |
|
|
|
|
getRepairPeople().then(res => { |
|
|
|
|
this.repairPersonList = res.data.data |
|
|
|
|
@ -959,6 +1028,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
if(this.role_id == '1839552581620793346'){ |
|
|
|
|
this.option.column.find(item => item.prop == 'repairPersonName').hide = true |
|
|
|
|
this.option.column.find(item => item.prop == 'repairPersonName').search = false |
|
|
|
|
} |
|
|
|
|
} else if (this.role_id == '1839600115013713921') { |
|
|
|
|
this.option.column.find(item => item.prop == 'finishTime').hide = true |
|
|
|
|
@ -2000,7 +2070,9 @@ export default { |
|
|
|
|
endTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[1].toString() + ' 23:59:59' : '', //结束时间 |
|
|
|
|
faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型 |
|
|
|
|
reportUnitName: this.searchForm.reportUnitName ? this.searchForm.reportUnitName : '', |
|
|
|
|
dataType: this.role_id == '1123598816738675201' ? '' : this.dataTypes |
|
|
|
|
dataType: this.role_id == '1123598816738675201' ? '' : this.dataTypes, |
|
|
|
|
statusSearch:this.searchForm.overStatus ? this.searchForm.overStatus : '', |
|
|
|
|
repairPersonName:this.searchForm.repairPersonName ? this.searchForm.repairPersonName : '' |
|
|
|
|
} |
|
|
|
|
getList(query).then(res => { |
|
|
|
|
let data_ = res.data.data.records |
|
|
|
|
|