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:///./components/product-builder/stepMixin.vue","webpack:///./components/product-builder/stepMixin.vue?a5af","webpack:///./components/product-builder/stepMixin.vue?be74","webpack:///./components/product-builder/step-2.vue?2efb","webpack:///./components/product-builder/step-2.vue?0dd2","webpack:///./components/product-builder/step-2.vue","webpack:///./components/product-builder/step-2.vue?6319","webpack:///./components/product-builder/step-2.vue?3fb6"],"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","name","components","props","loading","type","Boolean","default","priceData","priceList","attributeList","additionList","detail","info","images","preData","data","computed","watch","form","deep","handler","loaded","$_emitFormData","mounted","methods","$emit","JSON","parse","stringify","component","_c","_self","mixins","stepMixin","cycle","additionForm","rules","computedPriceData","_this","filter","item","cycle_id","computedPrintPriceData","model","hasAddition","result","Array","isArray","_this2","_step","temp","_iterator","_createForOfIteratorHelper","_loop","pId","printService","concat","id","_objectSpread","enable","decorationList","map","i","includes","colorForm","decoration","colorNumber","num","pmsColorText","s","done","err","e","assign","$set","checkForm","_this3","Promise","resolve","reject","$refs","validate","valid","Error","selectAddition","printServiceClick","_vm","staticClass","attrs","slot","_v","directives","rawName","expression","ref","_l","callback","$$v","staticStyle","_s","point","class","active","disable","on","$event","dec_code","max_color_count","_e","addition","keyName","selected"],"mappings":"iGACA,IAAIA,EAAI,EAAQ,GACZC,EAAU,EAA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AAAsC,OAAIhB,EAAKiB,KAAMO,UAAU9F,GAAQ,eAAgB+H,EAAI,EAAEJ,WAAW,uDAAuD,IAAI,IAAI,KAAI,EAAE,IAAG,IAAI,GAAGP,EAAIsB,KAAKtB,EAAII,GAAG,KAAMJ,EAAI1C,YAAad,EAAG,MAAM,CAACA,EAAG,MAAM,CAACyD,YAAY,YAAYD,EAAII,GAAG,KAAK5D,EAAG,MAAMwD,EAAII,GAAG,KAAK5D,EAAG,MAAM,CAACyD,YAAY,kBAAkB,CAACD,EAAII,GAAG,iBAAiBJ,EAAII,GAAG,KAAKJ,EAAIS,GAAIT,EAAI/E,UAAUG,cAAc,SAASmG,EAASC,EAAQ5I,GAAO,OAAO4D,EAAG,MAAM,CAACrC,IAAIvB,EAAMqH,YAAY,QAAQ,CAACzD,EAAG,MAAM,CAACyD,YAAY,uBAAuB,CAACD,EAAII,GAAGJ,EAAIa,GAAGW,MAAYxB,EAAII,GAAG,KAAK5D,EAAG,MAAM,CAACyD,YAAY,uBAAuBD,EAAIS,GAAIc,GAAU,SAASrE,GAAM,OAAOV,EAAG,MAAM,CAACrC,IAAI+C,EAAKiB,GAAG8B,YAAY,gBAAgBc,MAAM,CAClsF,CAAEU,SAAUzB,EAAInD,aAAY,GAAAqB,OAAIsD,IAAW/C,SAASvB,EAAKiB,MACzD+C,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOnB,EAAIF,eAAe5C,EAAMsE,EAAQ,IAAI,CAAChF,EAAG,MAAM,CAACyD,YAAY,eAAeD,EAAII,GAAG,KAAK5D,EAAG,MAAM,CAACyD,YAAY,QAAQ,CAACD,EAAII,GAAGJ,EAAIa,GAAG3D,EAAKxC,UAAU,IAAG,IAAI,KAAI,GAAGsF,EAAIsB,QACvN,GACsB,IEKpB,EACA,KACA,WACA,MAIa,UAAA/E,U","file":"6a09e1c.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","\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","// 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!./step-2.vue?vue&type=style&index=0&id=165fd52f&prod&lang=scss&scoped=true\"","\nimport stepMixin from './stepMixin'\n\nexport default {\n name: 'Step2',\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 },\n data() {\n return {\n form: {},\n additionForm: {},\n rules: {},\n // 标志符,用于控制监听是否启用\n loaded: false,\n }\n },\n computed: {\n // 商品 当前选中周期的 基础价格和打印价格数据\n computedPriceData() {\n return this.priceData.priceList.filter(\n item => item.cycle_id === this.cycle\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 hasAddition() {\n if (!this.loaded) return false\n let result = false\n const target = this.priceData.additionList\n for (const key in target) {\n if (Array.isArray(target[key]) && target[key].length) {\n result = true\n }\n }\n return result\n },\n },\n watch: {\n computedPrintPriceData: {\n deep: true,\n handler: function () {\n if (!this.loaded) return\n\n const temp = {}\n for (const item of this.computedPrintPriceData) {\n let pId = 0\n // 从 product 页面来的用户选过的打印服务数据\n if (\n this.preData.printService &&\n this.preData.printService[`${item.id}`] &&\n this.preData.printService[`${item.id}`].id\n ) {\n pId = this.preData.printService[`${item.id}`].id\n }\n\n temp[`${item.id}`] = {\n // ...item直接把所有数据一起堆进去, 方便后续的价格计算, 不然计算需要各种遍历, 逻辑会非常难懂.\n ...item,\n enable: pId !== 0,\n // 打印服务. 如果选过的打印服务在这个周期的商品里面有, 则选上. 否则选当前打印服务项的第一个\n printService: item.decorationList.map(i => i.id).includes(pId)\n ? pId\n : item.decorationList[0].id,\n colorForm: item.decorationList.map(decoration => {\n return {\n id: decoration.id,\n // 默认是1, 后台数据允许留空成0, 但既然计算打印价格, 肯定会是1, 不然怎么打印、怎么计算价格\n colorNumber:\n pId === decoration.id\n ? Number(this.preData.printService[`${item.id}`].num)\n : 1,\n pmsColorText: '',\n }\n }),\n }\n }\n this.form = Object.assign(temp, this.additionForm)\n },\n },\n additionForm: {\n deep: true,\n handler: function () {\n if (!this.loaded) return\n\n Object.assign(this.form, this.additionForm)\n },\n },\n },\n mounted() {\n for (const key in this.priceData.additionList) {\n this.$set(\n this.additionForm,\n `${key}`,\n this.preData[`${key}`] ? this.preData[`${key}`].slice() : []\n )\n }\n this.loaded = true\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 step2 form error'))\n }\n })\n })\n },\n selectAddition(item, key) {\n if (this.additionForm[`${key}`].includes(item.id)) {\n // 选中清除\n this.$set(\n this.additionForm,\n `${key}`,\n this.additionForm[`${key}`].filter(i => i !== item.id)\n )\n } else {\n this.$set(\n this.additionForm,\n `${key}`,\n this.additionForm[`${key}`].concat([item.id])\n )\n }\n },\n printServiceClick(decoration, item) {\n if (!this.form[`${item.id}`].enable) return\n this.form[`${item.id}`].printService = decoration.id\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!./step-2.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-2.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./step-2.vue?vue&type=template&id=165fd52f&scoped=true\"\nimport script from \"./step-2.vue?vue&type=script&lang=js\"\nexport * from \"./step-2.vue?vue&type=script&lang=js\"\nimport style0 from \"./step-2.vue?vue&type=style&index=0&id=165fd52f&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 \"165fd52f\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
|