【文案修改】工作流:“回退”统一改成“退回”,和飞书保持一致

This commit is contained in:
YunaiV
2024-10-19 19:01:38 +08:00
parent 410c3bc9a7
commit dcdce4120d
8 changed files with 91 additions and 75 deletions

View File

@ -177,7 +177,7 @@ export enum ApproveMethodType {
export type RejectHandler = {
// 审批拒绝类型
type: RejectHandlerType
// 退节点 Id
// 退节点 Id
returnNodeId?: string
}
@ -359,7 +359,7 @@ export enum OperationButtonType {
*/
ADD_SIGN = 5,
/**
* 退
* 退
*/
RETURN = 6,
/**
@ -516,7 +516,7 @@ export const DEFAULT_BUTTON_SETTING: ButtonSetting[] = [
{ id: OperationButtonType.TRANSFER, displayName: '转办', enable: true },
{ id: OperationButtonType.DELEGATE, displayName: '委派', enable: true },
{ id: OperationButtonType.ADD_SIGN, displayName: '加签', enable: true },
{ id: OperationButtonType.RETURN, displayName: '退', enable: true }
{ id: OperationButtonType.RETURN, displayName: '退', enable: true }
]
// 发起人的按钮权限。暂时定死,不可以编辑
@ -526,7 +526,7 @@ export const START_USER_BUTTON_SETTING: ButtonSetting[] = [
{ id: OperationButtonType.TRANSFER, displayName: '转办', enable: false },
{ id: OperationButtonType.DELEGATE, displayName: '委派', enable: false },
{ id: OperationButtonType.ADD_SIGN, displayName: '加签', enable: false },
{ id: OperationButtonType.RETURN, displayName: '退', enable: false }
{ id: OperationButtonType.RETURN, displayName: '退', enable: false }
]
export const MULTI_LEVEL_DEPT: DictDataVO = [

View File

@ -134,12 +134,7 @@
prop="userIds"
span="24"
>
<el-select
v-model="configForm.userIds"
clearable
multiple
style="width: 100%"
>
<el-select v-model="configForm.userIds" clearable multiple style="width: 100%">
<el-option
v-for="item in userOptions"
:key="item.id"
@ -183,10 +178,7 @@
:key="index"
class="flex items-center"
>
<el-radio
:value="item.value"
:label="item.value"
>
<el-radio :value="item.value" :label="item.value">
{{ item.label }}
</el-radio>
<el-form-item prop="approveRatio">
@ -552,7 +544,7 @@ const approveMethodChanged = () => {
}
formRef.value.clearValidate('approveRatio')
}
// 审批拒绝 可退的节点
// 审批拒绝 可退的节点
const returnTaskList = ref<SimpleFlowNode[]>([])
// 审批人超时未处理设置
const {

View File

@ -282,9 +282,12 @@ const importXML = async (xml: string) => {
/** 高亮流程 */
const setProcessStatus = (view: any) => {
// 设置相关变量
if (!view || !view.processInstance) {
return
}
processInstance.value = view.processInstance
tasks.value = view.tasks
if (isLoading.value || !processInstance.value || !bpmnViewer.value) {
if (isLoading.value || !bpmnViewer.value) {
return
}
const {