(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-645ef233"],{"0145c":function(t,e,i){"use strict";i.d(e,"e",(function(){return o})),i.d(e,"f",(function(){return s})),i.d(e,"h",(function(){return n})),i.d(e,"a",(function(){return r})),i.d(e,"d",(function(){return c})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return u})),i.d(e,"i",(function(){return d})),i.d(e,"g",(function(){return p}));var a=i("66a5");const o=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/page",method:"post",data:t}),s=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/detail",method:"post",data:t}),n=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/modify",method:"post",data:t}),r=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/inventory_order/create",method:"post",data:t}),c=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/remark/edit",method:"post",data:t}),l=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/remove",method:"post",data:t}),u=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/bindJewelery/edit",method:"post",data:t}),d=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/useForAllOrder/edit",method:"post",data:t}),p=t=>Object(a["a"])({url:"/shopapi/custom/product/fittings/bind_fittings_list",method:"post",data:t})},1802:function(t,e,i){},"2da9":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{ref:"multipleTable",staticStyle:{"{\n width":"100%"},attrs:{data:t.cartList,"tooltip-effect":"dark",stripe:""},on:{"selection-change":t.handleSelectionChange}},[t.showSelection?a("el-table-column",{attrs:{type:"selection",width:"60",align:"center"}}):t._e(),a("el-table-column",{attrs:{label:"Product","min-width":"200","max-width":"450",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"product"},[a("div",{staticClass:"product-info"},[a("div",{staticClass:"product-item"},[a("div",{staticClass:"product-img-container",on:{mouseup:function(i){return t.showImgList([e.row.suspendImageUrl||e.row.mainImageUrl])}}},[a("hover-img",{staticClass:"product-item-image",attrs:{"main-img":t.showImageUrl(e.row),"hover-img":e.row.suspendImageUrl||e.row.mainImageUrl}})],1),a("div",{staticClass:"product-item-name"},[a("div",{staticClass:"product-item-title"},[t._v(t._s(e.row.blankProductName))]),e.row.option1Name?a("option-info",{staticClass:"product-item-attr",attrs:{"option-name":e.row.option1Name,"option-value":e.row.option1Value}}):t._e(),e.row.option2Name?a("option-info",{staticClass:"product-item-attr",attrs:{"option-name":e.row.option2Name,"option-value":e.row.option2Value}}):t._e(),e.row.option3Name?a("option-info",{staticClass:"product-item-attr",attrs:{"option-name":e.row.option2Name,"option-value":e.row.option3Value}}):t._e()],1)]),a("div",{staticClass:"product-price"},[e.row.discountPrice!==e.row.price?a("div",[t._v(" Price: $"+t._s(e.row.discountPrice)+" "),a("span",{staticClass:"line-through"},[t._v("$"+t._s(e.row.price))])]):a("div",[t._v(" Price: $"+t._s(e.row.price)+" ")])]),e.row.designInfo&&e.row.designInfo.printAreaList&&e.row.designInfo.printAreaList.length?a("div",{staticStyle:{width:"100%"}},t._l(e.row.designInfo.printAreaList,(function(e){return a("div",{key:e.printAreaId,staticClass:"print-area-list"},[a("div",[a("span",{staticStyle:{color:"red"}},[t._v(t._s(e.name)+":")]),a("span",{staticClass:"print-area-content"},[t._v(t._s(e.content))])]),e.fontName?a("div",{staticClass:"product-info-fontname"},[t._v(" font: "),a("span",{style:{fontFamily:e.fontUid}},[t._v(t._s(e.fontName))])]):t._e()])})),0):t._e()])])]}}])}),0===t.maxColNum?a("el-table-column",{attrs:{label:"Package",width:"450"}}):t._l(t.maxColNum,(function(e,o){return a("el-table-column",{key:o,attrs:{"min-width":"200","max-width":"450"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"package-item-container"},[a("div",{staticClass:"package-item-box"},[a("div",{staticClass:"product-item"},[t.productSkuItemMap&&t.productSkuItemMap.get(e.row.id)&&t.productSkuItemMap.get(e.row.id).skuCategory2List&&t.productSkuItemMap.get(e.row.id).skuCategory2List.length>0&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o]&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object?a("div",{staticClass:"img-box"},[a("img",{staticClass:"product-item-image",attrs:{src:t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object.mainImageUrl}}),a("div",{staticClass:"change-box"},[a("div",{staticClass:"change"},[a("div",{staticClass:"edit-icon-box",on:{mouseup:function(i){return i.stopPropagation(),t.showFittingDialogClick(e.row,o)}}},[a("img",{staticClass:"edit-icon",attrs:{alt:"edit-icon",src:i("b4f3")}})]),a("div",{staticClass:"preview-icon-box",on:{click:function(i){i.stopPropagation(),t.showImgList([t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object.mainImageUrl])}}},[a("img",{staticClass:"preview-icon",attrs:{alt:"preview-icon",src:i("cf3c")}})])])])]):a("div",{staticClass:"blank-img-box",on:{mouseup:function(i){return i.stopPropagation(),t.showFittingDialogClick(e.row,o)}}},[t.productSkuItemMap&&t.productSkuItemMap.get(e.row.id)&&t.productSkuItemMap.get(e.row.id).skuCategory2List&&t.productSkuItemMap.get(e.row.id).skuCategory2List.length>0&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o]?a("div",{staticClass:"select"},[a("span",{staticClass:"select-text"},[t._v("Select")])]):t._e()]),a("div",{staticClass:"product-item-name"},[t.productSkuItemMap&&t.productSkuItemMap.get(e.row.id)&&t.productSkuItemMap.get(e.row.id).skuCategory2List&&t.productSkuItemMap.get(e.row.id).skuCategory2List.length>0&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o]&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object?a("div",{staticClass:"product-item-title"},[t._v(" "+t._s(t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object.title)+" ")]):a("div",{staticClass:"product-item-title"},[t._v(" "+t._s(t.productSkuItemMap.get(e.row.id).skuCategory2List[o].label)+" ")])])]),a("div",{staticClass:"bottom-box"},[t.productSkuItemMap&&t.productSkuItemMap.get(e.row.id)&&t.productSkuItemMap.get(e.row.id).skuCategory2List&&t.productSkuItemMap.get(e.row.id).skuCategory2List.length>0&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o]&&t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object?a("div",{staticClass:"product-price"},[t._v(" Price: $"+t._s(t.productSkuItemMap.get(e.row.id).skuCategory2List[o].object.price)+" ")]):a("div",{staticClass:"product-price"},[t._v(" ")])])])])]}}],null,!0)},[a("template",{slot:"header"},[t._v(" "+t._s(0===o?"Package":"")+" ")])],2)})),a("el-table-column",{attrs:{label:"Quantity",align:"center",width:"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.editQuantity?a("el-input-number",{attrs:{min:1,max:9999},on:{change:function(i){return t.handleCartItemNumChange(e.row)}},model:{value:e.row.quantity,callback:function(i){t.$set(e.row,"quantity",i)},expression:"scope.row.quantity"}}):a("span",[t._v(t._s(e.row.quantity))])]}}])}),a("el-table-column",{attrs:{label:"Total($)",align:"center",width:"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("MoneyFormat")(e.row.quantity*(e.row.discountPrice+e.row.fittingsPrice+e.row.blankGreetingCardPrice)))+" ")]}}])})],2),t.showFittingDialog?a("BindFittingListDialog",{attrs:{"cart-id":t.cartId,"sku-item-list":t.skuItemList,refresh:t.refresh,"cart-list":t.cartList,idx:t.idx,"update-data-fn":t.updateDataFn},on:{"update:cartList":function(e){t.cartList=e},"update:cart-list":function(e){t.cartList=e}},model:{value:t.showFittingDialog,callback:function(e){t.showFittingDialog=e},expression:"showFittingDialog"}}):t._e(),a("ImgListDialog",{attrs:{"img-list":t.currentImgList,"append-to-body":""},model:{value:t.showImgListTag,callback:function(e){t.showImgListTag=e},expression:"showImgListTag"}})],1)},o=[],s=i("f8d6"),n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"fc-999 font12"},[t._v(" "+t._s(t.optionName)+":"+t._s(t.optionValue)+" ")])])},r=[],c={name:"OptionInfo",props:{optionName:{type:String,default:null},optionValue:{type:String,default:()=>{}}}},l=c,u=(i("f600"),i("2877")),d=Object(u["a"])(l,n,r,!1,null,"01a1e64c",null),p=d.exports,g=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-dialog",{staticClass:"dialog el-dialog__title",attrs:{title:"Please select attachments","append-to-body":!0,visible:t.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[i("div",{staticClass:"item-select-box"},[i("el-radio-group",{staticClass:"group",model:{value:t.radioKey,callback:function(e){t.radioKey=e},expression:"radioKey"}},t._l(t.skuItemList,(function(e){return i("div",{key:e.radioKey,staticClass:"item",on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.skuRadioClick(e)}}},[i("el-radio",{staticClass:"fitting-box",attrs:{label:e.radioKey}},[i("img",{staticClass:"fitting-image",attrs:{alt:e.title,src:e.mainImageUrl},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.showImgList([e.mainImageUrl])}}}),i("div",{staticClass:"fitting-text-box"},[i("div",{staticClass:"fitting-title"},[t._v(t._s(e.title))]),1===e.stockingStrategy?i("div",{staticClass:"fitting-price"},[t._v(" ("+t._s(e.price&&0!==e.price?"US$"+e.price:"free")+") ")]):t._e()]),2===e.stockingStrategy?i("div",{staticClass:"inventory",on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[i("span",[t._v("Your inventory "+t._s(e.inventory?e.inventory:0)+" pic")]),!e.inventory||e.inventory{}},cartId:{type:Number,default:null},skuItemList:{type:Array,default:()=>[]},refresh:{type:Boolean,default:!0},cartList:{type:Array,default:()=>[]},idx:{type:Number,default:null},updateDataFn:{type:Function,default:()=>{}}},data(){return{radioKey:null,radioObject:null,dialogVisible:!1,showImgListTag:!1,currentImgList:[]}},watch:{value:{handler(t){this.dialogVisible=t},immediate:!0},dialogVisible:{handler(t){this.$emit("input",t)},immediate:!0}},methods:{toReplenishInventory(t){localStorage.setItem("toReplenishInventoryObject",JSON.stringify(t)),this.callNewPage("/MyCustomAccessories/")},showImgList(t){t&&t.length>0&&(this.currentImgList=t,this.showImgListTag=!0)},async confirm(){let t=[];this.radioKey&&(t=[{blankProductId:this.radioObject.blankProductId,customProductId:this.radioObject.customProductId}]);try{const e=await Object(s["d"])({id:this.cartId,fittingsList:t});200===e.code?this.$message.success("Update success!"):this.$message.error(e.msg)}catch(e){this.$message.error(e.message)}finally{this.dialogVisible=!1,this.refresh?setTimeout(this.reload(),100):this.updateDataFn()}},close(){this.dialogVisible=!1},skuRadioClick(t){2===t.stockingStrategy&&t.inventory[]},showSelection:{type:Boolean,default:!0},editQuantity:{type:Boolean,default:!0},maxColNum:{type:Number,default:0},productSkuItemMap:{type:Map,default:()=>new Map},refresh:{type:Boolean,default:!0},updateDataFn:{type:Function,default:()=>{}}},data(){return{cartId:null,skuItemList:null,showFittingDialog:!1,idx:0,showImgListTag:!1,currentImgList:[]}},computed:{...Object(y["b"])("app",{clientWidth:"clientWidth"})},watch:{cartList:{handler(t){this.$emit("update:cartList",t)},immediate:!0,deep:!0}},methods:{showImgList(t){t&&t.length>0&&(this.currentImgList=t,this.showImgListTag=!0)},showFittingDialogClick(t,e){const i=this.productSkuItemMap.get(t.id);if(i){this.cartId=t.id;const a=i.skuCategory2List[e].key;this.skuItemList=i.skuListMap.get(a)}this.idx=e,this.showFittingDialog=!this.showFittingDialog},getTableHeader(t){return 0===t?"Package":""},handleCartItemNumChange(t){var e={};e.id=t.id,e.quantity=t.quantity,Object(s["e"])(e)},handleSelectionChange(t){this.$emit("selection-change",t)},showImageUrl(t){return t.designInfo&&t.designInfo.knifeList&&t.designInfo.knifeList.length&&t.designInfo.knifeList[0].effectImageFileUrl||t.mainImageUrl},showImagePreviewUrls(t){var e=[];if(t.designInfo&&t.designInfo.knifeList&&t.designInfo.knifeList.length)for(const i of t.designInfo.knifeList)i.effectImageFileUrl&&e.push(i.effectImageFileUrl);return e.length||e.push(t.mainImageUrl),e}}},C=k,L=(i("ef7b"),Object(u["a"])(C,a,o,!1,null,"6062c628",null));e["a"]=L.exports},3021:function(t,e,i){"use strict";i("675e")},5657:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));const a={3:"Greeting Cards",4:"Jewelry Box",5:"Thank you letter",6:"Brand packaging bags",7:"Jewelry care cloth",8:"Logo sealing sticker",9:"Inventory"}},"5fd3":function(t,e,i){},"675e":function(t,e,i){},"686c":function(t,e,i){"use strict";i("1802")},"7a6d":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isMobile?t._e():i("el-dialog",{attrs:{visible:t.dialogVisible,top:"5vh",width:"40%","append-to-body":t.appendToBody},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[i("ListBox",{attrs:{"img-list":t.imgList}})],1),t.isMobile?i("dialog-h5",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[i("ListBox",{attrs:{"img-list":t.imgList}})],1):t._e()],1)},o=[],s=i("c3a1"),n=i("5b9c"),r={name:"ImgListDialog",components:{ListBox:s["a"],DialogH5:n["a"]},props:{value:{type:Boolean,default:!1},imgList:{type:Array,default:()=>[]},appendToBody:{type:Boolean,default:!0},isMobile:{type:Boolean,default:!1}},data(){return{currentIndex:0,dialogVisible:!1}},watch:{value(t){t&&(this.dialogVisible=!0)},dialogVisible(t){this.$emit("input",t)}},methods:{close(){this.dialogVisible=!1}}},c=r,l=i("2877"),u=Object(l["a"])(c,a,o,!1,null,"3475e908",null);e["a"]=u.exports},b492:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"img-container",on:{mouseenter:function(e){t.isHover=!0},mouseleave:function(e){t.isHover=!1}}},[a("Transition",[a("my-img",t._b({directives:[{name:"show",rawName:"v-show",value:t.isHover&&t.hoverImg,expression:"isHover && hoverImg"}],staticClass:"i-img",attrs:{src:t.hoverImg,"image-style":{height:"100%"},onerror:"this.src='"+i("e803")+"'"}},"my-img",t.$attrs,!1))],1),a("Transition",[a("my-img",t._b({directives:[{name:"show",rawName:"v-show",value:!(t.isHover&&t.hoverImg),expression:"!(isHover && hoverImg)"}],staticClass:"i-img",attrs:{src:t.mainImg,"image-style":{height:"100%"},onerror:"this.src='"+i("e803")+"'"}},"my-img",t.$attrs,!1))],1)],1)},o=[],s={name:"HoverImg",props:{mainImg:{type:String,default:null},hoverImg:{type:String,default:null}},data(){return{isHover:!1}},computed:{imgSrc(){return this.hoverImg&&this.isHover?this.hoverImg:this.mainImg}}},n=s,r=(i("686c"),i("2877")),c=Object(r["a"])(n,a,o,!1,null,"850380da",null);e["a"]=c.exports},b4f3:function(t,e,i){t.exports=i.p+"static/img/edit-icon-withe.1bcae7f6.svg"},cf3c:function(t,e,i){t.exports=i.p+"static/img/lens-plus-white.a997414d.svg"},d378:function(t,e,i){},ed08:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return o})),i.d(e,"c",(function(){return s})),i.d(e,"e",(function(){return n})),i.d(e,"d",(function(){return r}));i("b7ef"),i("907a"),i("3c5d"),i("fa9e"),i("77d9");const a=t=>{const e=t.split(","),i=e[0].match(/:(.*?);/)[1],a=atob(e[1]);let o=a.length;const s=new Uint8Array(o);while(o--)s[o]=a.charCodeAt(o);return new Blob([s],{type:i})},o=(t,e)=>(t.lastModifiedDate=new Date,t.name=e,t);function s(t,e){var i=t.split(","),a=i[0].match(/:(.*?);/)[1],o=atob(i[1]),s=o.length,n=new Uint8Array(s);while(s--)n[s]=o.charCodeAt(s);return new File([n],e,{type:a})}async function n(t){return new Promise(e=>{setTimeout(e,t)})}function r(t,e=2){if(isNaN(Number(t)))return t;const i=Number(t).toFixed(e);return Number(i.substring(0,i.toString().length-1))}},ef7b:function(t,e,i){"use strict";i("5fd3")},f600:function(t,e,i){"use strict";i("d378")},f8d6:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"e",(function(){return r})),i.d(e,"d",(function(){return c}));var a=i("66a5");const o=t=>Object(a["a"])({url:"/shopapi/cart/list",method:"post",data:t}),s=t=>Object(a["a"])({url:"/shopapi/cart/add",method:"post",data:t}),n=t=>Object(a["a"])({url:"/shopapi/cart/remove",method:"post",data:t}),r=t=>Object(a["a"])({url:"/shopapi/cart/update_num",method:"post",data:t}),c=t=>Object(a["a"])({url:"/shopapi/cart/update_fittings",method:"post",data:t})}}]);