chunk-14545ee5.4e4af633.js 37 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-14545ee5"],{"060a":function(t,e,i){t.exports=i.p+"system_static/img/no_tk.401d40f4.png"},"076f":function(t,e,i){},"129f":function(t,e,i){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"151e":function(t,e,i){i("da14")},"468b":function(t,e,i){t.exports=i.p+"system_static/img/no_all.174e30c0.png"},"5f70":function(t,e,i){t.exports=i.p+"system_static/img/no_fh.977a0fb8.png"},"6db4":function(t,e,i){function n(t,e,i){document.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){document.addEventListener?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return t(e={exports:{}},e.exports),e.exports}function a(){var t={},e=0,i=0,n=0;return{add:function(o,r){r||(r=o,o=0),i<o?i=o:o<n&&(n=o),t[o]||(t[o]=[]),t[o].push(r),e++},process:function(){for(var e=n;e<=i;e++)for(var o=t[e],r=0;r<o.length;r++)(0,o[r])()},size:function(){return e}}}function c(t){return t[x]}function l(t){return Array.isArray(t)||void 0!==t.length}function d(t){var e;return Array.isArray(t)?t:(e=[],z(t,(function(t){e.push(t)})),e)}function h(t){return t&&1===t.nodeType}function u(t,e,i){return t=t[e],null!=t||void 0===i?t:i}function f(t){var e=Date.now();return function(i){if((t||14)<i-e)return e=i,!0}}function p(t,e,i){function n(){var l=(new Date).getTime()-a;l<e&&0<=l?o=setTimeout(n,e-l):(o=null,i||(c=t.apply(s,r),o)||(s=r=null))}var o,r,s,a,c;return function(){s=this,r=arguments,a=(new Date).getTime();var l=i&&!o;return o=o||setTimeout(n,e),l&&(c=t.apply(s,r),s=r=null),c}}function g(t){function e(){for(l=!0;c.size();){var t=c;c=a(),t.process()}l=!1}function i(){s=setTimeout(e,0)}var n=(t=t||{}).reporter,o=_.getOption(t,"async",!0),r=_.getOption(t,"auto",!0);r&&!o&&(n&&n.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),o=!0);var s,c=a(),l=!1;return{add:function(t,e){!l&&r&&o&&0===c.size()&&i(),c.add(t,e)},force:function(t){l||(void 0===t&&(t=o),s&&(clearTimeout(s),s=null),(t?i:e)())}}}function m(t){function e(t){return o(t).object}var i=(t=t||{}).reporter,n=t.batchProcessor,o=t.stateHandler.getState;if(i)return{makeDetectable:function(t,e,r){function s(){function t(){var t;"static"===h.position&&(a.style.position="relative",(t=function(t,e,i,n){i=i[n],"auto"!==i&&"0"!==i.replace(/[^-\d\.]/g,"")&&(t.warn("An element that is positioned static has style."+n+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",e),e.style[n]=0)})(i,a,h,"top"),t(i,a,h,"right"),t(i,a,h,"bottom"),t(i,a,h,"left"))}""!==h.position&&(t(),d=!0);var e=document.createElement("object");e.style.cssText=l,e.tabIndex=-1,e.type="text/html",e.onload=function(){d||t(),function t(e,i){e.contentDocument?i(e.contentDocument):setTimeout((function(){t(e,i)}),100)}(this,(function(t){c(a)}))},S.isIE()||(e.data="about:blank"),a.appendChild(e),o(a).object=e,S.isIE()&&(e.data="about:blank")}var a,c,l,d,h;r||(r=e,e=t,t=null),t=t||{},S.isIE(8)?r(e):(a=e,c=r,d=!(l="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;"),h=window.getComputedStyle(a),t=a.offsetWidth,e=a.offsetHeight,o(a).startSize={width:t,height:e},n?n.add(s):s())},addListener:function(t,i){function n(){i(t)}if(!e(t))throw new Error("Element is not detectable by this strategy.");S.isIE(8)?(o(t).object={proxy:n},t.attachEvent("onresize",n)):e(t).contentDocument.defaultView.addEventListener("resize",n)},uninstall:function(t){S.isIE(8)?t.detachEvent("onresize",o(t).object.proxy):t.removeChild(e(t)),delete o(t).object}};throw new Error("Missing required dependency: reporter.")}function v(t){function e(t,e,i){if(t.addEventListener)t.addEventListener(e,i);else{if(!t.attachEvent)return d.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,i)}}function i(t,e,i){if(t.removeEventListener)t.removeEventListener(e,i);else{if(!t.detachEvent)return d.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,i)}}function n(t){return u(t).container.childNodes[0].childNodes[0].childNodes[0]}function o(t){return u(t).container.childNodes[0].childNodes[0].childNodes[1]}var r,s,a,c,l,d=(t=t||{}).reporter,h=t.batchProcessor,u=t.stateHandler.getState,f=t.idHandler;if(!h)throw new Error("Missing required dependency: batchProcessor");if(d)return(t=document.createElement("div")).style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;",(a=document.createElement("div")).style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",a.appendChild(t),document.body.insertBefore(a,document.body.firstChild),t=500-a.clientWidth,c=500-a.clientHeight,document.body.removeChild(a),r={width:t,height:c},a="erd_scroll_detection_scrollbar_style",t=s="erd_scroll_detection_container",document.getElementById(a)||(t="/* Created by the element-resize-detector library. */\n."+t+" > div::-webkit-scrollbar { display: none; }\n\n."+t+"_animation_active { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+(t+="_animation")+"; animation-name: "+t+"; }\n@-webkit-keyframes "+t+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n@keyframes "+t+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",c=function(t){document.head.appendChild(t)},(l=document.createElement("style")).innerHTML=t,l.id=a,c(l)),{makeDetectable:function(t,i,a){function c(){if(t.debug){var e=Array.prototype.slice.call(arguments);if(e.unshift(f.get(i),"Scroll: "),d.log.apply)d.log.apply(null,e);else for(var n=0;n<e.length;n++)d.log(e[n])}}function l(t){return t=u(t).container.childNodes[0],t=getComputedStyle(t),!t.width||-1===t.width.indexOf("px")}function p(){var t=getComputedStyle(i),e={};return e.position=t.position,e.width=i.offsetWidth,e.height=i.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function g(){var t;c("storeStyle invoked."),u(i)?(t=p(),u(i).style=t):c("Aborting because element has been uninstalled")}function m(t,e,i){u(t).lastWidth=e,u(t).lastHeight=i}function v(){return 2*r.width+1}function b(){return 2*r.height+1}function y(t){return t+10+v()}function w(t){return t+10+b()}function S(t,e,i){var r=n(t),s=(t=o(t),y(e)),a=w(i);e=2*e+v(),i=2*i+b();r.scrollLeft=s,r.scrollTop=a,t.scrollLeft=e,t.scrollTop=i}function _(){var t,n=u(i).container;return n||((n=document.createElement("div")).className=s,n.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",(u(i).container=n).className+=" "+s+"_animation_active",i.appendChild(n),e(n,"animationstart",t=function(){u(i).onRendered&&u(i).onRendered()}),u(i).onAnimationStart=t),n}function x(){function t(){u(i).onExpand&&u(i).onExpand()}function n(){u(i).onShrink&&u(i).onShrink()}var o,a,l,h,f,p,g,m;c("Injecting elements"),u(i)?("static"===(m=u(i).style).position&&(i.style.position="relative",(g=function(t,e,i,n){i=i[n],"auto"!==i&&"0"!==i.replace(/[^-\d\.]/g,"")&&(t.warn("An element that is positioned static has style."+n+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+n+" will be set to 0. Element: ",e),e.style[n]=0)})(d,i,m,"top"),g(d,i,m,"right"),g(d,i,m,"bottom"),g(d,i,m,"left")),g=(g=u(i).container)||_(),p="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; left: "+((f=-(1+(m=r.width)))?f+"px":"0")+"; top: "+((p=-(1+(f=r.height)))?p+"px":"0")+"; right: "+((p=-m)?p+"px":"0")+"; bottom: "+((m=-f)?m+"px":"0")+";",f=document.createElement("div"),m=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),h=document.createElement("div"),f.dir="ltr",f.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",f.className=s,m.className=s,m.style.cssText=p,o.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",a.style.cssText="position: absolute; left: 0; top: 0;",l.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",h.style.cssText="position: absolute; width: 200%; height: 200%;",o.appendChild(a),l.appendChild(h),m.appendChild(o),m.appendChild(l),f.appendChild(m),g.appendChild(f),e(o,"scroll",t),e(l,"scroll",n),u(i).onExpandScroll=t,u(i).onShrinkScroll=n):c("Aborting because element has been uninstalled")}function k(){function e(t,e,i){t=n(t).childNodes[0],e=y(e),i=w(i),t.style.width=e+"px",t.style.height=i+"px"}function r(n){var o=i.offsetWidth,r=i.offsetHeight;c("Storing current size",o,r),m(i,o,r),h.add(0,(function(){var n,a;u(i)?s()?(t.debug&&(n=i.offsetWidth,a=i.offsetHeight,n===o&&a===r||d.warn(f.get(i),"Scroll: Size changed before updating detector elements.")),e(i,o,r)):c("Aborting because element container has not been initialized"):c("Aborting because element has been uninstalled")})),h.add(1,(function(){u(i)?s()?S(i,o,r):c("Aborting because element container has not been initialized"):c("Aborting because element has been uninstalled")})),n&&h.add(2,(function(){u(i)?s()?n():c("Aborting because element container has not been initialized"):c("Aborting because element has been uninstalled")}))}function s(){return u(i).container}function a(){c("notifyListenersIfNeeded invoked");var t=u(i);return void 0===u(i).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?c("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?c("Not notifying: Size already notified"):(c("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void C(u(i).listeners,(function(t){t(i)})))}function p(){var t,e;c("Scroll detected."),l(i)?c("Scroll event fired while unrendered. Ignoring..."):(t=i.offsetWidth,e=i.offsetHeight,t!==i.lastWidth||e!==i.lastHeight?(c("Element size changed."),r(a)):c("Element size has not changed ("+t+"x"+e+")."))}var g;c("registerListenersAndPositionElements invoked."),u(i)?(u(i).onRendered=function(){var t,e;c("startanimation triggered."),l(i)?c("Ignoring since element is still unrendered..."):(c("Element rendered."),t=n(i),e=o(i),0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(c("Scrollbars out of sync. Updating detector elements..."),r(a)))},u(i).onExpand=p,u(i).onShrink=p,g=u(i).style,e(i,g.width,g.height)):c("Aborting because element has been uninstalled")}function z(){var t;c("finalizeDomMutation invoked."),u(i)?(t=u(i).style,m(i,t.width,t.height),S(i,t.width,t.height)):c("Aborting because element has been uninstalled")}function E(){a(i)}function L(){var t;c("Installing..."),u(i).listeners=[],t=p(),u(i).startSize={width:t.width,height:t.height},c("Element start size",u(i).startSize),h.add(0,g),h.add(1,x),h.add(2,k),h.add(3,z),h.add(4,E)}var $,I;a||(a=i,i=t,t=null),t=t||{},c("Making detectable..."),(I=$=i)!==I.ownerDocument.body&&!I.ownerDocument.body.contains(I)||null===getComputedStyle($)?(c("Element is detached"),_(),c("Waiting until element is attached..."),u(i).onRendered=function(){c("Element is now attached"),L()}):L()},addListener:function(t,e){if(!u(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");u(t).listeners.push(e)},uninstall:function(t){var e=u(t);e&&(e.onExpandScroll&&i(n(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&i(o(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&i(e.container,"animationstart",e.onAnimationStart),e.container)&&t.removeChild(e.container)}};throw new Error("Missing required dependency: reporter.")}function b(t){e=(t=t||{}).idHandler?{get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set}:(o=1,i=(r={idGenerator:{generate:function(){return o++}},stateHandler:k}).idGenerator,n=r.stateHandler.getState,{get:function(t){return t=n(t),t&&void 0!==t.id?t.id:null},set:function(t){var e;t=n(t);if(t)return e=i.generate(),t.id=e;throw new Error("setId required the element to have a resize detection state.")}});var e,i,n,o,r,s=t.reporter;function a(){}s||(!(c=!(r={log:a,warn:a,error:a})===s)&&window.console&&((c=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var i=0;i<arguments.length;i++)t(arguments[i])}})(r,"log"),c(r,"warn"),c(r,"error")),s=r);var c=u(t,"batchProcessor",g({reporter:s})),f={};f.callOnAdd=!!u(t,"callOnAdd",!0),f.debug=!!u(t,"debug",!1),y=e,w={};var p,b,y,w,_={get:L,add:function(t,e){t=y.get(t),w[t]||(w[t]=[]),w[t].push(e)},removeListener:function(t,e){for(var i=L(t),n=0,o=i.length;n<o;++n)if(i[n]===e){i.splice(n,1);break}},removeAllListeners:function(t){t=L(t),t&&(t.length=0)}},x=(b={stateHandler:k}.stateHandler.getState,{isDetectable:function(t){return t=b(t),t&&!!t.isDetectable},markAsDetectable:function(t){b(t).isDetectable=!0},isBusy:function(t){return!!b(t).busy},markBusy:function(t,e){b(t).busy=!!e}}),C=u(t,"strategy","object"),E={reporter:s,batchProcessor:c,stateHandler:k,idHandler:e};function L(t){return t=y.get(t),void 0!==t&&w[t]||[]}if("scroll"===C&&(S.isLegacyOpera()?(s.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),C="object"):S.isIE(9)&&(s.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),C="object")),"scroll"===C)p=v(E);else{if("object"!==C)throw new Error("Invalid strategy name: "+C);p=m(E)}var $={};return{listenTo:function(t,i,n){function o(t){var e=_.get(t);z(e,(function(e){e(t)}))}function r(t,e,i){_.add(e,i),t&&i(e)}if(n||(n=i,i=t,t={}),!i)throw new Error("At least one element required.");if(!n)throw new Error("Listener required.");if(h(i))i=[i];else{if(!l(i))return s.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");i=d(i)}var a=0,c=u(t,"callOnAdd",f.callOnAdd),g=u(t,"onReady",(function(){})),m=u(t,"debug",f.debug);z(i,(function(t){k.getState(t)||(k.initState(t),e.set(t));var l=e.get(t);if(m&&s.log("Attaching listener to element",l,t),!x.isDetectable(t))return m&&s.log(l,"Not detectable."),x.isBusy(t)?(m&&s.log(l,"System busy making it detectable"),r(c,t,n),$[l]=$[l]||[],void $[l].push((function(){++a===i.length&&g()}))):(m&&s.log(l,"Making detectable..."),x.markBusy(t,!0),p.makeDetectable({debug:m},t,(function(t){var e,d;m&&s.log(l,"onElementDetectable"),k.getState(t)?(x.markAsDetectable(t),x.markBusy(t,!1),p.addListener(t,o),r(c,t,n),(e=k.getState(t))&&e.startSize&&(d=t.offsetWidth,e.startSize.width===d&&e.startSize.height===t.offsetHeight||o(t)),$[l]&&z($[l],(function(t){t()}))):m&&s.log(l,"Element uninstalled before being detectable."),delete $[l],++a===i.length&&g()})));m&&s.log(l,"Already detecable, adding listener."),r(c,t,n),a++})),a===i.length&&g()},removeListener:_.removeListener,removeAllListeners:_.removeAllListeners,uninstall:function(t){if(!t)return s.error("At least one element is required.");if(h(t))t=[t];else{if(!l(t))return s.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=d(t)}z(t,(function(t){_.removeAllListeners(t),p.uninstall(t),k.cleanState(t)}))}}}var y,w,S,_,x,k,C,z,E,L;e=e,i=(i=i("a026"))&&i.hasOwnProperty("default")?i.default:i,y={render:function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{ref:"stripContainer",staticClass:"happy-scroll-strip",class:[t.horizontal?"happy-scroll-strip--horizontal":"happy-scroll-strip--vertical"],style:[t.initLocation],on:{"!wheel":function(e){return e.stopPropagation(),t.handlerWheel(e)}}},[e("div",{ref:"strip",staticClass:"happy-scroll-bar",style:[t.translate,r({},t.config.sizeAttr,t.length+"px"),t.initSize,{background:t.color},{opacity:t.isOpacity}],on:{mousedown:function(e){return e.stopPropagation(),t.handlerMouseDown(e)}}})])},staticRenderFns:[],name:"happy-scroll-strip",props:{horizontal:Boolean,left:Boolean,top:Boolean,move:{type:Number,default:0},size:{type:[Number,String],default:4},minLengthV:{type:Number,default:40},minLengthH:{type:Number,default:40},color:{type:String,default:"rgba(51,51,51,0.2)"},throttle:{type:Number,default:14}},data:function(){return{config:{},startMove:!1,binded:!1,length:0,percentage:0,maxOffset:0,currentOffset:0,moveThrottle:f(this.throttle)}},watch:{currentOffset:function(t){0===t?this.emitLocationEvent("start",0):t===this.maxOffset&&this.emitLocationEvent("end",t/this.percentage)}},computed:{initSize:function(){return r({},this.horizontal?"height":"width",this.size+"px")},isOpacity:function(){return this.percentage<1?1:0},translate:function(){var t=this.move*this.percentage;if(this.$refs.stripContainer)return(t=t<0?0:t)>this.maxOffset&&(t=this.maxOffset),this.currentOffset=t,{transform:this.config.translate+"("+t+"px)"}},initLocation:function(){return this.horizontal?this.top?{top:0,bottom:"auto"}:"":this.left?{left:0,right:"auto"}:""}},methods:{emitLocationEvent:function(t,e){var i=this.horizontal?"horizontal":"vertical";this.$emit(i+"-"+t,e)},computeStrip:function(t,e){var i=this.$refs.stripContainer[this.config.client],n=(this.length=i*(e/t),this.horizontal?this.minLengthH:this.minLengthV);n<1&&(n*=i),this.length=this.length<n?n:this.length,n=this.maxOffset=i-this.length;this.percentage=n/(t-e)},bindEvents:function(){this.binded||(n(document,"mouseup",this.handlerMouseUp),n(document,"mousemove",this.handlerMove),this.binded=!0)},handlerMouseDown:function(t){if(0===t.button)return t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),this.startMove=!0,this.axis=t[this.config.clientAxis],this.bindEvents(),!1},handlerMouseUp:function(){this.startMove=!1},handlerMove:function(t){var e;this.startMove&&this.moveThrottle(Date.now())&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),e=this.$refs.stripContainer.getBoundingClientRect(),e=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction],e=t[this.config.clientAxis]-this.axis+e,this.axis=t[this.config.clientAxis],this.changeOffset(e))},handlerWheel:function(t){var e=this.$refs.stripContainer.getBoundingClientRect();e=this.$refs.strip.getBoundingClientRect()[this.config.direction]-e[this.config.direction]+t[this.config.wheelDelta];this.changeOffset(e,t)},changeOffset:function(t,e){(t=t<0?0:t)>this.maxOffset&&(t=this.maxOffset),e&&0<t&&t<this.maxOffset&&(e.preventDefault(),e.stopImmediatePropagation()),this.currentOffset=t,this.$refs.strip.style.transform=this.config.translate+"("+t+"px)",this.$emit("change",t/this.percentage)}},created:function(){var t={h:{sizeAttr:"width",client:"clientWidth",clientAxis:"clientX",translate:"translateX",direction:"left",wheelDelta:"deltaX"},v:{sizeAttr:"height",client:"clientHeight",clientAxis:"clientY",translate:"translateY",direction:"top",wheelDelta:"deltaY"}};this.config=this.horizontal?t.h:t.v},destroyed:function(){o(document,"mouseup",this.handlerClickUp),o(document,"mousemove",this.handlerMove)}},w=s((function(t){(t.exports={}).forEach=function(t,e){for(var i=0;i<t.length;i++){var n=e(t[i]);if(n)return n}}})),S=s((function(t){t=t.exports={},t.isIE=function(t){return!(-1===(e=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===e.indexOf("trident")&&-1===e.indexOf(" edge/")||t&&t!==(()=>{for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",i[0];);return 4<t?t:void 0})());var e},t.isLegacyOpera=function(){return!!window.opera}})),_=s((function(t){(t.exports={}).getOption=function(t,e,i){return t=t[e],null!=t||void 0===i?t:i}})),x="_erd",k={initState:function(t){return t[x]={},c(t)},getState:c,cleanState:function(t){delete t[x]}},C=w.forEach,z=w.forEach,E=i,"undefined"!=typeof window&&window.Vue&&(E=window.Vue),L={render:function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{ref:"happy-scroll",staticClass:"happy-scroll"},[e("div",{ref:"container",staticClass:"happy-scroll-container",style:[t.initSize],on:{scroll:function(e){return e.stopPropagation(),t.onScroll(e)}}},[e("div",{ref:"content",staticClass:"happy-scroll-content",style:[t.contentBorderStyle]},[t._t("default")],2)]),t.hideVertical?t._e():e("happy-scroll-strip",t._g(t._b({ref:"stripY",attrs:{throttle:t.throttle,move:t.moveY},on:{change:t.slideYChange}},"happy-scroll-strip",t.$attrs,!1),t.$listeners)),t.hideHorizontal?t._e():e("happy-scroll-strip",t._g(t._b({ref:"stripX",attrs:{horizontal:"",throttle:t.throttle,move:t.moveX},on:{change:t.slideXChange}},"happy-scroll-strip",t.$attrs,!1),t.$listeners))],1)},staticRenderFns:[],name:"happy-scroll",inheritAttrs:!1,components:{HappyScrollStrip:y},props:{scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},hideVertical:Boolean,hideHorizontal:Boolean,throttle:{type:Number,default:14},resize:Boolean,smallerMoveH:{type:String,default:""},smallerMoveV:{type:String,default:""},biggerMoveH:{type:String,default:""},biggerMoveV:{type:String,default:""}},data:function(){return{initSize:{},moveX:+this.scrollLeft,moveY:+this.scrollTop,scrollThrottle:f(this.throttle),browserHSize:0,browserVSize:0,isScrollNotUseSpace:void 0}},watch:{scrollTop:function(t){this.$refs.container.scrollTop=this.moveY=+t},scrollLeft:function(t){this.$refs.container.scrollLeft=this.moveX=+t},hideVertical:function(t){t||this.$nextTick(this.computeStripY)},hideHorizontal:function(t){t||this.$nextTick(this.computeStripX)}},computed:{contentBorderStyle:function(){return void 0===this.isScrollNotUseSpace?{}:{"border-right":20-this.browserHSize+"px solid transparent","border-bottom":20-this.browserVSize+"px solid transparent"}}},methods:{slideYChange:function(t){this.$refs.container.scrollTop=t,this.$emit("update:scrollTop",this.$refs.container.scrollTop)},slideXChange:function(t){this.$refs.container.scrollLeft=t,this.$emit("update:scrollLeft",this.$refs.container.scrollLeft)},onScroll:function(t){if(!this.scrollThrottle(Date.now()))return!1;this.moveY=t.target.scrollTop,this.moveX=t.target.scrollLeft,this.updateSyncScroll()},initBrowserSize:function(){void 0!==this.isScrollNotUseSpace&&(!0===this.isScrollNotUseSpace?(this.browserHSize=0,this.browserVSize=0):(this.browserHSize=this.$refs.container.offsetWidth-this.$refs.container.clientWidth,this.browserVSize=this.$refs.container.offsetHeight-this.$refs.container.clientHeight))},computeStripX:function(){var t,e;this.hideHorizontal||(t=this.$refs["happy-scroll"],e=this.$slots.default[0].elm,this.$refs.stripX.computeStrip(e.scrollWidth,t.clientWidth))},computeStripY:function(){var t,e;this.hideVertical||(t=this.$refs["happy-scroll"],e=this.$slots.default[0].elm,this.$refs.stripY.computeStrip(e.scrollHeight,t.clientHeight))},resizeListener:function(){var t,e,i,n,o=this;this.resize&&(t=b({strategy:"scroll",callOnAdd:!1}),e=this.$slots.default[0].elm,i=e.clientHeight,n=e.clientWidth,t.listenTo(e,(function(t){o.computeStripX(),o.computeStripY(),o.initBrowserSize();var e=void 0;t.clientHeight<i&&(e=o.smallerMoveH.toLocaleLowerCase()),"start"===(e=i<t.clientHeight?o.biggerMoveH.toLocaleLowerCase():e)&&(o.moveY=0,o.slideYChange(o.moveY)),"end"===e&&(o.moveY=t.clientHeight,o.slideYChange(o.moveY)),i=t.clientHeight,e="",t.clientWidth<n&&(e=o.smallerMoveV.toLocaleLowerCase()),"start"===(e=n<t.clientWidth?o.biggerMoveV.toLocaleLowerCase():e)&&(o.moveX=0,o.slideXChange(o.moveX)),"end"===e&&(o.moveX=t.clientWidth,o.slideXChange(o.moveX)),n=t.clientWidth})))},setContainerSize:function(){this.initSize={width:this.$refs["happy-scroll"].clientWidth+20+"px",height:this.$refs["happy-scroll"].clientHeight+20+"px"}},checkScrollMode:function(){var t,e;void 0===E._happyJS._isScrollNotUseSpace&&(t=this.$slots.default[0].elm,e=this.$refs.container,t.offsetHeight>e.clientHeight||t.offsetWidth>e.clientWidth)&&(e.offsetWidth>e.clientWidth||e.offsetHeight>e.clientHeight?E._happyJS._isScrollNotUseSpace=!1:E._happyJS._isScrollNotUseSpace=!0,this.isScrollNotUseSpace=E._happyJS._isScrollNotUseSpace)}},beforeCreate:function(){var t=E._happyJS=E._happyJS||{};this.isScrollNotUseSpace=t._isScrollNotUseSpace},created:function(){this.updateSyncScroll=p((function(){this.$emit("update:scrollTop",this.moveY),this.$emit("update:scrollLeft",this.moveX)}),this.throttle)},mounted:function(){var t=this;this.setContainerSize(),this.$nextTick((function(){t.computeStripX(),t.computeStripY(),t.checkScrollMode(),t.initBrowserSize(),t.$nextTick((function(){t.scrollTop&&(t.$refs.container.scrollTop=+t.scrollTop),t.scrollLeft&&(t.$refs.container.scrollLeft=+t.scrollLeft)}))})),this.resizeListener(),this.$watch("browserHSize",this.setContainerSize),this.$watch("browserVSize",this.setContainerSize)}},"undefined"!=typeof window&&window.Vue&&Vue.component("happy-scroll",L),e.default={install:function(t){t.component("happy-scroll",L)},version:"2.1.1"},e.HappyScroll=L,e.version="2.1.1",Object.defineProperty(e,"__esModule",{value:!0})},"7a1a":function(t,e,i){i.d(e,"a",(function(){return o}));var n=i("6b6c");function o(){return Object(n.a)({url:"service/info",method:"get",kefu:!0})}},"841c":function(t,e,i){var n=i("c65b"),o=i("d784"),r=i("825a"),s=i("861d"),a=i("1d80"),c=i("129f"),l=i("577e"),d=i("dc4a"),h=i("14c3");o("search",(function(t,e,i){return[function(e){var i=a(this),o=s(e)?d(e,t):void 0;return o?n(o,e,i):new RegExp(e)[t](l(i))},function(t){var n=r(this),o=(t=l(t),i(e,n,t));return o.done?o.value:(o=n.lastIndex,c(o,0)||(n.lastIndex=0),t=h(n,t),c(n.lastIndex,o)||(n.lastIndex=o),null===t?-1:t.index)}]}))},"87bc6":function(t,e,i){i.r(e),i("ac1f"),i("841c");var n=i("c14f"),o=i("1da1"),r=(i("14d9"),i("8c8a")),s={name:"Loading",props:{loaded:Boolean,loading:Boolean},created:function(){}},a=i("2877"),c=(s=Object(a.a)(s,(function(){var t=this,e=t._self._c;return t.loading&&!t.loaded?e("div",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":"0.2rem","font-size":"12px"}},[t.loading?[e("div",{staticClass:"iconfontYI icon-jiazai loading acea-row row-center-wrapper"}),t._v("\n 正在加载中\n ")]:[t._v(" 上拉加载更多 ")]],2):t._e()}),[],!1,null,null,null).exports,i("42e3")),l=i("61f7"),d=i("69ae"),h={name:"WriteOff",props:{iShidden:{type:Boolean,default:!0},orderInfo:{type:Object,default:null}},data:function(){return{}},methods:{toDetail:function(t){this.$router.push({path:"/kefu/orderDetail/"+t.id+"/looks"})},cancel:function(){this.$emit("cancel",!1)},confirm:function(){this.$emit("confirm",!1)}}},u=(h=(i("151e"),Object(a.a)(h,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.iShidden,expression:"iShidden"}]},[e("div",{staticClass:"WriteOff"},[e("div",{staticClass:"pictrue"},[e("img",{attrs:{src:t.orderInfo.cartInfo[0].productInfo.image}})]),e("div",{staticClass:"num acea-row row-center-wrapper"},[t._v("\n "+t._s(t.orderInfo.order_id)+"\n "),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"views",on:{click:function(e){return t.toDetail(t.orderInfo)}}},[t._v("\n 查看"),e("span",{staticClass:"iconfont icon-jiantou views-jian"})])]),e("div",{staticClass:"tip"},[t._v("确定要核销此订单吗?")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"sure",on:{click:t.confirm}},[t._v("确定核销")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"sure cancel",on:{click:t.cancel}},[t._v("取消")])]),e("div",{staticClass:"maskModel",on:{touchmove:function(t){t.preventDefault()}}})])}),[],!1,null,"df052a48",null).exports),i("6db4")),f=i("7a1a");h={name:"AdminOrderList",components:{WriteOff:h,PriceChange:r.a,Loading:s,HappyScroll:u.HappyScroll},props:{},data:function(){return{current:"",change:!1,types:0,where:{page:1,limit:15,search:"",type:""},list:[],loaded:!1,loading:!1,orderInfo:{},status:null,iShidden:!1,ops:{vuescroll:{mode:"slide",enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0,pullRefresh:{enable:!1},pushLoad:{enable:!0,auto:!0,autoLoadDistance:10}},bar:{background:"#393232",opacity:".5",size:"2px"}}}},watch:{"$route.params.type":function(t){null!=t&&(this.where.type=t,this.init())},types:function(){this.getIndex()}},created:function(){Object(f.a)().then((function(t){window.document.title="".concat(t.data.site_name," - 订单列表")}))},mounted:function(){var t=this;this.current="",this.getIndex(),this.$scroll(this.$refs.container,(function(){t.loading||t.getIndex()}))},methods:{bindSearch:function(){this.init()},storeCancellation:function(t){this.orderInfo=t,this.iShidden=!0},cancel:function(t){this.iShidden=t},confirm:function(){var t=this;Object(c.z)(this.orderInfo.id).then((function(e){t.iShidden=!1,t.init(),t.$dialog.success(e.msg)})).catch((function(e){t.$dialog.error(e.msg)}))},more:function(t){this.current===t?this.current="":this.current=t},modify:function(t,e){this.change=!0,this.orderInfo=t,this.status=e},closeChange:function(t){this.change=t},changeclose:function(t){this.change=t,this.init()},getRefuse:function(t){orderRefuseApi(data).then((function(){that.change=!1,that.$dialog.success("已拒绝退款"),that.init()})).catch((function(t){that.$dialog.error(t.message)}))},savePrice:function(t){var e=this;return Object(o.a)(Object(n.a)().m((function i(){var o,r,s,a,c,h,u,f;return Object(n.a)().w((function(i){for(;;)switch(i.p=i.n){case 0:if(o=e,r={},s=t.price,a=t.refundPrice,c=o.orderInfo.refundStatus,h=t.remark,0==o.status&&0===c)return i.p=1,i.n=2,e.$validator({price:[Object(l.c)(l.c.message("金额"))]}).validate({price:s});i.n=5;break;case 2:i.n=4;break;case 3:return i.p=3,u=i.v,i.a(2,Object(d.b)(u));case 4:r.price=s,r.orderId=t.orderId,editPriceApi(r).then((function(){o.change=!1,o.$dialog.success("改价成功"),o.init()})).catch((function(t){o.$dialog.error(t.message)})),i.n=14;break;case 5:if(0==o.status&&1===c)return i.p=6,i.n=7,e.$validator({refundPrice:[Object(l.c)(l.c.message("金额")),Object(l.b)(l.b.message("金额"))]}).validate({refundPrice:a});i.n=10;break;case 7:i.n=9;break;case 8:return i.p=8,u=i.v,i.a(2,Object(d.b)(u));case 9:r.amount=a,r.type=t.type,r.orderId=t.orderId,orderRefundApi(r).then((function(t){o.change=!1,o.$dialog.success("退款成功"),o.init()}),(function(t){o.change=!1,o.$dialog.error(t.message)})),i.n=14;break;case 10:return i.p=10,i.n=11,e.$validator({remark:[Object(l.c)(l.c.message("备注"))]}).validate({remark:h});case 11:i.n=13;break;case 12:return i.p=12,f=i.v,i.a(2,Object(d.b)(f));case 13:r.mark=h,r.id=t.id,orderMarkApi(r).then((function(t){o.change=!1,o.$dialog.success("提交成功"),o.init()}),(function(t){o.change=!1,o.$dialog.error(t.msg)}));case 14:return i.a(2)}}),i,null,[[10,12],[6,8],[1,3]])})))()},init:function(){this.list=[],this.where.page=1,this.loaded=!1,this.loading=!1,this.getIndex(),this.current=""},getIndex:function(){var t=this;this.loading||this.loaded||(this.loading=!0,Object(c.o)(this.$route.params.toUid,this.where).then((function(e){t.loading=!1,t.loaded=e.data.length<t.where.limit,t.list.push.apply(t.list,e.data||[]),t.where.page=t.where.page+1,t.$nextTick((function(){0<t.list.length&&t.$refs.scrollBox.refresh()}))}),(function(e){t.$dialog.error(e.msg)})))},changeStatus:function(t){this.where.type!==t&&(this.where.type=t,this.init())},toDetail:function(t){this.$router.push({path:"/kefu/orderDetail/"+t.id})},offlinePay:function(t){},handleWordsScroll:function(t,e,i){this.getIndex(),i()}}},i("ab3b"),r=Object(a.a)(h,(function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"pos-order-list"},[e("div",{staticClass:"head-box"},[e("div",{staticClass:"nav acea-row row-around row-middle"},[e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"item",class:""===t.where.type?"on":"",on:{click:function(e){return t.changeStatus("")}}},[t._v("全部")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"item",class:0===t.where.type?"on":"",on:{click:function(e){return t.changeStatus(0)}}},[t._v("未支付")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"item",class:1===t.where.type?"on":"",on:{click:function(e){return t.changeStatus(1)}}},[t._v("未发货")]),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"item",class:-1===t.where.type?"on":"",on:{click:function(e){return t.changeStatus(-1)}}},[t._v("退款中")])]),e("div",{staticClass:"input-box"},[e("el-input",{attrs:{placeholder:"搜索订单编号"},on:{"on-enter":t.bindSearch},model:{value:t.where.search,callback:function(e){t.$set(t.where,"search",e)},expression:"where.search"}})],1)]),e("div",{staticClass:"list"},[e("vue-scroll",{ref:"scrollBox",staticStyle:{height:"100%"},attrs:{ops:t.ops},on:{"load-before-deactivate":t.handleWordsScroll}},[e("div",{staticClass:"slot-load",attrs:{slot:"load-deactive"},slot:"load-deactive"}),e("div",{staticClass:"slot-load",attrs:{slot:"load-beforeDeactive"},slot:"load-beforeDeactive"}),e("div",{staticClass:"slot-load",attrs:{slot:"load-active"},slot:"load-active"},[t._v("下滑加载更多")]),0<t.list.length?t._l(t.list,(function(i,n){return e("div",{key:n,staticClass:"item"},[e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"order-num acea-row row-middle",on:{click:function(e){return t.toDetail(i)}}},[t._v("\n 订单号:"+t._s(i.order_id)+"\n "),e("span",{staticClass:"time"},[t._v("下单时间:"+t._s(i._add_time))])]),t._l(i.cartInfo,(function(n,o){return e("div",{key:o,staticClass:"pos-order-goods"},[e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"goods acea-row row-between-wrapper",on:{click:function(e){return t.toDetail(i)}}},[e("div",{staticClass:"picTxt acea-row row-between-wrapper"},[e("div",{staticClass:"pictrue"},[e("img",{attrs:{src:n.productInfo.image}})]),e("div",{staticClass:"text"},[e("div",{staticClass:"info line2"},[t._v("\n "+t._s(n.productInfo.store_name)+"\n ")]),n.productInfo.attrInfo.suk?e("div",{staticClass:"attr line1"},[t._v("\n "+t._s(n.productInfo.attrInfo.suk)+"\n ")]):t._e()])]),e("div",{staticClass:"money"},[e("div",{staticClass:"x-money"},[t._v("¥"+t._s(n.productInfo.attrInfo.price))]),e("div",{staticClass:"num"},[t._v("x"+t._s(n.cart_num))]),e("div",{staticClass:"y-money"})])])])})),e("div",{staticClass:"public-total"},[t._v("\n 共"+t._s(i.total_num)+"件商品,应支付 "),e("span",{staticClass:"money"},[t._v("¥"+t._s(i.pay_price))]),t._v(" ( 邮费 ¥"+t._s(i.pay_postage)+"\n )\n ")]),e("div",{staticClass:"operation acea-row row-between-wrapper"},[e("div",{staticClass:"more"}),e("div",{staticClass:"acea-row row-middle"},[0===i.paid?e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"bnt",on:{click:function(e){return t.modify(i,0)}}},[t._v("一键改价")]):t._e(),e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"bnt",on:{click:function(e){return t.modify(i,1)}}},[t._v("订单备注")]),-1===i._status._type&&1===i.refund_status?e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"bnt",on:{click:function(e){return t.modify(i,0)}}},[t._v("\n 立即退款\n ")]):t._e(),"offline"===i.pay_type&&0===i.paid?e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"bnt cancel",on:{click:function(e){return t.offlinePay(i)}}},[t._v("\n 确认付款\n ")]):t._e(),1===i._status._type&&2!==i.shipping_type?e("router-link",{staticClass:"bnt",attrs:{to:"/kefu/orderDelivery/"+i.id+"/"+i.order_id}},[t._v("去发货\n ")]):t._e(),1===i._status._type&&2===i.shipping_type?e("div",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"bnt cancel",on:{click:function(e){return t.storeCancellation(i)}}},[t._v("\n 去核销\n ")]):t._e()],1)])],2)})):t._e(),t.loading||0!==t.list.length||""!==t.where.type?t._e():[e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{width:"3.9rem"},attrs:{src:i("468b"),alt:""}}),e("p",{staticStyle:{color:"#9f9f9f"}},[t._v("亲,该客户暂无订单~")])])],t.loading||0!==t.list.length||0!==t.where.type?t._e():[e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{width:"3.9rem"},attrs:{src:i("ea87"),alt:""}}),e("p",{staticStyle:{color:"#9f9f9f"}},[t._v("暂无未支付订单~")])])],t.loading||0!==t.list.length||2!==t.where.type?t._e():[e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{width:"3.9rem"},attrs:{src:i("5f70"),alt:""}}),e("p",{staticStyle:{color:"#9f9f9f"}},[t._v("暂无未收货订单~")])])],t.loading||0!==t.list.length||-1!==t.where.type?t._e():[e("div",{staticStyle:{"text-align":"center"}},[e("img",{staticStyle:{width:"3.9rem"},attrs:{src:i("060a"),alt:""}}),e("p",{staticStyle:{color:"#9f9f9f"}},[t._v("暂无退款订单~")])])]],2)],1),t.orderInfo?e("PriceChange",{attrs:{change:t.change,orderInfo:t.orderInfo,status:t.status},on:{closechange:function(e){return t.changeclose(e)},closeChange:function(e){return t.closeChange(e)}}}):t._e(),t.iShidden?e("write-off",{attrs:{iShidden:t.iShidden,orderInfo:t.orderInfo},on:{cancel:t.cancel,confirm:t.confirm}}):t._e()],1)}),[],!1,null,"444ecf6c",null);e.default=r.exports},ab3b:function(t,e,i){i("076f")},da14:function(t,e,i){},ea87:function(t,e,i){t.exports=i.p+"system_static/img/no_zf.e61fe9b5.png"}}]);