优化行政处罚修复

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