{ "widgettype": "VBox", "options": { "width": "100%", "height": "100%" }, "subwidgets": [ { "widgettype": "Form", "options": { "title": "合同信息", "tblname": "contract", "submit_url": "/api/contract/save", "width": "100%", "style": { "maxWidth": "1200px", "margin": "0 auto" } }, "binds": [ { "wid": "self", "event": "submited", "actiontype": "script", "script": "await bricks.show_resp_message_or_error(event.params); if (event.params.success) { bricks.app.goto_url('{{entire_url(\"contract_list.ui\")}}'); }" } ] }, { "widgettype": "Filler", "options": { "height": "20px" } }, { "widgettype": "HBox", "options": { "width": "100%", "style": { "maxWidth": "1200px", "margin": "0 auto" } }, "subwidgets": [ { "widgettype": "VBox", "options": { "width": "50%" }, "subwidgets": [ { "widgettype": "Text", "options": { "text": "合同附件", "style": { "fontSize": "18px", "fontWeight": "600", "marginBottom": "10px" } } }, { "widgettype": "DataGrid", "options": { "tblname": "contract_attachment", "width": "100%", "parent_field": "contract_id", "parent_value": "{{params_kw.get('id') or 'new'}}" } } ] }, { "widgettype": "Filler", "options": { "width": "20px" } }, { "widgettype": "VBox", "options": { "width": "50%" }, "subwidgets": [ { "widgettype": "Text", "options": { "text": "AI分析结果", "style": { "fontSize": "18px", "fontWeight": "600", "marginBottom": "10px" } } }, { "widgettype": "Button", "options": { "text": "执行合规检查", "styleType": "primary", "style": { "marginBottom": "10px" } }, "binds": [ { "wid": "self", "event": "click", "actiontype": "script", "script": "console.log('AI合规检查功能待实现')" } ] }, { "widgettype": "Button", "options": { "text": "提取关键时点", "styleType": "primary", "style": { "marginBottom": "10px" } }, "binds": [ { "wid": "self", "event": "click", "actiontype": "script", "script": "console.log('AI关键时点提取功能待实现')" } ] }, { "widgettype": "Button", "options": { "text": "版本对比", "styleType": "primary" }, "binds": [ { "wid": "self", "event": "click", "actiontype": "script", "script": "console.log('AI版本对比功能待实现')" } ] } ] } ] } ] }