|
|
|
@ -168,7 +168,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- <a type="text" size="small" v-if="scope.row.status === '待审核'" @click="checkModal(scope.row)">审核</a>--> |
|
|
|
<el-link style="cursor: pointer" v-if="(scope.row.status === '待审核' || scope.row.status === '已完工') && !authDetail" @click="reportModal(scope.row)">详情</el-link> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '待确认' && !authDetail" @click="confirmResult(scope.row)">确认</el-link> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '待确认' && !authDetail && confirmButtonFlag" @click="confirmResult(scope.row)">确认</el-link> |
|
|
|
<el-link style="cursor: pointer" v-if="scope.row.status === '未开工' && !authCancel" @click="cancelOrder(scope.row)">取消工单</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -275,7 +275,7 @@ |
|
|
|
<el-input-number :controls="false" :step="0" :min="0" :disabled="detailData.status === '已完工'" v-model="detailData.responseTime" style="width: 80px"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" " style="margin-left: 30px"> |
|
|
|
<el-checkbox v-model="detailData.uploadMalfunctionPicturesFlag" @input="checkboxInput" |
|
|
|
<el-checkbox v-model="detailData.uploadMalfunctionPicturesFlag" |
|
|
|
:class="detailData.uploadMalfunctionPicturesFlag==='Y'?'ifcheckboxColor':''" disabled :true-label="'Y'" :false-label="'N'"> |
|
|
|
是否上传故障图片</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
@ -735,6 +735,7 @@ import { |
|
|
|
getFeedBackImages, // 获取故障图片 |
|
|
|
queryHistoryRecord, // 查看维修历史 |
|
|
|
getSparPartImages, // 获取备件图片 |
|
|
|
getConfirmButtonOperator, // 获取确认按钮操作人 |
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import { |
|
|
|
downLoadObjectFile, |
|
|
|
@ -780,6 +781,8 @@ export default { |
|
|
|
exportHeader: ["维修工单"], |
|
|
|
exportFooter: [], |
|
|
|
exportList: [], |
|
|
|
confirmButtonOperatorList: [], |
|
|
|
confirmButtonFlag: false, |
|
|
|
// 导出 end |
|
|
|
tagNo: '', |
|
|
|
coreComponentData: { |
|
|
|
@ -1780,6 +1783,7 @@ export default { |
|
|
|
// 查询登陆人员的部门,并过滤出相应工单 |
|
|
|
this.getUserDept() |
|
|
|
} |
|
|
|
this.getConfirmButtonOperator() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
@ -1809,6 +1813,18 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getConfirmButtonOperator(){ |
|
|
|
getConfirmButtonOperator().then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.confirmButtonOperatorList = data.rows |
|
|
|
let usernameList = [] |
|
|
|
this.confirmButtonOperatorList.forEach(val => { |
|
|
|
usernameList.push(val.adminID) |
|
|
|
}) |
|
|
|
this.confirmButtonFlag = usernameList.includes(this.$store.state.user.name) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 控制单行的背景颜色 |
|
|
|
controlRowStyle({row, rowIndex}) { |
|
|
|
|