(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-92018a86"],{"1a86":function(e,t,a){"use strict";t.a={data:function(){return{isSearch:!1,total:null}},created:function(){},methods:{handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.initTable()},searchClick:function(){this.isSearch=!this.isSearch}}}},"799d":function(e,t,a){"use strict";a.r(t);a("7db0"),a("a15b"),a("d81d"),a("cca6"),a("96cf");var n=a("1da1"),l=a("5530"),i=a("284b"),r=(a("d3b7"),a("e6cf"),a("bc3a")),o=a.n(r),c=function(e,t){return new Promise((function(a,n){e?o.a.post(t,e,{headers:{"Content-type":"multipart/form-data",Authorization:"Bearer "+localStorage.getItem("token")},onUploadProgress:function(e){e.loaded,e.total}}).then(a).catch(n):n(new Error("没有上传文件!"))}))},s=a("fa7d"),d=a("2f62"),u={name:"ImageQuery",mixins:[a("1a86").a],data:function(){return{queryInfo:{buyer:"",buyerTaxId:"",code:"",number:"",seller:"",sellerTaxId:"",kind:"",ticketCode:"",startDate:"",endDate:"",reportId:"",reportKey:"",operator:"",pageSize:10,pageNo:1,createStart:"",createEnd:"",paydateStart:"",paydateEnd:"",orgName:""},invoiceList:[{label:"客运汽车",id:"客运汽车"},{label:"火车票",id:"火车票"},{label:"出租车发票",id:"出租车发票"},{label:"增值税普通发票",id:"增值税普通发票"},{label:"增值税专用发票",id:"增值税专用发票"},{label:"机打发票",id:"机打发票"},{label:"航空运输电子客票行程单",id:"航空运输电子客票行程单"},{label:"增值税电子普通发票",id:"增值税电子普通发票"},{label:"定额发票",id:"定额发票"},{label:"可报销其他发票",id:"可报销其他发票"},{label:"增值税普通发票(卷票)",id:"增值税普通发票(卷票)"},{label:"机动车销售统一发票",id:"机动车销售统一发票"},{label:"二手车销售统一发票",id:"二手车销售统一发票"},{label:"船票",id:"船票"},{label:"过路费发票",id:"过路费发票"},{label:"国际小票",id:"国际小票"},{label:"滴滴出行行程单",id:"滴滴出行行程单"},{label:"完税证明",id:"完税证明"},{label:"手工发票",id:"手工发票"},{label:"多票",id:"多票"},{label:"增值税普通发票电子发票",id:"增值税普通发票电子发票"},{label:"增值税专用发票电子发票",id:"增值税专用发票电子发票"},{label:"铁路服务费",id:"铁路服务费"},{label:"电子火车票",id:"电子火车票"},{label:"航空运输行程单电子发票",id:"航空运输行程单电子发票"}],kindTypes:[{label:"餐饮",id:"餐饮"},{label:"交通",id:"交通"},{label:"住宿",id:"住宿"},{label:"房租装修",id:"房租装修"},{label:"用车",id:"用车"},{label:"通讯",id:"通讯"},{label:"邮寄",id:"邮寄"},{label:"数码电器",id:"数码电器"},{label:"水电",id:"水电"},{label:"服务",id:"服务"},{label:"服饰",id:"服饰"},{label:"教育",id:"教育"},{label:"医疗",id:"医疗"},{label:"食品",id:"食品"},{label:"办公",id:"办公"},{label:"日用",id:"日用"},{label:"其他",id:"其他"}],approveList:[{label:"Approved",id:"Approved"},{label:"Not Submitted ",id:"Not Submitted"},{label:"Approved & In Accounting Review",id:"Approved & In Accounting Review"},{label:"Submitted & Pending Approval ",id:"Submitted & Pending Approval"},{label:"Sent Back to Employee",id:"Sent Back to Employee"},{label:"Pending PM or Budget Approval ",id:"Pending PM or Budget Approval"}],tableData:[],statusList:[{label:"未处理",id:0},{label:"已处理",id:1},{label:"异常",id:2},{label:"退票",id:4},{label:"暂挂",id:5}],ids:""}},computed:Object(l.a)(Object(l.a)({},Object(d.d)({ticketCodeList:function(e){return e.common.ticketCodeList}})),Object(d.d)("user",["orgs","currentOrg"])),methods:{selectionChangeHandle:function(e){var t=e.map((function(e){return e.id})).join(",");this.ids=t},batchDeleteHandle:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!=e.ids){t.next=3;break}return e.$message.error("请勾选要删除的发票!"),t.abrupt("return");case 3:return t.next=5,e.$confirm("是否确定删除勾选发票","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 5:if("confirm"!=t.sent){t.next=17;break}return t.prev=7,t.next=10,a=e.ids,Object(i.a)({url:"manager/invoiceImage/deleteBatch?ids=".concat(a),method:"DELETE"});case 10:200==t.sent.status?(e.$message.success("删除成功"),e.initTable()):e.$message.success("删除失败"),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(7),e.$message.error("删除失败,请重试!");case 17:case"end":return t.stop()}var a}),t,null,[[7,14]])})))()},downLoadImage:function(e){this.$file.downloadFile("api/manager/invoiceImage/download/".concat(e.id),"",e.fileName)},batchDownLoad:function(){var e=Object.assign({},this.queryInfo);this.$file.downloadFile("api/manager/invoiceImage/multiDownload",e,"image.zip")},xmlDownload:function(){var e=Object.assign({},this.queryInfo);this.$file.downloadFile("api/manager/invoiceImage/multi_Download_XML",e,"xml.zip")},exportSearch:function(){var e=Object.assign({},this.queryInfo);this.$file.downloadFile("api/manager/invoiceImage/export",e,"search.xlsx")},chooseFile:function(){this.$refs.export.click()},uploadAvater:function(e){var t=this,a=e.target.files[0],n=this.$loading({lock:!0,text:"文件上传中Loading...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});c(a,"api/manager/corInvoice/import").then((function(e){200==e.status&&(n.close(),t.$message.success("导入文件成功!"),t.initTable())})).catch((function(e){}))},initTable:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.queryInfo.orgName=e.orgs.find((function(t){return t.id==e.currentOrg})).orgName,(a=Object.assign({},e.queryInfo)).startDate=Object(s.c)(a.startDate,!0),a.endDate=Object(s.c)(a.endDate,!0),t.next=6,l=a,i.a.request({url:"manager/invoiceImage",method:"GET",params:l});case 6:200==(n=t.sent).status&&(e.tableData=n.result.data,e.total=n.result.pagination.total);case 8:case"end":return t.stop()}var l}),t)})))()},editTableColumnData:function(){},deleteById:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.$confirm("是否删除当前发票","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 2:if("confirm"!=a.sent){a.next=14;break}return a.prev=4,a.next=7,l=e.id,i.a.request({url:"manager/invoiceImage/".concat(l),method:"DELETE"});case 7:200==(n=a.sent).status?(t.$message.success(n.message),t.initTable()):t.$message.error(n.message),a.next=14;break;case 11:a.prev=11,a.t0=a.catch(4),t.$message.error("删除失败,请重试!");case 14:case"end":return a.stop()}var l}),a,null,[[4,11]])})))()},searchByQueryInfo:function(){this.initTable()},goElectronicInvoice:function(e){this.$router.push({name:"ImageElectonic",query:{id:e.id,type:"image"}})},reset:function(){var e=this,t=this.queryInfo,a=t.pageSize,n=t.pageNo;this.queryInfo={buyer:"",buyerTaxId:"",code:"",number:"",seller:"",sellerTaxId:"",kind:"",ticketCode:"",startDate:"",endDate:"",reportId:"",operator:"",pageSize:a,pageNo:n,createStart:"",createEnd:"",fileName:"",fileNo:"",orgName:""},this.queryInfo.orgName=this.orgs.find((function(t){return t.id==e.currentOrg})).orgName},handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNo=e,this.initTable()}},mounted:function(){this.initTable()}},p=a("2877"),f=Object(p.a)(u,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"h100"},["ImageQuery"==e.$route.name?a("div",{staticClass:"ImageQuery h100 bgfff"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isSearch,expression:"isSearch"}],staticClass:"bgc p-left-2"},[a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:e.$t("BuyerName"),fieldName:"buyer",field:"queryInfo",width:"200",labelWidth:"120",defaultValue:e.queryInfo.buyer}}),a("FeesInput",{attrs:{santakLabel:e.$t("buyerCode"),fieldName:"buyerTaxId",field:"queryInfo",width:"200",labelWidth:"140",defaultValue:e.queryInfo.buyerTaxId}}),a("FeesInput",{attrs:{santakLabel:e.$t("invoiceCode"),fieldName:"code",field:"queryInfo",width:"200","label-width":"140",defaultValue:e.queryInfo.code}}),a("FeesInput",{attrs:{santakLabel:e.$t("invoiceNum"),fieldName:"number",field:"queryInfo",width:"200","label-width":"120",defaultValue:e.queryInfo.number}})],1),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:e.$t("SellerName"),fieldName:"seller",field:"queryInfo",width:"200",labelWidth:"120",defaultValue:e.queryInfo.seller}}),a("FeesInput",{attrs:{santakLabel:e.$t("SellerCodeNo"),fieldName:"sellerTaxId",field:"queryInfo",width:"200",labelWidth:"140",defaultValue:e.queryInfo.sellerTaxId}}),a("OptionsSelect",{attrs:{defaultValue:e.queryInfo.kind,fieldName:"kind",field:"queryInfo",labelValue:e.$t("consumeType"),options:e.kindTypes,width:"200","label-width":"140"}}),a("OptionsSelect",{attrs:{defaultValue:e.queryInfo.invoiceType,fieldName:"invoiceType",field:"queryInfo",labelValue:e.$t("invoiceType"),options:e.invoiceList,width:"200","label-width":"140"}})],1),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticStyle:{width:"7.45rem","text-align":"right","line-height":"40px"}},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(e._s(e.$t("invoiceDateStart")))])]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",clearable:!1,placeholder:"选择日期"},model:{value:e.queryInfo.startDate,callback:function(t){e.$set(e.queryInfo,"startDate",t)},expression:"queryInfo.startDate"}})],1),a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticStyle:{width:"8.85rem","text-align":"right","line-height":"40px"}},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(e._s(e.$t("invoiceDateEnd")))])]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",clearable:!1,placeholder:"选择日期"},model:{value:e.queryInfo.endDate,callback:function(t){e.$set(e.queryInfo,"endDate",t)},expression:"queryInfo.endDate"}})],1),a("FeesInput",{attrs:{santakLabel:e.$t("ReimbursementNumber"),fieldName:"reportId",field:"queryInfo",width:"200","label-width":"140",defaultValue:e.queryInfo.reportId}}),a("FeesInput",{attrs:{santakLabel:e.$t("ReportKey"),fieldName:"reportKey",field:"queryInfo",width:"200","label-width":"120",defaultValue:e.queryInfo.reportKey}})],1),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticStyle:{width:"7.45rem","text-align":"right","line-height":"40px"}},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(e._s(e.$t("createDateStart")))])]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",clearable:!1,placeholder:"选择日期"},model:{value:e.queryInfo.createStart,callback:function(t){e.$set(e.queryInfo,"createStart",t)},expression:"queryInfo.createStart"}})],1),a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticStyle:{width:"8.85rem","text-align":"right","line-height":"40px"}},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(e._s(e.$t("createDateEnd")))])]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{clearable:!1,type:"date",placeholder:"选择日期"},model:{value:e.queryInfo.createEnd,callback:function(t){e.$set(e.queryInfo,"createEnd",t)},expression:"queryInfo.createEnd"}})],1),a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticStyle:{width:"8.85rem","text-align":"right","line-height":"40px"}},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(e._s(e.$t("payDateStart")))])]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{type:"date",clearable:!1,placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.queryInfo.paydateStart,callback:function(t){e.$set(e.queryInfo,"paydateStart",t)},expression:"queryInfo.paydateStart"}})],1),a("div",{staticClass:"d-flex",staticStyle:{width:"21%"}},[a("div",{staticStyle:{width:"7.55rem","text-align":"right","line-height":"40px"}},[a("span",{staticClass:"p-right-1 h100",staticStyle:{display:"inline-block"}},[e._v(e._s(e.$t("payDateEnd")))])]),a("el-date-picker",{staticStyle:{width:"12.5rem !important"},attrs:{clearable:!1,type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:e.queryInfo.paydateEnd,callback:function(t){e.$set(e.queryInfo,"paydateEnd",t)},expression:"queryInfo.paydateEnd"}})],1)]),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:e.$t("Submitter"),fieldName:"operator",field:"queryInfo",width:"200","label-width":"120",defaultValue:e.queryInfo.operator}}),a("div",{staticStyle:{width:"580px"}}),a("div",{staticClass:"d-flex"},[a("FeesButton",{attrs:{text:e.$t("search"),icon:"el-icon-search"},on:{buttonClick:e.searchByQueryInfo}}),a("FeesButton",{attrs:{text:e.$t("reset"),icon:"el-icon-refresh"},on:{buttonClick:e.reset}})],1)],1)]),a("div",{staticClass:"bg-fff p-left-2 h100",staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"},[a("FeesButton",{directives:[{name:"permission",rawName:"v-permission",value:"DeleteBatch",expression:"'DeleteBatch'"}],attrs:{text:e.$t("deleteBatch"),icon:"el-icon-search"},on:{buttonClick:e.batchDeleteHandle}}),a("FeesButton",{attrs:{text:e.$t("exportSearch"),icon:"el-icon-download"},on:{buttonClick:e.exportSearch}}),a("FeesButton",{attrs:{text:e.$t("batchDownLoad"),icon:"el-icon-download"},on:{buttonClick:e.batchDownLoad}}),a("FeesButton",{attrs:{text:e.$t("xmlDownload"),icon:"el-icon-download"},on:{buttonClick:e.xmlDownload}}),a("FeesButton",{attrs:{text:e.$t("search"),icon:"el-icon-search"},on:{buttonClick:e.searchClick}}),a("FeesButton",{attrs:{text:e.$t("Recheck"),icon:"el-icon-search"}})],1),a("div",{},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{type:"selection",width:"36"}}),a("el-table-column",{attrs:{label:e.$t("operate"),fixed:"",width:"140","header-align":"center",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"text-color cursor",on:{click:function(a){return e.downLoadImage(t.row)}}},[e._v(" "+e._s(e.$t("downLoad"))+" ")])]}}],null,!1,936601532)}),a("el-table-column",{attrs:{prop:"fileName",label:e.$t("FileName"),align:"center",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cursor",staticStyle:{"text-decoration":"underline"},attrs:{title:t.row.fileName},on:{click:function(a){return e.goElectronicInvoice(t.row)}}},[e._v(" "+e._s(t.row.fileName)+" ")])]}}],null,!1,2708067760)}),a("el-table-column",{attrs:{prop:"reportId",label:e.$t("ReimbursementNumber"),"header-align":"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.reportId)+" ")]}}],null,!1,251879166)}),a("el-table-column",{attrs:{prop:"checkCode",label:e.$t("ReportKey"),"header-align":"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.checkCode)+" ")]}}],null,!1,1508946358)}),a("el-table-column",{attrs:{prop:"employeeName",label:e.$t("ReimbursementMan"),"header-align":"center",align:"center",width:"220"}}),a("el-table-column",{attrs:{prop:"kind",label:e.$t("consumeType"),align:"center",width:"180"}}),a("el-table-column",{attrs:{prop:"invoiceType",label:e.$t("invoiceType"),width:"240"}}),a("el-table-column",{attrs:{prop:"date",label:e.$t("invoiceDate"),width:"200"}}),a("el-table-column",{attrs:{prop:"code",label:e.$t("invoiceCode"),width:"240"}}),a("el-table-column",{attrs:{prop:"number",label:e.$t("invoiceNum"),width:"240"}}),a("el-table-column",{attrs:{prop:"pretaxAmount",label:e.$t("money"),width:"120","header-align":"center",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.pretaxAmount)+" ")]}}],null,!1,3824618235)}),a("el-table-column",{attrs:{prop:"tax",label:e.$t("taxMoney"),width:"100","header-align":"center",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.tax)+" ")]}}],null,!1,1983043504)}),a("el-table-column",{attrs:{prop:"total",label:e.$t("totalMoney"),width:"120","header-align":"center",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.total)+" ")]}}],null,!1,496693599)}),a("el-table-column",{attrs:{prop:"seller",label:e.$t("SellerName"),width:"240","header-align":"center"}}),a("el-table-column",{attrs:{prop:"sellerTaxId",label:e.$t("SellerCodeNo"),width:"240","header-align":"center"}}),a("el-table-column",{attrs:{prop:"buyer",label:e.$t("BuyerName"),width:"240","header-align":"center"}}),a("el-table-column",{attrs:{prop:"buyerTaxId",label:e.$t("buyerCode"),width:"240","header-align":"center"}}),a("el-table-column",{attrs:{prop:"itemNames",label:e.$t("invoiceContent"),width:"180",align:"center"}}),a("el-table-column",{attrs:{prop:"",label:e.$t("checkInfo"),width:"180","header-align":"center"}}),a("el-table-column",{attrs:{prop:"po",label:"NPO",width:"180","header-align":"center"}}),a("el-table-column",{attrs:{prop:"createDate",label:e.$t("createDate"),width:"180","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.createDate)+" ")]}}],null,!1,410166189)}),a("el-table-column",{attrs:{prop:"operator",label:e.$t("Submitter")}})],1)],1),a("div",{staticClass:"m-y-1"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.pageNo,"page-size":e.queryInfo.pageSize,"page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.queryInfo,"pageNo",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"pageNo",t)}}})],1),a("input",{ref:"export",staticStyle:{display:"none"},attrs:{type:"file",name:""},on:{change:function(t){return e.uploadAvater(t)}}})])]):a("router-view")],1)}),[],!1,null,"225333e8",null);t.default=f.exports},fa7d:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return i}));a("99af"),a("ac1f"),a("4d90"),a("5319");function n(e,t){if(""==e||!e)return"";var a=new Date(e),n=a.getFullYear(),l=a.getMonth()+1+"";l=l.padStart(2,0);var i=a.getDate()+"";i=i.padStart(2,0);var r=a.getHours()+"";r=r.padStart(2,0);var o=a.getMinutes()+"",c=a.getSeconds()+"";return o=o.padStart(2,0),c=c.padStart(2,0),"nyrsf"==t?"".concat(n,"-").concat(l,"-").concat(i," ").concat(r,":").concat(o):"month"==t?"".concat(n,"-").concat(l):"nowtime"==t?"".concat(n,"-").concat(l,"-").concat(i," ").concat(r,":").concat(o,":").concat(c):t?"".concat(n,"-").concat(l,"-").concat(i):"".concat(n,"年-").concat(l,"月-").concat(i,"日 ").concat(r,":").concat(o,":").concat(c)}function l(e){var t=new Date(e),a=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return"".concat(a,"年").concat(n,"月").concat(l,"日")}function i(e){return e.replace(/(\d{4})年(\d{1,2})月(\d{1,2})日/,(function(e,t,a,n){return"".concat(t,"-").concat(a.padStart(2,"0"),"-").concat(n.padStart(2,"0"))}))}}}]);