(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21750558"],{"104a":function(e,t,a){"use strict";a("f252")},"6c34":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",[a("Upload",{staticStyle:{float:"left","margin-right":"30px"},attrs:{action:"","before-upload":function(t){return e.parseExcl(t,"biz")},accept:".xls, .xlsx"}},[a("Button",{attrs:{size:"large",icon:"ios-cloud-upload-outline",loading:e.parseBizExclLoading}},[e._v("腾讯云商机导入")])],1),a("Upload",{attrs:{action:"","before-upload":function(t){return e.parseExcl(t,"order")},accept:".xls, .xlsx"}},[a("Button",{attrs:{size:"large",icon:"ios-cloud-upload-outline",loading:e.parseOrderExclLoading}},[e._v("腾讯云订单导入")])],1)],1),a("div",{staticClass:"content"},[a("div",[e._v("search")]),a("Divider"),a("div",{staticClass:"export-excl"},[a("Button",{attrs:{type:"primary"}},[e._v("导入企服通")])],1),a("div",{staticClass:"list-table"},[a("Table",{attrs:{border:"",loading:e.tableLoading,columns:e.columns,data:e.listData,height:"600"}})],1),a("div",{staticClass:"list-page"},[a("Page",{attrs:{current:e.pageNum,total:e.listTotal,"show-total":"","show-sizer":""},on:{"on-change":e.pageNumChange,"on-page-size-change":e.pageSizeChange}})],1)],1)])},r=[],i=(a("a450"),a("fc02"),a("6a61"),a("ed32")),s=(a("caaf"),a("0a21")),o={name:"flowimport",components:{},computed:{},data:function(){return{columns:[],listData:[],listTotal:0,pageSize:10,pageNum:1,tableLoading:!1,parseBizExclLoading:!1,parseOrderExclLoading:!1,type:""}},methods:{initData:function(){},initColumns:function(){switch(this.infoListSearch.listType){case"biz":this.columns=[{title:"渠道",key:"number",align:"center"}];break;case"order":this.columns=[];break}},screenSubmit:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.pageNum=1,this.initColumns();case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),pageNumChange:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.pageNum=t;case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),pageSizeChange:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.pageSize=t;case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),parseExcl:function(e,t){var a=e.name.split(".").pop().toLocaleLowerCase();return"xlsx"===a||"xls"===a?this.readFile(e):this.$Notice.warning({title:"文件类型错误",desc:"文件："+e.name+"不是EXCEL文件，请选择后缀为.xlsx或者.xls的EXCEL文件。"}),!1},readFile:function(e,t){var a=this,n=new FileReader;n.readAsArrayBuffer(e),n.onloadstart=function(e){a.parseExclLoading=!0},n.onerror=function(e){a.$Message.error("文件读取出错"),a.parseExclLoading=!1},n.onload=function(e){var t=e.target.result,a=s["a"].read(t,"array",(function(e){delete e.A1,delete e.A2,delete e.A3})),n=a.results;console.log(n)}}},created:function(){this.initData()}},c=o,l=(a("104a"),a("5d22")),u=Object(l["a"])(c,n,r,!1,null,null,null);t["default"]=u.exports},f252:function(e,t,a){}}]);