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>
350 lines
9.8 KiB
JSON
350 lines
9.8 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "专业分包商检查记录",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_PRO_SUBCON_INSPECT_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" : "PROSUBCONID",
|
|
"label" : "工程分包单位",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/73cf2dfb-9c03-405f-bfe7-762a57e900ed/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "INSPECTUSER",
|
|
"label" : "检查人",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "CONSTRUCTCONTENT",
|
|
"label" : "施工内容",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "INSPECTOPINION",
|
|
"label" : "检查意见",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "SAFETYCONTENT",
|
|
"label" : "安全",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_pro_subcon_inspect_check"
|
|
}, {
|
|
"name" : "QUALITYCONTENT",
|
|
"label" : "质量",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_pro_subcon_inspect_check"
|
|
}, {
|
|
"name" : "PROGRESSCONTENT",
|
|
"label" : "进度",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_pro_subcon_inspect_check"
|
|
}, {
|
|
"name" : "ENVIRONMENTCONTENT",
|
|
"label" : "环境",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_pro_subcon_inspect_check"
|
|
}, {
|
|
"name" : "PROFESSIONALHEALTH",
|
|
"label" : "职业健康",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_pro_subcon_inspect_check"
|
|
}, {
|
|
"name" : "INSPECTLEVEL",
|
|
"label" : "检查级别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_pro_subcon_inspect_level"
|
|
}, {
|
|
"name" : "INSPECTDATE",
|
|
"label" : "检查日期",
|
|
"type" : "input-date-range"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_PRO_SUBCON_INSPECT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PROSUBCONID_DISPLAY__",
|
|
"label" : "工程分包单位",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CONSTRUCTCONTENT",
|
|
"label" : "施工内容",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "SAFETYCONTENT",
|
|
"label" : "安全",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "QUALITYCONTENT",
|
|
"label" : "质量",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "PROGRESSCONTENT",
|
|
"label" : "进度",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "ENVIRONMENTCONTENT",
|
|
"label" : "环境",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "PROFESSIONALHEALTH",
|
|
"label" : "职业健康",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "合格",
|
|
"2" : "不合格"
|
|
}
|
|
}, {
|
|
"name" : "INSPECTOPINION",
|
|
"label" : "检查意见",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "INSPECTLEVEL",
|
|
"label" : "检查级别",
|
|
"width" : 140,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "分公司",
|
|
"2" : "集团公司"
|
|
}
|
|
}, {
|
|
"name" : "INSPECTUSER_DISPLAY__",
|
|
"label" : "检查人",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "INSPECTDATE",
|
|
"label" : "检查日期",
|
|
"width" : 140,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/fb53fee9-8fb3-481d-a295-bcc5ba0e89db?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_PRO_SUBCON_INSPECT/defaults?templateId=fb53fee9-8fb3-481d-a295-bcc5ba0e89db"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PRO_SUBCON_INSPECT_ADD?__egtpl=fb53fee9-8fb3-481d-a295-bcc5ba0e89db",
|
|
"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/fb53fee9-8fb3-481d-a295-bcc5ba0e89db?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PRO_SUBCON_INSPECT_LOAD?__egtpl=fb53fee9-8fb3-481d-a295-bcc5ba0e89db",
|
|
"data" : {
|
|
"PM_PRO_SUBCON_INSPECT_ID" : "${PM_PRO_SUBCON_INSPECT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PRO_SUBCON_INSPECT_UPDATE?__egtpl=fb53fee9-8fb3-481d-a295-bcc5ba0e89db",
|
|
"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_PRO_SUBCON_INSPECT_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_PRO_SUBCON_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/fb53fee9-8fb3-481d-a295-bcc5ba0e89db?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PRO_SUBCON_INSPECT_LOAD?__egtpl=fb53fee9-8fb3-481d-a295-bcc5ba0e89db",
|
|
"data" : {
|
|
"PM_PRO_SUBCON_INSPECT_ID" : "${PM_PRO_SUBCON_INSPECT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_PRO_SUBCON_INSPECT_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "63dec0f0-fd9e-4b0e-9543-8a00af27028a"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |