update 流程完善-审批意见

This commit is contained in:
danshihao
2023-12-12 19:24:34 +08:00
parent cc8f2945bc
commit 459594ec9b
8 changed files with 48 additions and 7 deletions
@@ -153,7 +153,7 @@ import PersonnelInfo from '@comp/PersonnelInfo'
import BaseInfoTable from '@views/workCenter/permissionApplicationProcess/modules/BaseInfoTable'
import UserSelectModal from '@comp/selection/UserSelectModal'
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
import { PermissionApply, ProcessKey } from '@/enums/commonEnums'
import { ApprovalOpinions, PermissionApply, ProcessKey } from '@/enums/commonEnums'
import {
approvalPermissionApply, getPermissionApplyDataById,
getPermissionApplyDetail,
@@ -482,6 +482,8 @@ export default {
this.loading = true
this.getPageParams().then(res => {
console.log(res)
// 审批意见
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
return startPermissionApply(res)
}).then(res => {
if (res.success) {
@@ -509,6 +511,8 @@ export default {
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
res.processApprovalRecord.commitText = '同意'
}
// 审批意见
res.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
return approvalPermissionApply(res)
}).then(res => {
if (res.success) {
@@ -536,6 +540,8 @@ export default {
this.loading = true
this.getPageParams().then(res => {
res.map.pass = false
// 审批意见
res.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
return rejectPermissionApply(res)
}).then(res => {
if (res.success) {