1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-dda39280"],{"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}))},"2e3f":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:"22",url_path:"Admincx/jxreport",placeholder:"下单",start:"",end:"",label:"确认单绩效报表"},{id:"23",url_path:"Admincx/jxthreport",placeholder:"退款",start:"",end:"",label:"确认单绩效退款报表"},{id:"24",url_path:"Admincx/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="采销平台-"+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<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return r.next=r}}return{next:R}}function R(){return{value:e,done:!0}}return((y.prototype=b.constructor=v).constructor=y).displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(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,i,o){void 0===o&&(o=Promise);var a=new L(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),b[o]=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=j,_.prototype={constructor:_,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 i(n,i){return c.type="throw",c.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var a=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.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,i=r.completion;return"throw"===i.type&&(n=i.arg,E(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(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)}},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,i;r=r("1da1");e.a={methods:{handlePageChange:(i=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 i.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)})}}}}]);
|