Same as index.ui fix — entire_url() relative paths lose module prefix. Now both generated files AND source configs use absolute paths.
78 lines
3.1 KiB
JSON
78 lines
3.1 KiB
JSON
{
|
|
"tblname": "platform_supply_relations",
|
|
"alias": "platform_supply_relations_list",
|
|
"title": "平台供销关系管理",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "relation_name", "op": "LIKE", "var": "relation_name"},
|
|
{"field": "relation_code", "op": "LIKE", "var": "relation_code"},
|
|
{"field": "relation_type", "op": "=", "var": "relation_type"},
|
|
{"field": "status", "op": "=", "var": "status"}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"relation_name": "关系名称",
|
|
"relation_code": "关系编号",
|
|
"relation_type": "合作类型",
|
|
"status": "状态"
|
|
},
|
|
"browserfields": {
|
|
"exclouded": ["id"],
|
|
"alters": {
|
|
"supplier_org_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('/supplychain/api/get_search_orgid.dspy')}}",
|
|
"valueField": "orgid",
|
|
"textField": "orgid_text"
|
|
},
|
|
"buyer_org_id": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('/supplychain/api/get_search_orgid.dspy')}}",
|
|
"valueField": "orgid",
|
|
"textField": "orgid_text"
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "生效中"},
|
|
{"value": "2", "text": "已到期"},
|
|
{"value": "0", "text": "已终止"}
|
|
]
|
|
},
|
|
"relation_type": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "distribution", "text": "分销"},
|
|
{"value": "agency", "text": "代理"},
|
|
{"value": "direct", "text": "直供"}
|
|
]
|
|
},
|
|
"settlement_mode": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "discount", "text": "折扣"},
|
|
{"value": "rebate", "text": "返佣"},
|
|
{"value": "fixed", "text": "固定价"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": ["id", "relation_code", "created_by", "created_at", "updated_at"],
|
|
"subtables": [
|
|
{
|
|
"field": "relation_id",
|
|
"title": "供销产品明细",
|
|
"url": "{{entire_url('/supplychain/platform_supply_products_list')}}",
|
|
"subtable": "platform_supply_products"
|
|
}
|
|
],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('/supplychain/api/platform_supply_relations_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('/supplychain/api/platform_supply_relations_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('/supplychain/api/platform_supply_relations_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|