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>
203 lines
5.2 KiB
JSON
203 lines
5.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" : "VEHICLEID",
|
|
"label" : "车牌号",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/94ba4c35-9b9d-4476-bab4-c7677bf813f2/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" : "TRANSPORTATION",
|
|
"label" : "目的地距离",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_VEHICLEAPPLICATION_TRANSRANGE",
|
|
"value" : "1"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "PROPOSER",
|
|
"label" : "申请人",
|
|
"type" : "static",
|
|
"tpl" : "${PROPOSER_DISPLAY__ ? PROPOSER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : PROPOSER)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "APPLICATIONDATE",
|
|
"label" : "申请日期",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"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" : 12,
|
|
"body" : [ {
|
|
"name" : "DESTINATION",
|
|
"label" : "目的地",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "MATTER",
|
|
"label" : "出车事由",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "OA_VEHICLEAPPLICATION_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ALLOCATIONSTATUS",
|
|
"label" : "派车情况",
|
|
"required" : true,
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/allocationStatus",
|
|
"value" : "1"
|
|
}, {
|
|
"name" : "A",
|
|
"label" : "A",
|
|
"hidden" : true,
|
|
"type" : "input-text",
|
|
"value" : "1"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |