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>
This commit is contained in:
187
转换产物-attach/schema/24722408-5b10-4ea4-8071-fe03e03a8335.json
Normal file
187
转换产物-attach/schema/24722408-5b10-4ea4-8071-fe03e03a8335.json
Normal file
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "归车登记编辑页面",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "VEHICLEID",
|
||||
"label" : "车牌号",
|
||||
"type" : "static",
|
||||
"tpl" : "${VEHICLEID_DISPLAY__ ? VEHICLEID_DISPLAY__ : (PLATENUMBER ? PLATENUMBER : VEHICLEID)}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "VEHICLETYPEID",
|
||||
"label" : "车辆类型",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "BURDEN",
|
||||
"label" : "核定载客人数/载货量",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "DRIVERID",
|
||||
"label" : "驾驶员",
|
||||
"type" : "static",
|
||||
"tpl" : "${DRIVERID_DISPLAY__ ? DRIVERID_DISPLAY__ : (DRIVER ? DRIVER : DRIVERID)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "SENDDATE",
|
||||
"label" : "派车时间",
|
||||
"disabled" : true,
|
||||
"type" : "input-datetime"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "OPERATOR",
|
||||
"label" : "派车人",
|
||||
"type" : "static",
|
||||
"tpl" : "${OPERATOR_DISPLAY__ ? OPERATOR_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : OPERATOR)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "USERS",
|
||||
"label" : "使用人",
|
||||
"type" : "static",
|
||||
"tpl" : "${USERS_DISPLAY__ ? USERS_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : USERS)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "OUTWARDRUNDATE",
|
||||
"label" : "实际出车时间",
|
||||
"disabled" : true,
|
||||
"type" : "input-datetime"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "RETURNDATE",
|
||||
"label" : "预计归车时间",
|
||||
"disabled" : true,
|
||||
"type" : "input-datetime"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DESTINATION",
|
||||
"label" : "目的地",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "ACTUALRETURNDATE",
|
||||
"label" : "实际归车时间",
|
||||
"required" : true,
|
||||
"type" : "input-datetime"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "DISPATCHPLACE",
|
||||
"label" : "发车地点",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "FRONTMILEAGE",
|
||||
"label" : "发车公里数",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "BEHINDMILEAGE",
|
||||
"label" : "返回公里数",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "REMARK",
|
||||
"label" : "备注",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "OA_VEHICLESEND_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "DEPARTS",
|
||||
"label" : "用车部门",
|
||||
"required" : true,
|
||||
"hidden" : true,
|
||||
"type" : "tree-select",
|
||||
"clearable" : true,
|
||||
"multiple" : true,
|
||||
"overflowConfig" : {
|
||||
"displayPosition" : [ "select" ],
|
||||
"maxTagCount" : 1
|
||||
},
|
||||
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
||||
"searchable" : true,
|
||||
"onlyLeaf" : true
|
||||
}, {
|
||||
"name" : "ISRETURN",
|
||||
"label" : "是否归车",
|
||||
"hidden" : true,
|
||||
"type" : "checkbox"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user