import { timeFormat } from '@climblee/uv-ui/libs/function' export default { //清洁任务 task_hygienes: { data: [ { title: '审核状态', dataIndex: 'workflow_check.check_status_text', }, { title: '未通过理由', dataIndex: 'workflow_check.check_remarks', labelPosition: 'top', isShow: (item) => { return item?.workflow_check?.check_status == 4 }, }, { title: '所属门店', dataIndex: 'check.subject.store.title', // borderBottom: false, // labelPosition: 'top' }, { title: '电话号码', dataIndex: 'check.subject.store_master.phone', }, { title: '申请时间', dataIndex: 'check.subject.created_at', format: timeFormat, }, { title: '清洁范围', dataIndex: 'check.subject.description', labelPosition: 'top', }, { title: '清洁结果', dataIndex: 'check.subject.photos', type: 'album', }, ], params: { include: 'check.subject.task,check.subject.storeMaster,check.subject.store' } }, //报销 reimbursements: { params: { include: 'check.subject.type,check.subject.employee,check.subject.store', }, data: [ { title: "申请人", dataIndex: "check.subject.employee.name" }, { title: "所属门店", dataIndex: "check.subject.store.title" }, { title: "电话号码", dataIndex: "check.subject.employee.phone" }, { title: "申请时间", dataIndex: "check.subject.created_at_format" }, { title: '报销分类', dataIndex: 'check.subject.type.name', }, { title: '报销金额', dataIndex: 'check.subject.expense', }, { title: '报销原因', dataIndex: 'check.subject.reason', labelPosition: 'top', }, { title: '报销凭证', dataIndex: 'check.subject.photos', type: 'album', }, { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => { return item?.check_status == 4 }, }, ] }, //升职 employee_promotions: { params: { include: 'check.subject.store,check.subject.invitor,check.subject.employee,check.subject.job', }, data: [ { title: '审核状态', dataIndex: 'check_status_text', }, { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => { return item?.check_status == 4 }, }, { title: '晋升职位', dataIndex: 'check.subject.job.name', }, { title: '推荐人', dataIndex: 'check.subject.invitor.name', }, { title: '申请人', dataIndex: 'check.subject.employee.name', }, { title: '年龄', dataIndex: 'check.subject.employee_data.age', }, { title: '性别', dataIndex: 'check.subject.employee_data.sex', }, { title: '学历', dataIndex: 'check.subject.employee_data.education', }, { title: '首次参加工作时间', dataIndex: 'check.subject.employee_data.first_work_time', labelWidth: "250rpx" }, { title: '工作年限', dataIndex: 'check.subject.employee_data.work_years', }, { title: '本公司工作年限', dataIndex: 'check.subject.employee_data.work_years_in_company', }, { title: '员工自评', dataIndex: 'check.subject.employee_data.comment_self', labelPosition: 'top', }, { title: '未来计划', dataIndex: 'check.subject.employee_data.plans', labelPosition: 'top', }, { title: '推荐理由', dataIndex: 'check.subject.employee_data.reason', labelPosition: 'top', }] }, //补卡申请 employee_sign_repairs: { params: { include: 'check.subject.employee,check.subject.store', }, data: [{ title: '审核状态', dataIndex: 'check_status_text', }, { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => { return item?.check_status == 4 }, }, { title: '申请人', dataIndex: 'check.subject.employee.name', }, { title: '所属门店', dataIndex: 'check.subject.store.title', }, { title: '电话号码', dataIndex: 'check.subject.employee.phone' }, { title: '申请时间', dataIndex: 'check.subject.created_format' }, { title: '补卡时间', dataIndex: 'check.subject.date_format', }, { title: '补卡原因', dataIndex: 'check.subject.reason', labelPosition: 'top', }, { title: '是否外勤', dataIndex: 'check.subject.sign_type', format: (e) => { return e == 1 ? '否' : '是' } }, { title: '外勤事由', dataIndex: 'check.subject.outside_remarks', labelPosition: 'top', isShow: (item) => { return item?.sign_type == 2 } }] }, //请假申请 holiday_applies: { params: { include: 'check.subject.employee,check.subject.type,check.subject.store' }, data: [{ title: '审核状态', dataIndex: 'check_status_text', }, { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => { return item?.check_status == 4 }, }, { title: '申请人', dataIndex: 'check.subject.employee.name', }, { title: '所属门店', dataIndex: 'check.subject.store.title', }, { title: '电话号码', dataIndex: 'check.subject.employee.phone' }, { title: '申请时间', dataIndex: 'check.subject.created_format', }, { title: '请假类型', dataIndex: 'check.subject.type.name', }, { title: '请假开始时间', dataIndex: 'check.subject.start_format', }, { title: '请假结束时间', dataIndex: 'check.subject.end_format', }, { title: '请假原因', dataIndex: 'check.subject.reason', labelPosition: 'top', }] }, offical_business: { params: { include: 'check.subject.employee,check.subject.store' }, data: [ { title: '审核状态', dataIndex: 'check_status_text' }, { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 }, { title: '申请人', dataIndex: 'check.subject.employee.name' }, { title: '所属门店', dataIndex: 'check.subject.store.title' }, { title: '目的地', dataIndex: 'check.subject.address' }, { title: '开始时间', dataIndex: 'check.subject.start_format' }, { title: '结束时间', dataIndex: 'check.subject.end_format' }, { title: '出差事由', dataIndex: 'check.subject.reason', labelPosition: 'top' }, ] }, overtime_applies: { params: { include: 'check.subject.employee,check.subject.store' }, data: [ { title: '审核状态', dataIndex: 'check_status_text' }, { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 }, { title: '申请人', dataIndex: 'check.subject.employee.name' }, { title: '所属门店', dataIndex: 'check.subject.store.title' }, { title: '日期', dataIndex: 'check.subject.date_format' }, { title: '开始时间', dataIndex: 'check.subject.start_format' }, { title: '结束时间', dataIndex: 'check.subject.end_format' }, { title: '加班事由', dataIndex: 'check.subject.reason', labelPosition: 'top' }, ] }, agreements: { params: { include: 'check.subject.employee' }, data: [ { title: '审核状态', dataIndex: 'check_status_text' }, { title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 }, { title: '申请人', dataIndex: 'check.subject.employee.name' }, { title: '合同名称', dataIndex: 'check.subject.name' }, { title: '合同照片', dataIndex: 'check.subject.images', type: 'album' }, ] } }