优化行政处罚修复
This commit is contained in:
parent
75c70a7855
commit
69b57c2f77
|
|
@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue