supplychain/json/sub_distributors_list.json
yumoqing a3176e4f34 fix: use absolute /supplychain/ URLs in JSON CRUD source configs
Same as index.ui fix — entire_url() relative paths lose module prefix.
Now both generated files AND source configs use absolute paths.
2026-07-12 10:19:30 +08:00

80 lines
2.3 KiB
JSON

{
"tblname": "sub_distributors",
"alias": "sub_distributors_list",
"title": "分销商管理",
"params": {
"sortby": [
"created_at desc"
],
"logined_userorgid": "resellerid",
"data_filter": {
"AND": [
{
"field": "sub_dist_name",
"op": "LIKE",
"var": "sub_dist_name"
},
{
"field": "sub_dist_code",
"op": "LIKE",
"var": "sub_dist_code"
},
{
"field": "status",
"op": "=",
"var": "status"
}
]
},
"filter_labels": {
"sub_dist_name": "分销商名称",
"sub_dist_code": "分销商编号",
"status": "状态"
},
"browserfields": {
"exclouded": [
"id",
"resellerid",
"created_by",
"created_at",
"updated_at"
],
"alters": {
"status": {
"uitype": "code",
"data": [
{
"value": "1",
"text": "正常"
},
{
"value": "0",
"text": "停用"
}
]
}
}
},
"editexclouded": [
"id",
"resellerid",
"sub_dist_code",
"created_by",
"created_at",
"updated_at"
],
"editable": {
"new_data_url": "{{entire_url('/supplychain/api/sub_distributors_create.dspy')}}",
"update_data_url": "{{entire_url('/supplychain/api/sub_distributors_update.dspy')}}",
"delete_data_url": "{{entire_url('/supplychain/api/sub_distributors_delete.dspy')}}"
},
"subtables": [
{
"field": "sub_reseller_id",
"title": "分销协议",
"url": "{{entire_url('/supplychain/distribution_agreements_list')}}",
"subtable": "distribution_agreements"
}
]
}
}