7d408e6.js.map 70 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/core-js/internals/create-html.js","webpack:///./node_modules/core-js/internals/string-html-forced.js","webpack:///./node_modules/number-precision/build/index.es.js","webpack:///./node_modules/core-js/modules/es.number.is-nan.js","webpack:///./components/addAddressDialog.vue?b4fa","webpack:///./components/product-builder/stepMixin.vue","webpack:///./components/product-builder/stepMixin.vue?a5af","webpack:///./components/product-builder/stepMixin.vue?be74","webpack:///./utils/price.js","webpack:///./node_modules/core-js/modules/es.math.trunc.js","webpack:///./components/addAddressDialog.vue?535f","webpack:///./components/addAddressDialog.vue","webpack:///./components/addAddressDialog.vue?66e9","webpack:///./components/addAddressDialog.vue?b4d1","webpack:///./components/product-builder/DialogSelectAddr.vue?ae2a","webpack:///./components/product-builder/DialogSelectAddr.vue?90a6","webpack:///./components/product-builder/step-3.vue?280b","webpack:///./components/product-builder/DialogSelectAddr.vue","webpack:///./components/product-builder/DialogSelectAddr.vue?2f99","webpack:///./components/product-builder/DialogSelectAddr.vue?a728","webpack:///./node_modules/core-js/modules/es.string.fixed.js","webpack:///./components/product-builder/step-3.vue?f6ef","webpack:///./components/product-builder/step-3.vue","webpack:///./components/product-builder/step-3.vue?c74f","webpack:///./components/product-builder/step-3.vue?cde1"],"names":["uncurryThis","requireObjectCoercible","toString","quot","replace","module","exports","string","tag","attribute","value","S","p1","fails","METHOD_NAME","test","toLowerCase","split","length","strip","num","precision","parseFloat","Number","toPrecision","digitLength","eSplit","len","float2Fixed","indexOf","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","$","target","stat","isNaN","number","name","components","props","loading","type","Boolean","default","priceData","Object","priceList","attributeList","additionList","detail","info","images","preData","data","computed","watch","form","deep","handler","this","loaded","$_emitFormData","mounted","methods","$emit","JSON","parse","stringify","component","_c","_self","formatPrice","needSymbol","undefined","concat","round","ratio","multiply","transformNumber","v","trunc","getUnit","buyNum","index","basePriceList","candidate","entries","filter","item","key","pop","getSetup","total","current","s","enable","temp","colorForm","i","id","printService","colorNumber","decoration","decorationList","setup","website_setup","supplier_setup","addition","includes","t","c","website_setup_id","getPrint","key2","result","sum","p2","price","getAddon","getPackaging","getFright","config","freight","weight","totalWeight","ceil","unit_w_local","expressFactor","express_freight","fuel","AAEFactor","bag_freight","frightCost","a1","a2","basic","a3","pickup","dialogVisible","componentVisible","country","phone","address","post_code","city","state","is_default","options","rules","required","message","trigger","cityList","stateList","dialogFormVisible","get","set","val","submit","ruleForm","_this","$refs","validate","valid","log","addAddress","$route","fullPath","$router","push","path","query","editAddress","_this2","$axios","post","then","res","code","$notify","title","duration","update","catch","error","$message","response","msg","_this3","_vm","attrs","on","$event","ref","_v","model","callback","$$v","$set","expression","staticStyle","staticClass","slot","filters","addressDetail","visible","addressList","Array","show","selectedId","computedList","generateAddressList","map","_objectSpread","selected","close","newAddr","handleCurrentChange","row","p3","table","setCurrentRow","scopedSlots","_u","fn","scope","_s","createHTML","proto","forced","forcedStringHTMLMethod","fixed","addAddressDialog","selectAddressDialog","mixins","stepMixin","cycle","buyForm","form2","weightInfo","job","defaultAddr","freight_type","note","freightLoading","freightInfo","sellFreight","visibleOfSelectAddressDialog","visibleOfEditAddressDialog","patternOfEditAddressDialog","jobOptions","priceTableColumns","prop","label","dynamicPriceTableColumns","dynamicPriceTableData","priceTableData","qty","mapState","configInfo","computedPriceData","cycle_id","computedBasePriceData","computedBasePriceIndex","findIndex","computedPrintPriceData","computedPriceTableColumns","computedPriceTableData","assign","getFreight","immediate","getDynamicPriceTableData","_this4","localStorage","getItem","getAddressData","getJobList","checkForm","_this5","Promise","resolve","reject","Error","addToProject","sendEnquiry","_this6","keyword","_this7","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","params","page","limit","addressTotal","abrupt","sent","stop","closeAddressDialog","selectAddress","closeSelectAddressDialog","_this8","forEach","unitPrice","setupPrice","printPrice","addonPrice","packagingPrice","frightPrice","curr","_","debounce","_this9","postcode","finally","setTimeout","directives","rawName","_l","column","width","label_type","installComponents","AddAddressDialog"],"mappings":"iGACA,IAAIA,EAAc,EAAQ,GACtBC,EAAyB,EAAQ,IACjCC,EAAW,EAAQ,IAEnBC,EAAO,KACPC,EAAUJ,EAAY,GAAGI,SAI7BC,EAAOC,QAAU,SAAUC,EAAQC,EAAKC,EAAWC,GACjD,IAAIC,EAAIT,EAASD,EAAuBM,IACpCK,EAAK,IAAMJ,EAEf,MADkB,KAAdC,IAAkBG,GAAM,IAAMH,EAAY,KAAOL,EAAQF,EAASQ,GAAQP,EAAM,UAAY,KACzFS,EAAK,IAAMD,EAAI,KAAOH,EAAM,GACrC,C,mCCdA,IAAIK,EAAQ,EAAQ,GAIpBR,EAAOC,QAAU,SAAUQ,GACzB,OAAOD,GAAM,WACX,IAAIE,EAAO,GAAGD,GAAa,KAC3B,OAAOC,IAASA,EAAKC,eAAiBD,EAAKE,MAAM,KAAKC,OAAS,CACjE,GACF,C,mCCGA,SAASC,EAAMC,EAAKC,GAEhB,YADkB,IAAdA,IAAwBA,EAAY,KAChCC,WAAWC,OAAOH,GAAKI,YAAYH,GAC/C,CAMA,SAASI,EAAYL,GAEjB,IAAIM,EAASN,EAAIlB,WAAWe,MAAM,QAC9BU,GAAOD,EAAO,GAAGT,MAAM,KAAK,IAAM,IAAIC,SAAWQ,EAAO,IAAM,GAClE,OAAOC,EAAM,EAAIA,EAAM,CAC3B,CAOA,SAASC,EAAYR,GACjB,IAAqC,IAAjCA,EAAIlB,WAAW2B,QAAQ,KACvB,OAAON,OAAOH,EAAIlB,WAAWE,QAAQ,IAAK,KAE9C,IAAI0B,EAAOL,EAAYL,GACvB,OAAOU,EAAO,EAAIX,EAAMI,OAAOH,GAAOW,KAAKC,IAAI,GAAIF,IAASP,OAAOH,EACvE,CAMA,SAASa,EAAcb,GACfc,IACId,EAA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MAAM,CAACoI,YAAY,QAAQ,CAACpI,EAAG,OAAO,CAACoI,YAAY,oCAAoCZ,EAAIK,GAAG,4CAA4C,GAAGL,EAAIK,GAAG,KAAK7H,EAAG,qBAAqB,CAACyH,MAAM,CAAC,cAAgBD,EAAI2D,2BAA2B,KAAO3D,EAAIe,cAAc,iBAAmBf,EAAI4D,4BAA4B1D,GAAG,CAAC,uBAAuB,SAASC,GAAQH,EAAI2D,2BAA2BxD,CAAM,EAAE,wBAAwB,SAASA,GAAQH,EAAI2D,2BAA2BxD,CAAM,EAAE,MAAQH,EAAIgH,mBAAmB,OAAShH,EAAIsF,kBAAkBtF,EAAIK,GAAG,KAAK7H,EAAG,wBAAwB,CAACyH,MAAM,CAAC,cAAgBD,EAAIrI,KAAKyL,YAAY,YAAcpD,EAAIiB,YAAY,QAAUjB,EAAI0D,8BAA8BxD,GAAG,CAAC,iBAAiB,SAASC,GAAQH,EAAI0D,6BAA6BvD,CAAM,EAAE,eAAeH,EAAIxB,WAAW,cAAcwB,EAAIiH,cAAc,MAAQjH,EAAIkH,6BAA6B,IACnwJ,GACsB,IEUpB,EACA,KACA,WACA,MAIa,UAAA3O,UAAiB,QAGhCiQ,kBAAkBjQ,UAAW,CAACkQ,iBAAkB,EAAQ,KAAkE3R,S","file":"7d408e6.js","sourcesContent":["'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar quot = /\"/g;\nvar replace = uncurryThis(''.replace);\n\n// `CreateHTML` abstract operation\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = toString(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + replace(toString(value), quot, '&quot;') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","/**\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');\n\n// `Number.isNaN` method\n// https://tc39.es/ecma262/#sec-number.isnan\n$({ target: 'Number', stat: true }, {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number;\n }\n});\n","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","\n/* 仅用于本目录3个step表单组件的共享逻辑 */\nexport default {\n name: 'StepMixin',\n components: {},\n props: {\n loading: { type: Boolean, default: false },\n priceData: {\n type: Object,\n default: function () {\n return { priceList: [], attributeList: {}, additionList: {} }\n },\n },\n detail: {\n type: Object,\n default: function () {\n return { info: { images: [] } }\n },\n },\n preData: {\n type: Object,\n default: function () {\n return {}\n },\n },\n },\n\n data() {\n return {}\n },\n computed: {},\n watch: {\n form: {\n deep: true,\n handler: function () {\n if (this.loaded) {\n this.$_emitFormData()\n }\n },\n },\n },\n mounted() {},\n methods: {\n // 将this.form 自动传递给父组件\n $_emitFormData() {\n this.$emit('update-form', JSON.parse(JSON.stringify(this.form)))\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!./stepMixin.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!./stepMixin.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./stepMixin.vue?vue&type=template&id=bbcc9c86&scoped=true\"\nimport script from \"./stepMixin.vue?vue&type=script&lang=js\"\nexport * from \"./stepMixin.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 \"bbcc9c86\",\n null\n \n)\n\nexport default component.exports","// 商品价格计算相关\nimport { times, plus, minus, divide } from 'number-precision'\n\n// 价格格式化\nexport function formatPrice(value, needSymbol = true) {\n // 不能在最后一步显示之前格式化999 111, 否则可能出现单价1买999个得到999价格被格式化成poa的情况\n if (value === 0) {\n return needSymbol ? '$0.00' : '0.00'\n } else {\n return needSymbol ? `$${value}` : `${value}`\n }\n}\n\n// 简单的乘法换算\nfunction multiply(value, ratio = 100) {\n return parseFloat((value * ratio).toPrecision(12))\n}\n// 小数处理, 四舍五入, 为toFixed做准备\nexport function round(number, ratio = 100) {\n return Math.round(multiply(number, ratio)) / ratio\n}\n\n/**\n * 将字符串简单转换成数字, 并可数倍转换. 注意, 这个适用于整数倍(商品件数), 非整数的不能用这个处理小数.\n * @param {*} value 目标值\n * @param {*} ratio 倍数, 默认1\n * @returns number | origin, 转换后的数字, 无法转成数字的返回原值\n */\nexport function transformNumber(value, ratio = 1) {\n const v = Number(value)\n if (Number.isNaN(v)) {\n return value\n } else {\n // 保留两位小数\n return divide(Math.trunc(times(times(v, ratio), 100)), 100)\n }\n}\n\n// unit 单个商品的, 没有乘数量. 因为含有111 999 这些极端值, 没有格式化输出之前直接乘回出问题的.\nexport const getUnit = function (buyNum, index, attributeList, basePriceList) {\n // 算出购买数量位于 价格阶梯的 哪个区间\n const candidate = Object.entries(attributeList).filter(\n item => buyNum >= item[1]\n )\n\n let key = 'website_qty1'\n if (candidate.length) {\n key = candidate.pop()[0]\n }\n\n return transformNumber(basePriceList[index][key], buyNum)\n}\n\n// 打印和附加价格 的steup之和. 商品基础价格现在没有setup了.\nexport const getSetup = function (buyNum, form, additionList) {\n const sum = Object.entries(form).reduce((total, current) => {\n let s = 0\n // 打印服务表单的数据跟附加服务表单的数据结构不一致, 以数字id字符串键名的是打印服务的数据\n if (/\\d+/.test(current[0]) && current[1].enable) {\n const temp = current[1].colorForm.filter(\n i => i.id === current[1].printService\n )\n let colorNumber = 1\n if (temp.length) {\n colorNumber = temp[0].colorNumber\n }\n\n const decoration = current[1].decorationList.filter(\n i => i.id === current[1].printService\n )\n let setup = 0\n if (decoration.length) {\n setup = plus(\n Number(decoration[0].website_setup),\n times(Number(decoration[0].supplier_setup), colorNumber - 1)\n )\n }\n s = plus(s, setup)\n } else if (current[1].length) {\n // 附加服务的表单数据, 有值说明该项有选中了附加服务\n const addition = additionList[current[0]].filter(addition =>\n current[1].includes(addition.id)\n )\n\n if (addition.length) {\n const temp = addition.reduce((t, c) => {\n let value = Number(c.website_setup)\n if ([5, 6].includes(c.website_setup_id)) {\n // 5是poa, 6是waived. 这种情况一般setup是留空的, 不留空大概是异常数据, 重置0保险一点.\n value = 0\n }\n return plus(t, Number.isNaN(value) ? 0 : value)\n }, 0)\n\n s = plus(s, temp)\n }\n }\n\n total = plus(total, s)\n return total\n }, 0)\n return transformNumber(sum)\n}\n\n// 打印价格的 阶梯基础价*购买数量.\nexport const getPrint = function (buyNum, form, attributeList) {\n // 算出购买数量位于 价格阶梯的 哪个区间\n const candidate = Object.entries(attributeList).filter(\n item => buyNum >= item[1]\n )\n const key = `website_qty${candidate.length}`\n const key2 = `supplier_qty${candidate.length}`\n\n // 如果其中一项为POA, 则‘和’都是POA\n const result = Object.entries(form).reduce((total, current) => {\n if (total === 'POA') {\n return total\n }\n let sum = 0\n if (/\\d+/.test(current[0]) && current[1].enable) {\n const temp = current[1].colorForm.filter(\n i => i.id === current[1].printService\n )\n let colorNumber = 1\n if (temp.length) {\n colorNumber = temp[0].colorNumber\n }\n\n const decoration = current[1].decorationList.filter(\n i => i.id === current[1].printService\n )\n // 打印价格的基础价. 其中数字111(代表'-') 和999(代表'POA')\n const p1 = transformNumber(decoration[0][key])\n if (p1 === 999 || p1 === 111 || typeof p1 !== 'number') {\n return 'POA'\n }\n // 打印价格的附加价\n const p2 = transformNumber(decoration[0][key2])\n if (p2 === 999 || p2 === 111 || typeof p2 !== 'number') {\n return 'POA'\n }\n let price = 0\n if (decoration.length) {\n price = plus(p1, times(p2, colorNumber - 1))\n }\n sum = plus(sum, price)\n }\n total = plus(total, sum)\n return total\n }, 0)\n\n return transformNumber(result, buyNum)\n}\n// 附加服务除了packing之外的总价\nexport const getAddon = function (buyNum, form, attributeList, additionList) {\n // 算出购买数量位于 价格阶梯的 哪个区间\n const candidate = Object.entries(attributeList).filter(\n item => buyNum >= item[1]\n )\n const key = `website_qty${candidate.length}`\n const result = Object.entries(form).reduce((total, current) => {\n if (total === 'POA') {\n return total\n }\n\n let sum = 0\n if (!/\\d+/.test(current[0]) && current[0] !== 'packaging') {\n sum = additionList[current[0]]\n .filter(item => current[1].includes(item.id))\n .reduce((t, c) => {\n if (t === 'POA') {\n return t\n }\n let temp = transformNumber(c[key])\n if (temp === 999 || temp === 111 || typeof temp !== 'number') {\n temp = 0\n return 'POA'\n }\n t = plus(t, temp)\n return t\n }, 0)\n }\n return plus(total, sum)\n }, 0)\n\n return transformNumber(result, buyNum)\n}\n// 附加服务中 packing 的价格\nexport const getPackaging = function (\n buyNum,\n form,\n attributeList,\n additionList\n) {\n // 算出购买数量位于 价格阶梯的 哪个区间\n const candidate = Object.entries(attributeList).filter(\n item => buyNum >= item[1]\n )\n const key = `website_qty${candidate.length}`\n const result = Object.entries(form).reduce((total, current) => {\n if (total === 'POA') {\n return total\n }\n\n let sum = 0\n if (!/\\d+/.test(current[0]) && current[0] === 'packaging') {\n sum = additionList[current[0]]\n .filter(item => current[1].includes(item.id))\n .reduce((t, c) => {\n if (t === 'POA') {\n return t\n }\n let temp = transformNumber(c[key])\n if (temp === 999 || temp === 111 || typeof temp !== 'number') {\n temp = 0\n return 'POA'\n }\n t = plus(t, temp)\n return t\n }, 0)\n }\n return plus(total, sum)\n }, 0)\n\n return transformNumber(result, buyNum)\n}\n\n// 运费计算. 从product页面抄过来的逻辑. +号是隐式类型转换\nexport const getFright = function (buyNum, config, freight, weight, ratio = 1) {\n // 单独批次数量的总重\n const totalWeight = Math.ceil(times(+weight.unit_w_local, buyNum))\n\n const expressFactor = plus(\n 1,\n divide(plus(+config.express_freight, +config.fuel), 100)\n )\n\n const AAEFactor = plus(\n 1,\n divide(plus(+config.bag_freight, +config.fuel), 100)\n )\n let frightCost = 0\n\n if (freight.type === 1) {\n if (totalWeight > 20) {\n const a1 = minus(totalWeight, 20)\n const a2 = times(a1, +freight.basic)\n const a3 = plus(+freight.pickup, a2)\n frightCost = times(a3, expressFactor)\n } else {\n frightCost = times(+freight.pickup, expressFactor)\n }\n } else if (freight.type === 2) {\n const a1 = times(totalWeight, +freight.basic)\n const a2 = plus(+freight.pickup, a1)\n frightCost = times(a2, AAEFactor)\n } else {\n frightCost = 0\n }\n return transformNumber(frightCost, ratio)\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar trunc = require('../internals/math-trunc');\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n$({ target: 'Math', stat: true }, {\n trunc: trunc\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!./addAddressDialog.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!./addAddressDialog.vue?vue&type=script&lang=js\"","\nexport default {\n props: {\n dialogVisible: {\n type: Boolean,\n default: false,\n },\n componentVisible: {\n type: Number,\n default: 2,\n },\n data: {\n type: Object,\n default: () => {\n return {\n country: \"Australia\",\n name: \"\",\n phone: \"\",\n address: \"\",\n post_code: \"\",\n city: \"\",\n state: \"\",\n is_default: null,\n };\n },\n },\n },\n data() {\n return {\n value: [],\n options: [],\n rules: {\n country: [\n {\n required: true,\n message: \"Please enter your country\",\n trigger: \"blur\",\n },\n ],\n name: [\n {\n required: true,\n message: \"Please enter your name\",\n trigger: \"blur\",\n },\n ],\n phone: [\n {\n required: true,\n message: \"Please enter your phone number\",\n trigger: \"blur\",\n },\n ],\n address: [\n {\n required: true,\n message: \"Please enter your address\",\n trigger: \"blur\",\n },\n ],\n post_code: [\n {\n required: true,\n message: \"Please enter post_code\",\n trigger: \"blur\",\n },\n ],\n city: [\n { required: true, message: \"Please enter city\", trigger: \"blur\" },\n ],\n state: [\n { required: true, message: \"Please enter state\", trigger: \"blur\" },\n ],\n },\n cityList: [\n { id: 1, name: \"Sydney\" },\n { id: 2, name: \"Adelaide Mail Centre\" },\n { id: 3, name: \"Melbourne\" },\n { id: 4, name: \"Eastern Suburbs Mc\" },\n { id: 5, name: \"Hobart\" },\n { id: 6, name: \"Perth\" },\n { id: 7, name: \"Launceston\" },\n { id: 8, name: \"Brisbane\" },\n { id: 9, name: \"Northern Suburbs Mc\" },\n { id: 10, name: \"Strawberry Hills\" },\n { id: 11, name: \"Springfield\" },\n { id: 12, name: \"Waterloo\" },\n { id: 13, name: \"Richmond\" },\n { id: 14, name: \"Haymarket\" },\n { id: 15, name: \"Red Hill\" },\n { id: 16, name: \"Brisbane GPO Boxes\" },\n { id: 17, name: \"Mayfield\" },\n { id: 18, name: \"Australia Square\" },\n { id: 19, name: \"Woodstock\" },\n { id: 20, name: \"Sydney South\" },\n { id: 21, name: \"The Gap\" },\n { id: 22, name: \"Kingston\" },\n { id: 23, name: \"Kensington\" },\n { id: 24, name: \"Darlington\" },\n ],\n stateList: [\n { id: 1, name: \"Australian Capital Territory\" },\n { id: 2, name: \"New South Wales\" },\n { id: 3, name: \"Northern Territory\" },\n { id: 4, name: \"Queensland\" },\n { id: 5, name: \"South Australia\" },\n { id: 6, name: \"Tasmania\" },\n { id: 7, name: \"Victoria\" },\n { id: 8, name: \"Western Australia\" },\n ],\n\n };\n },\n computed: {\n dialogFormVisible: {\n get: function () {\n return this.dialogVisible;\n },\n set: function (val) {\n this.$emit(\"update:dialogVisible\", val);\n },\n },\n },\n methods: {\n submit(ruleForm) {\n this.$refs[ruleForm].validate((valid) => {\n if (valid) {\n if (this.componentVisible == 2) {\n this.addAddress();\n if (this.$route.fullPath.includes('product-builder')) return\n this.$router.push({path:'/home/myDetail',query:{type:\"third\"}})\n } else if (this.componentVisible == 3) {\n this.editAddress();\n this.$router.push({path:'/home/myDetail',query:{type:\"third\"}})\n }\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n },\n addAddress() {\n this.$axios\n .post(\"/address/add\", this.data)\n .then((res) => {\n if (res.code === 1) {\n this.$notify({\n title: \"success\",\n message: \"Submitted successfully\",\n type: \"success\",\n duration: 3000,\n });\n this.dialogFormVisible = false;\n this.update();\n }\n })\n .catch((error) => {\n this.$message.error(error.response.data.msg);\n });\n },\n editAddress() {\n this.$axios\n .post(\"/address/edit\", this.data)\n .then((res) => {\n if (res.code === 1) {\n this.$notify({\n title: \"success\",\n message: \"Submitted successfully\",\n type: \"success\",\n duration: 3000,\n });\n this.dialogFormVisible = false;\n this.update();\n }\n })\n .catch((error) => {\n this.$message.error(error.response.data.msg);\n });\n },\n update() {\n this.$emit(\"update\", true);\n },\n },\n};\n","import { render, staticRenderFns } from \"./addAddressDialog.vue?vue&type=template&id=443741dd&scoped=true\"\nimport script from \"./addAddressDialog.vue?vue&type=script&lang=js\"\nexport * from \"./addAddressDialog.vue?vue&type=script&lang=js\"\nimport style0 from \"./addAddressDialog.vue?vue&type=style&index=0&id=443741dd&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 \"443741dd\",\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!./addAddressDialog.vue?vue&type=style&index=0&id=443741dd&prod&lang=scss&scoped=true\"","// extracted by extract-css-chunks-webpack-plugin\nmodule.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!./DialogSelectAddr.vue?vue&type=style&index=0&id=69716650&prod&lang=scss&scoped=true\"","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","\nexport default {\n name: 'DialogSelectAddr',\n components: {},\n filters: {},\n props: {\n addressDetail: {\n type: Object,\n default: function () {\n return {}\n },\n },\n visible: {\n type: Boolean,\n default: false,\n },\n addressList: {\n type: Array,\n default: function () {\n return []\n },\n },\n },\n data() {\n return {\n show: false,\n selectedId: -1,\n computedList: [],\n }\n },\n computed: {},\n watch: {\n visible() {\n this.show = this.visible\n if (this.visible) {\n this.generateAddressList()\n }\n },\n addressList() {\n this.generateAddressList()\n },\n },\n mounted() {},\n methods: {\n generateAddressList() {\n this.computedList = this.addressList.map(item => {\n return {\n ...item,\n selected: false,\n }\n })\n },\n submit() {\n if (this.selectedId === -1) {\n this.$message.error('Please check address before click this button')\n return\n }\n this.$emit('select-addr', this.selectedId)\n\n this.close()\n },\n close() {\n this.selectedId = -1\n this.computedList = []\n this.$emit('close', false)\n },\n newAddr() {\n this.$emit('add-new-addr')\n this.close()\n },\n handleCurrentChange(value, row, p3) {\n this.selectedId = value.id || -1\n this.$refs.table.setCurrentRow(value)\n this.computedList = this.addressList.map(item => {\n return {\n ...item,\n selected: item.id === value.id,\n }\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!./DialogSelectAddr.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!./DialogSelectAddr.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DialogSelectAddr.vue?vue&type=template&id=69716650&scoped=true\"\nimport script from \"./DialogSelectAddr.vue?vue&type=script&lang=js\"\nexport * from \"./DialogSelectAddr.vue?vue&type=script&lang=js\"\nimport style0 from \"./DialogSelectAddr.vue?vue&type=style&index=0&id=69716650&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 \"69716650\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.fixed` method\n// https://tc39.es/ecma262/#sec-string.prototype.fixed\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {\n fixed: function fixed() {\n return createHTML(this, 'tt', '', '');\n }\n});\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!./step-3.vue?vue&type=style&index=0&id=6afcebbd&prod&lang=scss&scoped=true\"","\nimport { plus } from 'number-precision'\nimport _ from 'lodash'\nimport { mapState } from 'vuex'\nimport stepMixin from './stepMixin'\nimport selectAddressDialog from './DialogSelectAddr.vue'\nimport addAddressDialog from '@/components/addAddressDialog.vue'\nimport {\n formatPrice,\n getUnit,\n getSetup,\n getPrint,\n getAddon,\n getPackaging,\n getFright,\n} from '@/utils/price'\n\nexport default {\n name: 'Step3',\n components: {\n addAddressDialog,\n selectAddressDialog,\n },\n mixins: [stepMixin],\n props: {\n // 步骤1中选中的周期. 不能直接拿form1来取form1.cycle, 否则步骤1变更时, 涉及到form1的computed会全部重新计算, 可能会导致其他异常\n cycle: {\n type: Number,\n default: function () {\n return 0\n },\n },\n // 同cycle\n model: {\n type: Number,\n default: function () {\n return 0\n },\n },\n // 同cycle. form1的autoForm, 记录对应颜色的 商品购买数量表单.\n buyForm: {\n type: Array,\n default: function () {\n return []\n },\n },\n // 步骤2的表单. 因其设计选中规格, 为当前步骤的前置数据, 故需从父组件获取. 只用来计算, 本组件不更改这个数据.\n form2: {\n type: Object,\n default: function () {\n return {}\n },\n },\n weightInfo: {\n type: Object,\n default: function () {\n return {}\n },\n },\n },\n data() {\n return {\n rules: {\n job: [\n {\n required: true,\n message: 'Please select or create a job name',\n trigger: 'change',\n },\n ],\n },\n form: {\n // 默认的配送地址\n defaultAddr: {},\n freight_type: 1,\n job: '',\n note: '',\n },\n freightLoading: false,\n // 运费信息\n freightInfo: {},\n // 运费浮动比. 从product页面来的数据, 记录在local storage里面\n sellFreight: 0,\n addressList: [],\n addressDetail: {},\n visibleOfSelectAddressDialog: false,\n visibleOfEditAddressDialog: false,\n patternOfEditAddressDialog: 1,\n jobOptions: [],\n priceTableColumns: [\n {\n prop: 'qty',\n label: 'Qty',\n fixed: 'left',\n },\n ],\n dynamicPriceTableColumns: [],\n dynamicPriceTableData: [],\n priceTableData: [\n {\n qty: 'Unit',\n },\n {\n qty: 'Set up',\n },\n {\n qty: 'Print Option',\n },\n {\n qty: 'Addon',\n },\n {\n qty: 'Packing',\n },\n {\n qty: 'Fright',\n },\n {\n qty: 'SubTotal',\n },\n ],\n }\n },\n computed: {\n ...mapState('config', { configInfo: state => state.configInfo }),\n // 商品 当前选中周期的 基础价格和打印价格数据\n computedPriceData() {\n return this.priceData.priceList.filter(\n item => item.cycle_id === this.cycle\n )\n },\n /**\n * 当前选中周期下, 商品对应的各型号基础价格数据. 可以推断当前周期有几个型号\n */\n computedBasePriceData() {\n const model = this.computedPriceData.length\n ? this.computedPriceData[0]\n : {}\n // 属性‘1’里面是基础价格数据, 属性 ’2‘是打印价格数据\n if (model['1']) {\n return model['1'].slice()\n } else {\n return []\n }\n },\n // 当前型号位于基础价格数据的index, 用于取出型号对应的基础数据\n computedBasePriceIndex() {\n return this.computedBasePriceData.findIndex(\n item => item.id === this.model\n )\n },\n /**\n * 当前选中周期下, 商品对应的各型号打印价格.\n */\n computedPrintPriceData() {\n const model = this.computedPriceData.length\n ? this.computedPriceData[0]\n : {}\n // 属性‘1’里面是基础价格数据, 属性 ’2‘是打印价格数据\n if (model['2']) {\n return model['2'].slice()\n } else {\n return []\n }\n },\n\n // 其实没必要的, 只是方便html上不用读多一层属性 from.defaultAddr.****这样\n defaultAddr() {\n return this.form.defaultAddr\n },\n computedPriceTableColumns() {\n return this.priceTableColumns.concat(this.dynamicPriceTableColumns)\n },\n computedPriceTableData() {\n return this.priceTableData.map((item, index) =>\n Object.assign({}, item, this.dynamicPriceTableData[index] || {})\n )\n },\n },\n watch: {\n addressList() {\n const temp = this.addressList.filter(item => item.is_default === 1)\n if (temp.length) {\n this.form.defaultAddr = temp[0]\n } else if (this.addressList.length) {\n this.form.defaultAddr = this.addressList[0]\n } else {\n this.form.defaultAddr = {}\n }\n if (this.form.defaultAddr.post_code) {\n this.getFreight()\n }\n },\n 'form.freight_type'() {\n this.getFreight()\n },\n 'form.defaultAddr'() {\n this.getFreight()\n },\n buyForm: {\n deep: true,\n immediate: true,\n handler: function () {\n const temp = []\n if (!this.loaded) return temp\n this.dynamicPriceTableColumns = this.buyForm.map(item => {\n return {\n prop: `${item.value}`,\n buyNum: item.value,\n }\n })\n\n this.getDynamicPriceTableData()\n },\n },\n form2: {\n deep: true,\n immediate: true,\n handler: function () {\n this.getDynamicPriceTableData()\n },\n },\n },\n mounted() {\n if (localStorage.getItem('sellFreight')) {\n this.sellFreight = localStorage.getItem('sellFreight')\n }\n this.getAddressData().then(() => {\n this.loaded = true\n })\n this.getJobList()\n },\n methods: {\n checkForm() {\n return new Promise((resolve, reject) => {\n this.$refs.form.validate(valid => {\n if (valid) {\n resolve(JSON.parse(JSON.stringify(this.form)))\n } else {\n reject(new Error('validate step3 form error'))\n }\n })\n })\n },\n addToProject() {\n this.$emit('check', 1)\n },\n sendEnquiry() {\n this.$emit('check', 2)\n },\n // Job 下拉/输入框候选数据\n getJobList() {\n this.$axios\n .post('/goods_cart/cartLabelLists', { keyword: [] })\n .then(res => {\n this.jobOptions = res.result\n })\n },\n // 获取配送地址数据\n async getAddressData() {\n return await this.$axios\n .get('address/list', {\n params: {\n keyword: '',\n page: 1,\n limit: 100,\n },\n })\n .then(res => {\n if (res.code === 1) {\n this.addressList = res.result.data\n this.addressTotal = res.result.total\n }\n })\n },\n addAddress() {\n this.addressDetail = {}\n this.patternOfEditAddressDialog = 2\n this.visibleOfEditAddressDialog = true\n },\n closeAddressDialog() {\n this.visibleOfEditAddressDialog = false\n },\n selectAddress(data) {\n const temp = this.addressList.filter(item => item.id === data)\n if (temp.length) this.form.defaultAddr = temp[0]\n this.closeSelectAddressDialog()\n },\n closeSelectAddressDialog() {\n this.visibleOfSelectAddressDialog = false\n },\n getDynamicPriceTableData() {\n const temp = [\n {}, // unit\n {}, // setup 打印和附加价格之和\n {}, // print option\n {}, // addon 附加服务除了packing之外的总价\n {}, // packing / packaging\n {}, // fright 运费\n {}, // 汇总\n ]\n const ratio = plus(this.sellFreight / 100, 1)\n // { buyNum数量, prop标签label }\n this.dynamicPriceTableColumns.forEach(v => {\n const unitPrice = getUnit(\n v.buyNum,\n this.computedBasePriceIndex,\n this.priceData.attributeList,\n this.computedBasePriceData\n )\n temp[0][`${v.prop}`] = formatPrice(unitPrice)\n temp[0][`${v.prop}_value`] = unitPrice\n\n const setupPrice = getSetup(\n v.buyNum,\n this.form2,\n this.priceData.additionList\n )\n temp[1][`${v.prop}`] = formatPrice(setupPrice)\n temp[1][`${v.prop}_value`] = setupPrice\n\n const printPrice = getPrint(\n v.buyNum,\n this.form2,\n this.priceData.attributeList\n )\n temp[2][`${v.prop}`] = formatPrice(printPrice)\n temp[2][`${v.prop}_value`] = printPrice\n\n const addonPrice = getAddon(\n v.buyNum,\n this.form2,\n this.priceData.attributeList,\n this.priceData.additionList\n )\n temp[3][`${v.prop}`] = formatPrice(addonPrice)\n temp[3][`${v.prop}_value`] = addonPrice\n\n const packagingPrice = getPackaging(\n v.buyNum,\n this.form2,\n this.priceData.attributeList,\n this.priceData.additionList\n )\n temp[4][`${v.prop}`] = formatPrice(packagingPrice)\n temp[4][`${v.prop}_value`] = packagingPrice\n\n const frightPrice = getFright(\n v.buyNum,\n this.configInfo,\n this.freightInfo,\n this.weightInfo,\n ratio\n )\n temp[5][`${v.prop}`] = formatPrice(frightPrice)\n temp[5][`${v.prop}_value`] = frightPrice\n\n // 最后一行汇总行的数据\n const total = [\n temp[0][`${v.prop}_value`],\n temp[1][`${v.prop}_value`],\n temp[2][`${v.prop}_value`],\n temp[3][`${v.prop}_value`],\n temp[4][`${v.prop}_value`],\n temp[5][`${v.prop}_value`],\n ].reduce((total, curr) => {\n const value = Number(curr)\n if (total === 'POA' || curr === 'POA') {\n return 'POA'\n } else if (typeof value === 'number') {\n return plus(total, value)\n } else {\n return total\n }\n }, 0)\n\n temp[6][`${v.prop}`] =\n typeof total === 'number' ? formatPrice(total) : total\n temp[6][`${v.prop}_value`] = total\n })\n // console.log(temp, '计算动态表格数据')\n this.dynamicPriceTableData = temp\n },\n getFreight: _.debounce(function () {\n if (!this.form.defaultAddr.post_code) return\n this.freightLoading = true\n this.$axios\n .post('/quote/freight', {\n postcode: this.form.defaultAddr.post_code,\n type: this.form.freight_type,\n })\n .then(res => {\n this.freightInfo = res.result\n this.getDynamicPriceTableData()\n })\n .finally(() => {\n setTimeout(() => {\n this.freightLoading = false\n }, 300)\n })\n }, 200),\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!./step-3.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!./step-3.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./step-3.vue?vue&type=template&id=6afcebbd&scoped=true\"\nimport script from \"./step-3.vue?vue&type=script&lang=js\"\nexport * from \"./step-3.vue?vue&type=script&lang=js\"\nimport style0 from \"./step-3.vue?vue&type=style&index=0&id=6afcebbd&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 \"6afcebbd\",\n null\n \n)\n\nexport default component.exports\n\n/* nuxt-component-imports */\ninstallComponents(component, {AddAddressDialog: require('/Users/wu67/Projects/shop_site/components/addAddressDialog.vue').default})\n"],"sourceRoot":""}