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>
165 lines
4.6 KiB
JSON
165 lines
4.6 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "会议室预定",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_MEETINGROOMBOOK_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "MEETINGROOMID",
|
|
"label" : "会议室",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/0d6df814-ccfd-4689-a2d8-408110c2d12f/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "OA_MEETINGROOMBOOK_ID",
|
|
"label" : "主键",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MEETINGROOMID_DISPLAY__",
|
|
"label" : "会议室",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "STARTTIME",
|
|
"label" : "会议开始时间",
|
|
"width" : 100,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ENDTIME",
|
|
"label" : "会议结束时间",
|
|
"width" : 100,
|
|
"type" : "datetime",
|
|
"format" : "YYYY-MM-DD HH:mm",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "MEETING_TOPIC",
|
|
"label" : "会议主题",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ATTENDEEAMOUNT",
|
|
"label" : "与会人数",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "MEETING_RESOURCE",
|
|
"label" : "配置资源",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "APPLYUSER_DISPLAY__",
|
|
"label" : "发起人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "DEPART_ID_DISPLAY__",
|
|
"label" : "所属部门",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "DISPATCH_STATUS",
|
|
"label" : "分配状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未安排",
|
|
"2" : "已安排",
|
|
"3" : "预订取消"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "预定",
|
|
"label" : "预定",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "预定",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/a30ba49d-dc01-4100-83e0-912bac60ce78?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_MEETINGROOMBOOK/defaults?templateId=a30ba49d-dc01-4100-83e0-912bac60ce78"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_MEETINGROOMBOOK_ADD?__egtpl=a30ba49d-dc01-4100-83e0-912bac60ce78",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看",
|
|
"label" : "查看",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/a30ba49d-dc01-4100-83e0-912bac60ce78?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_MEETINGROOMBOOK_LOAD?__egtpl=a30ba49d-dc01-4100-83e0-912bac60ce78",
|
|
"data" : {
|
|
"OA_MEETINGROOMBOOK_ID" : "${OA_MEETINGROOMBOOK_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "取消预订",
|
|
"label" : "取消预订",
|
|
"actionType" : "ajax",
|
|
"confirmText" : "确定要取消预订吗",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_MEETINGROOMBOOK_UPDATE_STATUS",
|
|
"data" : {
|
|
"OA_MEETINGROOMBOOK_ID" : "${selectedItems[0].OA_MEETINGROOMBOOK_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_MEETINGROOMBOOK_ID"
|
|
}
|
|
} |