行政处罚修复页面针对外网申请
This commit is contained in:
parent
f76de029c5
commit
2e28333bb6
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
<DetailHead result="业务办理" />
|
<DetailHead result="业务办理" />
|
||||||
<div class="content-body">
|
<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="form">
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<div class="tab-title">
|
<div class="tab-title">
|
||||||
|
|
@ -200,11 +200,20 @@
|
||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
<el-row class="flex-row">
|
<el-row class="flex-row">
|
||||||
<el-col :span="24">
|
<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-form-item label="是否准予修复:" prop="status">
|
||||||
<el-radio v-model="punishInfo.status" label="2" style="font-size: unset">准予修复</el-radio>
|
<!-- origin不为1时,代表内网发起的 -->
|
||||||
<el-radio v-model="punishInfo.status" label="3" style="font-size: unset">不予修复(结束流程)</el-radio>
|
<el-radio v-model="punishInfo.status" label="2" style="font-size: unset">准予修复</el-radio>
|
||||||
<!-- <el-radio v-model="isAgreeRepair" label="3" style="font-size: unset">转办</el-radio>-->
|
<el-radio v-model="punishInfo.status" label="3" style="font-size: unset">不予修复(结束流程)</el-radio>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</template>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="bt0 flex-row">
|
<el-row class="bt0 flex-row">
|
||||||
|
|
@ -256,6 +265,7 @@ export default {
|
||||||
bizSeq: this.$route.query.bizSeq,
|
bizSeq: this.$route.query.bizSeq,
|
||||||
punishInfo: {},
|
punishInfo: {},
|
||||||
IlcPunInfo: {},
|
IlcPunInfo: {},
|
||||||
|
taskInfo: {},
|
||||||
process: {},
|
process: {},
|
||||||
uploadPath: `${process.env.VUE_APP_BASE_API}/punishment/tBizRemPunishment/upload`,
|
uploadPath: `${process.env.VUE_APP_BASE_API}/punishment/tBizRemPunishment/upload`,
|
||||||
onlyShow: this.$route.query.onlyShow === '1',
|
onlyShow: this.$route.query.onlyShow === '1',
|
||||||
|
|
@ -319,6 +329,7 @@ export default {
|
||||||
getInfo(this.bizSeq).then(res => {
|
getInfo(this.bizSeq).then(res => {
|
||||||
this.punishInfo = res.data.punishInfo
|
this.punishInfo = res.data.punishInfo
|
||||||
this.IlcPunInfo = res.data.IlcPunInfo
|
this.IlcPunInfo = res.data.IlcPunInfo
|
||||||
|
this.taskInfo = res.data.task
|
||||||
|
|
||||||
this.punishInfo.repairOrg = this.user.orgCode
|
this.punishInfo.repairOrg = this.user.orgCode
|
||||||
this.punishInfo.repairOrgCn = this.user.orgName
|
this.punishInfo.repairOrgCn = this.user.orgName
|
||||||
|
|
@ -348,24 +359,43 @@ export default {
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.submitLoading = true
|
this.submitLoading = true
|
||||||
this.$refs.form.validate((valid, rules) => {
|
// 判断是否为"不予受理"或"不予修复"状态
|
||||||
if (!valid) {
|
const isNotAgree = this.punishInfo.status === '3'
|
||||||
this.$message.warning(rules[Object.keys(rules)[0]][0].message)
|
|
||||||
return
|
if (isNotAgree) {
|
||||||
}
|
// 不需要验证,直接提交
|
||||||
this.$confirm('确定提交后,上述行政处罚信息将从国家企业信用信息公示系统撤下,不再对外公示。').then(() => {
|
this.$confirm('确定提交?').then(() => {
|
||||||
submitTask(this.punishInfo).then(res => {
|
this.performSubmit()
|
||||||
if (res.code === 0) {
|
}).catch(() => {
|
||||||
this.$message.success('提交成功')
|
this.submitLoading = false
|
||||||
this.$router.back()
|
|
||||||
} else {
|
|
||||||
this.$message.error('提交失败,' + res.msg)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
} else {
|
||||||
|
// 需要验证表单
|
||||||
|
this.validateBusinessForm()
|
||||||
|
.then(() => {
|
||||||
|
return this.$confirm('确定提交后,上述行政处罚信息将从国家企业信用信息公示系统撤下,不再对外公示。');
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.performSubmit();
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
console.warn('表单验证失败:', error.message);
|
||||||
|
this.submitLoading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
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() {
|
initFileList() {
|
||||||
listFile({ id: this.bizSeq }).then(({ data }) => {
|
listFile({ id: this.bizSeq }).then(({ data }) => {
|
||||||
if (data.length !== 0) {
|
if (data.length !== 0) {
|
||||||
|
|
@ -419,6 +449,44 @@ export default {
|
||||||
this.reviewer = res.data
|
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: {
|
components: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue