Files
eip4-platform/转换产物-attach/schema/546df21e-d9ce-4c8e-a73b-d6e3c9fc0651.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

225 lines
5.7 KiB
JSON

{
"type" : "page",
"title" : "内部分包工程",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"name" : "SUB_PROJECTS",
"label" : "内部分包工程集合",
"type" : "input-table",
"id" : "eg-SUB_PROJECTS",
"addable" : true,
"removable" : false,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "PROJECTCODE",
"label" : "工程编码",
"quickEdit" : {
"name" : "PROJECTCODE",
"required" : true,
"type" : "input-text"
}
}, {
"name" : "PROJECTNAME",
"label" : "工程名称",
"quickEdit" : {
"name" : "PROJECTNAME",
"required" : true,
"type" : "input-text"
}
}, {
"name" : "TOTALPRICE",
"label" : "工程造价(元)",
"quickEdit" : {
"name" : "TOTALPRICE",
"required" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "ACREAGE",
"label" : "建筑面积(m2)",
"quickEdit" : {
"name" : "ACREAGE",
"required" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "FILIALE",
"label" : "所属(分)公司",
"quickEdit" : {
"name" : "FILIALE",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/35e321b3-a511-4cfb-ba29-ce8541cef747/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}
}, {
"name" : "PROJECTMANAGER",
"label" : "项目经理",
"quickEdit" : {
"name" : "PROJECTMANAGER",
"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" : "ACTUALSTARTDATE",
"label" : "开工日期",
"quickEdit" : {
"name" : "ACTUALSTARTDATE",
"required" : true,
"type" : "input-date"
}
}, {
"name" : "ACTUALENDDATE",
"label" : "竣工日期",
"quickEdit" : {
"name" : "ACTUALENDDATE",
"required" : true,
"type" : "input-date"
}
} ],
"needConfirm" : false
}, {
"name" : "PM_PROJECT_ID",
"label" : "主键",
"hidden" : 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" ]
}
}, {
"name" : "MANAGEMENTMODE",
"label" : "MANAGEMENTMODE",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "ACTUALENDDATE",
"label" : "ACTUALENDDATE",
"type" : "input-date",
"hidden" : true
}, {
"name" : "ACTUALSTARTDATE",
"label" : "ACTUALSTARTDATE",
"type" : "input-date",
"hidden" : true
}, {
"name" : "INVOICEFORM",
"label" : "INVOICEFORM",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "NUMBER",
"label" : "NUMBER",
"type" : "input-text",
"hidden" : true
}, {
"name" : "STRUCTURE",
"label" : "STRUCTURE",
"type" : "input-text",
"hidden" : true
}, {
"name" : "INVITEBIDS_TYPE",
"label" : "INVITEBIDS_TYPE",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "CATEGORY",
"label" : "工程类别",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "TYPE",
"label" : "TYPE",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "PROPERTY",
"label" : "PROPERTY",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "ADDRESS",
"label" : "ADDRESS",
"type" : "input-text",
"hidden" : true
}, {
"name" : "AREA",
"label" : "AREA",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"hidden" : true
}, {
"name" : "BUILDCOMPANY",
"label" : "BUILDCOMPANY",
"type" : "input-text",
"hidden" : true
}, {
"name" : "PROJECTNAME",
"label" : "工程名称",
"type" : "input-text",
"hidden" : true
} ],
"actions" : [ ]
}
}