From 0d038647efa354eaf0f02992a67600f5597993eb Mon Sep 17 00:00:00 2001 From: zichun Date: Fri, 10 Apr 2026 13:28:15 +0800 Subject: [PATCH] feat(ref-plugin): add plate-approval-task form definition --- reference-customer/plugin-printing-shop/src/main/resources/META-INF/vibe-erp/metadata/printing-shop.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+), 0 deletions(-) diff --git a/reference-customer/plugin-printing-shop/src/main/resources/META-INF/vibe-erp/metadata/printing-shop.yml b/reference-customer/plugin-printing-shop/src/main/resources/META-INF/vibe-erp/metadata/printing-shop.yml index c30b87e..b23f194 100644 --- a/reference-customer/plugin-printing-shop/src/main/resources/META-INF/vibe-erp/metadata/printing-shop.yml +++ b/reference-customer/plugin-printing-shop/src/main/resources/META-INF/vibe-erp/metadata/printing-shop.yml @@ -134,3 +134,40 @@ customFields: labelTranslations: en: Press zh-CN: 印刷机 + +# ───────────────────────────────────────────────────────────────── +# Form definitions +# +# Each form is a JSON-Schema + UI-Schema pair that the SPA renders +# when a BPMN user-task declares formKey="vibe:". The +# MetadataFormRenderer resolves the slug against these rows. +# ───────────────────────────────────────────────────────────────── +forms: + - slug: plate-approval-task + entityName: Plate + title: Plate Approval + purpose: user-task + version: 1 + jsonSchema: + type: object + required: + - approved + properties: + plateCode: + type: string + title: Plate Code + readOnly: true + approved: + type: boolean + title: Approved + reviewNotes: + type: string + title: Review Notes + maxLength: 500 + uiSchema: + "ui:order": + - plateCode + - approved + - reviewNotes + reviewNotes: + "ui:widget": textarea -- libgit2 0.22.2