From e452bce58f50b557e46e395e6aa53dfd7a2b9377 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 17 Jul 2025 13:52:07 +0800 Subject: [PATCH] bugfix --- json/organization.json | 8 +------ json/provider.json | 44 +++++++++++++++++++++++++++++++++++++ json/reseller.json | 49 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+), 7 deletions(-) create mode 100644 json/provider.json create mode 100644 json/reseller.json diff --git a/json/organization.json b/json/organization.json index 66e312a..50fa259 100644 --- a/json/organization.json +++ b/json/organization.json @@ -35,15 +35,9 @@ "subtables":[ { "field":"orgid", - "title":"Org. type", + "title":"类型管理", "url":"../orgtypes", "subtable":"orgtypes" - }, - { - "field":"orgid", - "title":"Users", - "url":"../users", - "subtable":"users" } ], "record_toolbar": null diff --git a/json/provider.json b/json/provider.json new file mode 100644 index 0000000..b529c08 --- /dev/null +++ b/json/provider.json @@ -0,0 +1,44 @@ +{ + "tblname": "organization", + "alias":"provider", + "title":"供应商", + "params": { + "sortby":"orgname", + "get_data_url": "{{entire_url('../get_provider.dspy')}}", + "new_data_url": "{{entire_url('../add_provider.dspy')}}", + "editor":{ + "binds":[ + { + "wid":"province_id", + "event":"changed", + "actiontype":"script", + "target":"city_id", + "script":"this.loadData({cond:'parentid=\\''+params.province_id+'\\''})" + }, + { + "wid":"city_id", + "event":"changed", + "actiontype":"script", + "target":"distinct_id", + "script":"this.loadData({cond:'parentid=\\'' + params.city_id+ '\\''})" + } + ] + }, + "browserfields": { + "exclouded": ["id"], + "alters": { + } + }, + "editexclouded": [ + "id" + ], + "subtables":[ + { + "field":"orgid", + "title":"机构类型", + "subtable":"orgtypes" + } + ], + "record_toolbar": null + } +} diff --git a/json/reseller.json b/json/reseller.json new file mode 100644 index 0000000..6d276b4 --- /dev/null +++ b/json/reseller.json @@ -0,0 +1,49 @@ +{ + "tblname": "organization", + "alias":"reseller", + "title":"商户", + "params": { + "get_data_url": "{{entire_url('../get_reseller.dspy')}}", + "new_data_url": "{{entire_url('../add_reseller.dspy')}}", + "sortby":"orgname", + "editor":{ + "binds":[ + { + "wid":"province_id", + "event":"changed", + "actiontype":"script", + "target":"city_id", + "script":"this.loadData({cond:'parentid=\\''+params.province_id+'\\''})" + }, + { + "wid":"city_id", + "event":"changed", + "actiontype":"script", + "target":"distinct_id", + "script":"this.loadData({cond:'parentid=\\'' + params.city_id+ '\\''})" + } + ] + }, + "browserfields": { + "exclouded": ["id"], + "alters": { + } + }, + "editexclouded": [ + "id" + ], + "subtables":[ + { + "field":"orgid", + "title":"机构类型", + "subtable":"orgtypes" + }, + { + "field":"orgid", + "title":"用户", + "subtable":"users" + } + ], + "record_toolbar": null + } +}