| | |
| | | return { |
| | | id: row?.id, |
| | | key: String(row?.id ?? ""), |
| | | businessType: row?.businessType ?? cfg.approvalType ?? row?.approvalType ?? "", |
| | | approvalType: cfg.approvalType || row?.approvalType || "", |
| | | label: row?.templateName || "—", |
| | | summaryPlaceholder: (row?.description || "").trim() || cfg.summaryPlaceholder || "点击填写并提交", |
| | | }; |
| | | } |
| | | |
| | | export function matchBusinessTypeValue(a, b) { |
| | | if (a == null || a === "" || b == null || b === "") return false; |
| | | return a === b || a === Number(b) || Number(a) === b || String(a) === String(b); |
| | | } |
| | | |
| | | /** 审批记录 approveAction → 页面 result */ |
| | |
| | | const dto = { |
| | | templateId, |
| | | templateName: submitForm?.templateName || tpl.label || "", |
| | | businessType: tpl.businessType ?? submitForm?.businessType ?? "", |
| | | title, |
| | | formConfig: buildInstanceFormConfigJson({ ...tpl, fields: tpl.fields || submitForm?.formFieldDefs }, payload), |
| | | tasks: taskList, |