(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4950ca72","chunk-2d0da983","chunk-2d0da983"],{"00c7":function(t,e,a){},"01c8":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=a("178b"),n=a("3953"),r=a("e630"),o=a("1df6");function s(t){return Object(i["a"])(t)||Object(n["a"])(t)||Object(r["a"])(t)||Object(o["a"])()}},"0447":function(t,e,a){"use strict";a("d6e9")},"0d02":function(t,e,a){},1980:function(t,e,a){(function(e,i){t.exports=i(a("aa47"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function a(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s="fb15")}({"02f4":function(t,e,a){var i=a("4588"),n=a("be13");t.exports=function(t){return function(e,a){var r,o,s=String(n(e)),l=i(a),c=s.length;return l<0||l>=c?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):r:t?s.slice(l,l+2):o-56320+(r-55296<<10)+65536)}}},"0390":function(t,e,a){"use strict";var i=a("02f4")(!0);t.exports=function(t,e,a){return e+(a?i(t,e).length:1)}},"07e3":function(t,e){var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},"0bfb":function(t,e,a){"use strict";var i=a("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,a){var i=a("3a38"),n=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?n(t+e,0):r(t,e)}},1654:function(t,e,a){"use strict";var i=a("71c1")(!0);a("30f1")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,a=this._i;return a>=e.length?{value:void 0,done:!0}:(t=i(e,a),this._i+=t.length,{value:t,done:!1})}))},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(t,e,a){var i=a("63b6");i(i.S,"Array",{isArray:a("9003")})},"1bc3":function(t,e,a){var i=a("f772");t.exports=function(t,e){if(!i(t))return t;var a,n;if(e&&"function"==typeof(a=t.toString)&&!i(n=a.call(t)))return n;if("function"==typeof(a=t.valueOf)&&!i(n=a.call(t)))return n;if(!e&&"function"==typeof(a=t.toString)&&!i(n=a.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,a){var i=a("f772"),n=a("e53d").document,r=i(n)&&i(n.createElement);t.exports=function(t){return r?n.createElement(t):{}}},"20fd":function(t,e,a){"use strict";var i=a("d9f6"),n=a("aebd");t.exports=function(t,e,a){e in t?i.f(t,e,n(0,a)):t[e]=a}},"214f":function(t,e,a){"use strict";a("b0c5");var i=a("2aba"),n=a("32e9"),r=a("79e5"),o=a("be13"),s=a("2b4c"),l=a("520a"),c=s("species"),u=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var f=s(t),m=!r((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),h=m?!r((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[c]=function(){return a}),a[f](""),!e})):void 0;if(!m||!h||"replace"===t&&!u||"split"===t&&!d){var p=/./[f],v=a(o,f,""[t],(function(t,e,a,i,n){return e.exec===l?m&&!n?{done:!0,value:p.call(e,a,i)}:{done:!0,value:t.call(a,e,i)}:{done:!1}})),g=v[0],_=v[1];i(String.prototype,t,g),n(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},"230e":function(t,e,a){var i=a("d3f4"),n=a("7726").document,r=i(n)&&i(n.createElement);t.exports=function(t){return r?n.createElement(t):{}}},"23c6":function(t,e,a){var i=a("2d95"),n=a("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(a){}};t.exports=function(t){var e,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=o(e=Object(t),n))?a:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},"241e":function(t,e,a){var i=a("25eb");t.exports=function(t){return Object(i(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,a){var i=a("7726"),n=a("32e9"),r=a("69a8"),o=a("ca5a")("src"),s=a("fa5b"),l="toString",c=(""+s).split(l);a("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,a,s){var l="function"==typeof a;l&&(r(a,"name")||n(a,"name",e)),t[e]!==a&&(l&&(r(a,o)||n(a,o,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=a:s?t[e]?t[e]=a:n(t,e,a):(delete t[e],n(t,e,a)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2b4c":function(t,e,a){var i=a("5537")("wks"),n=a("ca5a"),r=a("7726").Symbol,o="function"==typeof r,s=t.exports=function(t){return i[t]||(i[t]=o&&r[t]||(o?r:n)("Symbol."+t))};s.store=i},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},"2fdb":function(t,e,a){"use strict";var i=a("5ca1"),n=a("d2c8"),r="includes";i(i.P+i.F*a("5147")(r),"String",{includes:function(t){return!!~n(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(t,e,a){"use strict";var i=a("b8e3"),n=a("63b6"),r=a("9138"),o=a("35e8"),s=a("481b"),l=a("8f60"),c=a("45f2"),u=a("53e2"),d=a("5168")("iterator"),f=!([].keys&&"next"in[].keys()),m="@@iterator",h="keys",p="values",v=function(){return this};t.exports=function(t,e,a,g,_,b,y){l(a,e,g);var x,w,V,k=function(t){if(!f&&t in O)return O[t];switch(t){case h:return function(){return new a(this,t)};case p:return function(){return new a(this,t)}}return function(){return new a(this,t)}},C=e+" Iterator",S=_==p,$=!1,O=t.prototype,A=O[d]||O[m]||_&&O[_],T=A||k(_),M=_?S?k("entries"):T:void 0,L="Array"==e&&O.entries||A;if(L&&(V=u(L.call(new t)),V!==Object.prototype&&V.next&&(c(V,C,!0),i||"function"==typeof V[d]||o(V,d,v))),S&&A&&A.name!==p&&($=!0,T=function(){return A.call(this)}),i&&!y||!f&&!$&&O[d]||o(O,d,T),s[e]=T,s[C]=v,_)if(x={values:S?T:k(p),keys:b?T:k(h),entries:M},y)for(w in x)w in O||r(O,w,x[w]);else n(n.P+n.F*(f||$),e,x);return x}},"32a6":function(t,e,a){var i=a("241e"),n=a("c3a1");a("ce7e")("keys",(function(){return function(t){return n(i(t))}}))},"32e9":function(t,e,a){var i=a("86cc"),n=a("4630");t.exports=a("9e1e")?function(t,e,a){return i.f(t,e,n(1,a))}:function(t,e,a){return t[e]=a,t}},"32fc":function(t,e,a){var i=a("e53d").document;t.exports=i&&i.documentElement},"335c":function(t,e,a){var i=a("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,a){var i=a("d9f6"),n=a("aebd");t.exports=a("8e60")?function(t,e,a){return i.f(t,e,n(1,a))}:function(t,e,a){return t[e]=a,t}},"36c3":function(t,e,a){var i=a("335c"),n=a("25eb");t.exports=function(t){return i(n(t))}},3702:function(t,e,a){var i=a("481b"),n=a("5168")("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[n]===t)}},"3a38":function(t,e){var a=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:a)(t)}},"40c3":function(t,e,a){var i=a("6b4c"),n=a("5168")("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(a){}};t.exports=function(t){var e,a,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=o(e=Object(t),n))?a:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},4588:function(t,e){var a=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:a)(t)}},"45f2":function(t,e,a){var i=a("d9f6").f,n=a("07e3"),r=a("5168")("toStringTag");t.exports=function(t,e,a){t&&!n(t=a?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"469f":function(t,e,a){a("6c1c"),a("1654"),t.exports=a("7d7b")},"481b":function(t,e){t.exports={}},"4aa6":function(t,e,a){t.exports=a("dc62")},"4bf8":function(t,e,a){var i=a("be13");t.exports=function(t){return Object(i(t))}},"4ee1":function(t,e,a){var i=a("5168")("iterator"),n=!1;try{var r=[7][i]();r["return"]=function(){n=!0},Array.from(r,(function(){throw 2}))}catch(o){}t.exports=function(t,e){if(!e&&!n)return!1;var a=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:a=!0}},r[i]=function(){return s},t(r)}catch(o){}return a}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,a){var i=a("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(a){try{return e[i]=!1,!"/./"[t](e)}catch(n){}}return!0}},5168:function(t,e,a){var i=a("dbdb")("wks"),n=a("62a0"),r=a("e53d").Symbol,o="function"==typeof r,s=t.exports=function(t){return i[t]||(i[t]=o&&r[t]||(o?r:n)("Symbol."+t))};s.store=i},5176:function(t,e,a){t.exports=a("51b6")},"51b6":function(t,e,a){a("a3c3"),t.exports=a("584a").Object.assign},"520a":function(t,e,a){"use strict";var i=a("0bfb"),n=RegExp.prototype.exec,r=String.prototype.replace,o=n,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return n.call(t,"a"),n.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(o=function(t){var e,a,o,u,d=this;return c&&(a=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(e=d[s]),o=n.call(d,t),l&&o&&(d[s]=d.global?o.index+o[0].length:e),c&&o&&o.length>1&&r.call(o[0],a,(function(){for(u=1;u1?arguments[1]:void 0,v=void 0!==p,g=0,_=u(f);if(v&&(p=i(p,h>2?arguments[2]:void 0,2)),void 0==_||m==Array&&s(_))for(e=l(f.length),a=new m(e);e>g;g++)c(a,g,v?p(f[g],g):f[g]);else for(d=_.call(f),a=new m;!(n=d.next()).done;g++)c(a,g,v?o(d,p,[n.value,g],!0):n.value);return a.length=g,a}})},"54a1":function(t,e,a){a("6c1c"),a("1654"),t.exports=a("95d5")},5537:function(t,e,a){var i=a("8378"),n=a("7726"),r="__core-js_shared__",o=n[r]||(n[r]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:a("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,a){var i=a("dbdb")("keys"),n=a("62a0");t.exports=function(t){return i[t]||(i[t]=n(t))}},"584a":function(t,e){var a=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=a)},"5b4e":function(t,e,a){var i=a("36c3"),n=a("b447"),r=a("0fc9");t.exports=function(t){return function(e,a,o){var s,l=i(e),c=n(l.length),u=r(o,c);if(t&&a!=a){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===a)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,a){var i=a("7726"),n=a("8378"),r=a("32e9"),o=a("2aba"),s=a("9b43"),l="prototype",c=function(t,e,a){var u,d,f,m,h=t&c.F,p=t&c.G,v=t&c.S,g=t&c.P,_=t&c.B,b=p?i:v?i[e]||(i[e]={}):(i[e]||{})[l],y=p?n:n[e]||(n[e]={}),x=y[l]||(y[l]={});for(u in p&&(a=e),a)d=!h&&b&&void 0!==b[u],f=(d?b:a)[u],m=_&&d?s(f,i):g&&"function"==typeof f?s(Function.call,f):f,b&&o(b,u,f,t&c.U),y[u]!=f&&r(y,u,m),g&&x[u]!=f&&(x[u]=f)};i.core=n,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5d73":function(t,e,a){t.exports=a("469f")},"5f1b":function(t,e,a){"use strict";var i=a("23c6"),n=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"===typeof a){var r=a.call(t,e);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(t,e)}},"626a":function(t,e,a){var i=a("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"62a0":function(t,e){var a=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+i).toString(36))}},"63b6":function(t,e,a){var i=a("e53d"),n=a("584a"),r=a("d864"),o=a("35e8"),s=a("07e3"),l="prototype",c=function(t,e,a){var u,d,f,m=t&c.F,h=t&c.G,p=t&c.S,v=t&c.P,g=t&c.B,_=t&c.W,b=h?n:n[e]||(n[e]={}),y=b[l],x=h?i:p?i[e]:(i[e]||{})[l];for(u in h&&(a=e),a)d=!m&&x&&void 0!==x[u],d&&s(b,u)||(f=d?x[u]:a[u],b[u]=h&&"function"!=typeof x[u]?a[u]:g&&d?r(f,i):_&&x[u]==f?function(t){var e=function(e,a,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,a)}return new t(e,a,i)}return t.apply(this,arguments)};return e[l]=t[l],e}(f):v&&"function"==typeof f?r(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[u]=f,t&c.R&&y&&!y[u]&&o(y,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6762:function(t,e,a){"use strict";var i=a("5ca1"),n=a("c366")(!0);i(i.P,"Array",{includes:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(t,e,a){var i=a("626a"),n=a("be13");t.exports=function(t){return i(n(t))}},"69a8":function(t,e){var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},"6a99":function(t,e,a){var i=a("d3f4");t.exports=function(t,e){if(!i(t))return t;var a,n;if(e&&"function"==typeof(a=t.toString)&&!i(n=a.call(t)))return n;if("function"==typeof(a=t.valueOf)&&!i(n=a.call(t)))return n;if(!e&&"function"==typeof(a=t.toString)&&!i(n=a.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},"6c1c":function(t,e,a){a("c367");for(var i=a("e53d"),n=a("35e8"),r=a("481b"),o=a("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l=c?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):r:t?s.slice(l,l+2):o-56320+(r-55296<<10)+65536)}}},7726:function(t,e){var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},"774e":function(t,e,a){t.exports=a("d2d5")},"77f1":function(t,e,a){var i=a("4588"),n=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?n(t+e,0):r(t,e)}},"794b":function(t,e,a){t.exports=!a("8e60")&&!a("294c")((function(){return 7!=Object.defineProperty(a("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7cd6":function(t,e,a){var i=a("40c3"),n=a("5168")("iterator"),r=a("481b");t.exports=a("584a").getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||r[i(t)]}},"7d7b":function(t,e,a){var i=a("e4ae"),n=a("7cd6");t.exports=a("584a").getIterator=function(t){var e=n(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},"7e90":function(t,e,a){var i=a("d9f6"),n=a("e4ae"),r=a("c3a1");t.exports=a("8e60")?Object.defineProperties:function(t,e){n(t);var a,o=r(e),s=o.length,l=0;while(s>l)i.f(t,a=o[l++],e[a]);return t}},8378:function(t,e){var a=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=a)},8436:function(t,e){t.exports=function(){}},"86cc":function(t,e,a){var i=a("cb7c"),n=a("c69a"),r=a("6a99"),o=Object.defineProperty;e.f=a("9e1e")?Object.defineProperty:function(t,e,a){if(i(t),e=r(e,!0),i(a),n)try{return o(t,e,a)}catch(s){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(t[e]=a.value),t}},"8aae":function(t,e,a){a("32a6"),t.exports=a("584a").Object.keys},"8e60":function(t,e,a){t.exports=!a("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(t,e,a){"use strict";var i=a("a159"),n=a("aebd"),r=a("45f2"),o={};a("35e8")(o,a("5168")("iterator"),(function(){return this})),t.exports=function(t,e,a){t.prototype=i(o,{next:n(1,a)}),r(t,e+" Iterator")}},9003:function(t,e,a){var i=a("6b4c");t.exports=Array.isArray||function(t){return"Array"==i(t)}},9138:function(t,e,a){t.exports=a("35e8")},9306:function(t,e,a){"use strict";var i=a("c3a1"),n=a("9aa9"),r=a("355d"),o=a("241e"),s=a("335c"),l=Object.assign;t.exports=!l||a("294c")((function(){var t={},e={},a=Symbol(),i="abcdefghijklmnopqrst";return t[a]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[a]||Object.keys(l({},e)).join("")!=i}))?function(t,e){var a=o(t),l=arguments.length,c=1,u=n.f,d=r.f;while(l>c){var f,m=s(arguments[c++]),h=u?i(m).concat(u(m)):i(m),p=h.length,v=0;while(p>v)d.call(m,f=h[v++])&&(a[f]=m[f])}return a}:l},9427:function(t,e,a){var i=a("63b6");i(i.S,"Object",{create:a("a159")})},"95d5":function(t,e,a){var i=a("40c3"),n=a("5168")("iterator"),r=a("481b");t.exports=a("584a").isIterable=function(t){var e=Object(t);return void 0!==e[n]||"@@iterator"in e||r.hasOwnProperty(i(e))}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,a){var i=a("d8e8");t.exports=function(t,e,a){if(i(t),void 0===e)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 2:return function(a,i){return t.call(e,a,i)};case 3:return function(a,i,n){return t.call(e,a,i,n)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,a){var i=a("2b4c")("unscopables"),n=Array.prototype;void 0==n[i]&&a("32e9")(n,i,{}),t.exports=function(t){n[i][t]=!0}},"9def":function(t,e,a){var i=a("4588"),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},"9e1e":function(t,e,a){t.exports=!a("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(t,e,a){var i=a("e4ae"),n=a("7e90"),r=a("1691"),o=a("5559")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=a("1ec9")("iframe"),i=r.length,n="<",o=">";e.style.display="none",a("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(n+"script"+o+"document.F=Object"+n+"/script"+o),t.close(),c=t.F;while(i--)delete c[l][r[i]];return c()};t.exports=Object.create||function(t,e){var a;return null!==t?(s[l]=i(t),a=new s,s[l]=null,a[o]=t):a=c(),void 0===e?a:n(a,e)}},a352:function(e,a){e.exports=t},a3c3:function(t,e,a){var i=a("63b6");i(i.S+i.F,"Object",{assign:a("9306")})},a481:function(t,e,a){"use strict";var i=a("cb7c"),n=a("4bf8"),r=a("9def"),o=a("4588"),s=a("0390"),l=a("5f1b"),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,m=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};a("214f")("replace",2,(function(t,e,a,p){return[function(i,n){var r=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,r,n):a.call(String(r),i,n)},function(t,e){var n=p(a,t,this,e);if(n.done)return n.value;var d=i(t),f=String(this),m="function"===typeof e;m||(e=String(e));var g=d.global;if(g){var _=d.unicode;d.lastIndex=0}var b=[];while(1){var y=l(d,f);if(null===y)break;if(b.push(y),!g)break;var x=String(y[0]);""===x&&(d.lastIndex=s(f,r(d.lastIndex),_))}for(var w="",V=0,k=0;k=V&&(w+=f.slice(V,S)+M,V=S+C.length)}return w+f.slice(V)}];function v(t,e,i,r,o,s){var l=i+t.length,c=r.length,u=m;return void 0!==o&&(o=n(o),u=f),a.call(s,u,(function(a,n){var s;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=o[n.slice(1,-1)];break;default:var u=+n;if(0===u)return a;if(u>c){var f=d(u/10);return 0===f?a:f<=c?void 0===r[f-1]?n.charAt(1):r[f-1]+n.charAt(1):a}s=r[u-1]}return void 0===s?"":s}))}}))},a4bb:function(t,e,a){t.exports=a("8aae")},a745:function(t,e,a){t.exports=a("f410")},aae3:function(t,e,a){var i=a("d3f4"),n=a("2d95"),r=a("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==n(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,a){"use strict";var i=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b0dc:function(t,e,a){var i=a("e4ae");t.exports=function(t,e,a,n){try{return n?e(i(a)[0],a[1]):e(a)}catch(o){var r=t["return"];throw void 0!==r&&i(r.call(t)),o}}},b447:function(t,e,a){var i=a("3a38"),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,a){var i=a("6821"),n=a("9def"),r=a("77f1");t.exports=function(t){return function(e,a,o){var s,l=i(e),c=n(l.length),u=r(o,c);if(t&&a!=a){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===a)return t||u||0;return!t&&-1}}},c367:function(t,e,a){"use strict";var i=a("8436"),n=a("50ed"),r=a("481b"),o=a("36c3");t.exports=a("30f1")(Array,"Array",(function(t,e){this._t=o(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,a=this._i++;return!t||a>=t.length?(this._t=void 0,n(1)):n(0,"keys"==e?a:"values"==e?t[a]:[a,t[a]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,a){var i=a("e6f3"),n=a("1691");t.exports=Object.keys||function(t){return i(t,n)}},c649:function(t,e,a){"use strict";(function(t){a.d(e,"c",(function(){return d})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return o})),a.d(e,"d",(function(){return u})),a("a481");var i=a("4aa6"),n=a.n(i);function r(){return"undefined"!==typeof window?window.console:t.console}var o=r();function s(t){var e=n()(null);return function(a){var i=e[a];return i||(e[a]=t(a))}}var l=/-(\w)/g,c=s((function(t){return t.replace(l,(function(t,e){return e?e.toUpperCase():""}))}));function u(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function d(t,e,a){var i=0===a?t.children[0]:t.children[a-1].nextSibling;t.insertBefore(e,i)}}).call(this,a("c8ba"))},c69a:function(t,e,a){t.exports=!a("9e1e")&&!a("79e5")((function(){return 7!=Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(i){"object"===typeof window&&(a=window)}t.exports=a},c8bb:function(t,e,a){t.exports=a("54a1")},ca5a:function(t,e){var a=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+i).toString(36))}},cb7c:function(t,e,a){var i=a("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce7e:function(t,e,a){var i=a("63b6"),n=a("584a"),r=a("294c");t.exports=function(t,e){var a=(n.Object||{})[t]||Object[t],o={};o[t]=e(a),i(i.S+i.F*r((function(){a(1)})),"Object",o)}},d2c8:function(t,e,a){var i=a("aae3"),n=a("be13");t.exports=function(t,e,a){if(i(e))throw TypeError("String#"+a+" doesn't accept regex!");return String(n(t))}},d2d5:function(t,e,a){a("1654"),a("549b"),t.exports=a("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d864:function(t,e,a){var i=a("79aa");t.exports=function(t,e,a){if(i(t),void 0===e)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 2:return function(a,i){return t.call(e,a,i)};case 3:return function(a,i,n){return t.call(e,a,i,n)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,a){var i=a("e4ae"),n=a("794b"),r=a("1bc3"),o=Object.defineProperty;e.f=a("8e60")?Object.defineProperty:function(t,e,a){if(i(t),e=r(e,!0),i(a),n)try{return o(t,e,a)}catch(s){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(t[e]=a.value),t}},dbdb:function(t,e,a){var i=a("584a"),n=a("e53d"),r="__core-js_shared__",o=n[r]||(n[r]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:a("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(t,e,a){a("9427");var i=a("584a").Object;t.exports=function(t,e){return i.create(t,e)}},e4ae:function(t,e,a){var i=a("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},e6f3:function(t,e,a){var i=a("07e3"),n=a("36c3"),r=a("5b4e")(!1),o=a("5559")("IE_PROTO");t.exports=function(t,e){var a,s=n(t),l=0,c=[];for(a in s)a!=o&&i(s,a)&&c.push(a);while(e.length>l)i(s,a=e[l++])&&(~r(c,a)||c.push(a));return c}},f410:function(t,e,a){a("1af6"),t.exports=a("584a").Array.isArray},f559:function(t,e,a){"use strict";var i=a("5ca1"),n=a("9def"),r=a("d2c8"),o="startsWith",s=""[o];i(i.P+i.F*a("5147")(o),"String",{startsWith:function(t){var e=r(this,t,o),a=n(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,a):e.slice(a,a+i.length)===i}})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,a){t.exports=a("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,a){"use strict";var i;a.r(e),"undefined"!==typeof window&&(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(a.p=i[1]);var n=a("5176"),r=a.n(n),o=(a("f559"),a("a4bb")),s=a.n(o),l=(a("6762"),a("2fdb"),a("a745")),c=a.n(l);function u(t){if(c()(t))return t}var d=a("5d73"),f=a.n(d);function m(t,e){var a=[],i=!0,n=!1,r=void 0;try{for(var o,s=f()(t);!(i=(o=s.next()).done);i=!0)if(a.push(o.value),e&&a.length===e)break}catch(l){n=!0,r=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(n)throw r}}return a}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function p(t,e){return u(t)||m(t,e)||h()}function v(t){if(c()(t)){for(var e=0,a=new Array(t.length);e=r?n.length:n.indexOf(t)}));return a?o.filter((function(t){return-1!==t})):o}function T(t,e){var a=this;this.$nextTick((function(){return a.$emit(t.toLowerCase(),e)}))}function M(t){var e=this;return function(a){null!==e.realList&&e["onDrag"+t](a),T.call(e,t,a)}}function L(t){if(!t||1!==t.length)return!1;var e=p(t,1),a=e[0].componentOptions;return!!a&&["transition-group","TransitionGroup"].includes(a.tag)}function D(t,e){var a=e.header,i=e.footer,n=0,r=0;return a&&(n=a.length,t=t?[].concat(V(a),V(t)):V(a)),i&&(r=i.length,t=t?[].concat(V(t),V(i)):V(i)),{children:t,headerOffset:n,footerOffset:r}}function E(t,e){var a=null,i=function(t,e){a=$(a,t,e)},n=s()(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,a){return e[a]=t[a],e}),{});if(i("attrs",n),!e)return a;var o=e.on,l=e.props,c=e.attrs;return i("on",o),i("props",l),r()(a.attrs,c),a}var j=["Start","Add","Remove","Update","End"],B=["Choose","Sort","Filter","Clone"],F=["Move"].concat(j,B).map((function(t){return"on"+t})),I=null,P={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}},z={name:"draggable",inheritAttrs:!1,props:P,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=L(e);var a=D(e,this.$slots),i=a.children,n=a.headerOffset,r=a.footerOffset;this.headerOffset=n,this.footerOffset=r;var o=E(this.$attrs,this.componentData);return t(this.getTag(),o,i)},created:function(){null!==this.list&&null!==this.value&&S["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&S["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&&S["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.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={};j.forEach((function(a){e["on"+a]=M.call(t,a)})),B.forEach((function(a){e["on"+a]=T.bind(t,a)}));var a=s()(this.$attrs).reduce((function(e,a){return e[Object(S["a"])(a)]=t.$attrs[a],e}),{}),i=r()({},this.options,a,e,{onMove:function(e,a){return t.onDragMove(e,a)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new C.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.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:{getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var a=Object(S["a"])(e);-1===F.indexOf(a)&&this._sortable.option(a,t[e])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=A(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=O(this.getChildrenNodes()||[],t);if(-1===e)return null;var a=this.realList[e];return{index:e,element:a}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&"transition-group"===e.$options._componentTag?e.$parent:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=V(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,V(t))};this.alterList(e)},updatePosition:function(t,e){var a=function(a){return a.splice(e,0,a.splice(t,1)[0])};this.alterList(a)},getRelatedContextFromMoveEvent:function(t){var e=t.to,a=t.related,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var n=i.realList,o={list:n,component:i};if(e!==a&&n&&i.getUnderlyingVm){var s=i.getUnderlyingVm(a);if(s)return r()(s,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,a=e.length;return t>a-1?a:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var a=this.getComponent();a.children=[],a.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),I=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(S["d"])(t.item);var a=this.getVmIndex(t.newIndex);this.spliceList(a,0,e),this.computeIndexes();var i={element:e,newIndex:a};this.emitChanges({added:i})}},onDragRemove:function(t){if(Object(S["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var a={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:a})}else Object(S["d"])(t.clone)},onDragUpdate:function(t){Object(S["d"])(t.item),Object(S["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,a=this.getVmIndex(t.newIndex);this.updatePosition(e,a);var i={element:this.context.element,oldIndex:e,newIndex:a};this.emitChanges({moved:i})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var a=V(e.to.children).filter((function(t){return"none"!==t.style["display"]})),i=a.indexOf(e.related),n=t.component.getVmIndex(i),r=-1!==a.indexOf(I);return r||!e.willInsertAfter?n:n+1},onDragMove:function(t,e){var a=this.move;if(!a||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),n=this.context,o=this.computeFutureIndex(i,t);r()(n,{futureIndex:o});var s=r()({},t,{relatedContext:i,draggedContext:n});return a(s,e)},onDragEnd:function(){this.computeIndexes(),I=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",z);var N=z;e["default"]=N}})["default"]}))},"19db":function(t,e,a){"use strict";a("00c7")},2004:function(t,e,a){"use strict";a("b1fb")},"205c":function(t,e,a){},"24bb":function(t,e,a){"use strict";a("0d02")},2865:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix"},[t.headTab.length>0?a("el-tabs",{model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headTab,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.name,label:t.title}})})),1):t._e()],1),t._v(" "),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],key:t.currentTab,ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"130px"},nativeOn:{submit:function(t){t.preventDefault()}}},["1"===t.currentTab?a("productInfo",{attrs:{formValidate:t.formValidate,OneattrValue:t.OneattrValue,attrValue:t.attrValue,is_timed:t.is_timed,timeVal:t.timeVal,videoLink:t.videoLink,timeVal2:t.timeVal2,props:t.props},on:{changeTimed:t.switchTimed,productCon:t.productCon,getSpecsLst:t.getSpecsLst,getSpecsList:t.getSpecsList,generateHeader:t.generateHeader}}):t._e(),t._v(" "),"2"===t.currentTab&&4!==t.formValidate.type?a("productSpecs",{attrs:{formValidate:t.formValidate,attrs:t.attrs,oneFormBatch:t.oneFormBatch,OneattrValue:t.OneattrValue,ManyAttrValue:t.ManyAttrValue,changeAttrValue:t.changeAttrValue,attrValue:t.attrValue,formThead:t.formThead,formDynamic:t.formDynamic,product_id:t.product_id,cdkeyLibraryList:t.cdkeyLibraryList},on:{handleBlur:t.handleBlur,handleFocus:t.handleFocus,generateAttr:t.generateAttr,handleAddRole:t.handleAddRole,handleRemoveRole:t.handleRemoveRole,attrChangeValue:t.attrChangeValue,batchDel:t.batchDel,getSelectedLiarbry:t.getSelectedLiarbry,delAttrTable:t.delAttrTable,delManyImg:t.delManyImg,attrDetailChangeValue:t.attrDetailChangeValue,setAttrs:t.setAttrs,addVirtual:t.addVirtual,seeVirtual:t.seeVirtual}}):t._e(),t._v(" "),"2"===t.currentTab&&4===t.formValidate.type?a("reservationSpecs",{ref:"reservationSpecs",attrs:{formValidate:t.formValidate,attrs:t.attrs,OneattrValue:t.OneattrValue,ManyAttrValue:t.ManyAttrValue,changeAttrValue:t.changeAttrValue,attrValue:t.attrValue,formThead:t.formThead,oneFormBatch:t.oneFormBatch,formDynamic:t.formDynamic,product_id:t.product_id,cdkeyLibraryList:t.cdkeyLibraryList},on:{generateAttr:t.generateAttr,handleAddRole:t.handleAddRole,handleRemoveRole:t.handleRemoveRole,delAttrTable:t.delAttrTable,delManyImg:t.delManyImg,attrChangeValue:t.attrChangeValue,batchDel:t.batchDel,attrDetailChangeValue:t.attrDetailChangeValue,getSelectedLiarbry:t.getSelectedLiarbry,setAttrs:t.setAttrs,handleBlur:t.handleBlur,handleFocus:t.handleFocus}}):t._e(),t._v(" "),"7"===t.currentTab?a("reservationSetting",{ref:"reservationSetting",attrs:{roterPre:t.roterPre,formValidate:t.formValidate,formList:t.formList,formUrl:t.formUrl},on:{getFormList:t.getFormList,getFormInfo:t.getFormInfo}}):t._e(),t._v(" "),"3"===t.currentTab?a("productDetail",{attrs:{formValidate:t.formValidate},on:{getEditorContent:t.getEditorContent}}):t._e(),t._v(" "),"4"===t.currentTab?a("productMarket",{attrs:{formValidate:t.formValidate,"good-list":t.goodList,OneattrValue:t.OneattrValue,open_svip:t.open_svip,manyTabDate:t.manyTabDate,deduction_set:t.deduction_set,extensionStatus:t.extensionStatus,deductionStatus:t.deductionStatus,deduction_ratio_rate:t.deduction_ratio_rate,extension_two_rate:t.extension_two_rate,manyTabTit:t.manyTabTit,ManyAttrValue:t.ManyAttrValue,svip_rate:t.svip_rate,"base-url":t.baseURL,specValue:t.specValue,formThead:t.formThead},on:{openRecommend:t.openRecommend}}):t._e(),t._v(" "),"5"===t.currentTab?a("product-param",{attrs:{formValidate:t.formValidate,customSpecs:t.customSpecs,sysSpecsSelect:t.sysSpecsSelect,merSpecsSelect:t.merSpecsSelect},on:{getSpecsList:t.getSpecsList}}):t._e(),t._v(" "),"6"===t.currentTab&&4!==t.formValidate.type?a("productOther",{attrs:{formValidate:t.formValidate,deliveryList:t.deliveryList,shippingList:t.shippingList,guaranteeList:t.guaranteeList,formList:t.formList,formUrl:t.formUrl,roterPre:t.roterPre},on:{addTem:t.addTem,getFormList:t.getFormList,getFormInfo:t.getFormInfo,addServiceTem:t.addServiceTem}}):t._e(),t._v(" "),"6"===t.currentTab&&4===t.formValidate.type?a("reservationOther",{ref:"reservationOther",attrs:{formValidate:t.formValidate,deliveryList:t.deliveryList,shippingList:t.shippingList,guaranteeList:t.guaranteeList,formList:t.formList,formUrl:t.formUrl,roterPre:t.roterPre},on:{addTem:t.addTem,getFormList:t.getFormList,getFormInfo:t.getFormInfo,addServiceTem:t.addServiceTem}}):t._e()],1)],1),t._v(" "),a("div",{staticClass:"footer"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:t.currentTab>1,expression:"currentTab > 1"}],staticClass:"submission",attrs:{size:"small"},on:{click:t.handleSubmitUp}},[t._v("上一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:6!=t.currentTab,expression:"currentTab != 6"}],staticClass:"submission",attrs:{size:"small"},on:{click:function(e){return t.handleSubmitNest("formValidate")}}},[t._v("下一步\n ")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"6"==t.currentTab||t.$route.query.id,expression:"currentTab == '6' || $route.query.id"}],staticClass:"submission",attrs:{loading:t.loading,type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交\n ")]),t._v(" "),a("el-button",{staticClass:"submission",attrs:{loading:t.loading,size:"small"},on:{click:function(e){return t.handlePreview("formValidate")}}},[t._v("预览\n ")])],1),t._v(" "),t.attrShow?a("el-dialog",{attrs:{visible:t.attrShow,title:"请选择商品规格",width:"320px"},on:{"update:visible":function(e){t.attrShow=e}}},[t.attrShow?a("attr-list",{attrs:{attrs:t.attrsList},on:{activeData:t.activeAttr,close:t.labelAttr,subAttrs:t.subAttrs}}):t._e()],1):t._e(),t._v(" "),a("guarantee-service",{ref:"serviceGuarantee",on:{"get-list":t.getGuaranteeList}}),t._v(" "),t.previewVisible?a("div",[a("div",{staticClass:"bg",on:{click:function(e){e.stopPropagation(),t.previewVisible=!1}}}),t._v(" "),t.previewVisible?a("preview-box",{ref:"previewBox",attrs:{"preview-key":t.previewKey}}):t._e()],1):t._e(),t._v(" "),a("tao-bao",{ref:"taoBao",on:{"info-data":function(e){return t.infoData(e,"taobao")}}}),t._v(" "),a("add-carMy",{ref:"addCarMy",attrs:{virtualList:t.virtualList},on:{changeVirtual:t.changeVirtual,fixdBtn:t.fixdBtn,closeCarMy:t.closeCarMy}}),t._v(" "),a("cdkey-library",{ref:"cdkeyLibrary",attrs:{cdkeyLibraryInfo:t.cdkeyLibraryInfo,selectedLibrary:t.selectedLibrary},on:{handlerSubSuccess:t.handlerChangeCdkeyIdSubSuccess}}),t._v(" "),a("el-dialog",{attrs:{visible:t.recommendVisible,title:"推荐商品列表",width:"900px"},on:{"update:visible":function(e){t.recommendVisible=e}}},[t.recommendVisible?a("goods-list",{ref:"goodslist",attrs:{ischeckbox:!0,isGood:!0,product_id:t.product_id,selectedArr:t.goodList},on:{getProductId:t.getRecommend,close:t.closeRecommend}}):t._e()],1),t._v(" "),a("templatesFrom",{ref:"templateForm",on:{getList:t.getShippingList}})],1)},n=[],r=a("01c8"),o=(a("20d6"),a("456d"),a("8615"),a("2d63")),s=a("c80c"),l=(a("96cf"),a("3b8d")),c=a("ed33"),u=a.n(c);function d(t,e){if(null==t)return{};var a={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;a[i]=t[i]}return a}function f(t,e){if(null==t)return{};var a,i,n=d(t,e);if(u.a){var r=u()(t);for(i=0;i10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=r[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=r[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=r[0])}),t)},getLabelList:function(){var t=this;Object(V["H"])().then((function(e){t.labelList=e.data})).catch((function(e){t.$message.error(e.message)}))}}},C=k,S=(a("bed5"),a("2877")),$=Object(S["a"])(C,x,w,!1,null,"437da0e8",null),O=$.exports,A=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"规格类型:",props:"spec_type"}},[a("el-radio-group",{model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("多规格")])],1),t._v(" "),1==t.formValidate.spec_type&&t.ruleList.length>0?a("el-dropdown",{staticClass:"ml20",attrs:{trigger:"hover"},on:{command:t.confirm}},[a("span",{staticClass:"el-dropdown-link"},[t._v("\n 选择规格模板"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-scrollbar",{staticStyle:{"max-height":"300px","overflow-y":"scroll"}},t._l(t.ruleList,(function(e,i){return a("el-dropdown-item",{key:i,attrs:{command:e.attr_template_id}},[t._v("\n "+t._s(e.template_name)+"\n ")])})),1)],1)],1):t._e()],1)],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",required:""}},[a("div",{staticClass:"specifications"},[a("draggable",{attrs:{group:"specifications",disabled:t.attrs.length<2,list:t.attrs,handle:".move-icon",animation:"300"},on:{end:t.onMoveSpec}},t._l(t.attrs,(function(e,i){return a("div",{key:i,staticClass:"specifications-item active",on:{click:function(e){return t.changeCurrentIndex(i)}}},[a("div",{staticClass:"move-icon"},[a("span",{staticClass:"iconfont icondrag2"})]),t._v(" "),a("i",{staticClass:"del el-icon-error",on:{click:function(a){return t.handleRemoveRole(i,e.value)}}}),t._v(" "),a("div",{staticClass:"specifications-item-box"},[a("div",{staticClass:"lineBox"}),t._v(" "),a("div",{staticClass:"specifications-item-name mb18"},[a("el-input",{staticClass:"specifications-item-name-input",attrs:{size:"small",placeholder:"规格名称",maxlength:"30","show-word-limit":""},on:{change:function(a){return t.attrChangeValue(i,e.value)},focus:function(a){return t.handleFocus(e.value)}},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}}),t._v(" "),a("el-checkbox",{staticClass:"ml20",attrs:{disabled:!e.add_pic&&!t.canSel,"true-label":1,"false-label":0},on:{change:function(e){return t.addPic(e,i)}},model:{value:e.add_pic,callback:function(a){t.$set(e,"add_pic",a)},expression:"item.add_pic"}},[t._v("添加规格图")]),t._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格图片, 仅支持打开一个(建议尺寸:800*800)",placement:"right"}},[a("i",{staticClass:"el-icon-info"})])],1),t._v(" "),a("div",{staticClass:"rulesBox ml30"},[a("draggable",{staticClass:"item",attrs:{list:e.detail,disabled:e.detail.length<2,handle:".drag"},on:{end:t.onMoveSpec}},[t._l(e.detail,(function(n,r){return a("div",{key:r,staticClass:"mr10 spec drag"},[a("i",{staticClass:"el-icon-error",on:{click:function(a){return t.handleRemove2(e.detail,r,n.value)}}}),t._v(" "),a("el-input",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"规格值",maxlength:"30"},on:{change:function(e){return t.attrDetailChangeValue(n.value,i)},focus:function(e){return t.handleFocus(n.value)},blur:function(e){return t.handleBlur()}},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"det.value"}},[a("template",{slot:"prefix"},[a("span",{staticClass:"iconfont icondrag2"})])],2),t._v(" "),e.add_pic?a("div",{staticClass:"img-popover"},[a("div",{staticClass:"popper-arrow"}),t._v(" "),a("div",{staticClass:"popper",on:{click:function(e){return t.handleSelImg(n,i,r)}}},[n.pic?a("img",{staticClass:"img",attrs:{src:n.pic}}):a("i",{staticClass:"el-icon-plus"})]),t._v(" "),n.pic?a("i",{staticClass:"img-del el-icon-error",on:{click:function(e){return t.handleRemoveImg(n,i,r)}}}):t._e()]):t._e()],1)})),t._v(" "),a("el-popover",{ref:"popoverRef_"+i,refInFor:!0,attrs:{placement:"",width:"210",trigger:"click"},on:{"after-enter":function(e){return t.handleShowPop(i)}}},[a("el-input",{ref:"inputRef_"+i,refInFor:!0,staticStyle:{"min-width":"80px",width:"210"},attrs:{size:"small",placeholder:"请输入规格值",maxlength:"30","show-word-limit":""},on:{blur:function(e){return t.createAttr(t.formDynamic.attrsVal,i)}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createAttr(t.formDynamic.attrsVal,i)}},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}}),t._v(" "),a("div",{staticClass:"addfont",attrs:{slot:"reference"},slot:"reference"},[t._v("添加规格值")])],1)],2)],1)])])})),0),t._v(" "),t.attrs.length<4?a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.handleAddRole()}}},[t._v("添加新规格")]):t._e(),t._v(" "),t.attrs.length>=1?a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.handleSaveAsTemplate()}}},[t._v("另存为模板")]):t._e()],1)])],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox specPictrue",on:{click:function(e){return t.modalPicTap("1","dan")}}},[t.formValidate.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,1897791643)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i]&&t.formThead[i].title,align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=t.formValidate.svip_price_type&&t.formThead[i]?a("div",["规格编码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"条形码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"付费会员价"!==t.formThead[i].title&&"规格编码"!==t.formThead[i].title&&"条形码"!==t.formThead[i].title&&"库存"!==t.formThead[i].title?a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small","controls-position":"right"},on:{blur:function(a){return t.memberPrice(t.formThead[i],e.row)}},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e(),t._v(" "),"库存"!==t.formThead[i].title||2!=t.formValidate.type&&3!=t.formValidate.type?"库存"===t.formThead[i].title&&2!==t.formValidate.type&&3!==t.formValidate.type?a("el-input",{staticClass:"priceBox",attrs:{type:"text",size:"small"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):t._e():a("el-input",{staticClass:"priceBox",attrs:{type:"text",size:"small",disabled:""},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1):a("div",["规格编码"===t.formThead[i].title||"条形码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text",size:"small"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small",disabled:"库存"===t.formThead[i].title&&(2==t.formValidate.type||3==t.formValidate.type),"controls-position":"right"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),2==t.formValidate.type?[a("el-table-column",{attrs:{align:"center",label:"云盘设置","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[!e.row.cdkey||e.row.cdkey.list||e.row.stock?a("span",{staticClass:"seeCatMy",on:{click:function(e){return t.seeVirtual(0,t.OneattrValue[0],"OneattrValue",0)}}},[t._v("已设置")]):a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.addVirtual(0,0,"OneattrValue")}}},[t._v("添加链接")])]}}],null,!1,4076325305)})]:t._e(),t._v(" "),3==t.formValidate.type?[a("el-table-column",{attrs:{align:"center",label:"卡密设置","min-width":"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{placeholder:"请选择卡密库",clearable:"",size:"small"},on:{change:function(a){return t.handleChange(a,e.$index,"OneattrValue")}},model:{value:e.row.library_id,callback:function(a){t.$set(e.row,"library_id",a)},expression:"scope.row.library_id"}},t._l(t.cdkeyLibraryList,(function(e,i){return a("el-option",{key:i,attrs:{value:e.id,label:e.name,disabled:!e.checkout&&(e.product_id!=t.product_id||e.product_id==t.product_id&&"copy"==t.$route.query.type)}})})),1)]}}],null,!1,951677199)})]:t._e()],2)],1):t._e(),t._v(" "),1==t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.ManyAttrValue,"cell-class-name":t.tableCellClassName,"span-method":t.objectSpanMethod,border:"",size:"small"}},t._l(t.formValidate.header,(function(e,i){return a("el-table-column",{key:i,attrs:{label:e.title,"min-width":e.minWidth||"100",fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(i){return[0==i.$index?[e.key?[t.attrs.length&&t.attrs[i.column.index]&&t.ManyAttrValue.length?a("div",[a("el-select",{attrs:{placeholder:"请选择"+e.title,size:"small",clearable:""},model:{value:t.oneFormBatch[0][e.title],callback:function(a){t.$set(t.oneFormBatch[0],e.title,a)},expression:"oneFormBatch[0][item.title]"}},t._l(t.attrs[i.column.index].detail,(function(t){return a("el-option",{key:t.value,attrs:{label:t.value,value:t.value}})})),1)],1):t._e()]:"image"===e.slot?[a("div",{staticClass:"upLoadPicBox specPictrue",on:{click:function(e){return e.stopPropagation(),t.modalPicTap("1","pi",i.$index)}}},[t.oneFormBatch[0].image?a("div",{staticClass:"upLoad tabPic"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].image,expression:"oneFormBatch[0].image"}]}),t._v(" "),a("i",{staticClass:"el-icon-error btndel btnclose",on:{click:function(e){e.stopPropagation(),t.oneFormBatch[0].image=""}}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]:"price"===e.slot?[a("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"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999,clearable:""},model:{value:t.oneFormBatch[0].cost,callback:function(e){t.$set(t.oneFormBatch[0],"cost",e)},expression:"oneFormBatch[0].cost"}})]:"ot_price"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999,clearable:""},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]:"stock"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,disabled:3==t.formValidate.type||2==t.formValidate.type,min:0,max:9999999999,clearable:""},model:{value:t.oneFormBatch[0].stock,callback:function(e){t.$set(t.oneFormBatch[0],"stock",e)},expression:"oneFormBatch[0].stock"}})]:"fictitious"===e.slot?[t._v("\n --\n ")]:"bar_code"===e.slot?[a("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"}})]:"bar_code_number"===e.slot?[a("el-input",{model:{value:t.oneFormBatch[0].bar_code_number,callback:function(e){t.$set(t.oneFormBatch[0],"bar_code_number",e)},expression:"oneFormBatch[0].bar_code_number"}})]:"weight"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999,clearable:""},model:{value:t.oneFormBatch[0].weight,callback:function(e){t.$set(t.oneFormBatch[0],"weight",e)},expression:"oneFormBatch[0].weight"}})]:"volume"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999,clearable:""},model:{value:t.oneFormBatch[0].volume,callback:function(e){t.$set(t.oneFormBatch[0],"volume",e)},expression:"oneFormBatch[0].volume"}})]:"selected_spec"===e.slot?[t._v("\n --\n ")]:"action"===e.slot?[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.batchAdd}},[t._v("批量修改")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.batchDel}},[t._v("清空")])]:t._e()]:[e.key?[a("div",[a("span",[t._v(t._s(i.row.detail[e.key]))])])]:t._e(),t._v(" "),"image"===e.slot?[a("div",{staticClass:"upLoadPicBox specPictrue",on:{click:function(e){return t.modalPicTap("1","duo",i.$index)}}},[i.row.image||i.row.pic?a("div",{staticClass:"upLoad tabPic"},[a("img",{attrs:{src:i.row.image||i.row.pic}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont",staticStyle:{"font-size":"24px"}})])])]:t._e(),t._v(" "),"price"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].price,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"price",e)},expression:"ManyAttrValue[scope.$index].price"}})]:"cost"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].cost,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"cost",e)},expression:"ManyAttrValue[scope.$index].cost"}})]:"ot_price"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].ot_price,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"ot_price",e)},expression:"ManyAttrValue[scope.$index].ot_price"}})]:"stock"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,disabled:3==t.formValidate.type||2==t.formValidate.type,min:0,max:9999999999,precision:0},model:{value:t.ManyAttrValue[i.$index].stock,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"stock",e)},expression:"ManyAttrValue[scope.$index].stock"}})]:"bar_code"===e.slot?[a("el-input",{model:{value:t.ManyAttrValue[i.$index].bar_code,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"bar_code",e)},expression:"ManyAttrValue[scope.$index].bar_code"}})]:"bar_code_number"===e.slot?[a("el-input",{model:{value:t.ManyAttrValue[i.$index].bar_code_number,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"bar_code_number",e)},expression:"ManyAttrValue[scope.$index].bar_code_number"}})]:"weight"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].weight,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"weight",e)},expression:"ManyAttrValue[scope.$index].weight"}})]:"volume"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].volume,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"volume",e)},expression:"ManyAttrValue[scope.$index].volume"}})]:"fictitious"===e.slot&&2==t.formValidate.type?[!i.row.cdkey||i.row.cdkey&&!i.row.cdkey.list&&!i.row.stock?a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.addVirtual(0,i.$index,"ManyAttrValue")}}},[t._v("添加链接")]):a("span",{staticClass:"seeCatMy",on:{click:function(e){return t.seeVirtual(0,t.ManyAttrValue[i.$index],"ManyAttrValue",i.$index)}}},[t._v("已设置")])]:"fictitious"===e.slot&&3==t.formValidate.type?[a("el-select",{attrs:{clearable:"",placeholder:"请选择卡密库",size:"small"},on:{change:function(e){return t.handleChange(e,i.$index,"ManyAttrValue")},"visible-change":function(e){return t.getSelectedLiarbry(t.ManyAttrValue[i.$index],t.ManyAttrValue)}},model:{value:i.row.library_id,callback:function(e){t.$set(i.row,"library_id",e)},expression:"scope.row.library_id"}},t._l(t.cdkeyLibraryList,(function(e,i){return a("el-option",{key:i,attrs:{value:e.id,label:e.name,disabled:!e.checkout&&(e.product_id!=t.product_id||e.product_id==t.product_id&&"copy"==t.$route.query.type)||t.selectedLibrary.length>0&&-1!=t.selectedLibrary.indexOf(e.id)}})})),1)]:"selected_spec"===e.slot?[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.changeDefaultSelect(e,i.$index)}},model:{value:t.ManyAttrValue[i.$index].is_default_select,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"is_default_select",e)},expression:"ManyAttrValue[scope.$index].is_default_select"}})]:"action"===e.slot?[a("el-switch",{staticClass:"defineSwitch",attrs:{"active-text":"显示","inactive-text":"隐藏","active-value":1,"inactive-value":0},on:{change:function(e){return t.changeDefaultShow(i.$index)}},model:{value:t.ManyAttrValue[i.$index].is_show,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"is_show",e)},expression:"ManyAttrValue[scope.$index].is_show"}})]:t._e()]]}}],null,!0)})})),1)],1):t._e()],1)],1)],1)},T=[],M=(a("4f7f"),a("7514"),{props:{formValidate:{type:Object,default:function(){return{spec_type:0}}},ManyAttrValue:{type:Array,default:function(){return[]}},changeAttrValue:{type:String,default:function(){return""}},attrValue:{type:Object,default:function(){}},formThead:{type:Object,default:function(){}},oneFormBatch:{type:Array,default:function(){return[]}},OneattrValue:{type:Array,default:function(){return[]}},formDynamic:{type:Object,default:function(){return{}}},product_id:{type:String,default:""},attrs:{type:Array,default:function(){return[]}},cdkeyLibraryList:{type:Array,default:function(){return[]}},selectedLibrary:{type:Array,default:function(){return[]}}},components:{draggable:b.a},data:function(){return{ruleList:[],timeCheckAll:[],reservationTime:[],timeCheckAllGroup:[],timeCheckAllClone:[],timeDataClone:[],canSel:!0,tableKey:0,selectRule:""}},mounted:function(){this.productGetRule(),this.showSpecsByType()},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({showSpecsByType:function(){2==this.formValidate.type||3==this.formValidate.type?(delete this.attrValue.weight,delete this.attrValue.volume):(this.attrValue.weight="",this.attrValue.volume="")},attrChangeValue:function(t,e){this.$emit("attrChangeValue",t,e)},handleChange:function(t,e,a){var i=this.cdkeyLibraryList.find((function(e){return e.id===t}));this.$set(this[a][e],"stock",t?Number(i.total_num-i.used_num):0),"ManyAttrValue"==a&&this.getSelectedLiarbry(this[a][e],this.ManyAttrValue)},attrDetailChangeValue:function(t,e){this.$emit("attrDetailChangeValue",t,e)},addVirtual:function(t,e,a){this.$emit("addVirtual",t,e,a)},handleFocus:function(t){this.$emit("handleFocus",t)},handleBlur:function(){this.$emit("handleBlur")},addPic:function(t,e){var a=this;t?(this.attrs.map((function(t,i){i!==e&&a.$set(t,"add_pic",0)})),this.canSel=!1):this.canSel=!0},handleShowPop:function(t){this.$refs["inputRef_"+t][0].focus()},handleRemoveRole:function(t){this.$emit("handleRemoveRole",t)},handleRemove2:function(t,e,a){t.splice(e,1),this.$emit("delAttrTable",a)},handleSelImg:function(t,e,a){var i=this;this.$modalUpload((function(n){t.pic=n[0],i.changeSpecImg([t.value],n[0],e,a)}))},changeSpecImg:function(t,e,a,i){for(var n=this,r=!1,s=1;s0){var n=e.label,r=this.ManyAttrValue[a].detail[n],o=this.ManyAttrValue.findIndex((function(t,e){if(e>0)return t.detail[n]==r}));if(a==o){for(var s=1,l=o+1;l10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&(i.OneattrValue[0].image=r[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=r[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=r[0])}),t)},onMoveSpec:function(){this.$emit("generateAttr",this.attrs)},virtualListClear:function(){this.virtualList=[{is_type:0,key:"",stock:""}]},seeVirtual:function(t,e,a,i){this.$emit("seeVirtual",t,e,a,i)},getSelectedLiarbry:function(t,e){this.$emit("getSelectedLiarbry",t,e)}},"changeCurrentIndex",(function(t){this.currentIndex=t})),"confirm",(function(t){var e=this;if(this.selectRule=t,this.createBnt=!0,!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(t){t.attr_template_id===e.selectRule&&(t.template_value.forEach((function(t,e){t.add_pic=0})),e.canSel=!0,e.$emit("setAttrs",Object(p["a"])(t.template_value)),e.formValidate.attr=t.template_value)}))})),"generateCombinations",(function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return[a];var i=Object(r["a"])(t),n=i[0],o=i.slice(1);return n.detail.flatMap((function(t){return e.generateCombinations(o,[].concat(Object(p["a"])(a),[t.value]))}))}))}),L=M,D=(a("0447"),Object(S["a"])(L,A,T,!1,null,"1386a6c6",null)),E=D.exports,j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品详情:"}},[a("WangEditor",{staticStyle:{width:"100%"},attrs:{content:t.formValidate.content},on:{editorContent:t.getEditorContent}})],1)],1)],1)},B=[],F={name:"ProductDetail",components:{WangEditor:g["a"]},props:{formValidate:{type:Object,default:function(){return{}}}},methods:{getEditorContent:function(t){this.$emit("getEditorContent",t)}}},I=F,P=Object(S["a"])(I,j,B,!1,null,null,null),z=P.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"支持退款:"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"开启","inactive-text":"关闭"},model:{value:t.formValidate.refund_switch,callback:function(e){t.$set(t.formValidate,"refund_switch",e)},expression:"formValidate.refund_switch"}})],1)],1),t._v(" "),t.deliveryList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"送货方式:",prop:"delivery_way"}},[a("div",{staticClass:"acea-row"},[a("el-checkbox-group",{model:{value:t.formValidate.delivery_way,callback:function(e){t.$set(t.formValidate,"delivery_way",e)},expression:"formValidate.delivery_way"}},t._l(t.deliveryList,(function(e){return a("el-checkbox",{key:e.value,attrs:{label:e.value}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)])],1):t._e(),t._v(" "),(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"是否包邮:"}},[a("el-radio-group",{model:{value:t.formValidate.delivery_free,callback:function(e){t.$set(t.formValidate,"delivery_free",e)},expression:"formValidate.delivery_free"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1)],1)],1):t._e(),t._v(" "),0==t.formValidate.delivery_free&&(2==t.formValidate.delivery_way.length||1==t.formValidate.delivery_way.length&&2==t.formValidate.delivery_way[0])&&0==t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"运费模板:",prop:"temp_id",size:"small"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请选择"},model:{value:t.formValidate.temp_id,callback:function(e){t.$set(t.formValidate,"temp_id",e)},expression:"formValidate.temp_id"}},t._l(t.shippingList,(function(t){return a("el-option",{key:t.shipping_template_id,attrs:{label:t.name,value:t.shipping_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addTem}},[t._v("添加运费模板")])],1)])],1):t._e(),t._v(" "),3!=t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-col",[a("el-form-item",{attrs:{label:"最少购买件数:"}},[a("el-input-number",{attrs:{min:0,size:"small","controls-position":"right",placeholder:"请输入购买件数"},model:{value:t.formValidate.once_min_count,callback:function(e){t.$set(t.formValidate,"once_min_count",e)},expression:"formValidate.once_min_count"}}),t._v("\n   "),a("span",{staticClass:"explanation"},[t._v("默认为0,则不限制购买件数")])],1)],1)],1):t._e(),t._v(" "),3!=t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"限购类型:"}},[a("el-radio-group",{model:{value:t.formValidate.pay_limit,callback:function(e){t.$set(t.formValidate,"pay_limit",e)},expression:"formValidate.pay_limit"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("不限购")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("单次限购")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("长期限购")])],1)],1)],1):t._e(),t._v(" "),0!=t.formValidate.pay_limit?a("el-col",{attrs:{span:24}},[a("el-col",[a("el-form-item",{attrs:{label:"限购数量:",prop:"once_max_count"}},[a("el-input-number",{attrs:{min:t.formValidate.once_min_count,size:"small","controls-position":"right",placeholder:"请输入购买件数"},model:{value:t.formValidate.once_max_count,callback:function(e){t.$set(t.formValidate,"once_max_count",e)},expression:"formValidate.once_max_count"}}),t._v("\n   单次限购是限制每次下单最多购买的数量,长期限购是限制一个用户总共可以购买的数量\n ")],1)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-col",t._b({},"el-col",t.grid,!1),[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{"controls-position":"right",placeholder:"请输入排序",size:"small"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:",size:"mini"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"pageWidth",attrs:{placeholder:"请选择",clearable:"",size:"small"},model:{value:t.formValidate.guarantee_template_id,callback:function(e){t.$set(t.formValidate,"guarantee_template_id",e)},expression:"formValidate.guarantee_template_id"}},t._l(t.guaranteeList,(function(t){return a("el-option",{key:t.guarantee_template_id,attrs:{label:t.template_name,value:t.guarantee_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addServiceTem}},[t._v("添加服务说明模板")])],1)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"关联系统表单:",size:"mini"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"pageWidth",attrs:{size:"small",clearable:""},on:{change:t.getFormInfo},model:{value:t.formValidate.mer_form_id,callback:function(e){t.$set(t.formValidate,"mer_form_id",e)},expression:"formValidate.mer_form_id"}},t._l(t.formList,(function(e){return a("el-option",{key:e.form_id,attrs:{value:e.form_id,label:e.name}},[t._v(t._s(e.name)+"\n ")])})),1),t._v(" "),a("el-button",{staticClass:"ml15 mr14",attrs:{size:"small"},on:{click:t.getFormList}},[t._v("刷新")]),t._v(" "),a("router-link",{staticClass:"link",attrs:{to:{path:t.roterPre+"/systemForm/form_create?id=0"},target:"_blank"}},[a("el-button",{attrs:{size:"small"}},[t._v("添加系统表单")])],1)],1),t._v(" "),a("div",{staticClass:"explanation"},[t._v("\n 注:添加系统表单后,商品不可加入购物车,添加系统表单,请前往:装修>系统表单\n ")])])],1),t._v(" "),a("el-col",{attrs:{span:16}},[t.formValidate.mer_form_id?a("el-form-item",[a("div",{staticStyle:{width:"350px"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{id:"iframe",src:t.formUrl,frameborder:"0"}})])]):t._e()],1)],1)},R=[],W={name:"ProductOtherSettings",props:{formValidate:{type:Object,required:!0},deliveryList:{type:Array,default:function(){return[]}},shippingList:{type:Array,default:function(){return[]}},guaranteeList:{type:Array,default:function(){return[]}},formList:{type:Array,default:function(){return[]}},formUrl:{type:String,default:""},roterPre:{type:String,default:""}},data:function(){return{grid:{xl:8,lg:8,md:12,sm:24,xs:24}}},methods:{addTem:function(){this.$emit("addTem")},addServiceTem:function(){this.$emit("addServiceTem")},getFormList:function(){this.$emit("getFormList")},getFormInfo:function(){this.$emit("getFormInfo")}}},U=W,q=(a("24bb"),Object(S["a"])(U,N,R,!1,null,"ed229536",null)),G=q.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品推荐:"}},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0,label:"店铺推荐"},model:{value:t.formValidate.is_good,callback:function(e){t.$set(t.formValidate,"is_good",e)},expression:"formValidate.is_good"}}),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 设置后,该商品会在店铺中其他商品详情店铺推荐备选列表中展示\n ")])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"关联推荐:"}},[a("div",{staticClass:"acea-row row-middle"},[a("div",{staticClass:"acea-row"},[t._l(t.goodList,(function(e,i){return a("div",{key:"good-"+i,staticClass:"pictrue"},[a("img",{attrs:{src:e.image}}),t._v(" "),a("i",{staticClass:"el-icon-error btndel",on:{click:function(e){return t.deleteRecommend(i)}}})])})),t._v(" "),t.goodList.length<18?a("div",{staticClass:"uploadCont"},[a("div",{staticClass:"upLoadPicBox",on:{click:t.openRecommend}},[a("div",{staticClass:"upLoad"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]):t._e()],2),t._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"","min-width":"200",trigger:"hover"}},[a("img",{staticStyle:{height:"270px"},attrs:{src:t.baseUrl+"/static/images/store-recommend.png",alt:""}}),t._v(" "),a("el-button",{staticClass:"ml14",staticStyle:{"font-size":"12px"},attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("查看示例")])],1)],1),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 设置后,该商品详情页【店铺推荐】会展示选中的商品\n ")])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.deductionStatus>0?a("el-form-item",{attrs:{label:"积分抵扣:"}},[a("el-radio-group",{on:{change:function(e){return t.changeIntergral(t.deduction_set)}},model:{value:t.deduction_set,callback:function(e){t.deduction_set=e},expression:"deduction_set"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("单独设置")]),t._v(" "),a("el-radio",{attrs:{label:-1}},[t._v("默认设置")])],1),t._v(" "),1==t.deduction_set?a("div",[a("el-input-number",{attrs:{min:0,size:"small","controls-position":"right",placeholder:"请输入抵扣比例"},model:{value:t.formValidate.integral_rate,callback:function(e){t.$set(t.formValidate,"integral_rate",e)},expression:"formValidate.integral_rate"}}),t._v("\n %\n ")],1):t._e(),t._v(" "),-1==t.deduction_set?a("span",{staticClass:"form-tip",staticStyle:{color:"#F56464"}},[t._v("(店铺统一设置,抵扣比例"+t._s(t.deduction_ratio_rate)+"%)")]):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"proCoupon",attrs:{label:"商品赠券:"}},[a("div",{staticClass:"acea-row"},[t._l(t.formValidate.couponData,(function(e,i){return a("el-tag",{key:i,staticClass:"mr10",attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return t.handleCloseCoupon(e)}}},[t._v(t._s(e.title)+"\n ")])})),t._v(" "),a("el-button",{staticClass:"mr15",attrs:{size:"mini"},on:{click:t.addCoupon}},[t._v("选择优惠券")]),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("设置购买该商品可默认赠送的优惠券")])],2)])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"开启礼包:"}},[a("el-radio-group",{attrs:{disabled:!!t.$route.params.id},model:{value:t.formValidate.is_gift_bag,callback:function(e){t.$set(t.formValidate,"is_gift_bag",e)},expression:"formValidate.is_gift_bag"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("否")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("是")])],1),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("1. 选择开启礼包后,不可修改")]),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 2.\n 用户购买该分销礼包商品后,可自动成为分销员(即已成为分销员的用户在移动端看不到该分销礼包商品)\n ")]),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 3.\n 该商品设置为分销礼包后会展示在平台后台的【分销】-【分销礼包】(即不会展示在平台后台-【商品列表】)\n ")])],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.extensionStatus>0?a("el-form-item",{attrs:{label:"佣金设置:",props:"extension_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangetype(t.formValidate.extension_type)}},model:{value:t.formValidate.extension_type,callback:function(e){t.$set(t.formValidate,"extension_type",e)},expression:"formValidate.extension_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("单独设置")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("默认设置")])],1),t._v(" "),0==t.formValidate.extension_type?a("span",{staticClass:"form-tip",staticStyle:{color:"#F56464"}},[t._v("(平台设置,一级佣金"+t._s(t.extension_one_rate)+"%,二级佣金"+t._s(t.extension_two_rate)+"%)")]):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:24}},[t.open_svip?a("el-form-item",{attrs:{label:"付费会员价:",props:"svip_price_type"}},[a("el-radio-group",{on:{change:function(e){return t.onChangeSpecs(t.formValidate.svip_price_type)}},model:{value:t.formValidate.svip_price_type,callback:function(e){t.$set(t.formValidate,"svip_price_type",e)},expression:"formValidate.svip_price_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("不设置")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("自定义设置")]),t._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("默认设置")])],1),t._v(" "),a("span",{staticClass:"form-tip",staticStyle:{color:"#F56464"}},[t._v("(店铺统一设置,"+t._s(10*t.svip_rate)+"折)")])],1):t._e()],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t.open_svip&&2==t.formValidate.svip_price_type||t.extensionStatus>0&&1==t.formValidate.extension_type?a("el-form-item",{attrs:{label:"批量设置:"}},[a("div",{staticClass:"acea-row"},[t.open_svip&&2==t.formValidate.svip_price_type?a("div",{staticClass:"mr15 acea-row row-middle"},[a("span",[t._v("会员价:")]),t._v(" "),a("el-input-number",{staticStyle:{width:"150px"},attrs:{min:0,size:"small","controls-position":"right"},model:{value:t.manyVipPrice,callback:function(e){t.manyVipPrice=e},expression:"manyVipPrice"}})],1):t._e(),t._v(" "),t.extensionStatus>0&&1==t.formValidate.extension_type?[a("div",{staticClass:"mr15"},[a("span",[t._v("一级返佣:")]),t._v(" "),a("el-input-number",{staticClass:"input-number-with-text",attrs:{min:0,size:"small","controls-position":"right"},model:{value:t.manyBrokerage,callback:function(e){t.manyBrokerage=e},expression:"manyBrokerage"}})],1),t._v(" "),a("div",{staticClass:"mr15"},[a("span",[t._v("二级返佣:")]),t._v(" "),a("el-input-number",{staticClass:"input-number-with-text",attrs:{min:0,size:"small","controls-position":"right"},model:{value:t.manyBrokerageTwo,callback:function(e){t.manyBrokerageTwo=e},expression:"manyBrokerageTwo"}})],1)]:t._e(),t._v(" "),a("div",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.batchSet}},[t._v("批量设置")])],1)],2)]):t._e()],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBoxspecPictrue"},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",[t._v("\n --\n ")])])]}}],null,!1,1905554668)}),t._v(" "),t._l(t.specValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i]&&t.formThead[i].title,align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row[i]))])]}}],null,!0)})})),t._v(" "),0!=t.formValidate.svip_price_type?[a("el-table-column",{attrs:{align:"center",label:"付费会员价","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small",disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row.svip_price,callback:function(a){t.$set(e.row,"svip_price",a)},expression:"scope.row.svip_price"}})]}}],null,!1,3837625467)})]:t._e(),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small","controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,3204804055)}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small","controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,3908853119)})]:t._e()],2)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{key:"2",ref:"specsTable",staticClass:"tabNumWidth",attrs:{data:t.ManyAttrValue.slice(1),border:"",size:"small"}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,i){return a("el-table-column",{key:i,attrs:{align:"center",label:t.manyTabTit[i].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("span",[t._v(t._s(e.row.detail[t.manyTabTit[i].title]))])])]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox specPictrue"},[e.row.image||e.row.pic?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image||e.row.pic}})]):a("div",[t._v("\n --\n ")])])]}}],null,!1,2690197292)}),t._v(" "),t._l(t.specValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i].title,align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row[i]))])]}}],null,!0)})})),t._v(" "),0!=t.formValidate.svip_price_type?[a("el-table-column",{attrs:{align:"center",label:"付费会员价","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small",disabled:1==t.formValidate.svip_price_type,"controls-position":"right"},model:{value:e.row.svip_price,callback:function(a){t.$set(e.row,"svip_price",a)},expression:"scope.row.svip_price"}})]}}],null,!1,3837625467)})]:t._e(),t._v(" "),1===t.formValidate.extension_type?[a("el-table-column",{key:"1",attrs:{align:"center",label:"一级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small","controls-position":"right"},model:{value:e.row.extension_one,callback:function(a){t.$set(e.row,"extension_one",a)},expression:"scope.row.extension_one"}})]}}],null,!1,3204804055)}),t._v(" "),a("el-table-column",{key:"2",attrs:{align:"center",label:"二级返佣(元)","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"priceBox",attrs:{min:0,size:"small","controls-position":"right"},model:{value:e.row.extension_two,callback:function(a){t.$set(e.row,"extension_two",a)},expression:"scope.row.extension_two"}})]}}],null,!1,3908853119)})]:t._e()],2)],1):t._e()],1)],1)},X=[],Y=(a("a481"),{name:"MarketingSettings",props:{formValidate:{type:Object,default:function(){return{}}},OneattrValue:{type:Array,default:function(){return[]}},ManyAttrValue:{type:Array,default:function(){return[]}},goodList:{type:Array,default:function(){return[]}},manyTabDate:{type:Object,default:function(){return{}}},specValue:{type:Object,default:function(){return{}}},open_svip:{type:Boolean,default:!1},price:{type:Number,default:0},svip_rate:{type:Number,default:0},manyTabTit:{type:Object,default:function(){return{}}},formThead:{type:Object,default:function(){return{}}},extensionStatus:{type:Number,default:0},deductionStatus:{type:Number,default:0},deduction_set:{type:Number,default:-1},extension_one_rate:{type:String,default:""},extension_two_rate:{type:String,default:""},deduction_ratio_rate:{type:Number,default:0},baseUrl:{type:String,required:""}},data:function(){return{manyBrokerageTwo:0,manyBrokerage:0,keyNum:0,manyVipPrice:""}},methods:{openRecommend:function(){this.$emit("openRecommend")},deleteRecommend:function(t){this.goodList.splice(t,1)},addCoupon:function(){var t=this;t.formValidate.give_coupon_ids=[],t.formValidate.couponData=[],this.$modalCoupon(this.formValidate.couponData,"wu",t.formValidate.give_coupon_ids,this.keyNum+=1,(function(e){t.$set(t.formValidate,"couponData",e),e.map((function(e){t.formValidate.give_coupon_ids.push(e.coupon_id)})),t.$forceUpdate()}))},handleCloseCoupon:function(t){var e=this;this.formValidate.couponData.splice(this.formValidate.couponData.indexOf(t),1),this.formValidate.give_coupon_ids=[],this.formValidate.couponData.map((function(t){e.formValidate.give_coupon_ids.push(t.coupon_id)})),this.$forceUpdate()},onChangeSpecs:function(t){if(1==t||2==t&&this.open_svip){this.OneattrValue[0]["svip_price"]=this.OneattrValue[0]["price"]?this.accMul(this.OneattrValue[0]["price"],this.svip_rate):0;var e,a=0,i=Object(o["a"])(this.ManyAttrValue);try{for(i.s();!(e=i.n()).done;){var n=e.value;a=n.price?this.accMul(n.price,this.svip_rate):0,this.$set(n,"svip_price",a)}}catch(r){i.e(r)}finally{i.f()}}},accMul:function(t,e){var a=0,i=t.toString(),n=e.toString();try{a+=i.split(".")[1].length}catch(r){}try{a+=n.split(".")[1].length}catch(r){}return Number(i.replace(".",""))*Number(n.replace(".",""))/Math.pow(10,a)},batchSet:function(){var t,e=Object(o["a"])(this.ManyAttrValue);try{for(e.s();!(t=e.n()).done;){var a=t.value;void 0!=this.manyBrokerage&&this.$set(a,"extension_one",this.manyBrokerage),void 0!=this.manyBrokerageTwo&&this.$set(a,"extension_two",this.manyBrokerageTwo),void 0!=this.manyVipPrice?this.$set(a,"svip_price",this.manyVipPrice):this.$set(a,"svip_price",(a.price*(this.manyVipDiscount/100)).toFixed(2))}}catch(i){e.e(i)}finally{e.f()}},changeIntergral:function(t){this.formValidate.integral_rate=-1==t?-1:this.formValidate.integral_rate}}}),K=Y,J=(a("b268"),Object(S["a"])(K,H,X,!1,null,"7d99299b",null)),Z=J.exports,Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form-item",{attrs:{label:"服务模式:",required:""}},[a("el-radio-group",{model:{value:t.formValidate.reservation_type,callback:function(e){t.$set(t.formValidate,"reservation_type",e)},expression:"formValidate.reservation_type"}},[a("el-radio",{attrs:{label:1}},[t._v("到店服务")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("上门服务")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("上门+到店服务")])],1),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("用户购买此预约服务商品,可以选择的服务方式")])],1),t._v(" "),a("el-form-item",{attrs:{label:"剩余可约数量:",required:""}},[a("el-switch",{attrs:{size:"small","active-value":1,"inactive-value":0},model:{value:t.formValidate.show_num_type,callback:function(e){t.$set(t.formValidate,"show_num_type",e)},expression:"formValidate.show_num_type"}}),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("关闭后,用户无法查看各时段的剩余预约数量")])],1),t._v(" "),a("el-form-item",{attrs:{label:"可售日期:"}},[a("el-radio-group",{model:{value:t.formValidate.sale_time_type,callback:function(e){t.$set(t.formValidate,"sale_time_type",e)},expression:"formValidate.sale_time_type"}},[a("el-radio",{attrs:{label:1}},[t._v("每天")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("自定义")])],1),t._v(" "),2===t.formValidate.sale_time_type?a("div",{staticClass:"flex mt10"},[a("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{type:"daterange",size:"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}}),t._v(" "),t._l(t.week,(function(e){return a("div",{key:e.id,class:{"check-btn":!0,selected:t.formValidate.sale_time_week.includes(e.id)},on:{click:function(a){return t.toggleWeekday(e.id)}}},[t._v("\n "+t._s(e.name)+"\n ")])}))],2):t._e(),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 设置预约服务的可预约日期;到达设置的可预约日期之后,该预约商品自动下架\n ")])],1),t._v(" "),a("el-form-item",{attrs:{label:"预约日期范围:",required:""}},[a("div",[t._v("\n 对用户展示\n "),a("el-input-number",{staticClass:"ml10 mr10",attrs:{size:"small","controls-position":"right",precision:0,min:1,max:10},model:{value:t.formValidate.show_reservation_days,callback:function(e){t.$set(t.formValidate,"show_reservation_days",e)},expression:"formValidate.show_reservation_days"}}),t._v("\n 天内的可预约日期\n ")],1),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 用户端可以看到的可预约日期。示例:设置1天,则代表只可以预约当天\n ")])]),t._v(" "),a("el-form-item",{attrs:{label:"提前预约:",required:""}},[a("el-radio-group",{staticClass:"quota-settings",model:{value:t.formValidate.is_advance,callback:function(e){t.$set(t.formValidate,"is_advance",e)},expression:"formValidate.is_advance"}},[a("div",{staticClass:"radio-item"},[a("el-radio",{attrs:{label:0}},[t._v("无需提前预约")])],1),t._v(" "),a("div",{staticClass:"radio-item"},[a("el-radio",{attrs:{label:1}},[t._v("\n 用户要求提前\n "),a("el-input-number",{staticClass:"ml10 mr10",attrs:{min:1,max:999,precision:0,"controls-position":"right",size:"small"},model:{value:t.formValidate.advance_time,callback:function(e){t.$set(t.formValidate,"advance_time",e)},expression:"formValidate.advance_time"}}),t._v("\n 小时进行预约\n ")],1)],1),t._v(" "),a("div",{staticClass:"form-tip mt10"},[t._v("\n 用户只能预约间隔时间后的时段。示例:当前10:00,设置2h,则用户只可预约12:00往后的时段\n ")])])],1),t._v(" "),a("el-form-item",{attrs:{label:"取消订单:",required:""}},[a("el-radio-group",{staticClass:"quota-settings",model:{value:t.formValidate.is_cancel_reservation,callback:function(e){t.$set(t.formValidate,"is_cancel_reservation",e)},expression:"formValidate.is_cancel_reservation"}},[a("div",{staticClass:"radio-item"},[a("el-radio",{attrs:{label:0}},[t._v("不允许取消")])],1),t._v(" "),a("div",{staticClass:"radio-item"},[a("el-radio",{attrs:{label:1}},[t._v("\n 服务开始\n "),a("el-input-number",{staticClass:"ml10 mr10",attrs:{min:1,max:999,precision:0,"controls-position":"right",size:"small"},model:{value:t.formValidate.cancel_reservation_time,callback:function(e){t.$set(t.formValidate,"cancel_reservation_time",e)},expression:"formValidate.cancel_reservation_time"}}),t._v("\n 小时之前,允许取消并自动退款\n ")],1)],1),t._v(" "),a("div",{staticClass:"form-tip mt10"},[t._v("\n 设置用户最晚可以取消预约的时间。示例:设置2h,用户预约12:00-14:00,则当天10:00之前允许用户取消预约\n ")])])],1),t._v(" "),a("el-form-item",{attrs:{label:"表单信息:",required:""}},[a("el-radio-group",{model:{value:t.formValidate.reservation_form_type,callback:function(e){t.$set(t.formValidate,"reservation_form_type",e)},expression:"formValidate.reservation_form_type"}},[a("el-radio",{attrs:{label:1}},[t._v("每个预约提交一次")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("每单提交一次 ")])],1),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 一次购买2件预约商品,选择每个预约提交一次则需要填写两遍关联系统表单,选择每单提交一次则只需要填写一遍关联系统表单\n ")])],1),t._v(" "),a("el-form-item",{attrs:{label:"关联表单:"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"pageWidth",attrs:{size:"small",clearable:""},on:{change:t.getFormInfo},model:{value:t.formValidate.mer_form_id,callback:function(e){t.$set(t.formValidate,"mer_form_id",e)},expression:"formValidate.mer_form_id"}},t._l(t.formList,(function(e){return a("el-option",{key:e.form_id,attrs:{value:e.form_id,label:e.name}},[t._v(t._s(e.name)+"\n ")])})),1),t._v(" "),a("router-link",{staticClass:"link",attrs:{to:{path:this.roterPre+"/systemForm/form_create?id=0"},target:"_blank"}},[a("el-button",{staticClass:"ml15 mr14",attrs:{size:"small"}},[t._v("添加系统表单")])],1),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:t.getFormList}},[t._v("刷新")])],1),t._v(" "),a("div",{staticClass:"form-tip"},[t._v("\n 用户购买此服务时,必须填写关联表单中设置的字段内容才能够进行订单支付,例如:部分服务购买必须填写身份证号、作业环境等字段补充\n ")])]),t._v(" "),t.formValidate.mer_form_id?a("el-form-item",[a("div",{staticStyle:{width:"350px"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{id:"iframe",src:t.formUrl,frameborder:"0"}})])]):t._e()],1)},tt=[],et=Object(v["a"])({props:{formValidate:{type:Object,default:function(){}},formList:{type:Array,default:function(){return[]}},formUrl:{type:String,default:""},roterPre:{type:String,default:""}},data:function(){return{serviceTypes:["1","2"],timeVal:[],week:[{id:1,name:"周一"},{id:2,name:"周二"},{id:3,name:"周三"},{id:4,name:"周四"},{id:5,name:"周五"},{id:6,name:"周六"},{id:7,name:"周日"}],rules:{bookingPeriod:[{required:!0,message:"请选择可预约时段",trigger:"change"}]},productOptions:[{value:"1",label:"商品1"},{value:"2",label:"商品2"},{value:"3",label:"商品3"}]}},watch:{timeVal:function(t){this.formValidate.sale_time_start_day=t[0],this.formValidate.sale_time_end_day=t[1]}},mounted:function(){if(0==this.formValidate.product_id)return!1;2==this.formValidate.sale_time_type&&(this.timeVal=[this.formValidate.sale_time_start_day,this.formValidate.sale_time_end_day])},methods:{handleSubmit:function(){ElMessage.success("设置保存成功")}}},"methods",{toggleWeekday:function(t){var e=this.formValidate.sale_time_week.indexOf(t);e>-1?this.formValidate.sale_time_week.splice(e,1):this.formValidate.sale_time_week.push(t)},getFormList:function(){this.$emit("getFormList")},getFormInfo:function(){this.$emit("getFormInfo")}}),at=et,it=(a("3057"),Object(S["a"])(at,Q,tt,!1,null,"08963d01",null)),nt=it.exports,rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"规格类型:",props:"spec_type",required:""}},[a("el-radio-group",{model:{value:t.formValidate.spec_type,callback:function(e){t.$set(t.formValidate,"spec_type",e)},expression:"formValidate.spec_type"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("单规格")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("多规格")])],1)],1)],1),t._v(" "),1===t.formValidate.spec_type?a("el-col",{staticClass:"noForm",attrs:{span:24}},[a("el-form-item",{attrs:{label:"商品规格:",required:""}},[a("div",{staticClass:"specifications"},[t.attrs&&t.attrs.length>0?[a("draggable",{attrs:{group:"specifications",disabled:t.attrs.length<2,list:t.attrs,handle:".move-icon",animation:"300"},on:{end:t.onMoveSpec}},t._l(t.attrs,(function(e,i){return a("div",{key:i,staticClass:"specifications-item active",on:{click:function(e){return t.changeCurrentIndex(i)}}},[a("div",{staticClass:"move-icon"},[a("span",{staticClass:"iconfont icondrag2"})]),t._v(" "),a("i",{staticClass:"del el-icon-error",on:{click:function(a){return t.handleRemoveRole(i,e.value)}}}),t._v(" "),a("div",{staticClass:"specifications-item-box"},[a("div",{staticClass:"lineBox"}),t._v(" "),a("div",{staticClass:"specifications-item-name mb18"},[a("el-input",{staticClass:"specifications-item-name-input",attrs:{size:"small",placeholder:"规格名称",maxlength:"30","show-word-limit":""},on:{change:function(a){return t.attrChangeValue(i,e.value)},focus:function(a){return t.handleFocus(e.value)}},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}}),t._v(" "),a("el-checkbox",{staticClass:"ml20",attrs:{disabled:!e.add_pic&&!t.canSel,"true-label":1,"false-label":0},on:{change:function(e){return t.addPic(e,i)}},model:{value:e.add_pic,callback:function(a){t.$set(e,"add_pic",a)},expression:"item.add_pic"}},[t._v("添加规格图")]),t._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加规格图片, 仅支持打开一个(建议尺寸:800*800)",placement:"right"}},[a("i",{staticClass:"el-icon-info"})])],1),t._v(" "),e.detail?a("div",{staticClass:"rulesBox ml30"},[a("draggable",{staticClass:"item",attrs:{list:e.detail,disabled:e.detail&&e.detail.length<2,handle:".drag"},on:{end:t.onMoveSpec}},[t._l(e.detail,(function(n,r){return a("div",{key:r,staticClass:"mr10 spec drag"},[a("i",{staticClass:"el-icon-error",on:{click:function(a){return t.handleRemove2(e.detail,r,n.value)}}}),t._v(" "),a("el-input",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"规格值",maxlength:"30"},on:{change:function(e){return t.attrDetailChangeValue(n.value,i)},focus:function(e){return t.handleFocus(n.value)},blur:function(e){return t.handleBlur()}},model:{value:n.value,callback:function(e){t.$set(n,"value",e)},expression:"det.value"}},[a("template",{slot:"prefix"},[a("span",{staticClass:"iconfont icondrag2"})])],2),t._v(" "),e.add_pic?a("div",{staticClass:"img-popover"},[a("div",{staticClass:"popper-arrow"}),t._v(" "),a("div",{staticClass:"popper",on:{click:function(e){return t.handleSelImg(n,r)}}},[n.pic?a("img",{staticClass:"img",attrs:{src:n.pic}}):a("i",{staticClass:"el-icon-plus"})]),t._v(" "),n.pic?a("i",{staticClass:"img-del el-icon-error",on:{click:function(e){return t.handleRemoveImg(n,i,r)}}}):t._e()]):t._e()],1)})),t._v(" "),a("el-popover",{ref:"popoverRef_"+i,refInFor:!0,attrs:{placement:"",width:"210",trigger:"click"},on:{"after-enter":function(e){return t.handleShowPop(i)}}},[a("el-input",{ref:"inputRef_"+i,refInFor:!0,staticStyle:{"min-width":"80px",width:"210"},attrs:{size:"small",placeholder:"请输入规格值",maxlength:"30","show-word-limit":""},on:{blur:function(e){return t.createAttr(t.formDynamic.attrsVal,i)}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.createAttr(t.formDynamic.attrsVal,i)}},model:{value:t.formDynamic.attrsVal,callback:function(e){t.$set(t.formDynamic,"attrsVal",e)},expression:"formDynamic.attrsVal"}}),t._v(" "),a("div",{staticClass:"addfont",attrs:{slot:"reference"},slot:"reference"},[t._v("添加规格值")])],1)],2)],1):t._e()])])})),0)]:t._e(),t._v(" "),t.attrs&&t.attrs.length<1?a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.handleAddRole()}}},[t._v("添加新规格")]):t._e(),t._v(" "),t.attrs&&t.attrs.length>=1?a("el-button",{attrs:{size:"small",type:"text"},on:{click:function(e){return t.handleSaveAsTemplate()}}},[t._v("另存为模板")]):t._e()],2)])],1):t._e(),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[a("el-form-item",{attrs:{label:"时段划分:"}},[a("el-radio-group",{on:{change:t.timeChange},model:{value:t.formValidate.reservation_time_type,callback:function(e){t.$set(t.formValidate,"reservation_time_type",e)},expression:"formValidate.reservation_time_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自动划分")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("自定义划分")])],1),t._v(" "),1==t.formValidate.reservation_time_type?a("div",{staticClass:"reservation-times-box"},[t._v("\n 起止时间:\n\n "),a("TimePicker",{staticClass:"mr10",staticStyle:{width:"200px"},attrs:{type:"timerange",format:"HH:mm",placeholder:"选择时间",placement:"bottom-end",size:"default",clearable:!1},on:{"on-change":t.reservationTimesChange},model:{value:t.reservation_times,callback:function(e){t.reservation_times=e},expression:"reservation_times"}}),t._v("\n\n 时间跨度:\n "),a("el-input-number",{staticClass:"mr10",attrs:{min:10,max:1440,precision:0,size:"small","controls-position":"right"},model:{value:t.formValidate.reservation_time_interval,callback:function(e){t.$set(t.formValidate,"reservation_time_interval",e)},expression:"formValidate.reservation_time_interval"}}),t._v(" "),a("span",{staticClass:"form-tip"},[t._v("支持设置10-1440分钟")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:t.setTime}},[t._v("保存")]),t._v(" "),t.reservationTime.length?a("div",{staticClass:"acea-row"},[a("el-checkbox",{on:{change:t.handleCheckAll},model:{value:t.timeCheckAll,callback:function(e){t.timeCheckAll=e},expression:"timeCheckAll"}},[t._v("全选")]),t._v(" "),a("el-checkbox-group",{staticClass:"flex-1",on:{change:t.checkAllGroupChange},model:{value:t.timeCheckAllGroup,callback:function(e){t.timeCheckAllGroup=e},expression:"timeCheckAllGroup"}},t._l(t.reservationTime,(function(e,i){return a("el-checkbox",{staticClass:"ml20",attrs:{label:e.start}},[t._v(t._s(e.start)+"-"+t._s(e.end))])})),1)],1):t._e()],1):t._e(),t._v(" "),2==t.formValidate.reservation_time_type?a("div",{staticClass:"reservation-times-box"},[a("div",{staticClass:"form-tip"},[t._v("\n 请依照时间的先后顺序添加时段,并且时段的开始时间不得早于上一个时段的结束时间。\n ")]),t._v(" "),a("div",{staticClass:"customize-time"},[t._l(t.customizeTimeClone,(function(e,i){return a("div",{key:i,staticClass:"flex relative "},[a("TimePicker",{key:i,staticClass:"mr10 mb10",staticStyle:{width:"200px"},attrs:{type:"timerange",format:"HH:mm",placeholder:"选择时间",placement:"bottom-end",clearable:!1,size:"default"},on:{change:t.customizeTime},model:{value:t.customizeTimeClone[i],callback:function(e){t.$set(t.customizeTimeClone,i,e)},expression:"customizeTimeClone[index]"}}),t._v(" "),t.customizeTimeClone&&t.customizeTimeClone.length>1?a("div",{staticClass:"el-icon-error",on:{click:function(e){return e.stopPropagation(),t.closeTime(i)}}}):t._e()],1)})),t._v(" "),t.customizeTimeClone&&t.customizeTimeClone.length<24?a("span",{staticClass:"add-time",on:{click:t.addTime}},[t._v("添加时段("+t._s(t.customizeTimeClone.length)+"/24)")]):t._e(),t._v(" "),a("el-button",{staticClass:"ml20 mb20",attrs:{size:"small"},on:{click:t.setCustomizeTime}},[t._v("设置")])],2)]):t._e()],1)],1),t._v(" "),a("el-col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[0===t.formValidate.spec_type?a("el-form-item",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"left",label:"图片","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox specPictrue",on:{click:function(e){return t.modalPicTap("1","dan")}}},[e.row.image?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]}}],null,!1,3857105893)}),t._v(" "),t._l(t.attrValue,(function(e,i){return a("el-table-column",{key:i,attrs:{label:t.formThead[i]&&t.formThead[i].title,align:"center","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return["商品编码"===t.formThead[i].title?a("el-input",{staticClass:"priceBox",attrs:{type:"text"},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}}):a("div",[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:e.row[i],callback:function(a){t.$set(e.row,i,a)},expression:"scope.row[iii]"}})],1)]}}],null,!0)})})),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.openAttr}},[t._v("设置可约数量")])]}}],null,!1,1481059912)})],2)],1):t._e(),t._v(" "),1==t.formValidate.spec_type?a("el-form-item",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.ManyAttrValue,"cell-class-name":t.tableCellClassName,"span-method":t.objectSpanMethod,border:"",size:"small"}},t._l(t.formValidate.header,(function(e,i){return a("el-table-column",{key:i,attrs:{label:e.title,"min-width":e.minWidth||"140",fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(i){return[0==i.$index?[e.key?[t.attrs&&t.attrs.length&&t.attrs[i.column.index]&&t.ManyAttrValue.length?a("div",[a("el-select",{attrs:{placeholder:"请选择"+e.title,size:"small",clearable:""},model:{value:t.oneFormBatch[0][e.title],callback:function(a){t.$set(t.oneFormBatch[0],e.title,a)},expression:"oneFormBatch[0][item.title]"}},t._l(t.attrs[i.column.index].detail,(function(t){return a("el-option",{key:t.value,attrs:{label:t.value,value:t.value}})})),1)],1):t._e()]:"image"===e.slot?[a("div",{staticClass:"upLoadPicBox specPictrue",on:{click:function(e){return e.stopPropagation(),t.modalPicTap("1","pi",i.$index)}}},[t.oneFormBatch[0].image?a("div",{staticClass:"upLoad tabPic"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.oneFormBatch[0].image,expression:"oneFormBatch[0].image"}]}),t._v(" "),a("i",{staticClass:"el-icon-error btndel btnclose",on:{click:function(e){e.stopPropagation(),t.oneFormBatch[0].image=""}}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont"})])])]:"price"===e.slot?[a("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"===e.slot?[a("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"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.oneFormBatch[0].ot_price,callback:function(e){t.$set(t.oneFormBatch[0],"ot_price",e)},expression:"oneFormBatch[0].ot_price"}})]:"bar_code"===e.slot?[a("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"}})]:"selected_spec"===e.slot?[t._v("\n --\n ")]:"reservation"===e.slot?[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.openAttr()}}},[t._v("批量设置可约数量")])]:"action"===e.slot?[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.batchAdd}},[t._v("批量修改")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"mini"},on:{click:t.batchDel}},[t._v("清空")])]:t._e()]:[e.key?[a("div",[a("span",[t._v(t._s(i.row.detail[e.key]))])])]:t._e(),t._v(" "),"image"===e.slot?[a("div",{staticClass:"upLoadPicBox specPictrue",on:{click:function(e){return t.modalPicTap("1","duo",i.$index)}}},[i.row.image||i.row.pic?a("div",{staticClass:"upLoad tabPic"},[a("img",{attrs:{src:i.row.image||i.row.pic}})]):a("div",{staticClass:"upLoad tabPic"},[a("i",{staticClass:"el-icon-camera cameraIconfont",staticStyle:{"font-size":"24px"}})])])]:t._e(),t._v(" "),"price"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].price,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"price",e)},expression:"ManyAttrValue[scope.$index].price"}})]:"cost"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].cost,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"cost",e)},expression:"ManyAttrValue[scope.$index].cost"}})]:"ot_price"===e.slot?[a("el-input-number",{staticClass:"priceBox",attrs:{controls:!1,min:0,max:9999999999},model:{value:t.ManyAttrValue[i.$index].ot_price,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"ot_price",e)},expression:"ManyAttrValue[scope.$index].ot_price"}})]:"bar_code"===e.slot?[a("el-input",{model:{value:t.ManyAttrValue[i.$index].bar_code,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"bar_code",e)},expression:"ManyAttrValue[scope.$index].bar_code"}})]:"selected_spec"===e.slot?[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.changeDefaultSelect(e,i.$index)}},model:{value:t.ManyAttrValue[i.$index].is_default_select,callback:function(e){t.$set(t.ManyAttrValue[i.$index],"is_default_select",e)},expression:"ManyAttrValue[scope.$index].is_default_select"}})]:"reservation"===e.slot?[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.openAttr(i.row,i.$index)}}},[t._v("设置可约数量")])]:t._e()]]}}],null,!0)})})),1)],1):t._e()],1)],1),t._v(" "),a("reservationStockDialog",{ref:"reservationStock",attrs:{dialogVisible:t.dialogVisible,gridData:t.gridData,isShow:t.isShow,type:t.formValidate.spec_type},on:{submitOk:t.submitOk,close:t.close}})],1)},ot=[],st=a("f7ad"),lt=(a("f8ce"),a("ed08")),ct=a("9948"),ut=a("02df"),dt=(a("dc02"),{props:{formValidate:{type:Object,default:function(){return{}}},changeAttrValue:{type:String,default:function(){return""}},ManyAttrValue:{type:Array,default:function(){return[]}},OneattrValue:{type:Array,default:function(){return[]}},oneFormBatch:{type:Array,default:function(){return[]}},formDynamic:{type:Object,default:function(){return{}}},attrs:{type:Array,default:function(){return[]}},cdkeyLibraryList:{type:Array,default:function(){return[]}}},components:{draggable:b.a,reservationStockDialog:ct["a"],TimePicker:st["a"]},data:function(){return{ruleList:[],timeCheckAll:[],reservationTime:[],timeCheckAllGroup:[],timeCheckAllClone:[],timeDataClone:[],customizeTimeClone:[["",""]],canSel:!0,tableKey:0,gridDataIndex:0,selectRule:"",dialogVisible:!1,isShow:!0,gridData:[],cloneManyAttrValue:[],cloneOneAttrValue:[],cloneItemAttrValue:[],reservation_times:["",""],customizeTimeCloneData:[],attrValue:{price:0,cost:0,ot_price:0,bar_code:""},formThead:{image:{title:"图片"},price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"划线价"},bar_code:{title:"商品编码"}}}},mounted:function(){var t=this;this.productGetRule(),1==this.formValidate.reservation_time_type&&(this.reservation_times=[this.formValidate.reservation_start_time,this.formValidate.reservation_end_time]),this.formValidate.time_period.length>0&&(2==this.formValidate.reservation_time_type?(this.customizeTimeClone=[],this.formValidate.time_period.map((function(e,a){var i=[e.start,e.end];t.customizeTimeClone.push(i),t.customizeTimeCloneData.push(i)}))):(this.$set(this,"reservationTime",this.formValidate.time_period),this.$set(this,"timeDataClone ",this.formValidate.time_period),1==this.formValidate.reservation_time_type&&(this.reservationTime.map((function(e,a){1==e.is_show&&t.timeCheckAllGroup.push(e.start)})),this.timeCheckAllGroup.length===this.reservationTime.length&&(this.timeCheckAll=!0))))},methods:Object(v["a"])(Object(v["a"])(Object(v["a"])({reservationTimesChange:function(t){this.formValidate.reservation_start_time=this.reservation_times[0],this.formValidate.reservation_end_time=this.reservation_times[1]},close:function(){this.gridDataIndex>0?this.ManyAttrValue[this.gridDataIndex].reservation=this.cloneItemAttrValue[0].reservation:0==this.formValidate.spec_type?this.OneattrValue=this.cloneOneAttrValue:this.ManyAttrValue=this.cloneManyAttrValue,this.dialogVisible=!1,this.gridDataIndex=0,this.isShow=!0},submitOk:function(t){0==this.formValidate.spec_type?this.OneattrValue=t:this.gridDataIndex>0?this.ManyAttrValue[this.gridDataIndex].reservation=t[0].reservation:this.ManyAttrValue=t,this.dialogVisible=!1,this.isShow=!0,this.gridDataIndex=0},timeChange:function(t){this.formValidate.time_period=[],this.formValidate.time_period=1==t?this.timeDataClone:this.customizeTimeCloneData},attrDetailChangeValue:function(t,e){this.$emit("attrDetailChangeValue",t,e)},setCustomizeData:function(t){var e=this;if(0==this.formValidate.time_period.length)return this.$message.error("请先设置时段划分"),!1;this.ManyAttrValue.length>0&&this.ManyAttrValue.forEach((function(a){1==t&&a.reservation&&a.reservation[0]&&a.reservation[0].stock||(a.reservation=[],e.formValidate.time_period.map((function(t){if(1==t.is_show){var e=Object(h["a"])(Object(h["a"])({},t),{},{stock:t.stock||0});a.reservation.push(e)}})))})),this.OneattrValue.length>0&&this.OneattrValue.forEach((function(a){1==t&&a.reservation&&a.reservation[0]&&a.reservation[0].stock||(a.reservation=e.formValidate.time_period.map((function(t){return Object(h["a"])(Object(h["a"])({},t),{},{stock:t.stock||0})})))}))},attrChangeValue:function(t,e){this.$emit("attrChangeValue",t,e)},openAttr:function(t,e){var a=[];if(!t){var i,n=Object(o["a"])(this.attrs);try{for(n.s();!(i=n.n()).done;){var r=i.value;this.oneFormBatch[0][r.value]&&a.push(this.oneFormBatch[0][r.value])}}catch(u){n.e(u)}finally{n.f()}0==a.length&&(this.isShow=!1);var s,l=Object(o["a"])(this.ManyAttrValue);try{for(l.s();!(s=l.n()).done;){var c=s.value;a.length&&this.isSubset(c.attr_arr||[c.sku],a)&&(t=c,e=c.index)}}catch(u){l.e(u)}finally{l.f()}}this.setCustomizeData(1),e&&(this.gridDataIndex=e),0==this.formValidate.spec_type?(this.gridData=this.OneattrValue,this.cloneOneAttrValue=JSON.parse(JSON.stringify(this.OneattrValue))):e?(this.gridData=[t],this.cloneItemAttrValue=JSON.parse(JSON.stringify([t]))):(this.gridData=this.ManyAttrValue,this.cloneManyAttrValue=JSON.parse(JSON.stringify(this.ManyAttrValue))),this.gridData.forEach((function(t){t.reservation=t.reservation.filter((function(t){return 0!=t.is_show}))})),this.dialogVisible=!0},closeTime:function(t){this.customizeTimeClone.splice(t,1),this.formValidate.time_period.splice(t,1)},setTime:function(){var t=[],e=this,a=this.reservation_times,i=this.formValidate.reservation_time_interval;if(!a[0]||i<=0)return this.$Message.error("请输入起止时间或时间跨度");this.reservationTime=Object(ut["f"])(a,i),this.reservationTime.forEach((function(e,a){e.is_show=1,e.stock=0,t.push(e.start)})),setTimeout((function(){e.timeCheckAllGroup=t}),100),this.timeCheckAllClone=t,this.timeCheckAll=!0,this.formValidate.time_period=this.reservationTime,this.timeDataClone=JSON.parse(JSON.stringify(this.reservationTime)),this.setCustomizeData()},handleCheckAll:function(t){this.timeCheckAll=t,t?(this.timeCheckAllGroup=this.timeDataClone.map((function(t){return t.start})),this.reservationTime.forEach((function(t,e){t.is_show=1}))):(this.reservationTime.forEach((function(t,e){t.is_show=0})),this.timeCheckAllGroup=[]),this.formValidate.time_period=this.reservationTime,this.setCustomizeData()},checkAllGroupChange:function(t){this.reservationTime.forEach((function(e,a){t.includes(e.start)?e.is_show=1:e.is_show=0})),this.formValidate.time_period=this.reservationTime,this.timeDataClone=this.reservationTime,t.length==this.reservationTime.length?this.timeCheckAll=!0:this.timeCheckAll=!1,this.setCustomizeData()},customizeTime:function(t){var e=this.customizeTimeClone;e[e.length-1]=t},intersection:function(t){var e=Object(ut["b"])(t),a=Object(ut["c"])(t);return e||!a},setCustomizeTime:function(t){for(var e=0;e0&&this.$message.success("设置成功")},addTime:function(){for(var t=this.customizeTimeClone,e=0;e0){var n=e.label,r=this.ManyAttrValue[a].detail[n],o=this.ManyAttrValue.findIndex((function(t,e){if(e>0)return t.detail[n]==r}));if(a==o){for(var s=1,l=o+1;l10&&(i.formValidate.slider_image.length=10)})),"1"===t&&"dan"===e&&i.$set(i.OneattrValue[0],"image",r[0]),"1"===t&&"duo"===e&&(i.ManyAttrValue[a].image=r[0]),"1"===t&&"pi"===e&&(i.oneFormBatch[0].image=r[0])}),t)},onMoveSpec:function(){this.$emit("generateAttr",this.attrs)},handleRemove2:function(t,e,a){t.splice(e,1),this.$emit("delAttrTable",a)},getSelectedLiarbry:function(t,e){this.$emit("getSelectedLiarbry",t,e)}},"changeCurrentIndex",(function(t){this.currentIndex=t})),"confirm",(function(t){var e=this;if(this.selectRule=t,this.createBnt=!0,!this.selectRule)return this.$message.warning("请选择属性");this.ruleList.forEach((function(t){t.attr_template_id===e.selectRule&&(t.template_value.forEach((function(t,e){t.add_pic=0})),e.canSel=!0,e.$emit("setAttrs",Object(p["a"])(t.template_value)),e.formValidate.attr=t.template_value)}))})),"generateCombinations",(function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return[a];var i=Object(r["a"])(t),n=i[0],o=i.slice(1);return n.detail.flatMap((function(t){return e.generateCombinations(o,[].concat(Object(p["a"])(a),[t.value]))}))}))}),ft=dt,mt=(a("ba4e"),Object(S["a"])(ft,rt,ot,!1,null,"5d19b250",null)),ht=mt.exports,pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"支持退款:"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"开启","inactive-text":"关闭"},model:{value:t.formValidate.refund_switch,callback:function(e){t.$set(t.formValidate,"refund_switch",e)},expression:"formValidate.refund_switch"}})],1)],1),t._v(" "),3!=t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-col",[a("el-form-item",{attrs:{label:"最少购买件数:"}},[a("el-input-number",{attrs:{min:0,size:"small","controls-position":"right",placeholder:"请输入购买件数"},model:{value:t.formValidate.once_min_count,callback:function(e){t.$set(t.formValidate,"once_min_count",e)},expression:"formValidate.once_min_count"}}),t._v("\n   "),a("span",{staticClass:"explanation"},[t._v("默认为0,则不限制购买件数")])],1)],1)],1):t._e(),t._v(" "),3!=t.formValidate.type?a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"限购类型:"}},[a("el-radio-group",{model:{value:t.formValidate.pay_limit,callback:function(e){t.$set(t.formValidate,"pay_limit",e)},expression:"formValidate.pay_limit"}},[a("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("不限购")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("单次限购")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("长期限购")])],1)],1)],1):t._e(),t._v(" "),0!=t.formValidate.pay_limit?a("el-col",{attrs:{span:24}},[a("el-col",[a("el-form-item",{attrs:{label:"限购数量:",prop:"once_max_count"}},[a("el-input-number",{attrs:{min:t.formValidate.once_min_count,size:"small","controls-position":"right",placeholder:"请输入购买件数"},model:{value:t.formValidate.once_max_count,callback:function(e){t.$set(t.formValidate,"once_max_count",e)},expression:"formValidate.once_max_count"}}),t._v("\n   单次限购是限制每次下单最多购买的数量,长期限购是限制一个用户总共可以购买的数量\n ")],1)],1)],1):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-col",t._b({},"el-col",t.grid,!1),[a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{"controls-position":"right",placeholder:"请输入排序",size:"small"},model:{value:t.formValidate.sort,callback:function(e){t.$set(t.formValidate,"sort",e)},expression:"formValidate.sort"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台保障服务:",size:"mini"}},[a("div",{staticClass:"acea-row"},[a("el-select",{staticClass:"pageWidth",attrs:{placeholder:"请选择",clearable:"",size:"small"},model:{value:t.formValidate.guarantee_template_id,callback:function(e){t.$set(t.formValidate,"guarantee_template_id",e)},expression:"formValidate.guarantee_template_id"}},t._l(t.guaranteeList,(function(t){return a("el-option",{key:t.guarantee_template_id,attrs:{label:t.template_name,value:t.guarantee_template_id}})})),1),t._v(" "),a("el-button",{staticClass:"ml15",attrs:{size:"small"},on:{click:t.addServiceTem}},[t._v("添加服务说明模板")])],1)])],1)],1)},vt=[],gt={name:"ProductOtherSettings",props:{formValidate:{type:Object,required:!0},deliveryList:{type:Array,default:function(){return[]}},shippingList:{type:Array,default:function(){return[]}},guaranteeList:{type:Array,default:function(){return[]}},formList:{type:Array,default:function(){return[]}},formUrl:{type:String,default:""},roterPre:{type:String,default:""}},data:function(){return{grid:{xl:8,lg:8,md:12,sm:24,xs:24}}},methods:{addTem:function(){this.$emit("addTem")},addServiceTem:function(){this.$emit("addServiceTem")},getFormList:function(){this.$emit("getFormList")},getFormInfo:function(){this.$emit("getFormInfo")}}},_t=gt,bt=(a("19db"),Object(S["a"])(_t,pt,vt,!1,null,"1d30c67a",null)),yt=bt.exports,xt=a("54b0"),wt=[{title:"图片",slot:"image",align:"center",minWidth:"80px"},{title:"售价",slot:"price",align:"center",minWidth:"120px"},{title:"成本价",slot:"cost",align:"center",minWidth:120},{title:"划线价",slot:"ot_price",align:"center",minWidth:"120px"},{title:"库存",slot:"stock",align:"center",minWidth:"120px"},{title:"规格编码",slot:"bar_code",align:"center",minWidth:"120px"},{title:"条形码",slot:"bar_code_number",align:"center",minWidth:"120px"},{title:"重量(KG)",slot:"weight",align:"center",minWidth:"95px"},{title:"体积(m³)",slot:"volume",align:"center",minWidth:"95px"},{title:"默认选中规格",slot:"selected_spec",fixed:"right",align:"center",minWidth:"100px"},{title:"操作",slot:"action",fixed:"right",align:"center",minWidth:"120px"}],Vt=[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:120},{title:"成本价",slot:"cost",align:"center",minWidth:120},{title:"划线价",slot:"ot_price",align:"center",minWidth:120},{title:"库存",slot:"stock",align:"center",minWidth:120},{title:"规格编码",slot:"bar_code",align:"center",minWidth:120},{title:"条形码",slot:"bar_code_number",align:"center",minWidth:"120px"},{title:"云盘设置",slot:"fictitious",align:"center",minWidth:120},{title:"默认选中规格",slot:"selected_spec",fixed:"right",align:"center",minWidth:90},{title:"操作",slot:"action",fixed:"right",align:"center",minWidth:120}],kt=[{title:"图片",slot:"image",align:"center",minWidth:80},{title:"售价",slot:"price",align:"center",minWidth:100},{title:"成本价",slot:"cost",align:"center",minWidth:100},{title:"划线价",slot:"ot_price",align:"center",minWidth:100},{title:"库存",slot:"stock",align:"center",minWidth:100},{title:"规格编码",slot:"bar_code",align:"center",minWidth:120},{title:"条形码",slot:"bar_code_number",align:"center",minWidth:"120px"},{title:"卡密设置",slot:"fictitious",align:"center",minWidth:150},{title:"默认选中规格",slot:"selected_spec",fixed:"right",align:"center",minWidth:90},{title:"操作",slot:"action",fixed:"right",align:"center",minWidth:120}],Ct=[{title:"图片",slot:"image",align:"center",minWidth:"80px"},{title:"售价",slot:"price",align:"center",minWidth:"120px"},{title:"成本价",slot:"cost",align:"center",minWidth:120},{title:"划线价",slot:"ot_price",align:"center",minWidth:"120px"},{title:"规格编码",slot:"bar_code",align:"center",minWidth:"120px"},{title:"操作",slot:"reservation",align:"center",minWidth:"120px"},{title:"默认选中规格",slot:"selected_spec",fixed:"right",align:"center",minWidth:"100px"},{title:"操作",slot:"action",fixed:"right",align:"center",minWidth:"120px"}],St=a("83d6"),$t=a("ae43"),Ot=a("8c98"),At=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"平台商品参数:"}},[a("el-select",{staticClass:"pageWidth",attrs:{placeholder:"请选择平台商品参数",size:"small",clearable:""},on:{change:t.getSpecsList},model:{value:t.formValidate.param_temp_id,callback:function(e){t.$set(t.formValidate,"param_temp_id",e)},expression:"formValidate.param_temp_id"}},t._l(t.sysSpecsSelect,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value.toString()}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"自定义参数模板:"}},[a("el-select",{staticClass:"pageWidth",attrs:{multiple:"",placeholder:"添加自定义参数模板",clearable:"",size:"small"},on:{change:t.getSpecsList},model:{value:t.formValidate.custom_temp_id,callback:function(e){t.$set(t.formValidate,"custom_temp_id",e)},expression:"formValidate.custom_temp_id"}},t._l(t.merSpecsSelect,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),a("el-button",{attrs:{type:"defalut",size:"small"},on:{click:t.addSpecs}},[t._v("添加参数")])],1)],1),t._v(" "),a("el-col",{attrs:{span:16}},[a("el-form-item",[a("el-table",{ref:"tableParameter",staticClass:"specsList",attrs:{border:"",size:"small",data:t.formValidate.params,"row-key":"parameter_value_id"}},[a("el-table-column",{attrs:{align:"center",label:"参数名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"priceBox",attrs:{disabled:0==e.row.mer_id,size:"small",placeholder:"请输入参数名称"},model:{value:e.row.name,callback:function(a){t.$set(e.row,"name",a)},expression:"scope.row.name"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"参数值","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"arrbox"},[t._l(e.row.values,(function(i,n){return a("el-tag",{key:n,staticClass:"tags-item",attrs:{name:i,closable:!0,size:"small"},on:{close:function(a){return t.handleClose(e.$index,n)}}},[t._v("\n "+t._s(i.value)+"\n ")])})),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.row.single,expression:"scope.row.single"}],staticClass:"arrbox_ip width100",attrs:{size:"small",placeholder:"请输入选项,回车确认"},domProps:{value:e.row.single},on:{blur:function(a){return t.addSpecList(e.row,e.$index)},keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.addSpecList(e.row,e.$index)},input:function(a){a.target.composing||t.$set(e.row,"single",a.target.value)}}})],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.mer_id?a("el-button",{staticClass:"submission",attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.delSpecs(e.$index)}}},[t._v("删除")]):t._e()]}}])})],1)],1)],1)],1)},Tt=[],Mt={name:"ProductParams",props:{formValidate:{type:Object,defalut:{}},customSpecs:{type:Array,defalut:[]},sysSpecsSelect:{type:Array,defalut:[]},merSpecsSelect:{type:Array,defalut:[]}},data:function(){return{sortable:null,customSpecsData:[]}},watch:{customSpecs:function(t){this.customSpecsData=t}},mounted:function(){this.setSort()},methods:{delSpecs:function(t){this.formValidate.params.splice(t,1)},addSpecs:function(){this.formValidate.params.push({name:"",values:[],sort:0,single:""})},getSpecsList:function(){this.$emit("getSpecsList")},setSort:function(){var t=this,e=this.$refs.tableParameter.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];this.sortable=y["default"].create(e,{ghostClass:"sortable-ghost",setData:function(t){t.setData("Text","")},onEnd:function(e){t.elChangeExForArray(e.oldIndex,e.newIndex,t.formValidate.params)}})},elChangeExForArray:function(t,e,a){var i=a[t];return a[t]=a[e],a[e]=i,a},handleClose:function(t,e){this.formValidate.params[t]["values"].splice(e,1)},addSpecList:function(t,e){if(t.single){var a=this.formValidate.params[e].values.indexOf(t);-1===a&&this.formValidate.params[e].values.push({value:t.single}),t.single=""}}}},Lt=Mt,Dt=(a("8d1a"),Object(S["a"])(Lt,At,Tt,!1,null,"025b7118",null)),Et=Dt.exports,jt=a("7acc"),Bt=a("c4ad"),Ft=a("bbcc"),It=a("5f87"),Pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"Box"},[t.modals?a("el-dialog",{attrs:{visible:t.modals,width:"900px",title:"商品采集","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[a("div",[a("div",{staticClass:"acea-row row-middle"},[a("div",[t._v("平台一号通采集次数剩余:")]),t._v(" "),a("span",{staticClass:"warning mr14"},[t._v(t._s(t.count)+" 次")]),t._v(" "),a("router-link",{staticClass:"link",attrs:{to:{path:t.roterPre+"/setting/sms/sms_pay/index?type=copy"},target:"_blank"}},[t._v("\n 购买采集次数\n ")])],1),t._v(" "),a("div",{staticClass:"acea-row row-middle mt20"},[a("div",{staticClass:"mr14"},[t._v("\n 自有一号通采集次数剩余次数,需登录一号通后进行查看!\n ")]),t._v(" "),a("router-link",{staticClass:"link",attrs:{to:{path:t.roterPre+"/setting/sms/sms_account/index"},target:"_blank"}},[t._v("\n 点击登录\n ")])],1),t._v(" "),a("div",{staticClass:"acea-row row-middle mt20"},[a("div",{staticClass:"mr14"},[t._v("系统默认先消耗旧版一号通采集次数!")]),t._v(" "),a("span",{staticClass:"link",on:{click:t.openRecords}},[t._v("\n 查看商品采集记录\n ")])])]),t._v(" "),a("el-form",{ref:"formValidate",staticClass:"formValidate",attrs:{"label-width":"90px","label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"链接地址:",required:""}},[a("el-input",{staticClass:"numPut",attrs:{search:"",placeholder:"请输入商品详情链接地址"},model:{value:t.soure_link,callback:function(e){t.soure_link=e},expression:"soure_link"}}),t._v(" "),a("div",{staticClass:"desc"},[t._v("\n 系统支持采集淘宝、天猫、京东、苏宁、1688的商品信息\n ")])],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.modals=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small",loading:t.loading},on:{click:t.add}},[t._v("确定")])],1)],1):t._e(),t._v(" "),a("copy-record",{ref:"copyRecord"})],1)},zt=[],Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.showRecord?a("el-dialog",{attrs:{title:"采集记录",visible:t.showRecord,width:"900px"},on:{"update:visible":function(e){t.showRecord=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品复制链接",prop:"info","min-width":"300"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()},Rt=[],Wt={name:"CopyRecord",data:function(){return{showRecord:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{getRecord:function(){var t=this;this.showRecord=!0,this.loading=!0,Object(V["qb"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getRecord()},pageChangeLog:function(t){this.tableFromLog.page=t,this.getRecord()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getRecord()}}},Ut=Wt,qt=(a("c541"),Object(S["a"])(Ut,Nt,Rt,!1,null,"8c148cbe",null)),Gt=qt.exports,Ht={name:"CopyTaoBao",components:{copyRecord:Gt},data:function(){return{roterPre:St["roterPre"],modals:!1,loading:!1,count:0,soure_link:"",artFrom:{type:"taobao",url:""}}},computed:{},watch:{},created:function(){},mounted:function(){this.getCopyCount()},methods:{getCopyCount:function(){var t=this;Object(V["pb"])().then((function(e){t.count=e.data.count}))},openRecords:function(){this.$refs.copyRecord.getRecord()},add:function(){var t=this;if(this.soure_link){var e=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;if(!e.test(this.soure_link))return this.$message.warning("请输入以http开头的地址!");this.artFrom.url=this.soure_link,this.loading=!0,Object(V["C"])(this.artFrom).then((function(e){var a=e.data;t.modals=!1,t.$emit("info-data",a)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}else this.$message.warning("请输入链接地址!")}}},Xt=Ht,Yt=(a("5c92"),Object(S["a"])(Xt,Pt,zt,!1,null,"360ef83e",null)),Kt=Yt.exports,Jt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{visible:t.carMyShow,title:"设置云盘链接",width:"600px"},on:{"update:visible":function(e){t.carMyShow=e}}},[a("div",{staticClass:"carMywrapper"},[a("div",{staticClass:"type-radio"},[a("el-form",{attrs:{"label-width":"80px"}},[a("el-form-item",{attrs:{label:"云盘链接:"}},[0==t.fixedCar.is_type?a("div",[a("div",{staticClass:"stock-disk"},[a("el-input",{attrs:{size:"small",type:"textarea",rows:4,placeholder:"请输入云盘链接及提取码"},model:{value:t.fixedCar.key,callback:function(e){t.$set(t.fixedCar,"key",e)},expression:"fixedCar.key"}})],1),t._v(" "),a("div",{staticClass:"stock-input"},[a("el-input-number",{attrs:{min:1,label:"填写库存数量"},model:{value:t.fixedCar.stock,callback:function(e){t.$set(t.fixedCar,"stock",e)},expression:"fixedCar.stock"}}),t._v(" 件 \n\t\t\t\t \t")],1)]):t._e(),t._v(" "),1==t.fixedCar.is_type?a("div",{staticClass:"scroll-virtual"},t._l(t.virtualList,(function(e,i){return a("div",{key:i,staticClass:"acea-row row-middle mb10"},[a("span",{staticClass:"mr10 virtual-title"},[t._v("卡号"+t._s(i+1)+":")]),t._v(" "),a("el-input",{staticClass:"mr10 width15",attrs:{type:"text",size:"small",placeholder:"请输入卡号(非必填)"},model:{value:e.key,callback:function(a){t.$set(e,"key","string"===typeof a?a.trim():a)},expression:"item.key"}}),t._v(" "),a("span",{staticClass:"mr10 virtual-title"},[t._v("卡密"+t._s(i+1)+":")]),t._v(" "),a("el-input",{staticClass:"mr10 width15",attrs:{type:"text",placeholder:"请输入卡密",size:"small"},model:{value:e.pwd,callback:function(a){t.$set(e,"pwd","string"===typeof a?a.trim():a)},expression:"item.pwd"}}),t._v(" "),a("span",{staticClass:"deteal-btn",on:{click:function(e){return t.removeVirtual(i)}}},[t._v("删除")])],1)})),0):t._e(),t._v(" "),1==t.fixedCar.is_type?a("div",{staticClass:"add-more"},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.handleAdd}},[t._v("添加卡密")]),t._v(" "),a("el-upload",{ref:"upload",staticClass:"ml10",staticStyle:{display:"inline-block"},attrs:{action:t.cardUrl,"before-upload":t.beforeUpload,headers:t.header,"on-success":t.upFile,format:["xlsx"],"on-format-error":t.handleFormatError}})],1):t._e()])],1)],1),t._v(" "),a("div",{staticClass:"footer"},[a("el-button",{staticClass:"btns",attrs:{type:"primary",size:"small"},on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{staticClass:"btns",attrs:{type:"primary",size:"small"},on:{click:t.subBtn}},[t._v("确定")])],1)])])},Zt=[],Qt=a("2e83"),te={name:"addCarMy",props:{virtualList:{type:Array,default:function(){return[]}}},data:function(){return{carMyShow:!1,fixedCar:{is_type:0,key:"",stock:1},cardUrl:Ft["a"].https+"/file/upload/1",header:{}}},computed:{},created:function(){},mounted:function(){},methods:{getCarMyList:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){var e,a,i,n,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],a=[],i=[],n="",t.next=3,this.getExcelData();case 3:r=t.sent,n||(n=r.filename),a.length||(a=r.filekey),e.length||(e=r.header),i=r.export,Object(Qt["a"])(e,a,n,i);case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getExcelData:function(){return new Promise((function(t,e){Object(V["exportProductCard"])().then((function(e){return t(e.data)}))}))},removeVirtual:function(t){this.virtualList.splice(t,1)},upFile:function(t){var e=this;Object(V["importCard"])({file:t.data.src}).then((function(t){e.$emit("changeVirtual",JSON.parse(JSON.stringify(t.data)))})).catch((function(t){return e.$message.error(t.message)}))},handleFormatError:function(t){return this.$message.error("必须上传xlsx格式文件")},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(It["a"])()},cancel:function(){this.$emit("closeCarMy")},handleAdd:function(){this.virtualList.push({key:"",pwd:""})},beforeUpload:function(){var t=this,e=new Promise((function(e){t.$nextTick((function(){e(!0)}))}));return e},subBtn:function(){if(0==this.fixedCar.is_type){if(""==this.fixedCar.key)return this.$message.error("请填写卡密信息");if(!this.fixedCar.stock)return this.$message.error("请填写库存数量");this.$emit("fixdBtn",JSON.parse(JSON.stringify(this.fixedCar)))}else{for(var t={is_type:1,list:this.virtualList},e=0;e0&&-1!=t.selectedLibrary.indexOf(e.id)}})})),1)],1)],1)],1)]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"btns",attrs:{size:"small"},on:{click:function(e){t.cdkeyShow=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{staticClass:"btns",attrs:{loading:t.btnloading,type:"primary",size:"small"},on:{click:function(e){return t.submitForm("carMyValidateForm")}}},[t._v("保存")])],1)])},re=[],oe={name:"cdkeyLibrary",props:{cdkeyLibraryInfo:{type:Object,default:function(){return null}},selectedLibrary:{type:Array,default:function(){return[]}}},data:function(){return{cdkeyShow:!1,header:{},carMyValidateForm:{cdkeyInfo:null},btnloading:!1,cdkeyLibraryList:[]}},watch:{cdkeyLibraryInfo:{handler:function(t,e){this.getCdkeyLibraryList()},deep:!0}},mounted:function(){},methods:{getCdkeyLibraryList:function(){var t=this;Object(V["Ib"])().then((function(e){t.cdkeyLibraryList=e.data.data}))},handleChange:function(t){this.carMyValidateForm.cdkeyInfo=t},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e.carMyValidateForm.cdkeyInfo?e.$emit("handlerSubSuccess",e.carMyValidateForm.cdkeyInfo):e.$emit("handlerSubSuccess",null),e.cdkeyShow=!1}))}}},se=oe,le=(a("4170"),Object(S["a"])(se,ne,re,!1,null,"fe27b3e8",null)),ce=le.exports,ue=["stock"],de=["is_show","start","end","stock","end_time","start_time"],fe=(m={image:"",slider_image:[],customize_time_period:[""],store_name:"",store_info:"",keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],param_temp_id:"",unit_name:"",sort:0,once_max_count:0,is_good:0,is_show:1,auto_on_time:"",auto_off_time:"",temp_id:"",video_link:"",guarantee_template_id:"",delivery_way:[],mer_labels:[],delivery_free:0,pay_limit:0,once_min_count:0,svip_price_type:0,refund_switch:1,params:[],custom_temp_id:[],header:[],attrValue:[{image:"",price:null,cost:null,ot_price:null,svip_price:null,select:!1,stock:null,cdkey:{},library_name:"",library_id:"",bar_code:"",bar_code_number:"",weight:null,volume:null,reservation:[]}],specValue:[{price:null,ot_price:null}],attr:[],extension_type:0,integral_rate:-1,content:"",spec_type:0,give_coupon_ids:[],is_gift_bag:0,couponData:[],extend:[],type:0,product_type:0},Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(m,"is_show",1),"time_period",[]),"reservation_time_interval",60),"reservation_times",[]),"reservation_time_type",1),"reservation_type",3),"reservation_start_time",""),"reservation_end_time",""),"show_num_type",1),"sale_time_type",1),Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(Object(v["a"])(m,"sale_time_start_day",""),"sale_time_end_day",""),"sale_time_week",[1,2,3,4,5,6,7]),"show_reservation_days",10),"is_advance",0),"advance_time",0),"is_cancel_reservation",0),"cancel_reservation_time",0),"reservation_form_type",1),"mer_form_id","")),me={price:{title:"售价"},cost:{title:"成本价"},ot_price:{title:"划线价"},svip_price:{title:"付费会员价"},stock:{title:"库存"},bar_code:{title:"规格编码"},bar_code_number:{title:"条形码"},weight:{title:"重量(KG)"},volume:{title:"体积(m³)"}},he=[{field:"store_name",message:"基本信息-商品名称不能为空",validator:function(t){return!t.trim()}},{field:"cate_id",message:"基本信息-平台商品分类不能为空",validator:function(t){return!t}},{field:"image",message:"基本信息-商品封面图不能为空",validator:function(t){return!t}},{field:"slider_image",message:"基本信息-商品轮播图不能为空",validator:function(t){return 0===t.length}}],pe={name:"ProductProductAdd",components:{WangEditor:g["a"],guaranteeService:$t["a"],previewBox:Ot["a"],attrList:jt["a"],goodsList:Bt["a"],taoBao:Kt,copyRecord:Gt,addCarMy:ie,cdkeyLibrary:ce,draggable:b.a,templatesFrom:xt["a"],productInfo:O,productSpecs:E,productDetail:z,productMarket:Z,productParam:Et,productOther:G,reservationSetting:nt,reservationOther:yt,reservationSpecs:ht},data:function(){Ft["a"].https,Object(It["a"])();return{roterPre:St["roterPre"],baseURL:Ft["a"].httpUrl||"http://localhost:8080",formUrl:"",tabs:[],fullscreenLoading:!1,props:{emitPath:!1},active:0,deduction_set:-1,OneattrValue:[Object.assign({},fe.attrValue[0])],ManyAttrValue:[Object.assign({},fe.attrValue[0])],ruleList:[],createBnt:!0,showIput:!1,merCateList:[],categoryList:[],shippingList:[],guaranteeList:[],BrandList:[],deliveryList:[],labelList:[],formData:[],formThead:Object.assign({},me),formValidate:Object.assign({},fe),picValidate:!0,formDynamics:{template_name:"",template_value:[]},manyTabTit:{},manyTabDate:{},formDynamic:{attrsName:"",attrsVal:""},isBtn:!1,images:[],currentTab:"1",isChoice:"",upload:{videoIng:!1},progress:10,videoLink:"",loading:!1,ruleValidate:{give_coupon_ids:[{required:!0,message:"请选择优惠券",trigger:"change",type:"array"}],store_name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],cate_id:[{required:!0,message:"请选择平台分类",trigger:"change"}],keyword:[{required:!0,message:"请输入商品关键字",trigger:"blur"}],unit_name:[{required:!0,message:"请输入单位",trigger:"blur"}],store_info:[{required:!0,message:"请输入商品简介",trigger:"blur"}],temp_id:[{required:!0,message:"请选择运费模板",trigger:"change"}],once_max_count:[{required:!0,message:"请输入限购数量",trigger:"change"}],image:[{required:!0,message:"请上传商品图",trigger:"change"}],slider_image:[{required:!0,message:"请上传商品轮播图",type:"array",trigger:"change"}],spec_type:[{required:!0,message:"请选择商品规格",trigger:"change"}],delivery_way:[{required:!0,message:"请选择送货方式",trigger:"change"}]},attrInfo:{},keyNum:0,extensionStatus:0,deductionStatus:0,previewVisible:!1,previewKey:"",deliveryType:[],customBtn:0,CustomList:[{value:"text",label:"文本框"},{value:"number",label:"数字"},{value:"email",label:"邮件"},{value:"date",label:"日期"},{value:"time",label:"时间"},{value:"idCard",label:"身份证"},{value:"mobile",label:"手机号"},{value:"image",label:"图片"}],customess:{content:[]},headTab:[],type:0,modals:!1,attrVal:{price:null,cost:null,ot_price:null,stock:null,bar_code:null,bar_code_number:null,weight:null,volume:null},specVal:{price:null,ot_price:null},open_svip:!1,svip_rate:0,extension_one_rate:"",extension_two_rate:"",deduction_ratio_rate:"",customSpecs:[],merSpecsSelect:[],sysSpecsSelect:[],attrs:[],attrsList:[],activeAtter:[],attrShow:!1,createProduct:!1,generateArr:[],createCount:this.$route.params.id?0:-10,virtualList:[],formList:[],carMyShow:!1,tabIndex:0,tabName:"",oneFormBatch:[{image:"",price:"",cost:"",ot_price:"",svip_price:"",stock:"",cdkey:{},code:"",weight:"",volume:""}],headerCarMy:{title:"卡密设置",slot:"fictitious",align:"center",width:95},product_id:"",goodList:[],unitList:[],recommendVisible:!1,timeVal:"",timeVal2:"",is_timed:0,cdkeyId:null,cdkeyLibraryInfo:null,selectedLibrary:[],cdkeyLibraryList:[],columnsInstalM:[],canSel:!0,changeAttrValue:"",tableKey:0,rakeBack:[{title:"一级返佣(元)",slot:"extension_one",align:"center",width:95},{title:"二级返佣(元)",slot:"extension_two",align:"center",width:95}],manyVipPrice:"",manyBrokerage:"",manyBrokerageTwo:""}},computed:{attrValue:function(){var t=Object.assign({},this.attrVal);return t},specValue:function(){var t=Object.assign({},this.specVal);return t}},watch:{"formValidate.attr":{handler:function(t){1===this.formValidate.spec_type&&this.watCh(t)},immediate:!1,deep:!0},"$route.query.id":{handler:function(t,e){t!==e&&t&&this.initData()},immediate:!1,deep:!0},"$route.query.productType":{handler:function(t,e){t!==e&&t&&this.getHeaderTab()},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route),this.$route.query.id&&1===this.formValidate.spec_type&&this.$watch("formValidate.attr",this.watCh)},mounted:function(){this.$route.query.productType&&(this.formValidate.type=Number(this.$route.query.productType),3===this.formValidate.type&&this.getCdkeyLibraryList(),this.productCon(),this.showSpecsByType(),this.generateHeader(this.attrs),this.$emit("generateHeader",this.attrs)),this.initData(),this.getHeaderTab()},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{productCon:function(){var t=this;Object(V["nb"])().then((function(e){t.extensionStatus=Number(e.data.extension_status),t.deductionStatus=e.data.integral_status,t.deliveryType=e.data.delivery_way.map(String),t.open_svip=1==e.data.mer_svip_status&&1==e.data.svip_switch_status,t.svip_rate=Number(e.data.svip_store_rate),t.extension_one_rate=e.data.extension_one_rate+"",t.extension_two_rate=e.data.extension_two_rate+"",t.deduction_ratio_rate=e.data.integral_rate;var a=0==t.formValidate.type?"快递配送":1==t.formValidate.type?"虚拟发货":"卡密发货";t.$route.params.id||(t.formValidate.delivery_way=t.deliveryType),2==t.deliveryType.length?2==t.formValidate.type||3==t.formValidate.type?t.deliveryList=[{value:"2",name:a}]:t.deliveryList=[{value:"1",name:"到店自提"},{value:"2",name:a}]:1==t.deliveryType.length&&"1"==t.deliveryType[0]&&2!=t.formValidate.type?t.deliveryList=[{value:"1",name:"到店自提"}]:(t.deliveryList=[{value:"2",name:a}],t.formValidate.delivery_way=["2"])})).catch((function(e){t.$message.error(e.message)}))},getHeaderTab:function(){this.headTab=[{title:"商品信息",name:"1"},{title:"规格设置",name:"2"},{title:"商品详情",name:"3"}].concat(Object(p["a"])(4===this.formValidate.type?[{title:"预约设置",name:"7"}]:[]),[{title:"营销设置",name:"4"},{title:"商品参数",name:"5"},{title:"其他设置",name:"6"}])},showSpecsByType:function(){2==this.formValidate.type||3==this.formValidate.type?(delete this.attrValue.weight,delete this.attrValue.volume):(this.attrValue.weight="",this.attrValue.volume="")},getSpecsLst:function(t,e){var a=this,i=t?t.cate_id:this.formValidate.cate_id;Object(V["Sb"])({cate_id:i}).then((function(i){a.merSpecsSelect=i.data.mer||[],a.sysSpecsSelect=i.data.sys||[],1==a.$route.query.type&&e&&a.infoData(t,"taobao"),1!=a.$route.query.type&&e&&a.infoData(t)})).catch((function(t){a.$message.error(t.message)}))},getSpecsList:function(){var t=this,e=Object(p["a"])(this.formValidate.custom_temp_id),a=[this.formValidate.param_temp_id].concat(),i=[].concat(Object(p["a"])(e),Object(p["a"])(a));i.length<=0?(this.formValidate.merParams=[],this.formValidate.sysParams=[]):Object(V["Fb"])({template_ids:i.toString()}).then((function(e){var a=[];t.formValidate.params.forEach((function(t,e){t.parameter_id||a.push(t)})),t.formValidate.params=[].concat(a,Object(p["a"])(e.data))})).catch((function(e){t.$message.error(e.message)}))},generateHeader:function(t){var e=this,a=[];t.forEach((function(t){if(0===t.detail.length)return e.$message.error("请添加".concat(t.value,"的规格值"));a.push({title:t.value,key:t.value,minWidth:140,fixed:"left"})}));var i,n=a;2==this.formValidate.type?(i=[].concat(n,Object(p["a"])(Vt)),this.formValidate.header.map((function(t){"fictitious"===t.slot&&(t.title="云盘设置")}))):i=3==this.formValidate.type?[].concat(n,Object(p["a"])(kt)):4==this.formValidate.type?[].concat(n,Object(p["a"])(Ct)):[].concat(n,Object(p["a"])(wt)),this.$set(this.formValidate,"header",i),this.tableKey+=1,this.columnsInstalM=i},handleAddRole:function(){var t={value:this.formDynamic.attrsName,add_pic:0,detail:[]};this.attrs.push(t)},setAttrs:function(t){this.attrs=t,this.generateAttr(this.attrs)},attrChangeValue:function(t,e){this.generateHeader(this.attrs),this.generateAttr(this.attrs)},handleRemoveRole:function(t){this.attrs.splice(t,1),this.attrs.length?this.generateAttr(this.attrs):(this.formValidate.header=[],this.ManyAttrValue=[])},delAttrTable:function(t){for(var e=0;e1)t.forEach((function(a,n){0===n&&(e=t[n]["detail"]);var r=[];e.forEach((function(e){t[n+1]&&t[n+1]["detail"]&&t[n+1]["detail"].forEach((function(a){var o=(0!==n?"":t[n]["value"]+"_$_")+e+"-$-"+t[n+1]["value"]+"_$_"+a;if(r.push(o),n===t.length-2){var s={image:"",price:0,cost:0,ot_price:0,select:!0,sku:"",stock:0,cdkey:{},cdkeyLibrary:{},library_name:"",library_id:"",bar_code:"",weight:0,volume:0,extension_one:0,extension_two:0};o.split("-$-").forEach((function(t,e){var a=t.split("_$_");s["detail"]||(s["detail"]={}),s["detail"][a[0]]=a.length>1?a[1]:""})),Object.values(s.detail).forEach((function(t,e){s["value"+e]=t})),i.push(s)}}))})),e=r.length?r:[]}));else{var n=[];t.forEach((function(t,e){t["detail"].forEach((function(e,a){n[a]=t["value"]+"_"+e,i[a]={image:"",price:0,cost:0,ot_price:0,select:!0,sku:"",stock:0,cdkey:{},cdkeyLibrary:{},library_name:"",library_id:"",bar_code:"",weight:0,volume:0,extension_one:0,extension_two:0,detail:Object(v["a"])({},t["value"],e)},Object.values(i[a].detail).forEach((function(t,e){i[a]["value"+e]=t}))}))})),e.push(n.join("$&"))}return a.generateArr.length>0&&a.generateArr.forEach((function(t,e){i[e]["image"]=t.image||t.pic,i[e]["price"]=t.price,i[e]["cost"]=t.cost,i[e]["ot_price"]=t.ot_price,i[e]["sku"]=t.sku,i[e]["stock"]=t.stock,i[e]["unique"]=t.unique,i[e]["bar_code"]=t.bar_code,i[e]["volume"]=t.volume,i[e]["weight"]=t.weight,i[e]["extension_one"]=t.extension_one,i[e]["extension_two"]=t.extension_two,i[e]["cdkey"]=t.cdkey&&t.cdkey.length&&t.cdkey[0]||null,i[e]["cdkeyLibrary"]=t.cdkeyLibrary||{},i[e]["library_name"]=t.cdkeyLibrary&&t.cdkeyLibrary.name,i[e]["library_id"]=t.library_id||"",i[e]["svip_price"]=t.svip_price||""})),i}},handleFocus:function(t){this.changeAttrValue=t},handleBlur:function(){this.changeAttrValue=""},activeAttr:function(t){this.attrsList=t},labelAttr:function(){this.attrShow=!1},generateAttr:function(t,e){var a=this;this.generateHeader(t);var i=this.generateCombinations(t),n=i.map((function(i){var n={attr_arr:i,detail:{},cdkey:{},title:"",key:"",price:0,image:"",ot_price:0,cost:0,stock:0,is_show:1,is_default_select:0,unique:"",weight:"",extension_one:0,extension_two:0,svip_price:0},r=a.formValidate.type;3==r?a.$set(n,"virtual_list",[]):2==r&&(a.$set(n,"cdkey",{}),a.$set(n,"coupon_name",""));for(var o=0;o0&&c.attr_arr&&Object(lt["a"])(c.attr_arr,i)?(Object.assign(n,{price:c.price,cost:c.cost,ot_price:c.ot_price,stock:c.stock,reservation:c.reservation||[],image:c.image,unique:c.unique||"",weight:c.weight||"",is_show:c.is_show||1,is_default_select:c.is_default_select||0,volume:c.volume||0,is_virtual:c.is_virtual,extension_one:c.extension_one,extension_two:c.extension_two,svip_price:c.svip_price}),1==r&&(n.virtual_list=c.virtual_list)):l>0&&c.attr_arr.length&&t[o].add_pic&&i.includes(e)&&t[o].detail.map((function(t,e){i.includes(t.value)&&a.$set(n,"image",t.image)}))}}return n}));this.$nextTick((function(){a.ManyAttrValue=[].concat(Object(p["a"])(a.oneFormBatch),Object(p["a"])(n))}))},attrDetailChangeValue:function(t,e){var a=this;if(this.ManyAttrValue.length){var i=this.attrs[e].value;this.ManyAttrValue.map((function(e,n){if(n>0&&Object.keys(e.detail).includes(i)&&e.detail[i]===a.changeAttrValue){e.detail[i]=t;var r=e.attr_arr.findIndex((function(t){return t===a.changeAttrValue}));e.attr_arr[r]=t}})),this.changeAttrValue=t}else this.generateAttr(this.attrs,1)},generateCombinations:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return[a];var i=Object(r["a"])(t),n=i[0],o=i.slice(1);return n.detail.flatMap((function(t){return e.generateCombinations(o,[].concat(Object(p["a"])(a),[t.value]))}))},getInfo:function(){var t=this;this.fullscreenLoading=!0;var e={};"copy"==this.$route.query.type&&(e.is_copy=1);var a=4==this.$route.query.productType?V["Bb"]:V["wb"];a(this.$route.query.id,e).then(function(){var e=Object(l["a"])(Object(s["a"])().mark((function e(a){var i,n,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.generateArr=[],i=a.data,t.getSpecsLst(i,!0),t.productCon(),3==i.type&&t.getCdkeyLibraryList(),i.mer_form_id&&(n=1e3*(new Date).getTime(),r="".concat(t.baseURL,"/pages/admin/system_form/index?inner_frame=1&time=").concat(n,"&form_id=").concat(i.mer_form_id),t.formUrl=r);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)}))},infoData:function(t,e){var a=this;if("taobao"==e&&(this.formValidate.type=Number(this.$route.query.productType),4==this.formValidate.type&&t.attr.length>0&&(t.attr=[t.attr[0]])),this.deduction_set=-1==t.integral_rate?-1:1,this.goodList=t.goodList||[],this.attrs=t.attr||[],t.attrValue.forEach((function(e){a.$set(e,"select",!0),3==t.type&&a.$set(e,"library_id",0==e.library_id?"":e.library_id)})),this.formValidate=t,4!=t.type&&(this.formValidate.delivery_way=t.delivery_way&&t.delivery_way.length?t.delivery_way.map(String):this.deliveryType),this.formValidate.temp_id=Object(lt["d"])(this.shippingList,"shipping_template_id",t.temp_id),this.formValidate.mer_form_id=Object(lt["d"])(this.formList,"form_id",t.mer_form_id),this.is_timed=t.auto_off_time?1:0,this.formValidate.spec_type=Number(t.spec_type),this.formValidate.params=t.params||[],this.formValidate.couponData=t.coupon||[],this.formValidate.mer_labels=t.mer_labels&&t.mer_labels.length?t.mer_labels.map(Number):[],this.formValidate.guarantee_template_id=t.guarantee_template_id?t.guarantee_template_id:"","taobao"==e){var i={reservation_time_type:1,reservation_type:3,reservation_start_time:"",reservation_end_time:"",show_num_type:1,sale_time_type:1,sale_time_start_day:"",sale_time_end_day:"",sale_time_week:[1,2,3,4,5,6,7],show_reservation_days:10,is_advance:0,advance_time:0,is_cancel_reservation:0,cancel_reservation_time:0,reservation_form_type:1};for(var n in i)this.formValidate[n]=i[n]}4==this.formValidate.type&&(this.formValidate.reservation_time_type=Number(t.reservation_time_type),this.formValidate.show_num_type=Number(t.show_num_type),t.attrValue.length>0&&t.attrValue.forEach((function(t){t.reservation&&t.reservation.length>0&&t.reservation.forEach((function(t){t.start=t.start_time,t.end=t.end_time}))}))),this.formValidate.type=Number(this.$route.query.productType),0==t.spec_type?(this.ManyAttrValue=[],t.attrValue[0].list=[],this.OneattrValue=t.attrValue):(0!=this.formValidate.extend.length&&(this.customBtn=1),this.generateHeader(this.attrs),this.ManyAttrValue=[].concat(Object(p["a"])(this.oneFormBatch),Object(p["a"])(t.attrValue)),"taobao"==e&&4==this.formValidate.type&&(this.ManyAttrValue=[],this.generateAttr(this.attrs))),(this.formValidate.custom_temp_id.length>0||this.formValidate.param_temp_id)&&this.getSpecsList(),this.fullscreenLoading=!1,setTimeout((function(e){a.checkAllGroup(t.extension_type)}),1e3)},checkAllGroup:function(t){var e=this.attrs.length+3;0===this.formValidate.spec_type?this.columnsInstall=0==t?this.columns2.slice(0,e).concat(this.member):1==t?this.columns2.slice(0,e).concat(this.rakeBack):this.columns2.slice(0,e):this.columnsInstal2=0==t?this.columnsInstalM.slice(0,e).concat(this.member):1==t?this.columnsInstalM.slice(0,e).concat(this.rakeBack):this.columnsInstalM.slice(0,e)}}},ve=pe,ge=(a("2004"),Object(S["a"])(ve,i,n,!1,null,"3b1bca3c",null));e["default"]=ge.exports},"2e83":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("28a5");var i=a("8122"),n=a("e8ae"),r=a.n(n),o=a("21a6");function s(t,e,a,n,s,l){var c,u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],d=1,m=new r.a.Workbook,h=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:{};c=m.addWorksheet(e,a)}function v(t,e){if(!Object(i["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var a=0;a=i)&&c.mergeCells(w(n)+t+":"+w(n)+e)}function x(t){if(!Object(i["isEmpty"])(t))if(Array.isArray(t))for(var e=0;eu)a=l[u++],i&&!o.call(s,a)||d.push(t?[a,s[a]]:s[a]);return d}}},"51fa":function(t,e,a){},"5c8f":function(t,e,a){},"5c92":function(t,e,a){"use strict";a("9f9e")},6484:function(t,e,a){},"6bef":function(t,e,a){"use strict";a.r(e);a("28a5"),a("a481");(function(){if(window.frameElement&&window.frameElement.id){var t=window.parent,e=t.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],a=e.editor,i=t.UE,n=i.dom.domUtils,r=i.utils,o=(i.browser,i.ajax,function(t){return document.getElementById(t)});window.nowEditor={editor:a,dialog:e},r.loadFile(document,{href:a.options.themePath+a.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var s=a.getLang(e.className.split("-")[2]);s&&n.on(window,"load",(function(){var t=a.options.langPath+a.options.lang+"/images/";for(var e in s["static"]){var i=o(e);if(i){var l=i.tagName,c=s["static"][e];switch(c.src&&(c=r.extend({},c,!1),c.src=t+c.src),c.style&&(c=r.extend({},c,!1),c.style=c.style.replace(/url\s*\(/g,"url("+t)),l.toLowerCase()){case"var":i.parentNode.replaceChild(document.createTextNode(c),i);break;case"select":for(var u,d=i.options,f=0;u=d[f];)u.innerHTML=c.options[f++];for(var m in c)"options"!=m&&i.setAttribute(m,c[m]);break;default:n.setAttributes(i,c)}}}}))}})()},"7d28":function(t,e,a){"use strict";a("eb0b")},8615:function(t,e,a){var i=a("5ca1"),n=a("504c")(!1);i(i.S,"Object",{values:function(t){return n(t)}})},"8d1a":function(t,e,a){"use strict";a("51fa")},9948:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{attrs:{title:"可约数量设置",visible:t.dialogVisible,"close-on-click-modal":!1,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-table",{key:t.itemKey,class:t.isShow?"":"hide-first-row",staticStyle:{width:"100%"},attrs:{data:t.gridData,"max-height":"500"}},[a("el-table-column",{attrs:{property:"image",label:"图片",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"upLoadPicBox specPictrue"},[e.row.image||e.row.pic?a("div",{staticClass:"pictrue tabPic"},[a("img",{attrs:{src:e.row.image||e.row.pic}})]):a("div",[t._v("--")])])]}}])}),t._v(" "),"0"!=t.type?a("el-table-column",{attrs:{property:"price",label:"产品规格",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"time-height"},[t._v("\n "+t._s(e.row.attr_arr?e.row.attr_arr[0]:e.row.sku)+"\n ")])]}}],null,!1,3639468462)}):t._e(),t._v(" "),a("el-table-column",{attrs:{property:"address",label:"时间段"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.reservation,(function(e,i){return a("div",{key:i,staticClass:"time-height"},[t._v("\n "+t._s(e.start||e.start_time)+"-"+t._s(e.end||e.end_time)+"\n ")])}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"预约数量"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("span",[t._v("预约数量")]),t._v(" "),a("el-popover",{attrs:{placement:"top",trigger:"manual"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"title"},[t._v("批量修改")]),t._v(" "),a("div",{staticClass:"flex"},[a("el-input-number",{staticClass:"mr10",staticStyle:{width:"120px"},attrs:{min:0,max:99999,controls:!1,precision:0,label:"请输入预约数量",size:"small"},model:{value:t.batchStockValue,callback:function(e){t.batchStockValue=e},expression:"batchStockValue"}}),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:t.close}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.batchUpdateStock}},[t._v("确定")])],1),t._v(" "),a("span",{staticClass:"el-icon-edit-outline",attrs:{slot:"reference"},on:{click:function(e){t.visible=!0}},slot:"reference"})])]}},{key:"default",fn:function(e){return t._l(e.row.reservation,(function(e,i){return a("div",{key:i,staticClass:"mb10"},[a("el-input-number",{staticStyle:{width:"120px"},attrs:{min:0,max:99999,precision:0,controls:!1,label:"请输入预约数量",size:"small"},model:{value:e.stock,callback:function(a){t.$set(e,"stock",a)},expression:"item.stock"}})],1)}))}}])})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:t.handleClose}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.submitOk}},[t._v("确 定")])],1)],1)],1)},n=[],r=a("2d63"),o=(a("c5f6"),{name:"reservationStockDialog",props:{dialogVisible:{type:Boolean,default:!1},isShow:{type:Boolean,default:!0},gridData:{type:Array,default:function(){return[]}},type:{type:Number,default:0}},data:function(){return{visible:!1,batchStockValue:0,itemKey:0}},watch:{dialogVisible:function(t){t&&(this.itemKey=Math.random())}},methods:{handleClose:function(){this.$emit("close"),this.visible=!1},close:function(){this.visible=!1,this.batchStockValue=0},batchUpdateStock:function(){var t=Number(this.batchStockValue);if(isNaN(t))console.warn("批量修改的预约数量不是有效的数字");else{var e,a=Object(r["a"])(this.gridData);try{for(a.s();!(e=a.n()).done;){var i,n=e.value,o=Object(r["a"])(n.reservation);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.stock=t}}catch(l){o.e(l)}finally{o.f()}}}catch(l){a.e(l)}finally{a.f()}this.itemKey=Math.random(),this.close()}},submitOk:function(){this.$emit("submitOk",this.gridData),this.visible=!1},handleStockInput:function(t,e){var a=parseInt(t);isNaN(a)||a<0?e.stock=0:e.stock=a>99999?99999:a}}}),s=o,l=(a("7d28"),a("2877")),c=Object(l["a"])(s,i,n,!1,null,"004a0204",null);e["a"]=c.exports},"9f9e":function(t,e,a){},aa47:function(t,e,a){"use strict"; /**! * Sortable 1.15.6 * @author RubaXa * @author owenm * @license MIT */ function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function n(t){for(var e=1;e=0||(n[a]=t[a]);return n}function c(t,e){if(null==t)return{};var a,i,n=l(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function u(t){return d(t)||f(t)||m(t)||p()}function d(t){if(Array.isArray(t))return h(t)}function f(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function m(t,e){if(t){if("string"===typeof t)return h(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a"===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(a){return!1}return!1}}function O(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function A(t,e,a,i){if(t){a=a||document;do{if(null!=e&&(">"===e[0]?t.parentNode===a&&$(t,e):$(t,e))||i&&t===a)return t;if(t===a)break}while(t=O(t))}return null}var T,M=/\s+/g;function L(t,e,a){if(t&&e)if(t.classList)t.classList[a?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(M," ").replace(" "+e+" "," ");t.className=(i+(a?" "+e:"")).replace(M," ")}}function D(t,e,a){var i=t&&t.style;if(i){if(void 0===a)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(a=t.currentStyle),void 0===e?a:a[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=a+("string"===typeof a?"":"px")}}function E(t,e){var a="";if("string"===typeof t)a=t;else do{var i=D(t,"transform");i&&"none"!==i&&(a=i+" "+a)}while(!e&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(a)}function j(t,e,a){if(t){var i=t.getElementsByTagName(e),n=0,r=i.length;if(a)for(;n=r:n<=r,!o)return i;if(i===B())break;i=U(i,!1)}return!1}function P(t,e,a,i){var n=0,r=0,o=t.children;while(r2&&void 0!==arguments[2]?arguments[2]:{},i=a.evt,r=c(a,lt);ot.pluginEvent.bind(ie)(t,e,n({dragEl:dt,parentEl:ft,ghostEl:mt,rootEl:ht,nextEl:pt,lastDownEl:vt,cloneEl:gt,cloneHidden:_t,dragStarted:Mt,putSortable:kt,activeSortable:ie.active,originalEvent:i,oldIndex:bt,oldDraggableIndex:xt,newIndex:yt,newDraggableIndex:wt,hideGhostForTarget:Qt,unhideGhostForTarget:te,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(t){ut({sortable:e,name:t,originalEvent:i})}},r))};function ut(t){st(n({putSortable:kt,cloneEl:gt,targetEl:dt,rootEl:ht,oldIndex:bt,oldDraggableIndex:xt,newIndex:yt,newDraggableIndex:wt},t))}var dt,ft,mt,ht,pt,vt,gt,_t,bt,yt,xt,wt,Vt,kt,Ct,St,$t,Ot,At,Tt,Mt,Lt,Dt,Et,jt,Bt=!1,Ft=!1,It=[],Pt=!1,zt=!1,Nt=[],Rt=!1,Wt=[],Ut="undefined"!==typeof document,qt=w,Gt=b||_?"cssFloat":"float",Ht=Ut&&!V&&!w&&"draggable"in document.createElement("div"),Xt=function(){if(Ut){if(_)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Yt=function(t,e){var a=D(t),i=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),n=P(t,0,e),r=P(t,1,e),o=n&&D(n),s=r&&D(r),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+F(n).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+F(r).width;if("flex"===a.display)return"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal";if("grid"===a.display)return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&o["float"]&&"none"!==o["float"]){var u="left"===o["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return n&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=i&&"none"===a[Gt]||r&&"none"===a[Gt]&&l+c>i)?"vertical":"horizontal"},Kt=function(t,e,a){var i=a?t.left:t.top,n=a?t.right:t.bottom,r=a?t.width:t.height,o=a?e.left:e.top,s=a?e.right:e.bottom,l=a?e.width:e.height;return i===o||n===s||i+r/2===o+l/2},Jt=function(t,e){var a;return It.some((function(i){var n=i[tt].options.emptyInsertThreshold;if(n&&!z(i)){var r=F(i),o=t>=r.left-n&&t<=r.right+n,s=e>=r.top-n&&e<=r.bottom+n;return o&&s?a=i:void 0}})),a},Zt=function(t){function e(t,a){return function(i,n,r,o){var s=i.options.group.name&&n.options.group.name&&i.options.group.name===n.options.group.name;if(null==t&&(a||s))return!0;if(null==t||!1===t)return!1;if(a&&"clone"===t)return t;if("function"===typeof t)return e(t(i,n,r,o),a)(i,n,r,o);var l=(a?i:n).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var a={},i=t.group;i&&"object"==r(i)||(i={name:i}),a.name=i.name,a.checkPull=e(i.pull,!0),a.checkPut=e(i.put),a.revertClone=i.revertClone,t.group=a},Qt=function(){!Xt&&mt&&D(mt,"display","none")},te=function(){!Xt&&mt&&D(mt,"display","")};Ut&&!V&&document.addEventListener("click",(function(t){if(Ft)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ft=!1,!1}),!0);var ee=function(t){if(dt){t=t.touches?t.touches[0]:t;var e=Jt(t.clientX,t.clientY);if(e){var a={};for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);a.target=a.rootEl=e,a.preventDefault=void 0,a.stopPropagation=void 0,e[tt]._onDragOver(a)}}},ae=function(t){dt&&dt.parentNode[tt]._isOutsideThisEl(t.target)};function ie(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=s({},e),t[tt]=this;var a={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 Yt(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!==ie.supportPointer&&"PointerEvent"in window&&(!x||w),emptyInsertThreshold:5};for(var i in ot.initializePlugins(this,t,a),a)!(i in e)&&(e[i]=a[i]);for(var n in Zt(e),this)"_"===n.charAt(0)&&"function"===typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!e.forceFallback&&Ht,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(t,"pointerdown",this._onTapStart):(C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),It.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),s(this,et())}function ne(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function re(t,e,a,i,n,r,o,s){var l,c,u=t[tt],d=u.options.onMove;return!window.CustomEvent||_||b?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=a,l.draggedRect=i,l.related=n||e,l.relatedRect=r||F(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),d&&(c=d.call(u,l,o)),c}function oe(t){t.draggable=!1}function se(){Rt=!1}function le(t,e,a){var i=F(P(a.el,0,a.options,!0)),n=Q(a.el,a.options,mt),r=10;return e?t.clientXn.right+r||t.clientY>i.bottom&&t.clientX>i.left:t.clientY>n.bottom+r||t.clientX>i.right&&t.clientY>i.top}function ue(t,e,a,i,n,r,o,s){var l=i?t.clientY:t.clientX,c=i?a.height:a.width,u=i?a.top:a.left,d=i?a.bottom:a.right,f=!1;if(!o)if(s&&Etu+c*r/2:ld-Et)return-Dt}else if(l>u+c*(1-n)/2&&ld-c*r/2)?l>u+c/2?1:-1:0}function de(t){return N(dt)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dt&&oe(dt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"pointerup",this._disableDelayedDrag),S(t,"pointercancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):C(document,e?"touchmove":"mousemove",this._onTouchMove):(C(dt,"dragend",this),C(ht,"dragstart",this._onDragStart));try{document.selection?he((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function(t,e){if(Bt=!1,ht&&dt){ct("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",ae);var a=this.options;!t&&L(dt,a.dragClass,!1),L(dt,a.ghostClass,!0),ie.active=this,t&&this._appendGhost(),ut({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,Qt();var t=document.elementFromPoint(St.clientX,St.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t===e)break;e=t}if(dt.parentNode[tt]._isOutsideThisEl(t),e)do{if(e[tt]){var a=void 0;if(a=e[tt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),a&&!this.options.dragoverBubble)break}t=e}while(e=O(e));te()}},_onTouchMove:function(t){if(Ct){var e=this.options,a=e.fallbackTolerance,i=e.fallbackOffset,n=t.touches?t.touches[0]:t,r=mt&&E(mt,!0),o=mt&&r&&r.a,s=mt&&r&&r.d,l=qt&&jt&&R(jt),c=(n.clientX-Ct.clientX+i.x)/(o||1)+(l?l[0]-Nt[0]:0)/(o||1),u=(n.clientY-Ct.clientY+i.y)/(s||1)+(l?l[1]-Nt[1]:0)/(s||1);if(!ie.active&&!Bt){if(a&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))=0&&(ut({rootEl:ft,name:"add",toEl:ft,fromEl:ht,originalEvent:t}),ut({sortable:this,name:"remove",toEl:ft,originalEvent:t}),ut({rootEl:ft,name:"sort",toEl:ft,fromEl:ht,originalEvent:t}),ut({sortable:this,name:"sort",toEl:ft,originalEvent:t})),kt&&kt.save()):yt!==bt&&yt>=0&&(ut({sortable:this,name:"update",toEl:ft,originalEvent:t}),ut({sortable:this,name:"sort",toEl:ft,originalEvent:t})),ie.active&&(null!=yt&&-1!==yt||(yt=bt,wt=xt),ut({sortable:this,name:"end",toEl:ft,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){ct("nulling",this),ht=dt=ft=mt=pt=gt=vt=_t=Ct=St=Mt=yt=wt=bt=xt=Lt=Dt=kt=Vt=ie.dragged=ie.ghost=ie.clone=ie.active=null,Wt.forEach((function(t){t.checked=!0})),Wt.length=$t=Ot=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":dt&&(this._onDragOver(t),ne(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],a=this.el.children,i=0,n=a.length,r=this.options;i1&&(Pe.forEach((function(t){i.addAnimationState({target:t,rect:Re?F(t):n}),Z(t),t.fromRect=n,e.removeAnimationState(t)})),Re=!1,qe(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(t){var e=t.sortable,a=t.isOwner,i=t.insertion,n=t.activeSortable,r=t.parentEl,o=t.putSortable,s=this.options;if(i){if(a&&n._hideClone(),Ne=!1,s.animation&&Pe.length>1&&(Re||!a&&!n.options.sort&&!o)){var l=F(Be,!1,!0,!0);Pe.forEach((function(t){t!==Be&&(J(t,l),r.appendChild(t))})),Re=!0}if(!a)if(Re||He(),Pe.length>1){var c=Ie;n._showClone(e),n.options.animation&&!Ie&&c&&ze.forEach((function(t){n.addAnimationState({target:t,rect:Fe}),t.fromRect=Fe,t.thisAnimationDuration=null}))}else n._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,a=t.isOwner,i=t.activeSortable;if(Pe.forEach((function(t){t.thisAnimationDuration=null})),i.options.animation&&!a&&i.multiDrag.isMultiDrag){Fe=s({},e);var n=E(Be,!0);Fe.top-=n.f,Fe.left-=n.e}},dragOverAnimationComplete:function(){Re&&(Re=!1,He())},drop:function(t){var e=t.originalEvent,a=t.rootEl,i=t.parentEl,n=t.sortable,r=t.dispatchSortableEvent,o=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=i.children;if(!We)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),L(Be,c.selectedClass,!~Pe.indexOf(Be)),~Pe.indexOf(Be))Pe.splice(Pe.indexOf(Be),1),Ee=null,st({sortable:n,rootEl:a,name:"deselect",targetEl:Be,originalEvent:e});else{if(Pe.push(Be),st({sortable:n,rootEl:a,name:"select",targetEl:Be,originalEvent:e}),e.shiftKey&&Ee&&n.el.contains(Ee)){var d=N(Ee),f=N(Be);~d&&~f&&d!==f&&function(){var t,r;f>d?(r=d,t=f):(r=f,t=d+1);for(var o=c.filter;r1){var m=F(Be),h=N(Be,":not(."+this.options.selectedClass+")");if(!Ne&&c.animation&&(Be.thisAnimationDuration=null),l.captureAnimationState(),!Ne&&(c.animation&&(Be.fromRect=m,Pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==Be){var e=Re?F(t):m;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),He(),Pe.forEach((function(t){u[h]?i.insertBefore(t,u[h]):i.appendChild(t),h++})),o===N(Be))){var p=!1;Pe.forEach((function(t){t.sortableIndex===N(t)||(p=!0)})),p&&(r("update"),r("sort"))}Pe.forEach((function(t){Z(t)})),l.animateAll()}je=l}(a===i||s&&"clone"!==s.lastPutMode)&&ze.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=We=!1,ze.length=0},destroyGlobal:function(){this._deselectMultiDrag(),S(document,"pointerup",this._deselectMultiDrag),S(document,"mouseup",this._deselectMultiDrag),S(document,"touchend",this._deselectMultiDrag),S(document,"keydown",this._checkKeyDown),S(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof We||!We)&&je===this.sortable&&(!t||!A(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Pe.length){var e=Pe[0];L(e,this.options.selectedClass,!1),Pe.shift(),st({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[tt];e&&e.options.multiDrag&&!~Pe.indexOf(t)&&(je&&je!==e&&(je.multiDrag._deselectMultiDrag(),je=e),L(t,e.options.selectedClass,!0),Pe.push(t))},deselect:function(t){var e=t.parentNode[tt],a=Pe.indexOf(t);e&&e.options.multiDrag&&~a&&(L(t,e.options.selectedClass,!1),Pe.splice(a,1))}},eventProperties:function(){var t=this,e=[],a=[];return Pe.forEach((function(i){var n;e.push({multiDragElement:i,index:i.sortableIndex}),n=Re&&i!==Be?-1:Re?N(i,":not(."+t.options.selectedClass+")"):N(i),a.push({multiDragElement:i,index:n})})),{items:u(Pe),clones:[].concat(ze),oldIndicies:e,newIndicies:a}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function qe(t,e){Pe.forEach((function(a,i){var n=e.children[a.sortableIndex+(t?Number(i):0)];n?e.insertBefore(a,n):e.appendChild(a)}))}function Ge(t,e){ze.forEach((function(a,i){var n=e.children[a.sortableIndex+(t?Number(i):0)];n?e.insertBefore(a,n):e.appendChild(a)}))}function He(){Pe.forEach((function(t){t!==Be&&t.parentNode&&t.parentNode.removeChild(t)}))}ie.mount(new ke),ie.mount(Me,Te),e["default"]=ie},b1fb:function(t,e,a){},b268:function(t,e,a){"use strict";a("205c")},b63c:function(t,e,a){},ba4e:function(t,e,a){"use strict";a("6484")},bed5:function(t,e,a){"use strict";a("b63c")},c541:function(t,e,a){"use strict";a("ce13")},ce13:function(t,e,a){},d6e9:function(t,e,a){},d8ad:function(t,e,a){"use strict";var i=a("2b0e");e["a"]=new i["default"]},eb0b:function(t,e,a){},fa07:function(t,e,a){}}]);