1.八项作业强制回档

liujun-2024-09-05-九公司人员定位
guoyuepeng 2024-09-04 11:23:38 +08:00
parent cc83fc0828
commit 1354982c6a
1 changed files with 35 additions and 3 deletions

View File

@ -81,7 +81,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="STATE" label="审核状态" > <el-table-column prop="STATE" label="审核状态" >
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ translate(row.STATE.toString(), statusList) }} <template v-if="row.IS_FORCED_END ===1"> </template>
<template v-else > {{ translate(row.STATE.toString(), statusList) }} </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="examineUserName" label="审核人" > <el-table-column prop="examineUserName" label="审核人" >
@ -89,11 +90,12 @@
{{ row.examineUserName || row.examineDeptName }} {{ row.examineUserName || row.examineDeptName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="200"> <el-table-column label="操作" align="center" width="300">
<template slot-scope="{row}"> <template slot-scope="{row}">
<!-- <el-button :disabled="row.STATE !='11'" type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID,'apply')"></el-button>--> <!-- <el-button :disabled="row.STATE !='11'" type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID,'apply')"></el-button>-->
<!-- <el-button :disabled="row.STATE !='-2'" type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID,'repulse')"></el-button>--> <!-- <el-button :disabled="row.STATE !='-2'" type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORKAPPLICATION_ID,'repulse')"></el-button>-->
<el-button icon="el-icon-view" size="mini" @click="goInfo(row.HOTWORKAPPLICATION_ID,'see')"></el-button> <el-button icon="el-icon-view" size="mini" @click="goInfo(row.HOTWORKAPPLICATION_ID,'see')"></el-button>
<el-button v-if="(row.CREATOR == loginUserID || loginUserID == '1' || loginRoleNumber == 'R20201225624685') && row.STATE != 11" type="primary" icon="el-icon-document" size="mini" @click="forcedEnd(row.HOTWORKAPPLICATION_ID,row.STATE)"></el-button>
<!--<el-button v-if="row.STATE=='-6' && row.CREATOR == loginUserID" type="danger" icon="el-icon-delete" plain @click="batchDel(row.HOTWORKAPPLICATION_ID)"></el-button>--> <!--<el-button v-if="row.STATE=='-6' && row.CREATOR == loginUserID" type="danger" icon="el-icon-delete" plain @click="batchDel(row.HOTWORKAPPLICATION_ID)"></el-button>-->
<el-button v-if="(row.CREATOR == loginUserID || loginUserID == '1' || loginRoleNumber == 'R20201225624685') && row.STATE != 11" type="danger" icon="el-icon-delete" plain @click="batchDel(row.HOTWORKAPPLICATION_ID)"></el-button> <el-button v-if="(row.CREATOR == loginUserID || loginUserID == '1' || loginRoleNumber == 'R20201225624685') && row.STATE != 11" type="danger" icon="el-icon-delete" plain @click="batchDel(row.HOTWORKAPPLICATION_ID)"></el-button>
</template> </template>
@ -184,7 +186,7 @@ export default {
{ id: '36', name: '安委会办公室待审批' }, { id: '36', name: '安委会办公室待审批' },
{ id: '37', name: '安全总监待审批' }, { id: '37', name: '安全总监待审批' },
{ id: '10', name: '延时监火' }, { id: '10', name: '延时监火' },
{ id: '11', name: '归档' }, { id: '11', name: '归档' }, // 1.,2.
{ id: '-1', name: '审核不通过' }, { id: '-1', name: '审核不通过' },
{ id: '-2', name: '特级不通过' }, { id: '-2', name: '特级不通过' },
{ id: '-3', name: '关闭归档' }, { id: '-3', name: '关闭归档' },
@ -294,6 +296,7 @@ export default {
this.$parent.HOTWORKAPPLICATION_ID = id this.$parent.HOTWORKAPPLICATION_ID = id
this.$parent.HOTWORKAPPLICATION_TYPE = type this.$parent.HOTWORKAPPLICATION_TYPE = type
}, },
getDictTreeData() { getDictTreeData() {
return new Promise((resolve) => { return new Promise((resolve) => {
requestFN( requestFN(
@ -354,6 +357,35 @@ export default {
}) })
}).catch(() => { }).catch(() => {
}) })
},
forcedEnd(id, STATE) { //
this.$confirm('确定要强制结束吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/hotworkapplication/forcedEnd',
{
HOTWORKAPPLICATION_ID: id,
STATE: STATE,
loginUserId: this.loginUserID
}
).then(() => {
this.$message({
message: '删除成功',
type: 'success'
})
this.listLoading = false
this.varList = []
this.listQuery.page = 1
this.getList()
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
})
} }
} }
} }