regenerate CRUD with enriched code field support in data_filter
This commit is contained in:
parent
c7b364926d
commit
daf72d297d
@ -1,8 +1,33 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"widgettype":"VBox",
|
"widgettype":"VBox",
|
||||||
"options":{"cheight":40,"width":"100%"},
|
"options":{"height":"100%","width":"100%"},
|
||||||
"subwidgets":[{
|
"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",
|
"id":"pricing_program_tbl",
|
||||||
"widgettype":"Tabular",
|
"widgettype":"Tabular",
|
||||||
"options":{
|
"options":{
|
||||||
@ -63,11 +88,6 @@
|
|||||||
"pricing_spec"
|
"pricing_spec"
|
||||||
],
|
],
|
||||||
"alters": {
|
"alters": {
|
||||||
"providerid": {
|
|
||||||
"valueField": "id",
|
|
||||||
"textField": "orgname",
|
|
||||||
"dataurl": "{{entire_url('/rbac/get_provider.dspy')}}"
|
|
||||||
},
|
|
||||||
"discount": {
|
"discount": {
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
@ -146,8 +166,8 @@
|
|||||||
"length": 32,
|
"length": 32,
|
||||||
"label": "供应商",
|
"label": "供应商",
|
||||||
"uitype": "code",
|
"uitype": "code",
|
||||||
"valueField": "id",
|
"valueField": "providerid",
|
||||||
"textField": "orgname",
|
"textField": "providerid_text",
|
||||||
"params": {
|
"params": {
|
||||||
"dbname": "{{get_module_dbname('pricing')}}",
|
"dbname": "{{get_module_dbname('pricing')}}",
|
||||||
"table": "organization",
|
"table": "organization",
|
||||||
@ -156,7 +176,7 @@
|
|||||||
"valueField": "providerid",
|
"valueField": "providerid",
|
||||||
"textField": "providerid_text"
|
"textField": "providerid_text"
|
||||||
},
|
},
|
||||||
"dataurl": "{{entire_url('/rbac/get_provider.dspy')}}"
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pricing_belong",
|
"name": "pricing_belong",
|
||||||
@ -232,6 +252,21 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"data_filter":{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"field": "name",
|
||||||
|
"title": "项目名称",
|
||||||
|
"uitype": "str"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "providerid",
|
||||||
|
"title": "供应商",
|
||||||
|
"uitype": "code"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"widgettype":"VBox",
|
"widgettype":"VBox",
|
||||||
"options":{"cheight":40,"width":"100%"},
|
"options":{"height":"100%","width":"100%"},
|
||||||
"subwidgets":[{
|
"subwidgets":[
|
||||||
|
|
||||||
|
{
|
||||||
"id":"pricing_program_timing_tbl",
|
"id":"pricing_program_timing_tbl",
|
||||||
"widgettype":"Tabular",
|
"widgettype":"Tabular",
|
||||||
"options":{
|
"options":{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user