新增3张核心表: - platform_supply_relations: 平台内org-to-org供销关系(分销/代理/直供) - platform_supply_products: 供销产品明细(供货价/折扣/佣金) - product_supplier_mapping: 统一产品供应映射(内部+外部) 新增3个业务API: - query_platform_suppliers: 查询平台可用供应方机构 - query_platform_products: 查询供应方产品目录 - import_supplier_product: 引入供应方产品到需求方 更新: init/data.json(6组appcodes), load_path.py(RBAC权限), menu.ui(分组菜单)
52 lines
1.8 KiB
JSON
52 lines
1.8 KiB
JSON
{
|
|
"tblname": "product_supplier_mapping",
|
|
"alias": "product_supplier_mapping_list",
|
|
"title": "产品供应映射管理",
|
|
"params": {
|
|
"sortby": ["created_at desc"],
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "supplier_type", "op": "=", "var": "supplier_type"},
|
|
{"field": "buyer_org_id", "op": "=", "var": "buyer_org_id"},
|
|
{"field": "status", "op": "=", "var": "status"}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"supplier_type": "供应商类型",
|
|
"buyer_org_id": "采购方",
|
|
"status": "状态"
|
|
},
|
|
"browserfields": {
|
|
"exclouded": ["id"],
|
|
"alters": {
|
|
"supplier_type": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "internal", "text": "平台内部"},
|
|
{"value": "external", "text": "外部供应商"}
|
|
]
|
|
},
|
|
"is_preferred": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "是"},
|
|
{"value": "0", "text": "否"}
|
|
]
|
|
},
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "1", "text": "启用"},
|
|
{"value": "0", "text": "停用"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/product_supplier_mapping_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/product_supplier_mapping_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/product_supplier_mapping_delete.dspy')}}"
|
|
}
|
|
}
|
|
}
|