set_credit_form.ui 用了无效的 actiontype:'close' 来关闭弹窗, 表单提交后弹窗不关,操作员以为失败重复提交。 修复: - set_credit_form.ui: 移除无效的 actiontype:'close' bind - credit_manage.ui: popup_options.dismiss_events 加上'submited', Form 提交成功后自动关闭弹窗(2处弹窗:新增授信 + 调整)
46 lines
1.5 KiB
XML
46 lines
1.5 KiB
XML
{
|
|
"widgettype": "Form",
|
|
"id": "credit_form",
|
|
"options": {
|
|
"width": "100%",
|
|
"padding": "16px",
|
|
"submit_url": "{{entire_url('/accounting/credit_limit/api/set_customer_credit.dspy')}}{% if params_kw.get('id') %}?id={{params_kw.get('id')}}{% endif %}",
|
|
"fields": [
|
|
{
|
|
"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": []
|
|
}
|