Files
eip4-platform/转换产物-attach/schema/8588e7dc-2118-4882-a45c-60cb03648ce7.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
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>
2026-06-20 15:16:30 +08:00

444 lines
13 KiB
JSON

{
"type" : "page",
"title" : "施工技术交底",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_PUB_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" : "FBPROJECT",
"label" : "分部工程",
"type" : "input-text"
}, {
"name" : "FXPROJECT",
"label" : "分项工程",
"type" : "input-text"
}, {
"name" : "JDPART",
"label" : "交底部位",
"type" : "input-text"
}, {
"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_PUB_CLARIFICATION_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 200
}, {
"name" : "FBPROJECT",
"label" : "分部工程",
"width" : 200
}, {
"name" : "FXPROJECT",
"label" : "分项工程",
"width" : 200
}, {
"name" : "JDPART",
"label" : "交底部位",
"width" : 100
}, {
"name" : "CONTENT",
"label" : "交底内容",
"width" : 200
}, {
"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/75f2f285-32f5-4400-b5f9-94477e1f246c?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/PM_PUB_CLARIFICATION/defaults?templateId=75f2f285-32f5-4400-b5f9-94477e1f246c"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_PUB_CLARIFICATION_ADD?__egtpl=75f2f285-32f5-4400-b5f9-94477e1f246c",
"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/75f2f285-32f5-4400-b5f9-94477e1f246c?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PUB_CLARIFICATION_LOAD?__egtpl=75f2f285-32f5-4400-b5f9-94477e1f246c",
"data" : {
"PM_PUB_CLARIFICATION_ID" : "${PM_PUB_CLARIFICATION_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_PUB_CLARIFICATION_UPDATE?__egtpl=75f2f285-32f5-4400-b5f9-94477e1f246c",
"close" : true
}, {
"type" : "button",
"label" : "保存并提交审批",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_PUB_CLARIFICATION_SAVE_AND_SUBMIT?__egtpl=75f2f285-32f5-4400-b5f9-94477e1f246c",
"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_PUB_CLARIFICATION_DELETE",
"data" : {
"ids" : "${selectedItems|pick:PM_PUB_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/75f2f285-32f5-4400-b5f9-94477e1f246c?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PUB_CLARIFICATION_LOAD?__egtpl=75f2f285-32f5-4400-b5f9-94477e1f246c",
"data" : {
"PM_PUB_CLARIFICATION_ID" : "${PM_PUB_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/10ac2f2b-4711-412b-b6f5-3147ac4f193e?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PUB_CLARIFICATION_LOAD?__egtpl=10ac2f2b-4711-412b-b6f5-3147ac4f193e",
"data" : {
"PM_PUB_CLARIFICATION_ID" : "${PM_PUB_CLARIFICATION_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "交底",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_PUB_CLARIFICATION_SENDBOOK?__egtpl=10ac2f2b-4711-412b-b6f5-3147ac4f193e",
"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/0c5a71f2-b0a8-4dfe-8739-df821669a6f2?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PUB_CLARIFICATION_LOAD?__egtpl=0c5a71f2-b0a8-4dfe-8739-df821669a6f2",
"data" : {
"PM_PUB_CLARIFICATION_ID" : "${PM_PUB_CLARIFICATION_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 3,
"item" : "${&}",
"templateId" : "8588e7dc-2118-4882-a45c-60cb03648ce7"
}
},
"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_PUB_CLARIFICATION_ID" : "${selectedItems[0].PM_PUB_CLARIFICATION_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/4cf6e285-3fd1-4768-9a21-1cf102b54eee?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_PUB_CLARIFICATION_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "8588e7dc-2118-4882-a45c-60cb03648ce7"
}
},
"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" : "8588e7dc-2118-4882-a45c-60cb03648ce7"
}
},
"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" : "8588e7dc-2118-4882-a45c-60cb03648ce7"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
}
}
}
}