(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-094cd915"],{"014b":function(t,e,i){"use strict";function r(t){var e=W[t]=k(P[I]);return e._k=t,e}function n(t,e){S(t);for(var i,r=y(e=$(e)),n=0,o=r.length;n<o;)Z(t,i=r[n++],e[i]);return t}function o(t){var e=U.call(this,t=O(t,!0));return!(this===V&&c(W,t)&&!c(J,t))&&(!(e||!c(this,t)||!c(W,t)||c(this,B)&&this[B][t])||e)}function s(t,e){if(t=$(t),e=O(e,!0),t!==V||!c(W,e)||c(J,e)){var i=D(t,e);return!i||!c(W,e)||c(t,B)&&t[B][e]||(i.enumerable=!0),i}}var a=i("e53d"),c=i("07e3"),l=i("8e60"),u=i("63b6"),h=i("9138"),_=i("ebfd").KEY,d=i("294c"),f=i("dbdb"),p=i("45f2"),g=i("62a0"),m=i("5168"),b=i("ccb9"),v=i("6718"),y=i("47ee"),w=i("9003"),S=i("e4ae"),C=i("f772"),x=i("241e"),$=i("36c3"),O=i("1bc3"),z=i("aebd"),k=i("a159"),E=i("0395"),R=i("bf0b"),A=i("9aa9"),L=i("d9f6"),M=i("c3a1"),D=R.f,j=L.f,H=E.f,P=a.Symbol,T=a.JSON,N=T&&T.stringify,I="prototype",B=m("_hidden"),F=m("toPrimitive"),U={}.propertyIsEnumerable,X=f("symbol-registry"),W=f("symbols"),J=f("op-symbols"),V=Object[I],G="function"==typeof P&&!!A.f,q=a.QObject,Y=!q||!q[I]||!q[I].findChild,K=l&&d((function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a}))?function(t,e,i){var r=D(V,e);r&&delete V[e],j(t,e,i),r&&t!==V&&j(V,e,r)}:j,Q=G&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Z=function(t,e,i){return t===V&&Z(J,e,i),S(t),e=O(e,!0),S(i),c(W,e)?(i.enumerable?(c(t,B)&&t[B][e]&&(t[B][e]=!1),i=k(i,{enumerable:z(0,!1)})):(c(t,B)||j(t,B,z(1,{})),t[B][e]=!0),K(t,e,i)):j(t,e,i)};f=function(t){for(var e,i=H($(t)),r=[],n=0;i.length>n;)c(W,e=i[n++])||e==B||e==_||r.push(e);return r},q=function(t){for(var e,i=t===V,r=H(i?J:$(t)),n=[],o=0;r.length>o;)!c(W,e=r[o++])||i&&!c(V,e)||n.push(W[e]);return n};G||(h((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=g(0<arguments.length?arguments[0]:void 0),e=function(i){this===V&&e.call(J,i),c(this,B)&&c(this[B],t)&&(this[B][t]=!1),K(this,t,z(1,i))};return l&&Y&&K(V,t,{configurable:!0,set:e}),r(t)})[I],"toString",(function(){return this._k})),R.f=s,L.f=Z,i("6abf").f=E.f=f,i("355d").f=o,A.f=q,l&&!i("b8e3")&&h(V,"propertyIsEnumerable",o,!0),b.f=function(t){return r(m(t))}),u(u.G+u.W+u.F*!G,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)m(tt[et++]);for(var it=M(m.store),rt=0;it.length>rt;)v(it[rt++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return c(X,t+="")?X[t]:X[t]=P(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in X)if(X[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!G,"Object",{create:function(t,e){return void 0===e?k(t):n(k(t),e)},defineProperty:Z,defineProperties:n,getOwnPropertyDescriptor:s,getOwnPropertyNames:f,getOwnPropertySymbols:q}),q=d((function(){A.f(1)})),u(u.S+u.F*q,"Object",{getOwnPropertySymbols:function(t){return A.f(x(t))}}),T&&u(u.S+u.F*(!G||d((function(){var t=P();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,r=[t],n=1;n<arguments.length;)r.push(arguments[n++]);if(i=e=r[1],(C(e)||void 0!==t)&&!Q(t))return w(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Q(e))return e}),r[1]=e,N.apply(T,r)}}),P[I][F]||i("35e8")(P[I],F,P[I].valueOf),p(P,"Symbol"),p(Math,"Math",!0),p(a.JSON,"JSON",!0)},"0395":function(t,e,i){var r=i("36c3"),n=i("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return n(t)}catch(t){return s.slice()}}(t):n(r(t))}},"08df":function(t,e,i){"use strict";i("0eb9")},"0eb9":function(t,e,i){},"1af6":function(t,e,i){var r=i("63b6");r(r.S,"Array",{isArray:i("9003")})},"20fd":function(t,e,i){"use strict";var r=i("d9f6"),n=i("aebd");t.exports=function(t,e,i){e in t?r.f(t,e,n(0,i)):t[e]=i}},"2f21":function(t,e,i){"use strict";var r=i("79e5");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"3c35":function(t,e){(function(e){t.exports=e}).call(this,{})},"47ee":function(t,e,i){var r=i("c3a1"),n=i("9aa9"),o=i("355d");t.exports=function(t){var e=r(t),i=n.f;if(i)for(var s,a=i(t),c=o.f,l=0;a.length>l;)c.call(t,s=a[l++])&&e.push(s);return e}},"504c":function(t,e,i){var r=i("9e1e"),n=i("0d58"),o=i("6821"),s=i("52a7").f;t.exports=function(t){return function(e){for(var i,a=o(e),c=n(a),l=c.length,u=0,h=[];u<l;)i=c[u++],r&&!s.call(a,i)||h.push(t?[i,a[i]]:a[i]);return h}}},"549b":function(t,e,i){"use strict";var r=i("d864"),n=i("63b6"),o=i("241e"),s=i("b0dc"),a=i("3702"),c=i("b447"),l=i("20fd"),u=i("7cd6");n(n.S+n.F*!i("4ee1")((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,n,h,_=o(t),d="function"==typeof this?this:Array,f=arguments.length,p=1<f?arguments[1]:void 0,g=void 0!==p,m=0;t=u(_);if(g&&(p=r(p,2<f?arguments[2]:void 0,2)),null==t||d==Array&&a(t))for(i=new d(e=c(_.length));m<e;m++)l(i,m,g?p(_[m],m):_[m]);else for(h=t.call(_),i=new d;!(n=h.next()).done;m++)l(i,m,g?s(h,p,[n.value,m],!0):n.value);return i.length=m,i}})},"55dd":function(t,e,i){"use strict";var r=i("5ca1"),n=i("d8e8"),o=i("4bf8"),s=i("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!i("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),n(t))}})},"5d58":function(t,e,i){t.exports=i("d8d6")},6718:function(t,e,i){var r=i("e53d"),n=i("584a"),o=i("b8e3"),s=i("ccb9"),a=i("d9f6").f;t.exports=function(t){var e=n.Symbol||(n.Symbol=!o&&r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},"67bb":function(t,e,i){t.exports=i("f921")},"69d3":function(t,e,i){i("6718")("asyncIterator")},"6abf":function(t,e,i){var r=i("e6f3"),n=i("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,n)}},7618:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));e=i("67bb");var r=i.n(e),n=(e=i("5d58"),i.n(e));function o(t){return(o="function"==typeof r.a&&"symbol"==typeof n.a?function(t){return typeof t}:function(t){return t&&"function"==typeof r.a&&t.constructor===r.a&&t!==r.a.prototype?"symbol":typeof t})(t)}},"765d":function(t,e,i){i("6718")("observable")},"774e":function(t,e,i){t.exports=i("d2d5")},8237:function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;
/**
 * [js-md5]{@link https://github.com/emn178/js-md5}
 *
 * @namespace md5
 * @version 0.7.3
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8,buffer,buffer8,blocks;ARRAY_BUFFER&&(buffer=new ArrayBuffer(68),buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)),!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");(t=NODE_JS?nodeWrap(t):t).create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var i=OUTPUT_TYPES[e];t[i]=createOutputMethod(i)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null==t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};function Md5(t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8):ARRAY_BUFFER?(t=new ArrayBuffer(68),this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!=i){if("object"!=i)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw ERROR;e=!0}for(var r,n,o=0,s=t.length,a=this.blocks,c=this.buffer8;o<s;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)if(ARRAY_BUFFER)for(n=this.start;o<s&&n<64;++o)c[n++]=t[o];else for(n=this.start;o<s&&n<64;++o)a[n>>2]|=t[o]<<SHIFT[3&n++];else if(ARRAY_BUFFER)for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?c[n++]=r:(r<2048?c[n++]=192|r>>6:(r<55296||57344<=r?c[n++]=224|r>>12:(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),c[n++]=240|r>>18,c[n++]=128|r>>12&63),c[n++]=128|r>>6&63),c[n++]=128|63&r);else for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?a[n>>2]|=r<<SHIFT[3&n++]:(r<2048?a[n>>2]|=(192|r>>6)<<SHIFT[3&n++]:(r<55296||57344<=r?a[n>>2]|=(224|r>>12)<<SHIFT[3&n++]:(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),a[n>>2]|=(240|r>>18)<<SHIFT[3&n++],a[n>>2]|=(128|r>>12&63)<<SHIFT[3&n++]),a[n>>2]|=(128|r>>6&63)<<SHIFT[3&n++]),a[n>>2]|=(128|63&r)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){var t,e;this.finalized||(this.finalized=!0,(t=this.blocks)[(e=this.lastByteIndex)>>2]|=EXTRA[3&e],56<=e&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash())},Md5.prototype.hash=function(){var t,e,i,r,n,o=this.blocks,s=this.first?((s=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879<<0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+o[1]-117830708)<<12|i>>>20)+t<<0)&(-271733879^t))+o[2]-1126478375)<<17|e>>>15)+i<<0)&(i^t))+o[3]-1316259209)<<22|s>>>10)+e<<0:(t=this.h0,s=this.h1,e=this.h2,((s+=((t=((t+=((i=this.h3)^s&(e^i))+o[0]-680876936)<<7|t>>>25)+s<<0)^(e=((e+=(s^(i=((i+=(e^t&(s^e))+o[1]-389564586)<<12|i>>>20)+t<<0)&(t^s))+o[2]+606105819)<<17|e>>>15)+i<<0)&(i^t))+o[3]-1044525330)<<22|s>>>10)+e<<0);s=((s+=((t=((t+=(i^s&(e^i))+o[4]-176418897)<<7|t>>>25)+s<<0)^(e=((e+=(s^(i=((i+=(e^t&(s^e))+o[5]+1200080426)<<12|i>>>20)+t<<0)&(t^s))+o[6]-1473231341)<<17|e>>>15)+i<<0)&(i^t))+o[7]-45705983)<<22|s>>>10)+e<<0,s=((s+=((t=((t+=(i^s&(e^i))+o[8]+1770035416)<<7|t>>>25)+s<<0)^(e=((e+=(s^(i=((i+=(e^t&(s^e))+o[9]-1958414417)<<12|i>>>20)+t<<0)&(t^s))+o[10]-42063)<<17|e>>>15)+i<<0)&(i^t))+o[11]-1990404162)<<22|s>>>10)+e<<0,s=((s+=((t=((t+=(i^s&(e^i))+o[12]+1804603682)<<7|t>>>25)+s<<0)^(e=((e+=(s^(i=((i+=(e^t&(s^e))+o[13]-40341101)<<12|i>>>20)+t<<0)&(t^s))+o[14]-1502002290)<<17|e>>>15)+i<<0)&(i^t))+o[15]+1236535329)<<22|s>>>10)+e<<0,s=((s+=((i=((i+=(s^e&((t=((t+=(e^i&(s^e))+o[1]-165796510)<<5|t>>>27)+s<<0)^s))+o[6]-1069501632)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^s&(i^t))+o[11]+643717713)<<14|e>>>18)+i<<0)^i))+o[0]-373897302)<<20|s>>>12)+e<<0,s=((s+=((i=((i+=(s^e&((t=((t+=(e^i&(s^e))+o[5]-701558691)<<5|t>>>27)+s<<0)^s))+o[10]+38016083)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^s&(i^t))+o[15]-660478335)<<14|e>>>18)+i<<0)^i))+o[4]-405537848)<<20|s>>>12)+e<<0,s=((s+=((i=((i+=(s^e&((t=((t+=(e^i&(s^e))+o[9]+568446438)<<5|t>>>27)+s<<0)^s))+o[14]-1019803690)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^s&(i^t))+o[3]-187363961)<<14|e>>>18)+i<<0)^i))+o[8]+1163531501)<<20|s>>>12)+e<<0,s=((s+=((i=((i+=(s^e&((t=((t+=(e^i&(s^e))+o[13]-1444681467)<<5|t>>>27)+s<<0)^s))+o[2]-51403784)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^s&(i^t))+o[7]+1735328473)<<14|e>>>18)+i<<0)^i))+o[12]-1926607734)<<20|s>>>12)+e<<0,s=((s+=((n=(i=((i+=((r=s^e)^(t=((t+=(r^i)+o[5]-378558)<<4|t>>>28)+s<<0))+o[8]-2022574463)<<11|i>>>21)+t<<0)^t)^(e=((e+=(n^s)+o[11]+1839030562)<<16|e>>>16)+i<<0))+o[14]-35309556)<<23|s>>>9)+e<<0,s=((s+=((n=(i=((i+=((r=s^e)^(t=((t+=(r^i)+o[1]-1530992060)<<4|t>>>28)+s<<0))+o[4]+1272893353)<<11|i>>>21)+t<<0)^t)^(e=((e+=(n^s)+o[7]-155497632)<<16|e>>>16)+i<<0))+o[10]-1094730640)<<23|s>>>9)+e<<0,s=((s+=((n=(i=((i+=((r=s^e)^(t=((t+=(r^i)+o[13]+681279174)<<4|t>>>28)+s<<0))+o[0]-358537222)<<11|i>>>21)+t<<0)^t)^(e=((e+=(n^s)+o[3]-722521979)<<16|e>>>16)+i<<0))+o[6]+76029189)<<23|s>>>9)+e<<0,s=((s+=((n=(i=((i+=((r=s^e)^(t=((t+=(r^i)+o[9]-640364487)<<4|t>>>28)+s<<0))+o[12]-421815835)<<11|i>>>21)+t<<0)^t)^(e=((e+=(n^s)+o[15]+530742520)<<16|e>>>16)+i<<0))+o[2]-995338651)<<23|s>>>9)+e<<0,s=((s+=((i=((i+=(s^((t=((t+=(e^(s|~i))+o[0]-198630844)<<6|t>>>26)+s<<0)|~e))+o[7]+1126891415)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~s))+o[14]-1416354905)<<15|e>>>17)+i<<0)|~t))+o[5]-57434055)<<21|s>>>11)+e<<0,s=((s+=((i=((i+=(s^((t=((t+=(e^(s|~i))+o[12]+1700485571)<<6|t>>>26)+s<<0)|~e))+o[3]-1894986606)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~s))+o[10]-1051523)<<15|e>>>17)+i<<0)|~t))+o[1]-2054922799)<<21|s>>>11)+e<<0,s=((s+=((i=((i+=(s^((t=((t+=(e^(s|~i))+o[8]+1873313359)<<6|t>>>26)+s<<0)|~e))+o[15]-30611744)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~s))+o[6]-1560198380)<<15|e>>>17)+i<<0)|~t))+o[13]+1309151649)<<21|s>>>11)+e<<0,s=((s+=((i=((i+=(s^((t=((t+=(e^(s|~i))+o[4]-145523070)<<6|t>>>26)+s<<0)|~e))+o[11]-1120210379)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~s))+o[2]+718787259)<<15|e>>>17)+i<<0)|~t))+o[9]-343485551)<<21|s>>>11)+e<<0,this.first?(this.h0=t+1732584193<<0,this.h1=s-271733879<<0,this.h2=e-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+s<<0,this.h2=this.h2+e<<0,this.h3=this.h3+i<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,r=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,r=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,i,r="",n=this.array(),o=0;o<15;)t=n[o++],e=n[o++],i=n[o++],r+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|i>>>6)]+BASE64_ENCODE_CHAR[63&i];return t=n[o],r+(BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"==")};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__("f28c"),__webpack_require__("c8ba"))},9003:function(t,e,i){var r=i("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},a481:function(t,e,i){"use strict";var r=i("cb7c"),n=i("4bf8"),o=i("9def"),s=i("4588"),a=i("0390"),c=i("5f1b"),l=Math.max,u=Math.min,h=Math.floor,_=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;i("214f")("replace",2,(function(t,e,i,f){return[function(r,n){var o=t(this),s=null==r?void 0:r[e];return void 0!==s?s.call(r,o,n):i.call(String(o),r,n)},function(t,e){var p=f(i,t,this,e);if(p.done)return p.value;var g=r(t),m=String(this),b="function"==typeof e;b||(e=String(e));var v,y=g.global;y&&(v=g.unicode,g.lastIndex=0);for(var w=[];;){if(null===(O=c(g,m)))break;if(w.push(O),!y)break;""===String(O[0])&&(g.lastIndex=a(m,o(g.lastIndex),v))}for(var S,C="",x=0,$=0;$<w.length;$++){for(var O=w[$],z=String(O[0]),k=l(u(s(O.index),m.length),0),E=[],R=1;R<O.length;R++)E.push(void 0===(S=O[R])?S:String(S));var A,L=O.groups;L=b?(A=[z].concat(E,k,m),void 0!==L&&A.push(L),String(e.apply(void 0,A))):function(t,e,r,o,s,a){var c=r+t.length,l=o.length,u=d;return void 0!==s&&(s=n(s),u=_),i.call(a,u,(function(i,n){var a;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":a=s[n.slice(1,-1)];break;default:var u=+n;if(0==u)return i;if(l<u){var _=h(u/10);return 0===_?i:_<=l?void 0===o[_-1]?n.charAt(1):o[_-1]+n.charAt(1):i}a=o[u-1]}return void 0===a?"":a}))}(z,m,k,E,L,e);x<=k&&(C+=m.slice(x,k)+L,x=k+z.length)}return C+m.slice(x)}]}))},a745:function(t,e,i){t.exports=i("f410")},bcda:function(t,e,i){"use strict";i.r(e),i("8e6e");var r=i("bd86"),n=(i("456d"),i("55dd"),i("a481"),i("6b54"),i("7618")),o=(i("96cf"),i("3b8d")),s=i("a745"),a=i.n(s),c=i("67bb"),l=i.n(c),u=i("5d58"),h=i.n(u),_=i("e630");function d(t,e){return function(t){if(a()(t))return t}(t)||function(t,e){var i=null==t?null:void 0!==l.a&&t[h.a]||t["@@iterator"];if(null!=i){var r,n,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(r=i.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(t){a=!0,n=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw n}}return o}}(t,e)||Object(_.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}i("ffc1"),i("7f7f"),i("6762"),i("2fdb"),i("ac6a"),i("c5f6"),i("28a5");var f=i("8237"),p=i.n(f);s=i("2f62");function g(t,e){var i,r=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)),r}function m(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?g(Object(i),!0).forEach((function(e){Object(r.a)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}c={data:function(){return{result:{},resultDialog:!1,carouselIndex:""}},methods:{toggleShow:function(){this.reverseOptimizationDialog=!(0<arguments.length&&void 0!==arguments[0])||arguments[0]},startOptimize:(b=Object(o.a)(regeneratorRuntime.mark((function t(e,i){var r,n,o,s=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.result={},this.resultDialog=!0,r=regeneratorRuntime.mark((function t(r,n){var o,a,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.$store.commit("setGlobalLoading",!0),a=i[r][0],o=a.code+"/"+a.name+"/"+a.color,s.result[o]=[],t.next=6,s.getRepeadlyResult(e,i[r]);case 6:a=t.sent,c=[],a.forEach((function(t){var e=0,i=0,r={totalCount:0,totalUse:0,parts:[],length:t[0].Length};t.forEach((function(t){var n={};t.PartList.forEach((function(t){t=t.Length+"^&"+t.Part.cut_angle,n[t]?n[t]++:n[t]=1}));var o,s={count:t.Count,utilization:(t.Length-t.LeftLength)/t.Length*100,left:t.LeftLength,parts:[]};for(o in n){var a=o.split("^&");s.parts.push({length:a[0],count:n[o],cut_angle:a[1]})}r.parts.push(s),r.totalCount+=t.Count,e+=t.Count,r.totalUse+=t.Count*(t.Length-t.LeftLength),i+=t.Count*(t.Length-t.LeftLength)})),r.utilization=i/(e*t[0].Length)*100,c.push(r)})),s.$delete(s.result,o),s.$set(s.result,o,c.sort((function(t,e){return e.utilization-t.utilization}))),s.$nextTick((function(){document.querySelectorAll(".reverse-optimise-result-item")[r].scrollIntoView({behavior:"smooth"})}));case 12:case"end":return t.stop()}}),t)})),n=0,o=i.length;case 5:if(n<o)return t.delegateYield(r(n,o),"t0",7);t.next=10;break;case 7:n++,t.next=5;break;case 10:this.$store.commit("setGlobalLoading",!1);case 11:case"end":return t.stop()}}),t,this)}))),function(t,e){return b.apply(this,arguments)}),getRepeadlyResult:function(t,e){var i=this;e=m(m({},t),{},{data:e});return this.$axios.post("optimize1d-test",e).then((function(t){return t.code?t.data:(i.$VMessage.error(i.$t("server_message."+t.message)),[])})).catch((function(t){return i.$store.commit("setGlobalLoading",!1),i.$VMessage.info(i.$t("alertmessage.interface_error")),[]}))},formatResult:function(t){},changeCarousel:function(t){}},computed:m({},Object(s.b)(["getLenUnit"]))},i("fdd8"),u=i("2877"),f=Object(u.a)(c,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"interval-optimize-container"},[i("comm-dialog",{attrs:{visible:t.resultDialog,width:"1200","cancel-btn":!1,"confirm-btn":!1},on:{close:function(e){t.resultDialog=!1}},scopedSlots:t._u([{key:"content",fn:function(){return[i("v-row",t._l(t.result,(function(e,r){return i("v-col",{key:r,staticClass:"reverse-optimise-result-item",attrs:{cols:"12",md:4,sm:6}},[e.length?i("table",{staticClass:"table carousel-table text-center",staticStyle:{width:"100%"},attrs:{border:"1"}},[i("thead",[i("tr",[i("th",{staticStyle:{width:"50%"}},[t._v(t._s(t.$t("windoor.code"))+"/"+t._s(t.$t("windoor.name"))+"/"+t._s(t.$t("windoor.color")))]),i("th",{},[t._v(t._s(t.$t("windoor.count")))]),i("th",{},[t._v(t._s(t.$t("order_list.utilization")))])])]),i("tbody",{},[t._l(e,(function(n,o){return i("tr",{key:o,class:{"first-line":!o}},[o?t._e():i("td",{staticClass:"text-center",attrs:{rowspan:e.length}},[t._v(t._s(r))]),i("td",{staticClass:"text-center"},[i("span",{},[t._v(t._s(n.length)+"="+t._s(n.totalCount)+" ")])]),i("td",{staticClass:"text-center"},[i("span",[t._v(t._s(t._f("fixed2")(n.utilization))+"%")])])])})),i("tr",{staticClass:"space-tr"})],2),i("tbody",{staticClass:"space-tbody"},[i("tr")])]):t._e()])})),1)]},proxy:!0}])})],1)}),[],!1,null,"b5cfcd80",null).exports;var b,v=i("4b53");c=i("b76a"),c=i.n(c);function y(t,e){var i,r=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)),r}function w(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){Object(r.a)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var S,C,x,$;c={name:"order-cut-optimizer",data:function(){return{order_bar_list:[],basic_bar_list:[],result:[],loading:!1,panel_height:document.documentElement.clientHeight-52-24-60,order_ids:[],config_dialog:!1,config:{bar_length:"6000",side_waste:0,cut_waste:0,optimize_with_info:1,ignore_shaped_profile:0,min_useful_length:""},config_copy:{},config_cache:{},surplusDialog:!1,basic_bar_surplus:{},target_basic:"",profileExceedDialog:!1,runType:1,selected_basic_index:"",reverseOptimizationDialog:!1,reverseSetting:{start:"",end:"",bc:100},reverseStepList:[100,200,500],productList:[],choosedProduct:[],orderPropMap:{},optimizeRuleDialog:!1,ruleTipType:1,restInfo:{buyTimes:0,freeTimes:0},purchaseId:1002,lengthMap:{},resultType:1,maxStockLength:0,anglePosMap:{0:"start",1:"end"},dragTarget:0,dragIndex:-1}},methods:{getOrderBarList:function(){var t=this,e=this.$route.query.target||"",i=e.split(",");this.$axios.post("/contract_bars",{id:this.$route.query.contract_ids,order_ids:e}).then((function(r){var n;r.data=r.data.filter((function(t){return Number(t.length)&&t.is_optimize&&(!e||-1<i.indexOf(t.order_id+""))})),r.data.forEach((function(e){t.order_ids.includes(e.order_id)||t.order_ids.push(e.order_id)})),t.sumOrderBar(r.data),t.sumBasicBar(r.data),t.setOptmizeByConfig(),"import"==t.$route.query.optimized&&(n=JSON.parse(localStorage.getItem("optimizedJson")),t.result=[],t.config.optimize_with_info&&(t.lengthMap={},t.setLengthMap()),t.basic_bar_list.forEach((function(e,i){var r=n.filter((function(t){return!(t.StockData.Name!=e.name&&null!=t.StockData.Name&&""!=t.StockData.Name||t.StockData.Code!=e.code&&null!=t.StockData.Code&&""!=t.StockData.Code||t.StockData.Color!=e.color&&null!=t.StockData.Color&&""!=t.StockData.Color)}));r.length&&(t.config.optimize_with_info?t.combineWindowInfo(r,e):t.pushResult(r,i))})))}))},sumOrderBar:function(t){var e=this;this.order_bar_list=[];var i,r={};for(i in t.forEach((function(t){var i=t.order_bar_hole.length?t.order_bar_hole[0].id:0,n="".concat(t.code,"||").concat(t.name,"||").concat(t.color,"||").concat(t.length,"||").concat(t.angle_one,"||").concat(t.angle_two,"||").concat(t.order_id,"||").concat(t.meter_weight,"||").concat(t.size_type,"||").concat(t.window_no,"||").concat(t.bar_height,"||").concat(t.bar_width,"||").concat(i);r[n]?r[n].count+=t.count:r[n]={count:t.count,product_name:t.product_name,bar_hole_id:i},e.productList.includes(t.product_name)||(e.productList.push(t.product_name),e.choosedProduct.push(t.product_name)),e.orderPropMap[t.order_id]||(e.orderPropMap[t.order_id]={window_no:t.window_no})})),r){var n=i.split("||");this.order_bar_list.push({code:n[0],name:n[1],color:n[2],length:Number(n[3]),angle:"".concat(n[4],"-").concat(n[5]),angle_one:"".concat(n[4]),angle_two:"".concat(n[5]),count:r[i].count,oriCount:r[i].count,order_id:n[6],meter_weight:n[7],size_type:n[8],window_no:n[9],bar_height:n[10],bar_width:n[11],product_name:r[i].product_name,bar_hole_id:r[i].bar_hole_id,valid:!0,isOptmize:!0})}},sumBasicBar:function(t){this.basic_bar_list=[];var e,i={},r=[];for(e in t.forEach((function(t){var e="".concat(t.code,"||").concat(t.color);i[e]?i[e].minLength<t.length&&(i[e].minLength=t.length):(i[e]={},i[e].name=t.name,i[e].minLength=t.length,i[e].meter_weight=t.meter_weight,i[e].product_name=t.product_name,i[e].sub_bar=t.sub_bar,r.push({bom_code:t.code,color:t.color}))})),i){var n=e.split("||");this.basic_bar_list.push({code:n[0],name:i[e].name,color:n[1],length:this.config.bar_length,minLength:i[e].minLength,meter_weight:i[e].meter_weight,product_name:i[e].product_name,sub_bar:i[e].sub_bar,valid:!0,isOptmize:!0}),this.$set(this.basic_bar_surplus,n[0]+"/"+n[1],[])}this.canUseModule("warehouse")&&this.getSurplus(r)},getSurplus:function(t){var e=this;t={bom_codes:t};return this.$store.commit("setGlobalLoading",!0),this.$axios.post("left_length_by_bom_code",t).then((function(t){e.$store.commit("setGlobalLoading",!1),1==t.code?t.data.forEach((function(t,i){t.bom_code,t.color;var r=JSON.parse(t.left_length)||{},n="";Object.entries(r).map((function(t){var e=d(t,2);t=e[0],e=e[1];n+=","+[t,e].join(":")})),t.length&&(e.basic_bar_list[i].length=t.length),n&&(e.basic_bar_list[i].length+=n)})):e.$VMessage.error(e.$t("alertmessage.failed_list"))})).catch((function(t){e.$store.commit("setGlobalLoading",!1),e.$VMessage.error(e.$t("alertmessage.failed_list"))}))},run:($=Object(o.a)(regeneratorRuntime.mark((function t(){var e,i,r,o,s,a,c,l,u,h,_,d=this,f=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=0<f.length&&void 0!==f[0]&&f[0],this.order_bar_list.length){t.next=4;break}return this.$VMessage.error(this.$t("order_list.optimization_warning2")),t.abrupt("return");case 4:if(this.result=[],this.$store.commit("setGlobalLoading",!0),this.checkBefore()){t.next=9;break}return this.$store.commit("setGlobalLoading",!1),t.abrupt("return");case 9:i={LinearPartData:[],LinearStockData:[],Remnant:this.config.side_waste,SawWidth:this.config.cut_waste},r=[],o=this.basic_bar_list.filter((function(t){return t.isOptmize&&t.valid})),s=function(t,n){var s=o[t],a=(t=d.order_bar_list.filter((function(t){return t.code==s.code&&t.color==s.color&&t.isOptmize&&t.valid})),[]);return s.length.toString().split(/[, ，]/).forEach((function(t){t=t.replace("：",":").split(":"),a.unshift({length:Number(t[0])||0,count:t[1]||0,price:0,name:s.name,code:s.code,color:s.color,meter_weight:s.meter_weight})})),t=d.getBarCopy(t,d.runType),e?(i.LinearPartData=i.LinearPartData.concat(t),i.LinearStockData=i.LinearStockData.concat(a),"continue"):100<d.$route.query.count?(d.profileExceedDialog=!0,d.$store.commit("setGlobalLoading",!1),{v:void 0}):void r.push({data:t,stock:a})},a=0,c=o.length;case 14:if(!(a<c)){t.next=23;break}if("continue"===(l=s(a,c)))return t.abrupt("continue",20);t.next=18;break;case 18:if("object"===Object(n.a)(l))return t.abrupt("return",l.v);t.next=20;break;case 20:a++,t.next=14;break;case 23:if(1==this.runType)return t.next=26,this.cutOptimizer(r);t.next=32;break;case 26:t.sent.forEach((function(t,e){d.config.optimize_with_info?d.combineWindowInfo(t,o[e]):d.pushResult(t,e),d.result[e].code=o[e].code,d.result[e].name=o[e].name,d.result[e].color=o[e].color})),this.$nextTick((function(){document.querySelector(".result-bar").scrollIntoView({behavior:"smooth"})})),this.result.forEach((function(t){t.result_bars.forEach((function(t){t.detail=[];for(var e=t.count;0<e;)e--,t.detail.push(t.partList.slice(0))}))})),t.next=39;break;case 32:u=regeneratorRuntime.mark((function t(e,i){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d.cutOptimizer([r[e]]);case 2:n=t.sent,d.reSummaryInfo(n,e),d.$nextTick((function(){document.querySelectorAll(".bar-spec")[e].scrollIntoView({behavior:"smooth"})}));case 5:case"end":return t.stop()}}),t)})),h=0,_=r.length;case 34:if(h<_)return t.delegateYield(u(h,_),"t0",36);t.next=39;break;case 36:h++,t.next=34;break;case 39:return this.config_cache={side_waste:Number(this.config.side_waste),cut_waste:Number(this.config.cut_waste),optimize_with_info:Number(this.config.optimize_with_info)},this.$store.commit("setGlobalLoading",!1),t.abrupt("return",i);case 42:case"end":return t.stop()}}),t,this)}))),function(){return $.apply(this,arguments)}),checkBefore:function(){var t=this;this.lengthMap={};for(var e=0,i=this.basic_bar_list.length;e<i;e++){var r=function(e){var i=t.basic_bar_list[e];return i.valid&&i.isOptmize?i.length<i.minLength+2*t.config.side_waste?(t.$store.commit("setGlobalLoading",!1),t.$VMessage.error("".concat(i.name,"的计算结果").concat(i.minLength+2*t.config.side_waste,"大于原料长度")),{v:!1}):(e=t.order_bar_list.filter((function(t){return t.code==i.code&&t.color==i.color&&t.isOptmize})),e.length?(e.forEach((function(e){var i=e.code+"/"+e.color,r=e.length,n="".concat(e.order_id,"&").concat(e.meter_weight,"&").concat(e.size_type,"&").concat(e.angle,"&").concat(e.bar_height,"&").concat(e.bar_hole_id,"&").concat(e.bar_width);t.lengthMap[i]=t.lengthMap[i]||{},t.lengthMap[i][r]=t.lengthMap[i][r]||{},t.lengthMap[i][r][n]=t.lengthMap[i][r][n]||{},t.lengthMap[i][r][n].count=(t.lengthMap[i][r][n].count||0)+e.count})),void(i.isOptmize=!0)):(i.isOptmize=!1,"continue")):"continue"}(e);if("continue"!==r&&"object"===Object(n.a)(r))return r.v}return!0},setLengthMap:function(){var t=this;this.order_bar_list.forEach((function(e){var i=e.code+"/"+e.color,r=e.length,n="".concat(e.order_id,"&").concat(e.meter_weight,"&").concat(e.size_type,"&").concat(e.angle,"&").concat(e.bar_height,"&").concat(e.bar_hole_id,"&").concat(e.bar_width);t.lengthMap[i]=t.lengthMap[i]||{},t.lengthMap[i][r]=t.lengthMap[i][r]||{},t.lengthMap[i][r][n]=t.lengthMap[i][r][n]||{},t.lengthMap[i][r][n].count=(t.lengthMap[i][r][n].count||0)+e.count}))},checkAvailable:function(t){var e=this;return this.$axios.get("cut_times",{use_time:t,contract_ids:this.$route.query.contract_ids||""}).then((function(t){return t})).catch((function(t){return e.$store.commit("setGlobalLoading",!1),e.$VMessage.error(e.$t("server_message."+t.message)),0}))},getBarCopy:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return e.map((function(e){var r=t.config.optimize_with_info?"".concat(e.order_id,"&").concat(e.meter_weight,"&").concat(e.size_type,"&").concat(e.bar_height,"&").concat(e.bar_hole_id,"&").concat(e.bar_width):"".concat(e.angle);return 1==i?{length:e.length,count:e.count,descr:"",cut_angle:e.angle,name:e.name,code:e.code,color:e.color,order_id:e.order_id,meter_weight:e.meter_weight,size_type:e.size_type}:{length:e.length,count:e.count,descr:r,leftAngle:e.angle_one,rightAngle:e.angle_two}}))},pushResult:function(t,e){var i=[];t.forEach((function(t){var e={};t.PartList.forEach((function(t){t="".concat(t.Length,"|").concat(t.Part.cut_angle),e[t]?e[t]++:e[t]=1}));var r,n=[];for(r in e){var o=r.split("|"),s=o[0];o=o[1];n.push("".concat(s,"*").concat(e[r],"[").concat(o,"]"))}i.push({ways:n.join(" , "),count:t.Count,length:t.Length,utilization:parseFloat(t.UsageRatio)+"%",available:Number(t.LeftLength.toFixed(1)),id:t.StockData.Id.toString(),partList:t.PartList})}));var r={},n=0,o=0;i.forEach((function(t){r[t.length]?r[t.length]+=t.count:r[t.length]=t.count,n+=t.length*t.count,o+=t.available*t.count})),this.result.push({code:this.basic_bar_list[e].code,name:this.basic_bar_list[e].name,color:this.basic_bar_list[e].color,meter_weight:this.basic_bar_list[e].meter_weight,sub_bar:this.basic_bar_list[e].sub_bar,result_total:r,result_bars:i,utilization:"".concat(Math.floor(1e4*(1-o/n))/100,"%")})},combineWindowInfo:function(t,e){var i=this,r=e.code+"/"+e.color,n=[],o={},s=0,a=0;t.forEach((function(t,e){t.Content.split("  "),i.maxStockLength=t.Length>=i.maxStockLength?t.Length:i.maxStockLength;for(var c,l={},u=1;u<=t.Count;u++)!function(){var e,n={},o="",s="",a=[];for(e in t.PartList.sort((function(t,e){return e.Length-t.Length})).forEach((function(t){var e=Object(v.d)(t.Length),o=i.lengthMap[r][e+""];o=i.allocateByCount(e,t.Part.cut_angle,o);n[o.cut_string]=n[o.cut_string]||{},n[o.cut_string].count=n[o.cut_string].count+1||1,n[o.cut_string].cut_angle=o.cut_angle,a.push({length:t.Length,order_id:o.order_id,meter_weight:o.meter_weight,size_type:o.size_type,cut_angle:o.cut_angle,bar_height:o.bar_height,bar_width:o.bar_width,bar_hole_id:o.bar_hole_id})})),n)o+=e+"×"+n[e].count+"["+n[e].cut_angle+"]^&",s+=e.split("|")[1]+"×"+n[e].count+"["+n[e].cut_angle+"]^&";o=o.slice(0,o.length-2),s=s.slice(0,s.length-2),l[o]=l[o]||{},l[o].showInfo=s,l[o].count=l[o].count+1||1,l[o].partList=a}();for(c in l)n.push({ways:l[c].showInfo,count:l[c].count,length:t.Length,utilization:parseFloat(t.UsageRatio)+"%",available:Number(t.LeftLength.toFixed(1)),id:t.StockData.Id.toString(),partList:l[c].partList});o[t.Length]?o[t.Length]+=t.Count:o[t.Length]=t.Count,s+=t.Length*t.Count,a+=t.LeftLength*t.Count})),this.result.push({code:e.code,name:e.name,color:e.color,meter_weight:e.meter_weight,sub_bar:e.sub_bar,result_total:o,result_bars:n,utilization:"".concat(Math.floor(1e4*(1-a/s))/100,"%")})},allocateByCount:function(t,e,i){var r=Object.keys(i).sort((function(t,e){return i[t].count-i[e].count}));i[r[0]].count--;var n=r[0].split("&");n={cut_string:"".concat(n[0],"/").concat(n[2],"/").concat(n[5],"|").concat(this.orderPropMap[n[0]].window_no,":").concat(t),order_id:n[0],meter_weight:n[1],size_type:n[2],cut_angle:n[3],bar_height:n[4],bar_hole_id:n[5],bar_width:n[6]};return 0==i[r[0]].count&&delete i[r[0]],n},cutOptimizer:function(t){var e=this,i={sideWaste:Number(this.config.side_waste),cutWaste:Number(this.config.cut_waste),allData:t,hasWinNo:this.config.optimize_with_info};return 1==this.runType&&(this.result=[]),t=1==this.runType?"/optimize1d":"/optimize1-new",this.$axios.post(t,i).then((function(t){return t.code?t.data:(e.$VMessage.error(e.$t("server_message."+t.message)),[])})).catch((function(t){return e.$store.commit("setGlobalLoading",!1),e.$VMessage.info(e.$t("alertmessage.interface_error")),[]}))},saveResult:function(){var t,e,i=this;this.result.length?(this.$store.commit("setGlobalLoading",!0),t={contract_ids:this.$route.query.contract_ids,order_ids:this.order_ids.sort((function(t,e){return t-e})).join(","),data:this.result,config:this.config},e=1==this.runType?"/cut_solution":"/cut_solution_new",this.$axios.post(e,t).then((function(t){i.$store.commit("setGlobalLoading",!1),i.$router.replace({name:"orders.cutOptimizerResult",query:{contract_ids:i.$route.query.contract_ids,order_ids:i.order_ids}})})).catch((function(t){i.$store.commit("setGlobalLoading",!1),i.$VMessage.error(i.$t("server_message."+t.message)||i.$t("alertmessage.failed_save"))}))):this.$VMessage.warning(this.$t("order_list.optimization_warning2"))},getConfig:function(){var t=this;return this.$axios.post("/find_company_param_value",{key:["minicc_bar_length","minicc_side_waste","minicc_cut_waste","optimize_with_info","ignore_shaped_profile","min_useful_length"]}).then((function(e){return 1==e.code?(e.data.minicc_bar_length&&(t.config.bar_length=e.data.minicc_bar_length),e.data.minicc_side_waste&&(t.config.side_waste=e.data.minicc_side_waste),e.data.minicc_cut_waste&&(t.config.cut_waste=e.data.minicc_cut_waste),t.config.optimize_with_info=""===e.data.optimize_with_info?1:Number(e.data.optimize_with_info),t.config.ignore_shaped_profile=Number(e.data.ignore_shaped_profile),t.config.min_useful_length=e.data.min_useful_length,!0):(t.$VMessage.error(t.$t("alertmessage.failed_list")),!1)})).catch((function(e){return t.$VMessage.error(t.$t("alertmessage.failed_list")),!1}))},openConfigDialog:function(){this.config_copy=JSON.parse(JSON.stringify(this.config)),this.config_dialog=!0},saveConfig:function(){var t=this,e={minicc_bar_length:this.config_copy.bar_length||"6000",minicc_side_waste:this.config_copy.side_waste||0,minicc_cut_waste:this.config_copy.cut_waste||0,optimize_with_info:this.config_copy.optimize_with_info,ignore_shaped_profile:this.config_copy.ignore_shaped_profile,min_useful_length:this.config_copy.min_useful_length};this.$axios.post("/update_company_param_value",e).then((function(e){1==e.code?(t.$VMessage.success(t.$t("alertmessage.success_save")),t.config_dialog=!1,t.config=Object.assign(t.config,t.config_copy),t.basic_bar_list.forEach((function(e){e.length=t.config.bar_length})),t.setOptmizeByConfig()):t.$VMessage.error(t.$t("server_message."+e.message))})).catch((function(e){t.$VMessage.error(t.$t("alertmessage.failed_save"))}))},setOptmizeByConfig:function(){var t=this;this.order_bar_list.forEach((function(e){t.config.ignore_shaped_profile&&(0<e.angle_one%45||0<e.angle_two%45)||t.config.min_useful_length&&e.length<t.config.min_useful_length||e.count<=0?e.isOptmize=!1:e.isOptmize=!0}))},exportJson:function(){var t=this;this.runType=1,this.run(!0).then((function(e){e.characteristic=p()(e.LinearPartData),e.ids=t.$route.query.contract_ids;var i=document.createElement("a");i.download="优化方案.json",e=new Blob([JSON.stringify(e)]),i.href=URL.createObjectURL(e),document.body.appendChild(i),i.click(),document.body.removeChild(i)})).catch((function(t){console.log(t)}))},checkOrigin:function(t){for(var e=this,i=[],r=0;r<this.basic_bar_list.length;r++)!function(t){var r=e.basic_bar_list[t];t=e.order_bar_list.filter((function(t){return t.code==r.code&&t.color==r.color&&t.isOptmize})).filter((function(t){return t.isOptmize})).map((function(t){return{length:t.length,count:t.count,descr:"",cut_angle:t.angle,name:t.name,code:t.code,color:t.color,order_id:t.order_id,meter_weight:t.meter_weight}}));i=i.concat(t)}(r);return t==p()(i)},toDownload:function(){this.profileExceedDialog=!1,window.open("https://api.thinkerx.com/web/#/116/4181")},saveSurplusConfig:function(){for(var t=[],e=0,i=this.basic_bar_surplus[this.target_basic].length;e<i;e++){var r=this.basic_bar_surplus[this.target_basic][e];if(!r.length)return void this.$VMessage.error(this.$t("alertmessage.length_required"));t.push("".concat(r.length).concat(r.count?":"+r.count:""))}this.basic_bar_list[this.selected_basic_index].length="",this.basic_bar_list[this.selected_basic_index].length=t.join(","),this.surplusDialog=!1},openSurplusDialog:function(t,e){var i=this;this.target_basic=t.code+"/"+t.color,this.selected_basic_index=e,this.basic_bar_surplus[this.target_basic]=[],t.length.toString().split(/[, ，]/).forEach((function(t){t=t.replace("：",":").split(":"),i.basic_bar_surplus[i.target_basic].push({length:Number(t[0])||0,count:t[1]||""})})),this.surplusDialog=!0},addTargetSurplus:function(){this.basic_bar_surplus[this.target_basic].push({length:"",count:""})},deleteSurplus:function(t){this.basic_bar_surplus[this.target_basic].splice(t,1)},beforeRun:function(){this.runType=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,this.run(!1)},reSummaryInfo:function(t,e){var i=this,r=this.config.optimize_with_info;t.forEach((function(t){var o={result_total:{}},s=[];t.bars.forEach((function(e){var a={},c=[];a.count=e.total,a.length=e.barLength,o.result_total[e.barLength]?o.result_total[e.barLength]+=e.total:o.result_total[e.barLength]=e.total,a.available=Math.floor(100*e.available)/100,a.utilization=Math.floor(e.useful/e.barLength*1e4)/100+"%";var l,u=[];for(l in e)if("object"==Object(n.a)(e[l])){var h={},_=[],d=e[l],f=d.descr.split("&");o.code=t.code,o.name=t.name,o.color=t.color,o.bar_height=r?f[3]:"",o.meter_weight=r?f[1]:"",h.Length=d.length,h.Count=d.count,h.cut_angle=r?d.leftAngle+"-"+d.rightAngle:"",h.window_no=r?i.orderPropMap[f[0]].window_no:"",h.order_id=r?f[0]:0,h.bar_hole_id=r?f[4]:0,f=r?"".concat(i.orderPropMap[f[0]].window_no,":").concat(d.length,"×").concat(d.count,"[").concat(d.leftAngle+"-"+d.rightAngle,"]"):"".concat(d.length,"×").concat(d.count,"[").concat(f[0],"]"),u.push(f);for(var p=0;p<d.count;p++)_.push({Length:d.length,Count:1});h.Part=_,c.push(h)}u=u.join("^&"),a.ways=u,a.partList=c,s.push(a)})),o.result_bars=s,o.sub_bar=i.basic_bar_list[e].sub_bar,o.utilization=Math.floor(t.totalLength/(t.totalAvailable+t.totalLength)*1e4)/100+"%",i.result.push(o)}))},calTableHeight:function(){var t=document.querySelector(".toolbar");this.panel_height=document.documentElement.clientHeight-52-t.clientHeight},openReverseOptimizationDialog:function(){this.reverseSetting.end=this.config.bar_length,this.reverseSetting.start=0<this.config.bar_length-1e3?this.config.bar_length-1e3:this.reverseSetting.end,this.reverseOptimizationDialog=!0},reverseOptimization:function(){var t=this;if(this.reverseSetting.start>=this.reverseSetting.end-this.reverseSetting.bc)return this.$VMessage.error(this.$t("order_list.error_min_max"));if(2e3<this.reverseSetting.end-this.reverseSetting.start)return this.$VMessage.error(this.$t("order_list.error_min_max2"));for(var e=w({sideWaste:Number(this.config.side_waste),cutWaste:Number(this.config.cut_waste)},this.reverseSetting),i=[],r=0,o=this.basic_bar_list.length;r<o;r++){var s=function(e){var r=t.basic_bar_list[e];if(t.reverseSetting.start<r.minLength+2*t.config.side_waste)return t.$store.commit("setGlobalLoading",!1),t.$VMessage.error("".concat(r.name,"的计算结果").concat(r.minLength+2*t.config.side_waste,"大于原料长度")),{v:void 0};e=t.order_bar_list.filter((function(t){return t.code==r.code&&t.color==r.color})),i.push(t.getBarCopy(e,1))}(r);if("object"===Object(n.a)(s))return s.v}this.reverseOptimizationDialog=!1,this.$refs.intervalOptimize.startOptimize(e,i)},sortBars:function(){var t=this,e=[];this.order_bar_list=this.order_bar_list.map((function(i){return i.valid=t.choosedProduct.includes(i.product_name),i.valid&&!e.includes(i.code+"/"+i.color)&&e.push(i.code+"/"+i.color),i})).sort((function(t,e){return e.valid-t.valid})),this.basic_bar_list=this.basic_bar_list.map((function(t){return t.valid=e.includes(t.code+"/"+t.color),t})).sort((function(t,e){return e.valid-t.valid}))},setOptimize:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];t.isOptmize=!t.isOptmize;var i,r=this.order_bar_list.filter((function(e){return e.code==t.code&&e.color==t.color})),n=r.filter((function(e){return e.isOptmize!=t.isOptmize}));e&&n.length?n.forEach((function(e){e.isOptmize=t.isOptmize})):e||(i=!!n.length||t.isOptmize,this.basic_bar_list.forEach((function(e){t.code==e.code&&t.color==e.color&&(e.isOptmize=i);var n=0;r.forEach((function(t){t.isOptmize&&t.length>=n&&(n=t.length)})),e.minLength=n})))},changeCount:function(t){t.count<0?t.count=0:t.count>t.oriCount&&(t.count=t.oriCount)},checkOptimizeTipStatus:(x=Object(o.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.$store.commit("setGlobalLoading",!0),(e=this.basic_bar_list.filter((function(t){return t.isOptmize&&t.valid}))).length)return t.next=5,this.checkAvailable(e.length);t.next=13;break;case 5:e=t.sent,this.$store.commit("setGlobalLoading",!1),this.restInfo.buyTimes=e.data.buy_times,this.restInfo.freeTimes=0<=30-e.data.free_times?30-e.data.free_times:0,this.ruleTipType=e.code?1:2,this.optimizeRuleDialog=!0,t.next=14;break;case 13:this.beforeRun(2);case 14:case"end":return t.stop()}}),t,this)}))),function(){return x.apply(this,arguments)}),continueOptimize:function(){this.optimizeRuleDialog=!1,2!=this.ruleTipType?this.beforeRun(2):this.toPayDetail(this.purchaseId)},toBuy:function(){this.isMp?wx.miniProgram.navigateTo({url:"/pages/zzc/gzh"}):this.isMobileDevice||this.$router.push({name:"official"})},toPayDetail:function(t){this.$router.push({name:"purchase.upgrade",query:{sjbb_pay_page_id:t}})},toggleResultType:function(){this.resultType=1==this.resultType?2:1},startDrag:function(t){this.dragTarget=+t.item.dataset.l,this.dragIndex=+t.item.dataset.p},endDrag:function(t){this.$forceUpdate(),this.reCalcCutInfo()},reCalcCutInfo:function(){var t,e=this,i=this.result[this.dragIndex],r=[],n={};for(t in i.result_bars.forEach((function(t){e.config.optimize_with_info?t.detail.forEach((function(i){var r,o={},s=[],a=0;for(r in i.forEach((function(t){var e="".concat(t.order_id,":").concat(t.length);o[e]?o[e].count++:o[e]={count:1,order_id:t.order_id,length:t.length,cut_angle:t.cut_angle},a+=t.length})),o){var c=o[r];s.push("".concat(e.orderPropMap[c.order_id].window_no,":").concat(c.length,"×").concat(c.count,"[").concat(c.cut_angle,"]"))}var l=s.join("^&");n[l]?n[l].count++:n[l]={count:1,use:a,parts:i,detail:[],length:t.length}})):t.detail.forEach((function(e){var i,r={},o=[],s=0;for(i in e.forEach((function(t){var e="".concat(t.Part.Length);r[e]?r[e].count++:r[e]={count:1,length:t.Part.Length,cut_angle:t.Part.cut_angle},s+=t.Part.Length})),r){var a=r[i];o.push("".concat(a.length,"*").concat(a.count,"[").concat(a.cut_angle,"]"))}var c=o.join(" , ");n[c]?n[c].count++:n[c]={count:1,use:s,parts:e,detail:[],length:t.length}}))})),n){for(var o=n[t],s=o.length-o.use-o.parts.length*this.config.cut_waste-2*this.config.side_waste,a=o.count;0<a;)a--,o.detail.push(o.parts.slice(0));r.push({available:s,count:o.count,length:o.length,partList:o.parts,utilization:Math.floor(1e4*(o.length-s)/o.length)/100+"%",ways:t,detail:o.detail})}i.result_bars=r},printResult:function(){this.exportPdf()},exportPdf:(C=Object(o.a)(regeneratorRuntime.mark((function t(){var e,i=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.$store.commit("setGlobalLoading",!0),"undefined"==typeof html2canvas)return t.next=4,this.$loadScript("/html2canvas.min.js");t.next=4;break;case 4:if("undefined"==typeof jspdf)return t.next=7,this.$loadScript("/jspdf.umd.min.js");t.next=7;break;case 7:e=document.querySelector("#composing-container-outer"),html2canvas(e,{scaleuseCORS:!0,allowTaint:!0,backgroundColor:null,ignoreElements:function(t){if("BODY"==t.parentElement.tagName&&"DIV"!=t.tagName||t.href&&-1<t.href.indexOf(".js"))return!0}}).then(function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(e){var r,n,o,s,a,c,l,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=841.89,n=e.width,u=e.height,o=0,a=s=592.28/n*u,c=e.toDataURL("image/jpeg",1),l=new jspdf.jsPDF("portrait","pt","a4"),a<r)l.addImage(c,"JPEG",12,12,568.28,s);else for(;0<a;)l.addImage(c,"JPEG",12,o+12,568.28,s-12),o-=r,0<(a-=r-24)&&l.addPage();return i.$store.commit("setGlobalLoading",!1),t.next=14,i.uploadFile(l.output("dataurlstring"));case 14:u=t.sent,window.open(u.data);case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){console.log(t),i.$store.commit("setGlobalLoading",!1)}));case 9:case"end":return t.stop()}}),t,this)}))),function(){return C.apply(this,arguments)}),uploadFile:function(t){var e=new FormData;return e.append("file",t),this.$axios.post("upload-pic",e).then((function(t){return t})).catch((function(t){return{code:0}}))}},computed:w({is_small_screen:function(){return this.$store.getters.is_small_screen(this.$vuetify)},purchaseList:function(){return[{label:"100 "+this.$t("alertmessage.times"),label2:"50元",value:1002},{label:"210 "+this.$t("alertmessage.times"),label2:"100元",value:1003},{label:"320 "+this.$t("alertmessage.times"),label2:"150元",value:1004}]}},Object(s.b)(["getLenUnit","canUseModule","isMp","isMobileDevice"])),created:function(){this.dragTarget=0,this.dragIndex=-1,this.showIndex=1},mounted:(S=Object(o.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return window.addEventListener("resize",this.calTableHeight),this.calTableHeight(),t.next=4,this.getConfig();case 4:this.getOrderBarList();case 5:case"end":return t.stop()}}),t,this)}))),function(){return S.apply(this,arguments)}),beforeDestroy:function(){window.removeEventListener("resize",this.calTableHeight)},components:{intervalOptimize:f,draggable:c.a}},i("08df"),c=Object(u.a)(c,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"order-cut-optimizer"},[i("div",{staticClass:"px-3 pt-3 pb-3 toolbar"},[i("v-btn",{attrs:{color:"#ddd",outlined:"",elevation:"0",small:""},on:{click:function(e){return t.$router.go(-1)}}},[i("span",{staticClass:"body-2",staticStyle:{color:"#666666"}},[t._v(t._s(t.$t("order_list.back")))])]),i("v-btn",{staticClass:"ml-3",attrs:{color:"#1b7af8",elevation:"0",small:""},on:{click:function(e){return t.beforeRun(1)}}},[i("span",{staticClass:"body-2 white--text"},[i("i",{staticClass:"iconfont iconyouhuajianyi mr-2"}),t._v(t._s(t.$t("order_list.run")))])]),i("v-btn",{directives:[{name:"show",rawName:"v-show",value:!t.is_small_screen,expression:"!is_small_screen"}],staticClass:"ml-3",attrs:{elevation:"0",color:"primary",small:""},on:{click:t.openReverseOptimizationDialog}},[i("span",{staticClass:"body-2 white--text"},[t._v(t._s(t.$t("order_list.reverse_optimization")))])]),i("v-btn",{staticClass:"ml-3",attrs:{elevation:"0",color:"#1b7af8",small:""},on:{click:t.saveResult}},[i("span",{staticClass:"body-2 white--text"},[i("i",{staticClass:"iconfont iconbaocun-copy mr-2"}),t._v(t._s(t.$t("order_list.save")))])]),i("v-btn",{directives:[{name:"show",rawName:"v-show",value:!t.is_small_screen,expression:"!is_small_screen"}],staticClass:"ml-3",attrs:{elevation:"0",color:"#1b7af8",small:""},on:{click:t.exportJson}},[i("span",{staticClass:"body-2 white--text"},[i("i",{staticClass:"iconfont icondaochu mr-2"}),t._v(t._s(t.$t("drawpage.btn.export")))])]),i("v-btn",{directives:[{name:"show",rawName:"v-show",value:!t.is_small_screen,expression:"!is_small_screen"}],staticClass:"float-right",attrs:{elevation:"0",color:"#f03d15",small:""},on:{click:t.openConfigDialog}},[i("span",{staticClass:"body-2 white--text"},[t._v(t._s(t.$t("order_list.optimize_config")))])]),i("v-menu",{attrs:{"offset-y":"","close-on-content-click":!0},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on;return e.attrs,[i("v-btn",t._g({directives:[{name:"show",rawName:"v-show",value:t.is_small_screen,expression:"is_small_screen"}],staticClass:"float-right ml-3",attrs:{color:"primary",small:"",elevation:"0"}},r),[i("span",{staticClass:"body-2 white--text"},[t._v(t._s(t.$t("order_list.order_operate")))])])]}}])},[i("v-list",{attrs:{dense:""}},[i("v-list-item",{on:{click:t.exportJson}},[i("v-list-item-title",[t._v(t._s(t.$t("drawpage.btn.export")))])],1),i("v-list-item",{on:{click:t.openReverseOptimizationDialog}},[i("v-list-item-title",[t._v(t._s(t.$t("order_list.reverse_optimization")))])],1),i("v-list-item",{on:{click:t.openConfigDialog}},[i("v-list-item-title",[t._v(t._s(t.$t("order_list.optimize_config")))])],1)],1)],1),i("div",{staticClass:"filter-line"},[i("div",{staticClass:"mr-3 mb-3",staticStyle:{"max-width":"320px"}},[i("v-select",{attrs:{multiple:"",items:t.productList,"hide-details":""},model:{value:t.choosedProduct,callback:function(e){t.choosedProduct=e},expression:"choosedProduct"}})],1),i("v-btn",{staticClass:"float-right",attrs:{elevation:"0",color:"#f03d15",small:""},on:{click:t.sortBars}},[i("span",{staticClass:"body-2 white--text"},[t._v(t._s(t.$t("drawpage.btn.ok")))])])],1)],1),i("div",{staticStyle:{flex:"1",overflow:"auto"}},[i("v-row",{staticClass:"mx-0",staticStyle:{height:"100%"}},[i("v-col",{staticClass:"py-0",attrs:{cols:"12",md:"6"}},[i("div",[i("div",{staticClass:"panel-title"},[t._v(t._s(t.$t("order_list.basic_bars")))]),i("div",{staticClass:"panel",style:{height:t.is_small_screen?"auto":.5*t.panel_height-45+"px"}},[i("table",{staticClass:"table table1 text-center",staticStyle:{width:"100%"},attrs:{border:"1"}},[i("thead",[i("tr",[i("th",{staticStyle:{width:"22%"}},[t._v(t._s(t.$t("windoor.code")))]),i("th",{staticStyle:{width:"22%"}},[t._v(t._s(t.$t("windoor.name")))]),i("th",{staticStyle:{width:"22%"}},[t._v(t._s(t.$t("windoor.color")))]),i("th",{staticStyle:{width:"22%"}},[t._v(t._s(t.$t("windoor.length"))+"("+t._s(t.getLenUnit.size)+")\n                      "),i("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function(e){return e=e.on,[i("i",t._g({staticClass:"iconfont iconbangzhu help"},e))]}}])},[i("span",[t._v(t._s(t.$t("order_list.length_tip")))])])],1),i("th",{staticStyle:{width:"8%"}},[t._v(t._s(t.$t("order_list.optimization")))])])]),i("tbody",t._l(t.basic_bar_list,(function(e,r){return i("tr",{key:r,class:{invalid:!e.valid}},[i("td",[t._v(t._s(e.code))]),i("td",[t._v(t._s(e.name))]),i("td",[t._v(t._s(e.color))]),i("td",{staticClass:"operate-td"},[i("v-tooltip",{attrs:{top:"",disabled:!t.basic_bar_surplus[e.code+"/"+e.color].length},scopedSlots:t._u([{key:"activator",fn:function(r){return r=r.on,[i("v-text-field",t._g({attrs:{"hide-details":"",height:28},model:{value:e.length,callback:function(i){t.$set(e,"length",i)},expression:"item.length"}},r))]}}],null,!0)},t._l(t.basic_bar_surplus[e.code+"/"+e.color],(function(e,r){return i("span",[t._v(t._s(e.length)+"="+t._s(e.count)),i("br")])})),0),i("i",{staticClass:"iconfont iconRectangleCopy5 cursor-pointer",class:{"primary-color":1<t.basic_bar_surplus[e.code+"/"+e.color].length},staticStyle:{"z-index":"99","font-size":"24px"},on:{click:function(i){return t.openSurplusDialog(e,r)}}})],1),i("td",{staticClass:"btn-td cursor-pointer",class:{inActive:!e.isOptmize},on:{click:function(i){return t.setOptimize(e,1)}}},[t._v(t._s(e.isOptmize?t.$t("position.yes"):t.$t("position.no")))])])})),0)])])]),i("div",[i("div",{staticClass:"panel-title"},[t._v(t._s(t.$t("order_list.bars")))]),i("div",{staticClass:"panel",style:{height:t.is_small_screen?"auto":.5*t.panel_height-45+"px"}},[i("table",{staticClass:"table table1 text-center",staticStyle:{width:"100%"},attrs:{border:"1"}},[i("thead",[i("tr",[i("th",{staticStyle:{width:"18%"}},[t._v(t._s(t.$t("windoor.code")))]),i("th",{staticStyle:{width:"18%"}},[t._v(t._s(t.$t("windoor.name")))]),i("th",{staticStyle:{width:"18%"}},[t._v(t._s(t.$t("windoor.color")))]),i("th",{staticStyle:{width:"16%"}},[t._v(t._s(t.$t("windoor.length"))+"("+t._s(t.getLenUnit.size)+")")]),i("th",{staticStyle:{width:"16%"}},[t._v(t._s(t.$t("windoor.angle")))]),i("th",{staticStyle:{width:"8%"}},[t._v(t._s(t.$t("windoor.count")))]),i("th",{staticStyle:{width:"8%"}},[t._v(t._s(t.$t("order_list.optimization")))])])]),i("tbody",t._l(t.order_bar_list,(function(e,r){return i("tr",{key:r,class:{invalid:!e.valid}},[i("td",[t._v(t._s(e.code)+"-"+t._s(e.window_no))]),i("td",[t._v(t._s(e.name))]),i("td",[t._v(t._s(e.color))]),i("td",[t._v(t._s(e.length))]),i("td",[t._v(t._s(e.angle))]),i("td",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.count,expression:"item.count"}],attrs:{type:"number",max:e.oriCount,min:"0"},domProps:{value:e.count},on:{change:function(i){return t.changeCount(e)},input:function(i){i.target.composing||t.$set(e,"count",i.target.value)}}})]),i("td",{staticClass:"btn-td cursor-pointer",class:{inActive:!e.isOptmize},on:{click:function(i){return t.setOptimize(e)}}},[t._v(t._s(e.isOptmize?t.$t("position.yes"):t.$t("position.no")))])])})),0)])])])]),i("v-col",{staticClass:"py-0",attrs:{cols:"12",md:"6"}},[i("div",{staticClass:"panel-title result-bar pr-3"},[i("span",{staticClass:"cursor-pointer",on:{click:t.toggleResultType}},[i("i",{staticClass:"iconfont iconneirongqiehuan"}),t._v("\n                    "+t._s(1!=t.resultType?t.$t("order_list.composing_result"):t.$t("order_list.optimization_result"))+"\n                ")]),i("span",{directives:[{name:"show",rawName:"v-show",value:1==t.resultType,expression:"resultType == 1"}],staticClass:"float-right mr-2 cursor-pointer",on:{click:t.printResult}},[i("i",{staticClass:"mr-1 iconfont iconhuozhuduanyundandayin"}),t._v(t._s(t.$t("order_list.printing"))+"\n                ")])]),i("div",{staticClass:"panel",style:{height:t.is_small_screen?"auto":t.panel_height-46+"px"}},[i("v-slide-x-reverse-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.resultType,expression:"resultType == 1"}],staticClass:"composing-container-outer",attrs:{id:"composing-container-outer"}},t._l(t.result,(function(e,r){return i("div",{key:r,staticClass:"composing-container",class:{"composing-container-detail":t.config.optimize_with_info}},[i("span",{staticStyle:{display:"none"}},[t._v(t._s(t.showIndex=0))]),i("div",{staticClass:"composing-list-title"},[i("span",{staticClass:"category mr-4"},[t._v(t._s(e.code)+"/"+t._s(e.name)+"/"+t._s(e.color))]),i("span",{staticClass:"mr-4"},[t._v(t._s(t.$t("windoor.count"))+": "),i("span",{staticClass:"emphsis"},[t._v(t._s(e.result_bars.reduce((function(t,e){return t+e.count}),0)))])]),i("span",[t._v(t._s(t.$t("order_list.utilization"))+": "),i("span",{staticClass:"emphsis"},[t._v(t._s(e.utilization))])])]),t._l(e.result_bars,(function(e,n){return i("div",{key:n},t._l(e.detail,(function(n,o){return i("div",{key:o,staticClass:"composing-list-item"},[i("div",[i("span",{staticClass:"mr-2"},[t._v("["+t._s(++t.showIndex)+"]")]),i("span",{staticClass:"mr-4"},[t._v(t._s(e.utilization))]),i("span",{staticClass:"mr-4"},[t._v(t._s(t.$t("windoor.length"))+": "+t._s(e.length))]),i("span",[t._v(t._s(t.$t("order_list.left_over"))+": "+t._s(e.available))])]),i("draggable",{staticClass:"composing-legend",style:{width:100*e.length/t.maxStockLength+"%"},attrs:{element:"div",list:n,group:{name:"group"+r,put:e.available>t.dragTarget+Number(t.config.cut_waste)&&r===t.dragIndex}},on:{start:t.startDrag,end:t.endDrag}},t._l(n,(function(n,o){return i("div",{key:o,staticClass:"composing-part",style:{width:100*(n.length||n.Length||0)/e.length+"%"},attrs:{"data-l":n.length||n.Length||0,"data-p":r,"data-d":(t.orderPropMap[n.order_id]||"").window_no+":"+(n.length||n.Length||0)+" "+t.$t("product_script.table.size_type"+n.size_type)}},t._l((n.cut_angle||n.Part.cut_angle||"").split("-"),(function(e,r){return i("div",{key:r,staticClass:"angle",class:["angle-"+e,t.anglePosMap[r]],style:{"border-left-width":(10/Math.tan(e*Math.PI/180)).toFixed(2)+"px","border-right-width":(10/Math.tan(e*Math.PI/180)).toFixed(2)+"px"}})})),0)})),0)],1)})),0)}))],2)})),0)]),i("v-slide-x-transition",[i("div",{directives:[{name:"show",rawName:"v-show",value:1!=t.resultType,expression:"resultType != 1"}]},[i("table",{staticClass:"table table1 text-center",staticStyle:{width:"100%"},attrs:{border:"1"}},[i("thead",[i("tr",[i("th",{staticStyle:{width:"25%"}},[t._v(t._s(t.$t("windoor.code"))+"/"+t._s(t.$t("windoor.name"))+"/"+t._s(t.$t("windoor.color")))]),i("th",{staticStyle:{width:"45%"}},[t._v(t._s(t.$t("order_list.cutting")))]),i("th",{staticStyle:{width:"10%"}},[t._v(t._s(t.$t("windoor.count")))]),i("th",{staticStyle:{width:"20%"}},[t._v(t._s(t.$t("order_list.utilization"))+"/"+t._s(t.$t("order_list.left_over"))+"("+t._s(t.getLenUnit.size)+")")])])]),i("tbody",[t._l(t.result,(function(e,r){return[t._l(e.result_bars,(function(n,o){return i("tr",{key:r+"-"+o},[o?t._e():i("td",{staticClass:"bar-spec",attrs:{rowspan:e.result_bars.length+1}},[t._v(t._s(e.code)+"/"+t._s(e.name)+"/"+t._s(e.color))]),i("td",[t._v(t._s(n.ways.replace(/\^&/gi," ")))]),i("td",[t._v(t._s(n.length)+"="+t._s(n.count))]),i("td",[t._v(t._s(n.utilization)+"/"+t._s(n.available))])])})),i("tr",[i("td",{staticClass:"text-center",staticStyle:{background:"#e8f5e9"},attrs:{colspan:"3"}},[i("span",{staticClass:"mr-3"},[t._v(t._s(t.$t("windoor.count"))+"：\n                                "),t._l(e.result_total,(function(e,i){return[t._v(t._s(i)+"="+t._s(e)+",")]}))],2),i("span",[t._v(t._s(t.$t("order_list.utilization"))+"："+t._s(e.utilization))])])])]}))],2)])])])],1)])],1)],1),i("v-overlay",{staticClass:"text-center",attrs:{value:t.loading}},[i("v-progress-circular",{staticClass:"mx-auto",attrs:{indeterminate:"",size:"64"}}),i("p",{staticClass:"body-1 mt-5"},[t._v(t._s(t.$t("order_list.optimization_loading")))])],1),i("comm-dialog",{attrs:{visible:t.config_dialog,title:t.$t("order_list.optimize_config"),width:"400"},on:{close:function(e){t.config_dialog=!1},confirm:t.saveConfig},scopedSlots:t._u([{key:"content",fn:function(){return[i("v-row",{staticClass:"dialog-form"},[i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.bar_length"))+"（mm）：")]),i("v-text-field",{staticClass:"input",attrs:{type:"number",outlined:"",dense:"","hide-details":"",placeholder:"默认 6000mm"},model:{value:t.config_copy.bar_length,callback:function(e){t.$set(t.config_copy,"bar_length",t._n(e))},expression:"config_copy.bar_length"}})],1),i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.side_waste"))+"（mm）：")]),i("v-text-field",{staticClass:"input",attrs:{type:"number",outlined:"",dense:"","hide-details":"",placeholder:"默认 0mm"},model:{value:t.config_copy.side_waste,callback:function(e){t.$set(t.config_copy,"side_waste",t._n(e))},expression:"config_copy.side_waste"}})],1),i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.cut_waste"))+"（mm）：")]),i("v-text-field",{staticClass:"input",attrs:{type:"number",outlined:"",dense:"","hide-details":"",placeholder:"默认 0mm"},model:{value:t.config_copy.cut_waste,callback:function(e){t.$set(t.config_copy,"cut_waste",t._n(e))},expression:"config_copy.cut_waste"}})],1),i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.min_useful_length"))+"（mm）：")]),i("v-text-field",{staticClass:"input",attrs:{type:"number",outlined:"",dense:"","hide-details":""},model:{value:t.config_copy.min_useful_length,callback:function(e){t.$set(t.config_copy,"min_useful_length",t._n(e))},expression:"config_copy.min_useful_length"}})],1),i("v-col",{staticClass:"d-flex",staticStyle:{"align-items":"center"},attrs:{cols:"12"}},[i("span",{staticClass:"label d-inline-block"},[t._v(t._s(t.$t("order_list.distinguish_win_no"))+"：")]),i("v-switch",{staticClass:"d-inline-block mt-0 pt-0",attrs:{color:"primary","false-value":0,"true-value":1,"hide-details":""},model:{value:t.config_copy.optimize_with_info,callback:function(e){t.$set(t.config_copy,"optimize_with_info",e)},expression:"config_copy.optimize_with_info"}})],1),i("v-col",{staticClass:"d-flex",staticStyle:{"align-items":"center"},attrs:{cols:"12"}},[i("span",{staticClass:"label d-inline-block"},[t._v(t._s(t.$t("order_list.ignore_shaped_profile"))+"：")]),i("v-switch",{staticClass:"d-inline-block mt-0 pt-0",attrs:{color:"primary","false-value":0,"true-value":1,"hide-details":""},model:{value:t.config_copy.ignore_shaped_profile,callback:function(e){t.$set(t.config_copy,"ignore_shaped_profile",e)},expression:"config_copy.ignore_shaped_profile"}})],1)],1)]},proxy:!0}])}),i("comm-dialog",{attrs:{visible:t.surplusDialog,title:t.$t("order_list.surplusSetting"),width:"400"},on:{close:function(e){t.surplusDialog=!1},confirm:t.saveSurplusConfig},scopedSlots:t._u([{key:"content",fn:function(){return[i("div",[i("v-btn",{attrs:{color:"primary",small:""},on:{click:t.addTargetSurplus}},[t._v(t._s(t.$t("order_list.add")))]),i("v-chip",{staticClass:"ml-2",attrs:{small:""}},[t._v(t._s(t.$t("order_list.surPlusAddInfo")))])],1),i("v-simple-table",{scopedSlots:t._u([{key:"default",fn:function(){return[i("thead",[i("tr",[i("th",{staticClass:"text-left"},[t._v("\n\t    \t\t\t\t\t"+t._s(t.$t("order_list.length"))+"\n\t    \t\t\t\t")]),i("th",{staticClass:"text-left"},[t._v("\n\t    \t\t\t\t\t"+t._s(t.$t("order_list.count2"))+"\n\t    \t\t\t\t")])])]),i("tbody",t._l(t.basic_bar_surplus[t.target_basic],(function(e,r){return i("tr",{key:r},[i("td",[i("v-text-field",{attrs:{"hide-details":"",height:28},model:{value:e.length,callback:function(i){t.$set(e,"length",i)},expression:"item.length"}})],1),i("td",{staticClass:"operate-td"},[i("v-text-field",{attrs:{"hide-details":"",height:28},model:{value:e.count,callback:function(i){t.$set(e,"count",i)},expression:"item.count"}}),i("i",{directives:[{name:"show",rawName:"v-show",value:!e.is_default,expression:"!item.is_default"}],staticClass:"iconfont iconguanbi cursor-pointer",staticStyle:{"z-index":"99","font-size":"24px"},on:{click:function(e){return t.deleteSurplus(r)}}})],1)])})),0)]},proxy:!0}])})]},proxy:!0}])}),i("comm-dialog",{attrs:{visible:t.profileExceedDialog,title:t.$t("alertmessage.system_warning"),width:"400",confirmText:t.$t("alertmessage.view_guide")},on:{close:function(e){t.profileExceedDialog=!1},confirm:t.toDownload},scopedSlots:t._u([{key:"content",fn:function(){return[i("div",{staticClass:"body-2"},[t._v(t._s(t.$t("alertmessage.profile_exceed")))])]},proxy:!0}])}),i("comm-dialog",{attrs:{visible:t.reverseOptimizationDialog,title:t.$t("order_list.optimize_config"),width:"400"},on:{close:function(e){t.reverseOptimizationDialog=!1},confirm:t.reverseOptimization},scopedSlots:t._u([{key:"content",fn:function(){return[i("v-row",{staticClass:"dialog-form"},[i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.minimum"))+"（mm）：")]),i("v-text-field",{staticClass:"input",attrs:{type:"number",outlined:"",dense:"","hide-details":"",placeholder:t.$t("order_list.minimum_input_tip")},model:{value:t.reverseSetting.start,callback:function(e){t.$set(t.reverseSetting,"start",t._n(e))},expression:"reverseSetting.start"}})],1),i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.maximum"))+"（mm）：")]),i("v-text-field",{staticClass:"input",attrs:{type:"number",outlined:"",dense:"","hide-details":"",placeholder:t.$t("order_list.maximum_input_tip")},model:{value:t.reverseSetting.end,callback:function(e){t.$set(t.reverseSetting,"end",t._n(e))},expression:"reverseSetting.end"}})],1),i("v-col",{attrs:{cols:"12"}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("order_list.step"))+"（mm）：")]),i("v-select",{staticClass:"input",attrs:{items:t.reverseStepList,outlined:"",dense:"","hide-details":""},model:{value:t.reverseSetting.bc,callback:function(e){t.$set(t.reverseSetting,"bc",t._n(e))},expression:"reverseSetting.bc"}})],1)],1)]},proxy:!0}])}),i("comm-dialog",{attrs:{visible:t.optimizeRuleDialog,title:t.$t("alertmessage.system_warning"),width:"400",confirmText:2==t.ruleTipType?t.$t("alertmessage.purchase_limit"):t.$t("alertmessage.confirm_and_optimize")},on:{close:function(e){t.optimizeRuleDialog=!1},confirm:t.continueOptimize},scopedSlots:t._u([{key:"content",fn:function(){return[i("div",{staticClass:"optimize-rule-tip",staticStyle:{"font-size":"16px"}},[i("p",{directives:[{name:"show",rawName:"v-show",value:2==t.ruleTipType,expression:"ruleTipType == 2"}],staticClass:"mb-2 font-weight-bold"},[t._v(t._s(t.$t("alertmessage.lack_times_tip")))]),i("p",{staticClass:"mb-2",staticStyle:{color:"#666666"}},[t._v(t._s(t.$t("alertmessage.optimize_rule_tip")))]),i("p",{staticClass:"mb-2"},[i("span",{staticClass:"mr-4 times-tip"},[t._v(t._s(t.$t("alertmessage.rest_free_times"))+": "),i("span",{staticClass:"font-weight-bold text-red",staticStyle:{"font-size":"24px"}},[t._v(t._s(t.restInfo.freeTimes)+" ")]),i("span",[t._v(t._s(t.$t("alertmessage.times")))])]),i("span",{staticClass:"times-tip"},[t._v(t._s(t.$t("alertmessage.rest_purchase_times"))+": "),i("span",{staticClass:"font-weight-bold text-red",staticStyle:{"font-size":"24px"}},[t._v(t._s(t.restInfo.buyTimes)+" ")]),i("span",[t._v(t._s(t.$t("alertmessage.times")))])])]),2==t.ruleTipType?i("div",[i("v-item-group",{model:{value:t.purchaseId,callback:function(e){t.purchaseId=e},expression:"purchaseId"}},[i("v-row",t._l(t.purchaseList,(function(e,r){return i("v-col",{key:r,staticClass:"purchase-list-item",attrs:{cols:"4"}},[i("v-item",{staticClass:"cursor-pointer",attrs:{value:e.value},scopedSlots:t._u([{key:"default",fn:function(r){return r.active,r=r.toggle,[i("div",{staticStyle:{height:"100%"},on:{click:r}},[i("span",{staticClass:"label-1"},[t._v(t._s(e.label))]),i("span",{staticClass:"label-2"},[t._v(t._s(e.label2))]),i("v-icon",{staticClass:"mt-2",class:{active:t.purchaseId==e.value}},[t._v("fa-check-circle")])],1)]}}],null,!0)})],1)})),1)],1)],1):t._e(),i("v-expansion-panels",[i("v-expansion-panel",[i("v-expansion-panel-header",[t._v(t._s(t.$t("alertmessage.diff_optimize_title")))]),i("v-expansion-panel-content",[i("p",{staticClass:"mb-2"},[t._v(t._s(t.$t("alertmessage.diff_optimize_reason1")))]),i("p",{staticClass:"mb-2"},[t._v(t._s(t.$t("alertmessage.diff_optimize_reason2")))]),i("p",{staticClass:"mb-2"},[t._v(t._s(t.$t("alertmessage.diff_optimize_reason3")))]),i("p",{staticClass:"mb-2"},[t._v(t._s(t.$t("alertmessage.diff_optimize_reason4")))])])],1)],1)],1)]},proxy:!0}])}),i("interval-optimize",{ref:"intervalOptimize"})],1)}),[],!1,null,"efe467d6",null);e.default=c.exports},bf0b:function(t,e,i){var r=i("355d"),n=i("aebd"),o=i("36c3"),s=i("1bc3"),a=i("07e3"),c=i("794b"),l=Object.getOwnPropertyDescriptor;e.f=i("8e60")?l:function(t,e){if(t=o(t),e=s(e,!0),c)try{return l(t,e)}catch(t){}if(a(t,e))return n(!r.f.call(t,e),t[e])}},ccb9:function(t,e,i){e.f=i("5168")},d2d5:function(t,e,i){i("1654"),i("549b"),t.exports=i("584a").Array.from},d8d6:function(t,e,i){i("1654"),i("6c1c"),t.exports=i("ccb9").f("iterator")},db2a:function(t,e,i){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}i.d(e,"a",(function(){return r}))},e380:function(t,e,i){},e630:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));e=i("774e");var r=i.n(e),n=i("db2a");function o(t,e){if(t){if("string"==typeof t)return Object(n.a)(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(i="Object"===i&&t.constructor?t.constructor.name:i)||"Set"===i?r()(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n.a)(t,e):void 0}}},ebfd:function(t,e,i){function r(t){a(t,n,{value:{i:"O"+ ++c,w:{}}})}var n=i("62a0")("meta"),o=i("f772"),s=i("07e3"),a=i("d9f6").f,c=0,l=Object.isExtensible||function(){return!0},u=!i("294c")((function(){return l(Object.preventExtensions({}))})),h=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,n)){if(!l(t))return"F";if(!e)return"E";r(t)}return t[n].i},getWeak:function(t,e){if(!s(t,n)){if(!l(t))return!0;if(!e)return!1;r(t)}return t[n].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!s(t,n)&&r(t),t}}},f410:function(t,e,i){i("1af6"),t.exports=i("584a").Array.isArray},f921:function(t,e,i){i("014b"),i("c207"),i("69d3"),i("765d"),t.exports=i("584a").Symbol},fdd8:function(t,e,i){"use strict";i("e380")},ffc1:function(t,e,i){var r=i("5ca1"),n=i("504c")(!0);r(r.S,"Object",{entries:function(t){return n(t)}})}}]);