1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
|
webpackJsonp([338],{EDQH:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("BO1k"),s=a.n(l),i=a("d7EF"),o=a.n(i),n=a("//Fk"),r=a.n(n),c=a("mvHQ"),p=a.n(c),h=a("Dd8w"),u=a.n(h),d=a("Dod7"),m=a("NYxO"),f=(a("t4zo"),a("bzuE")),g={data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10},tableData:[],prDate:"",uploadAttachment:[],fileDocList:[],uploadUrl:d.a.uploadUrl,auto_upload:!1,fullscreenLoading:!1,tmpLink:"/static/muban/attendance-template.xlsx",selectDeptId:"",depOptions:[],config:f.a,btnDelDisabled:!0,btnOtherDisabled:!0,dialogLoading:!1,columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"attendanceManagement_index_table",pictLoading:!1,showTableColumnsDefault:[{title:"部门",prop_:"deptName",select:!0},{title:"所属时期",prop_:"period",select:!0},{title:"工号",prop_:"employeeCode",select:!0},{title:"姓名",prop_:"employeeName",select:!0},{title:"出勤(天)",prop_:"attendanceTime",select:!0},{title:"日班(天)",prop_:"dayShiftTime",select:!0},{title:"夜班(天)",prop_:"nightShiftTime",select:!0},{title:"病假(天)",prop_:"sickLeaveTime",select:!0},{title:"事假(天)",prop_:"comLeaveTime",select:!0},{title:"旷工(天)",prop_:"absenteeismTime",select:!0},{title:"迟到(天)",prop_:"lateTime",select:!0},{title:"早退(天)",prop_:"leaveEarlyTime",select:!0},{title:"缺卡(天)",prop_:"lackCardTime",select:!0},{title:"加班(天)",prop_:"overTime",select:!0},{title:"调休(天)",prop_:"compensatoryTime",select:!0},{title:"法定加班(天)",prop_:"legalOverTime",select:!0},{title:"婚丧(天)",prop_:"marriageFuneralTime",select:!0},{title:"产假(天)",prop_:"maternityLeaveTime",select:!0},{title:"护理假(天)",prop_:"nursingLeaveTime",select:!0},{title:"哺乳假(天)",prop_:"lactationLeaveTime",select:!0},{title:"休息(天)",prop_:"restTime",select:!0},{title:"年假(天)",prop_:"annualLeaveTime",select:!0},{title:"值班(天)",prop_:"dutyTime",select:!0}],showTableColumns:[{title:"部门",prop_:"deptName",select:!0},{title:"所属时期",prop_:"period",select:!0},{title:"工号",prop_:"employeeCode",select:!0},{title:"姓名",prop_:"employeeName",select:!0},{title:"出勤(天)",prop_:"attendanceTime",select:!0},{title:"日班(天)",prop_:"dayShiftTime",select:!0},{title:"夜班(天)",prop_:"nightShiftTime",select:!0},{title:"病假(天)",prop_:"sickLeaveTime",select:!0},{title:"事假(天)",prop_:"comLeaveTime",select:!0},{title:"旷工(天)",prop_:"absenteeismTime",select:!0},{title:"加班(天)",prop_:"overTime",select:!0},{title:"调休(天)",prop_:"compensatoryTime",select:!0},{title:"法定加班(天)",prop_:"legalOverTime",select:!0},{title:"婚丧(天)",prop_:"marriageFuneralTime",select:!0},{title:"产假(天)",prop_:"maternityLeaveTime",select:!0},{title:"护理假(天)",prop_:"nursingLeaveTime",select:!0},{title:"哺乳假(天)",prop_:"lactationLeaveTime",select:!0},{title:"休息(天)",prop_:"restTime",select:!0},{title:"年假(天)",prop_:"annualLeaveTime",select:!0},{title:"值班(天)",prop_:"dutyTime",select:!0}],showTableColumnsTemp:[],formTableData:[],totalTransferAmount:0}},computed:u()({},Object(m.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(p()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(p()(this.showTableColumns)),this.initData(),this.getList(),this.getShowColumns()},methods:{downloadTemplate:function(){this.tmpLink?window.open(this.tmpLink):this.$message.warning("当前页面暂未配置模板链接")},download:function(){var e=this,t={filePath:"/gyhl-file/template/attendance-template.xlsx",fileName:"考勤模板.xlsx"};console.log(t),this.$api.salesAPI.down(t).then(function(t){console.log(t),200==t.status?(window.open(t.request.responseURL),e.$message({message:"下载成功",type:"success"})):e.$message({message:"下载失败",type:"error"})})},search:function(){this.search_data.pageno=1,t
|