Files
eip4-platform/转换产物-attach/schema/15e57da8-c2c3-47b1-b48d-141fd9c5ab38.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

313 lines
9.2 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" : "FORMNO",
"label" : "表单号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"required" : true,
"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}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "DEPARTID",
"label" : "申请部门",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/SYS_DEPART/list?perPage=500",
"value" : "${currentDepart}"
} ]
} ]
}, {
"name" : "PROJECTCODE",
"label" : "工程ID",
"hidden" : true,
"type" : "input-text"
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "APPLYDATE",
"label" : "申请日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "CREATEBY",
"label" : "制表人",
"type" : "static",
"tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}",
"value" : "${currentUser}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "OTHEREXPLAIN",
"label" : "其他说明",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"type" : "flex",
"justify" : "flex-start",
"alignItems" : "center",
"style" : {
"paddingLeft" : "120px",
"marginBottom" : "4px"
},
"items" : [ {
"name" : "SELECT",
"label" : "添加",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgSELECT",
"title" : "",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/28807c26-61fa-467e-88fa-d797fb8b580d/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgSELECT",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "eg-MATERIALDETAILS",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({MATERIALID: item.PM_MATERIALREPOSITORY_ID, MATERIALCODE: item.MATERIALCODE, MATERIALNAME: item.MATERIALNAME, SPECIFICATIONS: item.SPECIFICATIONS, UNIT: item.UNIT, ESTIMATENUM: item.ESTIMATENUM}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"hiddenOn" : "${__readonly}"
} ]
}, {
"name" : "MATERIALDETAILS",
"label" : "需求物资明细",
"required" : true,
"type" : "input-table",
"id" : "eg-MATERIALDETAILS",
"addable" : false,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "MATERIALCODE",
"label" : "材料编码",
"quickEdit" : {
"name" : "MATERIALCODE",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "MATERIALNAME",
"label" : "材料名称",
"quickEdit" : {
"name" : "MATERIALNAME",
"required" : true,
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "SPECIFICATIONS",
"label" : "规格、型号等要求",
"quickEdit" : {
"name" : "SPECIFICATIONS",
"disabled" : true,
"type" : "input-text"
}
}, {
"name" : "ESTIMATENUM",
"label" : "预计数量",
"quickEdit" : {
"name" : "ESTIMATENUM",
"required" : true,
"type" : "input-number",
"precision" : 4,
"min" : 1.0E-4,
"max" : 9999999.9999
}
}, {
"name" : "UNIT",
"label" : "单位",
"quickEdit" : {
"name" : "UNIT",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
}
}, {
"name" : "PLANENTRYDATE",
"label" : "计划进场日期",
"quickEdit" : {
"name" : "PLANENTRYDATE",
"type" : "input-date",
"value" : "${now}"
}
}, {
"name" : "REMARK",
"label" : "备注",
"quickEdit" : {
"name" : "REMARK",
"type" : "input-text",
"maxLength" : 100
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_MATERIALREQUESTMASTERPLAN_TJ&businessKey=${PM_MATERIALREQUESTMASTERPLAN_TJ_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_MATERIALREQUESTMASTERPLAN_TJ_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "APPLYNAME",
"label" : "申请人",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "REMARK",
"label" : "备注说明",
"type" : "input-text",
"maxLength" : 500,
"hidden" : true
}, {
"name" : "CONFIRMATIONPEOPLE",
"label" : "确认人",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}",
"hidden" : true
}, {
"name" : "CONFIRMATIONDATE",
"label" : "确认日期",
"type" : "input-date",
"hidden" : true
}, {
"type" : "group",
"body" : [ ]
} ],
"actions" : [ ]
}
}