12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[39,46,50],{554:function(t,e,o){t.exports={}},555:function(t,e,o){t.exports={}},597:function(t,e,o){"use strict";o(554)},598:function(t,e,o){"use strict";o(555)},599:function(t,e,o){t.exports={}},603:function(t,e,o){"use strict";o.r(e);o(44),o(11);var n={props:{data:[]},computed:{comData:function(){return this.data.filter((function(t){return t.is_show}))}}},r=(o(597),o(21)),component=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("table",[e("tbody",[t._m(0),t._v(" "),t._m(1),t._v(" "),t.comData.length?t._l(t.comData,(function(o,n){return e("tr",{key:n},[e("td",[t._v(t._s(o.sku_model||o.point))]),t._v(" "),e("td",[t._v(t._s(o.available_stock))]),t._v(" "),e("td",[t._v(t._s(t.$utils.formatTime(o.next_times,"DD-MM-YYYY",!0)))]),t._v(" "),e("td",[t._v(t._s(o.arrival_stock))])])})):e("tr",[e("td",{attrs:{rowspan:"3",colspan:"4"}},[t._v("No Data")])])],2)])}),[function(){var t=this,e=t._self._c;return e("tr",{staticClass:"title"},[e("th",{attrs:{rowspan:"2"}},[t._v("Model")]),t._v(" "),e("th",{attrs:{rowspan:"2"}},[t._v("Available stock")]),t._v(" "),e("th",{attrs:{colspan:"2"}},[t._v("Next shipment")])])},function(){var t=this,e=t._self._c;return e("tr",[e("th",[t._v("Date")]),t._v(" "),e("th",[t._v("QTY")])])}],!1,null,"13093327",null);e.default=component.exports},604:function(t,e,o){"use strict";o.r(e);var n={props:{data:{type:Array,default:function(){return[]}}}},r=(o(598),o(21)),component=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",[t.data.length?e("table",[e("tbody",[t._m(0),t._v(" "),t._l(t.data,(function(o,n){return e("tr",{key:n},[e("td",[t._v(t._s(t.$utils.formatTime(o.update_time)))]),t._v(" "),e("td",[t._v(t._s(o.type_name))]),t._v(" "),e("td",[t._v(t._s(o.detail))])])}))],2)]):e("div",[e("el-empty",{attrs:{description:"No Data"}})],1)])}),[function(){var t=this,e=t._self._c;return e("tr",{staticClass:"title"},[e("th",{attrs:{width:"25%"}},[t._v("Date")]),t._v(" "),e("th",{attrs:{width:"25%"}},[t._v("Change Type")]),t._v(" "),e("th",{attrs:{width:"50%"}},[t._v("Details")])])}],!1,null,"4c957f55",null);e.default=component.exports},625:function(t,e,o){t.exports=o.p+"img/lineart.e4e693b.png"},626:function(t,e,o){t.exports=o.p+"img/email.0ff3d63.png"},627:function(t,e,o){t.exports=o.p+"img/product.718b8f1.png"},628:function(t,e,o){t.exports=o.p+"img/cataloque.c0a544f.png"},629:function(t,e,o){t.exports=o.p+"img/instruction.bbe58af.png"},634:function(t,e,o){"use strict";o(599)},698:function(t,e,o){"use strict";o.r(e);o(43),o(79),o(44),o(42),o(11),o(22),o(153),o(64),o(65),o(48);var n=o(24),r=(o(219),o(60),o(535),o(326),o(323),o(36),o(683)),c=o(603),l=o(604),d=o(565),_=o(45);function v(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?v(Object(o),!0).forEach((function(e){Object(n.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var f={components:{StockTable:c.default,ChangeTable:l.default,Quote:r.default,ElImageViewer:d.a},props:{pageData:{},id:Number},data:function(){return{tabList:[{name:"Details",isClick:!1,isShow:!0},{name:"Quick Quote",isClick:!1,isShow:!1},{name:"Stock",isClick:!1,isShow:!1},{name:"Resources",isClick:!1,isShow:!0},{name:"Changes",isClick:!1,isShow:!1}],typeTab:0,stockData:[],showViewer:!1,projectdDialogVisible:!1,projectObj:{decoration_id:""},ticketForm:{"英文品名":this.pageData.product_name,SKU:this.pageData.product_code,"问题类型":[],"反馈详情":""},ticketConfig:[{prop:"英文品名",type:"text"},{prop:"SKU",type:"text"},{prop:"问题类型",type:"checkbox",selectlist:["网页信息","供应商质量","样品管理","产品部管理"]},{prop:"反馈详情",type:"textarea"}],rules:{"问题类型":[{required:!0,message:"Please select",trigger:"change"}],"反馈详情":[{required:!0,message:"Please enter",trigger:"blur"}]}}},computed:{currentPre:function(){return this.$store.state.product.smImgUlIdx},isLogin:function(){var t;return!(null===(t=this.$store.state.userInfo)||void 0===t||!t.email)},comInfo:function(){var t;return null===(t=this.pageData)||void 0===t?void 0:t.main},productImgArr:function(){return this.comInfo.mergeImages},userInfo:function(){return this.$store.state.userInfo},comIncluded_packaging:function(){return this.comInfo.included_packaging.split(",")},comOptional_packaging:function(){return this.comInfo.optional_packaging.split(",")},comOptional_attachments:function(){return this.comInfo.optional_attachments.split(",")}},watch:{isLogin:{handler:function(t){t&&(this.tabList[1].isShow=!0)},immediate:!0}},mounted:function(){},methods:m(m(m({},Object(_.b)(["getUserInfo"])),Object(_.c)({openDialog:"openDialog",setSmImgUlIdx:"product/setSmImgUlIdx",setLoading:"product/setLoading"})),{},{isProduct:function(t){return/^[A-z]{1,4}\d{1,4}[A-z]?$/.test(t)},computedIndex:function(i){var t;return null!==(t=this.pageData.main)&&void 0!==t&&t.image?1+i:i},saveUserSelected:function(){var t={addon:[],packaging:[],printService:{}};for(var e in this.allSelData)"addon"===e&&(t.addon=this.allSelData[e].map((function(t){return t.id}))),"packaging"===e&&(t.packaging=this.allSelData[e].map((function(t){return t.id})));this.priceList[this.currTab].cycle_id&&(t.cycle=this.priceList[this.currTab].cycle_id),this.priceList[this.currTab].undecoratedSelectId&&(t.model=this.priceList[this.currTab].undecoratedSelectId);var o=this.priceList[this.currTab][2];console.log(o,"printService"),Array.isArray(o)&&o.length&&o.forEach((function(e){if(e.decorationSelectId){var o=e.decorationList.filter((function(i){return i.id===e.decorationSelectId}));t.printService["".concat(e.id)]={id:e.decorationSelectId,num:o[0].num}}})),localStorage.setItem("product-user-select-".concat(this.$route.params.code),JSON.stringify(t))},openProjectdDialog:function(){isLogin?(this.projectdDialogVisible=!0,this.projectObj.cycle_id=this.comCurrPriceList.cycle_id,this.projectObj.price_unit_id=this.comCurrPriceList.undecoratedSelectId,this.projectObj.decoration_methods=this.comDecoration.map((function(t){var e={};return e.decoration_id=t.id,e.price_unit_id=t.parentId,e.colours_number=t.num,e})),this.projectObj.addition_ids=this.allSelData.addon.map((function(t){return t.id})).join(),this.projectObj.packaging_addition_ids=this.allSelData.packaging.map((function(t){return t.id})).join()):this.openDialog()},download:function(t){var e=t.match("[^/]+(?!.*/)")[0],o=this.$utils.repaceDomain(t);t.endsWith(".pdf")?this.$utils.handleFileDownload(o,e,!1):this.$utils.downloadBlob(t,e)},onPreview:function(){this.showViewer=!0},closeViewer:function(){this.showViewer=!1},clickNav:function(i){1!=this.typeTab||this.tabList[1].isClick?2!=this.typeTab||this.tabList[2].isClick||this.checkNav(2):this.checkNav(1)},checkNav:function(i){this.isLogin?(this.getUserInfo(),1==this.userInfo.audit_status?1==i&&(this.$refs.quote.getQuote(),this.tabList[1].isClick=!0):(this.typeTab=0,this.$message({message:"Your account has not been audited",type:"warning"}))):(this.openDialog(),this.typeTab=0)},openLink:function(t){var a=t.indexOf("http")>-1?t:"http://"+t;window.open(a,"_blank")}})},h=(o(634),o(21)),component=Object(h.a)(f,(function(){var t,e,n,r,c,l=this,d=l._self._c;return d("div",{staticClass:"product-right"},[d("div",{staticClass:"product-right-top"},[d("div",{staticClass:"title"},[d("span",{ref:"title",staticClass:"title-1"},[l._v(l._s(l.pageData.product_name))]),l._v(" "),d("span",{staticClass:"title-2"},[l._v(l._s(l.pageData.product_code))]),l._v(" "),l._l(l.pageData.cycle,(function(t){return d("img",{key:t.images,staticClass:"title-3",attrs:{src:t.images}})})),l._v(" "),l._l(l.pageData.icon,(function(t){return d("img",{key:t.url,staticClass:"title-4",attrs:{src:t.url}})}))],2),l._v(" "),null!==(t=l.pageData.main.image_color)&&void 0!==t&&t.length?d("ul",{staticClass:"color"},l._l(l.pageData.main.image_color,(function(t,i){var e,o,n,r,c,_;return d("li",{key:t.id},[null!==(e=t.color)&&void 0!==e&&e.img?d("div",{staticClass:"color-item"},[d("div",{class:l.currentPre==l.computedIndex(i)?"slip":"",on:{click:function(t){l.setSmImgUlIdx(l.computedIndex(i))}}},[d("el-tooltip",{attrs:{content:null===(o=t.color)||void 0===o?void 0:o.name,placement:"top",effect:"dark"}},[d("img",{attrs:{src:null!==(n=t.color)&&void 0!==n&&n.img&&!l.$mediaRegExp.test(null===(r=t.color)||void 0===r?void 0:r.img)?l.$OSS_PREFIX+(null===(c=t.color)||void 0===c?void 0:c.img):null===(_=t.color)||void 0===_?void 0:_.img}})])],1)]):l._e()])})),0):l._e(),l._v(" "),d("tab-nav",{attrs:{tabList:l.tabList,currTab:l.typeTab,marginTop:15,fontSize:16,liWidth:130,liHeight:40,marginRight:5,marginBottom:25},on:{"update:currTab":function(t){l.typeTab=t},"update:curr-tab":function(t){l.typeTab=t},handle:l.clickNav}})],1),l._v(" "),d("div",{staticClass:"product-right-bottom"},[d("div",{directives:[{name:"show",rawName:"v-show",value:0==l.typeTab,expression:"typeTab == 0"}],staticClass:"details"},[l.pageData.feature_data?d("div",{staticClass:"details-1"},[d("h3",[l._v("Features")]),l._v(" "),d("ul",l._l(l.pageData.feature_data,(function(i,t){return d("li",{key:t},[l._v(l._s(i))])})),0)]):l._e(),l._v(" "),l.comInfo.description?d("div",{staticClass:"details-1"},[d("h3",[l._v("Description")]),l._v(" "),d("p",{domProps:{innerHTML:l._s(l.comInfo.description)}})]):l._e(),l._v(" "),l.pageData.pbo?d("div",{staticClass:"details-2"},[d("h3",[l._v("Product Branding Information")]),l._v(" "),d("p",{domProps:{innerHTML:l._s(l.pageData.pbo)}})]):l._e(),l._v(" "),d("div",{staticClass:"details-3"},[l.comInfo.product_size||l.comInfo.product_material||l.comInfo.moq||l.comInfo.included_packaging||l.comInfo.optional_packaging||l.comInfo.print_size_area||l.comInfo.product_dimensions||l.comInfo.additional_info?d("ul",[l._m(0),l._v(" "),l.comInfo.product_size?d("li",[d("div",{staticClass:"point"},[l._v("Product Size")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.product_size)}})]):l._e(),l._v(" "),null!==(e=l.pageData.main)&&void 0!==e&&e.colors_text?d("li",[d("div",{staticClass:"point"},[l._v("Colour")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(null===(n=l.pageData.main)||void 0===n?void 0:n.colors_text)}})]):l._e(),l._v(" "),l.comInfo.product_material?d("li",[d("div",{staticClass:"point"},[l._v("Material")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.product_material)}})]):l._e(),l._v(" "),l.pageData.moq?d("li",[d("div",{staticClass:"point"},[l._v("MOQ")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.pageData.moq)}})]):l._e(),l._v(" "),l.comInfo.included_packaging?d("li",[d("div",{staticClass:"point"},[l._v("Included Packaging")]),l._v(" "),l._l(l.comIncluded_packaging,(function(t,i){return d("div",{key:t,staticClass:"info blue"},[l.isProduct(t.trim())?d("nuxt-link",{attrs:{to:{name:"product-code",params:{code:t.trim()}}}},[d("span",[l._v(l._s(t)),i<l.comIncluded_packaging.length-1?d("em",[l._v(",")]):l._e()])]):d("span",[l._v(l._s(t)),i<l.comIncluded_packaging.length-1?d("em",[l._v(",")]):l._e()])],1)}))],2):l._e(),l._v(" "),l.comInfo.optional_packaging?d("li",[d("div",{staticClass:"point"},[l._v("Optional Packaging")]),l._v(" "),l._l(l.comOptional_packaging,(function(t,i){return d("div",{key:t,staticClass:"info blue"},[l.isProduct(t.trim())?d("nuxt-link",{attrs:{to:{name:"product-code",params:{code:t.trim()}}}},[d("span",[l._v(l._s(t)),i<l.comOptional_packaging.length-1?d("em",[l._v(",")]):l._e()])]):d("span",[l._v(l._s(t)),i<l.comOptional_packaging.length-1?d("em",[l._v(",")]):l._e()])],1)}))],2):l._e(),l._v(" "),l.comInfo.optional_attachments?d("li",[d("div",{staticClass:"point"},[l._v("Optional Attachments")]),l._v(" "),d("div",{staticClass:"info"},l._l(l.comOptional_attachments,(function(t,i){return d("nuxt-link",{key:t,attrs:{to:{name:"product-code",params:{code:t}}}},[d("span",[l._v(l._s(t)),i<l.comOptional_attachments.length-1?d("em",[l._v(",")]):l._e()])])})),1)]):l._e(),l._v(" "),l.comInfo.product_dimensions?d("li",[d("div",{staticClass:"point"},[l._v("Product dimensions")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.product_dimensions)}})]):l._e(),l._v(" "),l.comInfo.additional_info?d("li",[d("div",{staticClass:"point"},[l._v("Additional Info")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.additional_info)}})]):l._e()]):l._e(),l._v(" "),l.comInfo.print_position||l.comInfo.print_size_area||l.comInfo.print_marketing?d("ul",[l._m(1),l._v(" "),l.comInfo.print_position?d("li",[d("div",{staticClass:"point"},[l._v("Print Position")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.print_position)}})]):l._e(),l._v(" "),l.comInfo.print_size_area?d("li",[d("div",{staticClass:"point"},[l._v("Print Size Area")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.print_size_area)}})]):l._e(),l._v(" "),l.comInfo.print_marketing?d("li",[d("div",{staticClass:"point"},[l._v("Print Marketing")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.print_marketing)}})]):l._e()]):l._e(),l._v(" "),l.comInfo.data_services||l.comInfo.chip_grade||l.comInfo.certifications||l.comInfo.capacity||l.comInfo.warranty||l.comInfo.battery_type||l.comInfo.additional_description?d("ul",[l._m(2),l._v(" "),l.comInfo.data_services?d("li",[d("div",{staticClass:"point"},[l._v("Data Services")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.data_services)}})]):l._e(),l._v(" "),l.comInfo.chip_grade?d("li",[d("div",{staticClass:"point"},[l._v("Chip Grade")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.chip_grade)}})]):l._e(),l._v(" "),l.comInfo.certifications?d("li",[d("div",{staticClass:"point"},[l._v("Certifications")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.certifications)}})]):l._e(),l._v(" "),l.comInfo.capacity?d("li",[d("div",{staticClass:"point"},[l._v("Capacity")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.capacity)}})]):l._e(),l._v(" "),l.comInfo.warranty?d("li",[d("div",{staticClass:"point"},[l._v("Warranty")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.warranty)}})]):l._e(),l._v(" "),l.comInfo.battery_type?d("li",[d("div",{staticClass:"point"},[l._v("Battery Type")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.battery_type)}})]):l._e(),l._v(" "),l.comInfo.additional_description?d("li",[d("div",{staticClass:"point"},[l._v("Additional Info")]),l._v(" "),d("div",{staticClass:"info",domProps:{innerHTML:l._s(l.comInfo.additional_description)}})]):l._e()]):l._e()]),l._v(" "),d("p",{staticClass:"details-1"},[l._v("\n Due to differences between production batches, product sizes may vary\n slightly. The above Colours and measurements are approximate, and for\n guidance only.\n ")])]),l._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:1==l.typeTab,expression:"typeTab == 1"}],staticClass:"quote"},[d("quote",{ref:"quote",attrs:{pageData:l.pageData,id:l.id}})],1),l._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"stock"},[l.stockData.length>0?d("div",[d("stock-table",{attrs:{data:l.stockData}}),l._v(" "),d("p",{staticClass:"quote-tips"},[l._v("For quantities over available stock levels, please contact us for pricing and timing")])],1):d("div",{staticClass:"quote-tips"},[l._v("\n This product is made offshore, and is available for any quantity equal to, or above the listed MOQ\n ")])]),l._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:3==l.typeTab,expression:"typeTab == 3"}]},[d("h5",[l._v("Maketing Resource")]),l._v(" "),d("div",{staticClass:"resources maketing"},[l.comInfo.line_artwork?d("p",{on:{click:function(t){return l.download(l.comInfo.line_artwork)}}},[d("img",{attrs:{src:o(625)}}),l._v("Lineart Download\n ")]):l._e(),l._v(" "),l.pageData.edm_url?d("p",{on:{click:function(t){return l.openLink(l.pageData.edm_url)}}},[d("img",{attrs:{src:o(626)}}),l._v("Email Digital Marketing\n ")]):l._e(),l._v(" "),null!==(r=l.productImgArr)&&void 0!==r&&r.length?d("p",{on:{click:l.onPreview}},[d("img",{attrs:{src:o(627)}}),l._v("Product Image\n ")]):l._e(),l._v(" "),l.pageData.cataloque_url?d("p",{on:{click:function(t){return l.openLink(l.pageData.cataloque_url)}}},[d("img",{attrs:{src:o(628)}}),l._v("Catalogue\n ")]):l._e(),l._v(" "),l.comInfo.product_instruction?d("p",{on:{click:function(t){return l.download(l.comInfo.product_instruction)}}},[d("img",{attrs:{src:o(629)}}),l._v("Product Instruction\n ")]):l._e()]),l._v(" "),null!==(c=l.pageData.goodsCompliance)&&void 0!==c&&c.length?d("h5",[l._v("Compliance Resource")]):l._e(),l._v(" "),d("div",{staticClass:"resources compliance"},l._l(l.pageData.goodsCompliance,(function(t,i){var e;return d("img",{key:i,attrs:{src:null===(e=t.filter)||void 0===e?void 0:e.img},on:{click:function(e){return l.download(t.pic)}}})})),0)])]),l._v(" "),d("no-ssr",[l.showViewer?d("ElImageViewer",{attrs:{"on-close":l.closeViewer,"url-list":l.productImgArr}}):l._e()],1)],1)}),[function(){var t=this._self._c;return t("li",[t("div",{staticClass:"title"},[this._v("Product Info")])])},function(){var t=this._self._c;return t("li",[t("div",{staticClass:"title"},[this._v("Print Info")])])},function(){var t=this._self._c;return t("li",[t("div",{staticClass:"title"},[this._v("Functional Info")])])}],!1,null,"3bc79372",null);e.default=component.exports;installComponents(component,{TabNav:o(602).default})}}]);
- //# sourceMappingURL=938ac60.js.map
|