- 添加 Form id: credit_form - 保存按钮添加 submit binds - 取消按钮添加 close binds - Form 添加 submit 事件 bind 关闭弹窗
84 lines
2.5 KiB
XML
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": "self"
|
|
}]
|
|
},
|
|
{
|
|
"label": "取消",
|
|
"actiontype": "close",
|
|
"bgcolor": "#475569",
|
|
"color": "#FFFFFF",
|
|
"binds": [{
|
|
"wid": "self",
|
|
"event": "click",
|
|
"actiontype": "close",
|
|
"target": "self"
|
|
}]
|
|
}
|
|
]
|
|
},
|
|
"binds": [{
|
|
"wid": "self",
|
|
"event": "submit",
|
|
"actiontype": "close",
|
|
"target": "PopupWindow"
|
|
}]
|
|
}
|