- proxy_recharge.ui: Form表单输入客户用户名+充值金额 - proxy_recharge_submit.dspy: 查找用户+创建payment_log+调用recharge_accounting - error_accounting.ui: 错帐处理管理页面(placeholder,含设计文档)
83 lines
2.9 KiB
XML
83 lines
2.9 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"padding": "16px",
|
|
"gap": "16px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"bgcolor": "#1E293B",
|
|
"borderRadius": "10px",
|
|
"border": "1px solid #334155",
|
|
"padding": "20px",
|
|
"cwidth": 40
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Title3",
|
|
"options": {"text": "代客充值", "color": "#F1F5F9"}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": "输入客户用户名和充值金额,由管理员代为客户完成充值操作。",
|
|
"color": "#94A3B8",
|
|
"fontSize": "13px"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "proxy_recharge_form",
|
|
"options": {
|
|
"name": "proxy_recharge",
|
|
"submit_url": "{{entire_url('/accounting/proxy_recharge_submit.dspy')}}",
|
|
"show_label": true,
|
|
"submit_label": "确认充值",
|
|
"submit_css": "primary",
|
|
"fields": [
|
|
{
|
|
"name": "username",
|
|
"label": "客户用户名",
|
|
"uitype": "str",
|
|
"required": true,
|
|
"placeholder": "输入客户用户名",
|
|
"cwidth": 20
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"label": "充值金额",
|
|
"uitype": "float",
|
|
"required": true,
|
|
"placeholder": "输入充值金额",
|
|
"cwidth": 20
|
|
}
|
|
]
|
|
},
|
|
"binds": [{
|
|
"wid": "self",
|
|
"event": "submit",
|
|
"actiontype": "urldata",
|
|
"target": "recharge_result",
|
|
"options": {
|
|
"url": "{{entire_url('/accounting/proxy_recharge_submit.dspy')}}"
|
|
}
|
|
}]
|
|
},
|
|
{
|
|
"widgettype": "VBox",
|
|
"id": "recharge_result",
|
|
"options": {
|
|
"width": "100%",
|
|
"padding": "8px"
|
|
},
|
|
"subwidgets": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|