fix(approval): 待办支持全部待办开关与按任务改派、keywords 与报送人术语

- 有 approval:instance:assign 的用户可切换全租户待办(scope=all)
- 详情抽屉展示待办人员并按任务 id 改派
- 查询参数 keyword 改为 keywords;发起人统一为报送人
This commit is contained in:
2026-10-30 22:28:05 +08:00
parent bc94f04243
commit 56a2b96b3d
5 changed files with 75 additions and 16 deletions
@@ -131,7 +131,7 @@
prop:
| 'docType'
| 'bizNo'
| 'keyword'
| 'keywords'
| 'reportOrgId'
| 'acceptOrgId'
| 'reporterId'
@@ -140,10 +140,10 @@
}[] = [
{ prop: 'docType', label: '单据类型' },
{ prop: 'bizNo', label: '单号' },
{ prop: 'keyword', label: '标题或名称' },
{ prop: 'keywords', label: '标题或名称' },
{ prop: 'reportOrgId', label: '报送部门' },
{ prop: 'acceptOrgId', label: '受理部门' },
{ prop: 'reporterId', label: '发起人' },
{ prop: 'reporterId', label: '报送人' },
{ prop: 'status', label: '状态' }
];
@@ -167,7 +167,7 @@
const { form, resetFields } = useFormData<ApprovalQueryParam>({
docType: undefined,
bizNo: '',
keyword: '',
keywords: '',
reportOrgId: undefined,
acceptOrgId: undefined,
reporterId: undefined,
@@ -182,9 +182,9 @@
// 组织下拉选项
const organizationOptions = ref<{ label: string; value: number }[]>([]);
// 发起人下拉选项
// 报送人下拉选项
const userOptions = ref<{ label: string; value: number }[]>([]);
// 发起人请求状态
// 报送人请求状态
const userLoading = ref(false);
// 组织远程过滤
@@ -192,7 +192,7 @@
return (option?.label ?? '').toLowerCase().includes(input.toLowerCase());
};
// 远程搜索发起人
// 远程搜索报送人
const searchUsers = (keywords?: string) => {
userLoading.value = true;
searchApprovalUsers({ keywords })