(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59c501a6"],{"004d":function(t,e,a){},"07ac":function(t,e,a){var s=a("23e7"),n=a("6f53").values;s({target:"Object",stat:!0},{values:function(t){return n(t)}})},1364:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("van-empty",{staticClass:"custom-image",attrs:{image:t.emptyImage,description:t.description}})},n=[],i={data:function(){return{emptyImage:a("377b")}},props:{description:{type:String,default:""}}},c=i,r=(a("780d"),a("2877")),l=Object(r["a"])(c,s,n,!1,null,"2e45504c",null);e["a"]=l.exports},"287d":function(t,e,a){},2909:function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var s=a("6b75");function n(t){if(Array.isArray(t))return Object(s["a"])(t)}a("a4d3"),a("e01a"),a("d28b"),a("a630"),a("d3b7"),a("3ca3"),a("ddb0");function i(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}var c=a("06c5");function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return n(t)||i(t)||Object(c["a"])(t)||r()}},"377b":function(t,e,a){t.exports=a.p+"static/img/empty-image.276c05f0.png"},5899:function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(t,e,a){var s=a("1d80"),n=a("5899"),i="["+n+"]",c=RegExp("^"+i+i+"*"),r=RegExp(i+i+"*$"),l=function(t){return function(e){var a=String(s(e));return 1&t&&(a=a.replace(c,"")),2&t&&(a=a.replace(r,"")),a}};t.exports={start:l(1),end:l(2),trim:l(3)}},"68f2":function(t,e,a){"use strict";a("ad25")},"6f53":function(t,e,a){var s=a("83ab"),n=a("df75"),i=a("fc6a"),c=a("d1e7").f,r=function(t){return function(e){var a,r=i(e),l=n(r),o=l.length,u=0,f=[];while(o>u)a=l[u++],s&&!c.call(r,a)||f.push(t?[a,r[a]]:r[a]);return f}};t.exports={entries:r(!0),values:r(!1)}},"780d":function(t,e,a){"use strict";a("004d")},"7db0":function(t,e,a){"use strict";var s=a("23e7"),n=a("b727").find,i=a("44d2"),c=a("ae40"),r="find",l=!0,o=c(r);r in[]&&Array(1)[r]((function(){l=!1})),s({target:"Array",proto:!0,forced:l||!o},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),i(r)},"8c64":function(t,e,a){"use strict";a("287d")},a9e3:function(t,e,a){"use strict";var s=a("83ab"),n=a("da84"),i=a("94ca"),c=a("6eeb"),r=a("5135"),l=a("c6b6"),o=a("7156"),u=a("c04e"),f=a("d039"),p=a("7c73"),d=a("241c").f,v=a("06cf").f,C=a("9bf2").f,m=a("58a8").trim,b="Number",h=n[b],_=h.prototype,I=l(p(_))==b,y=function(t){var e,a,s,n,i,c,r,l,o=u(t,!1);if("string"==typeof o&&o.length>2)if(o=m(o),e=o.charCodeAt(0),43===e||45===e){if(a=o.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(o.charCodeAt(1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+o}for(i=o.slice(2),c=i.length,r=0;r<c;r++)if(l=i.charCodeAt(r),l<48||l>n)return NaN;return parseInt(i,s)}return+o};if(i(b,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var N,g=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof g&&(I?f((function(){_.valueOf.call(a)})):l(a)!=b)?o(new h(y(e)),a,g):y(e)},x=s?d(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),A=0;x.length>A;A++)r(h,N=x[A])&&!r(g,N)&&C(g,N,v(h,N));g.prototype=_,_.constructor=g,c(n,b,g)}},ad25:function(t,e,a){},ba4f:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"quotation"},[a("van-tabs",{attrs:{swipeable:""},model:{value:t.tabsActive,callback:function(e){t.tabsActive=e},expression:"tabsActive"}},[a("van-tab",{staticClass:"fill-up",attrs:{title:t.$t("info.314")}},[a("div",{staticClass:"quotation-detail"},[a("my-empty",{attrs:{description:t.$t("info.315")}})],1)]),a("van-tab",{staticClass:"fill-up",attrs:{title:t.$t("info.316")}},[a("div",{staticClass:"material-list"},[a("material-list",{attrs:{panelCodeList:t.panelCodeList,currentCstData:t.cstData}})],1)]),a("van-tab",{staticClass:"fill-up",attrs:{title:t.$t("info.317")}},[a("div",{staticClass:"plate-usage"},[a("my-empty",{attrs:{description:t.$t("info.315")}})],1)])],1)],1)},n=[],i=a("1364"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("van-tabs",{attrs:{swipeable:""},model:{value:t.tabActive,callback:function(e){t.tabActive=e},expression:"tabActive"}},[a("van-tab",{staticClass:"fill-up",attrs:{title:t.$t("info.13")}},[a("ul",{staticClass:"listTitle"},[a("li",{staticClass:"name"},[t._v(t._s(t.$t("info.5")))]),a("li",{staticClass:"color"},[t._v(t._s(t.$t("info.6")))]),a("li",{staticClass:"width"},[t._v(t._s(t.$t("info.7")))]),a("li",{staticClass:"height"},[t._v(t._s(t.$t("info.8")))]),a("li",{staticClass:"depth"},[t._v(t._s(t.$t("info.9")))])]),a("div",{staticClass:"listContent"},[a("van-collapse",{model:{value:t.collapseActive,callback:function(e){t.collapseActive=e},expression:"collapseActive"}},t._l(t.panelData,(function(e){return a("van-collapse-item",{key:e.CstIndex,attrs:{title:e.CstName?e.CstName:t.$t("info.10")+e.CstIndex,name:e.CstIndex}},[a("ul",{staticClass:"panelList"},t._l(e.list,(function(e,s){return a("li",{key:s},[a("span",{staticClass:"name"},[t._v(t._s(e.Name))]),a("span",{staticClass:"color"},[t._v(t._s(e.Material))]),a("span",{staticClass:"width"},[t._v(t._s(e.width))]),a("span",{staticClass:"height"},[t._v(t._s(e.height))]),a("span",{staticClass:"depth"},[t._v(t._s(e.depth))])])})),0)])})),1),0===t.panelData.length?a("my-empty",{attrs:{description:t.$t("info.315")}}):t._e()],1)]),a("van-tab",{staticClass:"fill-up",attrs:{title:t.$t("info.67")}},[a("ul",{staticClass:"listTitle"},[a("li",{staticClass:"hardwareName"},[t._v(t._s(t.$t("info.5")))]),a("li",{staticClass:"model"},[t._v(t._s(t.$t("info.14")))]),a("li",{staticClass:"qty"},[t._v(t._s(t.$t("info.15")))])]),a("div",{staticClass:"listContent"},[a("van-collapse",{model:{value:t.collapseActive2,callback:function(e){t.collapseActive2=e},expression:"collapseActive2"}},t._l(t.cstData,(function(e){return a("van-collapse-item",{key:e.CstIndex,attrs:{title:e.CstName?e.CstName:t.$t("info.16")+e.CstIndex,name:e.CstIndex}},[a("ul",{staticClass:"panelList"},t._l(e.list,(function(e,s){return a("li",{key:s},[a("span",{staticClass:"hardwareName"},[t._v(t._s(e.Name))]),a("span",{staticClass:"model"},[t._v(t._s(e.Spec))]),a("span",{staticClass:"qty"},[t._v(t._s(e.Count))])])})),0)])})),1),0===t.cstData.length?a("my-empty",{attrs:{description:t.$t("info.315")}}):t._e()],1)])],1)},r=[],l=(a("99af"),a("7db0"),a("4160"),a("a9e3"),a("07ac"),a("ac1f"),a("1276"),a("159b"),a("2909")),o=a("3835"),u={data:function(){return{tabActive:0,collapseActive:[],collapseActive2:[],cstName:"",panelData:[],cstData:[]}},props:{currentCstData:{type:Object},panelCodeList:{type:Array,default:function(){return[]}}},components:{"my-empty":i["a"]},mounted:function(){this.initMaterialData()},methods:{initMaterialData:function(){var t=this;if(0!==Object.values(this.currentCstData).length){var e=this.currentCstData,a=e.Name,s=e.Panel,n=e.Ironware,i=e.AlumStrip,c=e.Glass;this.cstName=a;var r=[],u={};s.forEach((function(e){var a=t.panelCodeList.find((function(t){return t.shortid===e.Id}));if(a&&a.code){e.Code=a.code;var s=a.code.substring(a.code.length-3,a.code.length);e.panelNumber=String(Number(s))}var n=e.Size.split("*"),i=Object(o["a"])(n,3),c=i[0],l=i[1],f=i[2];if(e.width=c,e.height=l,e.depth=f,u[e.CstIndex])r.forEach((function(t){t.CstIndex===e.CstIndex&&t.list.push(e)}));else{t.collapseActive.push(e.CstIndex);var p={CstName:e.CstName,CstIndex:e.CstIndex,list:[e]};r.push(p),u[e.CstIndex]=e.CstIndex}})),r.forEach((function(t){t.list.sort((function(t,e){return t.panelNumber-e.panelNumber}))})),this.panelData=[].concat(r),!n&&(n=[]),!i&&(i=[]),!c&&(c=[]);var f=[].concat(Object(l["a"])(n),Object(l["a"])(i),Object(l["a"])(c)),p=[],d={};f.forEach((function(e){if(d[e.CstIndex])p.forEach((function(t){t.CstIndex===e.CstIndex&&t.list.push(e)}));else{t.collapseActive2.push(e.CstIndex);var a={CstName:e.CstName,CstIndex:e.CstIndex,list:[e]};p.push(a),d[e.CstIndex]=e.CstIndex}})),this.cstData=[].concat(p)}}}},f=u,p=(a("68f2"),a("2877")),d=Object(p["a"])(f,c,r,!1,null,"173dced6",null),v=d.exports,C={data:function(){return{tabsActive:0,cstData:{},panelCodeList:[]}},components:{"my-empty":i["a"],"material-list":v},mounted:function(){}},m=C,b=(a("8c64"),Object(p["a"])(m,s,n,!1,null,"49583610",null));e["default"]=b.exports}}]);