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>
308 lines
8.9 KiB
JSON
308 lines
8.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "预算单元维护",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_BUDGETUNIT_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "PM_PROJECT_ID",
|
|
"label" : "工程名称",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"value" : "${currentProject}"
|
|
}, {
|
|
"name" : "BUDGETUNITNAME",
|
|
"label" : "预算单元名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PROFESSIONALTYPE",
|
|
"label" : "工程类别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PROJECT_ProfessionalType"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_BUDGETUNIT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PM_PROJECT_ID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "BUDGETUNITNAME",
|
|
"label" : "预算单元名称",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "PROFESSIONALTYPE",
|
|
"label" : "工程类别",
|
|
"width" : 120,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "建筑工程",
|
|
"2" : "装饰工程",
|
|
"3" : "安装工程",
|
|
"4" : "市政工程",
|
|
"5" : "园林绿化工程",
|
|
"6" : "钢结构工程",
|
|
"7" : "修缮工程",
|
|
"8" : "工程设计"
|
|
}
|
|
}, {
|
|
"name" : "COLLECTIVITYCOST",
|
|
"label" : "投标预算造价(元)",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "CBUDGETCOST",
|
|
"label" : "施工预算造价(元)",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "FRAMESTYLE",
|
|
"label" : "结构类型",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "FRAMELEVE",
|
|
"label" : "结构层次",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "BUILDAREA",
|
|
"label" : "建筑面积(m2)",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "STATISTICALMETHODS",
|
|
"label" : "成本统计方式",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "手工录入",
|
|
"2" : "投标文件",
|
|
"3" : "验工月报"
|
|
}
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/36979f84-837d-4f2a-98d7-910502a35ed1?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_BUDGETUNIT/defaults?templateId=36979f84-837d-4f2a-98d7-910502a35ed1"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_BUDGETUNIT_ADD?__egtpl=36979f84-837d-4f2a-98d7-910502a35ed1",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "修改",
|
|
"label" : "修改",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "修改",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/36979f84-837d-4f2a-98d7-910502a35ed1?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_BUDGETUNIT_LOAD?__egtpl=36979f84-837d-4f2a-98d7-910502a35ed1",
|
|
"data" : {
|
|
"PM_BUDGETUNIT_ID" : "${PM_BUDGETUNIT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_BUDGETUNIT_UPDATE?__egtpl=36979f84-837d-4f2a-98d7-910502a35ed1",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_BUDGETUNIT_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_BUDGETUNIT_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看",
|
|
"label" : "查看",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/36979f84-837d-4f2a-98d7-910502a35ed1?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_BUDGETUNIT_LOAD?__egtpl=36979f84-837d-4f2a-98d7-910502a35ed1",
|
|
"data" : {
|
|
"PM_BUDGETUNIT_ID" : "${PM_BUDGETUNIT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "工程造价下浮率配置",
|
|
"label" : "工程造价下浮率配置",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "工程造价下浮率配置",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/747ead02-0cde-488a-8ea1-9cbdca2ae654?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_BUDGETTOTALFALL_LOAD?__egtpl=747ead02-0cde-488a-8ea1-9cbdca2ae654",
|
|
"data" : {
|
|
"PM_BUDGETUNIT_ID" : "${PM_BUDGETUNIT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_BUDGETTOTALFALL_UPDATE?__egtpl=747ead02-0cde-488a-8ea1-9cbdca2ae654",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "单价组成下浮配置",
|
|
"label" : "单价组成下浮配置",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "单价组成下浮配置",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/b3d54dcb-16d7-4c6f-b24e-0498b9f9e7a7?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_BUDGETFALL_LOAD?__egtpl=b3d54dcb-16d7-4c6f-b24e-0498b9f9e7a7",
|
|
"data" : {
|
|
"PM_BUDGETUNIT_ID" : "${PM_BUDGETUNIT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_BUDGETFALL_UPDATE?__egtpl=b3d54dcb-16d7-4c6f-b24e-0498b9f9e7a7",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_BUDGETUNIT_ID"
|
|
}
|
|
} |