107 lines
4.2 KiB
XML
107 lines
4.2 KiB
XML
{
|
|
"options": {
|
|
"height": "100vh",
|
|
"padding": "0"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"padding": "16px",
|
|
"flex": 1,
|
|
"overflow": "auto"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "receivable_form",
|
|
"options": {
|
|
"submit_url": "{{entire_url('api/receivables_create.dspy')}}",
|
|
"method": "POST",
|
|
"layout": "vertical",
|
|
"fields": [
|
|
{
|
|
"name": "order_id",
|
|
"label": "订单号",
|
|
"uitype": "text"
|
|
},
|
|
{
|
|
"name": "contract_id",
|
|
"label": "合同ID",
|
|
"uitype": "text"
|
|
},
|
|
{
|
|
"name": "customer_id",
|
|
"label": "客户ID",
|
|
"uitype": "text"
|
|
},
|
|
{
|
|
"name": "receivable_amount",
|
|
"label": "应收金额",
|
|
"uitype": "number",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "due_date",
|
|
"label": "到期日",
|
|
"uitype": "date",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "status",
|
|
"label": "状态",
|
|
"uitype": "code",
|
|
"data": [
|
|
{
|
|
"value": "pending",
|
|
"text": "待收"
|
|
},
|
|
{
|
|
"value": "partial",
|
|
"text": "部分收款"
|
|
},
|
|
{
|
|
"value": "received",
|
|
"text": "已收款"
|
|
},
|
|
{
|
|
"value": "overdue",
|
|
"text": "逾期"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "received_amount",
|
|
"label": "已收金额",
|
|
"uitype": "number"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"label": "说明",
|
|
"uitype": "textarea"
|
|
},
|
|
{
|
|
"name": "org_id",
|
|
"label": "组织ID",
|
|
"uitype": "text"
|
|
}
|
|
],
|
|
"buttons": [
|
|
{
|
|
"type": "submit",
|
|
"text": "保存",
|
|
"variant": "primary"
|
|
},
|
|
{
|
|
"type": "button",
|
|
"text": "取消",
|
|
"action": "navigate('main/financial_management/receivables.ui')"
|
|
}
|
|
],
|
|
"maxWidth": "600px"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |