- 修复文件权限 (600→644) - 删除调试日志 (global_func.py) - 添加 CRUD 生成的 wwwroot 文件 (pipeline_core/dist/ops) - 添加 mysql.ddl.sql 文件 - 更新 pyproject.toml 配置 - 添加 showcase 模块安装 (build.sh) - 更新 index.ui (sidebar toggle + 管理按钮) - 设置 start.sh/stop.sh 可执行权限 - 添加 wwwroot 符号链接 (appbase/rbac/pipeline_sdlc) - 更新 .gitignore (排除 pkgs/bricks/pipeline.pid)
327 lines
7.6 KiB
XML
327 lines
7.6 KiB
XML
|
|
{
|
|
"widgettype":"VBox",
|
|
"options":{"cheight":40,"width":"100%"},
|
|
"subwidgets":[{
|
|
"id":"distributor_pipeline_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"分销商-产线关联定价表",
|
|
|
|
|
|
|
|
|
|
"toolbar":{
|
|
"tools": [
|
|
{
|
|
"selected_row": true,
|
|
"name": "distributors",
|
|
"icon": "{{entire_url('/imgs/distributors.svg')}}",
|
|
"label": "分销商"
|
|
},
|
|
{
|
|
"selected_row": true,
|
|
"name": "pipelines",
|
|
"icon": "{{entire_url('/imgs/pipelines.svg')}}",
|
|
"label": "产线"
|
|
}
|
|
]
|
|
},
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_distributor_pipeline.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_distributor_pipeline.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_distributor_pipeline.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_distributor_pipeline.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id"
|
|
],
|
|
"cwidth": {},
|
|
"alters": {
|
|
"distributor_id": {
|
|
"dataurl": "{{entire_url('../api/get_search_distributor_id.dspy')}}"
|
|
},
|
|
"pipeline_id": {
|
|
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"id",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "主键",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "主键"
|
|
},
|
|
{
|
|
"name": "distributor_id",
|
|
"title": "分销商ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "分销商ID",
|
|
"uitype": "code",
|
|
"valueField": "distributor_id",
|
|
"textField": "distributor_id_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pipeline_dist')}}",
|
|
"table": "distributors",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "distributor_id",
|
|
"textField": "distributor_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_distributor_id.dspy')}}"
|
|
},
|
|
{
|
|
"name": "pipeline_id",
|
|
"title": "产线ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"label": "产线ID",
|
|
"uitype": "code",
|
|
"valueField": "pipeline_id",
|
|
"textField": "pipeline_id_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pipeline_dist')}}",
|
|
"table": "pipelines",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "pipeline_id",
|
|
"textField": "pipeline_id_text"
|
|
},
|
|
"dataurl": "{{entire_url('../api/get_search_pipeline_id.dspy')}}"
|
|
},
|
|
{
|
|
"name": "custom_price",
|
|
"title": "自定义单价",
|
|
"type": "double",
|
|
"length": 15,
|
|
"dec": 4,
|
|
"cwidth": 15,
|
|
"uitype": "float",
|
|
"datatype": "double",
|
|
"label": "自定义单价"
|
|
},
|
|
{
|
|
"name": "markup_type",
|
|
"title": "加价方式",
|
|
"type": "str",
|
|
"length": 20,
|
|
"label": "加价方式",
|
|
"uitype": "code",
|
|
"valueField": "markup_type",
|
|
"textField": "markup_type_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pipeline_dist')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "markup_type",
|
|
"textField": "markup_type_text",
|
|
"cond": "parentid='markup_type'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "markup_value",
|
|
"title": "加价值",
|
|
"type": "double",
|
|
"length": 10,
|
|
"dec": 2,
|
|
"cwidth": 10,
|
|
"uitype": "float",
|
|
"datatype": "double",
|
|
"label": "加价值"
|
|
},
|
|
{
|
|
"name": "daily_limit",
|
|
"title": "日限额",
|
|
"type": "int",
|
|
"default": "0",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "日限额"
|
|
},
|
|
{
|
|
"name": "monthly_limit",
|
|
"title": "月限额",
|
|
"type": "int",
|
|
"default": "0",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "月限额"
|
|
},
|
|
{
|
|
"name": "today_usage",
|
|
"title": "今日已用",
|
|
"type": "int",
|
|
"default": "0",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "今日已用"
|
|
},
|
|
{
|
|
"name": "month_usage",
|
|
"title": "本月已用",
|
|
"type": "int",
|
|
"default": "0",
|
|
"length": 0,
|
|
"uitype": "int",
|
|
"datatype": "int",
|
|
"label": "本月已用"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态",
|
|
"type": "str",
|
|
"length": 20,
|
|
"default": "active",
|
|
"label": "状态",
|
|
"uitype": "code",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pipeline_dist')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"cond": "parentid='dp_status'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"data_filter":{
|
|
"distributor_id": "",
|
|
"pipeline_id": "",
|
|
"status": ""
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[
|
|
{
|
|
"wid": "self",
|
|
"event": "distributors",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "分销商",
|
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=distributors",
|
|
"resizable": true,
|
|
"height": "70%",
|
|
"width": "70%"
|
|
},
|
|
"params_mapping": {
|
|
"mapping": {
|
|
"id": "distributor_id",
|
|
"referer_widget": "referer_widget"
|
|
},
|
|
"need_other": false
|
|
},
|
|
"options": {
|
|
"method": "POST",
|
|
"params": {},
|
|
"url": "{{entire_url('../distributors')}}"
|
|
}
|
|
},
|
|
{
|
|
"wid": "self",
|
|
"event": "pipelines",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "产线",
|
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=pipelines",
|
|
"resizable": true,
|
|
"height": "70%",
|
|
"width": "70%"
|
|
},
|
|
"params_mapping": {
|
|
"mapping": {
|
|
"id": "pipeline_id",
|
|
"referer_widget": "referer_widget"
|
|
},
|
|
"need_other": false
|
|
},
|
|
"options": {
|
|
"method": "POST",
|
|
"params": {},
|
|
"url": "{{entire_url('../pipelines')}}"
|
|
}
|
|
}
|
|
]
|
|
|
|
}]
|
|
} |