bbc67e5.js.map 30 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.number.is-nan.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-1.vue?2474","webpack:///./components/product-builder/step-1.vue?3b0a","webpack:///./components/product-builder/step-1.vue?989f","webpack:///./components/product-builder/step-1.vue","webpack:///./components/product-builder/step-1.vue?f1d1"],"names":["$","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","module","exports","imageViewer","mixins","stepMixin","form2","isBigImageShow","rules","decorated","required","message","trigger","supplyChain","model","min","color","validator","value","cb","length","Error","colorPmsText","checkColorPmsText","cycle","computedPriceData","_this","filter","item","cycle_id","computedBasePriceData","slice","computedBasePriceIndex","_this2","findIndex","id","computedMinBuyNumber","_this3","candidate","website_qty1","website_qty2","website_qty3","website_qty4","website_qty5","website_qty6","website_qty7","website_qty8","some","undefined","index","findEffectIndex","entries","forEach","current","test","decoration","decorationList","i","printService","enable","index2","index3","supplier_qty1","supplier_qty2","supplier_qty3","supplier_qty4","supplier_qty5","supplier_qty6","supplier_qty7","supplier_qty8","additions","includes","index4","temp","sort","a","b","localeCompare","_this4","immediate","generateColorForm","$refs","clearValidate","autoForm","checkForm","_this5","Promise","resolve","reject","validate","valid","rule","trim","array","map","Number","NaN","openBigImage","closeBigImage","_this6","targetModel","oldForm","color1","reduce","total","img","label","concat","point","colorId","temp2","push","unshift","$set","modelClick","colorClick","indexOf","splice","_vm$detail$main","_vm$detail$main2","_vm","staticClass","attrs","slot","_v","directives","rawName","expression","_s","product_name","main","_e","on","image","ref","callback","$$v","_l","key","class","active","disable","$event","staticStyle","formItem","_n"],"mappings":"8FACQ,EAAQ,EAIhBA,CAAE,CAAEC,OA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Aa1D,EAAK,UAAS,MAAQ,CAC9oDvC,UAAU,EACVE,QAAS,SACTzC,KAAM,SACNwC,QAAS,sCACTI,IAAKyG,EAAIpF,wBACP,CAACrC,EAAG,MAAM,CAAC0H,YAAY,YAAY,CAAC1H,EAAG,MAAM,CAAC0H,YAAY,sBAAsB,CAAEuB,EAASvC,IAAK1G,EAAG,MAAM,CAAC0H,YAAY,wBAAwBC,MAAM,CAAC,IAAMsB,EAASvC,IAAI,IAAM,MAAMe,EAAIW,KAAKX,EAAII,GAAG,KAAK7H,EAAG,MAAM,CAAC0H,YAAY,mCAAmC,CAACD,EAAII,GAAG,qBAAqBJ,EAAIQ,GAAGgB,EAAStC,OAAO,wBAAwBc,EAAII,GAAG,KAAK7H,EAAG,WAAW,CAACgJ,YAAY,CAAC,MAAQ,QAAQrB,MAAM,CAAC,IAAMF,EAAIpF,qBAAqB,KAAO,UAAUgG,GAAG,CAAC,OAAS,SAAAlH,GAClcA,GAASsG,EAAIpF,sBACfoF,EAAIvC,MAAM/F,KAAKgG,cAAa,YAAAyB,OAAa1D,EAAK,UAClD,GAAGnC,MAAM,CAACI,MAAO8H,EAAS9H,MAAOqH,SAAS,SAAUC,GAAMhB,EAAIP,KAAK+B,EAAU,QAASxB,EAAIyB,GAAGT,GAAK,EAAET,WAAW,qBAAqB,IAAI,IAAG,IAAI,IAAI,IACnK,GACsB,ICRpB,EACA,KACA,WACA,MAIa,UAAAjI,U","file":"bbc67e5.js","sourcesContent":["'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","\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-1.vue?vue&type=style&index=0&id=7f99eb3e&prod&lang=scss&scoped=true\"","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-1.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-1.vue?vue&type=script&lang=js\"","\nimport imageViewer from 'element-ui/packages/image/src/image-viewer'\nimport stepMixin from './stepMixin'\n\nexport default {\n name: 'Step1',\n components: {\n 'image-viewer': imageViewer,\n },\n mixins: [stepMixin],\n props: {\n // 步骤2的表单. 因其打印价格表单会反向影响本组件的最小起购数量, 故需从父组件获取. 只用来计算, 本组件不更改这个数据.\n form2: {\n type: Object,\n default: function () {\n return {}\n },\n },\n },\n data() {\n // this.detail 记录在mixin里;\n return {\n // 查看大图\n isBigImageShow: false,\n rules: {\n decorated: [{ required: true, message: '请选择', trigger: 'change' }],\n supplyChain: [{ required: true, message: '请选择', trigger: 'change' }],\n model: [\n {\n required: true,\n trigger: 'change',\n type: 'number',\n min: 1,\n message: 'Please select model',\n },\n ],\n color: [\n {\n required: true,\n validator: (rules, value, cb) => {\n value.length > 0\n ? cb()\n : cb(new Error('Please select at least one color'))\n },\n trigger: 'change',\n },\n ],\n colorPmsText: [{ trigger: 'blur', validator: this.checkColorPmsText }],\n cycle: [\n {\n required: true,\n message: 'Please select time frame',\n trigger: 'change',\n },\n ],\n },\n form: {\n // 必须要有的初始值, 否则必定会报错Cannot read properties of undefined\n color: [],\n model: 0,\n colorPmsText: '',\n },\n // 标志符,用于控制监听是否启用\n loaded: false,\n }\n },\n computed: {\n // 商品 当前选中周期的 基础价格和打印价格数据\n computedPriceData() {\n return this.priceData.priceList.filter(\n item => item.cycle_id === this.form.cycle\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.form.model\n )\n },\n // 该商品周期的最小起订量. attributeList的属性名(website_qty1, website_qty2)排序, 然后取属性值\n computedMinBuyNumber() {\n // 算基础价格的第一个有效值\n const target = this.computedBasePriceData.length\n ? this.computedBasePriceData[\n this.computedBasePriceIndex > 0 ? this.computedBasePriceIndex : 0\n ]\n : {}\n const candidate = [\n target.website_qty1,\n target.website_qty2,\n target.website_qty3,\n target.website_qty4,\n target.website_qty5,\n target.website_qty6,\n target.website_qty7,\n target.website_qty8,\n ]\n\n if (!candidate.some(item => item !== undefined)) return 1\n // 算出商品基础价格的第一个有效值\n let index = this.findEffectIndex(candidate)\n // 算出打印服务和附加服务的第一个有效价格所处位置.\n Object.entries(this.form2).forEach(current => {\n if (/\\d+/.test(current[0])) {\n const decoration = current[1].decorationList.filter(\n i => i.id === current[1].printService\n )\n if (decoration.length && current[1].enable) {\n // 打印价格的基础阶梯价格\n const index2 = this.findEffectIndex([\n decoration[0].website_qty1,\n decoration[0].website_qty2,\n decoration[0].website_qty3,\n decoration[0].website_qty4,\n decoration[0].website_qty5,\n decoration[0].website_qty6,\n decoration[0].website_qty7,\n decoration[0].website_qty8,\n ])\n // 附加价格\n const index3 = this.findEffectIndex([\n decoration[0].supplier_qty1,\n decoration[0].supplier_qty2,\n decoration[0].supplier_qty3,\n decoration[0].supplier_qty4,\n decoration[0].supplier_qty5,\n decoration[0].supplier_qty6,\n decoration[0].supplier_qty7,\n decoration[0].supplier_qty8,\n ])\n // 让index记录最大值\n if (index2 > index) index = index2\n if (index3 > index) index = index3\n }\n } else {\n // 附加服务的价格\n const additions = this.priceData.additionList[current[0]].filter(\n item => current[1].includes(item.id)\n )\n\n if (additions.length) {\n additions.forEach(target => {\n const index4 = this.findEffectIndex([\n target.website_qty1,\n target.website_qty2,\n target.website_qty3,\n target.website_qty4,\n target.website_qty5,\n target.website_qty6,\n target.website_qty7,\n target.website_qty8,\n ])\n // 让index记录最大值\n if (index4 > index) index = index4\n })\n }\n }\n })\n\n const temp = Object.entries(this.priceData.attributeList)\n .sort((a, b) => a[0].localeCompare(b[0]))\n .filter((item, i) => index === i)\n\n if (temp.length) {\n return temp[0][1]\n } else {\n return 1\n }\n },\n },\n watch: {\n computedBasePriceData() {\n if (!this.loaded || !this.computedBasePriceData.length) return\n // fixme 如果有从商品详情页带过来的型号选择数据, 要选中该值, 而不是默认的第一个值\n if (\n this.computedBasePriceData.filter(i => i.id === this.preData.model)\n .length\n ) {\n this.form.model = this.preData.model\n } else {\n this.form.model = this.computedBasePriceData[0].id\n }\n },\n 'form.model': {\n immediate: true,\n handler: function () {\n if (!this.loaded) return\n\n this.generateColorForm()\n },\n },\n 'form.color': {\n immediate: true,\n handler: function () {\n if (!this.loaded) return\n\n this.generateColorForm()\n this.$refs.form.clearValidate('colorPmsText')\n },\n },\n form2: {\n immediate: true,\n handler: function () {\n if (!this.loaded) return\n\n this.generateColorForm()\n },\n },\n },\n mounted() {\n this.form = {\n supplyChain: 'AU Stock',\n decorated: 'Local',\n model: 0, // 型号的赋值在computedBasePriceData的监听里面, 因为其涉及到基础价格变更后的重新赋值.\n cycle: this.preData.cycle\n ? this.preData.cycle\n : this.priceData.priceList[0].cycle_id,\n color: [],\n colorPmsText: '',\n // 根据所选规格和颜色组合成的自动表单.需要在computedBasePriceData的watch里面生成\n autoForm: [],\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 step1 form error'))\n }\n })\n })\n },\n checkColorPmsText(rule, value, cb) {\n // fixme. 颜色的两个固定值的id还未确定\n if (!this.form.color.includes(999)) cb()\n\n if (this.form.colorPmsText.trim().length < 1) {\n cb(new Error('You must type color comment here if \"+ PMS\" is checked'))\n } else {\n cb()\n }\n },\n // 找出第一个有效价格的index. 非变异方法, 勿对参数进行赋值操作.\n // 价格留空和111不算到起购量, 为正常数值或者0或者999(POA)就可以算到起购量, 所以在此处将空手动重置为NaN\n findEffectIndex(array) {\n return array\n .map(item => (item === '' ? Number.NaN : Number(item)))\n .findIndex(item => !Number.isNaN(item) && item !== 111)\n },\n openBigImage() {\n this.isBigImageShow = true\n },\n closeBigImage() {\n this.isBigImageShow = false\n },\n generateColorForm() {\n if (!this.loaded || this.form.color.length < 1) {\n this.form.autoForm = []\n return\n }\n // 生成所选规格和颜色组合成的自动表单\n const targetModel = this.computedBasePriceData.filter(\n item => item.id === this.form.model\n )\n const oldForm = JSON.parse(JSON.stringify(this.form.autoForm))\n\n let color1 = []\n if (targetModel.length) {\n color1 = this.detail.color.reduce((total, item) => {\n if (this.form.color.includes(item.id)) {\n const temp = {\n img: item.img || '',\n label: `${item.name}, ${targetModel[0].point}`,\n color: item.name,\n colorId: item.id,\n value: this.computedMinBuyNumber,\n }\n const temp2 = oldForm.filter(item => item.label === temp.label)\n if (temp2.length && temp2[0].value >= this.computedMinBuyNumber) {\n // 如果原来有值且原值大于等于最小起购, 则沿用原值\n temp.value = temp2[0].value\n }\n total.push(temp)\n }\n return total\n }, [])\n if (this.form.color.includes(0)) {\n const temp = {\n img: '',\n label: `Unspecified, ${targetModel[0].point}`,\n color: 'Unspecified',\n colorId: -1,\n value: this.computedMinBuyNumber,\n }\n const temp2 = oldForm.filter(item => {\n return item.label === temp.label\n })\n if (temp2.length && temp2[0].value >= this.computedMinBuyNumber) {\n // 如果原来有值且原值大于等于最小起购, 则沿用原值\n temp.value = temp2[0].value\n }\n color1.unshift(temp)\n }\n if (this.form.color.includes(999)) {\n const temp = {\n img: '',\n label: `+ PMS, ${targetModel[0].point}`,\n color: 'PMS',\n colorId: -1,\n value: this.computedMinBuyNumber,\n }\n const temp2 = oldForm.filter(item => item.label === temp.label)\n if (temp2.length && temp2[0].value >= this.computedMinBuyNumber) {\n // 如果原来有值且原值大于等于最小起购, 则沿用原值\n temp.value = temp2[0].value\n }\n color1.push(temp)\n }\n }\n this.$set(this.form, 'autoForm', color1)\n },\n modelClick(item) {\n if (this.form.model === item.id) {\n this.form.model = 0\n } else {\n this.form.model = item.id\n }\n },\n colorClick(item) {\n const index = this.form.color.indexOf(item.id)\n if (index !== -1) {\n this.form.color.splice(index, 1)\n } else {\n this.form.color.push(item.id)\n }\n },\n },\n}\n","import { render, staticRenderFns } from \"./step-1.vue?vue&type=template&id=7f99eb3e&scoped=true\"\nimport script from \"./step-1.vue?vue&type=script&lang=js\"\nexport * from \"./step-1.vue?vue&type=script&lang=js\"\nimport style0 from \"./step-1.vue?vue&type=style&index=0&id=7f99eb3e&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 \"7f99eb3e\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}