(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a2b82bd2"],{"6b1f":function(e,t,s){"use strict";s.d(t,"f",(function(){return o})),s.d(t,"b",(function(){return r})),s.d(t,"d",(function(){return a})),s.d(t,"a",(function(){return l})),s.d(t,"h",(function(){return n})),s.d(t,"g",(function(){return g})),s.d(t,"c",(function(){return u})),s.d(t,"i",(function(){return c})),s.d(t,"e",(function(){return m}));var i=s("b775");function o(e){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:e})}function r(e){return Object(i["a"])({url:"/local/organization",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/local/brands",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/local/upbrands",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:e})}function u(e){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/local/cate",method:"get",params:e})}},ab19:function(e,t,s){},ba53:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"fill-store-inf"},[s("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[s("el-steps",{attrs:{active:2,"align-center":"","finish-status":"success"}},[s("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写品牌信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),s("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),s("div",{staticClass:"main-con"},[s("el-form",{ref:"storeForm",attrs:{model:e.storeForm,rules:e.shopRules,"label-width":"180px"}},[s("el-form-item",{attrs:{label:"电商平台经验:",prop:"is_business_experience"}},[s("el-radio-group",{model:{value:e.storeForm.is_business_experience,callback:function(t){e.$set(e.storeForm,"is_business_experience",t)},expression:"storeForm.is_business_experience"}},[s("el-radio",{attrs:{label:1}},[e._v("有")]),e._v(" "),s("el-radio",{attrs:{label:0}},[e._v("无")])],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺名称:",prop:"store_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入店铺名称"},model:{value:e.storeForm.store_name,callback:function(t){e.$set(e.storeForm,"store_name",t)},expression:"storeForm.store_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"经营类目:",prop:"scope"}},[s("el-select",{staticStyle:{width:"400px"},attrs:{multiple:"",placeholder:"请选择..."},model:{value:e.storeForm.scope,callback:function(t){e.$set(e.storeForm,"scope",t)},expression:"storeForm.scope"}},e._l(e.scopeOptions,(function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺LOGO:",prop:"shop_logo"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card",limit:1,"on-exceed":e.showTip1,"before-upload":e.beforeUpLogoImg,"http-request":e.uploadLogoImgs,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.logoImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[e._v("请上传店铺LOGO,文件大小在500KB以内,支持png,jpg格式,最多可上传1张")])])])]),e._v(" "),s("el-form-item",{attrs:{label:"运营负责人:",prop:"emergency_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入运营负责人姓名"},model:{value:e.storeForm.emergency_name,callback:function(t){e.$set(e.storeForm,"emergency_name",t)},expression:"storeForm.emergency_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"联系电话:",prop:"emergency_tel"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入联系电话"},model:{value:e.storeForm.emergency_tel,callback:function(t){e.$set(e.storeForm,"emergency_tel",t)},expression:"storeForm.emergency_tel"}})],1),e._v(" "),s("el-form-item",[s("p",{staticStyle:{width:"580px","line-height":"24px","font-size":"14px",margin:"0"}},[e._v("需要提交特殊产品资质的类目请将资质上传在此处,包括全国工业生产许可证、3C、医疗品械\n 生产许可证、化妆品生产企业许可证等,根据具体类目资质要求提交")])]),e._v(" "),s("el-form-item",{attrs:{label:"其他资质:",prop:"business_auth"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card",limit:20,"on-exceed":e.showTip20,"before-upload":e.beforeUpBusImg,"http-request":e.uploadBusinessImgs,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.businessImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px",color:"#333"}},[s("span",{staticClass:"tips-text"},[e._v("请上其他资质,单个文件大小在2MB以内,支持jpg,png格式,最多可上传20张")])])])]),e._v(" "),s("el-form-item",{staticStyle:{margin:"40px 0 0"}},[s("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:e.back}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.next("storeForm")}}},[e._v("提交审核")])],1)],1)],1)])],1)},o=[],r=(s("28a5"),s("6b1f")),a={name:"FillShopInf",data:function(){var e=this,t=function(t,s,i){e.logoImgFileList.length>0?i():0===e.logoImgFileList.length&&i(new Error("店铺logo图片至少上传一张"))},s=function(t,s,i){e.businessImgFileList.length>0?i():0===e.businessImgFileList.length&&i(new Error("其他资质图片至少上传一张"))},i=function(e,t,s){var i=/^1[3456789]\d{9}$/;i.test(t)?s():s(new Error("手机号码格式有误"))};return{dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,logoImgFileList:[],businessImgFileList:[],scopeOptions:[],storeForm:{is_business_experience:0,store_name:"",scope:[],shop_logo:"",business_auth:"",emergency_name:""},shopRules:{store_name:[{required:!0,message:"店铺名称不能为空",trigger:"blur"}],scope:[{required:!0,message:"经营类目至少选择一种",trigger:"change"}],shop_logo:[{required:!0,message:"店铺Logo至少上传一张图片",validator:t}],emergency_name:[{required:!0,message:"运营负责人不能为空",trigger:"blur"}],emergency_tel:[{required:!0,message:"联系人手机号码不能为空",trigger:"blur"},{required:!0,validator:i,trigger:"blur"}],business_auth:[{required:!0,message:"其他资质至少上传一张图片",validator:s}]}}},created:function(){var e=this;Object(r["e"])().then((function(t){1===t.code&&(e.scopeOptions=t.data)})),this.getShop()},mounted:function(){},methods:{showTip1:function(e,t){this.$message({message:"最多上传1张图片",type:"warning"})},showTip20:function(e,t){this.$message({message:"最多上传20张图片",type:"warning"})},beforeUpLogoImg:function(e){var t=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过500kb",type:"warning"}),!1):void 0},beforeUpBusImg:function(e){var t=e.size/1024/1024>2;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},getShop:function(){var e=this;Object(r["g"])().then((function(t){if(t&&1===t.code&&t.data){if(e.storeForm.scope=[],""===t.data.scope)e.storeForm.scope=[];else{for(var s=t.data.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));e.storeForm=t.data,e.storeForm.scope=i}var r={},a=[];if(e.storeForm.shop_logo.indexOf(",")>0){a=e.storeForm.shop_logo.split(",");for(var l=0;l<a.length;l++)r={},r.url=a[l],e.logoImgFileList.push(r)}else e.storeForm.shop_logo?(r.url=e.storeForm.shop_logo,e.logoImgFileList=[],e.logoImgFileList.push(r)):e.logoImgFileList=[];var n={},g=[];if(e.storeForm.business_auth.indexOf(",")>0){g=e.storeForm.business_auth.split(",");for(var u=0;u<g.length;u++)n={},n.url=g[u],e.businessImgFileList.push(n)}else e.storeForm.business_auth?(n.url=e.storeForm.business_auth,e.businessImgFileList=[],e.businessImgFileList.push(n)):e.businessImgFileList=[]}else 0===t.code&&t.msg?e.$message({message:t.msg,type:"error"}):e.$message({message:"数据有误!",type:"error"})}))},uploadLogoImgs:function(e){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img};Object(r["i"])(i).then((function(e){if(e&&1===e.code)t.logoImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("shop_logo");else{var s="";s=e.message||"上传失败",t.$message({type:"success",message:s})}}))}))},uploadBusinessImgs:function(e){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img};Object(r["i"])(i).then((function(e){e&&1===e.code&&(t.businessImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("business_auth"))}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,t){for(var s=0;s<this.logoImgFileList.length;s++)e.uid===this.logoImgFileList[s].uid&&this.logoImgFileList.splice(s,1)},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,t){for(var s=0;s<this.businessImgFileList.length;s++)e.uid===this.businessImgFileList[s].uid&&this.businessImgFileList.splice(s,1)},getBase64:function(e){return new Promise((function(t,s){var i=new FileReader,o="";i.readAsDataURL(e),i.onload=function(){o=i.result},i.onerror=function(e){s(e)},i.onloadend=function(){t(o)}}))},back:function(){this.$router.push("/fillBrandInf")},next:function(e){for(var t=this,s="",i=0;i<this.storeForm.scope.length;i++)s+=this.storeForm.scope[i]+",";if(this.storeForm.scope=s.substring(0,s.length-1),this.logoImgFileList.length>0)for(var o=0;o<this.logoImgFileList.length;o++)0===o?this.storeForm.shop_logo=this.logoImgFileList[o].url:this.storeForm.shop_logo+=","+this.logoImgFileList[o].url;if(this.businessImgFileList.length>0)for(var a=0;a<this.businessImgFileList.length;a++)0===a?this.storeForm.business_auth=this.businessImgFileList[a].url:this.storeForm.business_auth+=","+this.businessImgFileList[a].url;this.$refs[e].validate((function(e){if(e)Object(r["c"])(t.storeForm).then((function(e){if(1===e.code)t.$router.push("/reviewing");else if(0===e.code&&e.msg){if(""===t.storeForm.scope)t.storeForm.scope=[];else{for(var s=t.storeForm.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));t.storeForm.scope=i}e.msg?t.$message({message:e.msg,type:"error"}):t.$message({message:"数据开小差了,请稍后重试",type:"error"})}}));else if(""===t.storeForm.scope)t.storeForm.scope=[];else{for(var s=t.storeForm.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));t.storeForm.scope=i}}))}}},l=a,n=(s("d93b"),s("2877")),g=Object(n["a"])(l,i,o,!1,null,"217dbf05",null);t["default"]=g.exports},d93b:function(e,t,s){"use strict";s("ab19")}}]);
-
由 huaxinzhu 提交于2f78c6e7