(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22bf72"],{f0e7:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-button",{attrs:{type:"primary"},on:{click:e.toExport}},[e._v("导出")])],1)},r=[],c=(n("ac6a"),n("456d"),n("96cf"),n("1da1")),i=n("b775");function s(){return Object(i["a"])({url:"/data/get_info",method:"get"})}var o={"订单编号":"","寄件人":"大卫博士","联系方式":"4006867733","发件人详细地址":"河南省郑州市经开区","下单人昵称":"","下单人姓名":"","下单人手机号":"","收件人":"","电话":"","收件人省":"","收件人市":"","收件人区":"","收件人街道地址":"",L:"",XL:"",XXL:"",XXXL:"","女M":"","女L":"","女XL":"","女XXL":"","5XL":"","备注":""},u={name:"ExportExpressIndex",data:function(){return{expressData:{}}},methods:{toExport:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s().then((function(e){if(200===e.code){t.expressData=e.data;var a=t.getExportModule();Promise.all([n.e("chunk-5bdd67a2"),n.e("chunk-2c21b5a5")]).then(n.bind(null,"4bf8d")).then((function(e){e.export_json_to_excel({header:Object.keys(o),data:a.map((function(e){return Object.keys(a[0]).map((function(t){return e[t]}))})),filename:"快递单导出",bookType:"xlsx",isCSV:!0})}))}else t.$message.error(e.message)}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),getExportModule:function(){var e=this.expressData,t=[];for(var n in e){var a=e[n],r=a.data,c=0,i=0,s=0,u=0;while(c<a["精装"].length){var m=Object.assign({},o);m["订单编号"]=n,m["下单人昵称"]=r.u_nickname,m["下单人姓名"]=r.u_name,m["下单人手机号"]=r.u_mobile,m["收件人"]=r.username,m["电话"]=r.mobile,m["收件人省"]=r.province,m["收件人市"]=r.city,m["收件人区"]=r.town,m["收件人街道地址"]=r.address,m["备注"]=r.remark,"3XL"===a["精装"][c].size&&(a["精装"][c].size="XXXL"),"男款"===a["精装"][c].sec_attr&&(m[a["精装"][c].size]="".concat(a["精装"][c].num).concat(a["精装"][c].main_attr)),"女款"===a["精装"][c].sec_attr&&(m["女"+a["精装"][c].size]="".concat(a["精装"][c].num).concat(a["精装"][c].main_attr)),t.push(m),c++}while(i<a["普通"].length){var l=Object.assign({},o);l["订单编号"]=n,l["下单人昵称"]=r.u_nickname,l["下单人姓名"]=r.u_name,l["下单人手机号"]=r.u_mobile,l["收件人"]=r.username,l["电话"]=r.mobile,l["收件人省"]=r.province,l["收件人市"]=r.city,l["收件人区"]=r.town,l["收件人街道地址"]=r.address,l["备注"]=r.remark,"3XL"===a["普通"][i].size&&(a["普通"][i].size="XXXL"),"男款"===a["普通"][i].sec_attr&&(l[a["普通"][i].size]="".concat(a["普通"][i].num).concat(a["普通"][i].main_attr)),"女款"===a["普通"][i].sec_attr&&(l["女"+a["普通"][i].size]="".concat(a["普通"][i].num).concat(a["普通"][i].main_attr)),t.push(l),i++}while(s<a["精装混合"].length){var _=Object.assign({},o);_["订单编号"]=n,_["下单人昵称"]=r.u_nickname,_["下单人姓名"]=r.u_name,_["下单人手机号"]=r.u_mobile,_["收件人"]=r.username,_["电话"]=r.mobile,_["收件人省"]=r.province,_["收件人市"]=r.city,_["收件人区"]=r.town,_["收件人街道地址"]=r.address,_["备注"]=r.remark;for(var p=0;p<a["精装混合"][s].length;p++)"3XL"===a["精装混合"][s][p].size?"男款"===a["精装混合"][s][p].sec_attr&&(_["XXXL"]+="".concat(a["精装混合"][s][p].num).concat(a["精装混合"][s][p].main_attr)):("男款"===a["精装混合"][s][p].sec_attr&&(_[a["精装混合"][s][p].size]+="".concat(a["精装混合"][s][p].num).concat(a["精装混合"][s][p].main_attr)),"女款"===a["精装混合"][s][p].sec_attr&&(_["女"+a["精装混合"][s][p].size]+="".concat(a["精装混合"][s][p].num).concat(a["精装混合"][s][p].main_attr)));t.push(_),s++}while(u<a["普通混合"].length){var d=Object.assign({},o);d["订单编号"]=n,d["下单人昵称"]=r.u_nickname,d["下单人姓名"]=r.u_name,d["下单人手机号"]=r.u_mobile,d["收件人"]=r.username,d["电话"]=r.mobile,d["收件人省"]=r.province,d["收件人市"]=r.city,d["收件人区"]=r.town,d["收件人街道地址"]=r.address,d["备注"]=r.remark;for(var h=0;h<a["普通混合"][u].length;h++)"3XL"===a["普通混合"][u][h].size?"男款"===a["普通混合"][u][h].sec_attr&&(d["XXXL"]+="".concat(a["普通混合"][u][h].num).concat(a["普通混合"][u][h].main_attr)):("男款"===a["普通混合"][u][h].sec_attr&&(d[a["普通混合"][u][h].size]+="".concat(a["普通混合"][u][h].num).concat(a["普通混合"][u][h].main_attr)),"女款"===a["普通混合"][u][h].sec_attr&&(d["女"+a["普通混合"][u][h].size]+="".concat(a["普通混合"][u][h].num).concat(a["普通混合"][u][h].main_attr)));t.push(d),u++}}return t}}},m=u,l=n("2877"),_=Object(l["a"])(m,a,r,!1,null,null,null);t["default"]=_.exports}}]);