实现场景:
汇总展示员工的所有出勤异常情况
更改为按天显示
异常中心预置默认按照班段显示,如果想按天显示可通过修改元数据配置(如果一个班次有多个班段,而且需要打两次以上卡请按班段显示):
AttendData.meta.list.myUnusual.json{ "fields": [{ "key": "section_name", "meta_disabled": true }, { "key": "begin_punch_record", "fieldFunc": "=function(_row, _col, value){return value?(SCOPE.client==='mobile'?value.split(' ')[1]:value):'无'}" }, { "key": "end_punch_record", "fieldFunc": "=function(_row, _col, value){return value?(SCOPE.client==='mobile'?value.split(' ')[1]:value):'无'}" }, { "key": "result_item", "sequence": 80, "hide": false }, { "key": "section_id", "meta_disabled": true }, { "key": "attend_detail.attend_item", "sequence": 90, "meta_disabled": true }, { "key": "is_begin_punch", "meta_disabled": true }, { "key": "is_end_punch", "meta_disabled": true } ], "relations": [{ "key": "section", "meta_disabled": true }, { "key": "attend_detail", "meta_disabled": true } ], "list_config": { "mobile_list_config": { "page_title": "=SCOPE.getGreetingStr()", "selector_type": 0, "list_meta": { "dynamic_template": true, "content": { "top_left_area": [{ "key": "date", "label": null }], "top_right_area": [{ "key": "result_item", "label": null }], "middle_left_area": [{ "key": "shift_name" }], "bottom_left_area": [{ "key": "begin_punch_record" }], "bottom_right_area": [{ "key": "end_punch_record" }] }, "class": { "top_left_area": "font-16 theme-color", "top_right_area": "font-14 color-red", "middle_left_area": "font-14 separate color-gray", "bottom_left_area": "font-14 color-gray", "bottom_right_area": "font-14 color-gray" } } }, "operate_row": [{ "key": "new_fillcard", "label": "补签", "func": "=getCreateWorkflowFunc({'business_number':companySetting.TIME_BATCH_FILLCARD_ENABLED?'batch_fillcard':'fillcard','business_name':'补签'})" }, { "key": "new_business_trip", "label": "出差", "func": "=getCreateWorkflowFunc({'business_number':companySetting.TIME_BATCH_BUSSINESS_TRIP_ENABLED?'batch_business_trip':'business_trip','business_name':'出差'})" }, { "key": "new_leave", "label": "休假", "func": "=getCreateWorkflowFunc({'business_number':companySetting.TIME_BATCH_LEAVE_ENABLED?'batch_leave':'leave','business_name':'出差'})" } ], "category_field": "result_item" } }