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>
244 lines
6.8 KiB
JSON
244 lines
6.8 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "工程质量事故报告-公司",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_PUB_QUALITYACCIDENT_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" : "SUBCONTRACTUNIT",
|
|
"label" : "分包单位",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PLACEDATE",
|
|
"label" : "事故发生时间",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "REPORTINGDATE",
|
|
"label" : "上报时间",
|
|
"hidden" : true,
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "ECONOMICLOSS",
|
|
"label" : "经济损失(元)",
|
|
"hidden" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}, {
|
|
"name" : "ANALYSIS",
|
|
"label" : "事故经过、后果与原因分析",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "MEASURES",
|
|
"label" : "事故发生后采取的措施",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "DISPOSITION",
|
|
"label" : "事故责任单位、责任人及处理意见",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "LEADER",
|
|
"label" : "负责人",
|
|
"hidden" : true,
|
|
"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" : "请点击右侧的图标"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_PUB_QUALITYACCIDENT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SUBCONTRACTUNIT",
|
|
"label" : "分包单位",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PLACEDATE",
|
|
"label" : "事故发生时间",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "REPORTINGDATE",
|
|
"label" : "上报时间",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "LEADER_DISPLAY__",
|
|
"label" : "负责人",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "ECONOMICLOSS",
|
|
"label" : "经济损失(元)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "UPDATEBY_DISPLAY__",
|
|
"label" : "修改人",
|
|
"width" : 80,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ANALYSIS",
|
|
"label" : "事故经过、后果与原因分析",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MEASURES",
|
|
"label" : "事故发生后采取的措施",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "DISPOSITION",
|
|
"label" : "事故责任单位、责任人及处理意见",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"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/62a22d6f-f5d1-4e95-b965-d210cfe098f1?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PUB_QUALITYACCIDENT_LOAD?__egtpl=62a22d6f-f5d1-4e95-b965-d210cfe098f1",
|
|
"data" : {
|
|
"PM_PUB_QUALITYACCIDENT_ID" : "${PM_PUB_QUALITYACCIDENT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "打印",
|
|
"label" : "打印",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "工程质量事故报告打印",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"PM_PUB_QUALITYACCIDENT_ID" : "${selectedItems[0].PM_PUB_QUALITYACCIDENT_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/1385bbf2-2697-4727-a74c-f0ef9329df36?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_PUB_QUALITYACCIDENT_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "8f6f741d-ea0a-4fe0-b666-e123c7534d60"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |