regenerate CRUD with enriched code field support in data_filter

This commit is contained in:
Hermes Agent 2026-06-22 11:56:16 +08:00
parent c7b364926d
commit daf72d297d
2 changed files with 49 additions and 12 deletions

View File

@ -1,8 +1,33 @@
{
"widgettype":"VBox",
"options":{"cheight":40,"width":"100%"},
"subwidgets":[{
"options":{"height":"100%","width":"100%"},
"subwidgets":[
{
"widgettype":"InlineForm",
"id":"pricing_program_search",
"options":{
"css":"card",
"padding":"8px",
"show_label":false,
"submit_label":"搜索",
"submit_css":"primary",
"fields":[
{"name":"name","uitype":"str","placeholder":"项目名称","cwidth":15},
{"name": "providerid", "uitype": "code", "placeholder": "供应商", "cwidth": 15, "valueField": "providerid", "textField": "providerid_text", "params": {"dbname": "{{get_module_dbname('pricing')}}", "table": "organization", "tblvalue": "id", "tbltext": "orgname", "valueField": "providerid", "textField": "providerid_text"}, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}"}
]
},
"binds":[{
"wid":"self",
"event":"submit",
"actiontype":"method",
"target":"pricing_program_tbl",
"method":"render"
}]
},
{
"id":"pricing_program_tbl",
"widgettype":"Tabular",
"options":{
@ -63,11 +88,6 @@
"pricing_spec"
],
"alters": {
"providerid": {
"valueField": "id",
"textField": "orgname",
"dataurl": "{{entire_url('/rbac/get_provider.dspy')}}"
},
"discount": {
"rules": [
{
@ -146,8 +166,8 @@
"length": 32,
"label": "供应商",
"uitype": "code",
"valueField": "id",
"textField": "orgname",
"valueField": "providerid",
"textField": "providerid_text",
"params": {
"dbname": "{{get_module_dbname('pricing')}}",
"table": "organization",
@ -156,7 +176,7 @@
"valueField": "providerid",
"textField": "providerid_text"
},
"dataurl": "{{entire_url('/rbac/get_provider.dspy')}}"
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
},
{
"name": "pricing_belong",
@ -232,6 +252,21 @@
"data_filter":{
"fields": [
{
"field": "name",
"title": "项目名称",
"uitype": "str"
},
{
"field": "providerid",
"title": "供应商",
"uitype": "code"
}
]
},

View File

@ -1,8 +1,10 @@
{
"widgettype":"VBox",
"options":{"cheight":40,"width":"100%"},
"subwidgets":[{
"options":{"height":"100%","width":"100%"},
"subwidgets":[
{
"id":"pricing_program_timing_tbl",
"widgettype":"Tabular",
"options":{