1 |
- {"version":3,"sources":["webpack:///./node_modules/number-precision/build/index.es.js","webpack:///./node_modules/core-js/modules/es.array.find.js","webpack:///./node_modules/core-js/modules/es.array.find-index.js","webpack:///./components/table/NewPriceTable.vue?764e","webpack:///./components/table/TotalTable.vue?2a54","webpack:///./components/table/UnitTable.vue?298b","webpack:///./components/TabNav.vue?128f","webpack:///./components/TabNav.vue?f732","webpack:///./components/TabNav.vue","webpack:///./components/TabNav.vue?f4a8","webpack:///./components/table/NewPriceTable.vue?f351","webpack:///./components/table/TotalTable.vue?7ece","webpack:///./components/table/UnitTable.vue?c20d","webpack:///./components/TabNav.vue?6153","webpack:///./components/product/Quote.vue?6189","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack:///./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack:///./components/product/Quote.vue","webpack:///./components/product/Quote.vue?2674","webpack:///./components/product/Quote.vue?680f","webpack:///./components/table/NewPriceTable.vue?e7b8","webpack:///./components/table/NewPriceTable.vue","webpack:///./components/table/NewPriceTable.vue?e6a6","webpack:///./components/table/TotalTable.vue?ef20","webpack:///./components/table/TotalTable.vue","webpack:///./components/table/TotalTable.vue?c108","webpack:///./components/table/UnitTable.vue","webpack:///./components/table/UnitTable.vue?b71d","webpack:///./components/table/UnitTable.vue?a1ce","webpack:///./components/table/MailTable.vue","webpack:///./components/table/MailTable.vue?6878","webpack:///./components/table/MailTable.vue?447d","webpack:///./components/PriceToImg.vue?2004","webpack:///./components/PriceToImg.vue","webpack:///./components/PriceToImg.vue?8df8","webpack:///./node_modules/core-js/modules/es.array.flat-map.js","webpack:///./node_modules/core-js/internals/flatten-into-array.js","webpack:///./node_modules/core-js/modules/es.array.unscopables.flat-map.js","webpack:///./components/product/Quote.vue?890f"],"names":["strip","num","precision","parseFloat","Number","toPrecision","digitLength","eSplit","toString","split","len","length","float2Fixed","indexOf","replace","dLen","Math","pow","checkBoundary","_boundaryCheckingState","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","console","warn","createOperation","operation","nums","_i","arguments","first","slice","reduce","prev","next","times","num1","num2","num1Changed","num2Changed","baseNum","leftValue","plus","max","minus","divide","$","$find","find","addToUnscopables","FIND","SKIPS_HOLES","Array","target","proto","forced","callbackfn","this","undefined","$findIndex","findIndex","FIND_INDEX","module","exports","props","borderType","type","String","default","fontSize","marginTop","marginBottom","liWidth","liHeight","marginRight","currTab","tabList","Object","allPrintTab","data","textColor","computed","comRemaining","mapTabList","map","i","name","filter","element","includes","methods","selTab","$emit","component","_vm","_c","_self","staticClass","style","isArray","class","_l","item","hasOwnProperty","isShow","key","active","minWidth","height","lineHeight","on","$event","_v","_s","_e","keys","val","_objectWithoutProperties","e","t","o","r","n","call","getOwnPropertySymbols","s","propertyIsEnumerable","components","NewPriceTable","TotalTable","UnitTable","MailTable","dialogXXSuccess","pageData","id","quoteLoadState","curWeek","priceList","initZeroObj","initSetupObj","initUnitObj","initChangeUnitObj","initFrightObj","initTotalObj","xxContentVisible","setup_switch","freight_switch","weight","undecorated_columns","label","prop","align","width","extraWidth","isFirstColumn","decoration_columns","addon_columns","buy_columns","unit_columns","isText","buyData","project","unitData","total","sellData","summary","POA_Config","enquiryFormVisible","enquiryForm","Name","Email","Phone","Comments","enquiryConfig","selectlist","rules","required","message","trigger","pattern","mailData","Url","priceToImgVisible","downloadDialogVisible","commentObj","enquiryConfig1","rules1","specificationsObj","time","model","decoration","addonArr","pdfLoading","_objectSpread","mapState","configInfo","state","userInfo","$store","comCurWeekPrice","comCurPrint","curPrint","comCurBasePrice","basePrice","comLocationNum","locationNum","comCurBaseColumns","part_columns","comCurBaseTotalColumns","d","total_part_columns","concat","_toConsumableArray","remainingAttr","comTotalLabel","sum","comSummaryColumns","comAttributeList","_this$comCurBaseTotal","obj","forEach","comBasePrice","selectBaseRow","comDecoPrice","_this$comCurWeekPrice","_this","idx","keyArr","supplier_val","npTimes","comBuyData","calculateBuyData","comNoSumCol","comHasSumCol","comMergeColumns","comSellData","calculateSellData","comFilterSwitchSellData","_this$comSellData","_this2","mapActions","getQuote","_this3","$axios","post","then","res","localStorage","getItem","JSON","parse","_res$result","result","attributeList","defaultID","a","_step","_iterator","_createForOfIteratorHelper","done","unit","value","$set","err","f","vals","_priceList$keys","additionlist","remaining","_excluded","selectAdditionRow","formatDurationString","nameOrigin","decorationOrign","decorationID","flatMap","max_color","push","max_num","decName","max_color_name","max_point","max_point_name","_loop","_remaining$k","_remaining$k2","copyData","k","_loop2","_a","every","attributeKeys","prototype","freightParam","postcode","freight_type","freight","firstColumns","newColumn","options","index","opt","_defaultID$decoration","_options$decorationOr","decoration_addition","assign","website_setup","catch","log","input","getDebFreight","_","debounce","getFreight","getNumber","row","min","parseInt","sortBy","items","customSort","b","dividePrice","npDivide","getMailData","window","location","href","_this$enquiryForm","_this$userInfo","email","level","createTime","$utils","formatTime","Date","handleDownloadPdf","_this4","$nextTick","$refs","priceToImgRef","htmlToPdf","product_code","stringify","_this5","selPriceArr","apply","_loop3","columnSum","cur","npPlus","toFixed","_loop4","tempIdx","freightType","unitWLocal","unit_w_local","totalWeight","ceil","setupFuel","fuel","setupBagFreight","bag_freight","setupExpressFreight","express_freight","AAEFactor","expressFactor","frightCost","matchIndex","_ref","a1","npMinus","a2","basic","a3","pickup","minimum","unitQTY","_this6","buySetup","buyUnit","buyFright","frightSummary","_loop5","_this6$comCurBaseTota","fa","getChildIdx","_this$comCurBaseColum","setMaxNum","mapMutations","openDialog","setLoading","directives","rawName","expression","attrs","indexs","_items$basePrice","_items$decoration","_items$basePrice2","_items$basePrice3","_items$decorationOrig","ref","callback","$$v","installComponents","TabNav","PriceToImg","filters","multiplyPrice","test","plusPrice","differencePrice","selectRow","temp","supplier","suppliers","noIncludePrice","selSupplier","selSuppliers","isIncludePrice","hasDecAdd","tableData","tableColumns","operateWith","isCheckBox","Boolean","tableType","decorationObj","selectId","multipleSelection","selectDecoration","curModel","decorationMultiple","headerShow","setupConfigList","setupTitleList","getTableContainerClass","comTitle","comDisplayCss","comMultipleSelID","comTableData","mounted","elTable","toggleRowSelection","judgeProp","$index","$_setupPriceFilter","setupPriceID","isNumber","handleSelectionChange","dialogCheck","selection","clearSelection","addCar","currentRow","selrow","parentId","getRowKey","arraySpanMethod","column","rowIndex","columnIndex","tableRowClassName","_ref2","handleSelectable","website_setup_id","domProps","staticStyle","backgroundColor","fontWeight","fontFamily","color","formatter","sortable","scopedSlots","_u","fn","filter_boolean","slot","curDecoVal","indexDecoVal","poaConfig","curDecoration","indexDecoration","curOrder","title","comWidth","scope","_f","selectionShow","handleShow","saveUnitData","setItem","objStyle","checkType","_t","emailForm","loading","isImgSrc","headerColumns","comInfo","_this$pageData","main","created","getBase64Image","image","getColumnHeaderStyle","url","that","Image","src","random","crossOrigin","onload","base64","drawBase64Image","img","canvas","document","createElement","getContext","drawImage","toDataURL","printArea","kh","offsetWidth","offsetHeight","html2Canvas","scale","useCORS","tainttest","logging","dataURL","downloadImage","getUrlBase64","Promise","resolve","ctx","imgUrl","link","download","click","product_name","description","flattenIntoArray","aCallable","toObject","lengthOfArrayLike","arraySpeciesCreate","A","O","sourceLen","doesNotExceedSafeInteger","bind","original","source","start","depth","mapper","thisArg","elementLen","targetIndex","sourceIndex","mapFn"],"mappings":"gGAaA,SAASA,EAAMC,EAAKC,GAEhB,YADkB,IAAdA,IAAwBA,EAAY,KAChCC,WAAWC,OAAOH,GAAKI,YAAYH,GAC/C,CAMA,SAASI,EAAYL,GAEjB,IAAIM,EAASN,EAAIO,WAAWC,MAAM,QAC9BC,GAAOH,EAAO,GAAGE,MAAM,KAAK,IAAM,IAAIE,SAAWJ,EAAO,IAAM,GAClE,OAAOG,EAAM,EAAIA,EAAM,CAC3B,CAOA,SAASE,EAAYX,GACjB,IAAqC,IAAjCA,EAAIO,WAAWK,QAAQ,KACvB,OAAOT,OAAOH,EAAIO,WAAWM,QAAQ,IAAK,KAE9C,IAAIC,EAAOT,EAAYL,GACvB,OAAOc,EAAO,EAAIf,EAAMI,OAAO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d,KAEFC,IAEF,OAAOD,CACT,EAEApf,EAAOC,QAAUke,C,mCC9BM,EAAQ,IAG/Bhf,CAAiB,U,mCCNjB,M","file":"ebae3cb.js","sourcesContent":["/**\r\n * @desc 解决浮动运算问题,避免小数点后产生多位数和计算精度损失。\r\n *\r\n * 问题示例:2.3 + 2.4 = 4.699999999999999,1.0 - 0.9 = 0.09999999999999998\r\n */\r\n/**\r\n * Correct the given number to specifying significant digits.\r\n *\r\n * @param num The input number\r\n * @param precision An integer specifying the number of significant digits\r\n *\r\n * @example strip(0.09999999999999998) === 0.1 // true\r\n */\r\nfunction strip(num, precision) {\r\n if (precision === void 0) { precision = 15; }\r\n return +parseFloat(Number(num).toPrecision(precision));\r\n}\r\n/**\r\n * Return digits length of a number.\r\n *\r\n * @param num The input number\r\n */\r\nfunction digitLength(num) {\r\n // Get digit length of e\r\n var eSplit = num.toString().split(/[eE]/);\r\n var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);\r\n return len > 0 ? len : 0;\r\n}\r\n/**\r\n * Convert the given number to integer, support scientific notation.\r\n * The number will be scale up if it is decimal.\r\n *\r\n * @param num The input number\r\n */\r\nfunction float2Fixed(num) {\r\n if (num.toString().indexOf('e') === -1) {\r\n return Number(num.toString().replace('.', ''));\r\n }\r\n var dLen = digitLength(num);\r\n return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);\r\n}\r\n/**\r\n * Log a warning if the given number is out of bounds.\r\n *\r\n * @param num The input number\r\n */\r\nfunction checkBoundary(num) {\r\n if (_boundaryCheckingState) {\r\n if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {\r\n console.warn(num + \" is beyond boundary when transfer to integer, the results may not be accurate\");\r\n }\r\n }\r\n}\r\n/**\r\n * Create an operation to support rest params.\r\n *\r\n * @param operation The original operation\r\n */\r\nfunction createOperation(operation) {\r\n return function () {\r\n var nums = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n nums[_i] = arguments[_i];\r\n }\r\n var first = nums[0], others = nums.slice(1);\r\n return others.reduce(function (prev, next) { return operation(prev, next); }, first);\r\n };\r\n}\r\n/**\r\n * Accurate multiplication.\r\n *\r\n * @param nums The numbers to multiply\r\n */\r\nvar times = createOperation(function (num1, num2) {\r\n var num1Changed = float2Fixed(num1);\r\n var num2Changed = float2Fixed(num2);\r\n var baseNum = digitLength(num1) + digitLength(num2);\r\n var leftValue = num1Changed * num2Changed;\r\n checkBoundary(leftValue);\r\n return leftValue / Math.pow(10, baseNum);\r\n});\r\n/**\r\n * Accurate addition.\r\n *\r\n * @param nums The numbers to add\r\n */\r\nvar plus = createOperation(function (num1, num2) {\r\n // 取最大的小数位\r\n var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));\r\n // 把小数都转为整数然后再计算\r\n return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;\r\n});\r\n/**\r\n * Accurate subtraction.\r\n *\r\n * @param nums The numbers to subtract\r\n */\r\nvar minus = createOperation(function (num1, num2) {\r\n var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));\r\n return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;\r\n});\r\n/**\r\n * Accurate division.\r\n *\r\n * @param nums The numbers to divide\r\n */\r\nvar divide = createOperation(function (num1, num2) {\r\n var num1Changed = float2Fixed(num1);\r\n var num2Changed = float2Fixed(num2);\r\n checkBoundary(num1Changed);\r\n checkBoundary(num2Changed);\r\n // fix: 类似 10 ** -4 为 0.00009999999999999999,strip 修正\r\n return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));\r\n});\r\n/**\r\n * Accurate rounding method.\r\n *\r\n * @param num The number to round\r\n * @param decimal An integer specifying the decimal digits\r\n */\r\nfunction round(num, decimal) {\r\n var base = Math.pow(10, decimal);\r\n var result = divide(Math.round(Math.abs(times(num, base))), base);\r\n if (num < 0 && result !== 0) {\r\n result = times(result, -1);\r\n }\r\n return result;\r\n}\r\nvar _boundaryCheckingState = true;\r\n/**\r\n * Whether to check the bounds of number, default is enabled.\r\n *\r\n * @param flag The value to indicate whether is enabled\r\n */\r\nfunction enableBoundaryChecking(flag) {\r\n if (flag === void 0) { flag = true; }\r\n _boundaryCheckingState = flag;\r\n}\r\nvar index = {\r\n strip: strip,\r\n plus: plus,\r\n minus: minus,\r\n times: times,\r\n divide: divide,\r\n round: round,\r\n digitLength: digitLength,\r\n float2Fixed: float2Fixed,\r\n enableBoundaryChecking: enableBoundaryChecking,\r\n};\n\nexport { strip, plus, minus, times, divide, round, digitLength, float2Fixed, enableBoundaryChecking };\nexport default index;\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\n// eslint-disable-next-line es/no-array-prototype-find -- testing\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","'use strict';\nvar $ = require('../internals/export');\nvar $findIndex = require('../internals/array-iteration').findIndex;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND_INDEX = 'findIndex';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\n// eslint-disable-next-line es/no-array-prototype-findindex -- testing\nif (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.findIndex` method\n// https://tc39.es/ecma262/#sec-array.prototype.findindex\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND_INDEX);\n","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./TabNav.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./TabNav.vue?vue&type=script&lang=js\"","\nexport default {\n props: {\n // color: {\n // type: String,\n // },\n borderType:{\n type: String,\n default: 'noBorder',\n },\n fontSize: {\n type: Number,\n default: 14,\n },\n marginTop: {\n type: Number,\n default: 0,\n },\n marginBottom: {\n type: Number,\n default: 10,\n },\n liWidth: {\n type: Number,\n default: 0,\n },\n liHeight: {\n type: Number,\n default: 28,\n },\n marginRight: {\n type: Number,\n default: 0,\n },\n currTab: {\n type: [Number, String],\n default: 0,\n },\n tabList: {\n type: [Array, Object],\n default: () => {\n return []\n },\n },\n allPrintTab: {\n type: [Array, Object],\n default: () => {\n return []\n },\n },\n },\n data() {\n return {\n textColor: 'red',\n }\n },\n computed: {\n comRemaining() {\n const mapTabList = this.tabList.map(i => i.name)\n return this.allPrintTab.filter(element => !mapTabList.includes(element))\n },\n },\n methods: {\n selTab(i) {\n this.$emit('update:currTab', i)\n this.$emit('handle')\n },\n },\n}\n","import { render, staticRenderFns } from \"./TabNav.vue?vue&type=template&id=8a32da06&scoped=true\"\nimport script from \"./TabNav.vue?vue&type=script&lang=js\"\nexport * from \"./TabNav.vue?vue&type=script&lang=js\"\nimport style0 from \"./TabNav.vue?vue&type=style&index=0&id=8a32da06&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8a32da06\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewPriceTable.vue?vue&type=style&index=0&id=8da20436&prod&lang=scss&scoped=true\"","export * from \"-!../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TotalTable.vue?vue&type=style&index=0&id=8afd0988&prod&lang=scss&scoped=true\"","export * from \"-!../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UnitTable.vue?vue&type=style&index=0&id=931e8840&prod&lang=scss&scoped=true\"","export * from \"-!../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./TabNav.vue?vue&type=style&index=0&id=8a32da06&prod&lang=scss&scoped=true\"","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","\nimport { mapState, mapMutations, mapActions } from 'vuex'\nimport _ from 'lodash'\nimport { times as npTimes,plus as npPlus, minus as npMinus, divide as npDivide } from 'number-precision';\nimport NewPriceTable from '@/components/table/NewPriceTable'\nimport TotalTable from '@/components/table/TotalTable'\nimport UnitTable from '@/components/table/UnitTable'\nimport MailTable from '@/components/table/MailTable'\nimport dialogXXSuccess from '@/components/DIalogXXSuccess.vue'\n\nexport default {\n components: {\n NewPriceTable,\n TotalTable,\n UnitTable,\n MailTable,\n 'dialog-XX-success': dialogXXSuccess\n },\n props: {\n pageData: {\n type: Object,\n default: () => {\n return {}\n },\n },\n id: {\n type: Number,\n default: null\n },\n },\n data() {\n return {\n quoteLoadState: 0,\n curWeek: 0,\n allPrintTab: [],\n priceList: [],\n initZeroObj: {},\n initSetupObj: {},\n initUnitObj: {},\n initChangeUnitObj: {},\n initFrightObj: {},\n initTotalObj: {},\n xxContentVisible: false,\n setup_switch: false,\n freight_switch: false,\n weight: {},\n undecorated_columns: [\n {\n label: 'MODEL',\n prop: 'model',\n type: 'text',\n align: 'left',\n width: 150,\n extraWidth: 50, // 配合组件 (820-tableColumns[0].width-tableColumns[0].extraWidth)/(tableColumns.length-1)\n isFirstColumn: true, // 去掉$符号\n },\n {\n label: 'SETUP',\n prop: 'website_setup',\n },\n ],\n decoration_columns: [\n {\n label: 'PRINT OPTION',\n prop: 'dec_code',\n type: 'radioInput',\n align: 'left',\n width: 150,\n extraWidth: 50,\n },\n {\n label: 'SETUP',\n prop: 'website_setup',\n },\n ],\n addon_columns: [\n {\n label: 'Addon',\n prop: 'name',\n type: 'text',\n width: 150,\n extraWidth: 50,\n isFirstColumn: true, // 去掉$符号\n },\n {\n label: 'Setup',\n prop: 'website_setup',\n },\n ],\n buy_columns: [\n {\n label: 'QTY',\n prop: 'project',\n isFirstColumn: true, // 去掉$符号\n },\n ],\n unit_columns: [\n {\n label: 'QTY',\n prop: 'total',\n align: 'left',\n isText: true,\n },\n ],\n buyData: [\n { project: 'Setup' },\n { project: 'Unit' },\n { project: 'Freight' },\n { project: 'Total' }\n ],\n unitData: [\n { total: 'Unit Rate %' },\n { total: 'Setup %' },\n { total: 'Freight %' },\n ],\n sellData: [\n { project: 'Postcode',summary: '-' },\n { project: 'Setup',summary: 0.00 },\n { project: 'Unit',summary: 0.00 },\n { project: 'Freight',summary: 0.00 },\n { project: 'Total',summary: 0.00 },\n ],\n POA_Config: ['111', '111.00', '999', '999.00'],\n enquiryFormVisible: false,\n enquiryForm: {\n Name: '',\n Email: '',\n Phone: '',\n 'Customer manager': null,\n Comments: '',\n },\n enquiryConfig: [\n { prop: 'Name', type: 'input' },\n { prop: 'Email', type: 'input' },\n { prop: 'Phone', type: 'input' },\n {\n prop: 'Customer manager',\n type: 'select',\n selectlist: [],\n isShow: true,\n },\n { prop: 'Comments', type: 'textarea' },\n ],\n rules: {\n Name: [{ required: true, message: 'Please enter', trigger: 'blur' }],\n Email: [\n {\n required: true,\n message: 'Please enter the correct format',\n pattern:\n /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,\n trigger: 'blur',\n },\n ],\n Phone: [\n {\n required: true,\n message: 'Please enter the correct format',\n // pattern: /^1[0-9]{10}$/,\n trigger: 'blur',\n },\n ],\n 'Customer manager': [\n { required: true, message: 'Please select', trigger: 'change' },\n ],\n },\n mailData: {\n Url: '',\n },\n priceToImgVisible: false,\n downloadDialogVisible: false,\n commentObj: {\n 'Email Address': '',\n Comments: '',\n },\n enquiryConfig1: [\n { prop: 'Email Address', type: 'input' },\n { prop: 'Comments', type: 'input' },\n ],\n rules1: {\n 'Email Address': [\n {\n required: true,\n message: 'Please enter the correct format',\n pattern:\n /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,\n trigger: 'blur',\n },\n ],\n },\n specificationsObj: {\n time: null,\n model: null,\n decoration: null,\n addonArr: null,\n },\n pdfLoading: false,\n }\n },\n computed: {\n ...mapState('config', { configInfo: state => state.configInfo }),\n userInfo() {\n return this.$store.state.userInfo\n },\n comCurWeekPrice() {\n return this.priceList[this.curWeek] || {}\n },\n comCurPrint() {\n return this.comCurWeekPrice.curPrint\n },\n comCurBasePrice() {\n return this.comCurWeekPrice.basePrice[this.comCurPrint]\n },\n comLocationNum() {\n return +(this.comCurWeekPrice.basePrice[this.comCurPrint].locationNum)\n },\n comCurBaseColumns() {\n return this.comCurBasePrice.part_columns\n },\n comCurBaseTotalColumns() {\n const d = this.comCurWeekPrice.basePrice[this.comCurPrint].total_part_columns\n const n = this.comLocationNum\n if (n === 1) {\n return d\n }else{\n const concatAdd = [...d,...this.comCurWeekPrice.basePrice[this.comCurPrint].remainingAttr].slice(0, n);\n return concatAdd\n }\n },\n comTotalLabel(){\n // 计算所有元素label的和\n return this.comCurBaseTotalColumns.reduce((sum, item) => sum + Number(item.label), 0);\n },\n comSummaryColumns(){\n return [{ label: this.comTotalLabel.toString(), prop: 'summary' }];\n },\n comAttributeList() {\n const obj = {}\n this.comCurBaseTotalColumns?.forEach(item => {\n obj[item.prop] = item.label\n })\n obj.summary = this.comTotalLabel;\n return obj\n },\n // 当前已选基础价\n comBasePrice() {\n return this.comCurBasePrice.selectBaseRow\n },\n // 当前累加打印价\n comDecoPrice() {\n if (!this.comCurWeekPrice.decoration?.length) {\n return []\n }\n const arr = this.comCurWeekPrice.decoration\n .map((item, idx) => {\n const obj = {}\n if (+item.num > 0) {\n for (const i in this.initUnitObj) {\n if (idx === 0) {\n // 首个打印价要取附加价计算\n const keyArr = i.split('_')\n const supplier_val = item[`supplier_${keyArr[1]}`]\n if (this.POA_Config.includes(supplier_val)) {\n obj[`${i}`] = supplier_val\n } else {\n obj[`${i}`] = npTimes(+supplier_val, item.num)\n }\n } else {\n obj[`${i}`] = this.POA_Config.includes(item[i]) ? item[i] : npTimes(+item[i], item.num);\n }\n }\n }\n return obj\n })\n .filter(obj => Object.keys(obj).length !== 0)\n return arr\n },\n comBuyData() {\n this.calculateBuyData();\n return this.buyData\n },\n comNoSumCol(){\n return [\n ...this.buy_columns,\n ...this.comCurBaseTotalColumns\n ]\n },\n comHasSumCol(){\n return [\n ...this.buy_columns,\n ...this.comCurBaseTotalColumns,\n ...this.comSummaryColumns\n ];\n },\n comMergeColumns(){\n return this.comLocationNum == 1 ? this.comNoSumCol:this.comHasSumCol\n },\n comSellData() {\n if (Object.keys(this.comAttributeList).length !== 0) {\n this.calculateSellData();\n }\n return this.sellData\n },\n comFilterSwitchSellData() {\n return this.comSellData?.filter((item, i) => {\n if (i === 1 && this.setup_switch) {\n return false;\n } else if (i === 3 && this.freight_switch) {\n return false;\n } else {\n return item\n }\n })\n },\n },\n methods: {\n ...mapActions(['getUserInfo']),\n\n getQuote() {\n this.$axios\n .post('/uk-api/quote/pricequote', { id: this.id })\n .then(res => {\n if (localStorage.getItem('unit')) {\n this.unitData = JSON.parse(localStorage.getItem('unit'))\n }\n const { attributeList, priceList, default: defaultID } = res.result\n if (\n !Object.keys(attributeList).length ||\n !Object.keys(priceList).length\n ) {\n this.quoteLoadState = 2\n return\n }\n for (const a in attributeList) {\n // 过滤掉website_qty标签无数量\n if (attributeList[a]) {\n this.initZeroObj[a] = 0\n }else{\n delete attributeList[a]\n }\n for (const unit of this.unitData) {\n // 如果对象中缺少 attributeList 的 key,则设置为 40\n if (!(a in unit) || unit[a] === '') {\n this.$set(unit,a,40)\n }\n }\n }\n // 格式化数据,对象改成数组\n for (const keys in priceList) {\n const vals = {}\n const { decoration, additionlist, ...remaining } = priceList[keys]\n vals.basePrice = []\n vals.selectAdditionRow = []\n vals.curPrint = 0\n vals.name = this.formatDurationString(keys)\n vals.nameOrigin = keys\n vals.decorationOrign = [...decoration]\n vals.decorationID = decoration.map(i => i.id)\n vals.decoration = [...decoration].flatMap(item => {\n const result = [];\n if (item.max_color > 0) {\n result.push({ ...item, max_num: item.max_color,id:`${item.id}-1`,decName:item.max_color_name });\n }\n if (item.max_point > 0) {\n result.push({ ...item, max_num: item.max_point,id:`${item.id}-2`,decName:item.max_point_name });\n }\n return result;\n });\n vals.additionlist = additionlist\n for (const k in remaining) {\n const o = {}\n o.attributeList = this.copyData(attributeList)\n if (remaining[k]?.length>1) {\n // 检查数组中各元素的 website_qtyN 是否都等于 \"-\" or \"POA\",则删除key\n for (const a in attributeList) {\n const is111Poa = remaining[k].every(item => this.POA_Config.includes(item[a]));\n if (is111Poa) {\n delete o.attributeList[a]\n }\n }\n }else if (remaining[k]?.length === 1) {\n // 判断 remaining[k][0] 中是否包含 vals.attributeList 的键,并且对应的值都等于 \"-\" or \"POA\",则不删除key\n const obj = remaining[k][0];\n const attributeKeys = Object.keys(o.attributeList);\n const areAllKeysInPOAConfig = attributeKeys.every(key => {\n return Object.prototype.hasOwnProperty.call(obj, key) && this.POA_Config.includes(obj[key]);\n });\n\n if (!areAllKeysInPOAConfig) {\n attributeKeys.forEach(key => {\n if (Object.prototype.hasOwnProperty.call(obj, key) && this.POA_Config.includes(obj[key])) {\n delete o.attributeList[key];\n }\n });\n }\n }\n o.name = k\n o.data = remaining[k]\n o.locationNum = 1\n o.part_columns = Object.keys(o.attributeList).map(e => {\n return { label: o.attributeList[e].toString(), prop: e }\n })\n const freightParam = {\n postcode: '',\n freight_type: 1,\n freight: {}\n }\n o.total_part_columns = this.copyData(o.part_columns).map(obj => ({\n ...obj,\n ...freightParam\n }));\n o.remainingAttr = []\n const firstColumns = { ...o.part_columns[0],...freightParam}\n for(let i = 1; i < 9; i++){\n if(!Object.keys(o.attributeList).includes(`website_qty${i}`)){\n const newColumn = {...firstColumns}\n this.$set(newColumn,'prop',`website_qty${i}`)\n o.remainingAttr.push(newColumn)\n }\n };\n vals.basePrice.push(o)\n if (!this.allPrintTab.includes(k)) {\n this.allPrintTab.push(k)\n }\n }\n this.priceList.push(vals)\n }\n this.priceList.forEach((options, index) => {\n // 原始数据name没空格,需要映射到\n if (options.nameOrigin === defaultID?.name) {\n this.curWeek = index\n options.decorationOrign.forEach((opt, idx) => {\n if (opt.id === defaultID?.decoration?.id) {\n this.$set(options, 'curPrint', idx)\n }\n })\n }\n // 所有周期的所有打印,进来页面时默认勾选第一条价格\n options.basePrice.forEach((opt,idx) => {\n this.$set(opt, 'selectBaseRow', opt.data[0] ||{})\n opt.decoration_addition = [...(options.decorationOrign?.[idx]?.decoration_addition || []),...(options.additionlist || [])]\n })\n options.decoration.forEach(opt => {\n this.$set(opt, 'num', 0)\n })\n })\n\n this.initSetupObj = Object.assign({}, this.initZeroObj)\n this.initUnitObj = Object.assign({}, this.initZeroObj, {\n website_setup: 0,\n })\n this.initFrightObj = Object.assign({}, this.initZeroObj)\n this.buyData = this.buyData.map(item => {\n return { ...item, ...this.initSetupObj }\n })\n this.sellData = this.sellData.map(item => {\n return { ...item, ...this.initSetupObj }\n })\n this.quoteLoadState = 1\n })\n .catch((e) => {\n console.log('this.quoteLoadState1: ', e);\n this.quoteLoadState = 2\n })\n },\n formatDurationString(input) {\n // 匹配数字和字符串的正则表达式\n const regex = /(\\d+)([a-zA-Z]+)/g;\n const result = input.replace(regex, '$1 $2');\n\n return result;\n },\n // getWeight() {\n // this.$axios\n // .post('/api/quote/weight', { id: this.id })\n // .then(res => {\n // this.weight = res.result\n // })\n // .catch(() => {})\n // },\n // getFreight(k) {\n // const postcode = this.comCurBaseTotalColumns[k].postcode\n // const type = this.comCurBaseTotalColumns[k].freight_type\n // const init = { basic:0,pickup:0,minimum:0 }\n // if (postcode.length < 3) {\n // this.comCurBaseTotalColumns[k].freight = init\n // return\n // }\n // this.$axios\n // .post('/api/quote/freight', {\n // postcode,\n // type\n // })\n // .then(res => {\n // this.comCurBaseTotalColumns[k].freight = Array.isArray(res.result)?init:res.result\n // })\n // },\n getDebFreight: _.debounce(function (k) {\n this.getFreight(k)\n }, 200), \n getNumber(e, row, min) {\n if (parseInt(e.target.value) < min) {\n this.xxContentVisible = true;\n row.label = min\n } else {\n this.xxContentVisible = false;\n }\n },\n sortBy(items) {\n // items.decoration.sort(this.customSort(items.decorationID))\n // const targetElement = items.decoration.splice(items.curPrint, 1)[0]\n // items.decoration.unshift(targetElement)\n },\n // 按原打印数组的id字段排序\n customSort(decorationID) {\n return (a, b) => {\n return decorationID.indexOf(a.id) - decorationID.indexOf(b.id)\n }\n },\n dividePrice(a) {\n return npDivide(+a, 100)\n },\n // openMailDialog() {\n // if (this.$utils.checkLogin()) {\n // this.getUserInfo()\n // const { contacts, email, phone, crm_users_id:crmUsersId } = this.userInfo\n // this.enquiryForm.Name = contacts\n // this.enquiryForm.Email = email\n // this.enquiryForm.Phone = phone\n // if (crmUsersId?.length) {\n // this.enquiryConfig[3].selectlist = crmUsersId\n // if (crmUsersId?.length === 1) {\n // this.enquiryForm['Customer manager'] = crmUsersId[0].name\n // }\n // } else {\n // this.enquiryConfig[3].isShow = false\n // this.$delete(this.enquiryForm, 'Customer manager')\n // }\n // this.enquiryFormVisible = true\n // } else {\n // this.openDialog()\n // }\n // },\n getMailData() {\n this.mailData.Url = window.location.href\n const { Name, Email, Phone, Comments } = this.enquiryForm\n this.mailData['Customer Name'] = Name\n this.mailData['Customer Email'] = Email\n this.mailData['Customer Phone'] = Phone\n this.mailData.Comments = Comments\n\n const { email, level, createTime } = this.userInfo\n this.mailData['Member Account'] = email\n this.mailData['Member Grade'] = level.name\n this.mailData['Member Registration time'] = createTime\n this.mailData['Quote time'] = this.$utils.formatTime(new Date())\n },\n // 发送价格邮件 Enquiry按钮\n // async sendPriceMail() {\n // await this.getMailData()\n // await this.getCustomerQuoteData()\n // const {\n // Name,\n // Email,\n // Phone,\n // Comments,\n // 'Customer manager': customerManager,\n // } = this.enquiryForm\n // this.$axios\n // .post('/uk-api/quote/sendenquiry', {\n // content: this.$refs.mailtable.$el.innerHTML,\n // name: Name,\n // email: Email,\n // phone: Phone,\n // customer_manager: customerManager || '',\n // url: this.mailData.Url,\n // product_code: this.pageData.product_code,\n // comments: Comments,\n // member_id: this.userInfo.id,\n // })\n // .then(res => {\n // this.setLoading(false)\n // this.enquiryFormVisible = false\n // this.$confirm('Enquiry Sent', {\n // confirmButtonText: 'OK',\n // showCancelButton: false,\n // type: 'success',\n // center: true,\n // showClose: false,\n // confirmButtonClass: 'com-btnblack',\n // }).then(() => {})\n // })\n // .catch(() => {\n // this.setLoading(false)\n // })\n // },\n // getCustomerQuoteData() {\n // const { name, selectAdditionRow } = this.comCurWeekPrice\n // this.specificationsObj.time = name\n // this.specificationsObj.model = this.comBasePrice.model\n // this.specificationsObj.decoration = this.comCurBasePrice.name\n // if (selectAdditionRow.length) {\n // this.specificationsObj.addonArr = selectAdditionRow.map(\n // item => item.name\n // )\n // } else {\n // this.specificationsObj.addonArr = null\n // }\n // },\n // openDownloadDialog(type) {\n // this.getCustomerQuoteData()\n // type\n // ? (this.downloadDialogVisible = true)\n // : (this.priceToImgVisible = true)\n // },\n handleDownloadPdf() {\n this.pdfLoading = true\n this.$nextTick(() => {\n this.$refs.priceToImgRef.htmlToPdf(this.pageData.product_code)\n })\n },\n // 发送PDF邮件\n // sendPdfMail() {\n // this.$axios\n // .post('/api/quote/sendpdf', {\n // content: this.$refs.pdf.$el.innerHTML,\n // product_code: this.pageData.product_code,\n // email: this.commentObj['Email Address'],\n // })\n // .then(res => {\n // this.setLoading(false)\n // this.downloadDialogVisible = false\n // this.$confirm('Enquiry Sent', {\n // confirmButtonText: 'OK',\n // showCancelButton: false,\n // type: 'success',\n // center: true,\n // showClose: false,\n // confirmButtonClass: 'com-btnblack',\n // })\n // })\n // .catch(() => {\n // this.setLoading(false)\n // })\n // },\n copyData(data) {\n return JSON.parse(JSON.stringify(data))\n },\n calculateBuyData(){\n const selPriceArr = []\n if (JSON.stringify(this.comBasePrice) !== '{}') {\n selPriceArr.push(this.comBasePrice)\n }\n selPriceArr.push(...this.comDecoPrice, ...this.comCurWeekPrice.selectAdditionRow);\n if(selPriceArr.length === 0){\n this.buyData = this.buyData.map(item => ({ ...item, ...this.initZeroObj }));\n return\n }\n // 累加所选,初始数量对应的单价。赋值给this.initUnitObj\n for (const i in this.initUnitObj) {\n const columnSum = this.copyData(selPriceArr).reduce(function (prev, cur) {\n if (cur[i] === '111' || cur[i] === '111.00') {\n return (cur[i] = '-')\n } else if (cur[i] === '999' || cur[i] === '999.00') {\n return (cur[i] = 'POA')\n } else {\n // 当基础价格是-POA,后续累加价格是正常数字价,依然返回-POA\n if (prev === '-' || prev === 'POA') {\n return prev\n }\n return npPlus(+cur[i], prev).toFixed(2)\n }\n }, 0)\n this.$set(this.initUnitObj, i, columnSum)\n }\n\n for (const a in this.comAttributeList) {\n // 每次更改选择价格,必须遍历整个comAttributeList\n const tempIdx = this.comCurBaseColumns.findIndex(\n items => +this.comAttributeList[a] < +items.label\n )\n if (tempIdx > 0) {\n const key = this.comCurBaseColumns[tempIdx - 1].prop\n this.$set(this.initChangeUnitObj, a, this.initUnitObj[key])\n } else {\n const length = this.comCurBaseColumns.length\n const key = this.comCurBaseColumns[length - 1].prop\n this.$set(this.initChangeUnitObj, a, this.initUnitObj[key])\n }\n\n if (\n this.initChangeUnitObj[a] === 'POA' ||\n this.initChangeUnitObj[a] === '-'\n ) {\n this.$set(this.initSetupObj, a, this.initChangeUnitObj[a])\n this.$set(this.initFrightObj, a, this.initChangeUnitObj[a])\n } else {\n this.$set(this.initSetupObj, a, this.initUnitObj.website_setup)\n // 计算运费\n // 单独批次数量的总重\n // weight定义是{},后端没数据传回[]\n const unitWLocal = this.weight.unit_w_local ? +this.weight.unit_w_local : 0;\n const totalWeight = Math.ceil(\n npTimes(unitWLocal, this.comAttributeList[a])\n )\n // Road express 1 AAE:AAEFactor 2\n const setupFuel = this.dividePrice(this.configInfo.fuel)\n const setupBagFreight = this.dividePrice(this.configInfo.bag_freight)\n const setupExpressFreight = this.dividePrice(\n this.configInfo.express_freight\n )\n const AAEFactor = npPlus(1, setupBagFreight, setupFuel)\n const expressFactor = npPlus(1, setupExpressFreight, setupFuel)\n let frightCost = 0\n let freightType\n let postcode\n let freight = {}\n const matchIndex = this.comCurBaseTotalColumns.findIndex(item => item.prop === a)\n // 1,所有按第一个运费统计;不为1,则只计算 comCurBaseTotalColumns的[地址数]长度\n if (+this.comLocationNum === 1 || this.comLocationNum >= matchIndex + 1) {\n ({ freight, freight_type: freightType, postcode } = this.comCurBaseTotalColumns[+this.comLocationNum === 1 ? 0 : matchIndex] || {});\n }\n if (freightType === 1 && postcode >= 3) {\n if (totalWeight > 20) {\n const a1 = npMinus(totalWeight, 20)\n const a2 = npTimes(a1, +freight.basic)\n const a3 = npPlus(+freight.pickup, a2)\n frightCost = npTimes(a3, expressFactor)\n } else {\n frightCost = npTimes(+freight.pickup, expressFactor)\n }\n } else if (freightType === 2 && postcode >= 3) {\n const a1 = npDivide(totalWeight, 5)\n const a2 = npTimes(+freight.minimum, Math.ceil(a1))\n frightCost = npTimes(a2, AAEFactor)\n } else {\n frightCost = 0\n }\n this.$set(this.initFrightObj, a, Math.ceil(frightCost).toFixed(2))\n }\n\n if (\n this.initChangeUnitObj[a] === '-' ||\n this.initChangeUnitObj[a] === 'POA'\n ) {\n this.$set(this.initTotalObj, a, this.initChangeUnitObj[a])\n } else {\n const unitQTY = npTimes(\n this.initChangeUnitObj[a],\n this.comAttributeList[a]\n )\n this.$set(\n this.initTotalObj,\n a,\n npPlus(\n this.initUnitObj.website_setup,\n unitQTY,\n this.initFrightObj[a]\n ).toFixed(2)\n )\n }\n\n if (this.setup_switch) {\n // 业务:Setup价格/对应数量后向上取整\n if (\n this.initChangeUnitObj[a] === '-' ||\n this.initChangeUnitObj[a] === 'POA'\n ) {\n this.$set(this.initChangeUnitObj, a, this.initChangeUnitObj[a])\n } else {\n const num =\n Math.ceil(\n (this.initSetupObj[a] / this.comAttributeList[a]) * 100\n ) / 100\n this.$set(\n this.initChangeUnitObj,\n a,\n npPlus(this.initChangeUnitObj[a], num).toFixed(2)\n )\n }\n }\n if (this.freight_switch) {\n if (\n this.initChangeUnitObj[a] === '-' ||\n this.initChangeUnitObj[a] === 'POA'\n ) {\n this.$set(this.initChangeUnitObj, a, this.initChangeUnitObj[a])\n } else {\n const num =\n Math.ceil(\n (this.initFrightObj[a] / this.comAttributeList[a]) * 100\n ) / 100\n this.$set(\n this.initChangeUnitObj,\n a,\n npPlus(this.initChangeUnitObj[a], num).toFixed(2)\n )\n }\n }\n }\n\n if (this.setup_switch) {\n this.$set(this.buyData, 0, { ...this.buyData[0], ...this.initZeroObj, ...{'summary':0.00} })\n } else {\n this.$set(this.buyData, 0, { ...this.buyData[0], ...this.initSetupObj })\n }\n this.$set(this.buyData, 1, {\n ...this.buyData[1],\n ...this.initChangeUnitObj,\n })\n if (this.freight_switch) {\n this.$set(this.buyData, 2, { ...this.buyData[2], ...this.initZeroObj })\n } else {\n this.$set(this.buyData, 2, {\n ...this.buyData[2],\n ...this.initFrightObj,\n })\n }\n this.$set(this.buyData, 3, { ...this.buyData[3], ...this.initTotalObj })\n },\n calculateSellData() {\n // 放置comSellData计算和副作用的代码\n const buySetup = this.comBuyData[0]\n const buyUnit = this.comBuyData[1]\n const buyFright = this.comBuyData[2]\n let frightSummary = 0\n for (const i in this.comAttributeList) {\n if (buyUnit[i] === '-' || buyUnit[i] === 'POA') {\n this.sellData[0][i] = '-'\n this.sellData[1][i] = buyUnit[i]\n this.sellData[2][i] = buyUnit[i]\n this.sellData[3][i] = buyUnit[i]\n this.sellData[4][i] = buyUnit[i]\n } else {\n const item = this.comLocationNum === 1 ? this.comCurBaseTotalColumns[0] : this.comCurBaseTotalColumns.find(element => element.prop === i);\n this.sellData[0][i] = item && item.postcode !== '' ? item.postcode : '-';\n\n // 分别乘以Markup %表格\n const key = this.comCurBaseTotalColumns[0]?.prop\n if (this.unitData[1] && this.unitData[1][key]) {\n const a = npPlus(this.unitData[1][key] / 100, 1)\n this.sellData[1][i] = npTimes(buySetup[i], a).toFixed(2)\n } else {\n this.sellData[1][i] = buySetup[i]\n }\n\n if (this.unitData[0][i]) {\n const a = npPlus(this.unitData[0][i] / 100, 1)\n this.sellData[2][i] = npTimes(buyUnit[i], a).toFixed(2)\n } else {\n this.sellData[2][i] = buyUnit[i]\n }\n\n if (this.unitData[2] && this.unitData[2][key]) {\n const a = npPlus(this.unitData[2][key] / 100, 1)\n this.sellData[3][i] = npTimes(buyFright[i], a).toFixed(2)\n // freight_switch会使qty的运费=0无法计算,故用了initFrightObj\n const fa = npTimes(this.initFrightObj[i], a)\n frightSummary = npPlus(frightSummary,fa).toFixed(2)\n } else {\n this.sellData[3][i] = buyFright[i]\n frightSummary = npPlus(frightSummary,this.initFrightObj[i]).toFixed(2)\n }\n\n const unitQTY = npTimes(this.sellData[2][i], this.comAttributeList[i])\n this.$set(\n this.sellData[4],\n i,\n npPlus(this.sellData[1][i], unitQTY, this.sellData[3][i]).toFixed(2)\n )\n }\n }\n // 迭代加了Total列,需要统计qty的运费后才能合计运费\n if (this.sellData[2].summary !== '-' && this.sellData[2].summary !== 'POA') {\n if (this.freight_switch) {\n const num = Math.ceil((frightSummary / this.comAttributeList.summary) * 100) / 100\n this.sellData[2].summary = npPlus(this.sellData[2].summary, num).toFixed(2)\n this.sellData[3].summary = 0.00\n const a = npTimes(this.sellData[2].summary,this.comAttributeList.summary)\n this.sellData[4].summary = npPlus(this.sellData[1].summary,a).toFixed(2)\n } else {\n this.sellData[3].summary = frightSummary\n this.sellData[4].summary = npPlus(frightSummary,this.sellData[4].summary).toFixed(2)\n }\n }\n },\n // 低于最小起订量 把该栏的数值重置到最小起订量\n getChildIdx(idx){\n this.xxContentVisible = true;\n this.$set(this.comCurBaseTotalColumns[idx-1],'label',this.comCurBaseColumns[0]?.label)\n },\n setMaxNum(val){\n if(val > 7){\n this.comCurBasePrice.locationNum = 7\n }else if(val < 1){\n this.comCurBasePrice.locationNum = 1\n }\n },\n ...mapMutations({ openDialog: 'openDialog', setLoading: 'product/setLoading' })\n },\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quote.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quote.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Quote.vue?vue&type=template&id=21f896fd&scoped=true\"\nimport script from \"./Quote.vue?vue&type=script&lang=js\"\nexport * from \"./Quote.vue?vue&type=script&lang=js\"\nimport style0 from \"./Quote.vue?vue&type=style&index=0&id=21f896fd&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"21f896fd\",\n null\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {TabNav: require('/Users/wu67/Projects/uk_front/components/TabNav.vue').default,PriceToImg: require('/Users/wu67/Projects/uk_front/components/PriceToImg.vue').default})\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewPriceTable.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NewPriceTable.vue?vue&type=script&lang=js\"","\nimport { times as npTimes,plus as npPlus, minus as npMinus } from 'number-precision';\nexport default {\n filters: {\n // Decoration Table:打印价格+附加价格\n multiplyPrice(a1, row, prop) {\n const rep = /^[0-9]+.?[0-9]*$/\n if (!rep.test(a1)) {\n return a1\n } else {\n return npTimes(a1, row.num)\n }\n },\n // Undecorated Table:基础价格+Decoration所选价格(包含附加价格)\n plusPrice(a1, a2) {\n return a2 ? npPlus(a1, a2) : a1\n },\n // Decoration Table:计算差价\n differencePrice(a1, row, prop, selectRow) {\n const rep = /^[0-9]+.?[0-9]*$/\n if (rep.test(a1)) {\n const temp = prop.split('_')\n\n const supplier = +row[`supplier_${temp[1]}`]\n const suppliers = npTimes(row.num - 1, supplier)\n const noIncludePrice = npPlus(a1, suppliers)\n\n const selSupplier = +selectRow[`supplier_${temp[1]}`]\n const selSuppliers = npTimes(selectRow.num - 1, selSupplier)\n const isIncludePrice = npPlus(+selectRow[prop], selSuppliers)\n\n return noIncludePrice > isIncludePrice\n ? `+${npMinus(noIncludePrice, isIncludePrice)}`\n : npMinus(noIncludePrice, isIncludePrice)\n } else {\n return a1\n }\n },\n },\n props: {\n hasDecAdd: {\n type: Number,\n default: 0,\n },\n tableData: {\n type: Array,\n default: () => {\n return []\n },\n },\n tableColumns: {\n type: Array,\n default: () => {\n return []\n },\n },\n operateWith: {\n type: String,\n default: '100%',\n },\n isCheckBox: {\n type: Boolean,\n default: false,\n },\n tableType: {\n type: String,\n default: 'Undecorated',\n },\n decorationObj: {\n type: Object,\n default: () => {\n return {}\n },\n },\n selectId: {\n type: Number,\n default: null\n },\n selectRow: {\n type: Object,\n default: () => {\n return {}\n },\n },\n multipleSelection: {\n type: Array,\n default: () => {\n return []\n },\n },\n selectDecoration: {\n type: Object,\n default: () => {\n return {}\n },\n },\n curPrint: {\n type: String,\n default: '',\n },\n curModel: {\n type: String,\n default: '',\n },\n marginBottom: {\n type: Number,\n default: 20,\n },\n decorationMultiple: {\n type: Number,\n default: 1,\n },\n headerShow: {\n type: Boolean,\n default: true,\n },\n },\n data() {\n return {\n setupConfigList: [\n { id: 1, name: '/col' },\n { id: 2, name: '/desgin' },\n { id: 3, name: '/pos' },\n { id: 4, name: '/pos desgin' },\n { id: 5, name: 'POA' },\n { id: 6, name: 'Waived' },\n ],\n setupTitleList: ['1st', '2nd', '3rd'],\n }\n },\n computed: {\n getTableContainerClass() {\n // 根据tableType的值返回不同的class\n return {\n 'table-container': true,\n 'border-Decoration': this.tableType === 'Decoration' && this.hasDecAdd\n };\n },\n comTitle() {\n if (this.tableType === 'Undecorated') {\n return `Includes ${this.curModel}`\n } else if (this.tableType === 'Decoration') {\n return `Add-Ons`\n } else {\n return this.curPrint\n }\n },\n comDisplayCss() {\n return this.tableType === 'Comparison' ? '1px solid #efefef' : 'none'\n },\n comMultipleSelID() {\n return this.multipleSelection.map(i => i.id)\n },\n comTableData() {\n if (this.tableType === 'Decoration') {\n return this.tableData\n } else {\n return this.tableData\n }\n },\n },\n mounted() {\n // 初始勾上默认选择打印项\n if (JSON.stringify(this.selectRow) !== '{}') {\n this.$refs.elTable.toggleRowSelection(this.selectRow)\n }\n },\n methods: {\n judgeProp(row, prop, $index) {\n if (\n $index === 0 && this.tableType === 'Decoration'\n ) {\n const temp = prop.split('_')\n return row[`supplier_${temp[1]}`]\n } else {\n return row[prop]\n }\n },\n $_setupPriceFilter(setupPriceID) {\n const result = this.setupConfigList.filter(\n item => item.id === setupPriceID\n )\n return result.length > 0 ? result[0].name : ''\n },\n isNumber(val) {\n const rep = /^[0-9]+.?[0-9]*$/\n return rep.test(val)\n },\n /* 暂不实现此功能\n //点击table栏时选中按钮\n handleCurrentChange(currentRow, oldCurrentRow) {\n this.$refs.elTable.clearSelection()\n this.$emit('update:selectId', currentRow.id)\n this.addCar(currentRow)\n },\n */\n // table全选\n handleSelectionChange(val) {\n this.$emit('update:multipleSelection', val)\n },\n dialogCheck(selection, row) {\n if (this.isCheckBox) return // 是多选框返回\n this.$refs.elTable.clearSelection()\n // 初始化\n if (selection.length === 0) {\n this.$emit('update:selectId', null)\n this.$emit('update:selectRow', {})\n return\n }\n if (row) {\n this.$emit('update:selectId', row.id)\n this.$emit('update:selectRow', row)\n this.$refs.elTable.toggleRowSelection(row, true)\n }\n },\n addCar(currentRow) {\n // 加入购物车需要parentId\n const selrow = Object.assign({}, currentRow)\n selrow.parentId = this.decorationObj.parentId\n this.$emit('update:selectRow', selrow)\n this.$refs.elTable.toggleRowSelection(currentRow)\n },\n getRowKey(row) {\n return row.id\n },\n arraySpanMethod({ row, column, rowIndex, columnIndex }) {\n // 隐藏'Decoration'选项框\n if (this.tableType === 'Decoration' && columnIndex === 0) {\n return [0, 1]\n }\n if (this.tableType === 'Decoration' && columnIndex === 1) {\n return [1, 2]\n }\n },\n tableRowClassName({ row }) {\n if (this.tableType === 'Decoration') {\n return this.decorationMultiple ? 'borderNone' : 'hiddenRow'\n }\n return 'fontBold'\n },\n handleSelectable(row, index) {\n // website_setup_id 5为POA,不可选\n return row.website_setup_id !== 5;\n },\n getNumber(e, row, max) {\n if (parseInt(e) > max) {\n row.num = max\n }\n }\n },\n}\n","import { render, staticRenderFns } from \"./NewPriceTable.vue?vue&type=template&id=8da20436&scoped=true\"\nimport script from \"./NewPriceTable.vue?vue&type=script&lang=js\"\nexport * from \"./NewPriceTable.vue?vue&type=script&lang=js\"\nimport style0 from \"./NewPriceTable.vue?vue&type=style&index=0&id=8da20436&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8da20436\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TotalTable.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TotalTable.vue?vue&type=script&lang=js\"","\nimport { minus as npMinus } from 'number-precision'\n\nexport default {\n filters: {\n differencePrice(a, curDecoVal, indexDecoVal, poaConfig) {\n const rep = /^[0-9]+(\\.[0-9]*)?$/\n if (!rep.test(a)) {\n return a || 'Waived';\n }\n\n if (poaConfig.includes(curDecoVal) || poaConfig.includes(indexDecoVal)) {\n if (curDecoVal === '111' || curDecoVal === '111.00' || indexDecoVal === '111' || indexDecoVal === '111.00') {\n return '-';\n } else if (curDecoVal === '999' || curDecoVal === '999.00' || indexDecoVal === '999' || indexDecoVal === '999.00') {\n return 'POA';\n }\n } else if (curDecoVal === indexDecoVal) {\n return 0;\n } else if (+curDecoVal > +indexDecoVal) {\n return `-£ ${npMinus(curDecoVal, indexDecoVal)}`;\n } else if (+curDecoVal < +indexDecoVal) {\n return `+£ ${npMinus(indexDecoVal, curDecoVal)}`;\n } else {\n return 'Waived';\n }\n }\n\n },\n props: {\n tableData: {\n type: Array,\n default: () => [],\n },\n tableColumns: {\n type: Array,\n default: () => [],\n },\n tableType: {\n type: String,\n default: '',\n },\n curDecoration: {\n type: Object,\n default: () => { },\n },\n indexDecoration: {\n type: Object,\n default: () => { },\n },\n comLocationNum: {\n type: Number,\n default: 1,\n },\n curOrder: {\n type: String,\n default: '',\n },\n min: {\n type: String,\n default: '',\n },\n title: {\n type: String,\n default: '',\n },\n },\n data() {\n return {\n poaConfig: ['111', '111.00', '999', '999.00'],\n }\n },\n methods: {\n getNumber(e, index) {\n if (parseInt(e.target.value) < this.min) {\n this.$emit('send-idx', index);\n }\n },\n },\n computed: {\n comWidth(){\n return 800/this.tableColumns.length - 1\n }\n }\n}\n","import { render, staticRenderFns } from \"./TotalTable.vue?vue&type=template&id=8afd0988&scoped=true\"\nimport script from \"./TotalTable.vue?vue&type=script&lang=js\"\nexport * from \"./TotalTable.vue?vue&type=script&lang=js\"\nimport style0 from \"./TotalTable.vue?vue&type=style&index=0&id=8afd0988&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8afd0988\",\n null\n \n)\n\nexport default component.exports","\nexport default {\n props: {\n tableData: {\n type: Array,\n default: [],\n },\n tableColumns: {\n type: Array,\n default: [],\n },\n operateWith: {\n type: String,\n default: \"100%\",\n },\n selectionShow: {\n type: Boolean,\n default: false,\n },\n handleShow: {\n type: Boolean,\n default: false,\n },\n },\n methods: {\n saveUnitData(row, idx) {\n this.tableData[idx] = row\n localStorage.setItem('unit', JSON.stringify(this.tableData))\n }\n },\n};\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UnitTable.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UnitTable.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./UnitTable.vue?vue&type=template&id=931e8840&scoped=true\"\nimport script from \"./UnitTable.vue?vue&type=script&lang=js\"\nexport * from \"./UnitTable.vue?vue&type=script&lang=js\"\nimport style0 from \"./UnitTable.vue?vue&type=style&index=0&id=931e8840&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"931e8840\",\n null\n \n)\n\nexport default component.exports","\nexport default {\n props: {\n mailData: {},\n buyData: {},\n },\n data() {\n return {\n objStyle: {\n fontWeight: 'bold',\n backgroundColor: '#efefef',\n },\n }\n },\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MailTable.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MailTable.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./MailTable.vue?vue&type=template&id=13e7bb30&scoped=true\"\nimport script from \"./MailTable.vue?vue&type=script&lang=js\"\nexport * from \"./MailTable.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"13e7bb30\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PriceToImg.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./PriceToImg.vue?vue&type=script&lang=js\"","\nimport html2Canvas from \"html2canvas\";\n\nexport default {\n props: {\n pageData: {\n type: Object,\n default: {},\n },\n specificationsObj: {\n type: Object,\n default: {},\n },\n tableData: {\n type: Array,\n default: [],\n },\n tableColumns: {\n type: Array,\n default: [],\n },\n comLocationNum: {\n type: Number,\n default: 1,\n },\n emailForm:{\n type: Object,\n default: {},\n },\n loading: {\n type: Boolean,\n default: false\n },\n isImgSrc: {\n type: Boolean,\n default: true\n },\n width: {\n type: String,\n default: '100%'\n }\n },\n data(){\n return {\n headerColumns: [\n {\n label: \"LeadTime\",\n prop: \"time\",\n type: \"pre\" //去掉$符号\n },\n {\n label: \"Model\",\n prop: \"model\",\n type: \"pre\" //去掉$符号\n },\n {\n label: \"Decoration\",\n prop: \"decoration\",\n type: \"pre\" //去掉$符号\n },\n {\n label: \"Add On\",\n prop: \"addonArr\",\n type: \"pre\" //去掉$符号\n },\n ],\n }\n },\n computed:{\n comInfo(){\n\t\t\treturn this.pageData?.main\n\t\t},\n comWidth(){\n return 100/this.tableColumns.length + '%'\n }\n },\n created(){\n if(!this.isImgSrc){\n this.getBase64Image(this.comInfo.image,'productImg')\n }\n },\n methods: {\n getColumnHeaderStyle(column) {\n if (column.prop === 'project') {\n return { 'font-weight': 'bold' };\n }\n return {};\n },\n //Base64生成产品图片,因为跨域\n getBase64Image (url, ref) {\n var that = this\n var image = new Image()\n image.src = url + '?v=' + Math.random() // 处理缓存\n image.crossOrigin = '*' // 支持跨域图片\n image.onload = function () {\n var base64 = that.drawBase64Image(image)\n that.$refs[ref].src = base64\n }\n },\n drawBase64Image (img) {\n var canvas = document.createElement('canvas')\n canvas.width = img.width\n canvas.height = img.height\n var ctx = canvas.getContext('2d')\n ctx.drawImage(img, 0, 0, img.width, img.height)\n var dataURL = canvas.toDataURL('image/png')\n return dataURL\n },\n htmlToPdf(title){\n const element = this.$refs.printArea;\n const clientWidth = element.offsetWidth;\n const clientHeight = element.offsetHeight;\n const kh = [clientWidth, clientHeight];\n const opts = {\n scale: 1.5, // 缩放比例,提高生成图片清晰度\n useCORS: true, // 允许加载跨域的图片\n // allowTaint: true, // 允许图片跨域,和 useCORS 二者不可共同使用\n tainttest: true, // 检测每张图片已经加载完成\n logging: true, // 日志开关,发布的时候记得改成 false\n };\n html2Canvas(element, opts).then((canvas) => {\n const dataURL = canvas.toDataURL('image/png');\n this.downloadImage(dataURL, kh, title);\n this.$emit('update:loading', false)\n })\n .catch(() => {\n this.$emit('update:loading', false)\n // Bus.$emit(\"finishDownload\");\n });\n },\n getUrlBase64(url, kh) {\n return new Promise((resolve) => {\n let canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d');\n const img = new Image();\n img.crossOrigin = 'Anonymous'; // 允许跨域\n img.src = url;\n img.onload = () => {\n // eslint-disable-next-line prefer-destructuring\n canvas.height = kh[1];\n // eslint-disable-next-line prefer-destructuring\n canvas.width = kh[0];\n ctx.drawImage(img, 0, 0, kh[0], kh[1]);\n const dataURL = canvas.toDataURL('image/png');\n canvas = null;\n resolve(dataURL);\n };\n });\n },\n downloadImage (imgUrl, kh, title) {\n this.getUrlBase64(imgUrl, kh).then((base64) => {\n const link = document.createElement('a');\n link.href = base64;\n link.download = `${title}.png`;\n link.click();\n });\n },\n },\n};\n","import { render, staticRenderFns } from \"./PriceToImg.vue?vue&type=template&id=2e991f10\"\nimport script from \"./PriceToImg.vue?vue&type=script&lang=js\"\nexport * from \"./PriceToImg.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = lengthOfArrayLike(O);\n var A;\n aCallable(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar bind = require('../internals/function-bind-context');\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg) : false;\n var element, elementLen;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n elementLen = lengthOfArrayLike(element);\n targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;\n } else {\n doesNotExceedSafeInteger(targetIndex + 1);\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","'use strict';\n// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flatMap');\n","export * from \"-!../../node_modules/extract-css-chunks-webpack-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Quote.vue?vue&type=style&index=0&id=21f896fd&prod&lang=scss&scoped=true\""],"sourceRoot":""}
|