Files
eip4-platform/转换产物-attach/schema/ac20db71-be4a-4577-9166-4100a30bdb6d.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

347 lines
8.7 KiB
JSON

{
"type" : "page",
"title" : "单项工程维护-项目部",
"body" : {
"type" : "form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "BUILDCOMPANY",
"label" : "建设单位",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "UNITPROPERTY",
"label" : "单位性质",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/UNITPROPERTY"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "UNITPHONE",
"label" : "联系电话",
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "UNITADDRESS",
"label" : "单位地址",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PROJECTCODE",
"label" : "工程编码",
"type" : "input-text",
"maxLength" : 50
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "PROJECTNAME",
"label" : "工程名称",
"required" : true,
"disabled" : true,
"type" : "input-text",
"maxLength" : 600
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "AREA",
"label" : "地区分布",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_AREA"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "ADDRESS",
"label" : "工程地址",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PROPERTY",
"label" : "工程专业",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_PROPERTY"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "TYPE",
"label" : "工程类型",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_TYPE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "CATEGORY",
"label" : "工程类别",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "INVITEBIDS_TYPE",
"label" : "招标形式",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_INVITEBIDS_TYPE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "TOTALPRICE",
"label" : "工程造价(元)",
"required" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "ACREAGE",
"label" : "建筑面积(m2)",
"required" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "CAPITAL",
"label" : "大写",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "STRUCTURE",
"label" : "结构",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "NUMBER",
"label" : "层次",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "FILIALE",
"label" : "所属(分)公司",
"type" : "static",
"tpl" : "${FILIALE_DISPLAY__ ? FILIALE_DISPLAY__ : (NAME ? NAME : FILIALE)}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "PROJECTMANAGER",
"label" : "项目经理",
"type" : "static",
"tpl" : "${PROJECTMANAGER_DISPLAY__ ? PROJECTMANAGER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : PROJECTMANAGER)}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "ACTUALSTARTDATE",
"label" : "计划开工日期",
"required" : true,
"type" : "input-date"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "ACTUALENDDATE",
"label" : "计划竣工日期",
"required" : true,
"type" : "input-date"
} ]
} ]
}, {
"name" : "PM_PROJECT_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "PREDICTSTARTTIME",
"label" : "预计开工日期",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "PREDICTINVEST",
"label" : "预计投资(元)",
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "EVOLVE",
"label" : "进展",
"type" : "input-text",
"hidden" : true
}, {
"name" : "CREATEBY",
"label" : "登记人",
"type" : "static",
"tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}",
"hidden" : true
}, {
"name" : "CREATETIME",
"label" : "登记日期",
"disabled" : true,
"type" : "input-date",
"hidden" : true
}, {
"name" : "PROJECTSTAGE",
"label" : "工程阶段",
"required" : true,
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE",
"value" : "9"
}, {
"name" : "ISSHARE",
"label" : "项目是否共享",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0",
"hidden" : true
}, {
"name" : "OPPONENTS",
"label" : "潜在竞争对手",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"multiple" : true,
"overflowConfig" : {
"displayPosition" : [ "select" ],
"maxTagCount" : 1
},
"source" : "/api/picker/d5c99764-931b-4f8a-8db7-d7bffc2089b0/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "BIDTIME",
"label" : "投标报名截止时间",
"hidden" : true,
"type" : "input-datetime"
}, {
"name" : "SIGNUPENDTIME",
"label" : "内部报名截止时间",
"hidden" : true,
"type" : "input-datetime"
} ],
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "ajax",
"api" : "POST:/api/flow/PM_PROJECT_UPDATE_CURRENTPROJECT",
"data" : {
"&" : "${&}"
}
} ]
}
}