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>
102 lines
2.6 KiB
JSON
102 lines
2.6 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "固定资产维修申请选择窗口",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_FIXEDASSETS_REPAIRAPPLY_SEARCH_LISTINFO",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "DEPART_ID",
|
|
"label" : "申请部门",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "USEDEPARTID",
|
|
"label" : "使用部门",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
}, {
|
|
"name" : "ASSETSNAME",
|
|
"label" : "资产名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "REPAIRTYPE",
|
|
"label" : "维修类型",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/REPAIRTYPE"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "REPAIRRECORDNO",
|
|
"label" : "表单号",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "ASSETSID_DISPLAY__",
|
|
"label" : "卡片编号",
|
|
"width" : 180
|
|
}, {
|
|
"name" : "ASSETSNO",
|
|
"label" : "资产编码",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ASSETSNAME",
|
|
"label" : "资产名称",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "APPLYNAME_DISPLAY__",
|
|
"label" : "申请人",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "DEPART_ID_DISPLAY__",
|
|
"label" : "申请部门",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "REPAIRTYPE",
|
|
"label" : "维修类型",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "日常维修",
|
|
"2" : "大修理"
|
|
}
|
|
}, {
|
|
"name" : "USEDEPARTID",
|
|
"label" : "使用部门",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "REPAIRFEE",
|
|
"label" : "预计维修费用(元)",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "OA_FIXEDASSETS_REPAIRAPPLY_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ "pagination" ],
|
|
"primaryField" : "OA_FIXEDASSETS_REPAIRAPPLY_ID"
|
|
}
|
|
} |