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>
489 lines
14 KiB
JSON
489 lines
14 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "安全技术交底",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_SAFE_CLARIFICATION_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"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" ]
|
|
}
|
|
}, {
|
|
"name" : "SGDW",
|
|
"label" : "施工单位(工种)",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "JDPART",
|
|
"label" : "交底部位",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "GXMC",
|
|
"label" : "工序名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "JDTY",
|
|
"label" : "交底提要",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "INCHARGE",
|
|
"label" : "技术负责人",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}, {
|
|
"name" : "JDUSERID",
|
|
"label" : "交底人",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}, {
|
|
"name" : "JDDATE",
|
|
"label" : "交底日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "交底状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "ISXMB",
|
|
"label" : "交底级别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_CLARIFICATION_LEVEL"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_SAFE_CLARIFICATION_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SGDW",
|
|
"label" : "施工单位(工种)",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "JDPART",
|
|
"label" : "交底部位",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "GXMC",
|
|
"label" : "工序名称",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "JDTY",
|
|
"label" : "交底提要",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CONTENT",
|
|
"label" : "交底内容",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "INCHARGE_DISPLAY__",
|
|
"label" : "技术负责人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "JDUSERID_DISPLAY__",
|
|
"label" : "交底人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "JDDATE",
|
|
"label" : "交底日期",
|
|
"width" : 50,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ACCEPTPERSON",
|
|
"label" : "接收交底人",
|
|
"width" : 130
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "交底状态",
|
|
"width" : 50,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "ISXMB",
|
|
"label" : "交底级别",
|
|
"width" : 50,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "公司",
|
|
"1" : "项目部"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/23ce0f23-4c6d-4037-956c-c857a36a7fd9?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_SAFE_CLARIFICATION/defaults?templateId=23ce0f23-4c6d-4037-956c-c857a36a7fd9"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_SAFE_CLARIFICATION_ADD?__egtpl=23ce0f23-4c6d-4037-956c-c857a36a7fd9",
|
|
"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/23ce0f23-4c6d-4037-956c-c857a36a7fd9?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_SAFE_CLARIFICATION_LOAD?__egtpl=23ce0f23-4c6d-4037-956c-c857a36a7fd9",
|
|
"data" : {
|
|
"PM_SAFE_CLARIFICATION_ID" : "${PM_SAFE_CLARIFICATION_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_SAFE_CLARIFICATION_UPDATE?__egtpl=23ce0f23-4c6d-4037-956c-c857a36a7fd9",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_SAFE_CLARIFICATION_SAVE_AND_SUBMIT?__egtpl=23ce0f23-4c6d-4037-956c-c857a36a7fd9",
|
|
"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_SAFE_CLARIFICATION_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_SAFE_CLARIFICATION_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/23ce0f23-4c6d-4037-956c-c857a36a7fd9?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_SAFE_CLARIFICATION_LOAD?__egtpl=23ce0f23-4c6d-4037-956c-c857a36a7fd9",
|
|
"data" : {
|
|
"PM_SAFE_CLARIFICATION_ID" : "${PM_SAFE_CLARIFICATION_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/d461dbd0-db89-4061-ac67-80e1a69d7477?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_SAFE_CLARIFICATION_LOAD?__egtpl=d461dbd0-db89-4061-ac67-80e1a69d7477",
|
|
"data" : {
|
|
"PM_SAFE_CLARIFICATION_ID" : "${PM_SAFE_CLARIFICATION_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "交底",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_SAFE_CLARIFICATION_SENDBOOK?__egtpl=d461dbd0-db89-4061-ac67-80e1a69d7477",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "交底至班组",
|
|
"label" : "交底至班组",
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_SAFE_CLARIFICATION_SUBMIT",
|
|
"data" : {
|
|
"PM_SAFE_CLARIFICATION_ID" : "${selectedItems[0].PM_SAFE_CLARIFICATION_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
|
|
}, {
|
|
"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/17f0d379-a6fe-4908-9e0c-5f29aaad947d?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_SAFE_CLARIFICATION_LOAD?__egtpl=17f0d379-a6fe-4908-9e0c-5f29aaad947d",
|
|
"data" : {
|
|
"PM_SAFE_CLARIFICATION_ID" : "${PM_SAFE_CLARIFICATION_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "7042cb37-9581-4dfe-bb9f-18ed0e0b6b53"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "打印",
|
|
"label" : "打印",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "安全技术交底打印",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"PM_SAFE_CLARIFICATION_ID" : "${selectedItems[0].PM_SAFE_CLARIFICATION_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/5a9bfed9-7063-490c-a3ac-09d0526704e1?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_SAFE_CLARIFICATION_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "7042cb37-9581-4dfe-bb9f-18ed0e0b6b53"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "7042cb37-9581-4dfe-bb9f-18ed0e0b6b53"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "7042cb37-9581-4dfe-bb9f-18ed0e0b6b53"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |