8 lines
180 KiB
JavaScript
8 lines
180 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8d6d5e28"],{"0b439":function(t,e,i){i=i("04f8"),t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},"0f0e":function(t,e,i){i("4de4"),i("d81d"),i("14d9"),i("a434"),i("e9f5"),i("910d"),i("ab43"),i("e9c4"),i("b64b"),i("d3b7");var a=i("c4c8"),n={name:"userLabel",props:{},data:function(){return{labelList:[],dataLabel:[],isUser:!1}},mounted:function(){this.setLabel()},methods:{inArray:function(t,e){for(var i in e)if(e[i].id==t)return!0;return!1},setLabel:function(){var t=this;Object(a.x)().then((function(e){e.data.map((function(e){e.children&&(t.isUser=!0,e.children.map((function(e){t.inArray(e.id,t.dataLabel)?e.disabled=!0:e.disabled=!1})))})),t.labelList=e.data})).catch((function(e){t.$message.error(e.msg)}))},selectLabel:function(t){var e;t.disabled?(e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]),this.dataLabel.splice(e,1),t.disabled=!1):(this.dataLabel.push({label_name:t.label_name,id:t.id}),t.disabled=!0)},subBtn:function(){this.$emit("activeData",JSON.parse(JSON.stringify(this.dataLabel)))},cancel:function(){this.$emit("close")}}};i("1cf7"),i=i("2877"),i=Object(i.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"label-wrapper"},[e("div",{staticClass:"list-box"},[t.isUser?t._l(t.labelList,(function(i,a){return e("div",{key:a,staticClass:"label-box"},[i.children?e("div",{staticClass:"title"},[t._v(t._s(i.label_name))]):t._e(),i.children&&i.children.length?e("div",{staticClass:"list"},t._l(i.children,(function(i,a){return e("div",{key:a,staticClass:"label-item",class:{on:i.disabled},on:{click:function(e){return t.selectLabel(i)}}},[t._v("\n "+t._s(i.label_name)+"\n ")])})),0):t._e()])})):t._e(),t.isUser?t._e():e("div",[t._v("暂无标签")])],2),e("div",{staticClass:"footer"},[e("el-button",{staticClass:"btns",attrs:{ghost:""},on:{click:t.cancel}},[t._v("取消")]),e("el-button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")])],1)])}),[],!1,null,"37eb90ed",null);e.a=i.exports},"1b98":function(t,e,i){i("2f56")},"1cf7":function(t,e,i){i("4205")},"2c3e":function(t,e,i){var a=i("83ab"),n=i("9f7f").MISSED_STICKY,o=i("c6b6"),r=i("edd0"),l=i("69f3").get,s=RegExp.prototype,c=TypeError;a&&n&&r(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===o(this))return!!l(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"2f56":function(t,e,i){},"2f8d":function(t,e,i){},"31d2":function(t,e,i){},"33b6":function(t,e,i){},"3fed":function(t,e,i){i("fc4f")},4205:function(t,e,i){},4603:function(t,e,i){
|
||
/**!
|
||
* Sortable 1.10.2
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/
|
||
function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,a=arguments[e];for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},a=Object.keys(i);(a="function"==typeof Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))):a).forEach((function(e){var a,n;a=t,n=i[e=e],e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n}))}return t}function r(t,e){if(null==t)return{};var i,a=((t,e)=>{if(null==t)return{};for(var i,a={},n=Object.keys(t),o=0;o<n.length;o++)i=n[o],0<=e.indexOf(i)||(a[i]=t[i]);return a})(t,e);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(t),o=0;o<n.length;o++)i=n[o],0<=e.indexOf(i)||Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i]);return a}function l(t){return(t=>{if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}})(t)||(t=>{if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance")})()}function s(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}i.r(e),i.d(e,"MultiDrag",(function(){return he})),i.d(e,"Sortable",(function(){return Mt})),i.d(e,"Swap",(function(){return ne}));var c=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=s(/Edge/i),d=s(/firefox/i),m=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),p=(i=s(/iP(ad|od|hone)/i),s(/chrome/i)&&s(/android/i)),f={capture:!1,passive:!1};function h(t,e,i){t.addEventListener(e,i,!c&&f)}function g(t,e,i){t.removeEventListener(e,i,!c&&f)}function v(t,e){if(e&&(">"===e[0]&&(e=e.substring(1)),t))try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return}}function b(t,e,i,a){if(t){i=i||document;do{if(null!=e&&(">"!==e[0]||t.parentNode===i)&&v(t,e)||a&&t===i)return t}while(t!==i&&(t=(n=t).host&&n!==document&&n.host.nodeType?n.host:n.parentNode))}var n;return null}var y,_=/\s+/g;function w(t,e,i){var a;t&&e&&(t.classList?t.classList[i?"add":"remove"](e):(a=(" "+t.className+" ").replace(_," ").replace(" "+e+" "," "),t.className=(a+(i?" "+e:"")).replace(_," ")))}function x(t,e,i){var a=t&&t.style;if(a){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];a[e=e in a||-1!==e.indexOf("webkit")?e:"-webkit-"+e]=i+("string"==typeof i?"":"px")}}function k(t,e){var i="";if("string"==typeof t)i=t;else do{var a=x(t,"transform")}while(a&&"none"!==a&&(i=a+" "+i),!e&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(i)}function C(t,e,i){if(t){var a=t.getElementsByTagName(e),n=0,o=a.length;if(i)for(;n<o;n++)i(a[n],n);return a}return[]}function V(){var t=document.scrollingElement;return t||document.documentElement}function S(t,e,i,a,n){if(t.getBoundingClientRect||t===window){var o,r,l,s,u,d,m=t!==window&&t!==V()?(r=(o=t.getBoundingClientRect()).top,l=o.left,s=o.bottom,u=o.right,d=o.height,o.width):(l=r=0,s=window.innerHeight,d=window.innerHeight,u=window.innerWidth);if((e||i)&&t!==window&&(n=n||t.parentNode,!c))do{if(n&&n.getBoundingClientRect&&("none"!==x(n,"transform")||i&&"static"!==x(n,"position"))){var p=n.getBoundingClientRect();r-=p.top+parseInt(x(n,"border-top-width")),l-=p.left+parseInt(x(n,"border-left-width")),s=r+o.height,u=l+o.width;break}}while(n=n.parentNode);return a&&t!==window&&(a=(e=k(n||t))&&e.a,t=e&&e.d,e)&&(s=(r/=t)+(d/=t),u=(l/=a)+(m/=a)),{top:r,left:l,bottom:s,right:u,width:m,height:d}}}function $(t,e,i){for(var a=L(t,!0),n=S(t)[e];a;){var o=S(a)[i];if(!("top"===i||"left"===i?o<=n:n<=o))return a;if(a===V())break;a=L(a,!1)}return!1}function D(t,e,i){for(var a=0,n=0,o=t.children;n<o.length;){if("none"!==o[n].style.display&&o[n]!==Mt.ghost&&o[n]!==Mt.dragged&&b(o[n],i.draggable,t,!1)){if(a===e)return o[n];a++}n++}return null}function T(t,e){for(var i=t.lastElementChild;i&&(i===Mt.ghost||"none"===x(i,"display")||e&&!v(i,e));)i=i.previousElementSibling;return i||null}function E(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Mt.clone||e&&!v(t,e)||i++;return i}function O(t){var e=0,i=0,a=V();if(t)do{var n=k(t),o=n.a}while(e+=t.scrollLeft*o,i+=t.scrollTop*n.d,t!==a&&(t=t.parentNode));return[e,i]}function L(t,e){if(t&&t.getBoundingClientRect){var i=t,a=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var n=x(i);if(i.clientWidth<i.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!i.getBoundingClientRect||i===document.body)return V();if(a||e)return i;a=!0}}}while(i=i.parentNode)}return V()}function F(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function I(t,e){return function(){var i;y||(1===(i=arguments).length?t.call(this,i[0]):t.apply(this,i),y=setTimeout((function(){y=void 0}),e))}}function N(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function A(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function M(t,e){x(t,"position","absolute"),x(t,"top",e.top),x(t,"left",e.left),x(t,"width",e.width),x(t,"height",e.height)}function B(t){x(t,"position",""),x(t,"top",""),x(t,"left",""),x(t,"width",""),x(t,"height","")}var P="Sortable"+(new Date).getTime();function j(){var t,e=[];return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){var i,a;"none"!==x(t,"display")&&t!==Mt.ghost&&(e.push({target:t,rect:S(t)}),i=o({},e[e.length-1].rect),t.thisAnimationDuration&&(a=k(t,!0))&&(i.top-=a.f,i.left-=a.e),t.fromRect=i)}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(((t,e)=>{for(var i in t)if(t.hasOwnProperty(i))for(var a in e)if(e.hasOwnProperty(a)&&e[a]===t[i][a])return Number(i);return-1})(e,{target:t}),1)},animateAll:function(i){var a,n,o=this;this.options.animation?(a=!1,n=0,e.forEach((function(t){var e,i=0,r=t.target,l=r.fromRect,s=S(r),c=r.prevFromRect,u=r.prevToRect,d=(t=t.rect,k(r,!0));d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&F(c,s)&&!F(l,s)&&(t.top-s.top)/(t.left-s.left)==(l.top-s.top)/(l.left-s.left)&&(d=t,c=c,u=u,e=o.options,i=Math.sqrt(Math.pow(c.top-d.top,2)+Math.pow(c.left-d.left,2))/Math.sqrt(Math.pow(c.top-u.top,2)+Math.pow(c.left-u.left,2))*e.animation),F(s,l)||(r.prevFromRect=l,r.prevToRect=s,i=i||o.options.animation,o.animate(r,t,s,i)),i&&(a=!0,n=Math.max(n,i),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),i),r.thisAnimationDuration=i)})),clearTimeout(t),a?t=setTimeout((function(){"function"==typeof i&&i()}),n):"function"==typeof i&&i(),e=[]):(clearTimeout(t),"function"==typeof i&&i())},animate:function(t,e,i,a){var n,o;a&&(x(t,"transition",""),x(t,"transform",""),o=(n=k(this.el))&&n.a,n=n&&n.d,o=(e.left-i.left)/(o||1),e=(e.top-i.top)/(n||1),t.animatingX=!!o,t.animatingY=!!e,x(t,"transform","translate3d("+o+"px,"+e+"px,0)"),x(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),x(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){x(t,"transition",""),x(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),a))}}}var R=[],z={initializeByDefault:!0},W={mount:function(t){for(var e in z)!z.hasOwnProperty(e)||e in t||(t[e]=z[e]);R.push(t)},pluginEvent:function(t,e,i){var a=this,n=(this.eventCanceled=!1,i.cancel=function(){a.eventCanceled=!0},t+"Global");R.forEach((function(a){e[a.pluginName]&&(e[a.pluginName][n]&&e[a.pluginName][n](o({sortable:e},i)),e.options[a.pluginName])&&e[a.pluginName][t]&&e[a.pluginName][t](o({sortable:e},i))}))},initializePlugins:function(t,e,i,a){for(var o in R.forEach((function(a){var o=a.pluginName;(t.options[o]||a.initializeByDefault)&&((a=new a(t,e,t.options)).sortable=t,a.options=t.options,n(i,(t[o]=a).defaults))})),t.options){var r;t.options.hasOwnProperty(o)&&void 0!==(r=this.modifyOption(t,o,t.options[o]))&&(t.options[o]=r)}},getEventProperties:function(t,e){var i={};return R.forEach((function(a){"function"==typeof a.eventProperties&&n(i,a.eventProperties.call(e[a.pluginName],t))})),i},modifyOption:function(t,e,i){var a;return R.forEach((function(n){t[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[e]&&(a=n.optionListeners[e].call(t[n.pluginName],i))})),a}};function U(t){var e=t.sortable,i=t.rootEl,a=t.name,n=t.targetEl,r=t.cloneEl,l=t.toEl,s=t.fromEl,d=t.oldIndex,m=t.newIndex,p=t.oldDraggableIndex,f=t.newDraggableIndex,h=t.originalEvent,g=t.putSortable;t=t.extraEventProperties;if(e=e||i&&i[P]){var v,b,y=e.options,_="on"+a.charAt(0).toUpperCase()+a.substr(1),w=(!window.CustomEvent||c||u?(v=document.createEvent("Event")).initEvent(a,!0,!0):v=new CustomEvent(a,{bubbles:!0,cancelable:!0}),v.to=l||i,v.from=s||i,v.item=n||i,v.clone=r,v.oldIndex=d,v.newIndex=m,v.oldDraggableIndex=p,v.newDraggableIndex=f,v.originalEvent=h,v.pullMode=g?g.lastPutMode:void 0,o({},t,W.getEventProperties(a,e)));for(b in w)v[b]=w[b];i&&i.dispatchEvent(v),y[_]&&y[_].call(e,v)}}function q(t,e){var i=(a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).evt,a=r(a,["evt"]);W.pluginEvent.bind(Mt)(t,e,o({dragEl:J,parentEl:Q,ghostEl:Z,rootEl:tt,nextEl:et,lastDownEl:it,cloneEl:at,cloneHidden:nt,dragStarted:vt,putSortable:ut,activeSortable:Mt.active,originalEvent:i,oldIndex:ot,oldDraggableIndex:lt,newIndex:rt,newDraggableIndex:st,hideGhostForTarget:Y,unhideGhostForTarget:H,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){G({sortable:e,name:t,originalEvent:i})}},a))}function G(t){U(o({putSortable:ut,cloneEl:at,targetEl:J,rootEl:tt,oldIndex:ot,oldDraggableIndex:lt,newIndex:rt,newDraggableIndex:st},t))}function Y(){!It&&Z&&x(Z,"display","none")}function H(){!It&&Z&&x(Z,"display","")}function X(t){if(J){t=t.touches?t.touches[0]:t,n=t.clientX,o=t.clientY,Ct.some((function(t){var e,i,a;if(!T(t))return a=S(t),e=t[P].options.emptyInsertThreshold,i=n>=a.left-e&&n<=a.right+e,a=a.top-e<=o&&o<=a.bottom+e,e&&i&&a?r=t:void 0}));var e=r;if(e){var i,a={};for(i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);a.target=a.rootEl=e,a.preventDefault=void 0,a.stopPropagation=void 0,e[P]._onDragOver(a)}}var n,o,r}function K(t){J&&J.parentNode[P]._isOutsideThisEl(t.target)}var J,Q,Z,tt,et,it,at,nt,ot,rt,lt,st,ct,ut,dt,mt,pt,ft,ht,gt,vt,bt,yt,_t,wt,xt=!1,kt=!1,Ct=[],Vt=!1,St=!1,$t=[],Dt=!1,Tt=[],Et="undefined"!=typeof document,Ot=i,Lt=u||c?"cssFloat":"float",Ft=Et&&!p&&!i&&"draggable"in document.createElement("div"),It=(()=>{var t;if(Et)return!c&&((t=document.createElement("x")).style.cssText="pointer-events:auto","auto"===t.style.pointerEvents)})(),Nt=function(t,e){var i,a=x(t),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),o=D(t,0,e),r=(t=D(t,1,e),e=o&&x(o),t&&x(t)),l=e&&parseInt(e.marginLeft)+parseInt(e.marginRight)+S(o).width,s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+S(t).width;return"flex"===a.display?"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal":"grid"===a.display?a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&e.float&&"none"!==e.float?(i="left"===e.float?"left":"right",!t||"both"!==r.clear&&r.clear!==i?"horizontal":"vertical"):o&&("block"===e.display||"flex"===e.display||"table"===e.display||"grid"===e.display||n<=l&&"none"===a[Lt]||t&&"none"===a[Lt]&&n<l+s)?"vertical":"horizontal"},At=function(t){function e(t,i){return function(a,n,o,r){var l=a.options.group.name&&n.options.group.name&&a.options.group.name===n.options.group.name;return!(null!=t||!i&&!l)||null!=t&&!1!==t&&(i&&"clone"===t?t:"function"==typeof t?e(t(a,n,o,r),i)(a,n,o,r):(l=(i?a:n).options.group.name,!0===t||"string"==typeof t&&t===l||t.join&&-1<t.indexOf(l)))}}var i={},n=t.group;n&&"object"==a(n)||(n={name:n}),i.name=n.name,i.checkPull=e(n.pull,!0),i.checkPut=e(n.put),i.revertClone=n.revertClone,t.group=i};function Mt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=n({},e),t[P]=this;var i,a,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Mt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(i in W.initializePlugins(this,t,o),o)i in e||(e[i]=o[i]);for(a in At(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Ft,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),Ct.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),n(this,j())}function Bt(t,e,i,a,n,o,r,l){var s,d,m=t[P],p=m.options.onMove;return!window.CustomEvent||c||u?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=i,s.draggedRect=a,s.related=n||e,s.relatedRect=o||S(e),s.willInsertAfter=l,s.originalEvent=r,t.dispatchEvent(s),p?p.call(m,s,r):d}function Pt(t){t.draggable=!1}function jt(){Dt=!1}function Rt(t){return setTimeout(t,0)}function zt(t){return clearTimeout(t)}Et&&document.addEventListener("click",(function(t){if(kt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),kt=!1}),!0),Mt.prototype={constructor:Mt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(bt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,J):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,a=this.options,n=a.preventOnFilter,o=t.type,r=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(r||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=a.filter,u=i;Tt.length=0;for(var d=u.getElementsByTagName("input"),m=d.length;m--;){var p=d[m];p.checked&&Tt.push(p)}if(!J&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||a.disabled||s.isContentEditable||(l=b(l,a.draggable,i,!1))&&l.animated||it===l)){if(ot=E(l),lt=E(l,a.draggable),"function"==typeof c){if(c.call(this,t,l,this))return G({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:i,fromEl:i}),q("filter",e,{evt:t}),void(n&&t.cancelable&&t.preventDefault())}else if(c=c&&c.split(",").some((function(a){if(a=b(s,a.trim(),i,!1))return G({sortable:e,rootEl:a,name:"filter",targetEl:l,fromEl:i,toEl:i}),q("filter",e,{evt:t}),!0})))return void(n&&t.cancelable&&t.preventDefault());a.handle&&!b(s,a.handle,i,!1)||this._prepareDragStart(t,r,l)}}},_prepareDragStart:function(t,e,i){var a,n=this,o=n.el,r=n.options,l=o.ownerDocument;i&&!J&&i.parentNode===o&&(a=S(i),tt=o,Q=(J=i).parentNode,et=J.nextSibling,it=i,ct=r.group,dt={target:Mt.dragged=J,clientX:(e||t).clientX,clientY:(e||t).clientY},ht=dt.clientX-a.left,gt=dt.clientY-a.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,J.style["will-change"]="all",o=function(){q("delayEnded",n,{evt:t}),Mt.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!d&&n.nativeDraggable&&(J.draggable=!0),n._triggerDragStart(t,e),G({sortable:n,name:"choose",originalEvent:t}),w(J,r.chosenClass,!0))},r.ignore.split(",").forEach((function(t){C(J,t.trim(),Pt)})),h(l,"dragover",X),h(l,"mousemove",X),h(l,"touchmove",X),h(l,"mouseup",n._onDrop),h(l,"touchend",n._onDrop),h(l,"touchcancel",n._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),q("delayStart",this,{evt:t}),!r.delay||r.delayOnTouchOnly&&!e||this.nativeDraggable&&(u||c)?o():Mt.eventCanceled?this._onDrop():(h(l,"mouseup",n._disableDelayedDrag),h(l,"touchend",n._disableDelayedDrag),h(l,"touchcancel",n._disableDelayedDrag),h(l,"mousemove",n._delayedDragTouchMoveHandler),h(l,"touchmove",n._delayedDragTouchMoveHandler),r.supportPointer&&h(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(o,r.delay)))},_delayedDragTouchMoveHandler:function(t){t=t.touches?t.touches[0]:t,Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&Pt(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;g(t,"mouseup",this._disableDelayedDrag),g(t,"touchend",this._disableDelayedDrag),g(t,"touchcancel",this._disableDelayedDrag),g(t,"mousemove",this._delayedDragTouchMoveHandler),g(t,"touchmove",this._delayedDragTouchMoveHandler),g(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,e?"touchmove":"mousemove",this._onTouchMove):(h(J,"dragend",this),h(tt,"dragstart",this._onDragStart));try{document.selection?Rt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){var i;xt=!1,tt&&J?(q("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",K),i=this.options,t||w(J,i.dragClass,!1),w(J,i.ghostClass,!0),Mt.active=this,t&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:e})):this._nulling()},_emulateDragOver:function(){if(mt){this._lastX=mt.clientX,this._lastY=mt.clientY,Y();for(var t=document.elementFromPoint(mt.clientX,mt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(mt.clientX,mt.clientY))!==e;)e=t;if(J.parentNode[P]._isOutsideThisEl(t),e)do{if(e[P]&&e[P]._onDragOver({clientX:mt.clientX,clientY:mt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}while(e=(t=e).parentNode);H()}},_onTouchMove:function(t){if(dt){var e=this.options,i=e.fallbackTolerance,a=(e=e.fallbackOffset,t.touches?t.touches[0]:t),n=Z&&k(Z,!0),o=Z&&n&&n.a,r=Z&&n&&n.d,l=Ot&&wt&&O(wt);o=(a.clientX-dt.clientX+e.x)/(o||1)+(l?l[0]-$t[0]:0)/(o||1),e=(a.clientY-dt.clientY+e.y)/(r||1)+(l?l[1]-$t[1]:0)/(r||1);if(!Mt.active&&!xt){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}Z&&(n?(n.e+=o-(pt||0),n.f+=e-(ft||0)):n={a:1,b:0,c:0,d:1,e:o,f:e},l="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")"),x(Z,"webkitTransform",l),x(Z,"mozTransform",l),x(Z,"msTransform",l),x(Z,"transform",l),pt=o,ft=e,mt=a),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Z){var t=this.options.fallbackOnBody?document.body:tt,e=S(J,!0,Ot,!0,t),i=this.options;if(Ot){for(wt=t;"static"===x(wt,"position")&&"none"===x(wt,"transform")&&wt!==document;)wt=wt.parentNode;wt!==document.body&&wt!==document.documentElement?(wt===document&&(wt=V()),e.top+=wt.scrollTop,e.left+=wt.scrollLeft):wt=V(),$t=O(wt)}w(Z=J.cloneNode(!0),i.ghostClass,!1),w(Z,i.fallbackClass,!0),w(Z,i.dragClass,!0),x(Z,"transition",""),x(Z,"transform",""),x(Z,"box-sizing","border-box"),x(Z,"margin",0),x(Z,"top",e.top),x(Z,"left",e.left),x(Z,"width",e.width),x(Z,"height",e.height),x(Z,"opacity","0.8"),x(Z,"position",Ot?"absolute":"fixed"),x(Z,"zIndex","100000"),x(Z,"pointerEvents","none"),Mt.ghost=Z,t.appendChild(Z),x(Z,"transform-origin",ht/parseInt(Z.style.width)*100+"% "+gt/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,a=t.dataTransfer,n=i.options;q("dragStart",this,{evt:t}),Mt.eventCanceled?this._onDrop():(q("setupClone",this),Mt.eventCanceled||((at=A(J)).draggable=!1,at.style["will-change"]="",this._hideClone(),w(at,this.options.chosenClass,!1),Mt.clone=at),i.cloneId=Rt((function(){q("clone",i),Mt.eventCanceled||(i.options.removeCloneOnHide||tt.insertBefore(at,J),i._hideClone(),G({sortable:i,name:"clone"}))})),e||w(J,n.dragClass,!0),e?(kt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(g(document,"mouseup",i._onDrop),g(document,"touchend",i._onDrop),g(document,"touchcancel",i._onDrop),a&&(a.effectAllowed="move",n.setData)&&n.setData.call(i,a,J),h(document,"drop",i),x(J,"transform","translateZ(0)")),xt=!0,i._dragStartId=Rt(i._dragStarted.bind(i,e,t)),h(document,"selectstart",i),vt=!0,m&&x(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,a,n=this.el,r=t.target,l=this.options,s=l.group,c=Mt.active,u=ct===s,d=l.sort,m=ut||c,p=this,f=!1;if(!Dt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),r=b(r,l.draggable,n,!0),I("dragOver"),Mt.eventCanceled)return f;if(J.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return M(!1);if(kt=!1,c&&!l.disabled&&(u?d||(i=!tt.contains(J)):ut===this||(this.lastPutMode=ct.checkPull(this,c,J,t))&&s.checkPut(this,c,J,t))){if(a="vertical"===this._getDirection(t,r),e=S(J),I("dragOverValid"),Mt.eventCanceled)return f;if(i)return Q=tt,A(),this._hideClone(),I("revert"),Mt.eventCanceled||(et?tt.insertBefore(J,et):tt.appendChild(J)),M(!0);if(s=T(n,l.draggable),!s||((t,e,i)=>(i=S(T(i.el,i.options.draggable)),e?t.clientX>i.right+10||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+10))(t,a,this)&&!s.animated){if(s===J)return M(!1);if((r=s&&n===t.target?s:r)&&(y=S(r)),!1!==Bt(tt,n,J,e,r,y,t,!!r))return A(),n.appendChild(J),Q=n,B(),M(!0)}else if(r.parentNode===n){var h,g,v,y=S(r),_=(s=J.parentNode!==n,O=J.animated&&J.toRect||e,_=r.animated&&r.toRect||y,V=(F=a)?O.left:O.top,k=F?O.right:O.bottom,O=F?O.width:O.height,L=F?_.left:_.top,C=F?_.right:_.bottom,F=F?_.width:_.height,!(V===L||k===C||V+O/2===L+F/2)),k=a?"top":"left",C=$(r,"top","top")||$(J,"top","top"),V=C?C.scrollTop:void 0;if(bt!==r&&(g=y[k],Vt=!1,St=!_&&l.invertSwap||s),0!==(h=((t,e,i,a,n,o,r,l)=>{t=a?t.clientY:t.clientX;var s=a?i.height:i.width,c=a?i.top:i.left;a=a?i.bottom:i.right,i=!1;if(!r)if(l&&_t<s*n){if(Vt=!Vt&&(1===yt?c+s*o/2<t:t<a-s*o/2)||Vt)i=!0;else if(1===yt?t<c+_t:a-_t<t)return-yt}else if(c+s*(1-n)/2<t&&t<a-s*(1-n)/2)return l=e,E(J)<E(l)?1:-1;return(i=i||r)&&(t<c+s*o/2||a-s*o/2<t)?c+s/2<t?1:-1:0})(t,r,y,a,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,St,bt===r)))for(var D=E(J);(v=Q.children[D-=h])&&("none"===x(v,"display")||v===Z););if(0===h||v===r)return M(!1);yt=h;var O=(bt=r).nextElementSibling,L=!1,F=Bt(tt,n,J,e,r,y,t,L=1===h);if(!1!==F)return 1!==F&&-1!==F||(L=1===F),Dt=!0,setTimeout(jt,30),A(),L&&!O?n.appendChild(J):r.parentNode.insertBefore(J,L?O:r),C&&N(C,0,V-C.scrollTop),Q=J.parentNode,void 0===g||St||(_t=Math.abs(g-S(r)[k])),B(),M(!0)}if(n.contains(J))return M(!1)}return!1}function I(l,s){q(l,p,o({evt:t,isOwner:u,axis:a?"vertical":"horizontal",revert:i,dragRect:e,targetRect:y,canSort:d,fromSortable:m,target:r,completed:M,onMove:function(i,a){return Bt(tt,n,J,e,i,S(i),t,a)},changed:B},s))}function A(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function M(e){return I("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(p),p!==m&&(w(J,(ut||c).options.ghostClass,!1),w(J,l.ghostClass,!0)),ut!==p&&p!==Mt.active?ut=p:p===Mt.active&&(ut=ut&&null),m===p&&(p._ignoreWhileAnimating=r),p.animateAll((function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==m)&&(m.animateAll(),m._ignoreWhileAnimating=null),(r===J&&!J.animated||r===n&&!r.animated)&&(bt=null),l.dragoverBubble||t.rootEl||r===document||(J.parentNode[P]._isOutsideThisEl(t.target),e)||X(t),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),f=!0}function B(){rt=E(J),st=E(J,l.draggable),G({sortable:p,name:"change",toEl:n,newIndex:rt,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",X),g(document,"mousemove",X),g(document,"touchmove",X)},_offUpEvents:function(){var t=this.el.ownerDocument;g(t,"mouseup",this._onDrop),g(t,"touchend",this._onDrop),g(t,"pointerup",this._onDrop),g(t,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;rt=E(J),st=E(J,i.draggable),q("drop",this,{evt:t}),Q=J&&J.parentNode,rt=E(J),st=E(J,i.draggable),Mt.eventCanceled||(Vt=St=xt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zt(this.cloneId),zt(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&x(document.body,"user-select",""),x(J,"transform",""),t&&(vt&&(t.cancelable&&t.preventDefault(),i.dropBubble||t.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(tt===Q||ut&&"clone"!==ut.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),J)&&(this.nativeDraggable&&g(J,"dragend",this),Pt(J),J.style["will-change"]="",vt&&!xt&&w(J,(ut||this).options.ghostClass,!1),w(J,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:t}),tt!==Q?(0<=rt&&(G({rootEl:Q,name:"add",toEl:Q,fromEl:tt,originalEvent:t}),G({sortable:this,name:"remove",toEl:Q,originalEvent:t}),G({rootEl:Q,name:"sort",toEl:Q,fromEl:tt,originalEvent:t}),G({sortable:this,name:"sort",toEl:Q,originalEvent:t})),ut&&ut.save()):rt!==ot&&0<=rt&&(G({sortable:this,name:"update",toEl:Q,originalEvent:t}),G({sortable:this,name:"sort",toEl:Q,originalEvent:t})),Mt.active)&&(null!=rt&&-1!==rt||(rt=ot,st=lt),G({sortable:this,name:"end",toEl:Q,originalEvent:t}),this.save())),this._nulling()},_nulling:function(){q("nulling",this),tt=J=Q=Z=et=at=it=nt=dt=mt=vt=rt=st=ot=lt=bt=yt=ut=ct=Mt.dragged=Mt.ghost=Mt.clone=Mt.active=null,Tt.forEach((function(t){t.checked=!0})),Tt.length=pt=ft=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":var e;J&&(this._onDragOver(t),(e=t).dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable)&&e.preventDefault();break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,a=0,n=i.length,o=this.options;a<n;a++)b(t=i[a],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||(t=>{for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,a=0;i--;)a+=e.charCodeAt(i);return a.toString(36)})(t));return e},sort:function(t){var e={},i=this.el;this.toArray().forEach((function(t,a){a=i.children[a],b(a,this.options.draggable,i,!1)&&(e[t]=a)}),this),t.forEach((function(t){e[t]&&(i.removeChild(e[t]),i.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return b(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var a=W.modifyOption(this,t,e);i[t]=void 0!==a?a:e,"group"===t&&At(i)},destroy:function(){q("destroy",this);var t=this.el;t[P]=null,g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart),g(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ct.splice(Ct.indexOf(this.el),1),this.el=t=null},_hideClone:function(){nt||(q("hideClone",this),Mt.eventCanceled)||(x(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),nt=!0)},_showClone:function(t){"clone"!==t.lastPutMode?this._hideClone():nt&&(q("showClone",this),Mt.eventCanceled||(tt.contains(J)&&!this.options.group.revertClone?tt.insertBefore(at,J):et?tt.insertBefore(at,et):tt.appendChild(at),this.options.group.revertClone&&this.animate(J,at),x(at,"display",""),nt=!1))}},Et&&h(document,"touchmove",(function(t){(Mt.active||xt)&&t.cancelable&&t.preventDefault()})),Mt.utils={on:h,off:g,css:x,find:C,is:function(t,e){return!!b(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:I,closest:b,toggleClass:w,clone:A,index:E,nextTick:Rt,cancelNextTick:zt,detectDirection:Nt,getChild:D},Mt.get=function(t){return t[P]},Mt.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];(e=e[0].constructor===Array?e[0]:e).forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Mt.utils=o({},Mt.utils,t.utils)),W.mount(t)}))},Mt.create=function(t,e){return new Mt(t,e)};var Wt,Ut,qt,Gt,Yt,Ht,Xt=[],Kt=!(Mt.version="1.10.2");function Jt(){Xt.forEach((function(t){clearInterval(t.pid)})),Xt=[]}function Qt(){clearInterval(Ht)}function Zt(t){var e=t.originalEvent,i=t.putSortable,a=t.dragEl,n=t.dispatchSortableEvent,o=t.hideGhostForTarget,r=t.unhideGhostForTarget;e&&(t=i||t.activeSortable,o(),o=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e=document.elementFromPoint(o.clientX,o.clientY),r(),t)&&!t.el.contains(e)&&(n("spill"),this.onSpill({dragEl:a,putSortable:i}))}var te,ee=I((function(t,e,i,a){if(e.scroll){var n,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=V(),u=!1,d=0,m=Wt=Ut!==i&&(Ut=i,Jt(),Wt=e.scroll,n=e.scrollFn,!0===Wt)?L(i,!0):Wt;do{var p=m,f=S(p),h=f.top,g=f.bottom,v=f.left,b=f.right,y=f.width,_=(f=f.height,void 0),w=void 0,k=p.scrollWidth,C=p.scrollHeight,$=x(p),D=p.scrollLeft,T=p.scrollTop;w=p===c?(_=y<k&&("auto"===$.overflowX||"scroll"===$.overflowX||"visible"===$.overflowX),f<C&&("auto"===$.overflowY||"scroll"===$.overflowY||"visible"===$.overflowY)):(_=y<k&&("auto"===$.overflowX||"scroll"===$.overflowX),f<C&&("auto"===$.overflowY||"scroll"===$.overflowY)),$=_&&(Math.abs(b-o)<=l&&D+y<k)-(Math.abs(v-o)<=l&&!!D),_=w&&(Math.abs(g-r)<=l&&T+f<C)-(Math.abs(h-r)<=l&&!!T);if(!Xt[d])for(var E=0;E<=d;E++)Xt[E]||(Xt[E]={});Xt[d].vx==$&&Xt[d].vy==_&&Xt[d].el===p||(Xt[d].el=p,Xt[d].vx=$,Xt[d].vy=_,clearInterval(Xt[d].pid),0==$&&0==_)||(u=!0,Xt[d].pid=setInterval(function(){a&&0===this.layer&&Mt.active._onTouchMove(Yt);var e=Xt[this.layer].vy?Xt[this.layer].vy*s:0,i=Xt[this.layer].vx?Xt[this.layer].vx*s:0;"function"==typeof n&&"continue"!==n.call(Mt.dragged.parentNode[P],i,e,t,Yt,Xt[this.layer].el)||N(Xt[this.layer].el,i,e)}.bind({layer:d}),24)),d++}while(e.bubbleScroll&&m!==c&&(m=L(m,!1)));Kt=u}}),30);function ie(){}function ae(){}function ne(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){t=t.dragEl,te=t},dragOverValid:function(t){var e,i=t.completed,a=t.target,n=t.onMove,o=t.changed,r=t.cancel;t.activeSortable.options.swap&&(t=this.sortable.el,e=this.options,a&&a!==t&&(t=te,te=!1!==n(a)?(w(a,e.swapClass,!0),a):null,t)&&t!==te&&w(t,e.swapClass,!1),o(),i(!0),r())},drop:function(t){var e,i,a,n=t.activeSortable,o=t.putSortable,r=(t=t.dragEl,o||this.sortable),l=this.options;te&&w(te,l.swapClass,!1),te&&(l.swap||o&&o.options.swap)&&t!==te&&(r.captureAnimationState(),r!==n&&n.captureAnimationState(),l=te,t=(o=t).parentNode,a=l.parentNode,t&&a&&!t.isEqualNode(l)&&!a.isEqualNode(o)&&(e=E(o),i=E(l),t.isEqualNode(a)&&e<i&&i++,t.insertBefore(l,t.children[e]),a.insertBefore(o,a.children[i])),r.animateAll(),r!==n)&&n.animateAll()},nulling:function(){te=null}},n(t,{pluginName:"swap",eventProperties:function(){return{swapItem:te}}})}ie.prototype={startIndex:null,dragStart:function(t){t=t.oldDraggableIndex,this.startIndex=t},onSpill:function(t){var e=t.dragEl,i=(t=t.putSortable,this.sortable.captureAnimationState(),t&&t.captureAnimationState(),D(this.sortable.el,this.startIndex,this.options));i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),t&&t.animateAll()},drop:Zt},n(ie,{pluginName:"revertOnSpill"}),ae.prototype={onSpill:function(t){var e=t.dragEl;t=t.putSortable||this.sortable;t.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),t.animateAll()},drop:Zt},n(ae,{pluginName:"removeOnSpill"});var oe,re,le,se,ce,ue=[],de=[],me=!1,pe=!1,fe=!1;function he(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag)),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,i){var a="";ue.length&&re===t?ue.forEach((function(t,e){a+=(e?", ":"")+t.textContent})):a=i.textContent,e.setData("Text",a)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){t=t.dragEl,le=t},delayEnded:function(){this.isMultiDrag=~ue.indexOf(le)},setupClone:function(t){var e=t.sortable;t=t.cancel;if(this.isMultiDrag){for(var i=0;i<ue.length;i++)de.push(A(ue[i])),de[i].sortableIndex=ue[i].sortableIndex,de[i].draggable=!1,de[i].style["will-change"]="",w(de[i],this.options.selectedClass,!1),ue[i]===le&&w(de[i],this.options.chosenClass,!1);e._hideClone(),t()}},clone:function(t){var e=t.sortable,i=t.dispatchSortableEvent,a=t.cancel;this.isMultiDrag&&!this.options.removeCloneOnHide&&ue.length&&re===e&&(ge(!0,t.rootEl),i("clone"),a())},showClone:function(t){var e=t.cloneNowShown,i=t.cancel;this.isMultiDrag&&(ge(!1,t.rootEl),de.forEach((function(t){x(t,"display","")})),e(),ce=!1,i())},hideClone:function(t){var e=this,i=(t.sortable,t.cloneNowHidden);t=t.cancel;this.isMultiDrag&&(de.forEach((function(t){x(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),i(),ce=!0,t())},dragStartGlobal:function(t){t.sortable,!this.isMultiDrag&&re&&re.multiDrag._deselectMultiDrag(),ue.forEach((function(t){t.sortableIndex=E(t)})),ue=ue.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),fe=!0},dragStarted:function(t){var e,i=this;t=t.sortable;this.isMultiDrag&&(this.options.sort&&(t.captureAnimationState(),this.options.animation)&&(ue.forEach((function(t){t!==le&&x(t,"position","absolute")})),e=S(le,!1,!0,!0),ue.forEach((function(t){t!==le&&M(t,e)})),me=pe=!0),t.animateAll((function(){me=pe=!1,i.options.animation&&ue.forEach((function(t){B(t)})),i.options.sort&&ve()})))},dragOver:function(t){var e=t.target,i=t.completed;t=t.cancel;pe&&~ue.indexOf(e)&&(i(!1),t())},revert:function(t){var e,i,a=t.fromSortable,n=t.rootEl,o=t.sortable,r=t.dragRect;1<ue.length&&(ue.forEach((function(t){o.addAnimationState({target:t,rect:pe?S(t):r}),B(t),t.fromRect=r,a.removeAnimationState(t)})),pe=!1,e=!this.options.removeCloneOnHide,i=n,ue.forEach((function(t,a){a=i.children[t.sortableIndex+(e?Number(a):0)],a?i.insertBefore(t,a):i.appendChild(t)})))},dragOverCompleted:function(t){var e,i=t.sortable,a=t.isOwner,n=t.activeSortable,o=t.parentEl,r=t.putSortable,l=this.options;t.insertion&&(a&&n._hideClone(),me=!1,l.animation&&1<ue.length&&(pe||!a&&!n.options.sort&&!r)&&(e=S(le,!1,!0,!0),ue.forEach((function(t){t!==le&&(M(t,e),o.appendChild(t))})),pe=!0),a||(pe||ve(),1<ue.length?(t=ce,n._showClone(i),n.options.animation&&!ce&&t&&de.forEach((function(t){n.addAnimationState({target:t,rect:se}),t.fromRect=se,t.thisAnimationDuration=null}))):n._showClone(i)))},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner;t=t.activeSortable;ue.forEach((function(t){t.thisAnimationDuration=null})),t.options.animation&&!i&&t.multiDrag.isMultiDrag&&(se=n({},e),i=k(le,!0),se.top-=i.f,se.left-=i.e)},dragOverAnimationComplete:function(){pe&&(pe=!1,ve())},drop:function(t){var e=t.originalEvent,i=t.rootEl,a=t.parentEl,n=t.sortable,o=t.dispatchSortableEvent,r=t.oldIndex,l=(t=t.putSortable,t||this.sortable);if(e){var s,c,u,d=this.options,m=a.children;if(!fe)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),w(le,d.selectedClass,!~ue.indexOf(le)),~ue.indexOf(le))ue.splice(ue.indexOf(le),1),oe=null,U({sortable:n,rootEl:i,name:"deselect",targetEl:le,originalEvt:e});else{if(ue.push(le),U({sortable:n,rootEl:i,name:"select",targetEl:le,originalEvt:e}),e.shiftKey&&oe&&n.el.contains(oe)){var p=E(oe),f=E(le);if(~p&&~f&&p!==f)for(var h,g=p<f?(h=p,f):(h=f,p+1);h<g;h++)~ue.indexOf(m[h])||(w(m[h],d.selectedClass,!0),ue.push(m[h]),U({sortable:n,rootEl:i,name:"select",targetEl:m[h],originalEvt:e}))}else oe=le;re=l}fe&&this.isMultiDrag&&((a[P].options.sort||a!==i)&&1<ue.length&&(s=S(le),c=E(le,":not(."+this.options.selectedClass+")"),!me&&d.animation&&(le.thisAnimationDuration=null),l.captureAnimationState(),me||(d.animation&&(le.fromRect=s,ue.forEach((function(t){var e;t.thisAnimationDuration=null,t!==le&&(e=pe?S(t):s,t.fromRect=e,l.addAnimationState({target:t,rect:e}))}))),ve(),ue.forEach((function(t){m[c]?a.insertBefore(t,m[c]):a.appendChild(t),c++})),r===E(le)&&(u=!1,ue.forEach((function(t){t.sortableIndex!==E(t)&&(u=!0)})),u)&&o("update")),ue.forEach((function(t){B(t)})),l.animateAll()),re=l),(i===a||t&&"clone"!==t.lastPutMode)&&de.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=fe=!1,de.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==fe&&fe||re!==this.sortable||t&&b(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;ue.length;){var e=ue[0];w(e,this.options.selectedClass,!1),ue.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},n(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[P];e&&e.options.multiDrag&&!~ue.indexOf(t)&&(re&&re!==e&&(re.multiDrag._deselectMultiDrag(),re=e),w(t,e.options.selectedClass,!0),ue.push(t))},deselect:function(t){var e=t.parentNode[P],i=ue.indexOf(t);e&&e.options.multiDrag&&~i&&(w(t,e.options.selectedClass,!1),ue.splice(i,1))}},eventProperties:function(){var t=this,e=[],i=[];return ue.forEach((function(a){var n;e.push({multiDragElement:a,index:a.sortableIndex}),n=pe&&a!==le?-1:pe?E(a,":not(."+t.options.selectedClass+")"):E(a),i.push({multiDragElement:a,index:n})})),{items:l(ue),clones:[].concat(de),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":1<t.length&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ge(t,e){de.forEach((function(i,a){a=e.children[i.sortableIndex+(t?Number(a):0)],a?e.insertBefore(i,a):e.appendChild(i)}))}function ve(){ue.forEach((function(t){t!==le&&t.parentNode&&t.parentNode.removeChild(t)}))}Mt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){t=t.originalEvent,this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):t.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){t=t.originalEvent,this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),Qt(),Jt(),clearTimeout(y),y=void 0},nulling:function(){Yt=Ut=Wt=Kt=Ht=qt=Gt=null,Xt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i,a=this,n=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(n,o);Yt=t,e||u||c||m?(ee(t,this.options,r,e),i=L(r,!0),!Kt||Ht&&n===qt&&o===Gt||(Ht&&Qt(),Ht=setInterval((function(){var r=L(document.elementFromPoint(n,o),!0);r!==i&&(i=r,Jt()),ee(t,a.options,r,e)}),10),qt=n,Gt=o)):this.options.bubbleScroll&&L(r,!0)!==V()?ee(t,this.options,L(r,!1),!1):Jt()}},n(t,{pluginName:"scroll",initializeByDefault:!0})}),Mt.mount(ae,ie),e.default=Mt},4636:function(t,e,i){i("31d2")},"49e5":function(t,e,i){i("2f8d")},"4d63":function(t,e,i){var a=i("83ab"),n=i("cfe9"),o=i("e330"),r=i("94ca"),l=i("7156"),s=i("9112"),c=i("7c73"),u=i("241c").f,d=i("3a9b"),m=i("44e7"),p=i("577e"),f=i("90d8"),h=i("9f7f"),g=i("aeb0"),v=i("cb2d"),b=i("d039"),y=i("1a2d"),_=i("69f3").enforce,w=i("2626"),x=i("b622"),k=i("fce3"),C=i("107c"),V=x("match"),S=n.RegExp,$=S.prototype,D=n.SyntaxError,T=o($.exec),E=o("".charAt),O=o("".replace),L=o("".indexOf),F=o("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,A=/a/g,M=(i=new S(N)!==N,h.MISSED_STICKY),B=h.UNSUPPORTED_Y;x=a&&(!i||M||k||C||b((function(){return A[V]=!1,S(N)!==N||S(A)===A||"/a/i"!==String(S(N,"i"))})));if(r("RegExp",x)){for(var P=function(t,e){var i,a,n=d($,this),o=m(t),r=void 0===e,u=[],h=t;if(!n&&o&&r&&t.constructor===P)return t;if((o||d($,t))&&(t=t.source,r)&&(e=f(h)),t=void 0===t?"":p(t),e=void 0===e?"":p(e),h=t,o=e=k&&"dotAll"in N&&(i=!!e&&-1<L(e,"s"))?O(e,/s/g,""):e,M&&"sticky"in N&&(a=!!e&&-1<L(e,"y"))&&B&&(e=O(e,/y/g,"")),C&&(t=(r=(t=>{for(var e,i=t.length,a=0,n="",o=[],r=c(null),l=!1,s=!1,u=0,d="";a<=i;a++){if("\\"===(e=E(t,a)))e+=E(t,++a);else if("]"===e)l=!1;else if(!l)switch(!0){case"["===e:l=!0;break;case"("===e:if(n+=e,"?:"===F(t,a+1,a+3))continue;T(I,F(t,a+1))&&(a+=2,s=!0),u++;continue;case">"===e&&s:if(""===d||y(r,d))throw new D("Invalid capture group name");r[d]=!0,s=!(o[o.length]=[d,u]),d="";continue}s?d+=e:n+=e}return[n,o]})(t))[0],u=r[1]),r=l(S(t,e),n?this:$,P),(i||a||u.length)&&(e=_(r),i&&(e.dotAll=!0,e.raw=P((t=>{for(var e,i=t.length,a=0,n="",o=!1;a<=i;a++)"\\"===(e=E(t,a))?n+=e+E(t,++a):o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),n+=e):n+="[\\s\\S]";return n})(t),o)),a&&(e.sticky=!0),u.length)&&(e.groups=u),t!==h)try{s(r,"source",""===h?"(?:)":h)}catch(t){}return r},j=u(S),R=0;j.length>R;)g(P,S,j[R++]);($.constructor=P).prototype=$,v(n,"RegExp",P,{constructor:!0})}w("RegExp")},"4e82":function(t,e,i){var a=i("23e7"),n=i("e330"),o=i("59ed"),r=i("7b0b"),l=i("07fa"),s=i("083a"),c=i("577e"),u=i("d039"),d=i("addb"),m=i("a640"),p=i("3f7e"),f=i("99f4"),h=i("1212"),g=i("ea83"),v=[],b=n(v.sort),y=n(v.push),_=(i=u((function(){v.sort(void 0)})),n=u((function(){v.sort(null)})),m=m("sort"),!u((function(){if(h)return h<70;if(!(p&&3<p)){if(f)return!0;if(g)return g<603;for(var t,e,i,a="",n=65;n<76;n++){switch(t=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(i=0;i<47;i++)v.push({k:t+i,v:e})}for(v.sort((function(t,e){return e.v-t.v})),i=0;i<v.length;i++)t=v[i].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}})));a({target:"Array",proto:!0,forced:i||!n||!m||!_},{sort:function(t){void 0!==t&&o(t);var e=r(this);if(_)return void 0===t?b(e):b(e,t);for(var i,a,n=[],u=l(e),m=0;m<u;m++)m in e&&y(n,e[m]);for(d(n,(a=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==a?+a(t,e)||0:c(t)>c(e)?1:-1})),i=l(n),m=0;m<i;)e[m]=n[m++];for(;m<u;)s(e,m++);return e}})},"4ec9":function(t,e,i){i("6f48")},5334:function(t,e,i){i("4e82"),i("b0c0"),i("99af"),i("a15b"),i("d81d"),i("14d9"),i("a434"),i("e9f5"),i("ab43"),i("d3b7"),i("498a"),i("7d54"),i("a9e3"),i("159b");var a=i("90e7"),n={name:"city",props:{type:{type:Number,default:0},selectArr:{type:Array,default:[]}},data:function(){return{iSselect:!1,addressModal:!1,cityList:[],activeCity:-1,loading:!1}},computed:{},methods:{enter:function(t){this.activeCity=t},leave:function(){this.activeCity=null},getCityList:function(){var t=this;this.loading=!0,Object(a.vb)().then((function(e){t.loading=!1,t.selectArr=[],e.data.forEach((function(e,i,a){e.isShow=!0,e.children.forEach((function(e,i){e.isShow=!0,0<t.selectArr.length&&t.selectArr.forEach((function(t,i){t.children.forEach((function(t,i){e.city_id==t.city_id&&(e.isShow=!1)}))}))}))})),e.data.forEach((function(t,e,i){var a=0,n=0;t.children.forEach((function(t,e){t.isShow?n++:a++})),a==t.children.length&&(t.isShow=!1),t.childNum=n})),t.cityList=e.data}))},allCheckbox:function(){var t=this,e=this.iSselect;t.cityList.forEach((function(i,a){t.$set(t.cityList[a],"checked",e),e?t.$set(t.cityList[a],"count",t.cityList[a].children.length):t.$set(t.cityList[a],"count",0),t.cityList[a].children.forEach((function(i,n){t.$set(t.cityList[a].children[n],"checked",e)}))}))},empty:function(){var t=this;t.cityList.forEach((function(e,i){t.$set(t.cityList[i],"checked",!1),t.cityList[i].children.forEach((function(e,a){t.$set(t.cityList[i].children[a],"checked",!1)})),t.$set(t.cityList[i],"count",0)})),this.iSselect=!1},checkedClick:function(t){var e=this;e.cityList[t].checked?(e.$set(e.cityList[t],"count",e.cityList[t].childNum),e.cityList[t].children.forEach((function(i,a){e.$set(e.cityList[t].children[a],"checked",!0)}))):(e.$set(e.cityList[t],"count",0),e.$set(e.cityList[t],"checked",!1),e.cityList[t].children.forEach((function(i,a){e.$set(e.cityList[t].children[a],"checked",!1)})),e.iSselect=!1)},primary:function(t,e){var i=!1,a=0;this.cityList[t].children.forEach((function(t,e){t.checked&&(i=!0,a++)})),this.$set(this.cityList[t],"count",a),this.$set(this.cityList[t],"checked",i)},confirm:function(){var t=this,e=[];if(t.cityList.forEach((function(i,a){var n={};i.checked&&(n={name:i.name,city_id:i.city_id,children:[]}),t.cityList[a].children.forEach((function(t,e){t.checked&&n.children.push({city_id:t.city_id})})),void 0!==n.city_id&&e.push(n)})),0===e.length)return t.$message.error("至少选择一个省份或者城市");this.$emit("selectCity",e,this.type),t.addressModal=!1,this.cityList=[]},close:function(){this.addressModal=!1,this.cityList=[]}},mounted:function(){}},o=(i("3fed"),i("2877"));n={name:"freightTemplate",components:{city:Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{staticClass:"modal",attrs:{visible:t.addressModal,title:"选择可配送区域",width:"50%"},on:{"update:visible":function(e){t.addressModal=e}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{staticClass:"item",attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[e("div",{staticClass:"acea-row row-right row-middle"},[e("el-checkbox",{on:{change:t.allCheckbox},model:{value:t.iSselect,callback:function(e){t.iSselect=e},expression:"iSselect"}},[t._v("全选")]),e("div",{staticClass:"empty",on:{click:t.empty}},[t._v("清空")])],1)])],1),e("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{gutter:24}},t._l(t.cityList,(function(i,a){return i.isShow?e("el-col",{key:a,staticClass:"item",attrs:{xl:6,lg:6,md:6,sm:8,xs:6}},[e("el-popover",{attrs:{placement:"top-start",width:"600",trigger:"hover","open-delay":600}},[e("div",[e("div",{staticClass:"city"},[e("div",{staticClass:"checkBox"},[e("div",{staticClass:"arrow"}),e("div",t._l(i.children,(function(i,n){return e("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:i.isShow,expression:"city.isShow"}],key:n,staticClass:"itemn",attrs:{label:i.name},on:{change:function(e){return t.primary(a,n)}},model:{value:i.checked,callback:function(e){t.$set(i,"checked",e)},expression:"city.checked"}},[t._v(t._s(i.name))])})),1)])])]),e("el-checkbox",{attrs:{slot:"reference",label:i.name},on:{change:function(e){return t.checkedClick(a)}},slot:"reference",model:{value:i.checked,callback:function(e){t.$set(i,"checked",e)},expression:"item.checked"}},[t._v(t._s(i.name))]),e("span",{staticClass:"red"},[t._v("("+t._s((i.count||0)+"/"+i.childNum)+")")])],1)],1):t._e()})),1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.close}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确定")])],1)],1)],1)}),[],!1,null,"694cd13c",null).exports},props:{},data:function(){return{isTemplate:!1,templateList:[{region:[{name:"默认全国",city_id:0}],regionName:"默认全国",first:1,price:0,continue:1,continue_price:0}],appointList:[],noDeliveryList:[],type:1,formData:{type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},id:0,addressModal:!1,indeterminate:!0,checkAll:!1,checkAllGroup:[],activeCity:-1,provinceAllGroup:[],index:-1,displayData:"",currentProvince:"",selectArr:[],noShippingArr:[],yesShippingArr:[],noDeliveryArr:[]}},computed:{},methods:{close:function(){this.$emit("close")},editFrom:function(t){var e=this;this.id=t,Object(a.kb)(t).then((function(t){var i=t.data.formData;e.templateList=t.data.templateList,e.appointList=t.data.appointList,e.noDeliveryList=t.data.noDeliveryList,e.formData={type:i.type,sort:i.sort,name:i.name,appoint_check:i.appoint_check,no_delivery_check:i.no_delivery_check}}))},selectCity:function(t,e){var i=t.map((function(t){return t.name})).join(";");switch(e){case 1:this.templateList.push({region:t,regionName:i,first:1,price:0,continue:1,continue_price:0}),this.noShippingArr=this.noShippingArr.concat(t);break;case 2:this.appointList.push({place:t,placeName:i,a_num:0,a_price:0}),this.yesShippingArr=this.yesShippingArr.concat(t);break;case 3:this.noDeliveryList.push({place:t,placeName:i}),this.noDeliveryArr=this.noDeliveryArr.concat(t)}},addCity:function(t){this.selectArr=1==t?this.noShippingArr:2==t?this.yesShippingArr:this.noDeliveryArr,this.type=t,this.$refs.city.getCityList(),this.$refs.city.addressModal=!0},changeRadio:function(){},handleSubmit:function(){var t=this,e=this;if(!e.formData.name.trim().length)return e.$message.error("请填写模板名称");for(var i=0;i<e.templateList.length;i++){if(e.templateList[i].first<=0)return e.$message.error("首件/重量/体积应大于0");if(e.templateList[i].price<0)return e.$message.error("运费应大于等于0");if(e.templateList[i].continue<=0)return e.$message.error("续件/重量/体积应大于0");if(e.templateList[i].continue_price<0)return e.$message.error("续费应大于等于0")}if(1===e.formData.appoint_check)for(var n=0;n<e.appointList.length;n++){if(e.appointList[n].a_num<=0)return e.$message.error("包邮件数应大于0");if(e.appointList[n].a_price<0)return e.$message.error("包邮金额应大于等于0")}var o={appoint_info:e.appointList,region_info:e.templateList,no_delivery_info:e.noDeliveryList,sort:e.formData.sort,type:e.formData.type,name:e.formData.name,appoint:e.formData.appoint_check,no_delivery:e.formData.no_delivery_check};Object(a.wb)(e.id,o).then((function(e){t.isTemplate=!1,t.formData={type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},t.appointList=[],t.noDeliveryList=[],t.addressModal=!1,t.templateList=[{region:[{name:"默认全国",city_id:0}],regionName:"默认全国",first:1,price:0,continue:1,continue_price:0}],t.$emit("addSuccess"),t.$message.success(e.msg)}))},delCity:function(t,e,i,a){(1===a?this.templateList:2==a?this.appointList:this.noDeliveryList).splice(i,1)},cancel:function(){this.noShippingArr=[],this.noDeliveryArr=[],this.yesShippingArr=[],this.selectArr=[],this.formData={type:1,sort:0,name:"",appoint_check:0,no_delivery_check:0},this.appointList=[],this.noDeliveryList=[],this.addressModal=!1,this.templateList=[{region:[{name:"默认全国",city_id:0}],regionName:"默认全国",first:0,price:0,continue:0,continue_price:0}]},address:function(){this.addressModal=!0},enter:function(t){this.activeCity=t},leave:function(){this.activeCity=null}},mounted:function(){}},i("1b98"),i=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{attrs:{visible:t.isTemplate,title:"运费模版",width:"1000px",if:"isTemplate"},on:{"update:visible":function(e){t.isTemplate=e},"on-cancel":t.cancel,closed:t.close}},[e("div",{staticClass:"Modals"},[e("el-form",{ref:"formData",staticClass:"form",attrs:{"label-width":"120px","label-position":"right"}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{xl:18,lg:18,md:18,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"模板名称:",prop:"name"}},[e("el-input",{attrs:{type:"text",placeholder:"请输入模板名称",maxlength:20},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})],1)],1)],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{xl:18,lg:18,md:18,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"计费方式:",props:"state","label-for":"state"}},[e("el-radio-group",{staticClass:"radio",attrs:{"element-id":"state"},on:{input:t.changeRadio},model:{value:t.formData.type,callback:function(e){t.$set(t.formData,"type",e)},expression:"formData.type"}},[e("el-radio",{attrs:{label:1}},[t._v("按件数")]),e("el-radio",{attrs:{label:2}},[t._v("按重量")]),e("el-radio",{attrs:{label:3}},[t._v("按体积")])],1)],1)],1)],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[e("el-form-item",{staticClass:"label",attrs:{label:"配送区域及运费:",props:"state","label-for":"state"}},[e("el-table",{ref:"table",staticClass:"ivu-mt",attrs:{data:t.templateList,"empty-text":"暂无数据",border:""}},[e("el-table-column",{attrs:{label:"可配送区域",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{model:{value:t.templateList[i.$index].regionName,callback:function(e){t.$set(t.templateList[i.$index],"regionName",e)},expression:"templateList[scope.$index].regionName"}})]}}])}),e("el-table-column",{attrs:{label:2===t.formData.type?"首件重量(KG)":3===t.formData.type?"首件体积(m³)":"首件",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{attrs:{type:"number"},model:{value:t.templateList[i.$index].first,callback:function(e){t.$set(t.templateList[i.$index],"first",e)},expression:"templateList[scope.$index].first"}})]}}])}),e("el-table-column",{attrs:{label:"运费(元)",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{attrs:{type:"number"},model:{value:t.templateList[i.$index].price,callback:function(e){t.$set(t.templateList[i.$index],"price",e)},expression:"templateList[scope.$index].price"}})]}}])}),e("el-table-column",{attrs:{label:2===t.formData.type?"续件重量(KG)":3===t.formData.type?"续件体积(m³)":"续件",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{attrs:{type:"number"},model:{value:t.templateList[i.$index].continue,callback:function(e){t.$set(t.templateList[i.$index],"continue",e)},expression:"templateList[scope.$index].continue"}})]}}])}),e("el-table-column",{attrs:{label:"续费(元)",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{attrs:{type:"number"},model:{value:t.templateList[i.$index].continue_price,callback:function(e){t.$set(t.templateList[i.$index],"continue_price",e)},expression:"templateList[scope.$index].continue_price"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return["默认全国"!==i.row.regionName?e("a",{on:{click:function(e){return t.delCity(i.row,"配送区域",i.$index,1)}}},[t._v("删除")]):t._e()]}}])})],1),e("el-row",{staticClass:"addTop"},[e("el-col",[e("el-button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.addCity(1)}}},[t._v("添加配送区域")])],1)],1)],1)],1)],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"指定包邮:",prop:"store_name","label-for":"store_name"}},[e("el-radio-group",{staticClass:"radio",model:{value:t.formData.appoint_check,callback:function(e){t.$set(t.formData,"appoint_check",e)},expression:"formData.appoint_check"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),e("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),1===t.formData.appoint_check?e("el-table",{ref:"table",staticClass:"addTop mt10",attrs:{data:t.appointList,"empty-text":"暂无数据",border:""}},[e("el-table-column",{attrs:{label:"选择区域",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{model:{value:t.appointList[i.$index].placeName,callback:function(e){t.$set(t.appointList[i.$index],"placeName",e)},expression:"appointList[scope.$index].placeName"}})]}}],null,!1,1987755132)}),e("el-table-column",{attrs:{label:2===t.formData.type?"包邮重量":3===t.formData.type?"包邮体积(m³)":"包邮件数",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{attrs:{type:"number"},model:{value:t.appointList[i.$index].a_num,callback:function(e){t.$set(t.appointList[i.$index],"a_num",e)},expression:"appointList[scope.$index].a_num"}})]}}],null,!1,1469309913)}),e("el-table-column",{attrs:{label:"包邮金额(元)",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{attrs:{type:"number"},model:{value:t.appointList[i.$index].a_price,callback:function(e){t.$set(t.appointList[i.$index],"a_price",e)},expression:"appointList[scope.$index].a_price"}})]}}],null,!1,2667129250)}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return["默认全国"!==i.row.regionName?e("a",{on:{click:function(e){return t.delCity(i.row,"配送区域",i.$index,2)}}},[t._v("删除")]):t._e()]}}],null,!1,1184296130)})],1):t._e(),1===t.formData.appoint_check?e("div",{staticClass:"free_tips"},[t._v("指定地区需同时满足包邮(件数/重量/体积)和包邮金额的条件,才可实现包邮")]):t._e(),1===t.formData.appoint_check?e("el-row",{staticClass:"addTop mt5"},[e("el-col",[e("el-button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.addCity(2)}}},[t._v("添加包邮区域")])],1)],1):t._e()],1)],1)],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"指定不送达:",prop:"store_name","label-for":"store_name"}},[e("el-radio-group",{staticClass:"radio",model:{value:t.formData.no_delivery_check,callback:function(e){t.$set(t.formData,"no_delivery_check",e)},expression:"formData.no_delivery_check"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),e("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),1===t.formData.no_delivery_check?e("el-table",{ref:"table",staticClass:"addTop mt10",attrs:{data:t.noDeliveryList,"empty-text":"暂无数据",border:""}},[e("el-table-column",{attrs:{label:"选择区域",minWidth:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-input",{model:{value:t.noDeliveryList[i.$index].placeName,callback:function(e){t.$set(t.noDeliveryList[i.$index],"placeName",e)},expression:"noDeliveryList[scope.$index].placeName"}})]}}],null,!1,821089340)}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"100"},scopedSlots:t._u([{key:"default",fn:function(i){return["默认全国"!==i.row.regionName?e("a",{on:{click:function(e){return t.delCity(i.row,"配送区域",i.$index,3)}}},[t._v("删除")]):t._e()]}}],null,!1,443559139)})],1):t._e(),1===t.formData.no_delivery_check?e("el-row",{staticClass:"addTop"},[e("el-col",[e("el-button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.addCity(3)}}},[t._v("添加不送达区域")])],1)],1):t._e()],1)],1)],1),e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{xl:18,lg:18,md:18,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"排序:",prop:"store_name","label-for":"store_name"}},[e("el-input-number",{attrs:{controls:!1,min:0,placeholder:"输入值越大越靠前"},model:{value:t.formData.sort,callback:function(e){t.$set(t.formData,"sort",e)},expression:"formData.sort"}})],1)],1)],1),e("el-row",{attrs:{gutter:24}},[e("el-col",[e("el-form-item",{attrs:{prop:"store_name","label-for":"store_name"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v(t._s(t.id?"立即修改":"立即提交"))])],1)],1)],1)],1)],1),e("div",{attrs:{slot:"footer"},slot:"footer"})]),e("city",{ref:"city",attrs:{type:t.type,selectArr:t.selectArr},on:{selectCity:t.selectCity}})],1)}),[],!1,null,"99351d8a",null);e.a=i.exports},"57b9":function(t,e,i){var a=i("c65b"),n=i("d066"),o=i("b622"),r=i("cb2d");t.exports=function(){var t=n("Symbol"),e=(t=t&&t.prototype,t&&t.valueOf),i=o("toPrimitive");t&&!t[i]&&r(t,i,(function(t){return a(e,this)}),{arity:1})}},"5a47":function(t,e,i){var a=i("23e7"),n=i("04f8"),o=i("d039"),r=i("7418"),l=i("7b0b");a({target:"Object",stat:!0,forced:!n||o((function(){r.f(1)}))},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(l(t)):[]}})},"5a9b":function(t,e,i){},"61f7":function(t,e,i){i.d(e,"a",(function(){return o}));var a=i("ade3"),n=i("5530");function o(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var i,a,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(i in n)new RegExp("(".concat(i,")")).test(e)&&(a=n[i]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.length)));return e}i("99af"),i("13d5"),i("e9f5"),i("9485"),i("b64b"),i("d3b7"),i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("00b4"),i("25f0"),i("5319"),i("498a");var r={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function l(t,e){t.message=function(t){return e.replace("%s",t||"")}}l((function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.a)({required:!0,message:t,type:"string"},e)}),"请输入%s"),l((function(t){return s.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}),"%s格式不正确");var s=Object.keys(r).reduce((function(t,e){return t[e]=function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(n.a)(Object(n.a)({message:i.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},r),o)},l(t[e],r[e]),t}),{})},"6f48":function(t,e,i){i("6d61")("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i("6566"))},"6fd3":function(t,e,i){i("498a"),i("14d9"),i("13d5"),i("a434"),i("e9f5"),i("9485"),i("d3b7");var a=i("c4c8"),n={name:"addAttr",data:function(){return{spinShow:!1,modal_loading:!1,grid:{xl:3,lg:3,md:12,sm:24,xs:24},modal:!1,index:1,rules:{rule_name:[{required:!0,message:"请输入规格名称",trigger:"blur"}]},formDynamic:{rule_name:"",spec:[]},attrsName:"",attrsVal:"",formDynamicNameData:[],isBtn:!1,formDynamicName:[],results:[],result:[],ids:0}},computed:{},methods:{onCancel:function(){this.ids=0,this.clear()},onClose:function(){this.ids=0,this.clear(),this.modal=!1},addBtn:function(){this.isBtn=!0},getIofo:function(t){var e=this;this.spinShow=!0,this.ids=t.id,Object(a.A)(t.id).then((function(t){e.formDynamic=t.data.info,e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$message.error(t.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){return!!t&&(0===e.formDynamic.spec.length?e.$message.warning("请至少添加一条商品规格!"):(e.modal_loading=!0,void setTimeout((function(){Object(a.z)(e.formDynamic,e.ids).then((function(t){e.$message.success(t.msg),setTimeout((function(){e.modal=!1,e.modal_loading=!1}),500),setTimeout((function(){e.$emit("getList"),e.clear()}),600)})).catch((function(t){e.modal_loading=!1,e.$message.error(t.msg)}))}),1200)))}))},clear:function(){this.$refs.formDynamic.resetFields(),this.formDynamic.spec=[],this.isBtn=!1,this.attrsName="",this.attrsVal="",this.ids=0},offAttrName:function(){this.isBtn=!1},handleRemove:function(t){this.formDynamic.spec.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){var t,e;this.attrsName&&this.attrsVal?(t={value:this.attrsName,detail:[this.attrsVal]},this.formDynamic.spec.push(t),e={},this.formDynamic.spec=this.formDynamic.spec.reduce((function(t,i){return e[i.value]||(e[i.value]=t.push(i)),t}),[]),this.attrsName="",this.attrsVal="",this.isBtn=!1):this.$message.warning("请添加规格名称或规格值")},createAttr:function(t,e){var i;t?(this.formDynamic.spec[e].detail.push(t),i={},this.formDynamic.spec[e].detail=this.formDynamic.spec[e].detail.reduce((function(t,e){return i[e]||(i[e]=t.push(e)),t}),[])):this.$message.warning("请添加属性")}}};i("71d8"),i=i("2877"),i=Object(i.a)(n,(function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],attrs:{visible:t.modal,title:"商品规格",width:"1000px"},on:{"update:visible":function(e){t.modal=e},closed:t.onCancel}},[e("el-form",{ref:"formDynamic",staticClass:"attrFrom",attrs:{model:t.formDynamic,rules:t.rules,"label-width":"110px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:"规格模板名称:",prop:"rule_name"}},[e("el-input",{attrs:{placeholder:"请输入标题名称",maxlength:20},model:{value:t.formDynamic.rule_name,callback:function(e){t.$set(t.formDynamic,"rule_name","string"==typeof e?e.trim():e)},expression:"formDynamic.rule_name"}})],1)],1)],1),t._l(t.formDynamic.spec,(function(i,a){return e("el-col",{key:a,staticClass:"noForm",attrs:{span:23}},[e("el-form-item",[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"mr5"},[t._v(t._s(i.value))]),e("i",{staticClass:"el-icon-close",staticStyle:{"font-size":"14px"},on:{click:function(e){return t.handleRemove(a)}}})]),e("div",{staticClass:"rulesBox"},[t._l(i.detail,(function(a,n){return e("el-tag",{key:n,staticClass:"mr14 mb10",attrs:{closable:"",color:"primary"},on:{close:function(e){return t.handleRemove2(i.detail,n)}}},[t._v(t._s(a))])})),e("el-input",{staticClass:"mb10 form_content_width",attrs:{placeholder:"请输入属性名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createAttr(i.detail.attrsVal,a)}},model:{value:i.detail.attrsVal,callback:function(e){t.$set(i.detail,"attrsVal","string"==typeof e?e.trim():e)},expression:"item.detail.attrsVal"}},[e("template",{slot:"append"},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createAttr(i.detail.attrsVal,a)}}},[t._v("确定")])],1)],2)],2)])],1)})),t.isBtn?e("el-col",{staticClass:"mt10",attrs:{span:24}},[e("el-col",{staticClass:"mr15",attrs:{span:8}},[e("el-form-item",{attrs:{label:"规格名称:"}},[e("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.attrsName,callback:function(e){t.attrsName=e},expression:"attrsName"}})],1)],1),e("el-col",{staticClass:"mr20",attrs:{span:8}},[e("el-form-item",{attrs:{label:"规格值:"}},[e("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.attrsVal,callback:function(e){t.attrsVal=e},expression:"attrsVal"}})],1)],1),e("el-col",{attrs:{span:2}},[e("el-button",{attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")])],1),e("el-col",{attrs:{span:2}},[e("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)],1):t._e()],2),t.isBtn?t._e():e("el-button",{staticClass:"add",attrs:{type:"primary"},on:{click:t.addBtn}},[t._v("添加新规格")])],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.onClose}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",loading:t.modal_loading},on:{click:function(e){return t.handleSubmit("formDynamic")}}},[t._v("确定")])],1)],1)}),[],!1,null,"0fec9316",null);e.a=i.exports},"71d8":function(t,e,i){i("33b6")},"9bcc":function(t,e,i){i("5a9b")},a4d3:function(t,e,i){i("d9f5"),i("b4f8"),i("c513"),i("e9c4"),i("5a47")},b4f8:function(t,e,i){var a=i("23e7"),n=i("d066"),o=i("1a2d"),r=i("577e"),l=i("5692"),s=(i=i("0b439"),l("string-to-symbol-registry")),c=l("symbol-to-string-registry");a({target:"Symbol",stat:!0,forced:!i},{for:function(t){var e;t=r(t);return o(s,t)?s[t]:(e=n("Symbol")(t),s[t]=e,c[e]=t,e)}})},b76a:function(t,e,i){var a;a=function(t){return i={"01f9":function(t,e,i){function a(){return this}var n=i("2d00"),o=i("5ca1"),r=i("2aba"),l=i("32e9"),s=i("84f2"),c=i("41a0"),u=i("7f20"),d=i("38fd"),m=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),f="values";t.exports=function(t,e,i,h,g,v,b){function y(t){if(!p&&t in C)return C[t];switch(t){case"keys":case f:return function(){return new i(this,t)}}return function(){return new i(this,t)}}c(i,e,h);h=e+" Iterator";var _,w,x=g==f,k=!1,C=t.prototype,V=C[m]||C["@@iterator"]||g&&C[g],S=V||y(g),$=g?x?y("entries"):S:void 0,D="Array"==e&&C.entries||V;if(D&&(D=d(D.call(new t)))!==Object.prototype&&D.next&&(u(D,h,!0),n||"function"==typeof D[m]||l(D,m,a)),x&&V&&V.name!==f&&(k=!0,S=function(){return V.call(this)}),n&&!b||!p&&!k&&C[m]||l(C,m,S),s[e]=S,s[h]=a,g)if(_={values:x?S:y(f),keys:v?S:y("keys"),entries:$},b)for(w in _)w in C||r(C,w,_[w]);else o(o.P+o.F*(p||k),e,_);return _}},"02f4":function(t,e,i){var a=i("4588"),n=i("be13");t.exports=function(t){return function(e,i){e=String(n(e)),i=a(i);var o,r=e.length;return i<0||r<=i?t?"":void 0:(o=e.charCodeAt(i))<55296||56319<o||i+1===r||(r=e.charCodeAt(i+1))<56320||57343<r?t?e.charAt(i):o:t?e.slice(i,i+2):r-56320+(o-55296<<10)+65536}}},"0390":function(t,e,i){var a=i("02f4")(!0);t.exports=function(t,e,i){return e+(i?a(t,e).length:1)}},"0bfb":function(t,e,i){var a=i("cb7c");t.exports=function(){var t=a(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,i){var a=i("ce10"),n=i("e11e");t.exports=Object.keys||function(t){return a(t,n)}},1495:function(t,e,i){var a=i("86cc"),n=i("cb7c"),o=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(t,e){n(t);for(var i,r=o(e),l=r.length,s=0;s<l;)a.f(t,i=r[s++],e[i]);return t}},"214f":function(t,e,i){i("b0c5");var a,n=i("2aba"),o=i("32e9"),r=i("79e5"),l=i("be13"),s=i("2b4c"),c=i("520a"),u=s("species"),d=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),m=(a=(i=/(?:)/).exec,i.exec=function(){return a.apply(this,arguments)},2===(i="ab".split(i)).length&&"a"===i[0]&&"b"===i[1]);t.exports=function(t,e,i){var a,p,f=s(t),h=!r((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=h?!r((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[u]=function(){return i}),i[f](""),!e})):void 0;h&&g&&("replace"!==t||d)&&("split"!==t||m)||(a=/./[f],i=(g=i(l,f,""[t],(function(t,e,i,n,o){return e.exec===c?h&&!o?{done:!0,value:a.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})))[0],p=g[1],n(String.prototype,t,i),o(RegExp.prototype,f,2==e?function(t,e){return p.call(t,this,e)}:function(t){return p.call(t,this)}))}},"230e":function(t,e,i){var a=i("d3f4"),n=i("7726").document,o=a(n)&&a(n.createElement);t.exports=function(t){return o?n.createElement(t):{}}},"23c6":function(t,e,i){var a=i("2d95"),n=i("2b4c")("toStringTag"),o="Arguments"==a(function(){return arguments}());t.exports=function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=((t,e)=>{try{return t[e]}catch(t){}})(t=Object(t),n))?e:o?a(t):"Object"==(e=a(t))&&"function"==typeof t.callee?"Arguments":e}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,i){var a=i("7726"),n=i("32e9"),o=i("69a8"),r=i("ca5a")("src"),l=i("fa5b"),s="toString",c=(""+l).split(s);i("8378").inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,i,l){var s="function"==typeof i;s&&!o(i,"name")&&n(i,"name",e),t[e]!==i&&(s&&!o(i,r)&&n(i,r,t[e]?""+t[e]:c.join(String(e))),t===a?t[e]=i:l?t[e]?t[e]=i:n(t,e,i):(delete t[e],n(t,e,i)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[r]||l.call(this)}))},"2aeb":function(t,e,i){function a(){}var n=i("cb7c"),o=i("1495"),r=i("e11e"),l=i("613b")("IE_PROTO"),s="prototype",c=function(){var t=i("230e")("iframe"),e=r.length;for(t.style.display="none",i("fab2").appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;e--;)delete c[s][r[e]];return c()};t.exports=Object.create||function(t,e){var i;return null!==t?(a[s]=n(t),i=new a,a[s]=null,i[l]=t):i=c(),void 0===e?i:o(i,e)}},"2b4c":function(t,e,i){var a=i("5537")("wks"),n=i("ca5a"),o=i("7726").Symbol,r="function"==typeof o;(t.exports=function(t){return a[t]||(a[t]=r&&o[t]||(r?o:n)("Symbol."+t))}).store=a},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},"2fdb":function(t,e,i){var a=i("5ca1"),n=i("d2c8"),o="includes";a(a.P+a.F*i("5147")(o),"String",{includes:function(t){return!!~n(this,t,o).indexOf(t,1<arguments.length?arguments[1]:void 0)}})},"32e9":function(t,e,i){var a=i("86cc"),n=i("4630");t.exports=i("9e1e")?function(t,e,i){return a.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},"38fd":function(t,e,i){var a=i("69a8"),n=i("4bf8"),o=i("613b")("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),a(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},"41a0":function(t,e,i){var a=i("2aeb"),n=i("4630"),o=i("7f20"),r={};i("32e9")(r,i("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=a(r,{next:n(1,i)}),o(t,e+" Iterator")}},"456d":function(t,e,i){var a=i("4bf8"),n=i("0d58");i("5eda")("keys",(function(){return function(t){return n(a(t))}}))},4588:function(t,e){var i=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?a:i)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,i){var a=i("be13");t.exports=function(t){return Object(a(t))}},5147:function(t,e,i){var a=i("2b4c")("match");t.exports=function(e){var i=/./;try{"/./"[e](i)}catch(t){try{return i[a]=!1,!"/./"[e](i)}catch(t){}}return!0}},"520a":function(t,e,i){var a,n,o=i("0bfb"),r=RegExp.prototype.exec,l=String.prototype.replace,s=(i=r,"lastIndex"),c=(a=/a/,n=/b*/g,r.call(a,"a"),r.call(n,"a"),0!==a[s]||0!==n[s]),u=void 0!==/()??/.exec("")[1];t.exports=i=c||u?function(t){var e,i,a,n,d=this;return u&&(i=new RegExp("^"+d.source+"$(?!\\s)",o.call(d))),c&&(e=d[s]),a=r.call(d,t),c&&a&&(d[s]=d.global?a.index+a[0].length:e),u&&a&&1<a.length&&l.call(a[0],i,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(a[n]=void 0)})),a}:i},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,i){var a=i("8378"),n=i("7726"),o="__core-js_shared__",r=n[o]||(n[o]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:i("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,i){function a(t,e,i){var u,d,m,p=t&a.F,f=t&a.G,h=t&a.P,g=t&a.B,v=f?n:t&a.S?n[e]||(n[e]={}):(n[e]||{})[c],b=f?o:o[e]||(o[e]={}),y=b[c]||(b[c]={});for(u in i=f?e:i)d=((m=!p&&v&&void 0!==v[u])?v:i)[u],m=g&&m?s(d,n):h&&"function"==typeof d?s(Function.call,d):d,v&&l(v,u,d,t&a.U),b[u]!=d&&r(b,u,m),h&&y[u]!=d&&(y[u]=d)}var n=i("7726"),o=i("8378"),r=i("32e9"),l=i("2aba"),s=i("9b43"),c="prototype";n.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},"5eda":function(t,e,i){var a=i("5ca1"),n=i("8378"),o=i("79e5");t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],r={};r[t]=e(i),a(a.S+a.F*o((function(){i(1)})),"Object",r)}},"5f1b":function(t,e,i){var a=i("23c6"),n=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"==typeof i){if(i=i.call(t,e),"object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(t,e)}},"613b":function(t,e,i){var a=i("5537")("keys"),n=i("ca5a");t.exports=function(t){return a[t]||(a[t]=n(t))}},"626a":function(t,e,i){var a=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},6762:function(t,e,i){var a=i("5ca1"),n=i("c366")(!0);a(a.P,"Array",{includes:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}}),i("9c6c")("includes")},6821:function(t,e,i){var a=i("626a"),n=i("be13");t.exports=function(t){return a(n(t))}},"69a8":function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},"6a99":function(t,e,i){var a=i("d3f4");t.exports=function(t,e){if(!a(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!a(n=i.call(t))||"function"==typeof(i=t.valueOf)&&!a(n=i.call(t))||!e&&"function"==typeof(i=t.toString)&&!a(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,i){var a=i("0d58"),n=i("2621"),o=i("52a7"),r=i("4bf8"),l=i("626a"),s=Object.assign;t.exports=!s||i("79e5")((function(){var t={},e={},i=Symbol(),a="abcdefghijklmnopqrst";return t[i]=7,a.split("").forEach((function(t){e[t]=t})),7!=s({},t)[i]||Object.keys(s({},e)).join("")!=a}))?function(t,e){for(var i=r(t),s=arguments.length,c=1,u=n.f,d=o.f;c<s;)for(var m,p=l(arguments[c++]),f=u?a(p).concat(u(p)):a(p),h=f.length,g=0;g<h;)d.call(p,m=f[g++])&&(i[m]=p[m]);return i}:s},7726:function(t,e){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=t)},"77f1":function(t,e,i){var a=i("4588"),n=Math.max,o=Math.min;t.exports=function(t,e){return(t=a(t))<0?n(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,i){var a=i("86cc").f,n=i("69a8"),o=i("2b4c")("toStringTag");t.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,o)&&a(t,o,{configurable:!0,value:e})}},8378:function(t,e){t=t.exports={version:"2.6.5"},"number"==typeof __e&&(__e=t)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,i){var a=i("cb7c"),n=i("c69a"),o=i("6a99"),r=Object.defineProperty;e.f=i("9e1e")?Object.defineProperty:function(t,e,i){if(a(t),e=o(e,!0),a(i),n)try{return r(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},"9b43":function(t,e,i){var a=i("d8e8");t.exports=function(t,e,i){if(a(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,a){return t.call(e,i,a)};case 3:return function(i,a,n){return t.call(e,i,a,n)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,i){var a=i("2b4c")("unscopables"),n=Array.prototype;null==n[a]&&i("32e9")(n,a,{}),t.exports=function(t){n[a][t]=!0}},"9def":function(t,e,i){var a=i("4588"),n=Math.min;t.exports=function(t){return 0<t?n(a(t),9007199254740991):0}},"9e1e":function(t,e,i){t.exports=!i("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,i){e.exports=t},a481:function(t,e,i){var a=i("cb7c"),n=i("4bf8"),o=i("9def"),r=i("4588"),l=i("0390"),s=i("5f1b"),c=Math.max,u=Math.min,d=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;i("214f")("replace",2,(function(t,e,i,f){return[function(a,n){var o=t(this),r=null==a?void 0:a[e];return void 0!==r?r.call(a,o,n):i.call(String(o),a,n)},function(t,e){var h=f(i,t,this,e);if(h.done)return h.value;for(var g,v=a(t),b=String(this),y="function"==typeof e,_=(y||(e=String(e)),v.global),w=(_&&(g=v.unicode,v.lastIndex=0),[]);null!==(S=s(v,b))&&(w.push(S),_);)""===String(S[0])&&(v.lastIndex=l(b,o(v.lastIndex),g));for(var x,k="",C=0,V=0;V<w.length;V++){for(var S=w[V],$=String(S[0]),D=c(u(r(S.index),b.length),0),T=[],E=1;E<S.length;E++)T.push(void 0===(x=S[E])?x:String(x));var O=S.groups,L=y?(L=[$].concat(T,D,b),void 0!==O&&L.push(O),String(e.apply(void 0,L))):((t,e,a,o,r,l)=>{var s=a+t.length,c=o.length,u=p;return void 0!==r&&(r=n(r),u=m),i.call(l,u,(function(i,n){var l;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,a);case"'":return e.slice(s);case"<":l=r[n.slice(1,-1)];break;default:var u,m=+n;if(0==m)return i;if(c<m)return 0!==(u=d(m/10))&&u<=c?void 0===o[u-1]?n.charAt(1):o[u-1]+n.charAt(1):i;l=o[m-1]}return void 0===l?"":l}))})($,b,D,T,O,e);C<=D&&(k+=b.slice(C,D)+L,C=D+$.length)}return k+b.slice(C)}]}))},aae3:function(t,e,i){var a=i("d3f4"),n=i("2d95"),o=i("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==n(t))}},ac6a:function(t,e,i){for(var a=i("cadf"),n=i("0d58"),o=i("2aba"),r=i("7726"),l=i("32e9"),s=i("84f2"),c=(i=i("2b4c"),i("iterator")),u=i("toStringTag"),d=s.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=n(m),f=0;f<p.length;f++){var h,g=p[f],v=m[g],b=r[g],y=b&&b.prototype;if(y&&(y[c]||l(y,c,d),y[u]||l(y,u,g),s[g]=d,v))for(h in a)y[h]||o(y,h,a[h],!0)}},b0c5:function(t,e,i){var a=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,i){var a=i("6821"),n=i("9def"),o=i("77f1");t.exports=function(t){return function(e,i,r){var l,s=a(e),c=n(s.length),u=o(r,c);if(t&&i!=i){for(;u<c;)if((l=s[u++])!=l)return!0}else for(;u<c;u++)if((t||u in s)&&s[u]===i)return t||u||0;return!t&&-1}}},c649:function(t,e,i){(function(t){i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return o})),i.d(e,"d",(function(){return s})),i("a481");var a,n,o=("undefined"!=typeof window?window:t).console,r=/-(\w)/g,l=(a=function(t){return t.replace(r,(function(t,e){return e?e.toUpperCase():""}))},n=Object.create(null),function(t){return n[t]||(n[t]=a(t))});function s(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,i){i=0===i?t.children[0]:t.children[i-1].nextSibling,t.insertBefore(e,i)}}).call(this,i("c8ba"))},c69a:function(t,e,i){t.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},ca5a:function(t,e){var i=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+a).toString(36))}},cadf:function(t,e,i){var a=i("9c6c"),n=i("d53b"),o=i("84f2"),r=i("6821");t.exports=i("01f9")(Array,"Array",(function(t,e){this._t=r(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,n(1)):n(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},cb7c:function(t,e,i){var a=i("d3f4");t.exports=function(t){if(a(t))return t;throw TypeError(t+" is not an object!")}},ce10:function(t,e,i){var a=i("69a8"),n=i("6821"),o=i("c366")(!1),r=i("613b")("IE_PROTO");t.exports=function(t,e){var i,l=n(t),s=0,c=[];for(i in l)i!=r&&a(l,i)&&c.push(i);for(;e.length>s;)!a(l,i=e[s++])||~o(c,i)||c.push(i);return c}},d2c8:function(t,e,i){var a=i("aae3"),n=i("be13");t.exports=function(t,e,i){if(a(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(n(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,i){var a=i("5ca1"),n=i("9def"),o=i("d2c8"),r="startsWith",l=""[r];a(a.P+a.F*i("5147")(r),"String",{startsWith:function(t){var e=o(this,t,r),i=n(Math.min(1<arguments.length?arguments[1]:void 0,e.length));t=String(t);return l?l.call(e,t,i):e.slice(i,i+t.length)===t}})},f6fd:function(t,e){var i,a,n;i=document,a="currentScript",n=i.getElementsByTagName("script"),a in i||Object.defineProperty(i,a,{get:function(){try{throw new Error}catch(t){var e,i=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(t.stack)||[!1])[1];for(e in n)if(n[e].src==i||"interactive"==n[e].readyState)return n[e];return null}}})},f751:function(t,e,i){var a=i("5ca1");a(a.S+a.F,"Object",{assign:i("7333")})},fa5b:function(t,e,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,i){i=i("7726").document,t.exports=i&&i.documentElement},fb15:function(t,e,i){function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}function n(t,e){var i;if(t)return"string"==typeof t?a(t,e):"Map"===(i="Object"===(i=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}function o(t,e){return(t=>{if(Array.isArray(t))return t})(t)||((t,e)=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],a=!0,n=!1,o=void 0;try{for(var r,l=t[Symbol.iterator]();!(a=(r=l.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){n=!0,o=t}finally{try{a||null==l.return||l.return()}finally{if(n)throw o}}return i}})(t,e)||n(t,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function r(t){return(t=>{if(Array.isArray(t))return a(t)})(t)||(t=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)})(t)||n(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}i.r(e),"undefined"!=typeof window&&(i("f6fd"),l=(l=window.document.currentScript)&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=l[1]),i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d"),i("6762"),i("2fdb");var l=i("a352"),s=i.n(l),c=i("c649");function u(t,e){var i=this;this.$nextTick((function(){return i.$emit(t.toLowerCase(),e)}))}function d(t){return["transition-group","TransitionGroup"].includes(t)}function m(t,e,i){return t[i]||(e[i]?e[i]():void 0)}function p(t,e){function i(t,e){var i;i=o,t=t,void 0!==(e=e)&&((i=i||{})[t]=e),o=i}var a,n,o=null;return i("attrs",Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,i){return e[i]=t[i],e}),{})),e&&(a=e.on,n=e.props,e=e.attrs,i("on",a),i("props",n),Object.assign(o.attrs,e)),o}var f=["Start","Add","Remove","Update","End"],h=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(f,h).map((function(t){return"on"+t})),v=null;l={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e,i,a=this.$slots.default,n=(a=(this.transitionMode=!(!(s=a)||1!==s.length||!(s=o(s,1)[0].componentOptions))&&d(s.tag),s=a,a=this.$slots,n=this.$scopedSlots,i=e=0,(l=m(a,n,"header"))&&(e=l.length,s=s?[].concat(r(l),r(s)):r(l)),(l=m(a,n,"footer"))&&(i=l.length,s=s?[].concat(r(s),r(l)):r(l)),{children:s,headerOffset:e,footerOffset:i}),a.children),l=a.footerOffset,s=(this.headerOffset=a.headerOffset,this.footerOffset=l,p(this.$attrs,this.componentData));return t(this.getTag(),s,n)},created:function(){null!==this.list&&null!==this.value&&c.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&c.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&c.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={},i=(f.forEach((function(i){e["on"+i]=function(t){var e=this;return function(i){null!==e.realList&&e["onDrag"+t](i),u.call(e,t,i)}}.call(t,i)})),h.forEach((function(i){e["on"+i]=u.bind(t,i)})),Object.keys(this.$attrs).reduce((function(e,i){return e[Object(c.a)(i)]=t.$attrs[i],e}),{}));i=Object.assign({},this.options,i,e,{onMove:function(e,i){return t.onDragMove(e,i)}});"draggable"in i||(i.draggable=">*"),this._sortable=new s.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list||this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var i=Object(c.a)(e);-1===g.indexOf(i)&&this._sortable.option(i,t[e])}},getChildrenNodes:function(){var t;return this.noneFunctionalComponentMode?this.$children[0].$slots.default:(t=this.$slots.default,this.transitionMode?t[0].child.$slots.default:t)},computeIndexes:function(){var t=this;this.$nextTick((function(){var e,i,a,n,o,l;t.visibleIndexes=(e=t.getChildrenNodes(),i=t.rootContainer.children,a=t.transitionMode,n=t.footerOffset,e?(o=e.map((function(t){return t.elm})),l=i.length-n,e=r(i).map((function(t,e){return l<=e?o.length:o.indexOf(t)})),a?e.filter((function(t){return-1!==t})):e):[])}))},getUnderlyingVm:function(t){e=this.getChildrenNodes()||[],t=t;var e=e.map((function(t){return t.elm})).indexOf(t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){return t=t.__vue__,t&&t.$options&&d(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){this.list?t(this.list):(t(t=r(this.value)),this.$emit("input",t))},spliceList:function(){var t=arguments;this.alterList((function(e){return e.splice.apply(e,r(t))}))},updatePosition:function(t,e){this.alterList((function(i){return i.splice(e,0,i.splice(t,1)[0])}))},getRelatedContextFromMoveEvent:function(t){var e=t.to,i=(t=t.related,this.getUnderlyingPotencialDraggableComponent(e));if(!i)return{component:i};var a=i.realList,n={list:a,component:i};return e!==t&&a&&i.getUnderlyingVm&&(e=i.getUnderlyingVm(t),e)?Object.assign(e,n):n},getVmIndex:function(t){var e=this.visibleIndexes,i=e.length;return i-1<t?i:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){this.noTransitionOnDrag&&this.transitionMode&&(this.getChildrenNodes()[t].data=null,(t=this.getComponent()).children=[],t.kept=void 0)},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),v=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;void 0!==e&&(Object(c.d)(t.item),t=this.getVmIndex(t.newIndex),this.spliceList(t,0,e),this.computeIndexes(),this.emitChanges({added:{element:e,newIndex:t}}))},onDragRemove:function(t){var e;Object(c.c)(this.rootContainer,t.item,t.oldIndex),"clone"===t.pullMode?Object(c.d)(t.clone):(t=this.context.index,this.spliceList(t,1),e={element:this.context.element,oldIndex:t},this.resetTransitionData(t),this.emitChanges({removed:e}))},onDragUpdate:function(t){Object(c.d)(t.item),Object(c.c)(t.from,t.item,t.oldIndex);var e=this.context.index;t=this.getVmIndex(t.newIndex),this.updatePosition(e,t),e={element:this.context.element,oldIndex:e,newIndex:t};this.emitChanges({moved:e})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){var i,a;return t.element?(a=(i=r(e.to.children).filter((function(t){return"none"!==t.style.display}))).indexOf(e.related),t=t.component.getVmIndex(a),-1===i.indexOf(v)&&e.willInsertAfter?t+1:t):0},onDragMove:function(t,e){var i,a,n,o=this.move;return!o||!this.realList||(i=this.getRelatedContextFromMoveEvent(t),a=this.context,n=this.computeFutureIndex(i,t),Object.assign(a,{futureIndex:n}),o(Object.assign({},t,{relatedContext:i,draggedContext:a}),e))},onDragEnd:function(){this.computeIndexes(),v=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",l),e.default=l}},a={},e.m=i,e.c=a,e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:a})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(e.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(a,n,function(e){return t[e]}.bind(null,n));return a},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="fb15").default;function e(t){var n;return(a[t]||(n=a[t]={i:t,l:!1,exports:{}},i[t].call(n.exports,n,n.exports,e),n.l=!0,n)).exports}var i,a},t.exports=a(i("4603"))},c476:function(t,e,i){i("dbb9")},c4ad:function(t,e,i){i.r(e),i("99af"),i("14d9"),i("e9f5"),i("7d54"),i("a9e3"),i("d3b7"),i("159b");var a=i("c4c8"),n={name:"index",props:{is_new:{type:String,default:""},type:{type:Number,default:0},diy:{type:Boolean,default:!1},ischeckbox:{type:Boolean,default:!1},liveStatus:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},isdiy:{type:Boolean,default:!1},selectIds:{type:Array,default:function(){return[]}},datas:{type:Object,default:function(){return{}}}},data:function(){return{templateRadio:0,modal_loading:!1,treeSelect:[],formValidate:{page:1,limit:15,cate_id:"",store_name:"",is_new:this.is_new},total:0,modals:!1,loading:!1,grid:{xl:10,lg:10,md:12,sm:24,xs:24},tableList:[],currentid:0,productRow:{},images:[],many:"",goodType:"",goodList:[{activeValue:0,title:"商品列表"},{activeValue:"4",title:"热门榜单"},{activeValue:"5",title:"首发新品"},{activeValue:"6",title:"促销单品"},{activeValue:"7",title:"精品推荐"}]}},computed:{},watch:{ischeckbox:{handler:function(t,e){t&&(this.many="many")},immediate:!0}},created:function(){var t="";t=this.ischeckbox?"many":this.$route.query.type;this.many=t},mounted:function(){this.goodsCategory()},methods:{productList:function(){this.formValidate.page,this.formValidate.limit,this.formValidate.cate_id,this.formValidate.store_name,this.type||this.goodType,this.loading=!0},getTemplateRow:function(t){var e=[],i={image:t.image,product_id:t.id,store_name:t.store_name,temp_id:t.temp_id};e.push(i),this.images=e,this.diyVal=t,this.$emit("getProductId",t)},changeCheckbox:function(t){var e=[];t.forEach((function(t){t={image:t.image,product_id:t.id,store_name:t.store_name,temp_id:t.temp_id},e.push(t)})),this.images=e,this.diyVal=t},goodsCategory:function(){var t=this;Object(a.d)(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$message.error(e.msg)}))},ok:function(){var t;0<this.images.length?"image"===this.$route.query.fodder?(t=form_create_helper.get("image"),form_create_helper.set("image",t.concat(this.images)),form_create_helper.close("image")):(this.$refs.table.clearSelection(),this.isdiy?this.$emit("getProductId",this.diyVal):this.$emit("getProductId",this.images)):this.$message.warning("请先选择商品")},userSearchs:function(){this.currentid=0,this.productRow={},this.formValidate.page=1},clear:function(){this.productRow.id="",this.currentid=""}}};i("4636"),i=i("2877"),i=Object(i.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goodList"},[e("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":"80px","label-position":"right",inline:""}},[t.liveStatus?t._e():e("el-form-item",{attrs:{label:"商品分类:"}},[e("el-cascader",{staticClass:"form_content_width",attrs:{size:"small",options:t.treeSelect,props:{checkStrictly:!0,emitPath:!1},clearable:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}})],1),!t.type&&t.diy?e("el-form-item",{attrs:{label:"商品类型:"}},[e("el-select",{staticClass:"form_content_width",attrs:{clearable:""},on:{change:t.userSearchs},model:{value:t.goodType,callback:function(e){t.goodType=e},expression:"goodType"}},t._l(t.goodList,(function(t){return e("el-option",{key:t.activeValue,attrs:{value:t.activeValue,label:t.title}})})),1)],1):t._e(),e("el-form-item",{attrs:{label:"商品搜索:"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入商品名称/关键字/编号"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}}),e("el-button",{staticClass:"ml15",attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{"empty-text":"暂无数据","max-height":"400","highlight-current-row":"many"!==t.many,data:t.tableList},on:{select:t.changeCheckbox,"select-all":t.changeCheckbox}},["many"==t.many?e("el-table-column",{attrs:{type:"selection",width:"55"}}):e("el-table-column",{attrs:{width:"50"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-radio",{attrs:{label:i.row.id},nativeOn:{change:function(e){return t.getTemplateRow(i.row)}},model:{value:t.templateRadio,callback:function(e){t.templateRadio=e},expression:"templateRadio"}},[t._v(" ")])]}}])}),e("el-table-column",{attrs:{label:"商品ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.id))])]}}])}),e("el-table-column",{attrs:{label:"图片",width:"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.image,expression:"scope.row.image"}]})])]}}])}),e("el-table-column",{attrs:{label:"商品名称","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.store_name))])]}}])}),t.liveStatus?e("el-table-column",{attrs:{label:"商品分类","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.cate_name))])]}}],null,!1,2696455405)}):t._e()],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.pageChange}}):t._e(),"many"!==t.many||t.diy?t._e():e("el-button",{staticClass:"ml15",attrs:{type:"primary"},on:{click:t.ok}},[t._v("提交")])],1)],1)}),[],!1,null,"31ebdbe9",null);e.default=i.exports},c513:function(t,e,i){var a=i("23e7"),n=i("1a2d"),o=i("d9b5"),r=i("0d51"),l=i("5692"),s=(i=i("0b439"),l("symbol-to-string-registry"));a({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!o(t))throw new TypeError(r(t)+" is not a symbol");if(n(s,t))return s[t]}})},c607:function(t,e,i){var a=i("83ab"),n=i("fce3"),o=i("c6b6"),r=i("edd0"),l=i("69f3").get,s=RegExp.prototype,c=TypeError;a&&n&&r(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if("RegExp"===o(this))return!!l(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},c7e8:function(t,e,i){i.r(e),i("caad"),i("4e82"),i("b0c0"),i("498a");var a=i("ade3"),n=i("2909"),o=i("c7eb"),r=i("1da1"),l=i("06c5");function s(t,e){var i,a,n,o,r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return n=!(a=!0),{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){n=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(n)throw i}}};if(Array.isArray(t)||(r=Object(l.a)(t))||e&&t&&"number"==typeof t.length)return r&&(t=r),o=0,{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=i("5530"),u=(i("a4d3"),i("e01a"),i("99af"),i("4de4"),i("d81d"),i("14d9"),i("13d5"),i("fb6a"),i("a434"),i("e9f5"),i("910d"),i("7d54"),i("ab43"),i("9485"),i("e9c4"),i("4ec9"),i("a9e3"),i("b64b"),i("d3b7"),i("ac1f"),i("25f0"),i("3ca3"),i("5319"),i("159b"),i("ddb0"),i("0f0e")),d=i("2f62"),m=i("b76a"),p=(m=i.n(m),i("b0e7")),f=i("5334"),h=i("e449"),g=i("6fd3"),v=i("c4ad"),b=(i("00b4"),i("c4c8")),y={name:"taoBao",data:function(){return{soure_link:"",spinShow:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},grid2:{xl:12,lg:12,md:12,sm:24,xs:24},copyConfig:{copy_type:2,copy_num:0},artFrom:{type:"taobao",url:""}}},computed:{},created:function(){},mounted:function(){this.getCopyConfig()},methods:{mealPay:function(){this.$router.push({path:this.$routeProStr+"/setting/sms/sms_config/index"})},getCopyConfig:function(){var t=this;Object(b.f)().then((function(e){t.copyConfig.copy_type=e.data.copy_type,t.copyConfig.copy_num=e.data.copy_num}))},add:function(){var t=this;if(this.soure_link){if(!/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.spinShow=!0,this.artFrom.url=this.soure_link,Object(b.g)(this.artFrom).then((function(e){e=e.data.productInfo,t.$emit("on-close",e),t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$message.error(e.msg)}))}else this.$message.warning("请输入链接地址!")}}},_=(i("49e5"),i("2877")),w=(y=Object(_.a)(y,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],staticClass:"Box"},[e("div",[e("div",{staticClass:"tips"},[t._v("\n 生成的商品默认是没有上架的,请手动上架商品!\n "),2==t.copyConfig.copy_type?e("a",{attrs:{href:"https://doc.crmeb.com/single/v5/7785",target:"_blank"}},[t._v("如何配置密钥")]):e("span",[t._v("您当前剩余"+t._s(t.copyConfig.copy_num)+"条采集次数,"),e("span",{staticClass:"add",on:{click:function(e){return t.mealPay()}}},[t._v("增加采集次数")])])]),e("div",[t._v("商品采集设置:设置 > 系统设置 > 第三方接口设置 > 采集商品配置")])]),e("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{"label-width":"80px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"链接地址:"}},[e("el-input",{staticClass:"numPut",attrs:{clearable:"",placeholder:"请输入链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),e("el-button",{staticClass:"ml15",attrs:{type:"primary"},on:{click:t.add}},[t._v("确定")])],1)],1)],1)}),[],!1,null,"e911d200",null).exports,i("a069")),x=i("c24f"),k=i("d708"),C=i("c276"),V=i("0e5c");p={name:"product_productAdd",components:{uploadPictures:p.a,freightTemplate:f.a,addAttr:g.a,couponList:h.a,taoBao:y,draggable:m.a,goodsList:v.default,WangEditor:w.a,userLabel:u.a},data:function(){return{labelShow:!1,dataLabel:[],headTab:[{tit:"基础信息",name:"1"},{tit:"规格库存",name:"2"},{tit:"商品详情",name:"3"},{tit:"物流设置",name:"4"},{tit:"营销设置",name:"5"},{tit:"其他设置",name:"6"}],virtual:[{tit:"普通商品",id:0,tit2:"物流发货"},{tit:"卡密/网盘",id:1,tit2:"自动发货"},{tit:"虚拟商品",id:3,tit2:"虚拟发货"}],seletVideo:0,customBtn:!1,content:"",contents:"",fileUrl:k.a.apiBaseURL+"/file/upload",fileUrl2:k.a.apiBaseURL+"/file/video_upload",cardUrl:k.a.apiBaseURL+"/file/upload/1",upload_type:"",uploadData:{},header:{},type:0,modals:!1,goods_modals:!1,spinShow:!1,openSubimit:!1,virtualData:"",virtualList:[{key:"",value:""}],grid2:{xl:10,lg:12,md:12,sm:24,xs:24},grid3:{xl:18,lg:18,md:20,sm:24,xs:24},oneFormBatch:[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,virtual_list:[]}],formDynamic:{attrsName:"",attrsVal:""},disk_type:1,tabIndex:0,tabName:"",formDynamicNameData:[],isBtn:!1,columns2:[{title:"图片",slot:"pic",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"原价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"重量(KG)",slot:"weight",align:"center",minWidth:95},{title:"体积(m³)",slot:"volume",align:"center",minWidth:95},{title:"操作",slot:"action",fixed:"right",align:"center",minWidth:120}],columns3:[{title:"图片",slot:"pic",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:95},{title:"成本价",slot:"cost",align:"center",minWidth:95},{title:"原价",slot:"ot_price",align:"center",minWidth:95},{title:"库存",slot:"stock",align:"center",minWidth:95},{title:"商品编号",slot:"bar_code",align:"center",minWidth:120},{title:"操作",slot:"action",fixed:"right",align:"center",minWidth:120}],columns:[],columnsInstall:[],columnsInstal2:[],gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"data",label:"日期"},{value:"time",label:"时间"},{value:"id",label:"身份证"},{value:"phone",label:"手机号"},{value:"img",label:"图片"}],customess:{content:[]},formValidate:{disk_info:"",logistics:["1"],freight:2,postage:0,recommend:[],presale_day:1,presale:!1,is_limit:!1,limit_type:0,limit_num:0,video_open:!1,vip_product:!1,custom_form:[],store_name:"",cate_id:[],label_id:[],keyword:"",unit_name:"",store_info:"",image:"",recommend_image:"",slider_image:[],description:"",ficti:0,give_integral:0,sort:0,is_show:1,is_hot:0,is_benefit:0,is_best:0,is_new:0,is_good:0,is_postage:0,is_sub:[],recommend_list:[],virtual_type:0,id:0,spec_type:0,is_virtual:0,video_link:"",temp_id:"",attrs:[],items:[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:""}],activity:["默认","秒杀","砍价","拼团"],couponName:[],header:[],selectRule:"",coupon_ids:[],command_word:"",min_qty:1},ruleList:[],templateList:[],createBnt:!0,showIput:!1,manyFormValidate:[],oneFormValidate:[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,vip_price:0,virtual_list:[],coupon_id:0}],images:[],imagesTable:"",currentTab:"1",isChoice:"",grid:{xl:8,lg:8,md:12,sm:24,xs:24},loading:!1,modalPic:!1,addVirtualModel:!1,template:!1,uploadList:[],treeSelect:[],picTit:"",tableIndex:0,ruleValidate:{store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],cate_id:[{required:!0,message:"请选择商品分类",trigger:"change",type:"array",min:"1"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],is_virtual:[{required:!0,message:"请选择商品类型",trigger:"change"}],selectRule:[{required:!0,message:"请选择商品规格属性",trigger:"change"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change",type:"number"}],presale_time:[{required:!0,type:"array",message:"请选择活动时间",trigger:"change"}],logistics:[{required:!0,type:"array",min:1,message:"请选择物流方式",trigger:"change"},{type:"array",max:2,message:"请选择物流方式",trigger:"change"}],give_integral:[{type:"integer",message:"请输入整数"}]},manyBrokerage:0,manyBrokerageTwo:0,manyVipPrice:0,upload:{videoIng:!1},videoIng:!1,progress:0,stock:0,disk_info:"",videoLink:"",attrs:[],activity:{"默认":"red","秒杀":"blue","砍价":"green","拼团":"yellow"},couponName:[],updateIds:[],updateName:[],couponIds:"",couponNames:[],rakeBack:[{title:"一级返佣",slot:"brokerage",align:"center",width:95},{title:"二级返佣",slot:"brokerage_two",align:"center",width:95}],member:[{title:"会员价",slot:"vip_price",align:"center",width:95}],columnsInstalM:[],moveIndex:""}},computed:Object(c.a)(Object(c.a)({},Object(d.c)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"120px"},labelPosition:function(){return this.isMobile?"top":"right"},labelBottom:function(){return this.isMobile?void 0:"15px"}}),beforeRouteUpdate:function(t,e,i){this.bus.$emit("onTagsViewRefreshRouterView",this.$route.path),i()},created:function(){this.columns=this.columns2.slice(0,8),this.getToken()},mounted:function(){var t=this;"0"!==this.$route.params.id&&this.$route.params.id?this.getInfo():"0"===this.$route.params.id&&Object(b.n)().then((function(e){var i,a;e=e.data.info;Array.isArray(e)||(i=e.cate_id.map(Number),e.label_id.map(Number),t.attrs=e.items||[],a=[],e.coupons&&(e.coupons.map((function(t){a.push(t.id)})),t.couponName=e.coupons),t.formValidate=e,t.dataLabel=e.label_id,t.formValidate.coupon_ids=a,t.updateIds=a,t.updateName=e.coupons,t.formValidate.cate_id=i,t.oneFormValidate=e.attrs,t.formValidate.logistics=e.logistics||["1"],t.formValidate.header=[],t.generate(0),t.manyFormValidate=e.attrs,t.spec_type=e.spec_type,t.formValidate.is_virtual=e.is_virtual,t.formValidate.custom_form=e.custom_form||[],0!=t.formValidate.custom_form.length&&(t.customBtn=!0),t.virtualbtn(e.virtual_type,1),0===e.spec_type?t.manyFormValidate=[]:(t.createBnt=!0,t.oneFormValidate=[{pic:e.image,price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,vip_price:0,virtual_list:[],coupon_id:0}]),t.spinShow=!1)})).catch((function(e){t.$message.error(e.msg)})),this.$route.query.type?(this.modals=!0,this.type=this.$route.query.type):this.type=0,this.goodsCategory(),this.productGetRule(),this.productGetTemplate(),this.uploadType()},methods:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({videoSaveToUrl:function(t){var e=this;return Object(V.a)({file:t,pieceSize:3,success:function(t){e.formValidate.video_link=t.file_path,e.progress=100},error:function(t){e.$message.error(t.msg)},uploading:function(t,i){e.videoIng=!0,t=Math.floor(t/i*100),e.progress=t}}),!1},virtualbtn:function(t,e){var i=this;switch(1!=e&&(this.formValidate.is_sub=[],(e=this.$route.params.id)?Object(b.e)(e).then((function(t){})).catch((function(t){i.formValidate.spec_type=i.spec_type,i.$message.error(t.msg)})):1==this.formValidate.spec_type&&this.generate(1)),t){case 0:this.formValidate.virtual_type=0,this.formValidate.is_virtual=0,this.headTab=[{tit:"基础信息",name:"1"},{tit:"规格库存",name:"2"},{tit:"商品详情",name:"3"},{tit:"物流设置",name:"4"},{tit:"营销设置",name:"5"},{tit:"其他设置",name:"6"}];break;case 1:this.formValidate.virtual_type=1,this.formValidate.postage=0,this.formValidate.is_virtual=1,this.headTab=[{tit:"基础信息",name:"1"},{tit:"规格库存",name:"2"},{tit:"商品详情",name:"3"},{tit:"营销设置",name:"4"},{tit:"其他设置",name:"5"}];break;case 2:this.formValidate.virtual_type=2,this.formValidate.is_virtual=1,this.headTab=[{tit:"基础信息",name:"1"},{tit:"规格库存",name:"2"},{tit:"商品详情",name:"3"},{tit:"营销设置",name:"4"},{tit:"其他设置",name:"5"}];break;case 3:this.formValidate.virtual_type=3,this.formValidate.is_virtual=1,this.headTab=[{tit:"基础信息",name:"1"},{tit:"规格库存",name:"2"},{tit:"商品详情",name:"3"},{tit:"营销设置",name:"4"},{tit:"其他设置",name:"5"}]}},addCate:function(){var t=this;this.$modalForm(Object(b.o)()).then((function(){return t.goodsCategory()}))},logisticsBtn:function(t){this.formValidate.logistics=t},addLabel:function(){var t=this;this.$modalForm(Object(x.J)(0)).then((function(){return t.userLabel()}))},customMessBtn:function(t){t||(this.formValidate.custom_form=[])},addcustom:function(){9<this.formValidate.custom_form.length?this.$message.warning("最多添加10条"):this.formValidate.custom_form.push({title:"",label:"text",value:"",status:!1})},delcustom:function(t){this.formValidate.custom_form.splice(t,1)},onchangeTime:function(t){this.formValidate.presale_time=t},getEditorContent:function(t){this.content=t},cancel:function(){this.modals=!1},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(C.c)("token")},upFile:function(t){var e=this;Object(b.l)({file:t.data.src}).then((function(t){e.virtualList=e.virtualList.concat(t.data)}))},uploadType:function(){var t=this;Object(b.G)().then((function(e){t.upload_type=e.data.upload_type}))},infoData:function(t,e){var i=t.cate_id.map(Number),a=(t.label_id.map(Number),this.attrs=t.items||[],[]);t.coupons.map((function(t){a.push(t.id)})),this.formValidate=t,this.seletVideo=t.seletVideo,this.contents=t.description,this.couponName=t.coupons,this.formValidate.coupon_ids=a,this.updateIds=a,this.dataLabel=t.label_id,this.updateName=t.coupons,this.virtualbtn(t.virtual_type,1),this.formValidate.logistics=t.logistics||["1"],this.formValidate.custom_form=t.custom_form||[],0!=this.formValidate.custom_form.length&&(this.customBtn=!0),this.formValidate.cate_id=i,t.attr&&(this.oneFormValidate=[t.attr]),this.formValidate.header=[],this.generate(0,e,t.attrs),this.spec_type=t.spec_type,this.formValidate.is_virtual=t.is_virtual,0===t.spec_type?this.manyFormValidate=[]:(this.createBnt=!0,this.oneFormValidate=[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,brokerage:0,brokerage_two:0,vip_price:0,virtual_list:[],coupon_id:0}])},onClose:function(t){this.modals=!1,this.infoData(t,1)},checkMove:function(t){this.moveIndex=t.draggedContext.index},end:function(){this.moveIndex="",this.generate(1)},checkAllGroupChange:function(t){this.checkAllGroup(t)},checkAllGroup:function(t){0===this.formValidate.spec_type?(-1<t.indexOf(0)?this.columnsInstall=this.columns2.slice(0,4).concat(this.member):-1<t.indexOf(1)?this.columnsInstall=this.columns2.slice(0,4).concat(this.rakeBack):this.columnsInstall=this.columns2.slice(0,4),2===t.length&&(this.columnsInstall=this.columns2.slice(0,4).concat(this.rakeBack).concat(this.member))):(-1<t.indexOf(0)?this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.member):-1<t.indexOf(1)?this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.rakeBack):this.columnsInstal2=this.columnsInstalM.slice(0,4),2===t.length&&(this.columnsInstal2=this.columnsInstalM.slice(0,4).concat(this.rakeBack).concat(this.member)))},addVirtual:function(t,e){this.tabIndex=t,this.tabName=e,this.addVirtualModel=!0},upVirtual:function(){if(2==this.disk_type){for(var t=0;t<this.virtualList.length;t++)if(!this.virtualList[t].value)return void this.$message.error("请输入所有卡密");this.$set(this[this.tabName][this.tabIndex],"virtual_list",this.virtualList),this.$set(this[this.tabName][this.tabIndex],"stock",this.virtualList.length),this.virtualList=[{key:"",value:""}],this.$set(this[this.tabName][this.tabIndex],"disk_info","")}else{if(!this.disk_info.length)return this.$message.error("请填写卡密信息");if(!this.stock)return this.$message.error("请填写库存数量");this.$set(this[this.tabName][this.tabIndex],"stock",Number(this.stock)),this.$set(this[this.tabName][this.tabIndex],"stock",Number(this.stock)),this.$set(this[this.tabName][this.tabIndex],"disk_info",this.disk_info),this.$set(this[this.tabName][this.tabIndex],"virtual_list",[])}this.addVirtualModel=!1,this.closeVirtual()},closeVirtual:function(){this.addVirtualModel=!1,this.virtualList=[{key:"",value:""}],this.disk_info="",this.stock=0},unique:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.id)&&e.set(t.id,1)}))},nameId:function(t,e){this.formValidate.coupon_ids=t,this.couponName=this.unique(e)},goodsCouponId:function(t){this.$set(this[this.tabName][this.tabIndex],"coupon_id",t.id),this.$set(this[this.tabName][this.tabIndex],"coupon_name",t.title),this.$refs.goodsCoupon.isTemplate=!1},handleClose:function(t){t=this.couponName.indexOf(t);var e=(this.couponName.splice(t,1),this.formValidate.coupon_ids);e.splice(t,1),this.updateIds=e,this.updateName=this.couponName},getList:function(){this.productGetTemplate()},addTemp:function(){this.$refs.templates.isTemplate=!0},delVideo:function(){var t=this;t.$set(t.formValidate,"video_link",""),t.$set(t,"progress",0),t.videoIng=!1,t.upload.videoIng=!1},zh_uploadFile:function(){1==this.seletVideo?this.formValidate.video_link=this.videoLink:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;if(-1===t.target.files[0].name.substr(t.target.files[0].name.indexOf(".")).indexOf(".mp4"))return e.$message.error("只能上传MP4文件");var i={key:t.target.files[0].name,contentType:t.target.files[0].type};Object(b.r)(i).then((function(i){e.$videoCloud.videoUpload({type:i.data.type,evfile:t,res:i,uploading:function(t,a){e.upload.videoIng=t,200==i.status&&(e.progress=100)}}).then((function(t){e.formValidate.video_link=t.url,e.$message.success("视频上传成功"),e.upload.videoIng=!1})).catch((function(t){e.$message.error(t)}))})).catch((function(t){e.$message.error(t.msg)}))},upTab:function(){this.currentTab=(Number(this.currentTab)-1).toString()},downTab:function(){this.currentTab=(Number(this.currentTab)+1).toString()},userSearchs:function(){this.productGetRule()},addRule:function(){this.$refs.addattr.modal=!0},brokerageSetUp:function(){var t=this;if(-1<t.formValidate.is_sub.indexOf(1)){if(t.manyBrokerage<=0||t.manyBrokerageTwo<=0)return t.$message.error("请填写返佣金额后进行批量添加")}else if(-1<t.formValidate.is_sub.indexOf(0)&&t.manyVipPrice<=0)return t.$message.error("请填写会员价后进行批量添加");if(2===this.formValidate.is_sub.length&&(t.manyBrokerage<=0||t.manyBrokerageTwo<=0||t.manyVipPrice<=0))return t.$message.error("请填写完金额后进行批量添加");var e,i=s(t.manyFormValidate);try{for(i.s();!(e=i.n()).done;){var a=e.value;this.$set(a,"brokerage",t.manyBrokerage),this.$set(a,"brokerage_two",t.manyBrokerageTwo),this.$set(a,"vip_price",t.manyVipPrice)}}catch(t){i.e(t)}finally{i.f()}},vipPriceSetUp:function(){if(this.manyVipPrice<=0)return this.$message.error("请填写会员价在进行批量添加");var t,e=s(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.$set(i,"vip_price",this.manyVipPrice)}}catch(t){e.e(t)}finally{e.f()}},handleAdd:function(){this.virtualList.push({key:"",value:""})},initVirtualData:function(t){this.virtualList=[{key:"",value:""}]},removeVirtual:function(t){this.virtualList.splice(t,1)},batchDel:function(){this.oneFormBatch=[{pic:"",price:0,cost:0,ot_price:0,stock:0,bar_code:"",weight:0,volume:0,virtual_list:[]}]},confirm:function(){var t=this;if(t.createBnt=!0,t.formValidate.selectRule.trim().length<=0)return t.$message.error("请选择属性");t.ruleList.forEach((function(e,i){e.rule_name===t.formValidate.selectRule&&(t.attrs=e.rule_value)}))},productGetRule:function(){var t=this;Object(b.q)().then((function(e){t.ruleList=e.data}))},productGetTemplate:function(){var t=this;Object(b.s)().then((function(e){t.templateList=e.data}))},delAttrTable:function(t){var e=this,i=this.$route.params.id;i?Object(b.e)(i).then((function(i){e.manyFormValidate.splice(t,1),e.$message.success(i.msg)})).catch((function(t){e.$message.error(t.msg)})):this.manyFormValidate.splice(t,1)},batchAdd:function(){var t,e=s(this.manyFormValidate);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.oneFormBatch[0].pic&&this.$set(i,"pic",this.oneFormBatch[0].pic),0<this.oneFormBatch[0].price&&this.$set(i,"price",this.oneFormBatch[0].price),0<this.oneFormBatch[0].cost&&this.$set(i,"cost",this.oneFormBatch[0].cost),0<this.oneFormBatch[0].ot_price&&this.$set(i,"ot_price",this.oneFormBatch[0].ot_price),0<this.oneFormBatch[0].stock&&this.$set(i,"stock",this.oneFormBatch[0].stock),""!==this.oneFormBatch[0].bar_code&&this.$set(i,"bar_code",this.oneFormBatch[0].bar_code),0<this.oneFormBatch[0].weight&&this.$set(i,"weight",this.oneFormBatch[0].weight),0<this.oneFormBatch[0].volume&&this.$set(i,"volume",this.oneFormBatch[0].volume)}}catch(t){e.e(t)}finally{e.f()}},addBtn:function(){this.clearAttr(),this.createBnt=!1,this.showIput=!0},generate:function(t,e,i){var a=this;Object(b.i)({attrs:this.attrs,is_virtual:[1,2].includes(this.formValidate.virtual_type)?1:0,virtual_type:this.formValidate.virtual_type},this.formValidate.id,t).then((function(n){n=n.data.info;var o=JSON.parse(JSON.stringify(n.header)),r=("0"===a.$route.params.id||-1==a.$route.query.type&&!t||e||(a.manyFormValidate=n.value),e&&(a.manyFormValidate=i),n.header);[1,2].includes(a.formValidate.virtual_type)?(a.columnsInstalM=r,a.formValidate.header=r):(a.formValidate.header=o,a.columnsInstalM=n.header),a.checkAllGroup(a.formValidate.is_sub),a.$route.params.id||1!==a.formValidate.spec_type||e?a.$route.params.id&&(a.manyFormValidate.map((function(t){t.pic||(t.pic=a.formValidate.image)})),a.oneFormBatch[0].pic=a.formValidate.image):(a.manyFormValidate.map((function(t){t.pic=a.formValidate.image})),a.oneFormBatch[0].pic=a.formValidate.image)})).catch((function(t){a.$message.error(t.msg)}))},offAttrName:function(){this.showIput=!1,this.createBnt=!0},clearAttr:function(){this.formDynamic.attrsName="",this.formDynamic.attrsVal=""},handleRemoveRole:function(t){this.attrs.splice(t,1),this.manyFormValidate.splice(t,1)},handleRemove2:function(t,e){t.splice(e,1)},createAttrName:function(){var t,e;this.formDynamic.attrsName&&this.formDynamic.attrsVal?(t={value:this.formDynamic.attrsName,detail:[this.formDynamic.attrsVal]},this.attrs.push(t),e={},this.attrs=this.attrs.reduce((function(t,i){return e[i.value]||(e[i.value]=t.push(i)),t}),[]),this.clearAttr(),this.showIput=!1,this.createBnt=!0):this.$message.warning("请添加完整的规格!")},createAttr:function(t,e){var i;t?(this.attrs[e].detail.push(t),i={},this.attrs[e].detail=this.attrs[e].detail.reduce((function(t,e){return i[e]||(i[e]=t.push(e)),t}),[])):this.$message.warning("请添加属性")},goodsCategory:function(){var t=this;Object(b.d)(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$message.error(e.msg)}))},changeVideo:function(t){this.formValidate.video_link="",this.videoLink=""},changeSpec:function(){var t=this,e=(this.formValidate.is_sub=[],this.$route.params.id);e&&Object(b.e)(e).then((function(t){})).catch((function(e){t.formValidate.spec_type=t.spec_type,t.$message.error(e.msg)}))},getInfo:function(){var t=this;this.spinShow=!0,Object(b.t)(this.$route.params.id).then((()=>{var e=Object(r.a)(Object(o.a)().mark((function e(i){var a;return Object(o.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=i.data.productInfo,t.infoData(a),t.spinShow=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}})()).catch((function(e){t.spinShow=!1,t.$message.error(e.msg)}))},handleRemove:function(t){this.images.splice(t,1),this.formValidate.slider_image.splice(t,1),this.oneFormValidate[0].pic=this.formValidate.slider_image[0]},changeCancel:function(t){this.modalPic=!1},modalPicTap:function(t,e,i){this.modalPic=!0,this.isChoice="dan"===t?"单选":"多选",this.picTit=e,this.tableIndex=i},getPic:function(t){switch(this.picTit){case"danFrom":this.formValidate.image=t.att_dir,this.$route.params.id||(0===this.formValidate.spec_type?this.oneFormValidate[0].pic=t.att_dir:(this.manyFormValidate.map((function(e){e.pic=t.att_dir})),this.oneFormBatch[0].pic=t.att_dir));break;case"danTable":this.oneFormValidate[this.tableIndex].pic=t.att_dir;break;case"duopi":this.oneFormBatch[this.tableIndex].pic=t.att_dir;break;case"recommend_image":this.formValidate.recommend_image=t.att_dir;break;default:this.manyFormValidate[this.tableIndex].pic=t.att_dir}this.modalPic=!1},getPicD:function(t){var e=this;this.images=t,this.images.map((function(t){e.formValidate.slider_image.push(t.att_dir),e.formValidate.slider_image=e.formValidate.slider_image.splice(0,10)})),this.oneFormValidate[0].pic=this.formValidate.slider_image[0],this.modalPic=!1},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return e.formValidate.store_name?e.formValidate.cate_id.length?e.formValidate.unit_name?e.formValidate.slider_image.length?e.formValidate.logistics.length||e.formValidate.virtual_type?e.formValidate.temp_id||3!=e.formValidate.freight?void 0:e.$message.warning("商品信息-运费模板不能为空"):e.$message.warning("物流设置-至少选择一种物流方式"):e.$message.warning("商品信息-商品轮播图不能为空"):e.$message.warning("商品信息-商品单位不能为空"):e.$message.warning("商品信息-商品分类不能为空"):e.$message.warning("商品信息-商品名称不能为空");if(e.formValidate.type=e.type,0===e.formValidate.spec_type?(e.formValidate.attrs=e.oneFormValidate,e.formValidate.header=[],e.formValidate.items=[],e.formValidate.is_copy=0):(e.formValidate.items=e.attrs,e.formValidate.attrs=e.manyFormValidate,e.formValidate.is_copy=1),1===e.formValidate.spec_type&&0===e.manyFormValidate.length)return e.$message.warning("商品信息-请点击生成多规格");for(var i=e.formValidate.attrs,a=0;a<i.length;a++)if(1e6<i[a].stock)return e.$message.error("规格库存-库存超出系统范围(1000000)");if(1===e.formValidate.is_sub[0]){for(var n=0;n<i.length;n++)if(null===i[n].brokerage||null===i[n].brokerage_two)return e.$message.error("营销设置- 一二级返佣不能为空")}else for(var l=0;l<i.length;l++)if(null===i[l].vip_price)return e.$message.error("营销设置-会员价不能为空");if(2===e.formValidate.is_sub.length)for(var s=0;s<i.length;s++)if(null===i[s].brokerage||null===i[s].brokerage_two||null===i[s].vip_price)return e.$message.error("营销设置- 一二级返佣和会员价不能为空");if(3==e.formValidate.freight&&!e.formValidate.temp_id)return e.$message.warning("商品信息-运费模板不能为空");var c=[];e.dataLabel.forEach((function(t){c.push(t.id)})),e.formValidate.label_id=c,e.openSubimit||(e.openSubimit=!0,e.formValidate.description=e.formatRichText(e.content),Object(b.m)(e.formValidate).then((()=>{var t=Object(r.a)(Object(o.a)().mark((function t(i){return Object(o.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openSubimit=!1,e.$message.success(i.msg),"0"===e.$route.params.id&&Object(b.c)().catch((function(t){e.$message.error(t.msg)})),setTimeout((function(){e.openSubimit=!1,e.$router.push({path:e.$routeProStr+"/product/product_list"})}),500);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})()).catch((function(t){setTimeout((function(t){e.openSubimit=!1}),1e3),e.$message.error(t.msg)})))}))},changeTemplate:function(t){this.template=t},validate:function(t,e,i){!1===e&&this.$message.warning(i)},handleDragStart:function(t,e){this.dragging=e},handleDragEnd:function(t,e){this.dragging=null},handleDragOver:function(t){t.dataTransfer.dropEffect="move"},handleDragEnter:function(t,e){var i;t.dataTransfer.effectAllowed="move",e!==this.dragging&&(i=(t=Object(n.a)(this.formValidate.slider_image)).indexOf(this.dragging),e=t.indexOf(e),t.splice.apply(t,[e,0].concat(Object(n.a)(t.splice(i,1)))),this.formValidate.slider_image=t)},formatRichText:function(t){return t=t.replace(/<img[^>]*>/gi,(function(t,e){return(t=(t=t.replace(/style="[^"]+"/gi,"").replace(/style='[^']+'/gi,"")).replace(/width="[^"]+"/gi,"").replace(/width='[^']+'/gi,"")).replace(/height="[^"]+"/gi,"").replace(/height='[^']+'/gi,"")})),(t=(t=t.replace(/style="[^"]+"/gi,(function(t,e){return t.replace(/width:[^;]+;/gi,"max-width:100%;").replace(/width:[^;]+;/gi,"max-width:100%;")}))).replace(/<br[^>]*\/>/gi,"")).replace(/\<img/gi,'<img style="max-width:100%;height:auto;display:block;margin-top:0;margin-bottom:0;"')}},"unique",(function(t){var e=new Map;return t.filter((function(t){return!e.has(t.product_id)&&e.set(t.product_id,1)}))})),"getProductId",(function(t){this.goods_modals=!1,this.formValidate.recommend_list=this.unique(this.formValidate.recommend_list.concat(t))})),"changeGoods",(function(){this.goods_modals=!0,this.$refs.goodslist.getList(),this.$refs.goodslist.goodsCategory()})),"activeData",(function(t){this.labelShow=!1,this.dataLabel=t})),"labelClose",(function(){this.labelShow=!1})),"closeLabel",(function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)})),"openLabel",(function(t){this.labelShow=!0,this.$nextTick((function(t){}))})),"uniques",(function(t){for(var e,i={},a=[],n=0;n<t.length;n++)i[t[n].product_id]=t[n];for(e in i)a.push(i[e]);return a})),"handleRemoveRecommend",(function(t){this.formValidate.recommend_list.splice(t,1)}))},i("c476"),i("9bcc"),f=Object(_.a)(p,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],attrs:{id:"shopp-manager"}},[e("pages-header",{ref:"pageHeader",attrs:{title:t.$route.params.id?"编辑商品":"添加商品",backUrl:t.$routeProStr+"/product/product_list"}}),e("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[e("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,i){return e("el-tab-pane",{key:i,attrs:{label:t.tit,name:t.name}})})),1),e("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{directives:[{name:"show",rawName:"v-show",value:"1"===t.currentTab,expression:"currentTab === '1'"}],attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品类型:",props:"is_virtual"}},t._l(t.virtual,(function(i,a){return e("div",{key:a,staticClass:"virtual",class:t.formValidate.virtual_type==i.id?"virtual_boder":"virtual_boder2",on:{click:function(e){return t.virtualbtn(i.id,2)}}},[e("div",{staticClass:"virtual_top"},[t._v(t._s(i.tit))]),e("div",{staticClass:"virtual_bottom"},[t._v("("+t._s(i.tit2)+")")]),t.formValidate.virtual_type==i.id?e("div",{staticClass:"virtual_san"}):t._e(),t.formValidate.virtual_type==i.id?e("div",{staticClass:"virtual_dui"},[t._v("✓")]):t._e()])})),0)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品分类:",prop:"cate_id"}},[e("el-cascader",{staticClass:"content_width",attrs:{size:"small",options:t.treeSelect,props:{multiple:!0,checkStrictly:!0,emitPath:!1},clearable:""},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}}),e("span",{staticClass:"addfont",on:{click:t.addCate}},[t._v("新增分类")])],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[e("el-input",{staticClass:"content_width",attrs:{placeholder:"请输入商品名称"},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name","string"==typeof e?e.trim():e)},expression:"formValidate.store_name"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"单位:",prop:"unit_name"}},[e("el-input",{staticClass:"content_width",attrs:{placeholder:"请输入单位"},model:{value:t.formValidate.unit_name,callback:function(e){t.$set(t.formValidate,"unit_name",e)},expression:"formValidate.unit_name"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品轮播图:",prop:"slider_image"}},[e("div",{staticClass:"acea-row"},[t._l(t.formValidate.slider_image,(function(i,a){return e("div",{key:a,staticClass:"pictrue",attrs:{draggable:"true"},on:{dragstart:function(e){return t.handleDragStart(e,i)},dragover:function(e){return e.preventDefault(),t.handleDragOver(e,i)},dragenter:function(e){return t.handleDragEnter(e,i)},dragend:function(e){return t.handleDragEnd(e,i)}}},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i,expression:"item"}]}),e("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemove(a)}}})])})),t.formValidate.slider_image.length<10?e("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:function(e){return t.modalPicTap("duo")}}},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})]):t._e(),e("el-input",{staticStyle:{display:"none"},model:{value:t.formValidate.slider_image[0],callback:function(e){t.$set(t.formValidate.slider_image,0,e)},expression:"formValidate.slider_image[0]"}})],2),e("div",{staticClass:"titTip"},[t._v("建议尺寸:800*800,可拖拽改变图片顺序,默认首张图为主图,最多上传10张")])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"添加视频:"}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large"},model:{value:t.formValidate.video_open,callback:function(e){t.$set(t.formValidate,"video_open",e)},expression:"formValidate.video_open"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),t.formValidate.video_open?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"视频类型:"}},[e("el-radio-group",{on:{input:t.changeVideo},model:{value:t.seletVideo,callback:function(e){t.seletVideo=e},expression:"seletVideo"}},[e("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("本地视频")]),e("el-radio",{attrs:{label:1}},[t._v("视频链接")])],1)],1)],1):t._e(),t.formValidate.video_open?e("el-col",{attrs:{span:24,id:"selectvideo"}},[e("el-form-item",{attrs:{label:"",prop:"video_link"}},[1!=t.seletVideo||t.formValidate.video_link?t._e():e("el-input",{staticClass:"content_width",attrs:{placeholder:"请输入视频链接"},model:{value:t.videoLink,callback:function(e){t.videoLink=e},expression:"videoLink"}}),e("input",{ref:"refid",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:t.zh_uploadFile_change}}),0!=t.seletVideo||"1"===t.upload_type&&!t.videoLink||t.formValidate.video_link?t._e():e("div",{staticClass:"ml10 videbox",on:{click:t.zh_uploadFile}},[t._v("\n +\n ")]),1!=t.seletVideo||"1"===t.upload_type&&!t.videoLink||t.formValidate.video_link?t._e():e("el-button",{staticClass:"ml10",attrs:{type:"primary"},on:{click:t.zh_uploadFile}},[t._v("确认添加")]),"1"!==t.upload_type||t.videoLink?t._e():e("el-upload",{staticStyle:{display:"inline-block"},attrs:{"show-file-list":!1,action:t.fileUrl2,"before-upload":t.videoSaveToUrl,data:t.uploadData,headers:t.header,multiple:!1}},[0!==t.seletVideo||t.formValidate.video_link?t._e():e("div",{staticClass:"videbox"},[t._v("+")])]),t.formValidate.video_link?e("div",{staticClass:"box-video-style"},[e("video",{staticStyle:{width:"100%",height:"100% !important","border-radius":"10px"},attrs:{src:t.formValidate.video_link,controls:"controls"}},[t._v("\n 您的浏览器不支持 video 标签。\n ")]),e("div",{staticClass:"mark"}),e("i",{staticClass:"el-icon-delete iconv",on:{click:t.delVideo}})]):t._e(),t.upload.videoIng||t.videoIng?e("Progress",{staticClass:"progress",attrs:{percent:t.progress,"stroke-width":5}}):t._e(),e("div",{staticClass:"titTip"},[t._v("建议时长:9~30秒,视频宽高比16:9")])],1)],1):t._e(),e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"商品状态:"}},[e("el-radio-group",{model:{value:t.formValidate.is_show,callback:function(e){t.$set(t.formValidate,"is_show",e)},expression:"formValidate.is_show"}},[e("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("上架")]),e("el-radio",{attrs:{label:0}},[t._v("下架")])],1)],1)],1)],1),e("el-row",{directives:[{name:"show",rawName:"v-show",value:"2"===t.currentTab,expression:"currentTab === '2'"}],attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品规格:",props:"spec_type"}},[e("el-radio-group",{on:{input:t.changeSpec},model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[e("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),e("el-radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),1===t.formValidate.spec_type?e("el-col",{staticClass:"noForm",attrs:{span:24}},[e("el-form-item",{attrs:{label:"选择规格:",prop:""}},[e("div",{staticClass:"acea-row row-middle"},[e("el-select",{staticClass:"content_width mr14",model:{value:t.formValidate.selectRule,callback:function(e){t.$set(t.formValidate,"selectRule",e)},expression:"formValidate.selectRule"}},t._l(t.ruleList,(function(t,i){return e("el-option",{key:i,attrs:{value:t.rule_name,label:t.rule_name}})})),1),e("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确认")]),e("el-button",{on:{click:t.addRule}},[t._v("添加规格模板")])],1)]),0!==t.attrs.length?e("el-form-item",[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.attrs,group:"peoples",handle:".move-icon",move:t.checkMove},on:{end:t.end}},t._l(t.attrs,(function(i,a){return e("div",{key:a,staticClass:"acea-row row-middle mb10"},[e("div",{staticClass:"move-icon"},[e("span",{staticClass:"iconfont icondrag2"})]),e("div",{class:t.moveIndex===a?"borderStyle":"",staticStyle:{width:"90%"}},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"mr5"},[t._v(t._s(i.value))]),e("i",{staticClass:"curs el-icon-error",attrs:{size:"14"},on:{click:function(e){return t.handleRemoveRole(a)}}})]),e("div",{staticClass:"rulesBox"},[e("draggable",{staticClass:"item",attrs:{list:i.detail,handle:".drag"}},t._l(i.detail,(function(a,n){return e("el-tag",{key:n,staticClass:"mr20 drag",attrs:{closable:"",color:"primary"},on:{close:function(e){return t.handleRemove2(i.detail,n)}}},[t._v(t._s(a))])})),1),e("el-input",{staticStyle:{width:"190px"},attrs:{placeholder:"请输入属性名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createAttr(i.detail.attrsVal,a)}},model:{value:i.detail.attrsVal,callback:function(e){t.$set(i.detail,"attrsVal",e)},expression:"item.detail.attrsVal"}},[e("template",{slot:"append"},[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.createAttr(i.detail.attrsVal,a)}}},[t._v("添加")])],1)],2)],1)])])})),0)],1):t._e(),t.createBnt?e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.addBtn}},[t._v("添加新规格")]),e("el-button",{attrs:{type:"success"},on:{click:function(e){return t.generate(1)}}},[t._v("立即生成")])],1):t._e(),t.showIput?e("el-col",{attrs:{span:24}},[e("el-col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"规格:"}},[e("el-input",{attrs:{placeholder:"请输入规格"},model:{value:t.formDynamic.attrsName,callback:function(e){t.$set(t.formDynamic,"attrsName",e)},expression:"formDynamic.attrsName"}})],1)],1),e("el-col",{attrs:{xl:6,lg:9,md:10,sm:24,xs:24}},[e("el-form-item",{attrs:{label:"规格值:"}},[e("el-input",{attrs:{placeholder:"请输入规格值"},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}})],1)],1),e("el-col",{attrs:{xl:6,lg:5,md:10,sm:24,xs:24}},[e("div",{staticClass:"df-n-warp"},[e("el-button",{attrs:{type:"primary"},on:{click:t.createAttrName}},[t._v("确定")]),e("el-button",{on:{click:t.offAttrName}},[t._v("取消")])],1)])],1):t._e(),t.manyFormValidate.length&&0!==t.formValidate.header.length&&0!==t.attrs.length?e("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[[0,3].includes(t.formValidate.virtual_type)?e("el-col",{attrs:{span:24}},[e("el-form-item",{staticClass:"labeltop",attrs:{label:"批量设置:"}},[e("el-table",{attrs:{data:t.oneFormBatch,border:""}},t._l(t.formValidate.is_virtual?t.columns3:t.columns2,(function(i,a){return e("el-table-column",{key:a,attrs:{label:i.title,"min-width":i.minWidth},scopedSlots:t._u([{key:"default",fn:function(a){return[i.key?[e("div",[e("span",[t._v(t._s(a.row[i.key]))])])]:"pic"===i.slot?[e("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duopi",a.$index)}}},[t.oneFormBatch[0].pic?e("div",{staticClass:"pictrue pictrueTab"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].pic,expression:"oneFormBatch[0].pic"}]})]):e("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})])])]:"price"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.oneFormBatch[0].price,callback:function(e){t.$set(t.oneFormBatch[0],"price",e)},expression:"oneFormBatch[0].price"}})]:"cost"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.oneFormBatch[0].cost,callback:function(e){t.$set(t.oneFormBatch[0],"cost",e)},expression:"oneFormBatch[0].cost"}})]:"ot_price"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]:"stock"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,disabled:1==t.formValidate.virtual_type,min:0,max:9999999999},model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",e)},expression:"oneFormBatch[0].stock"}})]:"fictitious"===i.slot?[a.row.virtual_list.length||1!=t.formValidate.virtual_type?a.row.virtual_list.length&&1==t.formValidate.virtual_type?e("span",{staticClass:"see",on:{click:function(e){return t.see(a.row,"oneFormBatch",a.$index)}}},[t._v("已设置")]):t._e():e("el-button",{on:{click:function(e){return t.addVirtual(a.$index,"oneFormBatch")}}},[t._v("添加卡密")])]:"bar_code"===i.slot?[e("el-input",{model:{value:t.oneFormBatch[0].bar_code,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code",e)},expression:"oneFormBatch[0].bar_code"}})]:"weight"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,step:.1,min:0,max:9999999999},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]:"volume"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,step:.1,min:0,max:9999999999},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]:"action"===i.slot?[e("a",{on:{click:t.batchAdd}},[t._v("批量添加")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:t.batchDel}},[t._v("清空")])]:t._e()]}}],null,!0)})})),1)],1)],1):t._e(),e("el-col",{attrs:{span:24}},[e("el-form-item",{staticClass:"labeltop",attrs:{label:"商品属性:"}},[e("el-table",{attrs:{data:t.manyFormValidate,border:""}},t._l(t.formValidate.header,(function(i,a){return e("el-table-column",{key:a,attrs:{label:i.title,"min-width":i.minWidth},scopedSlots:t._u([{key:"default",fn:function(a){return[i.key?[e("div",[e("span",[t._v(t._s(a.row[i.key]))])])]:"pic"===i.slot?[e("div",{staticClass:"acea-row row-middle row-center-wrapper",on:{click:function(e){return t.modalPicTap("dan","duoTable",a.$index)}}},[t.manyFormValidate[a.$index].pic?e("div",{staticClass:"pictrue pictrueTab"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.manyFormValidate[a.$index].pic,expression:"manyFormValidate[scope.$index].pic"}]})]):e("div",{staticClass:"upLoad pictrueTab acea-row row-center-wrapper"},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})])])]:"price"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.manyFormValidate[a.$index].price,callback:function(e){t.$set(t.manyFormValidate[a.$index],"price",e)},expression:"manyFormValidate[scope.$index].price"}})]:"cost"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.manyFormValidate[a.$index].cost,callback:function(e){t.$set(t.manyFormValidate[a.$index],"cost",e)},expression:"manyFormValidate[scope.$index].cost"}})]:"ot_price"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.manyFormValidate[a.$index].ot_price,callback:function(e){t.$set(t.manyFormValidate[a.$index],"ot_price",e)},expression:"manyFormValidate[scope.$index].ot_price"}})]:"stock"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,disabled:1==t.formValidate.virtual_type,min:0,max:9999999999,precision:0},model:{value:t.manyFormValidate[a.$index].stock,callback:function(e){t.$set(t.manyFormValidate[a.$index],"stock",e)},expression:"manyFormValidate[scope.$index].stock"}})]:"bar_code"===i.slot?[e("el-input",{model:{value:t.manyFormValidate[a.$index].bar_code,callback:function(e){t.$set(t.manyFormValidate[a.$index],"bar_code",e)},expression:"manyFormValidate[scope.$index].bar_code"}})]:"weight"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.manyFormValidate[a.$index].weight,callback:function(e){t.$set(t.manyFormValidate[a.$index],"weight",e)},expression:"manyFormValidate[scope.$index].weight"}})]:"volume"===i.slot?[e("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.manyFormValidate[a.$index].volume,callback:function(e){t.$set(t.manyFormValidate[a.$index],"volume",e)},expression:"manyFormValidate[scope.$index].volume"}})]:"fictitious"===i.slot?[a.row.virtual_list||a.row.stock||1!=t.formValidate.virtual_type?(a.row.virtual_list.length||a.row.stock)&&1==t.formValidate.virtual_type?e("span",{staticClass:"see",on:{click:function(e){return t.see(a.row,"manyFormValidate",a.$index)}}},[t._v("已设置")]):t._e():e("el-button",{on:{click:function(e){return t.addVirtual(a.$index,"manyFormValidate")}}},[t._v("添加卡密")])]:"action"===i.slot?[e("a",{on:{click:function(e){return t.delAttrTable(a.$index)}}},[t._v("删除")])]:t._e()]}}],null,!0)})})),1)],1)],1)],1):t._e()],1):t._e(),0===t.formValidate.spec_type?e("div",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"图片:"}},[e("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","danTable",0)}}},[t.oneFormValidate[0].pic?e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormValidate[0].pic,expression:"oneFormValidate[0].pic"}]}),e("el-input",{staticStyle:{display:"none"},model:{value:t.oneFormValidate[0].pic,callback:function(e){t.$set(t.oneFormValidate[0],"pic",e)},expression:"oneFormValidate[0].pic"}})],1):e("div",{staticClass:"upLoad acea-row row-center-wrapper"},[e("el-input",{staticStyle:{display:"none"},model:{value:t.oneFormValidate[0].pic,callback:function(e){t.$set(t.oneFormValidate[0],"pic",e)},expression:"oneFormValidate[0].pic"}}),e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})],1)])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"售价:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,precision:2,max:9999999999,"active-change":!1},model:{value:t.oneFormValidate[0].price,callback:function(e){t.$set(t.oneFormValidate[0],"price",e)},expression:"oneFormValidate[0].price"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"成本价:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999,precision:2,"active-change":!1},model:{value:t.oneFormValidate[0].cost,callback:function(e){t.$set(t.oneFormValidate[0],"cost",e)},expression:"oneFormValidate[0].cost"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"原价:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999,precision:2,"active-change":!1},model:{value:t.oneFormValidate[0].ot_price,callback:function(e){t.$set(t.oneFormValidate[0],"ot_price",e)},expression:"oneFormValidate[0].ot_price"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"库存:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999,disabled:1==t.formValidate.virtual_type,precision:0},model:{value:t.oneFormValidate[0].stock,callback:function(e){t.$set(t.oneFormValidate[0],"stock",e)},expression:"oneFormValidate[0].stock"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品编号:"}},[e("el-input",{staticClass:"content_width",model:{value:t.oneFormValidate[0].bar_code,callback:function(e){t.$set(t.oneFormValidate[0],"bar_code","string"==typeof e?e.trim():e)},expression:"oneFormValidate[0].bar_code"}})],1)],1),0==t.formValidate.virtual_type?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"重量(KG):"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.oneFormValidate[0].weight,callback:function(e){t.$set(t.oneFormValidate[0],"weight",e)},expression:"oneFormValidate[0].weight"}})],1)],1):t._e(),e("el-col",{attrs:{span:24}},[0==t.formValidate.virtual_type?e("el-form-item",{attrs:{label:"体积(m³):"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.oneFormValidate[0].volume,callback:function(e){t.$set(t.oneFormValidate[0],"volume",e)},expression:"oneFormValidate[0].volume"}})],1):t._e()],1),e("el-col",{attrs:{span:24}},[1==t.formValidate.virtual_type||2==t.formValidate.virtual_type?e("el-form-item",{attrs:{label:"虚拟商品:"}},[t.oneFormValidate[0].virtual_list.length||t.oneFormValidate[0].stock||1!=t.formValidate.virtual_type?(t.oneFormValidate[0].virtual_list.length||0<t.oneFormValidate[0].stock)&&1==t.formValidate.virtual_type?e("span",{staticClass:"see",on:{click:function(e){return t.see(t.oneFormValidate[0],"oneFormValidate",0)}}},[t._v("已设置")]):t._e():e("el-button",{on:{click:function(e){return t.addVirtual(0,"oneFormValidate")}}},[t._v("添加卡密")])],1):t._e()],1)],1):t._e()],1),e("el-row",{directives:[{name:"show",rawName:"v-show",value:"3"===t.currentTab,expression:"currentTab === '3'"}]},[e("el-col",{attrs:{span:16}},[e("el-form-item",{attrs:{label:"商品详情:"}},[e("WangEditor",{staticStyle:{width:"100%"},attrs:{content:t.contents},on:{editorContent:t.getEditorContent}})],1)],1),e("el-col",{staticStyle:{width:"33%"},attrs:{span:6}},[e("div",{staticClass:"ifam"},[e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}})])])],1),e("el-row",{directives:[{name:"show",rawName:"v-show",value:6===t.headTab.length&&"4"===t.currentTab,expression:"headTab.length === 6 ? currentTab === '4' : false"}]},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"物流方式:",prop:"logistics"}},[e("el-checkbox-group",{on:{change:t.logisticsBtn},model:{value:t.formValidate.logistics,callback:function(e){t.$set(t.formValidate,"logistics",e)},expression:"formValidate.logistics"}},[e("el-checkbox",{attrs:{label:"1"}},[t._v("快递")]),e("el-checkbox",{attrs:{label:"2"}},[t._v("到店核销")])],1)],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"运费设置:"}},[e("el-radio-group",{model:{value:t.formValidate.freight,callback:function(e){t.$set(t.formValidate,"freight",e)},expression:"formValidate.freight"}},[e("el-radio",{attrs:{label:2}},[t._v("固定邮费")]),e("el-radio",{attrs:{label:3}},[t._v("运费模板")])],1)],1)],1),3!=t.formValidate.freight&&1!=t.formValidate.freight?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"",prop:1!=t.formValidate.freight?"freight":""}},[e("div",{staticClass:"acea-row"},[e("el-input-number",{staticClass:"content_width maxW",attrs:{controls:!1,min:0,placeholder:"请输入金额"},model:{value:t.formValidate.postage,callback:function(e){t.$set(t.formValidate,"postage",e)},expression:"formValidate.postage"}})],1)])],1):t._e(),3==t.formValidate.freight?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"",prop:"temp_id"}},[e("div",{staticClass:"acea-row"},[e("el-select",{staticClass:"content_width maxW",attrs:{clearable:"",placeholder:"请选择运费模板"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.templateList,(function(t,i){return e("el-option",{key:i,attrs:{value:t.id,label:t.name}})})),1),e("span",{staticClass:"addfont",on:{click:t.addTemp}},[t._v("新增运费模板")])],1)])],1):t._e()],1),e("el-row",{directives:[{name:"show",rawName:"v-show",value:6===t.headTab.length?"5"===t.currentTab:"4"===t.currentTab,expression:"headTab.length === 6 ? currentTab === '5' : currentTab === '4'"}],attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"已售数量:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999,placeholder:"请输入虚拟销量"},model:{value:t.formValidate.ficti,callback:function(e){t.$set(t.formValidate,"ficti",e)},expression:"formValidate.ficti"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"排序:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999,placeholder:"请输入排序"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1),e("el-col",{attrs:{span:24}},[e("div",{staticClass:"line"})]),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"购买送积分:",prop:"give_integral"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:0,max:9999999999,placeholder:"请输入积分"},model:{value:t.formValidate.give_integral,callback:function(e){t.$set(t.formValidate,"give_integral",e)},expression:"formValidate.give_integral"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"关联用户标签:",prop:"label_id"}},[e("div",{staticStyle:{display:"flex"}},[e("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openLabel}},[e("div",{staticStyle:{width:"90%"}},[t.dataLabel.length?e("div",t._l(t.dataLabel,(function(i,a){return e("el-tag",{key:a,attrs:{closable:""},on:{close:function(e){return t.closeLabel(i)}}},[t._v(t._s(i.label_name))])})),1):e("span",{staticClass:"span"},[t._v("选择用户关联标签")])]),e("div",{staticClass:"iconfont iconxiayi"})]),e("span",{staticClass:"addfont",on:{click:t.addLabel}},[t._v("新增标签")])])])],1),e("el-col",{attrs:{span:24}},[e("div",{staticClass:"line"})]),e("el-col",{attrs:{span:24}},[e("div",{staticClass:"line"})]),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"起购数量:"}},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,min:1,max:9999999999,precision:0,placeholder:"请输入起购数量"},model:{value:t.formValidate.min_qty,callback:function(e){t.$set(t.formValidate,"min_qty",e)},expression:"formValidate.min_qty"}})],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"是否限购:"}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large"},model:{value:t.formValidate.is_limit,callback:function(e){t.$set(t.formValidate,"is_limit",e)},expression:"formValidate.is_limit"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),e("el-col",{attrs:{span:24}},[t.formValidate.is_limit?e("el-form-item",{attrs:{label:"限购类型:"}},[e("el-radio-group",{model:{value:t.formValidate.limit_type,callback:function(e){t.$set(t.formValidate,"limit_type",e)},expression:"formValidate.limit_type"}},[e("el-radio",{attrs:{label:1}},[t._v("单次限购")]),e("el-radio",{attrs:{label:2}},[t._v("单人限购")])],1),e("div",{staticClass:"titTip"},[t._v("单次限购是限制每次下单最多购买的数量,单人限购是限制一个用户总共可以购买的数量")])],1):t._e()],1),t.formValidate.is_limit?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"限购数量:",prop:"limit_num"}},[e("div",{staticClass:"acea-row row-middle"},[e("el-input-number",{staticClass:"content_width",attrs:{controls:!1,placeholder:"请输入限购数量",precision:0,min:1},model:{value:t.formValidate.limit_num,callback:function(e){t.$set(t.formValidate,"limit_num",e)},expression:"formValidate.limit_num"}}),e("span",{staticClass:"ml10"},[t._v(" 件 ")])],1)])],1):t._e(),0==t.formValidate.virtual_type||3==t.formValidate.virtual_type?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"预售商品:"}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large"},model:{value:t.formValidate.presale,callback:function(e){t.$set(t.formValidate,"presale",e)},expression:"formValidate.presale"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1):t._e(),t.formValidate.presale?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"预售活动时间:",prop:"presale_time"}},[e("div",{staticClass:"acea-row row-middle"},[e("el-date-picker",{attrs:{clearable:"",editable:!1,type:"datetimerange",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.formValidate.presale_time,callback:function(e){t.$set(t.formValidate,"presale_time",e)},expression:"formValidate.presale_time"}})],1),e("div",{staticClass:"titTip"},[t._v("设置活动开启结束时间,用户可以在设置时间内发起参与预售")])])],1):t._e(),t.formValidate.presale?e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"发货时间:",prop:"presale_day"}},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"mr10"},[t._v("预售活动结束后")]),e("el-input-number",{attrs:{controls:!1,placeholder:"请输入发货时间",precision:0,min:1},model:{value:t.formValidate.presale_day,callback:function(e){t.$set(t.formValidate,"presale_day",e)},expression:"formValidate.presale_day"}}),e("span",{staticClass:"ml10"},[t._v(" 天之内 ")]),e("div",{staticClass:"ml10 grey"})],1)])],1):t._e(),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品推荐:"}},[e("el-checkbox-group",{model:{value:t.formValidate.recommend,callback:function(e){t.$set(t.formValidate,"recommend",e)},expression:"formValidate.recommend"}},[e("el-checkbox",{attrs:{label:"is_hot"}},[t._v("热卖单品")]),e("el-checkbox",{attrs:{label:"is_benefit"}},[t._v("促销单品")]),e("el-checkbox",{attrs:{label:"is_best"}},[t._v("精品推荐")]),e("el-checkbox",{attrs:{label:"is_new"}},[t._v("首发新品")]),e("el-checkbox",{attrs:{label:"is_good"}},[t._v("优品推荐")])],1)],1)],1),e("el-col",t._b({},"el-col",t.grid3,!1),[e("el-form-item",{attrs:{label:"选择优品推荐商品:"}},[e("div",{staticClass:"picBox"},[t._l(t.formValidate.recommend_list,(function(i,a){return e("div",{key:a,staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.image,expression:"item.image"}]}),e("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.handleRemoveRecommend(a)}}})])})),e("div",{staticClass:"upLoad acea-row row-center-wrapper",on:{click:t.changeGoods}},[e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})])],2)])],1)],1),e("el-row",{directives:[{name:"show",rawName:"v-show",value:6===t.headTab.length?"6"===t.currentTab:"5"===t.currentTab,expression:"headTab.length === 6 ? currentTab === '6' : currentTab === '5'"}],attrs:{justify:"space-between"}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品关键字:"}},[e("el-input",{staticClass:"content_width",attrs:{placeholder:"请输入商品关键字"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword","string"==typeof e?e.trim():e)},expression:"formValidate.keyword"}}),e("div",{staticClass:"titTip"},[t._v("PC端的SEO优化以及可以根据关键字进行商品搜索")])],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品简介:"}},[e("el-input",{staticClass:"content_width",attrs:{type:"textarea",rows:3,placeholder:"请输入商品简介"},model:{value:t.formValidate.store_info,callback:function(e){t.$set(t.formValidate,"store_info","string"==typeof e?e.trim():e)},expression:"formValidate.store_info"}}),e("div",{staticClass:"titTip"},[t._v("公众号分享商品以及PC端SEO优化使用")])],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"商品推荐图:"}},[e("div",{staticClass:"pictrueBox",on:{click:function(e){return t.modalPicTap("dan","recommend_image")}}},[t.formValidate.recommend_image?e("div",{staticClass:"pictrue"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.recommend_image,expression:"formValidate.recommend_image"}]}),e("el-input",{staticStyle:{display:"none"},model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image","string"==typeof e?e.trim():e)},expression:"formValidate.recommend_image"}})],1):e("div",{staticClass:"upLoad acea-row row-center-wrapper"},[e("el-input",{staticStyle:{display:"none"},model:{value:t.formValidate.recommend_image,callback:function(e){t.$set(t.formValidate,"recommend_image","string"==typeof e?e.trim():e)},expression:"formValidate.recommend_image"}}),e("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})],1),e("div",{staticClass:"titTip"},[t._v("移动端分类样式3显示的长方形图片,建议比例:5:2")])])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"自定义表单:"}},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,size:"large"},on:{change:t.customMessBtn},model:{value:t.customBtn,callback:function(e){t.customBtn=e},expression:"customBtn"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),t.customBtn?e("div",{staticClass:"addCustom_content"},t._l(t.formValidate.custom_form,(function(i,a){return e("div",{key:a,staticClass:"custom_box"},[e("el-input",{staticStyle:{width:"150px","margin-right":"10px"},attrs:{placeholder:"表单标题"+(a+1),maxlength:10},model:{value:i.title,callback:function(e){t.$set(i,"title","string"==typeof e?e.trim():e)},expression:"item.title"}}),e("el-select",{staticStyle:{width:"200px","margin-left":"6px","margin-right":"10px"},model:{value:i.label,callback:function(e){t.$set(i,"label",e)},expression:"item.label"}},t._l(t.CustomList,(function(t){return e("el-option",{key:t.value,attrs:{value:t.value,label:t.label}})})),1),e("el-checkbox",{model:{value:i.status,callback:function(e){t.$set(i,"status",e)},expression:"item.status"}},[t._v("必填")]),e("div",{staticClass:"addfont",on:{click:function(e){return t.delcustom()}}},[t._v("删除")])],1)})),0):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.customBtn,expression:"customBtn"}],staticClass:"addCustomBox"},[e("div",{staticClass:"btn",on:{click:t.addcustom}},[t._v("+ 添加表单")]),e("div",{staticClass:"titTip"},[t._v("用户下单时需填写的信息,最多可设置10条,设置了自定义表单的商品不能加入购物车")])])],1)],1)],1),e("el-form-item",["1"!==t.currentTab?e("el-button",{on:{click:t.upTab}},[t._v("上一步")]):t._e(),"6"!==t.currentTab&&0==t.formValidate.virtual_type?e("el-button",{staticClass:"submission",attrs:{type:"primary"},on:{click:t.downTab}},[t._v("下一步")]):t._e(),"5"!==t.currentTab&&0!=t.formValidate.virtual_type?e("el-button",{staticClass:"submission",attrs:{type:"primary"},on:{click:t.downTab}},[t._v("下一步")]):t._e(),!t.$route.params.id&&"6"!==t.currentTab||0!=t.formValidate.virtual_type?t._e():e("el-button",{staticClass:"submission",attrs:{type:"primary",disabled:t.openSubimit},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("保存")]),!t.$route.params.id&&"5"!==t.currentTab||0==t.formValidate.virtual_type?t._e():e("el-button",{staticClass:"submission",attrs:{type:"primary",disabled:t.openSubimit},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("保存")])],1)],1),e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",scrollable:"",title:"上传商品图","close-on-click-modal":!1},on:{"update:visible":function(e){t.modalPic=e}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1),e("el-dialog",{attrs:{visible:t.addVirtualModel,width:"720px",title:"添加卡密","show-close":!0,"close-on-click-modal":!1},on:{"update:visible":function(e){t.addVirtualModel=e},closed:t.initVirtualData}},[e("div",{staticClass:"trip"}),e("div",{staticClass:"type-radio"},[e("el-form",{attrs:{"label-width":"85px"}},[e("el-form-item",{attrs:{label:"卡密类型:"}},[e("el-radio-group",{attrs:{size:"large"},model:{value:t.disk_type,callback:function(e){t.disk_type=e},expression:"disk_type"}},[e("el-radio",{attrs:{label:1}},[t._v("固定卡密")]),e("el-radio",{attrs:{label:2}},[t._v("一次性卡密")])],1),1==t.disk_type?e("div",[e("div",{staticClass:"stock-disk"},[e("el-input",{attrs:{size:"large",type:"textarea",rows:4,placeholder:"填写卡密信息"},model:{value:t.disk_info,callback:function(e){t.disk_info=e},expression:"disk_info"}})],1),e("div",{staticClass:"stock-input"},[e("el-input-number",{attrs:{controls:!1,max:1e5,min:1,step:1,precision:0},model:{value:t.stock,callback:function(e){t.stock=e},expression:"stock"}}),e("span",{staticClass:"pl10"},[t._v("件")])],1)]):t._e(),2==t.disk_type?e("div",{staticClass:"scroll-virtual"},t._l(t.virtualList,(function(i,a){return e("div",{key:a,staticClass:"virtual-data mb10"},[e("span",{staticClass:"mr10 virtual-title"},[t._v("卡号"+t._s(a+1)+":")]),e("el-input",{staticClass:"mr10",staticStyle:{width:"150px"},attrs:{type:"text",placeholder:"请输入卡号(非必填)"},model:{value:i.key,callback:function(e){t.$set(i,"key","string"==typeof e?e.trim():e)},expression:"item.key"}}),e("span",{staticClass:"mr10 virtual-title"},[t._v("卡密"+t._s(a+1)+":")]),e("el-input",{staticClass:"mr10",staticStyle:{width:"150px"},attrs:{type:"text",placeholder:"请输入卡密"},model:{value:i.value,callback:function(e){t.$set(i,"value","string"==typeof e?e.trim():e)},expression:"item.value"}}),e("span",{staticClass:"deteal-btn",on:{click:function(e){return t.removeVirtual(a)}}},[t._v("删除")])],1)})),0):t._e(),2==t.disk_type?e("div",{staticClass:"add-more"},[e("el-button",{attrs:{type:"primary"},on:{click:t.handleAdd}},[t._v("新增")]),e("el-upload",{staticClass:"ml10",attrs:{action:t.cardUrl,data:t.uploadData,headers:t.header,"on-success":t.upFile}},[e("el-button",[t._v("导入卡密")])],1)],1):t._e()],1)],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.closeVirtual}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.upVirtual}},[t._v("确 定")])],1)])],1),e("freightTemplate",{ref:"templates",attrs:{template:t.template},on:{changeTemplate:t.changeTemplate}}),e("add-attr",{ref:"addattr",on:{getList:t.userSearchs}}),e("coupon-list",{ref:"couponTemplates",attrs:{couponids:t.formValidate.coupon_ids,updateIds:t.updateIds,updateName:t.updateName},on:{nameId:t.nameId}}),e("coupon-list",{ref:"goodsCoupon",attrs:{many:"one",luckDraw:!0},on:{getCouponId:t.goodsCouponId}}),e("el-dialog",{staticClass:"Box",attrs:{visible:t.modals,title:"复制淘宝、天猫、京东、苏宁、1688","close-on-click-modal":!1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[t.modals?e("tao-bao",{ref:"taobaos",on:{"on-close":t.onClose}}):t._e()],1),e("el-dialog",{staticClass:"paymentFooter",attrs:{visible:t.goods_modals,title:"商品列表",footerHide:"",scrollable:"",width:"1000px"},on:{"update:visible":function(e){t.goods_modals=e}}},[t.goods_modals?e("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0},on:{getProductId:t.getProductId}}):t._e()],1),e("el-dialog",{attrs:{visible:t.labelShow,title:"请选择用户标签","show-close":!0,width:"540px","close-on-click-modal":!1},on:{"update:visible":function(e){t.labelShow=e}}},[e("userLabel",{ref:"userLabel",on:{activeData:t.activeData,close:t.labelClose}})],1)],1)}),[],!1,null,"799ff260",null);e.default=f.exports},d9f5:function(t,e,i){function a(t,e,i){var a=it(Q,e);a&&delete Q[e],at(t,e,i),a&&t!==Q&&at(Q,e,a)}function n(t,e){var i=lt[t]=S(Z);return K(i,{type:X,tag:t,description:e}),g||(i.description=e),i}function o(t,e,i){return t===Q&&o(st,e,i),w(t),e=k(e),w(i),(y(lt,e)?(i.enumerable?(y(t,H)&&t[H][e]&&(t[H][e]=!1),i=S(i,{enumerable:V(0,!1)})):(y(t,H)||at(t,H,V(1,S(null))),t[H][e]=!0),ut):at)(t,e,i)}function r(t,e){w(t);var i=x(e);e=$(i).concat(u(i));return Y(e,(function(e){g&&!p(l,i,e)||o(t,e,i[e])})),t}function l(t){t=k(t);var e=p(ot,this,t);return!(this===Q&&y(lt,t)&&!y(st,t))&&(!(e||!y(this,t)||!y(lt,t)||y(this,H)&&this[H][t])||e)}function s(t,e){var i;t=x(t),e=k(e);if(t!==Q||!y(lt,e)||y(st,e))return!(i=it(t,e))||!y(lt,e)||y(t,H)&&t[H][e]||(i.enumerable=!0),i}function c(t){t=nt(x(t));var e=[];return Y(t,(function(t){y(lt,t)||y(P,t)||rt(e,t)})),e}function u(t){var e=t===Q,i=(t=nt(e?st:x(t)),[]);return Y(t,(function(t){!y(lt,t)||e&&!y(Q,t)||rt(i,lt[t])})),i}var d=i("23e7"),m=i("cfe9"),p=i("c65b"),f=i("e330"),h=i("c430"),g=i("83ab"),v=i("04f8"),b=i("d039"),y=i("1a2d"),_=i("3a9b"),w=i("825a"),x=i("fc6a"),k=i("a04b"),C=i("577e"),V=i("5c6c"),S=i("7c73"),$=i("df75"),D=i("241c"),T=i("057f"),E=i("7418"),O=i("06cf"),L=i("9bf2"),F=i("37e8"),I=i("d1e7"),N=i("cb2d"),A=i("edd0"),M=i("5692"),B=i("f772"),P=i("d012"),j=i("90e3"),R=i("b622"),z=i("e538"),W=i("e065"),U=i("57b9"),q=i("d44e"),G=i("69f3"),Y=i("b727").forEach,H=B("hidden"),X="Symbol",K=(i="prototype",G.set),J=G.getterFor(X),Q=Object[i],Z=(B=m.Symbol,B&&B[i]),tt=m.RangeError,et=m.TypeError,it=(G=m.QObject,O.f),at=L.f,nt=T.f,ot=I.f,rt=f([].push),lt=M("symbols"),st=M("op-symbols"),ct=(f=M("wks"),!G||!G[i]||!G[i].findChild),ut=g&&b((function(){return 7!==S(at({},"a",{get:function(){return at(this,"a",{value:7}).a}})).a}))?a:at;v||(N(Z=(B=function(){if(_(Z,this))throw new et("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?C(arguments[0]):void 0,e=j(t),i=function(n){var o=void 0===this?m:this;o===Q&&p(i,st,n),y(o,H)&&y(o[H],e)&&(o[H][e]=!1),n=V(1,n);try{ut(o,e,n)}catch(t){if(!(t instanceof tt))throw t;a(o,e,n)}};return g&&ct&&ut(Q,e,{configurable:!0,set:i}),n(e,t)})[i],"toString",(function(){return J(this).tag})),N(B,"withoutSetter",(function(t){return n(j(t),t)})),I.f=l,L.f=o,F.f=r,O.f=s,D.f=T.f=c,E.f=u,z.f=function(t){return n(R(t),t)},g&&(A(Z,"description",{configurable:!0,get:function(){return J(this).description}}),h||N(Q,"propertyIsEnumerable",l,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!v,sham:!v},{Symbol:B}),Y($(f),(function(t){W(t)})),d({target:X,stat:!0,forced:!v},{useSetter:function(){ct=!0},useSimple:function(){ct=!1}}),d({target:"Object",stat:!0,forced:!v,sham:!g},{create:function(t,e){return void 0===e?S(t):r(S(t),e)},defineProperty:o,defineProperties:r,getOwnPropertyDescriptor:s}),d({target:"Object",stat:!0,forced:!v},{getOwnPropertyNames:c}),U(),q(B,X),P[H]=!0},dbb9:function(t,e,i){},e01a:function(t,e,i){var a,n,o,r,l,s,c,u=i("23e7"),d=i("83ab"),m=i("cfe9"),p=i("e330"),f=i("1a2d"),h=i("1626"),g=i("3a9b"),v=i("577e"),b=i("edd0"),y=(i=i("e893"),m.Symbol),_=y&&y.prototype;!d||!h(y)||"description"in _&&void 0===y().description||(a={},i(m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:v(arguments[0]),e=g(_,this)?new y(t):void 0===t?y():y(t);return""===t&&(a[e]=!0),e},y),(m.prototype=_).constructor=m,n="Symbol(description detection)"===String(y("description detection")),o=p(_.valueOf),r=p(_.toString),l=/^Symbol\((.*)\)[^)]+$/,s=p("".replace),c=p("".slice),b(_,"description",{configurable:!0,get:function(){var t=o(this);return f(a,t)?"":(t=r(t),""===(t=n?c(t,7,-1):s(t,l,"$1"))?void 0:t)}}),u({global:!0,constructor:!0,forced:!0},{Symbol:m}))},e065:function(t,e,i){var a=i("428f"),n=i("1a2d"),o=i("e538"),r=i("9bf2").f;t.exports=function(t){var e=a.Symbol||(a.Symbol={});n(e,t)||r(e,t,{value:o.f(t)})}},e449:function(t,e,i){i("4de4"),i("caad"),i("14d9"),i("e9f5"),i("910d"),i("7d54"),i("4ec9"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0");var a=i("61f7"),n={name:"index",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(a.a)(t,"yyyy-MM-dd hh:mm")}},props:{couponids:{type:Array},updateIds:{type:Array},updateName:{type:Array},luckDraw:{type:Boolean,default:!1}},data:function(){return{templateRadio:0,currentid:0,productRow:{},isTemplate:!1,loading:!1,tableFrom:{receive_type:3,page:1,limit:5},total:0,ids:[],texts:[],couponList:[],selectedIds:[],selectedNames:[],multipleSelection:[]}},mounted:function(){},watch:{updateIds:function(t){this.selectedIds=t},updateName:function(t){this.selectedNames=t,this.multipleSelection=t}},created:function(){},methods:{getRowKey:function(t){return t.id},getTemplateRow:function(t){this.currentid=t.id,this.productRow=t},unique:function(t){var e=new Map;return t.filter((function(t){return!e.has(t.id)&&e.set(t.id,1)}))},changeCheckbox:function(t){for(var e=[],i=[],a=[],n=this.unique(t),o=0;o<n.length;o++){var r,l=n[o];a.includes(l.id)||(r={id:l.id,title:l.title},i.push(r),a.push(l.id),e.push(l))}this.selectedIds=a,this.selectedNames=i,this.multipleSelection=e},cancel:function(){this.isTemplate=!1,this.luckDraw&&(this.currentid=0)},tableList:function(){this.loading=!0},ok:function(){this.luckDraw?(this.$emit("getCouponId",this.productRow),this.currentid=0):this.$emit("nameId",this.selectedIds,this.selectedNames),this.isTemplate=!1},pageChange:function(t){this.tableFrom.page=t,this.tableList()},limitChange:function(t){this.tableFrom.limit=t,this.tableList()},showSelectData:function(){var t=this;0<this.multipleSelection.length&&this.couponList.forEach((function(e){t.multipleSelection.forEach((function(t){e.id,t.id}))}))}}};i=i("2877"),i=Object(i.a)(n,(function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{attrs:{visible:t.isTemplate,title:"优惠券列表","append-to-body":"",width:"1000px"},on:{"update:visible":function(e){t.isTemplate=e}}},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt20",attrs:{data:t.couponList,"highlight-current-row":"","row-key":t.getRowKey,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},on:{"selection-change":t.changeCheckbox}},[e("el-table-column",t.luckDraw?{attrs:{width:"50"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-radio",{attrs:{label:i.row.id},nativeOn:{change:function(e){return t.getTemplateRow(i.row)}},model:{value:t.templateRadio,callback:function(e){t.templateRadio=e},expression:"templateRadio"}},[t._v(" ")])]}}])}:{attrs:{type:"selection",width:"55","reserve-selection":!0}}),e("el-table-column",{attrs:{label:"ID",width:"60"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.id))])]}}])}),e("el-table-column",{attrs:{label:"优惠券名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.title))])]}}])}),e("el-table-column",{attrs:{label:"优惠券类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[1===i.row.type?e("span",[t._v("品类券")]):2===i.row.type?e("span",[t._v("商品券")]):3===i.row.type?e("span",[t._v("会员券")]):e("span",[t._v("通用券")])]}}])}),e("el-table-column",{attrs:{label:"面值","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.coupon_price))])]}}])}),e("el-table-column",{attrs:{label:"最低消费额","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",[t._v(t._s(i.row.use_min_price))])]}}])}),e("el-table-column",{attrs:{label:"发布数量","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[i.row.is_permanent?e("span",[t._v("不限量")]):e("div",[e("span",{staticClass:"fa"},[t._v("发布:"+t._s(i.row.total_count))]),e("span",{staticClass:"sheng"},[t._v("剩余:"+t._s(i.row.remain_count))])])]}}])}),e("el-table-column",{attrs:{label:"有效期限","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[i.row.start_time?e("div",[t._v("\n "+t._s(t._f("formatDate")(i.row.start_time))+" - "+t._s(t._f("formatDate")(i.row.end_time))+"\n ")]):e("span",[t._v("不限时")])]}}])}),e("el-table-column",{attrs:{label:"状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-tag",{directives:[{name:"show",rawName:"v-show",value:1===i.row.status,expression:"scope.row.status === 1"}],attrs:{size:"medium"}},[t._v("正常")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:0===i.row.status,expression:"scope.row.status === 0"}],attrs:{size:"medium",type:"danger"}},[t._v("未开启")]),e("el-tag",{directives:[{name:"show",rawName:"v-show",value:-1===i.row.status,expression:"scope.row.status === -1"}],attrs:{size:"medium",type:"info"}},[t._v("已失效")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.tableFrom.page,limit:t.tableFrom.limit},on:{"update:page":function(e){return t.$set(t.tableFrom,"page",e)},"update:limit":function(e){return t.$set(t.tableFrom,"limit",e)},pagination:t.tableList}}):t._e()],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:t.cancel}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确 定")])],1)],1)],1)}),[],!1,null,"6e7d2a9a",null);e.a=i.exports},e538:function(t,e,i){i=i("b622"),e.f=i},fc4f:function(t,e,i){}}]); |