Files
eip4-platform/转换产物-attach/schema/fcc8e3d1-80f1-48d4-a75d-a92190e95bd8.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

252 lines
6.2 KiB
JSON

{
"type" : "page",
"title" : "设备出场编辑",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "static",
"tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}",
"value" : "${currentProject}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "IMPORTDATE",
"label" : "进场日期",
"required" : true,
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "MACHINECONTRACTREGISTERID",
"label" : "机械合同",
"type" : "static",
"tpl" : "${MACHINECONTRACTREGISTERID_DISPLAY__ ? MACHINECONTRACTREGISTERID_DISPLAY__ : (CONTRACTNAME ? CONTRACTNAME : MACHINECONTRACTREGISTERID)}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "MACHINESUPPLIERID",
"label" : "机械供应商",
"type" : "static",
"tpl" : "${MACHINESUPPLIERID_DISPLAY__ ? MACHINESUPPLIERID_DISPLAY__ : (SHOWNAME ? SHOWNAME : MACHINESUPPLIERID)}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "EQUIPMENTID",
"label" : "设备",
"type" : "static",
"tpl" : "${EQUIPMENTID_DISPLAY__ ? EQUIPMENTID_DISPLAY__ : (MACHINENAME ? MACHINENAME : EQUIPMENTID)}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "EQUIPMENTNO",
"label" : "设备编码",
"required" : true,
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "SPECIFICATIONS",
"label" : "规格型号",
"disabled" : true,
"type" : "input-text",
"maxLength" : 100
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "DEVICETYPE",
"label" : "设备类型",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_EquipmentType"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "DEVICEADDRESS",
"label" : "产地品牌",
"disabled" : true,
"type" : "input-text",
"maxLength" : 100
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "TESTREPORT",
"label" : "检测报告",
"disabled" : true,
"type" : "input-text",
"maxLength" : 100
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "EQUIPMENTSOURCE",
"label" : "设备来源",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/EQUIPMENT_EQUIPMENTSOURCE"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "NUMBER",
"label" : "数量",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "LEASEPRICE",
"label" : "租赁单价(元)",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "TOTALPRICE",
"label" : "合价(元)",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "AMORTIZEDAYS",
"label" : "摊销天数",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "REGISTEDATE",
"label" : "方案登记日期",
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "INSTALLDATE",
"label" : "安装日期",
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "INSTALLUNIT",
"label" : "安装单位",
"disabled" : true,
"type" : "input-text",
"maxLength" : 100
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "INSTALLHIGH",
"label" : "安装高度(米)",
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"disabled" : true,
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "EXPORTDATE",
"label" : "出场日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"name" : "PM_PROJECTEQUIPMENT_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}