accounting/wwwroot/credit_limit/api/set_credit_form.ui
yumoqing 78ff190789 feat(credit): redesign credit limit UI with dashboard, overview and management views
- Add hub.ui as main entry with stat cards (total/used/available/usage%)
- Add credit_overview.ui for user's own credit visualization with progress bars
- Add credit_manage.ui for distributor sales to manage customer credits
- Add set_credit_form.ui and set_customer_credit.dspy for credit adjustment
- Add credit_summary.dspy API for stats data
- Enhance creditlimit.py with get_credit_stats, get_my_credit_list, get_all_customer_credits
- Register new functions in init.py with ServerEnv
2026-05-30 21:00:27 +08:00

64 lines
1.8 KiB
XML

{
"widgettype": "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": "accountid",
"label": "账户ID",
"uitype": "str",
"required": true,
"value": "{{params_kw.get('accountid', '')}}"
},
{
"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"
},
{
"label": "取消",
"actiontype": "close",
"bgcolor": "#475569",
"color": "#FFFFFF"
}
]
}
}