(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ea0c6a7e"],{"7d14":function(t,e,a){"use strict";a.r(e);a("99af"),a("4de4"),a("d81d"),a("cca6"),a("96cf");var n=a("1da1"),r=a("fa7d"),l=a("284b"),i={data:function(){return{setectTableData:[],tableData:[],isSearch:!0,queryInfo:{retportKey:"",submitStartTime:this.getYesterday(),submitEndTime:new Date,reportStatus:"",loginId:"",pageSize:10,pageNo:1,selGroup:""},statusList:[{id:1,label:"已提交"},{id:2,label:"已撤销"},{id:4,label:"已发送"},{id:9,label:"已审批"}],userGroup:[],total:0}},created:function(){this.initTable(),this.initUserGroup()},methods:{handleSelectionChange:function(t){},handleSizeChange:function(t){this.queryInfo.pageSize=t,this.initTable()},handleCurrentChange:function(t){this.queryInfo.pageNo=t,this.initTable()},initTable:function(){var t,e=this,a=Object.assign({},this.queryInfo);a.submitStartTime=Object(r.c)(a.submitStartTime,!0),a.submitEndTime=Object(r.c)(a.submitEndTime,!0),(t=a,l.a.request({url:"manager/report/mileageDetailReport",method:"GET",params:t})).then((function(t){e.tableData=t.result.data,e.total=t.result.pagination.total}))},getYesterday:function(){var t=new Date,e=new Date;return e.setTime(t.getTime()-864e5),e},reset:function(){this.queryInfo={startTime:"",endTime:"",status:"",expenseAccountEmail:"",pageSize:10,pageNo:1,selGroup:""}},exportExcel:function(){var t=Object.assign({},this.queryInfo);this.$file.downloadFile("api/manager/report/mileageDetailReport/export",t,"reportForm.xlsx")},initUserGroup:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.a.request({url:"manager/report/groupList",method:"GET"});case 2:a=e.sent,n=a.result.map((function(t){return Object.assign(t,{label:t.orgName})})),t.userGroup=n;case 5:case"end":return e.stop()}}),e)})))()},getSelectValue:function(t){var e=this.userGroup.filter((function(e){return t==e.id}));this.queryInfo.selGroup=e[0].orgName},formatDate:function(t){var e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();return"".concat(e,"-").concat(a,"-").concat(n)}}},o=a("2877"),c=Object(o.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bgfff p-left-2 h100"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isSearch,expression:"isSearch"}],staticClass:"bgc p-left-2"},[a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:"报销人邮箱",fieldName:"expenseAccountEmail",field:"queryInfo",width:"200","label-width":"100",defaultValue:t.queryInfo.expenseAccountEmail}}),a("FeesInput",{attrs:{santakLabel:"Report Key",fieldName:"reportKey",field:"queryInfo",width:"200","label-width":"100",defaultValue:t.queryInfo.reportKey}}),a("OptionsSelect",{attrs:{fieldName:"reportStatus",field:"queryInfo",labelValue:"报告状态",options:t.statusList,width:"200","label-width":"100",defaultValue:t.queryInfo.reportStatus}})],1),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticClass:"d-flex a-center j-center",staticStyle:{width:"6.25rem","text-align":"right"}},[t._v(" 开始日期 ")]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",placeholder:"选择日期",clearable:!1},model:{value:t.queryInfo.submitStartTime,callback:function(e){t.$set(t.queryInfo,"submitStartTime",e)},expression:"queryInfo.submitStartTime"}})],1),a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticClass:"d-flex a-center j-center",staticStyle:{width:"6.25rem","text-align":"right"}},[t._v(" 结束日期 ")]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:t.queryInfo.submitEndTime,callback:function(e){t.$set(t.queryInfo,"submitEndTime",e)},expression:"queryInfo.submitEndTime"}})],1),a("OptionsSelect",{attrs:{defaultValue:t.queryInfo.selGroup,fieldName:"selGroup",field:"queryInfo",labelValue:"组织",options:t.userGroup,width:"200","label-width":"100"},on:{getSelectValue:t.getSelectValue}}),a("div",{staticClass:"d-flex"},[a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:t.initTable}}),a("FeesButton",{attrs:{text:"重置",icon:"el-icon-refresh"},on:{buttonClick:t.reset}})],1)],1)]),a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"},[a("FeesButton",{attrs:{text:"导出报表"},on:{buttonClick:t.exportExcel}}),a("FeesButton",{attrs:{text:"搜索"},on:{buttonClick:function(e){t.isSearch=!t.isSearch}}})],1),a("div",[a("el-table",{attrs:{data:t.tableData,"header-align":"center",border:""},on:{"select-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{label:"Policy Name",prop:"policyName",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"报销人邮箱",prop:"loginId",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"出行日期",prop:"outDate",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"里程中的业务目的",prop:"mileagePurpose",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"单次行程内部序号",prop:"inSort",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"地点类型",prop:"addressType",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"地点",prop:"address",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"里程长度",prop:"mileageSum",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"Report Key",prop:"reportKey",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"报告状态",prop:"reportStatus",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"提交日期",prop:"submitDate",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"费用报告名称",prop:"reportName",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"业务目的",prop:"businessPurpose",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"交易日期",prop:"tradeDate",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"总里程",prop:"mileage",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"发票金额",prop:"invoiceMoney",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"报销金额",prop:"reimburseMoney",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"concur金额",prop:"concurMoney",width:"180",align:"center"}})],1)],1),a("div",{staticClass:"m-top-4"},[a("el-pagination",{attrs:{background:"","page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:t.total,"current-page":t.queryInfo.pageNo,"page-size":t.queryInfo.pageSize},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.queryInfo,"pageNo",e)},"update:current-page":function(e){return t.$set(t.queryInfo,"pageNo",e)}}})],1)])}),[],!1,null,null,null);e.default=c.exports},fa7d:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return l}));a("99af"),a("ac1f"),a("4d90"),a("5319");function n(t,e){if(""==t||!t)return"";var a=new Date(t),n=a.getFullYear(),r=a.getMonth()+1+"";r=r.padStart(2,0);var l=a.getDate()+"";l=l.padStart(2,0);var i=a.getHours()+"";i=i.padStart(2,0);var o=a.getMinutes()+"",c=a.getSeconds()+"";return o=o.padStart(2,0),c=c.padStart(2,0),"nyrsf"==e?"".concat(n,"-").concat(r,"-").concat(l," ").concat(i,":").concat(o):"month"==e?"".concat(n,"-").concat(r):"nowtime"==e?"".concat(n,"-").concat(r,"-").concat(l," ").concat(i,":").concat(o,":").concat(c):e?"".concat(n,"-").concat(r,"-").concat(l):"".concat(n,"年-").concat(r,"月-").concat(l,"日 ").concat(i,":").concat(o,":").concat(c)}function r(t){var e=new Date(t),a=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(a,"年").concat(n,"月").concat(r,"日")}function l(t){return t.replace(/(\d{4})年(\d{1,2})月(\d{1,2})日/,(function(t,e,a,n){return"".concat(e,"-").concat(a.padStart(2,"0"),"-").concat(n.padStart(2,"0"))}))}}}]);