fix: add status codes to models — prevents empty code field in search_form
This commit is contained in:
parent
5705e674b5
commit
6c926cf3d5
@ -3,7 +3,9 @@
|
||||
{
|
||||
"name": "sub_distributors",
|
||||
"title": "二级分销商表",
|
||||
"primary": ["id"],
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
@ -119,17 +121,24 @@
|
||||
{
|
||||
"name": "idx_sd_reseller",
|
||||
"idxtype": "index",
|
||||
"idxfields": ["resellerid"]
|
||||
"idxfields": [
|
||||
"resellerid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_sd_code",
|
||||
"idxtype": "unique",
|
||||
"idxfields": ["resellerid", "sub_dist_code"]
|
||||
"idxfields": [
|
||||
"resellerid",
|
||||
"sub_dist_code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_sd_manager",
|
||||
"idxtype": "index",
|
||||
"idxfields": ["managed_by"]
|
||||
"idxfields": [
|
||||
"managed_by"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
@ -138,6 +147,13 @@
|
||||
"table": "organization",
|
||||
"valuefield": "id",
|
||||
"textfield": "orgname"
|
||||
},
|
||||
{
|
||||
"field": "status",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='sub_distributor_status'"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -3,7 +3,9 @@
|
||||
{
|
||||
"name": "suppliers",
|
||||
"title": "供应商表",
|
||||
"primary": ["id"],
|
||||
"primary": [
|
||||
"id"
|
||||
],
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
@ -145,17 +147,24 @@
|
||||
{
|
||||
"name": "idx_suppliers_reseller",
|
||||
"idxtype": "index",
|
||||
"idxfields": ["resellerid"]
|
||||
"idxfields": [
|
||||
"resellerid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_suppliers_orgid",
|
||||
"idxtype": "index",
|
||||
"idxfields": ["orgid"]
|
||||
"idxfields": [
|
||||
"orgid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_suppliers_code",
|
||||
"idxtype": "unique",
|
||||
"idxfields": ["resellerid", "supplier_code"]
|
||||
"idxfields": [
|
||||
"resellerid",
|
||||
"supplier_code"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": [
|
||||
@ -192,6 +201,13 @@
|
||||
"textfield": "v",
|
||||
"cond": "parentid='supplier_settle_cycle'"
|
||||
},
|
||||
{
|
||||
"field": "status",
|
||||
"table": "appcodes_kv",
|
||||
"valuefield": "k",
|
||||
"textfield": "v",
|
||||
"cond": "parentid='supplier_status'"
|
||||
},
|
||||
{
|
||||
"field": "status",
|
||||
"table": "appcodes_kv",
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user