You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
7.2 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2ae077bb"],{"12a3":function(t,e,a){"use strict";a.r(e);a("99af"),a("b64b"),a("ac1f"),a("5319"),a("cca6");var n=a("fa7d"),i=a("1a86"),r=a("284b"),c={name:"DeductionList",mixins:[i.a],data:function(){return{queryInfo:{type:1,deductType:1,start:"",end:"",pageSize:10,pageNo:1,reportId:""},tableData:[],tableKeys:[],ruleList:[{invoiceType:"发票类型",invoiceNumber:"发票号码",invoiceCode:"发票代码",seller:"销售方",sellerCode:"销售方税号",buyer:"购买方",buyerCode:"购买方税号",invoiceDate:"发票日期",total:"不含税金额",tax:"税额",deTax:"抵扣税额",invoiceStatus:"抵扣状态",reportId:"reportId"},{invoiceType:"发票类型",invoiceNumber:"发票号码",passenger:"乘客",seatType:"座位等级",startStation:"到达站",endStation:"出发站",invoiceDate:"日期",total:"总额",deTax:"抵扣税额",invoiceStatus:"抵扣状态",reportId:"reportId"},{ticketCodeStr:"消费类型",number:"发票号码",code:"发票代码",seller:"销售方",sellerNo:"销售方税号",buyer:"购买方",buyerNo:"购买方税号",date:"发票日期",total:"总额",tax:"税额",invoiceStatus:"抵扣状态",statusStr:"发票状态"}],labelRule:{},invoiceTypeList:[{id:1,label:"增值税专用票"},{id:3,label:"网约车"},{id:2,label:"火车票"},{id:4,label:"供应商发票"}],deductionStatusList:[{id:1,label:"发送抵扣"},{id:2,label:"确认抵扣"},{id:3,label:"抵扣失败"}]}},methods:{exportSearch:function(){var t=Object.assign({},this.queryInfo),e="/api";e=e.replace("/",""),this.$file.downloadFile(e+"/manager/report/deductions/export",t,"export")},initTable:function(){var t,e=this,a=Object.assign({},this.queryInfo);a.start=Object(n.c)(a.start,!0),a.end=Object(n.c)(a.end,!0),1==a.type?(this.labelRule=this.ruleList[0],this.tableKeys=Object.keys(this.ruleList[0])):2==a.type?(this.labelRule=this.ruleList[1],this.tableKeys=Object.keys(this.ruleList[1])):3==a.type?(this.labelRule=this.ruleList[0],this.tableKeys=Object.keys(this.ruleList[0])):4==a.type&&(this.labelRule=this.ruleList[2],this.tableKeys=Object.keys(this.ruleList[2])),(t=a,r.a.request({url:"manager/report/deductions",method:"GET",params:t})).then((function(t){200==t.status&&(e.tableData=t.result.data,e.total=t.result.pagination.total)})).catch((function(t){e.$message.error(t)}))},reset:function(){var t=this.queryInfo,e=t.pageSize,a=t.pageNo;this.queryInfo={type:1,start:"",end:"",pageSize:e,pageNo:a,reportId:""}},defaultDateInit:function(){var t=(new Date).getMonth()+1,e=(new Date).getMonth(),a=(new Date).getFullYear(),n=(new Date).getFullYear();1==t&&(n-=1,e=12),t<10&&(t="0"+t),e<10&&(e="0"+e),this.queryInfo.end="".concat(a,"-").concat(t,"-01"),this.queryInfo.start="".concat(n,"-").concat(e,"-01")}},mounted:function(){this.defaultDateInit(),this.initTable()},computed:{}},o=(a("235a"),a("2877")),s=Object(o.a)(c,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"DeductionList"},[a("div",{staticClass:"bgc p-left-2"},[a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("div",{staticClass:"d-flex",staticStyle:{width:"16%"}},[a("div",{staticClass:"d-flex a-center j-center",staticStyle:{width:"6.25rem","text-align":"right"}},[t._v(" 日期始 ")]),a("el-date-picker",{staticClass:"selectDate",staticStyle:{width:"10.5rem !important"},attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:t.queryInfo.start,callback:function(e){t.$set(t.queryInfo,"start",e)},expression:"queryInfo.start"}})],1),a("div",{staticClass:"d-flex",staticStyle:{width:"16%"}},[a("div",{staticClass:"d-flex a-center j-center",staticStyle:{width:"6.25rem","text-align":"right"}},[t._v(" 日期止 ")]),a("el-date-picker",{staticClass:"selectDate",staticStyle:{width:"10.5rem !important"},attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:t.queryInfo.end,callback:function(e){t.$set(t.queryInfo,"end",e)},expression:"queryInfo.end"}})],1),a("FeesInput",{attrs:{santakLabel:"报告Id",fieldName:"reportId",field:"queryInfo",width:"300","label-width":"100",defaultValue:t.queryInfo.reportId}}),a("OptionsSelect",{attrs:{defaultValue:t.queryInfo.deductType,fieldName:"deductType",field:"queryInfo",labelValue:"抵扣状态",options:t.deductionStatusList,width:"200","label-width":"100"}}),a("OptionsSelect",{attrs:{defaultValue:t.queryInfo.type,fieldName:"type",field:"queryInfo",labelValue:"发票类型",options:t.invoiceTypeList,width:"200","label-width":"100"}}),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"}})],1)],1)]),a("div",{staticClass:"bg-fff p-left-2",staticStyle:{"min-height":"500px"}},[a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"},[a("FeesButton",{attrs:{text:"导出搜索",icon:"el-icon-download"},on:{buttonClick:t.exportSearch}}),a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:t.searchClick}})],1),a("div",{},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),t._l(t.tableKeys,(function(e,n){return a("el-table-column",{key:n,attrs:{prop:e,label:t.labelRule[e]}})}))],2)],1),a("div",{staticClass:"m-top-4"},[a("el-pagination",{attrs:{background:"","current-page":t.queryInfo.pageNo,"page-size":t.queryInfo.pageSize,"page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:t.total},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,"db222b7a",null);e.default=s.exports},"1a86":function(t,e,a){"use strict";e.a={data:function(){return{isSearch:!1,total:null}},created:function(){},methods:{handleSizeChange:function(t){this.queryInfo.pageSize=t,this.initTable()},handleCurrentChange:function(t){this.queryInfo.pageNum=t,this.initTable()},searchClick:function(){this.isSearch=!this.isSearch}}}},"235a":function(t,e,a){"use strict";var n=a("646d");a.n(n).a},"646d":function(t,e,a){},fa7d:function(t,e,a){"use strict";a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return r}));a("99af"),a("ac1f"),a("4d90"),a("5319");function n(t,e){if(""==t||!t)return"";var a=new Date(t),n=a.getFullYear(),i=a.getMonth()+1+"";i=i.padStart(2,0);var r=a.getDate()+"";r=r.padStart(2,0);var c=a.getHours()+"";c=c.padStart(2,0);var o=a.getMinutes()+"",s=a.getSeconds()+"";return o=o.padStart(2,0),s=s.padStart(2,0),"nyrsf"==e?"".concat(n,"-").concat(i,"-").concat(r," ").concat(c,":").concat(o):"month"==e?"".concat(n,"-").concat(i):"nowtime"==e?"".concat(n,"-").concat(i,"-").concat(r," ").concat(c,":").concat(o,":").concat(s):e?"".concat(n,"-").concat(i,"-").concat(r):"".concat(n,"年-").concat(i,"月-").concat(r,"日 ").concat(c,":").concat(o,":").concat(s)}function i(t){var e=new Date(t),a=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0");return"".concat(a,"年").concat(n,"月").concat(i,"日")}function r(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"))}))}}}]);