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>
286 lines
7.7 KiB
JSON
286 lines
7.7 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "劳务队组检查记录",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_LS_INSPECT_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "FILIALE",
|
|
"label" : "(分)公司",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/42861f01-14ea-482d-8031-f30612dfccf4/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
}, {
|
|
"name" : "LABORTEAMNAME",
|
|
"label" : "劳务队组名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PROJECTNAME",
|
|
"label" : "工程名称",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"value" : "${currentProject}"
|
|
}, {
|
|
"name" : "INSOECTDATE",
|
|
"label" : "检查日期",
|
|
"type" : "input-date-range"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_LS_INSPECT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "LT_ID_DISPLAY__",
|
|
"label" : "劳务队组名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "FATHERPROJECTCODE_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PROFESSIONALWORKERS",
|
|
"label" : "专业工种",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SAFETYCONTENT",
|
|
"label" : "安全",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "QUALITYCONTENT",
|
|
"label" : "质量",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "PROGRESSCONTENT",
|
|
"label" : "进度",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "ENVIRONMENTCONTENT",
|
|
"label" : "环境",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "PROFESSIONALHEALTHCONTENT",
|
|
"label" : "职业健康",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "INSPECTLEVEL",
|
|
"label" : "检查级别",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "集团公司",
|
|
"2" : "分公司",
|
|
"3" : "项目部",
|
|
"4" : "政府监管部门"
|
|
}
|
|
}, {
|
|
"name" : "INSOECTUSER_DISPLAY__",
|
|
"label" : "检查人",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "INSOECTDATE",
|
|
"label" : "检查日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "CONSTRUCTCONTENT",
|
|
"label" : "施工内容",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "INSPECTOPINION",
|
|
"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/1fafac01-1fc9-4715-aad7-66f072c0b96a?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_LS_INSPECT/defaults?templateId=1fafac01-1fc9-4715-aad7-66f072c0b96a"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_LS_INSPECT_ADD?__egtpl=1fafac01-1fc9-4715-aad7-66f072c0b96a",
|
|
"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/1fafac01-1fc9-4715-aad7-66f072c0b96a?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_LS_INSPECT_LOAD?__egtpl=1fafac01-1fc9-4715-aad7-66f072c0b96a",
|
|
"data" : {
|
|
"PM_LS_INSPECT_ID" : "${PM_LS_INSPECT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_LS_INSPECT_UPDATE?__egtpl=1fafac01-1fc9-4715-aad7-66f072c0b96a",
|
|
"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_LS_INSPECT_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_LS_INSPECT_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/1fafac01-1fc9-4715-aad7-66f072c0b96a?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_LS_INSPECT_LOAD?__egtpl=1fafac01-1fc9-4715-aad7-66f072c0b96a",
|
|
"data" : {
|
|
"PM_LS_INSPECT_ID" : "${PM_LS_INSPECT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_LS_INSPECT_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "f0aec7ba-7a2b-4be3-8c46-4ed272839464"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |