update 流程完善-审批意见
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user