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>
188 lines
5.1 KiB
JSON
188 lines
5.1 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "清单信息",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_CBUDGETLIST_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"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" : "BUDGETUNITID",
|
|
"label" : "预算单元",
|
|
"type" : "static",
|
|
"tpl" : "${BUDGETUNITID_DISPLAY__ ? BUDGETUNITID_DISPLAY__ : (BUDGETUNITNAME ? BUDGETUNITNAME : BUDGETUNITID)}"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_CBUDGETLIST_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "BUDGETUNITID_DISPLAY__",
|
|
"label" : "预算单元",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "LISTNO",
|
|
"label" : "清单编码",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "LISTNAME",
|
|
"label" : "清单名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "LISTTRAIT",
|
|
"label" : "项目特征",
|
|
"width" : 500
|
|
}, {
|
|
"name" : "CALCRULES",
|
|
"label" : "计算规则",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITLISTID_DISPLAY__",
|
|
"label" : "单位",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "COMPREHENSIVEUNITPRICE",
|
|
"label" : "综合单价(元)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "LABOURCOSTS",
|
|
"label" : "单价组成-人工费",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MATERIALCOSTS",
|
|
"label" : "单价组成-材料费",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MACHINERYCOSTS",
|
|
"label" : "单价组成-机械费",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MANAGEMENTEXPENSE",
|
|
"label" : "单价组成-管理费",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "DROFIT",
|
|
"label" : "单价组成-利润",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISLIST",
|
|
"label" : "是否清单",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
},
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"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/cbdb98ad-6943-4e07-adca-d0d7e64f5d19?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CBUDGETLIST_LOAD?__egtpl=cbdb98ad-6943-4e07-adca-d0d7e64f5d19",
|
|
"data" : {
|
|
"PM_CBUDGETLIST_ID" : "${PM_CBUDGETLIST_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_CBUDGETLIST_UPDATE?__egtpl=cbdb98ad-6943-4e07-adca-d0d7e64f5d19",
|
|
"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]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/cbdb98ad-6943-4e07-adca-d0d7e64f5d19?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_CBUDGETLIST_LOAD?__egtpl=cbdb98ad-6943-4e07-adca-d0d7e64f5d19",
|
|
"data" : {
|
|
"PM_CBUDGETLIST_ID" : "${PM_CBUDGETLIST_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_CBUDGETLIST_ID"
|
|
}
|
|
} |