|
|
|
@ -8,13 +8,16 @@ |
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()"> |
|
|
|
<el-form-item :label="'反馈单号'"> |
|
|
|
<el-input v-model="searchData.planID" style="width: 100px"></el-input> |
|
|
|
<el-input v-model="searchData.planID" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'工单编码'"> |
|
|
|
<el-input v-model="searchData.orderNo" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'设备编码'"> |
|
|
|
<el-input v-model="searchData.objectID" style="width: 100px"></el-input> |
|
|
|
<el-input v-model="searchData.objectID" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'计划机修人员编码'"> |
|
|
|
<el-input v-model="searchData.planOperator" style="width: 100px"></el-input> |
|
|
|
<el-input v-model="searchData.planOperator" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'人员部门'"> |
|
|
|
<!-- <span slot="label" @click="getDepartmentList()"><a>设备部门</a></span>--> |
|
|
|
@ -196,10 +199,10 @@ |
|
|
|
<el-date-picker style="width: 159px" v-model="detailData.planDate" type="datetime" readonly value-format='yyyy-MM-dd' format='yyyy-MM-dd'></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'到达时间'"> |
|
|
|
<el-date-picker style="width: 159px" v-model="detailData.reachDate" type="datetime" readonly value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss'></el-date-picker> |
|
|
|
<el-date-picker style="width: 159px" v-model="detailData.reachDate" type="datetime" value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss'></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'实际执行时间'"> |
|
|
|
<el-date-picker style="width: 159px" v-model="detailData.actualDate" type="datetime" readonly value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss'></el-date-picker> |
|
|
|
<el-date-picker style="width: 159px" v-model="detailData.actualDate" type="datetime" value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss'></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
@ -234,6 +237,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:40px;margin-top: 90px;text-align:center"> |
|
|
|
<el-button type="primary" @click="updateResult()">保存</el-button> |
|
|
|
<el-button type="primary" @click="detailModelFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
@ -314,10 +318,12 @@ |
|
|
|
submitDefect, |
|
|
|
searchFileUrl, |
|
|
|
getEmpyDeptList, |
|
|
|
getDeptList |
|
|
|
getDeptList, |
|
|
|
updateReportResult, // 修改执行结果 |
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js' |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
import {isAuth} from '../../../utils' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
Chooselist |
|
|
|
@ -394,11 +400,11 @@ |
|
|
|
columnLabel: '紧急程度', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 60, |
|
|
|
columnWidth: 90, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -412,10 +418,11 @@ |
|
|
|
columnLabel: '工单编码', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -429,10 +436,11 @@ |
|
|
|
columnLabel: '反馈单号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -450,6 +458,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -467,6 +476,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -484,6 +494,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -501,6 +512,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -518,6 +530,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -535,6 +548,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -552,6 +566,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -565,10 +580,11 @@ |
|
|
|
columnLabel: '状态', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -582,10 +598,11 @@ |
|
|
|
columnLabel: '维修结果', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -603,6 +620,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -620,6 +638,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -637,6 +656,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -650,10 +670,11 @@ |
|
|
|
columnLabel: '计划执行日期', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -667,10 +688,11 @@ |
|
|
|
columnLabel: '故障时间', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 130, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -684,10 +706,11 @@ |
|
|
|
columnLabel: '到达时间', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 130, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -701,10 +724,11 @@ |
|
|
|
columnLabel: '实际执行时间', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
columnSortable: true, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 130, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -722,6 +746,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 110, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -739,6 +764,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -756,6 +782,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -773,6 +800,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
@ -790,6 +818,7 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
], |
|
|
|
changeModelFlag:false, |
|
|
|
@ -870,7 +899,7 @@ |
|
|
|
controlRowStyle({row, rowIndex}) { |
|
|
|
// 区分不同的样式对应不同的颜色 |
|
|
|
if (row.status === '待审核') { |
|
|
|
return "background-color: #E2F1F5" |
|
|
|
return "background-color: #D8ECF1" |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -1077,6 +1106,10 @@ |
|
|
|
|
|
|
|
// 审核按钮 |
|
|
|
checkModal(){ |
|
|
|
if (!this.isAuth(this.$route.meta.menuId+":check")) { |
|
|
|
this.$message.warning('无审核权限!') |
|
|
|
return |
|
|
|
} |
|
|
|
this.submitData.site = this.detailData.site |
|
|
|
this.submitData.orderNo = this.detailData.orderNo |
|
|
|
this.submitData.planID = this.detailData.planID |
|
|
|
@ -1096,14 +1129,13 @@ |
|
|
|
this.submitData.status = '待审核' |
|
|
|
submitDefect(this.submitData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList(); |
|
|
|
this.getDataList() |
|
|
|
this.detailData.status = '待审核' |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => { |
|
|
|
} |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
@ -1166,11 +1198,47 @@ |
|
|
|
actualDate: row.actualDate, |
|
|
|
planDesc: row.planDesc, |
|
|
|
disposalMeasures: row.disposalMeasures, |
|
|
|
handlingMethod: row.handlingMethod |
|
|
|
handlingMethod: row.handlingMethod, |
|
|
|
functionType: row.functionType |
|
|
|
} |
|
|
|
this.detailModelFlag = true; |
|
|
|
}, |
|
|
|
|
|
|
|
updateResult () { |
|
|
|
if (!this.isAuth(this.$route.meta.menuId+":check")) { |
|
|
|
this.$message.warning('无审核权限!') |
|
|
|
return |
|
|
|
} |
|
|
|
if(this.detailData.reachDate === '' || this.detailData.reachDate == null){ |
|
|
|
this.$message.warning('请选择到达时间!') |
|
|
|
return |
|
|
|
} |
|
|
|
if(this.detailData.actualDate === '' || this.detailData.actualDate == null){ |
|
|
|
this.$message.warning('请选择实际执行时间!') |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.detailData.reachDate > this.detailData.actualDate) { |
|
|
|
this.$message.warning('到达时间不能小于实际执行时间!') |
|
|
|
return |
|
|
|
} |
|
|
|
updateReportResult(this.detailData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList() |
|
|
|
this.detailModelFlag = false |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500, |
|
|
|
onClose: () => {} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 查看故障图片 |
|
|
|
*/ |
|
|
|
|