accounting/wwwroot/credit_limit/api/set_credit_form.ui
Hermes Agent afb9dd5d88 fix: 修复授信表单提交 - 使用submit_url替代url, 移除手动buttons
- url → submit_url (Form正确的属性名)
- 移除手动buttons配置 (Form自动生成Submit/Reset工具栏)
- 移除method:POST (Form默认POST)
2026-06-24 11:36:00 +08:00

57 lines
1.7 KiB
XML

{
"widgettype": "Form",
"id": "credit_form",
"options": {
"width": "100%",
"padding": "16px",
"submit_url": "{{entire_url('/accounting/credit_limit/api/set_customer_credit.dspy')}}",
"fields": [
{
"name": "id",
"label": "id",
"uitype": "hidden",
"value": "{{params_kw.get('id', '')}}"
},
{
"name": "customer_name",
"label": "客户名称",
"uitype": "str",
"required": true,
"value": "{{params_kw.get('customer_name', '')}}",
"placeholder": "输入客户名称进行查找"
},
{
"name": "credit_limit",
"label": "授信额度",
"uitype": "float",
"required": true,
"value": "{{params_kw.get('credit_limit', '0')}}"
},
{
"name": "valid_from",
"label": "生效日期",
"uitype": "date",
"value": "{{params_kw.get('valid_from', '')}}"
},
{
"name": "valid_to",
"label": "失效日期",
"uitype": "date",
"value": "{{params_kw.get('valid_to', '')}}"
},
{
"name": "remark",
"label": "备注",
"uitype": "str",
"value": "{{params_kw.get('remark', '')}}"
}
]
},
"binds": [{
"wid": "self",
"event": "submit",
"actiontype": "close",
"target": "PopupWindow"
}]
}