146 lines
5.9 KiB
XML
146 lines
5.9 KiB
XML
{
|
|
"options": {
|
|
"height": "100vh",
|
|
"padding": "0"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"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",
|
|
"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')"
|
|
}
|
|
],
|
|
"maxWidth": "600px"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |