PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
117 lines
2.9 KiB
JSON
117 lines
2.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "价格对比",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_JICQUOTATION_COMPARE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "MATERIALNAME",
|
|
"label" : "材料名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PROVINCE",
|
|
"label" : "省",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CITY",
|
|
"label" : "市",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "COMPAREKEY",
|
|
"label" : "对比主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MATERIALNAME",
|
|
"label" : "材料名称",
|
|
"width" : 180
|
|
}, {
|
|
"name" : "MATERIALSPEC",
|
|
"label" : "规格型号",
|
|
"width" : 160
|
|
}, {
|
|
"name" : "UNIT",
|
|
"label" : "单位",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "MINPRICE",
|
|
"label" : "最低价",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "MAXPRICE",
|
|
"label" : "最高价",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "AVGPRICE",
|
|
"label" : "平均价",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "SUPPLIERCOUNT",
|
|
"label" : "供应商数",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "DIFFPRICE",
|
|
"label" : "价差",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "DIFFRATE",
|
|
"label" : "价差比例",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "查看趋势",
|
|
"label" : "查看趋势",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看趋势",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"PM_JICQUOTATION_COMPARE_ID" : "${selectedItems[0].PM_JICQUOTATION_COMPARE_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/c967c4c8-75d7-4632-9c14-ca0cdc6b151a?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_JICQUOTATION_COMPARE_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "6f3efbb4-46a0-4206-af2d-d017700d1916"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |