Files
eip4-platform/转换产物-attach/schema/bf19d677-b69b-4cd4-871d-7ff482b1e4fd.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

266 lines
8.5 KiB
JSON

{
"type" : "page",
"title" : "项目备案人员变更申请页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"required" : true,
"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}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ISCONFIRM",
"label" : "业主是否确认",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "EFFECTIVEDATE",
"label" : "生效日期",
"required" : true,
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PRESSURE_CONDITION",
"label" : "押证状态",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PRESSURE_CONDITION"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "USERDETAILS",
"label" : "备案人员变更明细",
"type" : "input-table",
"id" : "eg-USERDETAILS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "OLDRECORDUSER",
"label" : "原备案人员",
"type" : "tpl",
"tpl" : "${OLDRECORDUSER_DISPLAY__ ? OLDRECORDUSER_DISPLAY__ : OLDRECORDUSER}",
"quickEdit" : false
}, {
"name" : "OLDSELECT",
"label" : "OLDSELECT",
"quickEdit" : {
"name" : "OLDSELECT",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/50170984-79cd-41a3-a023-77022edc97b3/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "bf19d677-b69b-4cd4-871d-7ff482b1e4fd",
"editgridField" : "USERDETAILS",
"scriptKey" : "2577d02a-709d-4db3-9ed0-eb38d61ba50a",
"changedField" : "OLDSELECT",
"row" : "${__rendererData}",
"parent" : {
"USERDETAILS" : "${__rendererData.USERDETAILS || USERDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-USERDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "NEWRECORDUSER",
"label" : "新备案人员",
"type" : "tpl",
"tpl" : "${NEWRECORDUSER_DISPLAY__ ? NEWRECORDUSER_DISPLAY__ : NEWRECORDUSER}",
"quickEdit" : false
}, {
"name" : "NEWSELECT",
"label" : "NEWSELECT",
"quickEdit" : {
"name" : "NEWSELECT",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/a801e436-9176-4794-a48b-5c7020697697/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "bf19d677-b69b-4cd4-871d-7ff482b1e4fd",
"editgridField" : "USERDETAILS",
"scriptKey" : "235ecd58-2596-4ec4-9d8b-08cd0232b58f",
"changedField" : "NEWSELECT",
"row" : "${__rendererData}",
"parent" : {
"USERDETAILS" : "${__rendererData.USERDETAILS || USERDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-USERDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "ROLEID",
"label" : "项目角色",
"quickEdit" : {
"name" : "ROLEID",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECTMANAGERROLE"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "APPLYUSER",
"label" : "申请人",
"type" : "static",
"tpl" : "${APPLYUSER_DISPLAY__ ? APPLYUSER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLYUSER)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "APPLYDATE",
"label" : "申请日期",
"required" : true,
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMAEK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"name" : "PM_MANAGERUPDATEAPPLY_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}