@@ -183,7 +193,7 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
- {{ scope.row[item.columnProp] }}
+ {{ scope.row[item.columnProp] }}
@@ -255,7 +265,7 @@
-
+
@@ -551,6 +561,13 @@
planOperatorName:'',
workTime:'',
remark:'',
+ actualOperatorName: '',
+ checkResult: '',
+ planID: '',
+ objectID: '',
+ checker: '',
+ checkerName: '',
+ status: ''
},
columnDetailList: [
{
@@ -691,7 +708,8 @@
checker: '',
checkerName: '',
difficultyLevel: '',
- difficultyRemark: ''
+ difficultyRemark: '',
+ status: ''
},
submitModelFlag: false
}
@@ -715,10 +733,8 @@
console.log(this.$route.meta.menuId)
userFavoriteList(userFavorite).then(({data}) => {
for (let i = 0; i < data.list.length; i++) {
- // let flag=false;
if(this.$route.meta.menuId==data.list[i].menuId){
this.favorite = true
- // flag=true;
}
}
})
@@ -730,17 +746,10 @@
functionId: this.$route.meta.menuId,
}
if (this.favorite) {
- // 取消收藏
- // this.$confirm(`确定取消收藏`, '提示', {
- // confirmButtonText: '确定',
- // cancelButtonText: '取消',
- // type: 'warning'
- // }).then(() => {
- removeUserFavorite(userFavorite).then(({data}) => {
- this.$message.success(data.msg)
- this.favorite = false
- })
- // })
+ removeUserFavorite(userFavorite).then(({data}) => {
+ this.$message.success(data.msg)
+ this.favorite = false
+ })
} else {
// 收藏
saveUserFavorite(userFavorite).then(({data}) => {
@@ -767,7 +776,6 @@
this.planOperator = val.AdminID
this.planOperatorName = val.AdminName
}
-
},
//导出excel
async createExportData() {
@@ -779,7 +787,7 @@
return this.exportList;
},
startDownload() {
- // this.exportData = this.dataList
+
},
finishDownload() {
@@ -832,33 +840,28 @@
this.dataListSelections = val
},
// 审核按钮
- checkModal(row){
- this.submitData.site = row.site
- this.submitData.orderNo = row.orderNo
- this.submitData.planID = row.planID
- this.submitData.objectID = row.objectID
- this.submitData.checker = row.checker
- this.submitData.checkerName = row.checkerName
+ checkModal(){
+ this.submitData.site = this.saveData.site
+ this.submitData.orderNo = this.saveData.orderNo
+ this.submitData.planID = this.saveData.planID
+ this.submitData.objectID = this.saveData.objectID
+ this.submitData.checker = this.saveData.checker
+ this.submitData.checkerName = this.saveData.checkerName
+ this.submitData.status = this.saveData.status
let tempData = {
site: this.$store.state.user.site,
mesUser: this.$store.state.user.name
}
- selectNameByMes(tempData).then(({data}) => {
- if (data.rows[0].adminName != this.submitData.checkerName){
- this.$alert('审核人员与计划不符!', '错误', {
- confirmButtonText: '确定',
- type: 'warning'
- })
- return false
- }
- this.$confirm(`是否确认审核?`, '提示', {
+ if (this.submitData.status === '已完工'){
+ this.$confirm(`是否取消审核?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
checkWorkOrder(this.submitData).then(({data}) => {
- if (data && data.code == 0) {
- this.getDataList()
+ if (data && data.code === 0) {
+ this.getDataList();
+ this.detailModelFlag = false;
this.$message({
message: '操作成功',
type: 'success',
@@ -874,8 +877,41 @@
})
}).catch(() => {
})
- })
- // this.submitModelFlag = true
+ }else if (this.submitData.status === '待审核'){
+ selectNameByMes(tempData).then(({data}) => {
+ if (data.rows[0].adminName != this.submitData.checkerName){
+ this.$alert('审核人员与计划不符!', '错误', {
+ confirmButtonText: '确定',
+ type: 'warning'
+ })
+ return false
+ }
+ this.$confirm(`是否确认审核?`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ checkWorkOrder(this.submitData).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: '确定'
+ })
+ }
+ })
+ }).catch(() => {
+ })
+ })
+ }
},
// 确认审核
submitModel(){
@@ -904,7 +940,7 @@
})
},
- // 实测值按钮
+ // 详情
reportModal(row){
let indata = {
site: row.site,
@@ -923,7 +959,13 @@
planOperatorName: row.planOperatorName,
workTime: row.workTime,
remark: row.remark,
- },
+ actualOperatorName: row.actualOperatorName,
+ checkResult: row.checkResult,
+ objectID: row.objectID,
+ checker: row.checker,
+ checkerName: row.checkerName,
+ status: row.status
+ }
this.detailModelFlag = true;
},
cancelOrder(row){
diff --git a/src/views/modules/eam/eamWorkOrderForMaintenance.vue b/src/views/modules/eam/eamWorkOrderForMaintenance.vue
index d13001e..a3f390a 100644
--- a/src/views/modules/eam/eamWorkOrderForMaintenance.vue
+++ b/src/views/modules/eam/eamWorkOrderForMaintenance.vue
@@ -7,13 +7,13 @@