{ "widgettype": "Page", "options": { "title": "审批工作流管理", "style": {"height": "100vh", "padding": "0"} }, "subwidgets": [ { "widgettype": "VBox", "options": {"style": {"padding": "16px", "height": "100%"}}, "subwidgets": [ { "widgettype": "HBox", "options": {"style": {"marginBottom": "16px"}}, "subwidgets": [ { "widgettype": "Text", "options": {"text": "审批工作流管理", "style": {"fontSize": "20px", "fontWeight": "bold"}} } ] }, { "widgettype": "DataViewer", "options": { "title": "工作流列表", "data_url": "/main/workflow_approval/api/workflow_list.dspy", "page_rows": 20, "editable": { "new_data_url": "/main/workflow_approval/api/workflow_create.dspy", "update_data_url": "/main/workflow_approval/api/workflow_update.dspy", "delete_data_url": "/main/workflow_approval/api/workflow_delete.dspy", "form_cheight": 10, "fields": [ {"name": "workflow_name", "label": "工作流名称", "uitype": "text", "required": true}, {"name": "module_type", "label": "模块类型", "uitype": "code", "data": [ {"value": "customer", "text": "客户管理"}, {"value": "opportunity", "text": "商机管理"}, {"value": "contract", "text": "合同管理"}, {"value": "financial", "text": "财务管理"} ], "required": true}, {"name": "trigger_condition", "label": "触发条件", "uitype": "textarea"}, {"name": "description", "label": "描述", "uitype": "textarea"}, {"name": "is_active", "label": "是否激活", "uitype": "code", "data": [ {"value": "Y", "text": "是"}, {"value": "N", "text": "否"} ], "value": "Y"} ] }, "row_options": { "fields": [ {"name": "workflow_name", "label": "工作流名称", "uitype": "text"}, {"name": "module_type", "label": "模块类型", "uitype": "text"}, {"name": "description", "label": "描述", "uitype": "text"}, {"name": "is_active", "label": "状态", "uitype": "text"}, {"name": "created_at", "label": "创建时间", "uitype": "text"} ] } } }, { "widgettype": "Divider", "options": {"style": {"margin": "20px 0"}} }, { "widgettype": "Text", "options": {"text": "审批步骤配置", "style": {"fontSize": "16px", "fontWeight": "bold", "marginBottom": "12px"}} }, { "widgettype": "DataViewer", "options": { "title": "审批步骤", "data_url": "/main/workflow_approval/api/step_list.dspy", "page_rows": 20, "editable": { "new_data_url": "/main/workflow_approval/api/step_create.dspy", "update_data_url": "/main/workflow_approval/api/step_update.dspy", "delete_data_url": "/main/workflow_approval/api/step_delete.dspy", "form_cheight": 10, "fields": [ {"name": "workflow_id", "label": "所属工作流", "uitype": "code", "data_url": "/main/workflow_approval/api/workflow_list.dspy", "required": true}, {"name": "step_name", "label": "步骤名称", "uitype": "text", "required": true}, {"name": "step_order", "label": "步骤顺序", "uitype": "number", "required": true}, {"name": "approver_type", "label": "审批人类型", "uitype": "code", "data": [ {"value": "role", "text": "角色"}, {"value": "user", "text": "用户"}, {"value": "department", "text": "部门"}, {"value": "dynamic", "text": "动态"} ], "required": true}, {"name": "approver_value", "label": "审批人值", "uitype": "text"}, {"name": "approval_type", "label": "审批类型", "uitype": "code", "data": [ {"value": "single", "text": "单人审批"}, {"value": "multiple", "text": "多人审批"}, {"value": "sequential", "text": "顺序审批"}, {"value": "parallel", "text": "并行审批"} ], "required": true}, {"name": "timeout_hours", "label": "超时时间(小时)", "uitype": "number"}, {"name": "description", "label": "描述", "uitype": "textarea"} ] }, "row_options": { "fields": [ {"name": "workflow_id", "label": "工作流ID", "uitype": "text"}, {"name": "step_name", "label": "步骤名称", "uitype": "text"}, {"name": "step_order", "label": "顺序", "uitype": "text"}, {"name": "approver_type", "label": "审批人类型", "uitype": "text"}, {"name": "approval_type", "label": "审批类型", "uitype": "text"}, {"name": "timeout_hours", "label": "超时(小时)", "uitype": "text"} ] } } } ] } ] }