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