46
46
</el-form-item >
47
47
<el-form-item
48
48
label =" 选择下一个节点的审批人"
49
- prop =" selectApproveUser "
49
+ prop =" nextAssignees "
50
50
v-if =" dialogVisibleSelectApproveUser"
51
51
>
52
52
<ProcessInstanceTimeline
@@ -573,15 +573,15 @@ const approveSignFormRef = ref()
573
573
const approveReasonForm = reactive ({
574
574
reason: ' ' ,
575
575
signPicUrl: ' ' ,
576
- selectApproveUser : {}
576
+ nextAssignees : {}
577
577
})
578
578
const approveReasonRule = computed (() => {
579
579
return {
580
580
reason: [
581
581
{ required: reasonRequire .value , message: nodeTypeName + ' 意见不能为空' , trigger: ' blur' }
582
582
],
583
583
signPicUrl: [{ required: true , message: ' 签名不能为空' , trigger: ' change' }],
584
- selectApproveUser : [{ required: true , message: ' 审批人不能为空' , trigger: ' change ' }]
584
+ nextAssignees : [{ required: true , message: ' 审批人不能为空' , trigger: ' blur ' }]
585
585
}
586
586
})
587
587
// 拒绝表单
@@ -681,9 +681,9 @@ watch(
681
681
}
682
682
)
683
683
684
- /** 选择发起人 */
684
+ /** 选择下一个节点的审批人 */
685
685
const selectUserConfirm = (id : string , userList : any []) => {
686
- approveReasonForm .selectApproveUser [id ] = userList ?.map ((item : any ) => item .id )
686
+ approveReasonForm .nextAssignees [id ] = userList ?.map ((item : any ) => item .id )
687
687
}
688
688
689
689
/** 弹出气泡卡 */
@@ -766,7 +766,7 @@ const handleAudit = async (pass: boolean, formRef: FormInstance | undefined) =>
766
766
// 如果需要自选审批人,则校验自选审批人
767
767
if (
768
768
dialogVisibleSelectApproveUser .value &&
769
- Object .keys (approveReasonForm .selectApproveUser ).length === 0
769
+ Object .keys (approveReasonForm .nextAssignees ).length === 0
770
770
) {
771
771
message .warning (' 下一个节点的审批人不能为空!' )
772
772
return
@@ -777,7 +777,7 @@ const handleAudit = async (pass: boolean, formRef: FormInstance | undefined) =>
777
777
id: runningTask .value .id ,
778
778
reason: approveReasonForm .reason ,
779
779
variables , // 审批通过, 把修改的字段值赋于流程实例变量
780
- startUserSelectAssignees : approveReasonForm .selectApproveUser // 下个自选节点选择的审批人信息
780
+ nextAssignees : approveReasonForm .nextAssignees // 下个自选节点选择的审批人信息
781
781
}
782
782
// 签名
783
783
if (runningTask .value .signEnable ) {
0 commit comments