- Updated core modules: __init__, ai_config, ai_core, attachment, contract, enhanced_contract - Updated mysql.ddl.sql - Updated UI files: contract_detail, contract_edit, contract_list - Added new files: api/*.dspy, contract_list.dspy
54 lines
2.4 KiB
XML
54 lines
2.4 KiB
XML
{
|
|
"widgettype": "Page",
|
|
"options": {
|
|
"title": "合同编辑",
|
|
"style": {"height": "100vh", "padding": "0"}
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {"style": {"padding": "16px", "flex": 1, "overflow": "auto"}},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "contract_form",
|
|
"options": {
|
|
"submit_url": "{{entire_url('api/contracts_create.dspy')}}",
|
|
"method": "POST",
|
|
"layout": "vertical",
|
|
"style": {"maxWidth": "600px"},
|
|
"fields": [
|
|
{"name": "contract_number", "label": "合同编号", "uitype": "text", "required": true},
|
|
{"name": "title", "label": "合同名称", "uitype": "text", "required": true},
|
|
{"name": "party_a", "label": "甲方", "uitype": "text", "required": true},
|
|
{"name": "party_b", "label": "乙方", "uitype": "text", "required": true},
|
|
{"name": "contract_type", "label": "合同类型", "uitype": "code", "required": true, "data": [
|
|
{"value": "sales", "text": "销售合同"},
|
|
{"value": "purchase", "text": "采购合同"},
|
|
{"value": "service", "text": "服务合同"},
|
|
{"value": "other", "text": "其他"}
|
|
]},
|
|
{"name": "amount", "label": "合同金额", "uitype": "number"},
|
|
{"name": "start_date", "label": "开始日期", "uitype": "date", "required": true},
|
|
{"name": "end_date", "label": "结束日期", "uitype": "date", "required": true},
|
|
{"name": "sign_date", "label": "签署日期", "uitype": "date"},
|
|
{"name": "owner_id", "label": "负责人ID", "uitype": "text", "required": true},
|
|
{"name": "org_id", "label": "组织ID", "uitype": "text"},
|
|
{"name": "status", "label": "状态", "uitype": "code", "data": [
|
|
{"value": "draft", "text": "草稿"},
|
|
{"value": "active", "text": "生效"},
|
|
{"value": "expired", "text": "过期"},
|
|
{"value": "terminated", "text": "终止"}
|
|
]}
|
|
],
|
|
"buttons": [
|
|
{"type": "submit", "text": "保存", "variant": "primary"},
|
|
{"type": "button", "text": "取消", "action": "navigate('main/contract_management/contract_list.ui')"}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|