diff --git a/src/views/hotwork/hotwork/components/list.vue b/src/views/hotwork/hotwork/components/list.vue
index 1fe71dd..58dc09d 100644
--- a/src/views/hotwork/hotwork/components/list.vue
+++ b/src/views/hotwork/hotwork/components/list.vue
@@ -81,7 +81,8 @@
- {{ translate(row.STATE.toString(), statusList) }}
+ 强制回档
+ {{ translate(row.STATE.toString(), statusList) }}
@@ -89,11 +90,12 @@
{{ row.examineUserName || row.examineDeptName }}
-
+
查看
+ 强制结束
删除
@@ -184,7 +186,7 @@ export default {
{ id: '36', name: '安委会办公室待审批' },
{ id: '37', name: '安全总监待审批' },
{ id: '10', name: '延时监火' },
- { id: '11', name: '归档' },
+ { id: '11', name: '归档' }, // 分成两部分 1.回档,2.强制回档 有字段表示
{ id: '-1', name: '审核不通过' },
{ id: '-2', name: '特级不通过' },
{ id: '-3', name: '关闭归档' },
@@ -294,6 +296,7 @@ export default {
this.$parent.HOTWORKAPPLICATION_ID = id
this.$parent.HOTWORKAPPLICATION_TYPE = type
},
+
getDictTreeData() {
return new Promise((resolve) => {
requestFN(
@@ -354,6 +357,35 @@ export default {
})
}).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(() => {
+ })
}
}
}