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

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-47bdbe0b"],{"0afe":function(e,t,a){"use strict";a.r(t);a("cca6"),a("96cf");var n=a("1da1"),i=a("284b"),r={data:function(){return{fileuploadDialg:!1,tableData:[],sidebarMenu:["收票中","收票异常","收票完成"],isIndex:0,type:"",com:"",total:0,list:[],queryInfo:{selNo:"",status:1,pageSize:1,pageNum:10}}},created:function(){this.initTable()},methods:{upLoadFile:function(e){var t=this,a=e.target.files,n=new FormData;n.append("files",a[0]),n.append("type",this.type),n.append("com",this.com),this.$file.uploadFile(n,"api/manager/corInvoice/uploadReceive").then((function(a){200==a.status&&(e.target.value=[],t.$message.success("导入文件成功!"),t.fileuploadDialg=!1)})).catch((function(a){t.$message.error(a.message),e.target.value=[]}))},chooseFile:function(){this.$refs.upload.click()},initTable:function(){var e,t=this,a=Object.assign({},this.queryInfo);(e=a,i.a.request({url:"manager/corInvoice/page",method:"GET",params:e})).then((function(e){200==e.status&&(t.tableData=e.result.list,t.total=e.result.total)})).catch((function(e){t.$message.error(e.message)}))},InvoiceReceiveSearch:function(){this.initTable()},handleSizeChange:function(e){this.queryInfo.pageNum=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageSize=e,this.initTable()},selectionState:function(e){switch(this.queryInfo.pageSize=1,this.isIndex=e,this.isIndex){case 0:case 1:this.queryInfo.status=this.isIndex+2,this.initTable();break;case 2:this.queryInfo.status=this.isIndex-1,this.initTable()}},againMatch: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(0!=e.tableData.length){t.next=4;break}e.$message({message:"该页面没有可匹配发票",type:"warning"}),t.next=6;break;case 4:return t.next=6,a=e.tableData,i.a.request({url:"manager/corInvoice/reMatch",method:"PUT",data:a});case 6:case"end":return t.stop()}var a}),t)})))()},goElectronicInvoice:function(e){return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a=e.id,i.a.request({url:"manager/corInvoice/reVerify/".concat(a),method:"PUT"});case 2:t.sent;case 3:case"end":return t.stop()}var a}),t)})))()},deleteById:function(e){}}},o=(a("6b1b"),a("2877")),l=Object(o.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return"InvoiceReceiving"==e.$route.name?a("div",[a("SidebarList",{attrs:{sidebarMenu:e.sidebarMenu,isIndex:e.isIndex},on:{buttonClick:e.selectionState}}),a("div",{staticClass:"InvoiceReceivingMain"},[a("div",{staticClass:"search"},[a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.queryInfo.selNo,callback:function(t){e.$set(e.queryInfo,"selNo",t)},expression:"queryInfo.selNo"}}),a("el-button",{attrs:{size:"small"},on:{click:e.InvoiceReceiveSearch}},[e._v("搜索")])],1),a("div",{staticClass:"m-bottom-2 p-top-1 d-flex"},[a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:2!=e.isIndex&&1!==e.isIndex,expression:"isIndex != 2 && isIndex !== 1"}],attrs:{text:"导入发票",icon:"el-icon-download"},on:{buttonClick:function(t){e.fileuploadDialg=!e.fileuploadDialg}}}),a("FeesButton",{directives:[{name:"show",rawName:"v-show",value:0==e.isIndex,expression:"isIndex == 0"}],attrs:{text:"重新匹配",icon:"el-icon-download"},on:{buttonClick:e.againMatch}})],1),a("el-table",{key:e.isIndex,ref:"ruleForm",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[1==e.isIndex?a("el-table-column",{attrs:{label:"操作",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.goElectronicInvoice(t.row)}}},[e._v(" 重新验真 ")]),a("span",{staticClass:"link-text-color m-left-1 cursor c-red",on:{click:function(a){return e.deleteById(t.row)}}},[e._v(" 删除 ")])]}}],null,!1,3145075805)}):e._e(),a("el-table-column",{attrs:{prop:"dateOfReceipt",label:"收票日期","header-align":"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("timeFormat")(t.row.dateOfReceipt))+" ")]}}],null,!1,1511063443)}),a("el-table-column",{attrs:{label:"购买方","header-align":"center",width:"200",prop:"buyer"}}),a("el-table-column",{attrs:{prop:"invoiceType",label:"发票种类",width:"140","header-align":"center"}}),a("el-table-column",{attrs:{prop:"seller",label:"销售方",width:"220","header-align":"center"}}),a("el-table-column",{attrs:{prop:"invoiceCode",label:"发票代码","header-align":"center",width:"120"}}),a("el-table-column",{attrs:{prop:"invoiceNum",label:"发票号码",width:"100","header-align":"center"}}),a("el-table-column",{attrs:{prop:"invoiceDate",label:"发票日期",width:"150","header-align":"center"}}),a("el-table-column",{attrs:{prop:"amountMoney",label:"金额",width:"140","header-align":"center"}}),a("el-table-column",{attrs:{prop:"taxAmount",label:"税额",width:"140","header-align":"center"}}),a("el-table-column",{attrs:{prop:"totalAmount",label:"总金额",width:"140","header-align":"center"}}),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"80",align:"center","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(1==a.status?"收票完成":2==a.status?"收票中":"收票异常")+" ")]}}],null,!1,1106310988)})],1),a("div",{staticClass:"m-y-1"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.pageSize,"page-size":e.queryInfo.pageNum,"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,"pageSize",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"pageSize",t)}}})],1),a("el-dialog",{attrs:{title:"文件导入",visible:e.fileuploadDialg,width:"400px"},on:{"update:visible":function(t){e.fileuploadDialg=t}}},[a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("div",{staticClass:"upload",on:{click:e.chooseFile}},[a("i",{staticClass:"el-icon-upload"}),a("div",[e._v("点击上传文件")])])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("input",{ref:"upload",staticStyle:{display:"none"},attrs:{type:"file",name:"",multiple:""},on:{change:function(t){return e.upLoadFile(t)}}}),a("el-button",{on:{click:function(t){e.fileuploadDialg=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.chooseFile}},[e._v("选择文件")])],1)])],1)],1):e._e()}),[],!1,null,"3ec4d216",null);t.default=l.exports},"23d2":function(e,t,a){},"6b1b":function(e,t,a){"use strict";var n=a("23d2");a.n(n).a}}]);