Files
eip4-platform/转换产物-attach/schema/4aa7032e-035f-4bd0-96e6-22bd8fa1fa1e.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

448 lines
13 KiB
JSON

{
"type" : "page",
"title" : "总包合同变更登记",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "FILIALE",
"label" : "(分)公司",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"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" ]
},
"value" : "${currentProject}"
}, {
"name" : "CONTRACTID",
"label" : "合同名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/55f528a5-196d-4fef-a020-1b3dcba9d59a/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "CHANGENUMBER",
"label" : "变更编号",
"type" : "input-text"
}, {
"name" : "CHANGENAME",
"label" : "变更名称",
"type" : "input-text"
}, {
"name" : "CHANGEUSER",
"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" : "CHANGETIME",
"label" : "变更日期",
"type" : "input-date-range"
}, {
"name" : "EFFECTIVEDATE",
"label" : "生效日期",
"type" : "input-date-range"
}, {
"name" : "CHANGEREASON",
"label" : "变更原因",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "PUTONRECORD",
"label" : "是否备案",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
},
"columns" : [ {
"name" : "PM_CONTRACTUALREGISTERCHANGE_DJ_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "CONTRACTID_DISPLAY__",
"label" : "合同名称",
"width" : 300
}, {
"name" : "PROJECTNAME",
"label" : "工程名称",
"width" : 300
}, {
"name" : "CHANGENUMBER",
"label" : "变更编号",
"width" : 150
}, {
"name" : "CHANGENAME",
"label" : "变更名称",
"width" : 200
}, {
"name" : "CHANGEAMOUNT",
"label" : "变更金额(元)",
"width" : 150
}, {
"name" : "CHANGELIMITTIME",
"label" : "变更工期",
"width" : 100
}, {
"name" : "CHANGEUSER_DISPLAY__",
"label" : "经办人",
"width" : 120
}, {
"name" : "CHANGETIME",
"label" : "变更日期",
"width" : 120,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "EFFECTIVEDATE",
"label" : "生效日期",
"width" : 120,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "FILIALE_DISPLAY__",
"label" : "(分)公司",
"width" : 150
}, {
"name" : "PUTONRECORD",
"label" : "是否备案",
"width" : 80,
"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/c74007f7-37ae-4c82-a098-05dd445c9f4e?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/PM_CONTRACTUALREGISTERCHANGE_DJ/defaults?templateId=c74007f7-37ae-4c82-a098-05dd445c9f4e"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_ADD?__egtpl=c74007f7-37ae-4c82-a098-05dd445c9f4e",
"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/c74007f7-37ae-4c82-a098-05dd445c9f4e?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_LOAD?__egtpl=c74007f7-37ae-4c82-a098-05dd445c9f4e",
"data" : {
"PM_CONTRACTUALREGISTERCHANGE_DJ_ID" : "${PM_CONTRACTUALREGISTERCHANGE_DJ_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "4aa7032e-035f-4bd0-96e6-22bd8fa1fa1e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_UPDATE?__egtpl=c74007f7-37ae-4c82-a098-05dd445c9f4e",
"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_CONTRACTUALREGISTERCHANGE_DJ_DELETE",
"data" : {
"ids" : "${selectedItems|pick:PM_CONTRACTUALREGISTERCHANGE_DJ_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/c74007f7-37ae-4c82-a098-05dd445c9f4e?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_LOAD?__egtpl=c74007f7-37ae-4c82-a098-05dd445c9f4e",
"data" : {
"PM_CONTRACTUALREGISTERCHANGE_DJ_ID" : "${PM_CONTRACTUALREGISTERCHANGE_DJ_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "4aa7032e-035f-4bd0-96e6-22bd8fa1fa1e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}
}, {
"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/687c14a1-bf7c-4183-bf06-7e28ea8a81d9?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_VIEWLOAD?__egtpl=687c14a1-bf7c-4183-bf06-7e28ea8a81d9",
"data" : {
"PM_CONTRACTUALREGISTERCHANGE_DJ_ID" : "${PM_CONTRACTUALREGISTERCHANGE_DJ_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "备案",
"label" : "备案",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_UPDATE_CONFIRM",
"data" : {
"PM_CONTRACTUALREGISTERCHANGE_DJ_ID" : "${selectedItems[0].PM_CONTRACTUALREGISTERCHANGE_DJ_ID}"
}
}
}, {
"type" : "button",
"id" : "取消备案",
"label" : "取消备案",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_CONTRACTUALREGISTERCHANGE_DJ_UPDATE_UNCONFIRM",
"data" : {
"PM_CONTRACTUALREGISTERCHANGE_DJ_ID" : "${selectedItems[0].PM_CONTRACTUALREGISTERCHANGE_DJ_ID}"
}
}
}, "pagination" ],
"primaryField" : "PM_CONTRACTUALREGISTERCHANGE_DJ_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "disabled",
"componentId" : "备案"
}, {
"actionType" : "disabled",
"componentId" : "取消备案"
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "4aa7032e-035f-4bd0-96e6-22bd8fa1fa1e"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
},
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "4aa7032e-035f-4bd0-96e6-22bd8fa1fa1e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}