新增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(分组菜单)
325 lines
7.0 KiB
XML
325 lines
7.0 KiB
XML
|
|
{
|
|
"widgettype":"VBox",
|
|
"options":{"cheight":40,"width":"100%"},
|
|
"subwidgets":[{
|
|
"id":"supply_contracts_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"供销合同表",
|
|
|
|
|
|
|
|
|
|
"toolbar":{
|
|
"tools": [
|
|
{
|
|
"selected_row": true,
|
|
"name": "supply_contract_items",
|
|
"icon": "{{entire_url('/imgs/supply_contract_items.svg')}}",
|
|
"label": "产品折扣明细"
|
|
}
|
|
]
|
|
},
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_supply_contracts.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_supply_contracts.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_supply_contracts.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_supply_contracts.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id"
|
|
],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{
|
|
"value": "1",
|
|
"text": "生效中"
|
|
},
|
|
{
|
|
"value": "2",
|
|
"text": "已到期"
|
|
},
|
|
{
|
|
"value": "0",
|
|
"text": "已终止"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "主键ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "主键ID"
|
|
},
|
|
{
|
|
"name": "resellerid",
|
|
"title": "所属分销商机构ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "所属分销商机构ID",
|
|
"uitype": "code",
|
|
"valueField": "resellerid",
|
|
"textField": "resellerid_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('supplychain')}}",
|
|
"table": "organization",
|
|
"tblvalue": "id",
|
|
"tbltext": "orgname",
|
|
"valueField": "resellerid",
|
|
"textField": "resellerid_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "supplier_id",
|
|
"title": "供应商ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "供应商ID",
|
|
"uitype": "code",
|
|
"valueField": "supplier_id",
|
|
"textField": "supplier_id_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('supplychain')}}",
|
|
"table": "suppliers",
|
|
"tblvalue": "id",
|
|
"tbltext": "supplier_name",
|
|
"valueField": "supplier_id",
|
|
"textField": "supplier_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "contract_code",
|
|
"title": "合同编号",
|
|
"type": "str",
|
|
"length": 64,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "合同编号"
|
|
},
|
|
{
|
|
"name": "contract_name",
|
|
"title": "合同名称",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "合同名称"
|
|
},
|
|
{
|
|
"name": "sign_date",
|
|
"title": "签署日期",
|
|
"type": "date",
|
|
"length": 0,
|
|
"uitype": "date",
|
|
"datatype": "date",
|
|
"label": "签署日期"
|
|
},
|
|
{
|
|
"name": "start_date",
|
|
"title": "生效日期",
|
|
"type": "date",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "date",
|
|
"datatype": "date",
|
|
"label": "生效日期"
|
|
},
|
|
{
|
|
"name": "end_date",
|
|
"title": "到期日期",
|
|
"type": "date",
|
|
"length": 0,
|
|
"uitype": "date",
|
|
"datatype": "date",
|
|
"label": "到期日期"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "char",
|
|
"length": 1,
|
|
"nullable": "no",
|
|
"default": "1",
|
|
"cwidth": 4,
|
|
"uitype": "code",
|
|
"datatype": "char",
|
|
"label": "状态",
|
|
"data": [
|
|
{
|
|
"value": "1",
|
|
"text": "生效中"
|
|
},
|
|
{
|
|
"value": "2",
|
|
"text": "已到期"
|
|
},
|
|
{
|
|
"value": "0",
|
|
"text": "已终止"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "default_discount",
|
|
"title": "默认折扣",
|
|
"type": "double",
|
|
"length": 5,
|
|
"dec": 4,
|
|
"default": "1.0000",
|
|
"cwidth": 5,
|
|
"uitype": "float",
|
|
"datatype": "double",
|
|
"label": "默认折扣"
|
|
},
|
|
{
|
|
"name": "remark",
|
|
"title": "备注",
|
|
"type": "text",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "备注"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "创建人"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "datetime",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "datetime",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "datetime",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "datetime",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"data_filter":{
|
|
"AND": [
|
|
{
|
|
"field": "contract_name",
|
|
"op": "LIKE",
|
|
"var": "contract_name"
|
|
},
|
|
{
|
|
"field": "contract_code",
|
|
"op": "LIKE",
|
|
"var": "contract_code"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"op": "=",
|
|
"var": "status"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
"filter_labels":{
|
|
"contract_name": "合同名称",
|
|
"contract_code": "合同编号",
|
|
"status": "状态"
|
|
},
|
|
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[
|
|
{
|
|
"wid": "self",
|
|
"event": "supply_contract_items",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "产品折扣明细",
|
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=supply_contract_items",
|
|
"resizable": true,
|
|
"height": "70%",
|
|
"width": "70%"
|
|
},
|
|
"params_mapping": {
|
|
"mapping": {
|
|
"id": "contract_id",
|
|
"referer_widget": "referer_widget"
|
|
},
|
|
"need_other": false
|
|
},
|
|
"options": {
|
|
"method": "POST",
|
|
"params": {},
|
|
"url": "{{entire_url('../supply_contract_items_list')}}"
|
|
}
|
|
}
|
|
]
|
|
|
|
}]
|
|
} |