- sub_resellers.json 模型: sub_reseller_code(varchar 64) → sub_resellerid(varchar 32) - 唯一索引: idx_sr_code → idx_sr_sub_resellerid - codes 关联: sub_resellerid 关联 organization.orgname - init.py create_sub_reseller: 写入 sub_resellers 表(非 sub_distributors),字段 sub_resellerid - init.py get_distribution_chain: SQL SELECT sub_resellerid(非 orgid) - JSON/UI/dspy 字段引用同步更新 - DDL 重新生成
38 lines
1.3 KiB
JSON
38 lines
1.3 KiB
JSON
{
|
|
"tblname": "sub_resellers",
|
|
"alias": "sub_resellers_list",
|
|
"title": "二级分销商管理",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"logined_userorgid": "resellerid",
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "sub_reseller_name", "op": "LIKE", "var": "sub_reseller_name"},
|
|
{"field": "status", "op": "=", "var": "status"}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"sub_reseller_name": "二级分销商名称",
|
|
"status": "状态"
|
|
},
|
|
"editexclouded": ["id", "resellerid", "sub_resellerid", "created_by", "created_at", "updated_at"],
|
|
"browserfields": {
|
|
"exclouded": ["id"],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "正常"},
|
|
{"value": "0", "text": "停用"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('/supplychain/api/sub_resellers_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('/supplychain/api/sub_resellers_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('/supplychain/api/sub_resellers_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|