12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[57,22,43,45],{521:function(e,t,n){"use strict";var r=n(2),o=n(26),l=n(10),c=n(6),path=n(317),d=n(4),f=n(117),m=n(13),h=n(215),_=n(59),v=n(116),y=n(316),w=n(3),N=n(97).f,T=n(60).f,C=n(27).f,S=n(522),I=n(318).trim,x="Number",j=c[x],O=path[x],P=j.prototype,E=c.TypeError,M=d("".slice),A=d("".charCodeAt),$=function(e){var t,n,r,o,l,c,d,code,f=y(e,"number");if(v(f))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=I(f),43===(t=A(f,0))||45===t){if(88===(n=A(f,2))||120===n)return NaN}else if(48===t){switch(A(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(c=(l=M(f,2)).length,d=0;d<c;d++)if((code=A(l,d))<48||code>o)return NaN;return parseInt(l,r)}return+f},F=f(x,!j(" 0o1")||!j("0b1")||j("+0x1")),D=function(e){var t,n=arguments.length<1?0:j(function(e){var t=y(e,"number");return"bigint"==typeof t?t:$(t)}(e));return _(P,t=this)&&w((function(){S(t)}))?h(Object(n),this,D):n};D.prototype=P,F&&!o&&(P.constructor=D),r({global:!0,constructor:!0,wrap:!0,forced:F},{Number:D});var R=function(e,source){for(var t,n=l?N(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;n.length>r;r++)m(source,t=n[r])&&!m(e,t)&&C(e,t,T(source,t))};o&&O&&R(path[x],O),(F||o)&&R(path[x],j)},522:function(e,t,n){"use strict";var r=n(4);e.exports=r(1..valueOf)},524:function(e,t,n){"use strict";var r=n(2),o=n(4),l=n(80),c=n(522),d=n(319),f=n(3),m=RangeError,h=String,_=Math.floor,v=o(d),y=o("".slice),w=o(1..toFixed),N=function(e,t,n){return 0===t?n:t%2==1?N(e,t-1,n*e):N(e*e,t/2,n)},T=function(data,e,t){for(var n=-1,r=t;++n<6;)r+=e*data[n],data[n]=r%1e7,r=_(r/1e7)},C=function(data,e){for(var t=6,n=0;--t>=0;)n+=data[t],data[t]=_(n/e),n=n%e*1e7},S=function(data){for(var e=6,s="";--e>=0;)if(""!==s||0===e||0!==data[e]){var t=h(data[e]);s=""===s?t:s+v("0",7-t.length)+t}return s};r({target:"Number",proto:!0,forced:f((function(){return"0.000"!==w(8e-5,3)||"1"!==w(.9,0)||"1.25"!==w(1.255,2)||"1000000000000000128"!==w(0xde0b6b3a7640080,0)}))||!f((function(){w({})}))},{toFixed:function(e){var t,n,r,o,d=c(this),f=l(e),data=[0,0,0,0,0,0],_="",w="0";if(f<0||f>20)throw new m("Incorrect fraction digits");if(d!=d)return"NaN";if(d<=-1e21||d>=1e21)return h(d);if(d<0&&(_="-",d=-d),d>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(d*N(2,69,1))-69)<0?d*N(2,-t,1):d/N(2,t,1),n*=4503599627370496,(t=52-t)>0){for(T(data,0,n),r=f;r>=7;)T(data,1e7,0),r-=7;for(T(data,N(10,r,1),0),r=t-1;r>=23;)C(data,1<<23),r-=23;C(data,1<<r),T(data,1,1),C(data,2),w=S(data)}else T(data,0,n),T(data,1<<-t,0),w=S(data)+v("0",f);return w=f>0?_+((o=w.length)<=f?"0."+v("0",f-o)+w:y(w,0,o-f)+"."+y(w,o-f)):_+w}})},528:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=15),+parseFloat(Number(e).toPrecision(t))}function o(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function l(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=o(e);return t>0?r(Number(e)*Math.pow(10,t)):Number(e)}function c(e){v&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&console.warn(e+" is beyond boundary when transfer to integer, the results may not be accurate")}function d(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t.slice(1).reduce((function(t,n){return e(t,n)}),r)}}n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return _}));var f=d((function(e,t){var n=l(e),r=l(t),d=o(e)+o(t),f=n*r;return c(f),f/Math.pow(10,d)})),m=d((function(e,t){var n=Math.pow(10,Math.max(o(e),o(t)));return(f(e,n)+f(t,n))/n})),h=d((function(e,t){var n=Math.pow(10,Math.max(o(e),o(t)));return(f(e,n)-f(t,n))/n})),_=d((function(e,t){var n=l(e),d=l(t);return c(n),c(d),f(n/d,r(Math.pow(10,o(t)-o(e))))}));var v=!0},601:function(e,t,n){e.exports={}},647:function(e,t,n){"use strict";n(601)},723:function(e,t,n){"use strict";n.r(t);n(524),n(40),n(64),n(39),n(521),n(11),n(17);var r=n(528),o={filters:{multiplyPrice:function(e,t,n){return/^[0-9]+.?[0-9]*$/.test(e)?Object(r.d)(e,t.num):e},plusPrice:function(e,t){return t?Object(r.c)(e,t):e},differencePrice:function(e,t,n,o){if(/^[0-9]+.?[0-9]*$/.test(e)){var l=n.split("_"),c=+t["supplier_".concat(l[1])],d=Object(r.d)(t.num-1,c),f=Object(r.c)(e,d),m=+o["supplier_".concat(l[1])],h=Object(r.d)(o.num-1,m),_=Object(r.c)(+o[n],h);return f>_?"+".concat(Object(r.b)(f,_)):Object(r.b)(f,_)}return e}},props:{hasDecAdd:{type:Number,default:0},tableData:{type:Array,default:function(){return[]}},tableColumns:{type:Array,default:function(){return[]}},operateWith:{type:String,default:"100%"},isCheckBox:{type:Boolean,default:!1},tableType:{type:String,default:"Undecorated"},decorationObj:{type:Object,default:function(){return{}}},selectId:{type:Number,default:null},selectRow:{type:Object,default:function(){return{}}},multipleSelection:{type:Array,default:function(){return[]}},selectDecoration:{type:Object,default:function(){return{}}},curPrint:{type:String,default:""},curModel:{type:String,default:""},marginBottom:{type:Number,default:20},decorationMultiple:{type:Number,default:1},headerShow:{type:Boolean,default:!0}},data:function(){return{setupConfigList:[{id:1,name:"/col"},{id:2,name:"/desgin"},{id:3,name:"/pos"},{id:4,name:"/pos desgin"},{id:5,name:"POA"},{id:6,name:"Waived"}],setupTitleList:["1st","2nd","3rd"]}},computed:{getTableContainerClass:function(){return{"table-container":!0,"border-Decoration":"Decoration"===this.tableType&&this.hasDecAdd}},comTitle:function(){return"Undecorated"===this.tableType?"Includes ".concat(this.curModel):"Decoration"===this.tableType?"Add-Ons":this.curPrint},comDisplayCss:function(){return"Comparison"===this.tableType?"1px solid #efefef":"none"},comMultipleSelID:function(){return this.multipleSelection.map((function(i){return i.id}))},comTableData:function(){return this.tableType,this.tableData}},mounted:function(){"{}"!==JSON.stringify(this.selectRow)&&this.$refs.elTable.toggleRowSelection(this.selectRow)},methods:{judgeProp:function(e,t,n){if(0===n&&"Decoration"===this.tableType){var r=t.split("_");return e["supplier_".concat(r[1])]}return e[t]},$_setupPriceFilter:function(e){var t=this.setupConfigList.filter((function(t){return t.id===e}));return t.length>0?t[0].name:""},isNumber:function(e){return/^[0-9]+.?[0-9]*$/.test(e)},handleSelectionChange:function(e){this.$emit("update:multipleSelection",e)},dialogCheck:function(e,t){if(!this.isCheckBox){if(this.$refs.elTable.clearSelection(),0===e.length)return this.$emit("update:selectId",null),void this.$emit("update:selectRow",{});t&&(this.$emit("update:selectId",t.id),this.$emit("update:selectRow",t),this.$refs.elTable.toggleRowSelection(t,!0))}},addCar:function(e){var t=Object.assign({},e);t.parentId=this.decorationObj.parentId,this.$emit("update:selectRow",t),this.$refs.elTable.toggleRowSelection(e)},getRowKey:function(e){return e.id},arraySpanMethod:function(e){e.row,e.column,e.rowIndex;var t=e.columnIndex;return"Decoration"===this.tableType&&0===t?[0,1]:"Decoration"===this.tableType&&1===t?[1,2]:void 0},tableRowClassName:function(e){e.row;return"Decoration"===this.tableType?this.decorationMultiple?"borderNone":"hiddenRow":"fontBold"},handleSelectable:function(e,t){return 5!==e.website_setup_id},getNumber:function(e,t,n){parseInt(e)>n&&(t.num=n)}}},l=(n(647),n(22)),component=Object(l.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrap",style:{marginBottom:e.marginBottom+"px"}},["Addon"!=e.tableType?t("p",{staticClass:"tb-title",domProps:{innerHTML:e._s(e.comTitle)}}):e._e(),e._v(" "),t("div",{class:e.getTableContainerClass},[t("el-table",{ref:"elTable",staticStyle:{width:"100%"},attrs:{"show-header":"Addon"!=e.tableType,data:e.comTableData,"header-cell-style":{backgroundColor:"#fff",fontWeight:"normal",fontSize:"14px",fontFamily:"Proxima Nova",color:"#000","--comDisplayCss":e.comDisplayCss},"row-key":"id","span-method":e.arraySpanMethod,"row-class-name":e.tableRowClassName},on:{"selection-change":e.handleSelectionChange,select:e.dialogCheck}},["Comparison"!=e.tableType?t("el-table-column",{attrs:{type:"selection",width:"50",align:"center","reserve-selection":!0,selectable:e.handleSelectable}}):e._e(),e._v(" "),e._l(e.tableColumns,(function(n){return[n.type?t("el-table-column",{key:n.prop,attrs:{align:n.align?n.align:"left",prop:n.prop,label:n.label,formatter:n.formatter,width:n.width,sortable:n.sortable},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.row;return["radioInput"==n.type?[t("div",{staticClass:"flex between"},[t("span",[e._v(e._s(o.decName))]),e._v(" "),t("el-input",{staticClass:"edit-input",attrs:{min:"0",max:o.max_num,type:"number",size:"small"},on:{input:function(t){return e.getNumber(t,o,o.max_num)}},model:{value:o.num,callback:function(t){e.$set(o,"num",t)},expression:"row.num"}})],1)]:t("div",[o.filter_boolean?[t("div",{staticClass:"triangle"}),e._v(" "),t("div",{staticClass:"text"},[e._v("Eco")])]:e._e(),e._v("\n "+e._s(o[n.prop])+"\n "),"Undecorated"==e.tableType?t("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t("i",{staticClass:"el-icon-warning",attrs:{slot:"reference"},slot:"reference"}),e._v(" "),t("p",{staticClass:"popover-text"},[e._v(e._s(e.comTitle))])]):e._e()],2)]}}],null,!0)}):e._e(),e._v(" "),n.type?e._e():t("el-table-column",{key:n.prop,attrs:{align:n.align?n.align:"center",prop:n.prop,label:n.label,formatter:n.formatter,sortable:n.sortable,"show-overflow-tooltip":"",width:(798-e.tableColumns[0].width-e.tableColumns[0].extraWidth)/(e.tableColumns.length-1)},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.row,l=r.$index;return["website_setup"===n.prop?t("div",[0===l&&"Decoration"==e.tableType?t("div",[o.supplier_setup_id<5||7==o.supplier_setup_id?t("span",[e._v("$ "+e._s(o.supplier_setup?parseFloat(o.supplier_setup).toFixed(2):"0.00"))]):e._e(),e._v(" "),t("span",[e._v(e._s(e.$_setupPriceFilter(o.supplier_setup_id)))])]):t("div",[o.website_setup_id<5||7==o.website_setup_id?t("span",[e._v("$ "+e._s(o.website_setup?parseFloat(o.website_setup).toFixed(2):"0.00"))]):e._e(),e._v(" "),t("span",[e._v(e._s(e.$_setupPriceFilter(o.website_setup_id)))])])]):"111"==e.judgeProp(o,n.prop,l)||"111.00"==e.judgeProp(o,n.prop,l)?t("div",[e._v("\n -\n ")]):"999"==e.judgeProp(o,n.prop,l)||"999.00"===e.judgeProp(o,n.prop,l)?t("div",[e._v("\n POA\n ")]):""===e.judgeProp(o,n.prop,l)?t("div",[e._v("0")]):t("div",[e.isNumber(e.judgeProp(o,n.prop,l))&&!n.isFirstColumn?t("span",[e._v("$")]):e._e(),e._v(" "),t("span",[e._v(e._s(e.judgeProp(o,n.prop,l)))])])]}}],null,!0)})]}))],2)],1)])}),[],!1,null,"05e92126",null);t.default=component.exports}}]);
- //# sourceMappingURL=b430d13.js.map
|