feat(forceNotice): 新增强制注销公告发起功能
- 在完成页面表格中新增所在单位列,并将接收人改为当前办理人 - 新增保存并发起拟强制注销公告按钮功能 - 添加确认提示对话框,防止误操作 - 集成强制注销相关API接口调用 - 优化任务列表页面的确认提示文案和样式
This commit is contained in:
parent
c8284b287b
commit
6f9341f563
|
|
@ -136,11 +136,10 @@
|
||||||
<el-table-column prop="acceptno" label="受理编号" min-width="90" align="left" />
|
<el-table-column prop="acceptno" label="受理编号" min-width="90" align="left" />
|
||||||
<el-table-column prop="busname" :show-overflow-tooltip="true" label="业务名称" min-width="120" align="left" />
|
<el-table-column prop="busname" :show-overflow-tooltip="true" label="业务名称" min-width="120" align="left" />
|
||||||
<el-table-column prop="busTypeName" label="业务类型" min-width="100" align="left" />
|
<el-table-column prop="busTypeName" label="业务类型" min-width="100" align="left" />
|
||||||
|
<el-table-column prop="orgunitname" label="所在单位" min-width="100" align="left" />
|
||||||
<el-table-column prop="busStatusName" label="业务状态" min-width="60" align="left" />
|
<el-table-column prop="busStatusName" label="业务状态" min-width="60" align="left" />
|
||||||
<el-table-column prop="signloginname" label="接收人" min-width="50" align="left" />
|
<el-table-column prop="currusername" label="当前办理人" min-width="80" align="left" />
|
||||||
<el-table-column prop="createTime" label="受理时间" min-width="60" align="left" :formatter="dateFormat" />
|
<el-table-column prop="createTime" label="受理时间" min-width="60" align="left" :formatter="dateFormat" />
|
||||||
<el-table-column prop="sendertime" label="发送时间" min-width="80" align="left" :formatter="dateFormat1" />
|
|
||||||
<el-table-column prop="sendername" label="发送人" min-width="50" align="left" />
|
|
||||||
<el-table-column label="操作" min-width="120" align="left">
|
<el-table-column label="操作" min-width="120" align="left">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="primary" size="mini" @click="showInfo(scope.row)">查看</el-button>
|
<el-button type="primary" size="mini" @click="showInfo(scope.row)">查看</el-button>
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,10 @@ import {
|
||||||
announcementTaskUpdate,
|
announcementTaskUpdate,
|
||||||
announcementTaskDetailAdd,
|
announcementTaskDetailAdd,
|
||||||
announcementTaskDetailDeleteId,
|
announcementTaskDetailDeleteId,
|
||||||
announcementTaskDetailPage
|
announcementTaskDetailPage,
|
||||||
|
announcementTaskDetailListTaskListId
|
||||||
} from '@/api/auto-baseapi'
|
} from '@/api/auto-baseapi'
|
||||||
|
import { xrForceDeregisterSpeSaveIvdAcceptNew } from '@/api/force'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -220,6 +222,59 @@ export default {
|
||||||
this.$router.back()
|
this.$router.back()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '保存并发起拟强制注销公告',
|
||||||
|
type: 'primary',
|
||||||
|
show: () => !this.isAddMode,
|
||||||
|
handler: ({ formInstance }) => {
|
||||||
|
return formInstance.submitForm().then((formData) => {
|
||||||
|
return this.$confirm('发起拟强制注销公告后,当前名单无法修改,是否发起公告?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
confirmHandlerPromise: () => {
|
||||||
|
const savePromise = this.isAddMode
|
||||||
|
? announcementTaskAdd({ taskName: formData.taskName }).then((res) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.taskId = res.data.id || res.data
|
||||||
|
this.isAddMode = false
|
||||||
|
return this.taskId
|
||||||
|
}
|
||||||
|
return Promise.reject('保存失败')
|
||||||
|
})
|
||||||
|
: announcementTaskUpdate({ id: this.taskId, taskName: formData.taskName }).then((res) => {
|
||||||
|
if (res.code === 0) return this.taskId
|
||||||
|
return Promise.reject('保存失败')
|
||||||
|
})
|
||||||
|
|
||||||
|
return savePromise.then(taskId => {
|
||||||
|
return announcementTaskDetailListTaskListId({ taskListId: taskId }).then(res => {
|
||||||
|
if (res.code === 0 && res.data && res.data.length > 0) {
|
||||||
|
const allEntList = res.data
|
||||||
|
return xrForceDeregisterSpeSaveIvdAcceptNew({
|
||||||
|
pripIdList: allEntList.map(item => item.pripid),
|
||||||
|
busType: 'inclusion'
|
||||||
|
}).then((data) => {
|
||||||
|
this.$message.success('保存并发起拟强制注销公告成功')
|
||||||
|
return this.$router.push({
|
||||||
|
path: '/forceNotice/inclusion/todo/handle',
|
||||||
|
query: { bizSeqNo: data.bizSeqId }
|
||||||
|
})
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('任务名单中没有企业,无法发起拟强制注销公告,仅保存成功')
|
||||||
|
if (!this.isAddMode) {
|
||||||
|
this.loadTaskInfo()
|
||||||
|
}
|
||||||
|
return Promise.reject()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '保存',
|
label: '保存',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
|
|
||||||
|
|
@ -218,9 +218,10 @@ export default {
|
||||||
this.$message.warning('请至少勾选一个任务名单')
|
this.$message.warning('请至少勾选一个任务名单')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$confirm(`已选择 ${this.selected.length} 个任务名单,是否发起拟强制注销公告?`, '提示', {
|
this.$confirm(`已选择 ${this.selected.length} 个任务名单,发起拟强制注销公告后,当前名单无法修改,是否发起公告?`, '提示', {
|
||||||
type: 'info',
|
type: 'warning',
|
||||||
customClass: 'type-1',
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
confirmHandlerPromise: () => {
|
confirmHandlerPromise: () => {
|
||||||
const promises = this.selected.map(task =>
|
const promises = this.selected.map(task =>
|
||||||
announcementTaskDetailListTaskListId({ taskListId: task.id })
|
announcementTaskDetailListTaskListId({ taskListId: task.id })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue