Files
eip4-platform/转换产物-attach/schema/ad2c0f21-3834-41a2-a839-1f4e7dfde049.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

352 lines
9.0 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" : "APPLYVEHICLEID",
"label" : "车牌号",
"type" : "static",
"tpl" : "${APPLYVEHICLEID_DISPLAY__ ? APPLYVEHICLEID_DISPLAY__ : (PLATENUMBER ? PLATENUMBER : APPLYVEHICLEID)}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "APPLYVEHICLETYPEID",
"label" : "车辆类型",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"name" : "APPLICATIONS",
"label" : "用车申请",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"multiple" : true,
"overflowConfig" : {
"displayPosition" : [ "select" ],
"maxTagCount" : 1
},
"source" : "/api/picker/623fa631-ed8d-47e1-9ec7-762fb4252615/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "APPLYBURDEN",
"label" : "核定载客人数/载货量",
"disabled" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "APPLYPROPOSER",
"label" : "申请人",
"type" : "static",
"tpl" : "${APPLYPROPOSER_DISPLAY__ ? APPLYPROPOSER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLYPROPOSER)}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "APPLYAPPLICATIONDATE",
"label" : "申请日期",
"disabled" : true,
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "APPLYDEPARTSNAME",
"label" : "用车部门",
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "APPLYUSERSNAME",
"label" : "使用人",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "APPLYOUTWARDRUNDATE",
"label" : "预计出车时间",
"disabled" : true,
"type" : "input-datetime"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "APPLYRETURNDATE",
"label" : "预计归车时间",
"disabled" : true,
"type" : "input-datetime"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "APPLYDESTINATION",
"label" : "目的地",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "APPLYMATTER",
"label" : "出车事由",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "VEHICLEID",
"label" : "车牌号",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/40c51eee-c812-475c-81eb-c02b0bca734e/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" : "VEHICLETYPEID",
"label" : "车辆类型",
"disabled" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "BURDEN",
"label" : "核定载客人数/载货量",
"disabled" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "DRIVERID",
"label" : "驾驶员",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/a9abafe3-1c68-47dd-9068-63c9eb732673/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "DEPARTS",
"label" : "用车部门",
"required" : 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
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "USERS",
"label" : "使用人",
"required" : true,
"type" : "picker",
"clearable" : true,
"multiple" : true,
"overflowConfig" : {
"displayPosition" : [ "select" ],
"maxTagCount" : 1
},
"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" : "请点击右侧的图标"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "OUTWARDRUNDATE",
"label" : "实际出车时间",
"required" : true,
"type" : "input-datetime"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "RETURNDATE",
"label" : "预计归车时间",
"required" : true,
"type" : "input-datetime"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "DESTINATION",
"label" : "目的地",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "OPERATOR",
"label" : "派车人",
"type" : "static",
"tpl" : "${OPERATOR_DISPLAY__ ? OPERATOR_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : OPERATOR)}",
"value" : "${currentUser}"
} ]
} ]
}, {
"name" : "OA_VEHICLESEND_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "SENDDATE",
"label" : "派车时间",
"hidden" : true,
"type" : "input-datetime"
}, {
"name" : "ACTUALRETURNDATE",
"label" : "实际归车时间",
"hidden" : true,
"type" : "input-datetime"
}, {
"name" : "DISPATCHPLACE",
"label" : "发车地点",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "FRONTMILEAGE",
"label" : "发车公里数",
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "BEHINDMILEAGE",
"label" : "返回公里数",
"hidden" : true,
"type" : "input-number",
"precision" : 2
}, {
"name" : "REMARK",
"label" : "备注",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "ISRETURN",
"label" : "是否归车",
"hidden" : true,
"type" : "checkbox",
"value" : "0"
} ],
"actions" : [ ]
}
}