Commit 0d038647efa354eaf0f02992a67600f5597993eb

Authored by zichun
1 parent bebca2a6

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
... ... @@ -134,3 +134,40 @@ customFields:
134 134 labelTranslations:
135 135 en: Press
136 136 zh-CN: 印刷机
  137 +
  138 +# ─────────────────────────────────────────────────────────────────
  139 +# Form definitions
  140 +#
  141 +# Each form is a JSON-Schema + UI-Schema pair that the SPA renders
  142 +# when a BPMN user-task declares formKey="vibe:<slug>". The
  143 +# MetadataFormRenderer resolves the slug against these rows.
  144 +# ─────────────────────────────────────────────────────────────────
  145 +forms:
  146 + - slug: plate-approval-task
  147 + entityName: Plate
  148 + title: Plate Approval
  149 + purpose: user-task
  150 + version: 1
  151 + jsonSchema:
  152 + type: object
  153 + required:
  154 + - approved
  155 + properties:
  156 + plateCode:
  157 + type: string
  158 + title: Plate Code
  159 + readOnly: true
  160 + approved:
  161 + type: boolean
  162 + title: Approved
  163 + reviewNotes:
  164 + type: string
  165 + title: Review Notes
  166 + maxLength: 500
  167 + uiSchema:
  168 + "ui:order":
  169 + - plateCode
  170 + - approved
  171 + - reviewNotes
  172 + reviewNotes:
  173 + "ui:widget": textarea
... ...