From daf72d297d4da3de6c97d5f857190a94b03c6e03 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Mon, 22 Jun 2026 11:56:16 +0800 Subject: [PATCH] regenerate CRUD with enriched code field support in data_filter --- wwwroot/pricing_program/index.ui | 55 ++++++++++++++++++++----- wwwroot/pricing_program_timing/index.ui | 6 ++- 2 files changed, 49 insertions(+), 12 deletions(-) diff --git a/wwwroot/pricing_program/index.ui b/wwwroot/pricing_program/index.ui index 3375278..0c76294 100644 --- a/wwwroot/pricing_program/index.ui +++ b/wwwroot/pricing_program/index.ui @@ -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" + } + ] +}, + diff --git a/wwwroot/pricing_program_timing/index.ui b/wwwroot/pricing_program_timing/index.ui index 01b543f..5d6ed6a 100644 --- a/wwwroot/pricing_program_timing/index.ui +++ b/wwwroot/pricing_program_timing/index.ui @@ -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":{