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>
153 lines
4.2 KiB
JSON
153 lines
4.2 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "派车打印",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_VEHICLESEND_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "VEHICLEID",
|
|
"label" : "车牌号",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "DRIVERID",
|
|
"label" : "驾驶员",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "OUTWARDRUNDATE",
|
|
"label" : "实际出车时间",
|
|
"type" : "input-datetime"
|
|
}, {
|
|
"name" : "RETURNDATE",
|
|
"label" : "预计归车时间",
|
|
"type" : "input-datetime"
|
|
}, {
|
|
"name" : "ACTUALRETURNDATE",
|
|
"label" : "实际归车时间",
|
|
"type" : "input-datetime"
|
|
}, {
|
|
"name" : "DESTINATION",
|
|
"label" : "目的地",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "OPERATOR",
|
|
"label" : "派车人",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"searchable" : true,
|
|
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
|
|
}, {
|
|
"name" : "SENDDATE",
|
|
"label" : "派车时间",
|
|
"type" : "input-datetime"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "OA_VEHICLESEND_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "VEHICLEID_DISPLAY__",
|
|
"label" : "车牌号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "DRIVERID_DISPLAY__",
|
|
"label" : "驾驶员",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "OUTWARDRUNDATE",
|
|
"label" : "实际出车时间",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "RETURNDATE",
|
|
"label" : "预计归车时间",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ACTUALRETURNDATE",
|
|
"label" : "实际归车时间",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "DESTINATION",
|
|
"label" : "目的地",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "OPERATOR_DISPLAY__",
|
|
"label" : "派车人",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SENDDATE",
|
|
"label" : "派车时间",
|
|
"width" : 200,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "派车单打印",
|
|
"label" : "派车单打印",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "派车单打印",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"OA_VEHICLESEND_ID" : "${selectedItems[0].OA_VEHICLESEND_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/a14ba65e-bb81-42a6-bb6b-f30d57c9097a?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_VEHICLESEND_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "8dffec90-31f2-4799-a429-8aa765e84911"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |