This commit is contained in:
yumoqing 2025-07-17 13:52:07 +08:00
parent b46426abe0
commit e452bce58f
3 changed files with 94 additions and 7 deletions

View File

@ -35,15 +35,9 @@
"subtables":[ "subtables":[
{ {
"field":"orgid", "field":"orgid",
"title":"Org. type", "title":"类型管理",
"url":"../orgtypes", "url":"../orgtypes",
"subtable":"orgtypes" "subtable":"orgtypes"
},
{
"field":"orgid",
"title":"Users",
"url":"../users",
"subtable":"users"
} }
], ],
"record_toolbar": null "record_toolbar": null

44
json/provider.json Normal file
View File

@ -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
}
}

49
json/reseller.json Normal file
View File

@ -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
}
}