fix: add dismiss_events to all PopupWindows in accounting module

All PopupWindows loading Form widgets now include 'dismiss_events: ["cancel"]'
so the Form Cancel button properly closes the popup instead of doing nothing.

- credit_manage.ui: '新增授信' and '调整' popups
- error_accounting.ui: '报告错帐' popup
- myaccounts.ui: '充值' and '明细' popups

Ref: bricks-framework skill — PopupWindow dismiss_events pattern
This commit is contained in:
yumoqing 2026-06-29 10:48:29 +08:00
parent 40f037c517
commit 31ef3531c8
3 changed files with 8 additions and 3 deletions

View File

@ -40,7 +40,8 @@
"popup_options": {
"title": "新增客户授信",
"width": "480px",
"height": "520px"
"height": "520px",
"dismiss_events": ["cancel"]
},
"options": {
"url": "{{entire_url('/accounting/credit_limit/api/set_credit_form.ui')}}"
@ -249,7 +250,8 @@
"popup_options": {
"title": "调整授信额度",
"width": "480px",
"height": "520px"
"height": "520px",
"dismiss_events": ["cancel"]
},
"options": {
"url": "{{entire_url('/accounting/credit_limit/api/set_credit_form.ui')}}",

View File

@ -127,7 +127,8 @@
"popup_options": {
"title": "报告错帐",
"width": "560px",
"height": "600px"
"height": "600px",
"dismiss_events": ["cancel"]
},
"options": {
"url": "{{entire_url('/accounting/error_accounting_report.ui')}}"

View File

@ -76,6 +76,7 @@
"width":"600px",
"height":"500px"
{% endif %}
,"dismiss_events":["cancel"]
},
"options":{
"params_kw":{
@ -98,6 +99,7 @@
"width":"700px",
"height":"550px"
{% endif %}
,"dismiss_events":["cancel"]
},
"options":{
"params_kw":{