Sage 主内容区 ID 是 sage_main_content 而非 main_content。 global_menu.ui 确认: target = app.sage_main_content
57 lines
1.8 KiB
XML
57 lines
1.8 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": [
|
|
{
|
|
"wid": "self",
|
|
"event": "submited",
|
|
"actiontype": "urlwidget",
|
|
"target": "app.sage_main_content",
|
|
"mode": "replace",
|
|
"options": {
|
|
"url": "{{entire_url('/accounting/credit_limit/credit_manage.ui')}}"
|
|
}
|
|
}
|
|
]
|
|
}
|