12 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[92,22,28,32,43,45,48,62,64,65,66],{521:function(e,t,n){"use strict";var o=n(2),r=n(26),l=n(10),c=n(6),path=n(317),d=n(4),f=n(117),m=n(13),h=n(215),y=n(59),v=n(116),A=n(316),_=n(3),C=n(97).f,w=n(60).f,k=n(27).f,E=n(522),S=n(318).trim,x="Number",O=c[x],j=path[x],N=O.prototype,P=c.TypeError,F=d("".slice),B=d("".charCodeAt),I=function(e){var t,n,o,r,l,c,d,code,f=A(e,"number");if(v(f))throw new P("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=S(f),43===(t=B(f,0))||45===t){if(88===(n=B(f,2))||120===n)return NaN}else if(48===t){switch(B(f,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+f}for(c=(l=F(f,2)).length,d=0;d<c;d++)if((code=B(l,d))<48||code>r)return NaN;return parseInt(l,o)}return+f},T=f(x,!O(" 0o1")||!O("0b1")||O("+0x1")),U=function(e){var t,n=arguments.length<1?0:O(function(e){var t=A(e,"number");return"bigint"==typeof t?t:I(t)}(e));return y(N,t=this)&&_((function(){E(t)}))?h(Object(n),this,U):n};U.prototype=N,T&&!r&&(N.constructor=U),o({global:!0,constructor:!0,wrap:!0,forced:T},{Number:U});var D=function(e,source){for(var t,n=l?C(source):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)m(source,t=n[o])&&!m(e,t)&&k(e,t,w(source,t))};r&&j&&D(path[x],j),(T||r)&&D(path[x],O)},522:function(e,t,n){"use strict";var o=n(4);e.exports=o(1..valueOf)},524:function(e,t,n){"use strict";var o=n(2),r=n(4),l=n(80),c=n(522),d=n(319),f=n(3),m=RangeError,h=String,y=Math.floor,v=r(d),A=r("".slice),_=r(1..toFixed),C=function(e,t,n){return 0===t?n:t%2==1?C(e,t-1,n*e):C(e*e,t/2,n)},w=function(data,e,t){for(var n=-1,o=t;++n<6;)o+=e*data[n],data[n]=o%1e7,o=y(o/1e7)},k=function(data,e){for(var t=6,n=0;--t>=0;)n+=data[t],data[t]=y(n/e),n=n%e*1e7},E=function(data){for(var e=6,s="";--e>=0;)if(""!==s||0===e||0!==data[e]){var t=h(data[e]);s=""===s?t:s+v("0",7-t.length)+t}return s};o({target:"Number",proto:!0,forced:f((function(){return"0.000"!==_(8e-5,3)||"1"!==_(.9,0)||"1.25"!==_(1.255,2)||"1000000000000000128"!==_(0xde0b6b3a7640080,0)}))||!f((function(){_({})}))},{toFixed:function(e){var t,n,o,r,d=c(this),f=l(e),data=[0,0,0,0,0,0],y="",_="0";if(f<0||f>20)throw new m("Incorrect fraction digits");if(d!=d)return"NaN";if(d<=-1e21||d>=1e21)return h(d);if(d<0&&(y="-",d=-d),d>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(d*C(2,69,1))-69)<0?d*C(2,-t,1):d/C(2,t,1),n*=4503599627370496,(t=52-t)>0){for(w(data,0,n),o=f;o>=7;)w(data,1e7,0),o-=7;for(w(data,C(10,o,1),0),o=t-1;o>=23;)k(data,1<<23),o-=23;k(data,1<<o),w(data,1,1),k(data,2),_=E(data)}else w(data,0,n),w(data,1<<-t,0),_=E(data)+v("0",f);return _=f>0?y+((r=_.length)<=f?"0."+v("0",f-r)+_:A(_,0,r-f)+"."+A(_,r-f)):y+_}})},527:function(e,t,n){e.exports={}},529:function(e,t,n){"use strict";n(527)},530:function(e,t,n){e.exports={}},533:function(e,t,n){"use strict";n.r(t);n(521);var o={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:10},layout:{type:String,default:"prev, pager, next"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&scrollTo(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&scrollTo(0,800)}}},r=(n(529),n(22)),component=Object(r.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[e._t("slot"),e._v(" "),t("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],2)}),[],!1,null,"044ef958",null);t.default=component.exports},534:function(e,t,n){"use strict";n.r(t);n(521),n(524),n(11),n(17),n(32);var o=n(538),r=n(539),l=n(540),c={name:"Tinymce",props:{id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+(1e3*Math.random()).toFixed(0)}},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"auto"}},data:function(){return{hasChange:!1,hasInit:!1,tinymceId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"}}},computed:{language:function(){return this.languageTypeList[this.$store.getters.language]},containerWidth:function(){var e=this.width;return/^[\d]+(\.[\d]+)?$/.test(e)?"".concat(e,"px"):e}},watch:{value:function(e){var t=this;!this.hasChange&&this.hasInit&&this.$nextTick((function(){return window.tinymce.get(t.tinymceId).setContent(e||"")}))},language:function(){var e=this;this.destroyTinymce(),this.$nextTick((function(){return e.initTinymce()}))}},mounted:function(){this.init()},activated:function(){window.tinymce&&this.initTinymce()},deactivated:function(){this.destroyTinymce()},destroyed:function(){this.destroyTinymce()},methods:{init:function(){var e=this;Object(l.default)("//cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js",(function(t){t?e.$message.error(t.message):e.initTinymce()}))},initTinymce:function(){var e=this,t=this;window.tinymce.init({language:this.language,selector:"#".concat(this.tinymceId),height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:r.default,menubar:this.menubar,plugins:o.default,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(n){t.value&&n.setContent(t.value),t.hasInit=!0,n.on("NodeChange Change KeyUp SetContent",(function(){e.hasChange=!0,e.$emit("input",n.getContent())}))},setup:function(e){e.on("FullscreenStateChanged",(function(e){t.fullscreen=e.state}))},convert_urls:!1})},destroyTinymce:function(){var e=window.tinymce.get(this.tinymceId);this.fullscreen&&e.execCommand("mceFullScreen"),e&&e.destroy()},setContent:function(e){window.tinymce.get(this.tinymceId).setContent(e)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(e){var t=this;e.forEach((function(e){return window.tinymce.get(t.tinymceId).insertContent('<img class="wscnph" src="'.concat(e.url,'" >'))}))}}},d=(n(544),n(22)),component=Object(d.a)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"tinymce-container",class:{fullscreen:e.fullscreen},style:{width:e.containerWidth}},[t("textarea",{staticClass:"tinymce-textarea",attrs:{id:e.tinymceId}})])}),[],!1,null,"64623c0e",null);t.default=component.exports},538:function(e,t,n){"use strict";n.r(t);t.default=["advlist autolink autosave code colorpicker colorpicker contextmenu directionality fullscreen hr insertdatetime link lists nonbreaking noneditable paste preview print save spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"]},539:function(e,t,n){"use strict";n.r(t);t.default=["searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample","hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen"]},540:function(e,t,n){"use strict";n.r(t);n(41),n(78),n(81),n(82),n(65),n(39),n(11),n(17),n(34),n(33),n(42);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,a){if(e){if("string"==typeof e)return r(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,a):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,l=function(){};return{s:l,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function r(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var l=[];t.default=function(e,t){var n=document.getElementById(e),r=t||function(){};if(!n){var script=document.createElement("script");script.src=e,script.id=e,document.body.appendChild(script),l.push(r);var c="onload"in script?function(script){script.onload=function(){this.onerror=this.onload=null;var e,t=o(l);try{for(t.s();!(e=t.n()).done;){(0,e.value)(null,script)}}catch(e){t.e(e)}finally{t.f()}l=null},script.onerror=function(){this.onerror=this.onload=null,r(new Error("Failed to load "+e),script)}}:function(script){script.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState){this.onreadystatechange=null;var e,t=o(l);try{for(t.s();!(e=t.n()).done;){(0,e.value)(null,script)}}catch(e){t.e(e)}finally{t.f()}l=null}}};c(script)}n&&r&&(window.tinymce?r(null,n):l.push(r))}},543:function(e,t,n){e.exports={}},544:function(e,t,n){"use strict";n(530)},552:function(e,t,n){e.exports={}},566:function(e,t,n){"use strict";n(543)},571:function(e,t,n){"use strict";n.r(t);n(41),n(40),n(62),n(63),n(46),n(11),n(32);var o=n(24);n(521);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={props:{visible:{type:Boolean,default:!1},id:[Number,String],projectObj:{type:Object,default:function(){}},isCopy:{type:Boolean,default:!0}},data:function(){return{keyword:"",selList:[]}},mounted:function(){this.$utils.checkLogin()&&this.getSelect()},methods:{getSelect:function(){var e=this;this.$axios.post("/goods_cart/cartLabelLists",{keyword:this.keyword}).then((function(t){e.selList=t.result}))},filterMethod:function(e){this.keyword=e},handleSend:function(){var e=this;if(this.keyword)if(this.isCopy)this.$axios.post("/goods_cart/cartLabelGoodsCopy",{id:this.id,label_type_new:this.keyword}).then((function(t){e.$message.success("Added successfully"),e.$emit("sendFinish")}));else{var data=l(l({},{label_type:this.keyword,goods_id:this.id}),this.projectObj);this.$axios.post("/goods_cart/cartAdd",data).then((function(t){e.$message.success("Add success"),e.$emit("update:visible",!1)}))}else this.$message({message:"Please choose your job name",type:"warning"})},handleClose:function(){this.$emit("update:visible",!1)}}},d=(n(566),n(22)),component=Object(d.a)(c,(function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"lock-scroll":!1,visible:e.visible,width:"500px","before-close":e.handleClose,"show-close":!1,center:"",top:"0"},on:{"update:visible":function(t){e.visible=t}}},[t("div",{staticClass:"content"},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","allow-create":"",clearable:"","default-first-option":"","filter-method":e.filterMethod,placeholder:"Please choose your job name"},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}},e._l(e.selList,(function(option){return t("el-option",{key:option.label_type,attrs:{label:option.label_type,value:option.label_type}})})),1)],1),e._v(" "),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"danger"},on:{click:e.handleSend}},[e._v("Add To My Project")]),e._v(" "),t("el-button",{attrs:{type:"info",plain:""},on:{click:e.handleClose}},[e._v("CANCEL")])],1)])}),[],!1,null,"46eebe9e",null);t.default=component.exports},572:function(e,t,n){"use strict";n.r(t);n(39);var o=n(24),r=(n(41),n(40),n(521),n(62),n(63),n(46),n(11),n(32),n(534)),l=n(43);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={components:{Tinymce:r.default},props:{title:{type:String,default:"Send Email"},sendbtnCext:{type:String,default:"Send Enquiry"},cancelbtnCext:{type:String,default:"Cancel"},top:{type:String,default:"5vh"},isSendPdf:{type:Boolean,default:!1},emailForm:{},enquiryConfig:[],rules:{},labelWidth:{type:Number,default:150},marginBottom:{type:Number,default:20},visible:{type:Boolean,default:!1}},data:function(){return{downloading:!1}},computed:{comEnquiryConfig:function(){return this.enquiryConfig.filter((function(e){if(!e.hasOwnProperty("isShow")||e.isShow)return e}))}},methods:d(d({},Object(l.c)("product",["setLoading"])),{},{handleClose:function(){this.$emit("update:visible",!1)},handleSend:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(!t)return!1;e.setLoading(!0),e.isSendPdf,e.$emit("handleSend")}))}})},m=(n(586),n(22)),component=Object(m.a)(f,(function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"lock-scroll":!1,title:e.title,visible:e.visible,width:"700px","before-close":e.handleClose,top:e.top,"show-close":!1},on:{"update:visible":function(t){e.visible=t}}},[t("el-form",{ref:"ruleForm",attrs:{model:e.emailForm,rules:e.rules}},e._l(e.comEnquiryConfig,(function(n){return t("el-form-item",{key:n.prop,style:{marginBottom:e.marginBottom+"px"},attrs:{label:n.prop,"label-width":e.labelWidth+"px",prop:n.prop}},["text"===n.type?t("span",[e._v(e._s(e.emailForm[n.prop]))]):e._e(),e._v(" "),"input"===n.type?t("el-input",{attrs:{type:n.type,clearable:""},model:{value:e.emailForm[n.prop],callback:function(t){e.$set(e.emailForm,n.prop,t)},expression:"emailForm[item.prop]"}}):"textarea"===n.type?t("el-input",{attrs:{type:"textarea",rows:5,clearable:""},model:{value:e.emailForm[n.prop],callback:function(t){e.$set(e.emailForm,n.prop,t)},expression:"emailForm[item.prop]"}}):"tinymce"===n.type?t("tinymce",{attrs:{height:240},model:{value:e.emailForm[n.prop],callback:function(t){e.$set(e.emailForm,n.prop,t)},expression:"emailForm[item.prop]"}}):"select"===n.type&&n.isShow?t("el-select",{attrs:{clearable:"",filterable:"",placeholder:n.placeholder?n.placeholder:"Please select"},model:{value:e.emailForm[n.prop],callback:function(t){e.$set(e.emailForm,n.prop,t)},expression:"emailForm[item.prop]"}},e._l(n.selectlist,(function(i){return t("el-option",{key:i.id,attrs:{label:i.name,value:i.name}})})),1):"checkbox"===n.type?t("el-checkbox-group",{model:{value:e.emailForm[n.prop],callback:function(t){e.$set(e.emailForm,n.prop,t)},expression:"emailForm[item.prop]"}},e._l(n.selectlist,(function(i,n){return t("el-checkbox",{key:n,attrs:{label:n+1}},[e._v(e._s(i))])})),1):e._e()],1)})),1),e._v(" "),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary",loading:e.$store.state.product.loading},on:{click:e.handleSend}},[e._v(e._s(e.sendbtnCext))]),e._v(" "),t("el-button",{attrs:{type:"info",plain:""},on:{click:e.handleClose}},[e._v(e._s(e.cancelbtnCext))])],1)],1)}),[],!1,null,"b3af2fb8",null);t.default=component.exports;installComponents(component,{Tinymce:n(534).default})},586:function(e,t,n){"use strict";n(552)},678:function(e,t,n){e.exports={}},788:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAAXNSR0IArs4c6QAAAWxJREFUOE+t1LvrznEYxvHXLWXz91AGh/qRwyAGpUwGZJFCWQyKgSTxBxjkNCGn5TeKWIgSE8rgUCyK4dJH36eeH8/58d2/7/u6r/u6PmXOL8lunMO2qnrcw9U83A56GcvwHQs9+MzgJPtwEU9xALewEhuq6slM4CT7canb9iou4B5+Yk1VvZ4a3Ad9hJfYi+AL1lfVizZwKnCSYziFRWzFajzER6yrqjdTH28AdBXu4CvWVtXb/iBMpDjJcZzEfexAD/q5W38JdCIrkpzGUdzGTmzCDbzvlH4YFNmRiodAb+LdKOhQxUnawLM4hGvYg824jrZ2K8JApSOPl+QMDuNKB92F1rBXnaefxjX2HyuSrEA7Suv9RkwNHWhFkgU8wHn8wBE8w5aqGqt0qBVJWj0P9q3ayrC9qr6NW39kjpM87w50t+V23JGGDVvicZeG5VX1axp1Q3Oc5MS8oL///6M4SXud/us30Vsxy8TfUCiDjphJ2wcAAAAASUVORK5CYII="},789:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAVBJREFUSEvtlr8vQ1EUgL/zakEsfoyiTztilr426g8w2Bujlc1GGCQ2VrNd7BIlfY3BImFrvUptmASLviPtS6Xoa3PjiaRx53POd++Xc06u8MtHOtaPO+sIa8CA4T0e8GWZ28JhOCCZSlCTEvAIemUGkFngCc8dCwfE01lETxDd46a4agSwU3mQOTxXeglQd/5mjTdUxKwyNT8RnaKgWzZbPFdRWYoOYDvPwCuiBw2IcoFad1ECFPQUr5j9eEWkXWQ7/4DPc/ht0HpTkZ2ZAf8S5RpLj412kUoO6MdzB4Nd1E4RCLZzBCwYFW8GKxtU3K1OgHqoYGemUR02gvT5VUrFclAg/AXda9qpHMg2VsyhfFZtl/AzwGRqF5UVVOapFPJ/CrgHhkDPu3tpjZApYISYJpvOv+YHiibSi1i6D4yaAXhB2al3S1he51+FIa1d+Dv9ffcZt0CF9gAAAABJRU5ErkJggg=="},790:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAaJJREFUSEvtlD1LHFEUhp8zCiKCSIpICsPMqsQyokHcmYiVaKUWhvwDwRiIrX/AShTUwn8gplCIIAQLw85MEZGk1BD3DoEkYKGSQknQPcKs37uusyFFCm/5nvc8997DOUcodlLeCKoTQG3R+KX4C2Qc48/d9ElBYqqrGT3ZBv0KEt4B7gSaEWkh63+56i0E288HkNwSyAuM/7Yk2PGGQBdRa5Aos3wd3NRRy7E8uBClsgd0HmQYPX5fEnybt1L3BMfdB+ru+HK54QPBdoex5FG5mSX9Of1ZWON/dMN1sOOugmYx4auY35h+SM7aBEYw/rtYs9P9iDWLlWtjJ9yNNcebBG3EBAPn77oJjkAjTNh9BnmKyCeUMaJgOq+5bxCmUG0lCj/nwel1EBsT2Pfg+1L8d13huE+ALeA1JpjN96w7CswALZhg++/6OB4Ir5s/Rx/5sXkYQ+p7aqg+aifKfLiY/rIHJOneSARW+U7ku0mZZ+XJAA0lRtpbAe1DZBHV34ngIlWoDoGsYfze4rvisZeiQheAZ4mgl6YNTuQl3/zsuXQKvhgdnM4sus4AAAAASUVORK5CYII="},791:function(e,t,n){e.exports=n.p+"img/empty.9120a9f.png"},792:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAANJJREFUOE/tlEEOAUEQRd8/AAk3sBBOwI4Nt+AaCGti6wxsnYANtxArFyA4QElNRiKTiUxnZjm97K5++fWr8gVgZk1gDQyAqt8FnBdwBGaSrjKzFnAGlsBO0j0A5mLqwAhYAD0H7h0oaRMCStaa2RToOPAJNEKVpQBd6c2BJkn/1HmNv2epK4HpTuby8Ps56wr9DioacHLKhQPTlOVquQRGDoR6WHg4FBVfE6Dre9gGTnHAbiU9si51bEcNGMcB249iK07tFTAEKiFA4A0cgLmkywf4FdViH2mNeAAAAABJRU5ErkJggg=="},793:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAM1JREFUOE/t1DEuhUEYheHnLICEHSiEFdDRsAu2gVATrTXQWgENuxCVDRAs4JP5/RKRv5ncG9Wd8svMmzNnJm+gqtZxiT0st1nH+sA9TpI8p6o28Ihz3CR57YC1MKs4wBl2GvC2AZNc9YD+7q2qY2w14DvWepNNAFvSlwasJJkl3c/ZgbUAzlTlZIdt2EP9/aD/A+xJN/EXF99mlgK/NTh0OHc5zEtfR9huCTfxMAr2Oslbz82ragWHo2B3B22N1r7APpZ6gPjEHU6TPH0BEfOtYv6UTOkAAAAASUVORK5CYII="},794:function(e,t,n){"use strict";n(678)},852:function(e,t,n){"use strict";n.r(t);n(39),n(98),n(216),n(11),n(17),n(47),n(32);var o={data:function(){return{empty:n(791),open:n(792),close:n(793),keyword:"",listQuery:{page:1,limit:10},total:0,list:[],projectdDialogVisible:!1,projectId:null,old_label_type:"",formDialogVisible:!1,emailForm:{Name:"",Email:"",Phone:"",Quantity:"",Comments:""},rules:{Name:[{required:!0,message:"Please enter",trigger:"blur"}],Email:[{required:!0,message:"Please enter the correct format",pattern:/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/,trigger:"blur"}],Phone:[{required:!0,message:"Please enter the correct format",pattern:/^1[0-9]{10}$/,trigger:"blur"}],Quantity:[{required:!0,message:"Please enter",trigger:"blur"}]}}},filters:{setTime:function(e){if(e){var t=e.split(" ")[0].split("-");return"".concat(t[2],"/").concat(t[1],"/").concat(t[0])}}},mounted:function(){this.getProjectList()},methods:{getProjectList:function(){var e=this;this.$axios.post("/goods_cart/lists",{keyword:this.keyword,page:this.listQuery.page,limit:this.listQuery.limit}).then((function(t){1==t.code&&(e.list=t.result.data,e.total=t.result.total,e.list.forEach((function(t,i){e.$set(t,"lableEdit",!1),0==i?e.$set(t,"open",!0):e.$set(t,"open",!1)})))})).catch((function(){}))},toggleEdit:function(e){if(e.lableEdit){if(!e.label_type)return void this.$message.warning("Please enter");this.$axios.post("/goods_cart/cartLabelEdit",{label_type_new:e.label_type,label_type_used:this.old_label_type}).then((function(e){}))}else this.old_label_type=e.label_type;e.lableEdit=!e.lableEdit},toggle:function(i){this.list[i].open=!this.list[i].open},sendEnquiry:function(){this.formDialogVisible=!0},sendPriceMail:function(){},copy:function(i){this.projectdDialogVisible=!0,this.projectId=i.id},finishCopy:function(){this.projectdDialogVisible=!1,location.reload()},del:function(e,t,n){var o=this;this.$confirm("Are you sure that you want to delete your project?",{confirmButtonText:"Yes,remove",cancelButtonText:"No,thanks",showCancelButton:!0,type:"error",center:!0,confirmButtonClass:"project-sure",cancelButtonClass:"project-cancel",showClose:!1,customClass:"message_style"}).then((function(){o.$axios.post("/goods_cart/delete",{id:e.id}).then((function(e){o.list[t].lists.splice(n,1),o.list[t].lists.length||(o.list.splice(t,1),o.total-=1),o.projectdDialogVisible=!1,o.$message.success("successfully deleted")}))}))},delGoods:function(e,t,n){var o=this;this.$axios.post("/goods_cart/delete",{id:e}).then((function(e){o.list[t].lists.splice(n,1),o.list[t].lists.length||(o.list.splice(t,1),o.total-=1),o.$message.success("successfully deleted")}))},goCategory:function(e){var t=e.length-1;switch(console.log("index: ",t),t){case 0:this.$router.push({name:"category-firstCategory",params:{firstCategory:e[0].name.replace(/\s+/g,"-").replace("-&","").toLowerCase()}});break;case 1:this.$router.push({name:"category-firstCategory-secondCategory",params:{firstCategory:e[0].name.replace(/\s+/g,"-").replace("-&","").toLowerCase(),secondCategory:e[1].name.replace(/\s+/g,"-").replace("-&","").toLowerCase()}});break;case 2:this.$router.push({name:"category-firstCategory-secondCategory-thirdCategory",params:{firstCategory:e[0].name.replace(/\s+/g,"-").replace("-&","").toLowerCase(),secondCategory:e[1].name.replace(/\s+/g,"-").replace("-&","").toLowerCase(),thirdCategory:e[2].name.replace(/\s+/g,"-").replace("-&","").toLowerCase()}});break;default:this.$router.push({path:"/category"})}}}},r=(n(794),n(22)),component=Object(r.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"com-main com-width-1400 com-margin-auto main pro-wrap"},[t("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("Home")]),e._v(" "),t("el-breadcrumb-item",[e._v("My Projects")])],1),e._v(" "),t("div",{staticClass:"topbar com-flex"},[t("div",{staticClass:"search-input"},[t("el-input",{attrs:{clearable:"",placeholder:"Search Item here"},on:{clear:e.getProjectList},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getProjectList.apply(null,arguments)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}},[t("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},on:{click:e.getProjectList},slot:"suffix"})])],1),e._v(" "),t("div",{staticClass:"topbar-item com-flex"},[e._v(e._s(e.total)+" Projects")])]),e._v(" "),e.total?t("section",{staticClass:"project-wrap"},[t("ul",{staticClass:"project"},e._l(e.list,(function(o,r){return t("li",{key:o.id,staticClass:"project-li"},[t("div",{staticClass:"head"},[t("div",{staticClass:"head-item left"},[t("img",{staticClass:"toggle",attrs:{src:o.open?e.close:e.open},on:{click:function(t){return e.toggle(r)}}}),e._v(" "),o.lableEdit?t("el-input",{staticClass:"edit-input",attrs:{size:"medium"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggleEdit(o)}},model:{value:o.label_type,callback:function(t){e.$set(o,"label_type",t)},expression:"items.label_type"}}):t("span",[e._v(e._s(o.label_type))]),e._v(" "),t("img",{attrs:{src:n(788)},on:{click:function(t){return e.toggleEdit(o)}}})],1)]),e._v(" "),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:o.open,expression:"items.open"}]},[o.lists.length?t("ul",{staticClass:"content"},e._l(o.lists,(function(o,l){var c,d,f,m,h,y,v,A,_,C,w,k,E;return t("li",{key:o.id,staticClass:"content-li"},[t("div",{staticClass:"content-li-wrap"},[t("el-image",{staticStyle:{width:"335px",height:"290px"},attrs:{lazy:"",src:null===(c=o.info)||void 0===c?void 0:c.image,fit:"cover"}}),e._v(" "),t("div",{staticClass:"content-li-r"},[t("ul",{staticClass:"info"},[t("li",[t("div",{staticClass:"name"},[e._v(e._s(null===(d=o.goods)||void 0===d?void 0:d.product_name))])]),e._v(" "),t("li",[t("div",{staticClass:"left"},[e._v("Model")]),e._v(" "),t("div",{staticClass:"right"},[e._v("\n "+e._s(null===(f=o.goods)||void 0===f?void 0:f.product_code)),null!==(m=o.cycle)&&void 0!==m&&m.name?t("span",[e._v(","+e._s(null===(h=o.cycle)||void 0===h?void 0:h.name))]):e._e(),e._v(" "),null!==(y=o.priceUnit)&&void 0!==y&&y.point?t("span",[e._v(", "+e._s(null===(v=o.priceUnit)||void 0===v?void 0:v.point)+" ")]):e._e(),e._v(" "),null!==(A=o.priceUnit)&&void 0!==A&&A.colours_number?t("span",[e._v(", "+e._s(null===(_=o.priceUnit)||void 0===_?void 0:_.colours_number)+" colours")]):e._e()])]),e._v(" "),null!==(C=o.goods_cart_decunit)&&void 0!==C&&C.length?t("li",[t("div",{staticClass:"left"},[e._v("Decoration")]),e._v(" "),t("div",{staticClass:"right"},e._l(o.goods_cart_decunit,(function(option){return t("div",{key:option.id},[e._v("\n "+e._s(option.point)+" , "+e._s(option.dec_name)+" "),option.colours_number?t("span"):e._e()])})),0)]):e._e(),e._v(" "),o.addition?t("li",[t("div",{staticClass:"left"},[e._v("Addon")]),e._v(" "),t("div",{staticClass:"right"},[e._v(e._s(o.addition))])]):e._e(),e._v(" "),o.packaging_addition?t("li",[t("div",{staticClass:"left"},[e._v("Packaging")]),e._v(" "),t("div",{staticClass:"right"},[e._v(e._s(o.packaging_addition))])]):e._e(),e._v(" "),t("li",[t("div",{staticClass:"left"},[e._v("Created")]),e._v(" "),t("div",{staticClass:"right"},[e._v("\n "+e._s(e._f("setTime")(o.create_time))+"\n ")])]),e._v(" "),t("li",[t("div",{staticClass:"left"},[e._v("Last Edited")]),e._v(" "),t("div",{staticClass:"right"},[e._v("\n "+e._s(e._f("setTime")(o.update_time))+"\n ")])])]),e._v(" "),t("div",{staticClass:"func"},[t("el-tooltip",{attrs:{content:"Copy",placement:"bottom",effect:"light"}},[t("img",{attrs:{src:n(789),alt:""},on:{click:function(t){return e.copy(o)}}})]),e._v(" "),t("el-tooltip",{attrs:{content:"Delete",placement:"bottom",effect:"light"}},[t("img",{attrs:{src:n(790),alt:""},on:{click:function(t){return e.del(o,r,l)}}})])],1)])],1),e._v(" "),o.goods_check_update||0==(null===(w=o.goods)||void 0===w?void 0:w.for_au)?t("div",{staticClass:"mask"},[null!==(k=o.goods)&&void 0!==k&&k.for_au?t("p",[e._v("Product information changes, please revise your project")]):t("p",[e._v("This item has been discontinued and cannot be purchased")]),e._v(" "),t("div",{staticClass:"mask-btn"},[t("span",{staticClass:"del",on:{click:function(t){return e.delGoods(o.id,r,l)}}},[e._v("remove")]),e._v(" "),null!==(E=o.goods)&&void 0!==E&&E.for_au?t("span",{staticClass:"edit",on:{click:function(t){return e.goCategory(o.cate_arr)}}},[e._v("buy the same item")]):t("span",{staticClass:"edit"},[e._v("Edit")])])]):e._e()])})),0):t("el-empty",{attrs:{image:e.empty,description:"No Data!","image-size":180}})],1)])],1)})),0),e._v(" "),t("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getProjectList}})],1):t("el-empty",{attrs:{image:e.empty,description:"No projects have been saved yet!","image-size":180}}),e._v(" "),t("project-dialog",{attrs:{visible:e.projectdDialogVisible,id:e.projectId},on:{"update:visible":function(t){e.projectdDialogVisible=t},sendFinish:e.finishCopy}}),e._v(" "),t("form-dialog",{attrs:{emailForm:e.emailForm,visible:e.formDialogVisible,rules:e.rules,labelWidth:90},on:{"update:visible":function(t){e.formDialogVisible=t},handleSend:e.sendPriceMail}})],1)}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{Pagination:n(533).default,ProjectDialog:n(571).default,FormDialog:n(572).default})}}]);
- //# sourceMappingURL=d5c3d94.js.map
|