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
6.1 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4be0ef0c"],{1838:function(t,e,a){"use strict";a.r(e);a("99af"),a("b64b"),a("cca6");var n=a("fa7d"),r=a("284b"),c={data:function(){return{queryInfo:{type:5,deductType:"",start:"",end:"",pageSize:10,pageNo:1,reportId:"",reportKey:"",readFlag:""},deductionStatusList:[{id:1,label:"发送抵扣"},{id:2,label:"确认抵扣"},{id:3,label:"抵扣失败"}],readList:[{id:1,label:"已识别"},{id:2,label:"识别错误"},{id:3,label:"未识别"}],tableData:[],tableKeys:[],ruleList:{invoiceType:"发票类型",invoiceNumber:"发票号码",invoiceCode:"发票代码",seller:"销售方",sellerCode:"销售方税号",buyer:"购买方",buyerCode:"购买方税号",invoiceDate:"发票日期",total:"不含税金额",tax:"税额",deTax:"抵扣税额",readFlagStr:"识别状态",invoiceStatus:"抵扣状态",reportId:"reportId",reportKey:"reportKey"},labelRule:{},total:0}},mixins:[a("1a86").a],created:function(){this.labelRule=this.ruleList,this.tableKeys=Object.keys(this.ruleList),this.defaultDateInit(),this.initTable()},components:{},computed:{},methods:{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),(t=a,r.a.request({url:"manager/report/deductions",method:"GET",params:t})).then((function(t){e.tableData=t.result.data,e.total=t.result.pagination.total}))},searchResult:function(){this.queryInfo.pageNo=1,this.initTable()},reset:function(){this.queryInfo={type:5,deductType:"",start:"",end:"",pageSize:10,pageNo:1,reportId:"",reportKey:"",readFlag:""}},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),this.queryInfo.end="".concat(a,"-").concat(t,"-01"),this.queryInfo.start="".concat(n,"-").concat(e,"-01")}}},i=(a("7d76"),a("2877")),o=Object(i.a)(c,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrapper"},[a("div",{staticClass:"bgc p-left-2"},[a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("div",{staticClass:"d-flex"},[a("div",{staticClass:"d-flex a-center j-center",staticStyle:{margin:"0 10px 0 28px"}},[t._v(" 日期始 ")]),a("el-date-picker",{staticClass:"selectDate",staticStyle:{width:"12.5rem !important","margin-right":"20px"},attrs:{type:"date",placeholder:"选择日期"},model:{value:t.queryInfo.start,callback:function(e){t.$set(t.queryInfo,"start",e)},expression:"queryInfo.start"}})],1),a("div",{staticClass:"d-flex"},[a("div",{staticClass:"d-flex a-center j-center",staticStyle:{"margin-right":"10px"}},[t._v(" 日期止 ")]),a("el-date-picker",{staticClass:"selectDate",staticStyle:{width:"12.5rem !important"},attrs:{type:"date",placeholder:"选择日期"},model:{value:t.queryInfo.end,callback:function(e){t.$set(t.queryInfo,"end",e)},expression:"queryInfo.end"}})],1),a("OptionsSelect",{attrs:{defaultValue:t.queryInfo.deductType,fieldName:"deductType",field:"queryInfo",labelValue:"抵扣状态",options:t.deductionStatusList,width:"200","label-width":"100"}}),a("FeesInput",{attrs:{santakLabel:"报告Key",fieldName:"reportKey",field:"queryInfo",defaultValue:t.queryInfo.reportKey}})],1),a("div",{staticClass:"d-flex a-center m-bottom-1"},[a("FeesInput",{attrs:{santakLabel:"报告Id",fieldName:"reportId",field:"queryInfo",defaultValue:t.queryInfo.reportId}}),a("OptionsSelect",{attrs:{defaultValue:t.queryInfo.readFlag,fieldName:"readFlag",field:"queryInfo",labelValue:"识别状态",options:t.readList,width:"200","label-width":"100"}}),a("div",{staticClass:"d-flex",staticStyle:{"margin-left":"20px"}},[a("FeesButton",{attrs:{text:"搜索",icon:"el-icon-search"},on:{buttonClick:t.searchResult}}),a("FeesButton",{attrs:{text:"重置",icon:"el-icon-refresh"},on:{buttonClick:t.reset}})],1)],1)]),a("div",{staticClass:"bg-fff p-left-2",staticStyle:{"min-height":"500px"}},[a("div",{staticStyle:{"margin-top":"15px"}},[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,"4da63e06",null);e.default=o.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}}}},6306:function(t,e,a){},"7d76":function(t,e,a){"use strict";var n=a("6306");a.n(n).a},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 c}));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 c=a.getDate()+"";c=c.padStart(2,0);var i=a.getHours()+"";i=i.padStart(2,0);var o=a.getMinutes()+"",l=a.getSeconds()+"";return o=o.padStart(2,0),l=l.padStart(2,0),"nyrsf"==e?"".concat(n,"-").concat(r,"-").concat(c," ").concat(i,":").concat(o):"month"==e?"".concat(n,"-").concat(r):"nowtime"==e?"".concat(n,"-").concat(r,"-").concat(c," ").concat(i,":").concat(o,":").concat(l):e?"".concat(n,"-").concat(r,"-").concat(c):"".concat(n,"年-").concat(r,"月-").concat(c,"日 ").concat(i,":").concat(o,":").concat(l)}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 c(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"))}))}}}]);