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>
278 lines
8.2 KiB
JSON
278 lines
8.2 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "考勤结果",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_HR_ATTENDLOG_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "USERID",
|
|
"label" : "姓名",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/090981ba-0c10-4d84-92dc-80e226594480/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}, {
|
|
"name" : "ATTENDDATE",
|
|
"label" : "考勤日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "USERORGID",
|
|
"label" : "所属(分)公司",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/35e321b3-a511-4cfb-ba29-ce8541cef747/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "DAYOFWEEK",
|
|
"label" : "星期",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_HR_ATTENDLOGRESULT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "USERID_DISPLAY__",
|
|
"label" : "用户表ID",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "USERNAME",
|
|
"label" : "姓名",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "ATTENDDATE",
|
|
"label" : "考勤日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "DAYOFWEEK",
|
|
"label" : "星期",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ATTENDLOGDETAIL",
|
|
"label" : "考勤结果",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "USERORGID_DISPLAY__",
|
|
"label" : "所属(分)公司",
|
|
"width" : 200
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "批量考勤",
|
|
"label" : "批量考勤",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "批量考勤",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/2c89e6e4-0b33-4bde-92ed-f843451af853?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/VIEW_HR_ATTENDLOGRESULT/defaults?templateId=2c89e6e4-0b33-4bde-92ed-f843451af853"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_ATTENDLOG_BATCH_ADD?__egtpl=2c89e6e4-0b33-4bde-92ed-f843451af853",
|
|
"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]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/a81b939f-d2b4-46ae-9220-5abbdadb7be5?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_ATTENDLOG_LOAD?__egtpl=a81b939f-d2b4-46ae-9220-5abbdadb7be5",
|
|
"data" : {
|
|
"VIEW_HR_ATTENDLOGRESULT_ID" : "${VIEW_HR_ATTENDLOGRESULT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_ATTENDLOG_UPDATE?__egtpl=a81b939f-d2b4-46ae-9220-5abbdadb7be5",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_ATTENDLOG_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:VIEW_HR_ATTENDLOGRESULT_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "批量删除",
|
|
"label" : "批量删除",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "批量删除",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/0687ba9c-ba29-42dc-9496-37c0375f5751?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/VIEW_HR_ATTENDLOGRESULT/defaults?templateId=0687ba9c-ba29-42dc-9496-37c0375f5751"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "删除",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_ATTENDLOG_BATCHFORDATE_DELETE?__egtpl=0687ba9c-ba29-42dc-9496-37c0375f5751",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "按(分)公司批量删除",
|
|
"label" : "按(分)公司批量删除",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "按(分)公司批量删除",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/39e907fb-23d1-4d20-a985-e137bebc2524?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/VIEW_HR_ATTENDLOGRESULT/defaults?templateId=39e907fb-23d1-4d20-a985-e137bebc2524"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "删除",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_ATTENDLOG_BATCHFORORGID_DELETE?__egtpl=39e907fb-23d1-4d20-a985-e137bebc2524",
|
|
"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/a81b939f-d2b4-46ae-9220-5abbdadb7be5?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_ATTENDLOG_LOAD?__egtpl=a81b939f-d2b4-46ae-9220-5abbdadb7be5",
|
|
"data" : {
|
|
"VIEW_HR_ATTENDLOGRESULT_ID" : "${VIEW_HR_ATTENDLOGRESULT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_HR_ATTENDLOGRESULT_ID"
|
|
}
|
|
} |