accounting/wwwroot/credit_limit/api/set_credit_form.ui
Hermes Agent 77624b1ef5 fix: 修正授信表单按钮bind target
- 保存按钮 submit target: self → credit_form
- 取消按钮 close target: self → PopupWindow
2026-06-24 10:56:04 +08:00

84 lines
2.5 KiB
XML

{
"widgettype": "Form",
"id": "credit_form",
"options": {
"width": "100%",
"padding": "16px",
"url": "{{entire_url('/accounting/credit_limit/api/set_customer_credit.dspy')}}",
"method": "POST",
"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', '')}}"
}
],
"buttons": [
{
"label": "保存",
"actiontype": "submit",
"bgcolor": "#3B82F6",
"color": "#FFFFFF",
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "submit",
"target": "credit_form"
}]
},
{
"label": "取消",
"actiontype": "close",
"bgcolor": "#475569",
"color": "#FFFFFF",
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "close",
"target": "PopupWindow"
}]
}
]
},
"binds": [{
"wid": "self",
"event": "submit",
"actiontype": "close",
"target": "PopupWindow"
}]
}