优化行政处罚修复

This commit is contained in:
zhouxy 2026-02-27 14:49:52 +08:00
parent 75c70a7855
commit 69b57c2f77
1 changed files with 32 additions and 28 deletions

View File

@ -361,9 +361,9 @@ import DetailHead from '@/components/DetailHead'
import { validBeforeUpload } from '@/api/fileUpload' import { validBeforeUpload } from '@/api/fileUpload'
import { removeAttachementById } from '@/api/attachment' import { removeAttachementById } from '@/api/attachment'
import { getInfo, listFile, submitTask } from '@/api/remPunish' import { getInfo, listFile, submitTask } from '@/api/remPunish'
import {getUsersWithPermission} from "@/api/user"; import { getUsersWithPermission } from '@/api/user'
import Editor from '@/components/editor.vue' import Editor from '@/components/editor.vue'
import {getRemPunishmentContentsWithBizseq, saveOrUpdateContent} from "@/api/credit"; import { getRemPunishmentContentsWithBizseq, saveOrUpdateContent } from '@/api/credit'
export default { export default {
data() { data() {
return { return {
@ -475,11 +475,11 @@ export default {
// label // label
getOperatorLabel() { getOperatorLabel() {
if (this.punishInfo.linkType === '1') { if (this.punishInfo.linkType === '1') {
return '审核人'; return '审核人'
} else if (this.punishInfo.linkType === '0') { } else if (this.punishInfo.linkType === '0') {
return '审批人'; return '审批人'
} }
return '下一步操作人'; // return '下一步操作人' //
}, },
toEntDetail() { toEntDetail() {
this.$router.push({ this.$router.push({
@ -512,15 +512,15 @@ export default {
// //
this.validateBusinessForm() this.validateBusinessForm()
.then(() => { .then(() => {
return this.$confirm('确定提交?'); return this.$confirm('确定提交?')
}) })
.then(() => { .then(() => {
this.performSubmit(); this.performSubmit()
}) })
.catch(error => { .catch(error => {
console.warn('表单验证失败:', error.message); console.warn('表单验证失败:', error.message)
this.submitLoading = false; this.submitLoading = false
}); })
} }
this.submitLoading = false this.submitLoading = false
}, },
@ -530,14 +530,14 @@ export default {
const submitData = { const submitData = {
...this.punishInfo, ...this.punishInfo,
nextNodeId: this.punishInfo.nextNodeId // nextNodeId nextNodeId: this.punishInfo.nextNodeId // nextNodeId
}; }
// //
if (this.punishInfo.nextNodeId === 'endRemPunish') { if (this.punishInfo.nextNodeId === 'endRemPunish') {
this.$message({ this.$message({
message: '提醒!后台正在生成文书,过程需要耐心等待,切勿重复点击提交,待生成完毕页面会自动返回待办。', message: '提醒!后台正在生成文书,过程需要耐心等待,切勿重复点击提交,待生成完毕页面会自动返回待办。',
type: 'warning', type: 'warning',
duration: 5000 // 5 duration: 5000 // 5
}); })
} }
submitTask(submitData).then(res => { submitTask(submitData).then(res => {
if (res.code === 0) { if (res.code === 0) {
@ -603,13 +603,13 @@ export default {
// //
loadReviewer() { loadReviewer() {
// linkType permission // linkType permission
const permission = this.punishInfo.linkType === '1' ? 'exptRemoveHandle' : 'exptRemoveApprove'; const permission = this.punishInfo.linkType === '1' ? 'exptRemoveHandle' : 'exptRemoveApprove'
getUsersWithPermission(permission, this.user.orgId).then(res => { getUsersWithPermission(permission, this.user.orgId).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.reviewer = res.data; this.reviewer = res.data
} }
}); })
}, },
// //
validateBusinessForm() { validateBusinessForm() {
@ -619,41 +619,41 @@ export default {
{ field: 'applyDate', name: '主体申请修复日期', value: this.punishInfo.applyDate }, { field: 'applyDate', name: '主体申请修复日期', value: this.punishInfo.applyDate },
{ field: 'repairDate', name: '信用修复决定时间', value: this.punishInfo.repairDate }, { field: 'repairDate', name: '信用修复决定时间', value: this.punishInfo.repairDate },
{ field: 'repairOrgCn', name: '作出信用修复决定机关', value: this.punishInfo.repairOrgCn } { field: 'repairOrgCn', name: '作出信用修复决定机关', value: this.punishInfo.repairOrgCn }
]; ]
for (const validation of validations) { for (const validation of validations) {
if (!validation.value) { if (!validation.value) {
this.$message.warning(`请填写${validation.name}`); this.$message.warning(`请填写${validation.name}`)
reject(new Error(`请填写${validation.name}`)); reject(new Error(`请填写${validation.name}`))
return; return
} }
} }
resolve(true); resolve(true)
}); })
}, },
handleAcceptChange(value) { handleAcceptChange(value) {
// //
if (value === '1') { if (value === '1') {
this.punishInfo.isAgreeRepair = ''; this.punishInfo.isAgreeRepair = ''
// linkType === '1' // linkType === '1'
if (this.punishInfo.linkType === '1') { if (this.punishInfo.linkType === '1') {
this.punishInfo.nextNodeId = 'handleRemPunish'; this.punishInfo.nextNodeId = 'handleRemPunish'
} }
} else { } else {
// //
this.punishInfo.nextNodeId = ''; this.punishInfo.nextNodeId = ''
} }
}, },
openDialog(type) { openDialog(type) {
// //
if (!this.punishInfo.applyDate) { if (!this.punishInfo.applyDate) {
this.$message.warning('请先填写主体申请修复日期'); this.$message.warning('请先填写主体申请修复日期')
return; return
} }
if (!this.punishInfo.repairDate) { if (!this.punishInfo.repairDate) {
this.$message.warning('请先填写信用修复决定时间'); this.$message.warning('请先填写信用修复决定时间')
return; return
} }
var title = '' var title = ''
if (type === 'creidtRepair') { if (type === 'creidtRepair') {
@ -718,6 +718,8 @@ export default {
this.$set(this.tswrittemplate, 'content', res.data.content) this.$set(this.tswrittemplate, 'content', res.data.content)
this.$set(this, 'eidtContent', res.data.content) this.$set(this, 'eidtContent', res.data.content)
}) })
} else {
this.$message.error(res.msg)
} }
}) })
}, },
@ -737,6 +739,8 @@ export default {
this.$set(this.tswrittemplate, 'writsType', res.data.writsType) this.$set(this.tswrittemplate, 'writsType', res.data.writsType)
this.$set(this, 'eidtContent', res.data.content) this.$set(this, 'eidtContent', res.data.content)
}) })
} else {
this.$message.error(res.msg)
} }
}) })
} }