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