(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-681befa4"],{"1b62":function(t,e,r){"use strict";e.a={methods:{getHeight:function(){var t=document.body.offsetHeight;this.maxHeight=t-90+""}}}},"1da1":function(t,e,r){"use strict";function n(t,e,r,n,i,o,a){try{var c=t[o](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function c(t){n(a,i,o,c,u,"next",t)}function u(t){n(a,i,o,c,u,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return i}))},"55bd":function(t,e,r){"use strict";r.r(e),r("96cf");var n,i,o,a=r("1da1"),c=r("1b62"),u=r("f5ed"),s=r("f121");c={name:"achievementTable",mixins:[u.a,c.a],data:function(){return{searchSize:"small",size:"mini",loading:!1,tableData:[{id:"12",url_path:"Admin/jxreport",placeholder:"下单",start:"",end:"",label:"确认单绩效报表"},{id:"13",url_path:"Admin/jxthreport",placeholder:"退款",start:"",end:"",label:"确认单绩效退款报表"},{id:"14",url_path:"Admin/fhreport",placeholder:"发货",start:"",end:"",label:"采购单发货数据"}]}},mounted:function(){},methods:{timeReturned:(o=Object(a.a)(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.tableData[r].start=""!==e.startTime?e.startTime:"",this.tableData[r].end=""!==e.endtTime?e.endTime:"";case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)}),timeVerification:(i=Object(a.a)(regeneratorRuntime.mark((function t(e){var r,n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.tableData[e],n=r.start,i=r.end,o=r.placeholder,t.abrupt("return",new Promise(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(""===n&&""===i?{ok:!1,msg:"请选择时间区间!"}:""===n&&""!==i||""!==n&&""===i?{ok:!1,msg:o+"时间区间不完整!"}:{ok:!0,msg:"ok"});case 1:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)}),Export:(n=Object(a.a)(regeneratorRuntime.mark((function t(e){var r=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loading||this.timeVerification(e).then(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var i,o,a,c,u,l,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.ok?(r.loading=!0,l=r.tableData[e],i=l.start,o=l.end,a=l.label,c=l.url_path,l=l.placeholder,u="aplication/zip",l+="".concat(i,"至").concat(o),h="516平台-"+a+l,axios({method:"post",url:s.baseApi+c,responseType:"blob",data:{start:i,end:o},headers:{Accept:u}}).then((function(t){var e,n;t&&200==t.status&&t.data?(n=new Blob([t.data],{type:u}),e=window.URL.createObjectURL(n),(n=document.createElement("a")).style.display="none",n.href=e,n.setAttribute("download","".concat(h,".zip")),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e),r.$message.success(h+"信息导出成功!")):r.$message.error(t.data.message),setTimeout((function(){r.loading=!1}),500)})).catch((function(t){r.loading=!1}))):r.$message.warning(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}},r=r("2877"),c=Object(r.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{padding:"10vh 0 0 0",width:"100%","text-align":"center"}},[r("div",{staticStyle:{width:"700px",display:"inline-block","text-align":"left"}},t._l(t.tableData,(function(e,n){return r("el-row",{key:n,staticClass:"row-bg",staticStyle:{padding:"14px 0"},attrs:{type:"flex",justify:"space-around"}},[r("el-col",{staticStyle:{width:"180px","text-align":"right",padding:"0 20px 0 0"},attrs:{span:4}},[t._v(t._s(e.label))]),r("el-col",{staticStyle:{width:"350px"},attrs:{span:8}},[r("period-date-picker",{attrs:{start:e.start,end:e.end,type:1,width:"145px",placeholder:e.placeholder,size:"mini"},on:{timeReturned:function(e){return t.timeReturned(e,n)}}})],1),r("el-col",{staticStyle:{width:"200px"},attrs:{span:6}},[r("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"mini"},on:{click:function(e){return t.Export(n)}}},[t._v("导出")])],1)],1)})),1)])}),[],!1,null,null,null);e.default=c.exports},"96cf":function(t,e,r){t=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(r){u=function(t,e,r){return t[e]=r}}function s(t,r,n,i){var o,a,c,u;r=r&&r.prototype instanceof g?r:g,r=Object.create(r.prototype),i=new _(i||[]);return r._invoke=(o=t,a=n,c=i,u=h,function(t,r){if(u===p)throw new Error("Generator is already running");if(u===d){if("throw"===t)throw r;return R()}for(c.method=t,c.arg=r;;){var n=c.delegate;if(n){var i=function t(r,n){var i=r.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(r.iterator.return&&(n.method="return",n.arg=e,t(r,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}i=l(i,r.iterator,n.arg);return"throw"===i.type?(n.method="throw",n.arg=i.arg,n.delegate=null,m):(i=i.arg,i?i.done?(n[r.resultName]=i.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m))}(n,c);if(i){if(i===m)continue;return i}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(u===h)throw u=d,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(u=p,i=l(o,a,c),"normal"===i.type){if(u=c.done?d:f,i.arg!==m)return{value:i.arg,done:c.done}}else"throw"===i.type&&(u=d,c.method="throw",c.arg=i.arg)}}),r}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",m={};function g(){}function y(){}function v(){}var w={};w[o]=function(){return this},i=Object.getPrototypeOf,i=i&&i(i(j([]))),i&&i!==r&&n.call(i,o)&&(w=i);var b=v.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,c){if(i=l(t[i],t,o),"throw"!==i.type){var u=i.arg;return(o=u.value)&&"object"==typeof o&&n.call(o,"__await")?e.resolve(o.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(o).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(i.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1;r=function r(){for(;++i