- 7个数据库表: suppliers, supply_contracts, supply_contract_items, sub_distributors, distribution_agreements, distribution_agreement_items, supplychain_accounting - CRUD JSON配置 (7个列表 + editable段) - API端点: create/update/delete (21个) + calculate_accounting + query_discount (2个) - 前端页面: index.ui + 5个功能页 + menu.ui - 记账计算: 自动查找有效合同/协议折扣,计算进货金额、分销金额、利润 - 折扣查找优先级: 精确产品 > 产品分类 > 默认折扣 - productid/prodtypeid引用product模块(即将开发)
57 lines
1.7 KiB
JSON
57 lines
1.7 KiB
JSON
{
|
|
"tblname": "distribution_agreements",
|
|
"alias": "distribution_agreements_list",
|
|
"title": "分销协议管理",
|
|
"params": {
|
|
"sortby": [
|
|
"created_at desc"
|
|
],
|
|
"logined_userorgid": "resellerid",
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{
|
|
"value": "1",
|
|
"text": "有效"
|
|
},
|
|
{
|
|
"value": "0",
|
|
"text": "无效"
|
|
},
|
|
{
|
|
"value": "2",
|
|
"text": "已过期"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": [
|
|
"id",
|
|
"resellerid",
|
|
"created_by",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
"subtables": [
|
|
{
|
|
"field": "id",
|
|
"title": "产品折扣",
|
|
"url": "{{entire_url('../distribution_agreement_items_list')}}",
|
|
"subtable": "distribution_agreement_items"
|
|
}
|
|
],
|
|
"editable": {
|
|
"new_data_url": "{{entire_url('../api/distribution_agreements_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/distribution_agreements_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/distribution_agreements_delete.dspy')}}"
|
|
}
|
|
}
|
|
} |