行政处罚修复页面针对外网申请

This commit is contained in:
zhouxy 2026-01-23 17:16:24 +08:00
parent f76de029c5
commit 2e28333bb6
1 changed files with 88 additions and 20 deletions

View File

@ -58,7 +58,7 @@
<DetailHead result="业务办理" />
<div class="content-body">
<el-form ref="form" :model="punishInfo" label-width="230px" label-position="right" :rules="formRules">
<el-form ref="businessForm" :model="punishInfo" label-width="230px" label-position="right" :rules="formRules">
<div class="form">
<div class="tab">
<div class="tab-title">
@ -200,11 +200,20 @@
<div class="form-body">
<el-row class="flex-row">
<el-col :span="24">
<template v-if="taskInfo && taskInfo.origin === '1'">
<el-form-item label="是否受理:" prop="status">
<!-- origin为1时代表外网申请的 -->
<el-radio v-model="punishInfo.status" label="2" style="font-size: unset">受理并予以修复</el-radio>
<el-radio v-model="punishInfo.status" label="3" style="font-size: unset">不予受理回退至申请人</el-radio>
</el-form-item>
</template>
<template v-else>
<el-form-item label="是否准予修复:" prop="status">
<el-radio v-model="punishInfo.status" label="2" style="font-size: unset">准予修复</el-radio>
<el-radio v-model="punishInfo.status" label="3" style="font-size: unset">不予修复结束流程</el-radio>
<!-- <el-radio v-model="isAgreeRepair" label="3" style="font-size: unset">转办</el-radio>-->
</el-form-item>
<!-- origin不为1时代表内网发起的 -->
<el-radio v-model="punishInfo.status" label="2" style="font-size: unset">准予修复</el-radio>
<el-radio v-model="punishInfo.status" label="3" style="font-size: unset">不予修复结束流程</el-radio>
</el-form-item>
</template>
</el-col>
</el-row>
<el-row class="bt0 flex-row">
@ -256,6 +265,7 @@ export default {
bizSeq: this.$route.query.bizSeq,
punishInfo: {},
IlcPunInfo: {},
taskInfo: {},
process: {},
uploadPath: `${process.env.VUE_APP_BASE_API}/punishment/tBizRemPunishment/upload`,
onlyShow: this.$route.query.onlyShow === '1',
@ -319,6 +329,7 @@ export default {
getInfo(this.bizSeq).then(res => {
this.punishInfo = res.data.punishInfo
this.IlcPunInfo = res.data.IlcPunInfo
this.taskInfo = res.data.task
this.punishInfo.repairOrg = this.user.orgCode
this.punishInfo.repairOrgCn = this.user.orgName
@ -348,24 +359,43 @@ export default {
},
submit() {
this.submitLoading = true
this.$refs.form.validate((valid, rules) => {
if (!valid) {
this.$message.warning(rules[Object.keys(rules)[0]][0].message)
return
}
this.$confirm('确定提交后,上述行政处罚信息将从国家企业信用信息公示系统撤下,不再对外公示。').then(() => {
submitTask(this.punishInfo).then(res => {
if (res.code === 0) {
this.$message.success('提交成功')
this.$router.back()
} else {
this.$message.error('提交失败,' + res.msg)
}
})
// """"
const isNotAgree = this.punishInfo.status === '3'
if (isNotAgree) {
//
this.$confirm('确定提交?').then(() => {
this.performSubmit()
}).catch(() => {
this.submitLoading = false
})
})
} else {
//
this.validateBusinessForm()
.then(() => {
return this.$confirm('确定提交后,上述行政处罚信息将从国家企业信用信息公示系统撤下,不再对外公示。');
})
.then(() => {
this.performSubmit();
})
.catch(error => {
console.warn('表单验证失败:', error.message);
this.submitLoading = false;
});
}
this.submitLoading = false
},
//
performSubmit() {
submitTask(this.punishInfo).then(res => {
if (res.code === 0) {
this.$message.success('提交成功')
this.$router.back()
} else {
this.$message.error('提交失败,' + res.msg)
}
})
},
initFileList() {
listFile({ id: this.bizSeq }).then(({ data }) => {
if (data.length !== 0) {
@ -419,6 +449,44 @@ export default {
this.reviewer = res.data
}
})
},
//
validateBusinessForm() {
return new Promise((resolve, reject) => {
//
const validations = [
{ field: 'applyDate', name: '主体申请修复日期', value: this.punishInfo.applyDate },
{ field: 'repairNo', name: '准予修复决定书文号', value: this.punishInfo.repairNo },
{ 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;
}
}
//
const fileTypes = ['1', '2', '3'];
const fileLabels = ['信用修复决定审批表', '准予信用修复决定文书', '补充材料'];
for (let i = 0; i < fileTypes.length; i++) {
const fileType = fileTypes[i];
const fileLabel = fileLabels[i];
const files = this.fileList.filter(item => item.attachtype === fileType);
if (files.length === 0) {
this.$message.warning(`请上传${fileLabel}`);
reject(new Error(`请上传${fileLabel}`));
return;
}
}
resolve(true);
});
}
},
components: {