c1efcb4.js.map 53 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/core-js/modules/es.number.to-fixed.js","webpack:///./node_modules/number-precision/build/index.es.js","webpack:///./node_modules/core-js/modules/es.number.is-nan.js","webpack:///./utils/price.js","webpack:///./node_modules/core-js/modules/es.math.trunc.js","webpack:///./pages/home/myDetail/enquiryDetail.vue?ef08","webpack:///./pages/home/myDetail/enquiryDetail.vue?e41d","webpack:///./pages/home/myDetail/enquiryDetail.vue?09f7","webpack:///./pages/home/myDetail/enquiryDetail.vue?360a","webpack:///./pages/home/myDetail/enquiryDetail.vue","webpack:///./pages/home/myDetail/enquiryDetail.vue?47f8","webpack:///./pages/home/myDetail/enquiryDetail.vue?52f4"],"names":["$","IS_PURE","DESCRIPTORS","globalThis","path","uncurryThis","isForced","hasOwn","inheritIfRequired","isPrototypeOf","isSymbol","toPrimitive","fails","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","thisNumberValue","trim","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","prototype","TypeError","stringSlice","slice","charCodeAt","toNumber","argument","first","third","radix","maxCode","digits","length","index","code","it","NaN","parseInt","FORCED","NumberWrapper","value","dummy","n","arguments","primValue","toNumeric","this","Object","constructor","global","wrap","forced","Number","copyConstructorProperties","target","source","key","keys","split","j","module","exports","valueOf","toIntegerOrInfinity","$repeat","$RangeError","RangeError","$String","String","floor","Math","repeat","nativeToFixed","toFixed","pow","x","acc","multiply","data","c","c2","divide","dataToString","s","t","proto","fractionDigits","e","z","k","number","fractDigits","sign","result","x2","log","strip","num","precision","parseFloat","toPrecision","digitLength","eSplit","toString","len","float2Fixed","indexOf","replace","dLen","checkBoundary","_boundaryCheckingState","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","console","warn","createOperation","operation","nums","_i","reduce","prev","next","times","num1","num2","num1Changed","num2Changed","baseNum","leftValue","plus","max","minus","stat","isNaN","formatPrice","needSymbol","undefined","concat","round","ratio","transformNumber","v","trunc","getUnit","buyNum","attributeList","basePriceList","candidate","entries","filter","item","pop","getSetup","form","additionList","total","current","test","enable","temp","colorForm","i","id","printService","colorNumber","decoration","decorationList","setup","website_setup","supplier_setup","addition","includes","website_setup_id","getPrint","key2","sum","p1","p2","price","getAddon","getPackaging","getFright","config","freight","weight","totalWeight","ceil","unit_w_local","expressFactor","express_freight","fuel","AAEFactor","bag_freight","frightCost","type","a1","a2","basic","a3","pickup","name","components","filters","props","activeEnquiryMail","loading","detail","orderInformation","stepConfig","computed","computedEnquiryState","Customize_Pipeline_Stage","watch","created","getDetail","mounted","updated","beforeDestroy","methods","formatStepDesc","date","$utils","formatTime","_this$$store$state$us","_this","$axios","post","accounts_id","$store","state","userInfo","crm_accounts_id","$route","query","then","res","$router","JSON","parse","stringify","Orders_Information","Reference","Email_link2","catch","response","navToOrderDetail","row","url","resolve","sales_orders_id","window","open","href","component","_vm$detail$Quotes_Inf","_vm","_c","_self","staticClass","attrs","_v","directives","rawName","loadiding","expression","_e","_s","Enquiry_Title","Auto_Number","Created_Time","Payment_Terms","Enquiry_Created","Enquiry_Allocated","Quote_Created","Quote_Sent","Enquiry_Closed","Website_Message","Artworklink","staticStyle","Quotes_Information","quotes_details_data","background","color","fontWeight","scopedSlots","_u","fn","scope","Quote_Stage","Total_Including_Tax","product_name","product_description","list_price","amount","Tax","Discount","net_total","Currency","quotecalculation__Sub_Total_Amount","Tax_Total","Discount_Amount","Adjustment","cursor","on","Sales_Order_Title_Job_Name","Sales_Order_Created","$event","Emaillink","model","callback","$$v"],"mappings":"oGACA,IAAIA,EAAI,EAAQ,GACZC,EAAU,EAAQ,IAClBC,EAAc,EAAQ,IACtBC,EAAa,EAAQ,GACrBC,KAAO,EAAQ,KACfC,EAAc,EAAQ,GACtBC,EAAW,EAAQ,KACnBC,EAAS,EAAQ,IACjBC,EAAoB,EAAQ,KAC5BC,EAAgB,EAAQ,IACxBC,EAAW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K,GAAG,KAAKJ,EAAG,UAAU,CAACoD,MAAM,CAAC5Q,MAAOuN,EAAInD,kBAAmByG,SAAS,SAAUC,GAAMvD,EAAInD,kBAAkB0G,CAAG,EAAE9C,WAAW,sBAAsB,CAAET,EAAIjD,OAAOoC,aAAea,EAAIjD,OAAOoC,YAAYlN,OAAQgO,EAAG,cAAc,CAACG,MAAM,CAAC,MAAQ,gBAAgB,KAAO,UAAU,CAACH,EAAG,SAAS,CAACsB,YAAY,CAAC,SAAW,UAAUnB,MAAM,CAAC,IAAMJ,EAAIjD,OAAOoC,YAAY,YAAc,IAAI,OAAS,SAAS,MAAQ,YAAYa,EAAIU,KAAKV,EAAIK,GAAG,KAAML,EAAIjD,OAAOqG,WAAapD,EAAIjD,OAAOqG,UAAUnR,OAAQgO,EAAG,cAAc,CAACG,MAAM,CAAC,MAAQ,kBAAkB,KAAO,YAAY,CAACH,EAAG,SAAS,CAACsB,YAAY,CAAC,SAAW,UAAUnB,MAAM,CAAC,IAAMJ,EAAIjD,OAAOqG,UAAU,YAAc,IAAI,OAAS,SAAS,MAAQ,YAAYpD,EAAIU,MAAM,IAAI,GAAGV,EAAIU,QAAiB,EAClxB,GACsB,IEfpB,EACA,KACA,WACA,MAIa,UAAAZ,U","file":"c1efcb4.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar globalThis = require('../internals/global-this');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = globalThis[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = globalThis.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw new TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n // fast equal of /^0b[01]+$/i\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal of /^0o[0-7]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n default:\n return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar thisNumberValue = require('../internals/this-number-value');\nvar $repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar $RangeError = RangeError;\nvar $String = String;\nvar floor = Math.floor;\nvar repeat = uncurryThis($repeat);\nvar stringSlice = uncurryThis(''.slice);\nvar nativeToFixed = uncurryThis(1.0.toFixed);\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar multiply = function (data, n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\n\nvar divide = function (data, n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\n\nvar dataToString = function (data) {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = $String(data[index]);\n s = s === '' ? t : s + repeat('0', 7 - t.length) + t;\n }\n } return s;\n};\n\nvar FORCED = fails(function () {\n return nativeToFixed(0.00008, 3) !== '0.000' ||\n nativeToFixed(0.9, 0) !== '1' ||\n nativeToFixed(1.255, 2) !== '1.25' ||\n nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';\n}) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.es/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toIntegerOrInfinity(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation\n if (fractDigits < 0 || fractDigits > 20) throw new $RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number !== number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return $String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(data, 0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(data, 1e7, 0);\n j -= 7;\n }\n multiply(data, pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(data, 1 << 23);\n j -= 23;\n }\n divide(data, 1 << j);\n multiply(data, 1, 1);\n divide(data, 2);\n result = dataToString(data);\n } else {\n multiply(data, 0, z);\n multiply(data, 1 << -e, 0);\n result = dataToString(data) + repeat('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat('0', fractDigits - k) + result\n : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits));\n } else {\n result = sign + result;\n } return result;\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","// 商品价格计算相关\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","// extracted by extract-css-chunks-webpack-plugin\nmodule.exports = {};","// 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!./enquiryDetail.vue?vue&type=style&index=0&id=0313a758&prod&lang=scss\"","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!./enquiryDetail.vue?vue&type=style&index=1&id=0313a758&prod&lang=scss&scoped=true\"","\nimport { round } from '@/utils/price.js'\n\nexport default {\n name: 'EnquiryDetail',\n components: {},\n filters: {},\n props: {},\n data() {\n return {\n activeEnquiryMail: 'quote',\n loading: false,\n detail: { orderInformation: [] },\n stepConfig: {\n 'Enquiry Created': 1,\n 'Enquiry Confirmed': 2,\n 'Quote Drafted': 3,\n 'Quote Sent': 4,\n 'Order Confirmed': 5,\n 'Enquiry Closed': 6,\n },\n }\n },\n computed: {\n computedEnquiryState() {\n if (this.detail.Customize_Pipeline_Stage) {\n return this.stepConfig[this.detail.Customize_Pipeline_Stage]\n }\n return 0\n },\n },\n watch: {},\n created() {\n this.getDetail()\n },\n mounted() {},\n updated() {},\n beforeDestroy() {},\n methods: {\n transformNumber(value) {\n // console.log(value, 'value')\n return round(Number(value)).toFixed(2)\n },\n formatStepDesc(date) {\n return this.$utils.formatTime(date, 'DD/MM/YYYY')\n },\n getDetail() {\n this.$axios\n .post('/crmdata/enquiries_detail', {\n accounts_id: this.$store.state.userInfo?.crm_accounts_id || '',\n id: this.$route.query.id,\n })\n .then(res => {\n // console.log(res)\n // eslint-disable-next-line\n if (res.code == 1) {\n if (res.result === '4002' || res.result === null) {\n console.log('id不一致 || 数据空')\n this.$router.replace('/')\n return\n }\n const temp = JSON.parse(JSON.stringify(res.result))\n if (temp.Orders_Information && temp.Orders_Information.Reference) {\n temp.orderInformation = [temp.Orders_Information]\n } else {\n temp.orderInformation = []\n }\n this.detail = temp\n if (!(this.detail.Email_link2 && this.detail.Email_link2.length)) {\n this.activeEnquiryMail = 'enquiry'\n }\n }\n })\n .catch(e => {\n console.log(e, 'eee')\n if (e.response.data.code === 10100) {\n this.$router.replace('/')\n console.log('not login')\n }\n })\n },\n navToOrderDetail(row) {\n console.log(row)\n const url = this.$router.resolve({\n path: '/home/myDetail/orderDetail',\n query: { id: row.sales_orders_id },\n })\n window.open(url.href, '_blank')\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!./enquiryDetail.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!./enquiryDetail.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./enquiryDetail.vue?vue&type=template&id=0313a758&scoped=true\"\nimport script from \"./enquiryDetail.vue?vue&type=script&lang=js\"\nexport * from \"./enquiryDetail.vue?vue&type=script&lang=js\"\nimport style0 from \"./enquiryDetail.vue?vue&type=style&index=0&id=0313a758&prod&lang=scss\"\nimport style1 from \"./enquiryDetail.vue?vue&type=style&index=1&id=0313a758&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 \"0313a758\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}