chunk-b4bb6634.f2293030.js 12 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b4bb6634"],{"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,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,s,"next",t)}function s(t){n(a,o,i,c,s,"throw",t)}c(void 0)}))}}r.d(e,"a",(function(){return o}))},"96cf":function(t,e,r){t=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(r){s=function(t,e,r){return t[e]=r}}function u(t,r,n,o){var i,a,c,s;r=r&&r.prototype instanceof y?r:y,r=Object.create(r.prototype),o=new R(o||[]);return r._invoke=(i=t,a=n,c=o,s=h,function(t,r){if(s===p)throw new Error("Generator is already running");if(s===d){if("throw"===t)throw r;return j()}for(c.method=t,c.arg=r;;){var n=c.delegate;if(n){var o=function t(r,n){var o=r.iterator[n.method];if(o===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}o=l(o,r.iterator,n.arg);return"throw"===o.type?(n.method="throw",n.arg=o.arg,n.delegate=null,m):(o=o.arg,o?o.done?(n[r.resultName]=o.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m))}(n,c);if(o){if(o===m)continue;return o}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(s===h)throw s=d,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(s=p,o=l(i,a,c),"normal"===o.type){if(s=c.done?d:f,o.arg!==m)return{value:o.arg,done:c.done}}else"throw"===o.type&&(s=d,c.method="throw",c.arg=o.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=u;var h="suspendedStart",f="suspendedYield",p="executing",d="completed",m={};function y(){}function g(){}function v(){}var w={};w[i]=function(){return this},o=Object.getPrototypeOf,o=o&&o(o(_([]))),o&&o!==r&&n.call(o,i)&&(w=o);var b=v.prototype=y.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){var r;this._invoke=function(o,i){function a(){return new e((function(r,a){!function r(o,i,a,c){if(o=l(t[o],t,i),"throw"!==o.type){var s=o.arg;return(i=s.value)&&"object"==typeof i&&n.call(i,"__await")?e.resolve(i.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(i).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(o.arg)}(o,i,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 R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function _(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1;r=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return r.next=r}}return{next:j}}function j(){return{value:e,done:!0}}return((g.prototype=b.constructor=v).constructor=g).displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(L.prototype),L.prototype[a]=function(){return this},t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,c,"Generator"),b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e,r=[];for(e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n,o=r.completion;return"throw"===o.type&&(n=o.arg,E(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},de98:function(t,e,r){"use strict";r.r(e),r("96cf");var n,o,i,a=r("1da1"),c=r("1b62"),s=r("f5ed"),u=r("f121");c={name:"achievementTable",mixins:[s.a,c.a],data:function(){return{searchSize:"small",size:"mini",loading:!1,tableData:[{id:"11",url_path:"admin/performance",placeholder:"下单",httpType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",start:"",end:"",fileType:"xlsx",label:"项目客服业绩报表"},{id:"12",url_path:"admin/productTh",placeholder:"退货",httpType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",start:"",end:"",fileType:"xlsx",label:"产品部门退货数据报表"}]}},mounted:function(){},methods:{timeReturned:(i=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 i.apply(this,arguments)}),timeVerification:(o=Object(a.a)(regeneratorRuntime.mark((function t(e){var r,n,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.tableData[e],n=r.start,o=r.end,i=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&&""===o?{ok:!1,msg:"请选择时间区间!"}:""===n&&""!==o||""!==n&&""===o?{ok:!1,msg:i+"时间区间不完整!"}:{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 o.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 o,i,a,c,s,l,h,f,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.ok?(r.loading=!0,o=r.tableData[e],i=o.start,a=o.end,c=o.label,s=o.url_path,f=o.placeholder,l=o.httpType,h=o.fileType,f+="".concat(i,"至").concat(a),p="采销365平台-"+c+f,axios({method:"post",url:u.baseApi365+s,responseType:"blob",data:{start:i,end:a},headers:{Accept:l}}).then((function(t){var e,n;t&&200==t.status&&t.data?(n=new Blob([t.data],{type:l}),e=window.URL.createObjectURL(n),(n=document.createElement("a")).style.display="none",n.href=e,n.setAttribute("download","".concat(p,".").concat(h)),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(e),r.$message.success(p+"信息导出成功!")):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:"200px","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},f121:function(t,e,r){r=r("f1e0"),t.exports=r},f1e0:function(t,e){t.exports={title:"业绩达成报表",baseApi:"http://finance.sitw.wanyuhengtong.com/",baseApi365:"http://cxinv.api.caixiao365.com/",baseApi2:"http://inv.sitw.wanyuhengtong.com/",fileURL:"https://api2.edu.futurelab.tv",appId:"wx5ac3a2c2d72b6f26",ding:{CorpId:"dingc78fa4301e1a424a35c2f4657eb6378f",AgentId:"1184953963"}}},f5ed:function(t,e,r){"use strict";r("96cf");var n,o;r=r("1da1");e.a={methods:{handlePageChange:(o=Object(r.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.parmValue.page=e,t.next=3,this.searchList();case 3:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)}),handleSizeChange:(n=Object(r.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.parmValue.page=1,this.parmValue.size=e,t.next=4,this.searchList();case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}}}}]);