提交 fd2f34ee authored 作者: huaxinzhu's avatar huaxinzhu

Merge branch 'fix-m-postage-tips' into test

No preview for this file type
......@@ -181,8 +181,12 @@
font-size: 13px;
color: #FFF;
opacity: 0.5;
<<<<<<< HEAD
}</style><link href=/static/css/chunk-libs.144811ca.css rel=stylesheet><link href=/static/css/app.981cdb47.css rel=stylesheet></head><body><div id=app><div id=loader-wrapper><div id=loader></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div><div class=load_title>正在加载系统资源,请耐心等待</div></div></div><script src=/static/js/chunk-elementUI.c1dc07ee.js></script><script src=/static/js/chunk-libs.50d3d7f1.js></script><script>(function(e){function n(n){for(var t,u,a=n[0],f=n[1],o=n[2],h=0,i=[];h<a.length;h++)u=a[h],r[u]&&i.push(r[u][0]),r[u]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);k&&k(n);while(i.length)i.shift()();return d.push.apply(d,o||[]),c()}function c(){for(var e,n=0;n<d.length;n++){for(var c=d[n],t=!0,u=1;u<c.length;u++){var a=c[u];0!==r[a]&&(t=!1)}t&&(d.splice(n--,1),e=f(f.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},d=[];function a(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-0a90d205":"0189bbe0","chunk-1516e206":"1c96bf19","chunk-17db7236":"a8a97ccc","chunk-1b9ca1bf":"37bc6947","chunk-1d0d7df2":"985ae709","chunk-2d0c7ece":"6e0c231b","chunk-2d0c84d3":"cdf8b2d0","chunk-0b4a9e9a":"82347d9f","chunk-2d0e28b6":"b5c279ef","chunk-4d6a6d90":"30667628","chunk-2d0d6345":"e4d18775","chunk-2d0e2366":"13651a23","chunk-3b89da72":"d462cdfd","chunk-b0d57d44":"a672684b","chunk-2d0d67a2":"2a791f8c","chunk-779f4447":"d38b8e9c","chunk-2d0f012d":"c5cdd7ec","chunk-2d22db58":"4991ac92","chunk-4b29491c":"c369f469","chunk-07e45201":"d5aafa30","chunk-5f18f729":"565ed286","chunk-64b639c7":"e6e10783","chunk-6c237b40":"54fd57df","chunk-7c2f4fe6":"13bc5f69","chunk-b4915312":"bc882284","chunk-f18f73fa":"4bb6d952"}[e]+".js"}function f(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[],c={"chunk-0a90d205":1,"chunk-1516e206":1,"chunk-17db7236":1,"chunk-1b9ca1bf":1,"chunk-1d0d7df2":1,"chunk-3b89da72":1,"chunk-b0d57d44":1,"chunk-4b29491c":1,"chunk-07e45201":1,"chunk-5f18f729":1,"chunk-64b639c7":1,"chunk-6c237b40":1,"chunk-b4915312":1,"chunk-f18f73fa":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-0a90d205":"9183fc08","chunk-1516e206":"0934badc","chunk-17db7236":"354a7711","chunk-1b9ca1bf":"e539ec29","chunk-1d0d7df2":"f9a06397","chunk-2d0c7ece":"31d6cfe0","chunk-2d0c84d3":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-2d0e28b6":"31d6cfe0","chunk-4d6a6d90":"31d6cfe0","chunk-2d0d6345":"31d6cfe0","chunk-2d0e2366":"31d6cfe0","chunk-3b89da72":"35acf66b","chunk-b0d57d44":"3c72d4e5","chunk-2d0d67a2":"31d6cfe0","chunk-779f4447":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2d22db58":"31d6cfe0","chunk-4b29491c":"43a2482e","chunk-07e45201":"2123e5ba","chunk-5f18f729":"c9a455ad","chunk-64b639c7":"7d5c00e2","chunk-6c237b40":"fe6be668","chunk-7c2f4fe6":"31d6cfe0","chunk-b4915312":"3fd47436","chunk-f18f73fa":"0615606c"}[e]+".css",r=f.p+t,d=document.getElementsByTagName("link"),a=0;a<d.length;a++){var o=d[a],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===r))return n()}var i=document.getElementsByTagName("style");for(a=0;a<i.length;a++){o=i[a],h=o.getAttribute("data-href");if(h===t||h===r)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var t=n&&n.target&&n.target.src||r,d=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");d.request=t,delete u[e],k.parentNode.removeChild(k),c(d)},k.href=r;var b=document.getElementsByTagName("head")[0];b.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var d=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=d);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,f.nc&&h.setAttribute("nonce",f.nc),h.src=a(e),o=function(n){h.onerror=h.onload=null,clearTimeout(i);var c=r[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src,d=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");d.type=t,d.request=u,c[1](d)}r[e]=void 0}};var i=setTimeout((function(){o({type:"timeout",target:h})}),12e4);h.onerror=h.onload=o,document.head.appendChild(h)}return Promise.all(n)},f.m=e,f.c=t,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)f.d(c,t,function(n){return e[n]}.bind(null,t));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="/",f.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],h=o.push.bind(o);o.push=n,o=o.slice();for(var i=0;i<o.length;i++)n(o[i]);var k=h;c()})([]);
//# sourceMappingURL=runtime.a831883c.js.map</script><script src=/static/js/app.6e09aa9d.js></script></body><script>window.onload = function() {
=======
}</style><link href=/static/css/chunk-libs.144811ca.css rel=stylesheet><link href=/static/css/app.869d8c64.css rel=stylesheet></head><body><div id=app><div id=loader-wrapper><div id=loader></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div><div class=load_title>正在加载系统资源,请耐心等待</div></div></div><script src=/static/js/chunk-elementUI.e19103bf.js></script><script src=/static/js/chunk-libs.afedb25b.js></script><script>(function(e){function n(n){for(var t,u,a=n[0],f=n[1],o=n[2],h=0,i=[];h<a.length;h++)u=a[h],r[u]&&i.push(r[u][0]),r[u]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);k&&k(n);while(i.length)i.shift()();return d.push.apply(d,o||[]),c()}function c(){for(var e,n=0;n<d.length;n++){for(var c=d[n],t=!0,u=1;u<c.length;u++){var a=c[u];0!==r[a]&&(t=!1)}t&&(d.splice(n--,1),e=f(f.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},d=[];function a(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-0a90d205":"ed4c9710","chunk-1516e206":"c8b98cf5","chunk-17db7236":"eaa1455a","chunk-1b9ca1bf":"fa1e66dc","chunk-1d0d7df2":"59c4406c","chunk-2d0c7ece":"45001674","chunk-2d0c84d3":"cdf8b2d0","chunk-0b4a9e9a":"d0af0990","chunk-2d0e28b6":"1306f738","chunk-4d6a6d90":"30667628","chunk-2d0d6345":"e4d18775","chunk-2d0e2366":"13651a23","chunk-3b89da72":"b040f9de","chunk-b0d57d44":"a672684b","chunk-2d0d67a2":"2faff61e","chunk-779f4447":"d66be21c","chunk-2d0f012d":"c5cdd7ec","chunk-2d22db58":"15b71c1c","chunk-4b29491c":"7c20c958","chunk-07e45201":"4a036617","chunk-5f18f729":"91b8ccb6","chunk-64b639c7":"0ec45ec1","chunk-6c237b40":"c1d15112","chunk-7c2f4fe6":"e0382123","chunk-b4915312":"12278afc","chunk-f18f73fa":"df6e3834"}[e]+".js"}function f(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[],c={"chunk-0a90d205":1,"chunk-1516e206":1,"chunk-17db7236":1,"chunk-1b9ca1bf":1,"chunk-1d0d7df2":1,"chunk-3b89da72":1,"chunk-b0d57d44":1,"chunk-4b29491c":1,"chunk-07e45201":1,"chunk-5f18f729":1,"chunk-64b639c7":1,"chunk-6c237b40":1,"chunk-b4915312":1,"chunk-f18f73fa":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-0a90d205":"9183fc08","chunk-1516e206":"0934badc","chunk-17db7236":"354a7711","chunk-1b9ca1bf":"e539ec29","chunk-1d0d7df2":"f9a06397","chunk-2d0c7ece":"31d6cfe0","chunk-2d0c84d3":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-2d0e28b6":"31d6cfe0","chunk-4d6a6d90":"31d6cfe0","chunk-2d0d6345":"31d6cfe0","chunk-2d0e2366":"31d6cfe0","chunk-3b89da72":"35acf66b","chunk-b0d57d44":"3c72d4e5","chunk-2d0d67a2":"31d6cfe0","chunk-779f4447":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2d22db58":"31d6cfe0","chunk-4b29491c":"43a2482e","chunk-07e45201":"2123e5ba","chunk-5f18f729":"c9a455ad","chunk-64b639c7":"7d5c00e2","chunk-6c237b40":"fe6be668","chunk-7c2f4fe6":"31d6cfe0","chunk-b4915312":"3fd47436","chunk-f18f73fa":"0615606c"}[e]+".css",r=f.p+t,d=document.getElementsByTagName("link"),a=0;a<d.length;a++){var o=d[a],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===r))return n()}var i=document.getElementsByTagName("style");for(a=0;a<i.length;a++){o=i[a],h=o.getAttribute("data-href");if(h===t||h===r)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var t=n&&n.target&&n.target.src||r,d=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");d.request=t,delete u[e],k.parentNode.removeChild(k),c(d)},k.href=r;var b=document.getElementsByTagName("head")[0];b.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var d=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=d);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,f.nc&&h.setAttribute("nonce",f.nc),h.src=a(e),o=function(n){h.onerror=h.onload=null,clearTimeout(i);var c=r[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src,d=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");d.type=t,d.request=u,c[1](d)}r[e]=void 0}};var i=setTimeout((function(){o({type:"timeout",target:h})}),12e4);h.onerror=h.onload=o,document.head.appendChild(h)}return Promise.all(n)},f.m=e,f.c=t,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)f.d(c,t,function(n){return e[n]}.bind(null,t));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="/",f.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],h=o.push.bind(o);o.push=n,o=o.slice();for(var i=0;i<o.length;i++)n(o[i]);var k=h;c()})([]);</script><script src=/static/js/app.9e7838b5.js></script></body><script>window.onload = function() {
>>>>>>> fix-m-postage-tips
var op = 'open'
var ssa = window.location.host
var xhttp = new XMLHttpRequest();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1516e206"],{"6b1f":function(e,t,s){"use strict";s.d(t,"g",(function(){return o})),s.d(t,"i",(function(){return r})),s.d(t,"b",(function(){return a})),s.d(t,"d",(function(){return n})),s.d(t,"a",(function(){return l})),s.d(t,"l",(function(){return c})),s.d(t,"j",(function(){return g})),s.d(t,"c",(function(){return u})),s.d(t,"m",(function(){return m})),s.d(t,"e",(function(){return p})),s.d(t,"h",(function(){return d})),s.d(t,"f",(function(){return h})),s.d(t,"k",(function(){return f}));var i=s("b775");function o(e){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:e})}function r(e){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:e})}function a(e){return Object(i["a"])({url:"/local/organization",method:"post",data:e})}function n(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 c(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 m(e){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/local/cate",method:"get",params:e})}function d(e){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:e})}},"955d":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",size:"small"}},[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:"请选择..."},on:{"remove-tag":e.removeTag,"visible-change":function(t){return e.scopeVisibleChange(t)}},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",{class:["uploadData",{"hiden-dom":e.logoImgFileList.length>=1}],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:"其他资质:"}},[s("div",{staticClass:"auth-con"},e._l(e.qualificationList,(function(t,i){return s("div",{key:t.id,staticClass:"single-upload-con"},[s("div",{directives:[{name:"show",rawName:"v-show",value:!t.url,expression:"!item.url"}],staticClass:"single-auth-img el-icon-plus",on:{click:function(t){return e.upPreAuthImg(i)}}}),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.url,expression:"item.url"}],staticClass:"single-auth-img-con"},[s("img",{staticClass:"auth-spec-img",attrs:{src:t.url,alt:""}}),e._v(" "),s("span",{staticClass:"span-img-del-loading"},[s("span",{staticClass:"span-img-del el-icon-zoom-in zoom-span-block",on:{click:function(s){return e.viewSingleSpecImg(i,t)}}}),e._v(" "),s("span",{staticClass:"span-img-del el-icon-delete del-span-block",on:{click:function(s){return e.delSingleSpecImg(i,t)}}})])]),e._v(" "),s("div",{staticClass:"single-title"},[e._v(e._s(e.authTitleFormatter(t.content)))]),e._v(" "),s("input",{ref:"hxz"+i,refInFor:!0,staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:function(s){return e.changeIMG(i,t)}}})])})),0)]),e._v(" "),s("el-form-item",{staticClass:"confirm-btn"},[s("div",[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)]),e._v(" "),s("el-dialog",{staticClass:"img-dialog-con",attrs:{visible:e.imgDialog,"destroy-on-close":!0,width:"60%",center:"","close-on-click-modal":!1},on:{"update:visible":function(t){e.imgDialog=t}}},[s("img",{staticClass:"img-spe",attrs:{src:e.qualificationUrl,alt:""}})])],1)},o=[],r=(s("ac6a"),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(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"},{max:36,message:"店铺名称最多输入36个字符",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:s,trigger:"blur"}]},qualificationList:[],qualificationUrl:"",imgDialog:!1}},created:function(){var e=this;Object(r["e"])().then((function(t){1==t.code?e.scopeOptions=t.data:e.$message({type:"error",message:t.message?t.message:""})})),Object(r["g"])().then((function(t){1==t.code&&t.data.user?t.data.user.state>0&&e.getShop():e.$message({type:"error",message:t.message?t.message:"获取数据失败"})}))},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["j"])().then((function(t){if(1==t.code){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={};r=e.storeForm.shop_logo.split(","),r.length>0?r.forEach((function(t){a={},t&&(a.url=t,e.logoImgFileList.push(a))})):e.logoImgFileList=[],e.qualificationList=e.storeForm.qualification}else e.$message({type:"error",message:t.message?t.message:""})}))},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["m"])(i).then((function(e){1==e.code?(t.logoImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("shop_logo")):t.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},uploadBusinessImgs:function(e){console.log(368,e)},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("/fillMainInf")},next:function(e){var t=this,s=!1;if(this.qualificationList.length>0){for(var i=0;i<this.qualificationList.length;i++)if(!this.qualificationList[i].url){s=!0;break}if(s)return void this.$message({type:"warning",message:"请上传对应资质所需的图片"})}for(var o="",a=0;a<this.storeForm.scope.length;a++)o+=this.storeForm.scope[a]+",";if(this.storeForm.scope=o.substring(0,o.length-1),this.logoImgFileList.length>0)for(var n=0;n<this.logoImgFileList.length;n++)0===n?this.storeForm.shop_logo=this.logoImgFileList[n].url:this.storeForm.shop_logo+=","+this.logoImgFileList[n].url;this.storeForm.qualification_auth=JSON.stringify(this.qualificationList),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(t.$message({type:"error",message:e.message?e.message:"保存失败"}),""===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}}));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}}))},removeTag:function(e){var t=this;if(e&&(0==this.storeForm.scope.length&&(this.qualificationList=[]),this.storeForm.scope.length>0)){var s={cate_ids:this.storeForm.scope};Object(r["k"])(s).then((function(e){1==e.code&&(t.qualificationList=e.data?e.data:[])}))}},scopeVisibleChange:function(e){var t=this;if(!e&&Array.isArray(this.storeForm.scope)&&this.storeForm.scope.length>0){var s={cate_ids:this.storeForm.scope};Object(r["k"])(s).then((function(e){1==e.code&&(t.qualificationList=e.data?e.data:[])}))}},upPreAuthImg:function(e){var t="hxz"+e;this.$refs[t][0].value="",this.$refs[t][0].click()},changeIMG:function(e,t){var s=this,i=t,o="hxz"+e,a=this.$refs[o][0].files[0];a.size>3145728?this.$message({type:"error",message:"规格图片不能大于 3 M"}):this.getBase64(a).then((function(e){var t=e.split(",");s.Base64img=t[1];var o={img_data:s.Base64img};Object(r["m"])(o).then((function(e){e&&1==e.code?(i.url=e.data.image_url,s.$message({message:"上传成功",type:"success"})):s.$message({message:"上传失败,请重新上传",type:"error"})}))}))},delSingleSpecImg:function(e,t){t.url&&(t.url="",this.$message({type:"success",message:"删除成功"}))},viewSingleSpecImg:function(e,t){this.imgDialog=!1,t.url&&(this.imgDialog=!0,this.qualificationUrl=t.url)},authTitleFormatter:function(e){var t="";return e&&(t=e.trim()),t}}},n=a,l=(s("ec46"),s("2877")),c=Object(l["a"])(n,i,o,!1,null,"f4b5db4c",null);t["default"]=c.exports},ec46:function(e,t,s){"use strict";s("955d")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17db7236"],{"0245":function(t,e,n){},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return u})),n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return h})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return A})),n.d(e,"k",(function(){return p}));var a=n("b775");function u(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function r(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},a0bf:function(t,e,n){"use strict";n("0245")},e4dd:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"to-review"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:3,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"注册账号"}}),t._v(" "),a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main"},[a("div",{staticClass:"fuck"},[a("p",[a("img",{attrs:{src:n("e9f2"),alt:""}})]),t._v(" "),a("p",[t._v("资料已提交,工作人员审核中。。。")]),t._v(" "),a("p",{staticStyle:{"margin-top":"10px"}},[t._v("感谢您使用云仓!")]),t._v(" "),a("p",[t._v("您的资料已经提交审核,审核周期为1-3个工作日,请您耐心等待审核结果。")]),t._v(" "),a("p",[t._v("如果您有其它的问题,可以拔打我们的服务电话与我们联系!")])])])])],1)},u=[],c=n("6b1f"),r={name:"ReviewSuccess",data:function(){return{}},created:function(){var t=this;Object(c["g"])().then((function(e){1==e.code&&e.data.user&&(1==e.data.user.state&&t.$router.push({path:"/home/index"}),2==e.data.user.state&&t.$router.push({path:"/reviewing"}),3==e.data.user.state&&t.$router.push({path:"/reviewFail"}))}))},mounted:function(){history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))}},i=r,o=(n("a0bf"),n("2877")),l=Object(o["a"])(i,a,u,!1,null,"7245e274",null);e["default"]=l.exports},e9f2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJBRDQ3NzE4OTFFQjExRUJBN0JEQjU3QzUxQ0Q3QkQzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjJBRDQ3NzE5OTFFQjExRUJBN0JEQjU3QzUxQ0Q3QkQzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkFENDc3MTY5MUVCMTFFQkE3QkRCNTdDNTFDRDdCRDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkFENDc3MTc5MUVCMTFFQkE3QkRCNTdDNTFDRDdCRDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4rxvAYAAAE5UlEQVR42tybe2wUVRTGL0tRIA2KFChS/kABaQRaEggEhSYIgiKgtShYJBKqBAhKRINA9Z8uAlEeTWxV5BGFNghIwUYqEkhBjBFNCNhYHoqChmoiqKFNaGwJ38meqePd2e487p2d4Ut+SXc6c3e+nTtzzzn3Tof843cLjeoDBoIsMIg/pzOkRnAN/A7OgN/AT6BB1wmlaWiTjOWDB8AIkOnweDL/HTgO9oLzKk+ug6IrfDuYB54EeaCjovNrBbVgJ/gQ/Ou1wYgCo6+AOlAGxis0K7ith8AH4HuwFHRKleGnwWnwFhgg9Os+8DY4xT3JN8P9wH7uZoOE/8oGe/j+7qPb8FTwDZgmUq8n+Fwm6TL8IvjUza+qUdTbPgcLVBuOglIRXJWDlaoMR+02lmLReRZ7NbwkJGYNlfCt58rwRLBBhE+lPHY7MpzJw05YRefey4nh7eCuEBvOAFvtGn4WTBDh1xRQkMxwFw7fbhVtlGNv2fDLifp+SNUXLE5kOJ0zn6DrOlgNLtjcfzn33DjDc8GdATdbA3LBCvAM58t2HmCFVoYLA26WcuFHwVn+nOvg2DjD94ORATVKJZ4xYL1p2zvgPQfFhgdFrLbWZjhfQfVDhygTGgW+Nm37CCxy2E4ap5NtJvMCaJau4iPgL9O23RwnuNE4w3BmALvzq/JwImJFvAIPbY4GPehS54BuATJbBLZI294Eczy22wNkk+H+ATJLT9NKadt8HktV6F7q0vcE2OxEfhqrUn8y3DsAZudYmKV61T7F35NJhjun2OxiTkdlVYCuir8rnQx3T6HZ13n4kUWx8lgN33dHREHAsZMDl18cHkf3ZtRiO8UEr2n6gVvI7BUPDXwGZoEqDv9qbB53QFjXkml43KWxRzVGON1ya/Yx0+cGDu6jSY47x5mOlco05+NNEeFu8nm7ZFa+Lyn8a7L4H013Pg7+sfgf/VizNT8zGsjwzy4OrE7y/x380KmTtj8H6i32pwR9kw8PyYsRB5UDIWUsLyTZ5ySb3sOfN1uMtYZKuByjPdVM46vQKP5bd2FHNHa/z/Hp6nb2+xvM4MCiKsE+uZzc69ZVcMa4h0+4bISC+lKbPeJaO2mgH6Kc+ooxBh/10BDN5Xzicjw3Fr/4oS/NBQCa0W/10Fg+/2g9HRzTVfg3BdsiYnPbbYZp3cS3HhulutExB+kmRVNZPl7deiF1w0oFDQ/me2W4jWR8qfBPFcYfZsPbwJ8KGqd08yvBNaQEWqYhE0qkyxwXxBmmoWmdoi+hQOKQ4EqhpAyuYviltaDZyjBpg1C3zvE2EVtaVCRtf0n4V0O7BN41b5ANN/MJqRStojMvm1joc3Hhf8sVrRaXUu33C/Cwwi+mDOqGiM0U+DXRXm0MRckMk6ig9oPDcdVOVOaX/hAJyrqJoiN6Wj8lwqsZHMfbNkyqFfHV/zBokRFGOjVsBPYlITJLD8fy9nawE/C/AVaFwGyxnedExEFjSwJsdqHdi+IkpaPMZprQ+AKGC/0KJsvBhSrDxtg2ymp8S4Gq+FwOOjko4vJXnQ5miljJ1W9RmlfAObjj3uZl1uFjMEzEJq9/9MEoLWahZVU5XGFxJa/TLBR708q9ITz+HfFYObGqVBwGz4OhnM15epVH1YtazTz+EYF+UUvHm2l0X6/hvwP3Kt5NAQYA/pvkv1BL/nsAAAAASUVORK5CYII="}}]);
\ No newline at end of file
<<<<<<< HEAD:dist/static/js/chunk-1d0d7df2.985ae709.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d0d7df2"],{"6b1f":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"l",(function(){return d})),a.d(e,"j",(function(){return m})),a.d(e,"c",(function(){return c})),a.d(e,"m",(function(){return h})),a.d(e,"e",(function(){return u})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"k",(function(){return b}));var i=a("b775");function r(t){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}function g(t){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:t})}function b(t){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:t})}},b176:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fill-brand-inf"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写品牌信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main-con"},[a("el-form",{ref:"brandForm",attrs:{model:t.brandForm,rules:t.brandRules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"经营品牌类型:"}},[a("el-radio-group",{on:{change:t.chooseBrandType},model:{value:t.brandForm.brand_type,callback:function(e){t.$set(t.brandForm,"brand_type",e)},expression:"brandForm.brand_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自有品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("品牌厂商授权")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("无品牌")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],staticClass:"spe-brand-text"},[t._v("\n 品牌一\n ")]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌中文名:",prop:"brand_cn"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_cn,callback:function(e){t.$set(t.brandForm,"brand_cn",e)},expression:"brandForm.brand_cn"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌英文名:",prop:"brand_en"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_en,callback:function(e){t.$set(t.brandForm,"brand_en",e)},expression:"brandForm.brand_en"}})],1),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{ref:"logoImg",attrs:{label:"品牌LOGO:",prop:"brand_logo"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadLogoImgs,limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpLogoImg,"on-preview":t.handlePictureCardPreview,"on-remove":t.handleRemove,"file-list":t.brandImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("必须与商标图文一致。文件大小在500KB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌商标注册号:",prop:"brand_number"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_number,callback:function(e){t.$set(t.brandForm,"brand_number",e)},expression:"brandForm.brand_number"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌类型:",prop:"brand_range"}},[a("el-radio-group",{model:{value:t.brandForm.brand_range,callback:function(e){t.$set(t.brandForm,"brand_range",e)},expression:"brandForm.brand_range"}},[a("el-radio",{attrs:{label:1}},[t._v("国内品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("国外品牌")])],1)],1),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌方授权书:",prop:"brand_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadFactoryImgs,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview2,"on-remove":t.handleRemove2,"file-list":t.factoryImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl2,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("品牌方给予企业的授权书。文件大小在2MB以内,支持png,jpg格式")])])])]):t._e(),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"授权有效期至:",prop:"brand_auth_time"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:t.validityConcrete},model:{value:t.validityConcreteTime,callback:function(e){t.validityConcreteTime=e},expression:"validityConcreteTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:t.validityLongTerm},model:{value:t.validityLongTermVal,callback:function(e){t.validityLongTermVal=e},expression:"validityLongTermVal"}},[t._v("长期\n ")])],1):t._e(),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌经营授权:",prop:"brand_business_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","http-request":t.uploadShopImgs,"list-type":"picture-card",limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview3,"on-remove":t.handleRemove3,"file-list":t.shopImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible3},on:{"update:visible":function(e){t.dialogVisible3=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl3,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("授权在云仓平台经营此品牌。文件大小在2MB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:""}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("a",{staticClass:"download-Template-btn",attrs:{href:t.downTemplatehttp}},[a("i",{staticClass:"el-icon-download"}),t._v("下载模板")]),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("请您点击下载授权书模板,打印并签字盖章,拍照上传。\n 如暂时无法上传该授权,可选择【无品牌】,稍后在店铺信息里面完善品牌信息")])])])]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}]},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.next("brandForm")}}},[t._v("下一步")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasBrand,expression:"!hasBrand"}],staticClass:"no-brand"},[a("p",[t._v("您当前选择的是无品牌")]),t._v(" "),a("p",[t._v("这不会影响您入驻的审核")]),t._v(" "),a("p",[t._v("入驻成功后,您可以在店铺信息里,添加您的品牌")]),t._v(" "),a("div",{staticClass:"no-brand-btn"},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.noBrandNext}},[t._v("下一步")])],1)])],1)])],1)},r=[],n=(a("28a5"),a("6b1f")),s={name:"FillBrandInf",data:function(){var t=this,e=function(e,a,i){2===t.brandForm.brand_type&&null===t.validityConcreteTime&&!1===t.validityLongTermVal?i(new Error("授权有效期具体时间和长期必须填写其中一个")):i()},a=function(e,a,i){t.brandImgFileList.length>0?i():0===t.brandImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))},i=function(e,a,i){t.shopImgFileList.length>0?i():0===t.shopImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))};return{shopTemplatehttp:"http://img3.jxhh.com/shop/brand.doc",factoryTemplatehttp:"http://img3.jxhh.com/shop/factory.doc",hasBrand:!0,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogImageUrl3:"",dialogVisible3:!1,validityConcreteTime:null,validityLongTermVal:!1,downTemplatehttp:"",brandImgFileList:[],factoryImgFileList:[],shopImgFileList:[],brandForm:{id:0,brand_type:1,brand_cn:"",brand_en:"",brand_logo:"",brand_number:"",brand_range:"",brand_auth_time:"",brand_auth:"",brand_business_auth:""},brandRules:{brand_cn:[{required:!0,message:"品牌中文名称不能为空",trigger:"blur"}],brand_logo:[{required:!0,message:"品牌logo图片至少上传一张",validator:a}],brand_range:[{required:!0,message:"品牌类型需要选择其一",trigger:"blur"}],brand_auth:[{required:!0,message:"品牌授权至少上传一张图片"}],brand_auth_time:[{validator:e,required:!0,trigger:"change"}],brand_business_auth:[{required:!0,message:"品牌经营授权至少上传一张图片",validator:i}]}}},watch:{factoryImgFileList:{handler:function(t,e){var a=this;2===this.brandForm.brand_type&&(this.$refs.brandForm.validateField("brand_auth"),0!==t.length&&this.$nextTick((function(){a.$refs.brandForm.clearValidate("brand_auth")})))},deep:!0}},created:function(){this.getBrands()},mounted:function(){this.downTemplatehttp=this.factoryTemplatehttp},methods:{beforeUpImg:function(t){var e=t.size/1024/1024>2;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},beforeUpLogoImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500 kb",type:"warning"}),!1):void 0},uploadLogoImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.brandImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_logo")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadShopImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.shopImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_business_auth")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadFactoryImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.factoryImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"})):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},getBase64:function(t){return new Promise((function(e,a){var i=new FileReader,r="";i.readAsDataURL(t),i.onload=function(){r=i.result},i.onerror=function(t){a(t)},i.onloadend=function(){e(r)}}))},chooseBrandType:function(){this.downTemplatehttp="",1===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.shopTemplatehttp):2===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.factoryTemplatehttp,this.factoryImgFileList=[],this.brandForm.brand_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1):3===this.brandForm.brand_type&&(this.hasBrand=!1)},clearImg:function(){this.brandImgFileList=[],this.factoryImgFileList=[],this.shopImgFileList=[],this.brandForm.brand_logo="",this.brandForm.brand_auth="",this.brandForm.brand_business_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t,e){for(var a=0;a<this.brandImgFileList.length;a++)t.uid===this.brandImgFileList[a].uid&&this.brandImgFileList.splice(a,1)},handlePictureCardPreview2:function(t){this.dialogImageUrl2=t.url,this.dialogVisible2=!0},handleRemove2:function(t){for(var e=0;e<this.factoryImgFileList.length;e++)t.uid===this.factoryImgFileList[e].uid&&this.factoryImgFileList.splice(e,1)},handlePictureCardPreview3:function(t){this.dialogImageUrl3=t.url,this.dialogVisible3=!0},handleRemove3:function(t){for(var e=0;e<this.shopImgFileList.length;e++)t.uid===this.shopImgFileList[e].uid&&this.shopImgFileList.splice(e,1)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},getBrands:function(){var t=this;Object(n["d"])().then((function(e){if(1==e.code){t.brandForm=e.data[0];var a={},i=[];if(t.brandForm.brand_logo.indexOf(",")>0){i=t.brandForm.brand_logo.split(",");for(var r=0;r<i.length;r++)a={},a.url=i[r],t.brandImgFileList.push(a)}else a.url=t.brandForm.brand_logo,t.brandImgFileList=[],t.brandImgFileList.push(a);var n={},s=[];if(t.brandForm.brand_auth.indexOf(",")>0){s=t.brandForm.brand_auth.split(",");for(var o=0;o<s.length;o++)n={},n.url=s[o],t.factoryImgFileList.push(n)}else n.url=t.brandForm.brand_auth,t.factoryImgFileList=[],t.factoryImgFileList.push(n);var l={},d=[];if(t.brandForm.brand_business_auth.indexOf(",")>0){d=t.brandForm.brand_business_auth.split(",");for(var m=0;m<d.length;m++)l={},l.url=d[m],t.shopImgFileList.push(l)}else l.url=t.brandForm.brand_business_auth,t.shopImgFileList=[],t.shopImgFileList.push(l);0===t.brandForm.brand_auth_time?t.validityLongTermVal=!0:t.validityConcreteTime=t.toStandTime(t.brandForm.brand_auth_time)}else t.$message({type:"error",message:e.message?e.message:""})}))},toStandTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+r+n+s+o},showTip:function(t,e){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/fillMainInf")},next:function(t){var e=this;if(this.validityLongTermVal?this.brandForm.brand_auth_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.brandForm.brand_auth_time=new Date(this.validityConcreteTime).getTime()/1e3:this.brandForm.brand_auth_time="",this.brandImgFileList.length>0){for(var a=0;a<this.brandImgFileList.length;a++)0===a?this.brandForm.brand_logo=this.brandImgFileList[a].url:this.brandForm.brand_logo+=","+this.brandImgFileList[a].url;this.brandForm.brand_register_cert=this.brandImgFileList[0].url}if(this.factoryImgFileList.length>0)for(var i=0;i<this.factoryImgFileList.length;i++)0===i?this.brandForm.brand_auth=this.factoryImgFileList[i].url:this.brandForm.brand_auth+=","+this.factoryImgFileList[i].url;if(this.shopImgFileList.length>0)for(var r=0;r<this.shopImgFileList.length;r++)0===r?this.brandForm.brand_business_auth=this.shopImgFileList[r].url:this.brandForm.brand_business_auth+=","+this.shopImgFileList[r].url;this.$refs[t].validate((function(t){if(t){var a={},i=[];i.push(e.brandForm),0===e.brandForm.id?(a.brands=i,Object(n["a"])(a).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))):Object(n["l"])(i).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))}}))},noBrandNext:function(){this.$router.push("/fillShopInf")}}},o=s,l=(a("bb62"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"cd65b72a",null);e["default"]=d.exports},bb62:function(t,e,a){"use strict";a("c79e")},c79e:function(t,e,a){}}]);
//# sourceMappingURL=chunk-1d0d7df2.985ae709.js.map
=======
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d0d7df2"],{"6b1f":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"l",(function(){return d})),a.d(e,"j",(function(){return m})),a.d(e,"c",(function(){return c})),a.d(e,"m",(function(){return h})),a.d(e,"e",(function(){return u})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"k",(function(){return b}));var i=a("b775");function r(t){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}function g(t){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:t})}function b(t){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:t})}},b176:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fill-brand-inf"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写品牌信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main-con"},[a("el-form",{ref:"brandForm",attrs:{model:t.brandForm,rules:t.brandRules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"经营品牌类型:"}},[a("el-radio-group",{on:{change:t.chooseBrandType},model:{value:t.brandForm.brand_type,callback:function(e){t.$set(t.brandForm,"brand_type",e)},expression:"brandForm.brand_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自有品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("品牌厂商授权")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("无品牌")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],staticClass:"spe-brand-text"},[t._v("\n 品牌一\n ")]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌中文名:",prop:"brand_cn"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_cn,callback:function(e){t.$set(t.brandForm,"brand_cn",e)},expression:"brandForm.brand_cn"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌英文名:",prop:"brand_en"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_en,callback:function(e){t.$set(t.brandForm,"brand_en",e)},expression:"brandForm.brand_en"}})],1),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{ref:"logoImg",attrs:{label:"品牌LOGO:",prop:"brand_logo"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadLogoImgs,limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpLogoImg,"on-preview":t.handlePictureCardPreview,"on-remove":t.handleRemove,"file-list":t.brandImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("必须与商标图文一致。文件大小在500KB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌商标注册号:",prop:"brand_number"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_number,callback:function(e){t.$set(t.brandForm,"brand_number",e)},expression:"brandForm.brand_number"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌类型:",prop:"brand_range"}},[a("el-radio-group",{model:{value:t.brandForm.brand_range,callback:function(e){t.$set(t.brandForm,"brand_range",e)},expression:"brandForm.brand_range"}},[a("el-radio",{attrs:{label:1}},[t._v("国内品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("国外品牌")])],1)],1),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌方授权书:",prop:"brand_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadFactoryImgs,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview2,"on-remove":t.handleRemove2,"file-list":t.factoryImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl2,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("品牌方给予企业的授权书。文件大小在2MB以内,支持png,jpg格式")])])])]):t._e(),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"授权有效期至:",prop:"brand_auth_time"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:t.validityConcrete},model:{value:t.validityConcreteTime,callback:function(e){t.validityConcreteTime=e},expression:"validityConcreteTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:t.validityLongTerm},model:{value:t.validityLongTermVal,callback:function(e){t.validityLongTermVal=e},expression:"validityLongTermVal"}},[t._v("长期\n ")])],1):t._e(),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌经营授权:",prop:"brand_business_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","http-request":t.uploadShopImgs,"list-type":"picture-card",limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview3,"on-remove":t.handleRemove3,"file-list":t.shopImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible3},on:{"update:visible":function(e){t.dialogVisible3=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl3,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("授权在云仓平台经营此品牌。文件大小在2MB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:""}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("a",{staticClass:"download-Template-btn",attrs:{href:t.downTemplatehttp}},[a("i",{staticClass:"el-icon-download"}),t._v("下载模板")]),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("请您点击下载授权书模板,打印并签字盖章,拍照上传。\n 如暂时无法上传该授权,可选择【无品牌】,稍后在店铺信息里面完善品牌信息")])])])]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}]},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.next("brandForm")}}},[t._v("下一步")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasBrand,expression:"!hasBrand"}],staticClass:"no-brand"},[a("p",[t._v("您当前选择的是无品牌")]),t._v(" "),a("p",[t._v("这不会影响您入驻的审核")]),t._v(" "),a("p",[t._v("入驻成功后,您可以在店铺信息里,添加您的品牌")]),t._v(" "),a("div",{staticClass:"no-brand-btn"},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.noBrandNext}},[t._v("下一步")])],1)])],1)])],1)},r=[],n=(a("28a5"),a("6b1f")),s={name:"FillBrandInf",data:function(){var t=this,e=function(e,a,i){2===t.brandForm.brand_type&&null===t.validityConcreteTime&&!1===t.validityLongTermVal?i(new Error("授权有效期具体时间和长期必须填写其中一个")):i()},a=function(e,a,i){t.brandImgFileList.length>0?i():0===t.brandImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))},i=function(e,a,i){t.shopImgFileList.length>0?i():0===t.shopImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))};return{shopTemplatehttp:"http://img3.jxhh.com/shop/brand.doc",factoryTemplatehttp:"http://img3.jxhh.com/shop/factory.doc",hasBrand:!0,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogImageUrl3:"",dialogVisible3:!1,validityConcreteTime:null,validityLongTermVal:!1,downTemplatehttp:"",brandImgFileList:[],factoryImgFileList:[],shopImgFileList:[],brandForm:{id:0,brand_type:1,brand_cn:"",brand_en:"",brand_logo:"",brand_number:"",brand_range:"",brand_auth_time:"",brand_auth:"",brand_business_auth:""},brandRules:{brand_cn:[{required:!0,message:"品牌中文名称不能为空",trigger:"blur"}],brand_logo:[{required:!0,message:"品牌logo图片至少上传一张",validator:a}],brand_range:[{required:!0,message:"品牌类型需要选择其一",trigger:"blur"}],brand_auth:[{required:!0,message:"品牌授权至少上传一张图片"}],brand_auth_time:[{validator:e,required:!0,trigger:"change"}],brand_business_auth:[{required:!0,message:"品牌经营授权至少上传一张图片",validator:i}]}}},watch:{factoryImgFileList:{handler:function(t,e){var a=this;2===this.brandForm.brand_type&&(this.$refs.brandForm.validateField("brand_auth"),0!==t.length&&this.$nextTick((function(){a.$refs.brandForm.clearValidate("brand_auth")})))},deep:!0}},created:function(){this.getBrands()},mounted:function(){this.downTemplatehttp=this.factoryTemplatehttp},methods:{beforeUpImg:function(t){var e=t.size/1024/1024>2;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},beforeUpLogoImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500 kb",type:"warning"}),!1):void 0},uploadLogoImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.brandImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_logo")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadShopImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.shopImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_business_auth")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadFactoryImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.factoryImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"})):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},getBase64:function(t){return new Promise((function(e,a){var i=new FileReader,r="";i.readAsDataURL(t),i.onload=function(){r=i.result},i.onerror=function(t){a(t)},i.onloadend=function(){e(r)}}))},chooseBrandType:function(){this.downTemplatehttp="",1===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.shopTemplatehttp):2===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.factoryTemplatehttp,this.factoryImgFileList=[],this.brandForm.brand_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1):3===this.brandForm.brand_type&&(this.hasBrand=!1)},clearImg:function(){this.brandImgFileList=[],this.factoryImgFileList=[],this.shopImgFileList=[],this.brandForm.brand_logo="",this.brandForm.brand_auth="",this.brandForm.brand_business_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t,e){for(var a=0;a<this.brandImgFileList.length;a++)t.uid===this.brandImgFileList[a].uid&&this.brandImgFileList.splice(a,1)},handlePictureCardPreview2:function(t){this.dialogImageUrl2=t.url,this.dialogVisible2=!0},handleRemove2:function(t){for(var e=0;e<this.factoryImgFileList.length;e++)t.uid===this.factoryImgFileList[e].uid&&this.factoryImgFileList.splice(e,1)},handlePictureCardPreview3:function(t){this.dialogImageUrl3=t.url,this.dialogVisible3=!0},handleRemove3:function(t){for(var e=0;e<this.shopImgFileList.length;e++)t.uid===this.shopImgFileList[e].uid&&this.shopImgFileList.splice(e,1)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},getBrands:function(){var t=this;Object(n["d"])().then((function(e){if(1==e.code){t.brandForm=e.data[0];var a={},i=[];if(t.brandForm.brand_logo.indexOf(",")>0){i=t.brandForm.brand_logo.split(",");for(var r=0;r<i.length;r++)a={},a.url=i[r],t.brandImgFileList.push(a)}else a.url=t.brandForm.brand_logo,t.brandImgFileList=[],t.brandImgFileList.push(a);var n={},s=[];if(t.brandForm.brand_auth.indexOf(",")>0){s=t.brandForm.brand_auth.split(",");for(var o=0;o<s.length;o++)n={},n.url=s[o],t.factoryImgFileList.push(n)}else n.url=t.brandForm.brand_auth,t.factoryImgFileList=[],t.factoryImgFileList.push(n);var l={},d=[];if(t.brandForm.brand_business_auth.indexOf(",")>0){d=t.brandForm.brand_business_auth.split(",");for(var m=0;m<d.length;m++)l={},l.url=d[m],t.shopImgFileList.push(l)}else l.url=t.brandForm.brand_business_auth,t.shopImgFileList=[],t.shopImgFileList.push(l);0===t.brandForm.brand_auth_time?t.validityLongTermVal=!0:t.validityConcreteTime=t.toStandTime(t.brandForm.brand_auth_time)}else t.$message({type:"error",message:e.message?e.message:""})}))},toStandTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+r+n+s+o},showTip:function(t,e){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/fillMainInf")},next:function(t){var e=this;if(this.validityLongTermVal?this.brandForm.brand_auth_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.brandForm.brand_auth_time=new Date(this.validityConcreteTime).getTime()/1e3:this.brandForm.brand_auth_time="",this.brandImgFileList.length>0){for(var a=0;a<this.brandImgFileList.length;a++)0===a?this.brandForm.brand_logo=this.brandImgFileList[a].url:this.brandForm.brand_logo+=","+this.brandImgFileList[a].url;this.brandForm.brand_register_cert=this.brandImgFileList[0].url}if(this.factoryImgFileList.length>0)for(var i=0;i<this.factoryImgFileList.length;i++)0===i?this.brandForm.brand_auth=this.factoryImgFileList[i].url:this.brandForm.brand_auth+=","+this.factoryImgFileList[i].url;if(this.shopImgFileList.length>0)for(var r=0;r<this.shopImgFileList.length;r++)0===r?this.brandForm.brand_business_auth=this.shopImgFileList[r].url:this.brandForm.brand_business_auth+=","+this.shopImgFileList[r].url;this.$refs[t].validate((function(t){if(t){var a={},i=[];i.push(e.brandForm),0===e.brandForm.id?(a.brands=i,Object(n["a"])(a).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))):Object(n["l"])(i).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))}}))},noBrandNext:function(){this.$router.push("/fillShopInf")}}},o=s,l=(a("bb62"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"cd65b72a",null);e["default"]=d.exports},bb62:function(t,e,a){"use strict";a("c79e")},c79e:function(t,e,a){}}]);
>>>>>>> fix-m-postage-tips:dist/static/js/chunk-1d0d7df2.59c4406c.js
<<<<<<< HEAD:dist/static/js/chunk-1d0d7df2.985ae709.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d0d7df2"],{"6b1f":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"l",(function(){return d})),a.d(e,"j",(function(){return m})),a.d(e,"c",(function(){return c})),a.d(e,"m",(function(){return h})),a.d(e,"e",(function(){return u})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"k",(function(){return b}));var i=a("b775");function r(t){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}function g(t){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:t})}function b(t){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:t})}},b176:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fill-brand-inf"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写品牌信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main-con"},[a("el-form",{ref:"brandForm",attrs:{model:t.brandForm,rules:t.brandRules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"经营品牌类型:"}},[a("el-radio-group",{on:{change:t.chooseBrandType},model:{value:t.brandForm.brand_type,callback:function(e){t.$set(t.brandForm,"brand_type",e)},expression:"brandForm.brand_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自有品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("品牌厂商授权")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("无品牌")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],staticClass:"spe-brand-text"},[t._v("\n 品牌一\n ")]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌中文名:",prop:"brand_cn"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_cn,callback:function(e){t.$set(t.brandForm,"brand_cn",e)},expression:"brandForm.brand_cn"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌英文名:",prop:"brand_en"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_en,callback:function(e){t.$set(t.brandForm,"brand_en",e)},expression:"brandForm.brand_en"}})],1),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{ref:"logoImg",attrs:{label:"品牌LOGO:",prop:"brand_logo"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadLogoImgs,limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpLogoImg,"on-preview":t.handlePictureCardPreview,"on-remove":t.handleRemove,"file-list":t.brandImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("必须与商标图文一致。文件大小在500KB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌商标注册号:",prop:"brand_number"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_number,callback:function(e){t.$set(t.brandForm,"brand_number",e)},expression:"brandForm.brand_number"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌类型:",prop:"brand_range"}},[a("el-radio-group",{model:{value:t.brandForm.brand_range,callback:function(e){t.$set(t.brandForm,"brand_range",e)},expression:"brandForm.brand_range"}},[a("el-radio",{attrs:{label:1}},[t._v("国内品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("国外品牌")])],1)],1),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌方授权书:",prop:"brand_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadFactoryImgs,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview2,"on-remove":t.handleRemove2,"file-list":t.factoryImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl2,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("品牌方给予企业的授权书。文件大小在2MB以内,支持png,jpg格式")])])])]):t._e(),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"授权有效期至:",prop:"brand_auth_time"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:t.validityConcrete},model:{value:t.validityConcreteTime,callback:function(e){t.validityConcreteTime=e},expression:"validityConcreteTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:t.validityLongTerm},model:{value:t.validityLongTermVal,callback:function(e){t.validityLongTermVal=e},expression:"validityLongTermVal"}},[t._v("长期\n ")])],1):t._e(),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌经营授权:",prop:"brand_business_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","http-request":t.uploadShopImgs,"list-type":"picture-card",limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview3,"on-remove":t.handleRemove3,"file-list":t.shopImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible3},on:{"update:visible":function(e){t.dialogVisible3=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl3,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("授权在云仓平台经营此品牌。文件大小在2MB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:""}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("a",{staticClass:"download-Template-btn",attrs:{href:t.downTemplatehttp}},[a("i",{staticClass:"el-icon-download"}),t._v("下载模板")]),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("请您点击下载授权书模板,打印并签字盖章,拍照上传。\n 如暂时无法上传该授权,可选择【无品牌】,稍后在店铺信息里面完善品牌信息")])])])]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}]},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.next("brandForm")}}},[t._v("下一步")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasBrand,expression:"!hasBrand"}],staticClass:"no-brand"},[a("p",[t._v("您当前选择的是无品牌")]),t._v(" "),a("p",[t._v("这不会影响您入驻的审核")]),t._v(" "),a("p",[t._v("入驻成功后,您可以在店铺信息里,添加您的品牌")]),t._v(" "),a("div",{staticClass:"no-brand-btn"},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.noBrandNext}},[t._v("下一步")])],1)])],1)])],1)},r=[],n=(a("28a5"),a("6b1f")),s={name:"FillBrandInf",data:function(){var t=this,e=function(e,a,i){2===t.brandForm.brand_type&&null===t.validityConcreteTime&&!1===t.validityLongTermVal?i(new Error("授权有效期具体时间和长期必须填写其中一个")):i()},a=function(e,a,i){t.brandImgFileList.length>0?i():0===t.brandImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))},i=function(e,a,i){t.shopImgFileList.length>0?i():0===t.shopImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))};return{shopTemplatehttp:"http://img3.jxhh.com/shop/brand.doc",factoryTemplatehttp:"http://img3.jxhh.com/shop/factory.doc",hasBrand:!0,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogImageUrl3:"",dialogVisible3:!1,validityConcreteTime:null,validityLongTermVal:!1,downTemplatehttp:"",brandImgFileList:[],factoryImgFileList:[],shopImgFileList:[],brandForm:{id:0,brand_type:1,brand_cn:"",brand_en:"",brand_logo:"",brand_number:"",brand_range:"",brand_auth_time:"",brand_auth:"",brand_business_auth:""},brandRules:{brand_cn:[{required:!0,message:"品牌中文名称不能为空",trigger:"blur"}],brand_logo:[{required:!0,message:"品牌logo图片至少上传一张",validator:a}],brand_range:[{required:!0,message:"品牌类型需要选择其一",trigger:"blur"}],brand_auth:[{required:!0,message:"品牌授权至少上传一张图片"}],brand_auth_time:[{validator:e,required:!0,trigger:"change"}],brand_business_auth:[{required:!0,message:"品牌经营授权至少上传一张图片",validator:i}]}}},watch:{factoryImgFileList:{handler:function(t,e){var a=this;2===this.brandForm.brand_type&&(this.$refs.brandForm.validateField("brand_auth"),0!==t.length&&this.$nextTick((function(){a.$refs.brandForm.clearValidate("brand_auth")})))},deep:!0}},created:function(){this.getBrands()},mounted:function(){this.downTemplatehttp=this.factoryTemplatehttp},methods:{beforeUpImg:function(t){var e=t.size/1024/1024>2;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},beforeUpLogoImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500 kb",type:"warning"}),!1):void 0},uploadLogoImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.brandImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_logo")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadShopImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.shopImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_business_auth")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadFactoryImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.factoryImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"})):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},getBase64:function(t){return new Promise((function(e,a){var i=new FileReader,r="";i.readAsDataURL(t),i.onload=function(){r=i.result},i.onerror=function(t){a(t)},i.onloadend=function(){e(r)}}))},chooseBrandType:function(){this.downTemplatehttp="",1===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.shopTemplatehttp):2===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.factoryTemplatehttp,this.factoryImgFileList=[],this.brandForm.brand_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1):3===this.brandForm.brand_type&&(this.hasBrand=!1)},clearImg:function(){this.brandImgFileList=[],this.factoryImgFileList=[],this.shopImgFileList=[],this.brandForm.brand_logo="",this.brandForm.brand_auth="",this.brandForm.brand_business_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t,e){for(var a=0;a<this.brandImgFileList.length;a++)t.uid===this.brandImgFileList[a].uid&&this.brandImgFileList.splice(a,1)},handlePictureCardPreview2:function(t){this.dialogImageUrl2=t.url,this.dialogVisible2=!0},handleRemove2:function(t){for(var e=0;e<this.factoryImgFileList.length;e++)t.uid===this.factoryImgFileList[e].uid&&this.factoryImgFileList.splice(e,1)},handlePictureCardPreview3:function(t){this.dialogImageUrl3=t.url,this.dialogVisible3=!0},handleRemove3:function(t){for(var e=0;e<this.shopImgFileList.length;e++)t.uid===this.shopImgFileList[e].uid&&this.shopImgFileList.splice(e,1)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},getBrands:function(){var t=this;Object(n["d"])().then((function(e){if(1==e.code){t.brandForm=e.data[0];var a={},i=[];if(t.brandForm.brand_logo.indexOf(",")>0){i=t.brandForm.brand_logo.split(",");for(var r=0;r<i.length;r++)a={},a.url=i[r],t.brandImgFileList.push(a)}else a.url=t.brandForm.brand_logo,t.brandImgFileList=[],t.brandImgFileList.push(a);var n={},s=[];if(t.brandForm.brand_auth.indexOf(",")>0){s=t.brandForm.brand_auth.split(",");for(var o=0;o<s.length;o++)n={},n.url=s[o],t.factoryImgFileList.push(n)}else n.url=t.brandForm.brand_auth,t.factoryImgFileList=[],t.factoryImgFileList.push(n);var l={},d=[];if(t.brandForm.brand_business_auth.indexOf(",")>0){d=t.brandForm.brand_business_auth.split(",");for(var m=0;m<d.length;m++)l={},l.url=d[m],t.shopImgFileList.push(l)}else l.url=t.brandForm.brand_business_auth,t.shopImgFileList=[],t.shopImgFileList.push(l);0===t.brandForm.brand_auth_time?t.validityLongTermVal=!0:t.validityConcreteTime=t.toStandTime(t.brandForm.brand_auth_time)}else t.$message({type:"error",message:e.message?e.message:""})}))},toStandTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+r+n+s+o},showTip:function(t,e){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/fillMainInf")},next:function(t){var e=this;if(this.validityLongTermVal?this.brandForm.brand_auth_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.brandForm.brand_auth_time=new Date(this.validityConcreteTime).getTime()/1e3:this.brandForm.brand_auth_time="",this.brandImgFileList.length>0){for(var a=0;a<this.brandImgFileList.length;a++)0===a?this.brandForm.brand_logo=this.brandImgFileList[a].url:this.brandForm.brand_logo+=","+this.brandImgFileList[a].url;this.brandForm.brand_register_cert=this.brandImgFileList[0].url}if(this.factoryImgFileList.length>0)for(var i=0;i<this.factoryImgFileList.length;i++)0===i?this.brandForm.brand_auth=this.factoryImgFileList[i].url:this.brandForm.brand_auth+=","+this.factoryImgFileList[i].url;if(this.shopImgFileList.length>0)for(var r=0;r<this.shopImgFileList.length;r++)0===r?this.brandForm.brand_business_auth=this.shopImgFileList[r].url:this.brandForm.brand_business_auth+=","+this.shopImgFileList[r].url;this.$refs[t].validate((function(t){if(t){var a={},i=[];i.push(e.brandForm),0===e.brandForm.id?(a.brands=i,Object(n["a"])(a).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))):Object(n["l"])(i).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))}}))},noBrandNext:function(){this.$router.push("/fillShopInf")}}},o=s,l=(a("bb62"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"cd65b72a",null);e["default"]=d.exports},bb62:function(t,e,a){"use strict";a("c79e")},c79e:function(t,e,a){}}]);
//# sourceMappingURL=chunk-1d0d7df2.985ae709.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-1d0d7df2.985ae709.js.map
=======
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d0d7df2"],{"6b1f":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"l",(function(){return d})),a.d(e,"j",(function(){return m})),a.d(e,"c",(function(){return c})),a.d(e,"m",(function(){return h})),a.d(e,"e",(function(){return u})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"k",(function(){return b}));var i=a("b775");function r(t){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}function g(t){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:t})}function b(t){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:t})}},b176:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fill-brand-inf"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写品牌信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main-con"},[a("el-form",{ref:"brandForm",attrs:{model:t.brandForm,rules:t.brandRules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"经营品牌类型:"}},[a("el-radio-group",{on:{change:t.chooseBrandType},model:{value:t.brandForm.brand_type,callback:function(e){t.$set(t.brandForm,"brand_type",e)},expression:"brandForm.brand_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自有品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("品牌厂商授权")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("无品牌")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],staticClass:"spe-brand-text"},[t._v("\n 品牌一\n ")]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌中文名:",prop:"brand_cn"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_cn,callback:function(e){t.$set(t.brandForm,"brand_cn",e)},expression:"brandForm.brand_cn"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌英文名:",prop:"brand_en"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_en,callback:function(e){t.$set(t.brandForm,"brand_en",e)},expression:"brandForm.brand_en"}})],1),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{ref:"logoImg",attrs:{label:"品牌LOGO:",prop:"brand_logo"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadLogoImgs,limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpLogoImg,"on-preview":t.handlePictureCardPreview,"on-remove":t.handleRemove,"file-list":t.brandImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("必须与商标图文一致。文件大小在500KB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌商标注册号:",prop:"brand_number"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_number,callback:function(e){t.$set(t.brandForm,"brand_number",e)},expression:"brandForm.brand_number"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌类型:",prop:"brand_range"}},[a("el-radio-group",{model:{value:t.brandForm.brand_range,callback:function(e){t.$set(t.brandForm,"brand_range",e)},expression:"brandForm.brand_range"}},[a("el-radio",{attrs:{label:1}},[t._v("国内品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("国外品牌")])],1)],1),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌方授权书:",prop:"brand_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadFactoryImgs,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview2,"on-remove":t.handleRemove2,"file-list":t.factoryImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl2,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("品牌方给予企业的授权书。文件大小在2MB以内,支持png,jpg格式")])])])]):t._e(),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"授权有效期至:",prop:"brand_auth_time"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:t.validityConcrete},model:{value:t.validityConcreteTime,callback:function(e){t.validityConcreteTime=e},expression:"validityConcreteTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:t.validityLongTerm},model:{value:t.validityLongTermVal,callback:function(e){t.validityLongTermVal=e},expression:"validityLongTermVal"}},[t._v("长期\n ")])],1):t._e(),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌经营授权:",prop:"brand_business_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","http-request":t.uploadShopImgs,"list-type":"picture-card",limit:2,"on-exceed":t.showTip,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview3,"on-remove":t.handleRemove3,"file-list":t.shopImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible3},on:{"update:visible":function(e){t.dialogVisible3=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl3,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("授权在云仓平台经营此品牌。文件大小在2MB以内,支持png,jpg格式,最多可上传2张")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:""}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("a",{staticClass:"download-Template-btn",attrs:{href:t.downTemplatehttp}},[a("i",{staticClass:"el-icon-download"}),t._v("下载模板")]),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("请您点击下载授权书模板,打印并签字盖章,拍照上传。\n 如暂时无法上传该授权,可选择【无品牌】,稍后在店铺信息里面完善品牌信息")])])])]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}]},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.next("brandForm")}}},[t._v("下一步")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasBrand,expression:"!hasBrand"}],staticClass:"no-brand"},[a("p",[t._v("您当前选择的是无品牌")]),t._v(" "),a("p",[t._v("这不会影响您入驻的审核")]),t._v(" "),a("p",[t._v("入驻成功后,您可以在店铺信息里,添加您的品牌")]),t._v(" "),a("div",{staticClass:"no-brand-btn"},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.noBrandNext}},[t._v("下一步")])],1)])],1)])],1)},r=[],n=(a("28a5"),a("6b1f")),s={name:"FillBrandInf",data:function(){var t=this,e=function(e,a,i){2===t.brandForm.brand_type&&null===t.validityConcreteTime&&!1===t.validityLongTermVal?i(new Error("授权有效期具体时间和长期必须填写其中一个")):i()},a=function(e,a,i){t.brandImgFileList.length>0?i():0===t.brandImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))},i=function(e,a,i){t.shopImgFileList.length>0?i():0===t.shopImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))};return{shopTemplatehttp:"http://img3.jxhh.com/shop/brand.doc",factoryTemplatehttp:"http://img3.jxhh.com/shop/factory.doc",hasBrand:!0,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogImageUrl3:"",dialogVisible3:!1,validityConcreteTime:null,validityLongTermVal:!1,downTemplatehttp:"",brandImgFileList:[],factoryImgFileList:[],shopImgFileList:[],brandForm:{id:0,brand_type:1,brand_cn:"",brand_en:"",brand_logo:"",brand_number:"",brand_range:"",brand_auth_time:"",brand_auth:"",brand_business_auth:""},brandRules:{brand_cn:[{required:!0,message:"品牌中文名称不能为空",trigger:"blur"}],brand_logo:[{required:!0,message:"品牌logo图片至少上传一张",validator:a}],brand_range:[{required:!0,message:"品牌类型需要选择其一",trigger:"blur"}],brand_auth:[{required:!0,message:"品牌授权至少上传一张图片"}],brand_auth_time:[{validator:e,required:!0,trigger:"change"}],brand_business_auth:[{required:!0,message:"品牌经营授权至少上传一张图片",validator:i}]}}},watch:{factoryImgFileList:{handler:function(t,e){var a=this;2===this.brandForm.brand_type&&(this.$refs.brandForm.validateField("brand_auth"),0!==t.length&&this.$nextTick((function(){a.$refs.brandForm.clearValidate("brand_auth")})))},deep:!0}},created:function(){this.getBrands()},mounted:function(){this.downTemplatehttp=this.factoryTemplatehttp},methods:{beforeUpImg:function(t){var e=t.size/1024/1024>2;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},beforeUpLogoImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500 kb",type:"warning"}),!1):void 0},uploadLogoImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.brandImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_logo")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadShopImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.shopImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_business_auth")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadFactoryImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img};Object(n["m"])(i).then((function(t){1==t.code?(e.factoryImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"})):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},getBase64:function(t){return new Promise((function(e,a){var i=new FileReader,r="";i.readAsDataURL(t),i.onload=function(){r=i.result},i.onerror=function(t){a(t)},i.onloadend=function(){e(r)}}))},chooseBrandType:function(){this.downTemplatehttp="",1===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.shopTemplatehttp):2===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.factoryTemplatehttp,this.factoryImgFileList=[],this.brandForm.brand_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1):3===this.brandForm.brand_type&&(this.hasBrand=!1)},clearImg:function(){this.brandImgFileList=[],this.factoryImgFileList=[],this.shopImgFileList=[],this.brandForm.brand_logo="",this.brandForm.brand_auth="",this.brandForm.brand_business_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t,e){for(var a=0;a<this.brandImgFileList.length;a++)t.uid===this.brandImgFileList[a].uid&&this.brandImgFileList.splice(a,1)},handlePictureCardPreview2:function(t){this.dialogImageUrl2=t.url,this.dialogVisible2=!0},handleRemove2:function(t){for(var e=0;e<this.factoryImgFileList.length;e++)t.uid===this.factoryImgFileList[e].uid&&this.factoryImgFileList.splice(e,1)},handlePictureCardPreview3:function(t){this.dialogImageUrl3=t.url,this.dialogVisible3=!0},handleRemove3:function(t){for(var e=0;e<this.shopImgFileList.length;e++)t.uid===this.shopImgFileList[e].uid&&this.shopImgFileList.splice(e,1)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},getBrands:function(){var t=this;Object(n["d"])().then((function(e){if(1==e.code){t.brandForm=e.data[0];var a={},i=[];if(t.brandForm.brand_logo.indexOf(",")>0){i=t.brandForm.brand_logo.split(",");for(var r=0;r<i.length;r++)a={},a.url=i[r],t.brandImgFileList.push(a)}else a.url=t.brandForm.brand_logo,t.brandImgFileList=[],t.brandImgFileList.push(a);var n={},s=[];if(t.brandForm.brand_auth.indexOf(",")>0){s=t.brandForm.brand_auth.split(",");for(var o=0;o<s.length;o++)n={},n.url=s[o],t.factoryImgFileList.push(n)}else n.url=t.brandForm.brand_auth,t.factoryImgFileList=[],t.factoryImgFileList.push(n);var l={},d=[];if(t.brandForm.brand_business_auth.indexOf(",")>0){d=t.brandForm.brand_business_auth.split(",");for(var m=0;m<d.length;m++)l={},l.url=d[m],t.shopImgFileList.push(l)}else l.url=t.brandForm.brand_business_auth,t.shopImgFileList=[],t.shopImgFileList.push(l);0===t.brandForm.brand_auth_time?t.validityLongTermVal=!0:t.validityConcreteTime=t.toStandTime(t.brandForm.brand_auth_time)}else t.$message({type:"error",message:e.message?e.message:""})}))},toStandTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+r+n+s+o},showTip:function(t,e){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/fillMainInf")},next:function(t){var e=this;if(this.validityLongTermVal?this.brandForm.brand_auth_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.brandForm.brand_auth_time=new Date(this.validityConcreteTime).getTime()/1e3:this.brandForm.brand_auth_time="",this.brandImgFileList.length>0){for(var a=0;a<this.brandImgFileList.length;a++)0===a?this.brandForm.brand_logo=this.brandImgFileList[a].url:this.brandForm.brand_logo+=","+this.brandImgFileList[a].url;this.brandForm.brand_register_cert=this.brandImgFileList[0].url}if(this.factoryImgFileList.length>0)for(var i=0;i<this.factoryImgFileList.length;i++)0===i?this.brandForm.brand_auth=this.factoryImgFileList[i].url:this.brandForm.brand_auth+=","+this.factoryImgFileList[i].url;if(this.shopImgFileList.length>0)for(var r=0;r<this.shopImgFileList.length;r++)0===r?this.brandForm.brand_business_auth=this.shopImgFileList[r].url:this.brandForm.brand_business_auth+=","+this.shopImgFileList[r].url;this.$refs[t].validate((function(t){if(t){var a={},i=[];i.push(e.brandForm),0===e.brandForm.id?(a.brands=i,Object(n["a"])(a).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))):Object(n["l"])(i).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))}}))},noBrandNext:function(){this.$router.push("/fillShopInf")}}},o=s,l=(a("bb62"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"cd65b72a",null);e["default"]=d.exports},bb62:function(t,e,a){"use strict";a("c79e")},c79e:function(t,e,a){}}]);
>>>>>>> fix-m-postage-tips:dist/static/js/chunk-1d0d7df2.59c4406c.js
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b29491c"],{"47af":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MTU5MkY0OTFFQjExRUJBQkE3REQ0N0VCRUQzQzM1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MTU5MkY1OTFFQjExRUJBQkE3REQ0N0VCRUQzQzM1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzgxNTkyRjI5MUVCMTFFQkFCQTdERDQ3RUJFRDNDMzUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzgxNTkyRjM5MUVCMTFFQkFCQTdERDQ3RUJFRDNDMzUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7L2yVbAAAGLklEQVR42tRba2wUVRS+XXaBCiIo9dEYYjDGgA8UbKqiGB9BjSCixvhuMFarxWcTK9X6tiIVAQUREeUpaqwJqBH9oQaFEBFNFH80CBqjWKEoFKEtpa3fYb8hk8nOzt07d9qdk3zZdnf27vnm3Hte905B98RJKgLpDxQCZwOlQBEwBDgeKAaOAxLADuAPYCfwD1+/AzYC+4FW24olLY41EDgBOB84F7gAGElifiI34rQM7/8CrAW+5et2YI8NJQssWLiQSt8PTKAlbYpYeg0wB/gB2NtbFhbLnQncC0wGhqpo5AjgWuAy4CNgAbAB6OhJwsNJ9BrgZNUzMgi4BbgIWA3MBzabWClXkbX5IVDVg2TdciJv9ifAVbIsoyIsA08F3gdGqd6XYcA7wONAyjZhCTP1wAx64nwRmebPAK/rOksdwhI73+UULlT5KXcAq4BTwxIWy84FJqn8lwvpyAabEu4DPAtcp+IjFzNe9zMhXAk8pOInt9ORJXMhfD1QQyvHUcTf3JmJXybCsvCnM8GPq4hzfREYE0RYpkFFLyUUUYQsyRsGZCN8OlAW4kekqtkCtFtQ+ACwFWgKMcatQIkf4SQXvGm1I3XsJVwS04B9IRRtpeM5BRjH+ti0wJEZe1QmwlLH3mg48FccuBHoZmiQcnG3wVh76XRmcawtdEBrDHW7EhjvJdwXuNkgbexmkS6ZzibX+13AW/T0uUxvubaaCcRB1/s/smDYYLiWy9igOEx4qGE2tYvL4Fefz0Xx+zRr1w5eO9/nc/mNm4C/DPQc7xjTIXwGc2aTbkRjwDULmcS0B1i2ktdmk98MOx4plrUFCZK+wnB9SKx+IFsq5yL9GGeEV6R5V6tBVpS+CzjJUNfLhauQPYaJt4kI0To6maDuyUx6bzfpf+mN6zV+q5LX9TXUdazcLFFyNHtTYXpONfy7LuDaRQxXK/i/ePKVGr9RzZs1KGSnZFyS/amUCicDOC13BkzNLnYpnLi4XGPscuBpjWWjI8OF8LGWUjmpnefRJyzyhJVM3lunpSQR4FVLZEWKRLkii/lriklHVchZ04dr1ibZQ4STlgk7jqyWlpZsqc3gpkmS8SRwpGXdIiHsrOkakp6dQ15dyBS1VtnfwTiUYCUMEw4dkVTuKWBKDt+Zwjp2SEQ6FScCnEtYkeKhU+ntcCSYue2KUJ+OBENJFCLjPqHhsd0haznj7Z9R6SR3vjmCgZvpdN6ghXVFbsxikp+u7Df9m5MRWHg38+aFLB9NZCm/+5LFPOGwhW0SbmMfaYWFsZZxTcssOdom4R2WBmtnbqxD9h7NjKuBr2+qgB2FXAhvY/GdCjmNX9Ao8aTSuQ14zVX0LwuolRto4ToVftN9m3jp79lCMZU9dFAzNNLFB1V6r8qRuZqlpdzIR0OGLDk8szbBQb4OMY2rXRbLJo8wg+rvSUNr+FmQvM0WUJuhruukY5JgCDDtCEofeoFGnC1nTB6YpbQs14jTK9nmMZHPZAynp/WTMmt4S0FeokF2nseyfqVlEOnRhh5bfMU3EuoSrkRhlcFA0h5aojLs4VAqWOLpOMQUr63w+XwMHZxJXP5csdvpED7ATsR2g8FGMH08z6P8VDqyXOrZfux9VXlmxDmcASMN9GuhUf5zExZZD7xnuD5GkXQpOxWyr1xvWM9Kj+x54GGOVUKFSw11+5QWTrdRPCfxzgK+CFGeNfNOFivz7qJyzbomOjrTTEsc3aUqvRWkvBYW2cy7aVxgq3TfOCxZJ0kZFjKtlOpro7cG9VYrcgRoq4q/tDCx2ZeNsEgjs5q/Y0x2PxOiTZm6DJnkAzqOzpgSnsmCo0uXsGK6OCuGZJfSWAf9+kh+0smUryFGZL9U6c093+or6CSeU9CvjgHZdayzs5460DlrKbFQjkLMYWzMR1ms0hv6QXvV2qdpW5nuTVPRtlFNvPFzwN26euVyXlrW9MvADcr/iENPirSmyth80J55JifiJfWcwMrm914g2sS8/WqGz65cvhzmqRZnM13KuYkquoc8HJEc/WO2e9abdj7CPNUicU6OLP3MmB31YzyvqPRjPC1hBiuw+GSa+0EtqY3HquAHtfwkrx/U8mvZ5OWjeP8LMAADdln6uCsMhAAAAABJRU5ErkJggg=="},"4f84":function(t,e,n){},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"l",(function(){return o})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return m})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return b})),n.d(e,"k",(function(){return A}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function h(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},"83f1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"to-review"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:3,"align-center":"","finish-status":"success","process-status":"error"}},[a("el-step",{attrs:{title:"注册账号"}}),t._v(" "),a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main"},[a("div",{staticClass:"main-con"},[a("p",[a("img",{attrs:{src:n("47af"),alt:""}})]),t._v(" "),a("p",[t._v("非常抱歉,您的资料审核不通过!")]),t._v(" "),a("p",[t._v("不通过原因:"+t._s(t.msg)+"!请您重新提交认证资料!")]),t._v(" "),a("p",[t._v("如果您有其它的问题,可以拔打我们的服务电话与我们联系")]),t._v(" "),a("p",{staticStyle:{"padding-top":"40px"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.reSubmit}},[t._v("重新提交")])],1)])])])],1)},r=[],c=n("6b1f"),u={name:"ReviewFail",data:function(){return{msg:"具体原因,请联系售后"}},created:function(){var t=this;this.$route.params.msg&&(this.msg=this.$route.params.msg),Object(c["g"])().then((function(e){1==e.code&&e.data.user&&(1==e.data.user.state&&t.$router.push({path:"/home/index"}),2==e.data.user.state&&t.$router.push({path:"/reviewing"}),3==e.data.user.state&&(t.$router.push({path:"/reviewFail"}),Object(c["j"])().then((function(e){1==e.code&&""!=e.data.Apply.content&&(t.msg=e.data.Apply.content)}))))}))},mounted:function(){history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))},methods:{reSubmit:function(){this.$router.push({path:"/process"})}}},s=u,i=(n("e87f"),n("2877")),o=Object(i["a"])(s,a,r,!1,null,"5e9840cc",null);e["default"]=o.exports},e87f:function(t,e,n){"use strict";n("4f84")}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64b639c7"],{"92fc":function(t,n,e){t.exports=e.p+"static/img/4.3f411af6.png"},a570:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"entryDetails"},[e("div",{staticClass:"logo-bg"},[t.settitle&&t.settitle.topLogo?e("img",{attrs:{src:t.settitle.topLogo,alt:""}}):t._e()]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"confirm-btn"},[e("p",[e("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary",round:""},on:{click:t.nextStep}},[t._v("\n 立即入驻  "),e("i",{staticClass:"el-icon-right"})])],1)])])},a=[function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"main-con"},[i("img",{attrs:{src:e("92fc"),alt:""}})])}],s=e("5302"),c={name:"Index",data:function(){return{channel_id:0,settitle:{bottomCopyright:"",businessHours:1,companyAddress:"",contactTel:"",custServiceQrcode:"",hotlineTel1:"",hotlineTel2:"",onlineTimeEnd:"18:00",onlineTimeStart:"09:00",recordNum:"",topLogo:""}}},created:function(){},mounted:function(){},methods:{getIndexInfo:function(){var t=this,n=window.location.host,e={domain:n};Object(s["e"])(e).then((function(n){1==n.code&&(t.channel_id=n.data.channel_id,t.getWebSite())}))},getWebSite:function(){var t=this,n={channel_ids:this.channel_id};Object(s["f"])(n).then((function(n){1==n.code&&n.data.universal_lst&&"null"!=n.data.universal_lst&&(t.settitle=n.data.universal_lst)}))},nextStep:function(){this.$router.push("/fillMainInf")}}},o=c,l=(e("a8f3"),e("2877")),r=Object(l["a"])(o,i,a,!1,null,"d1c85880",null);n["default"]=r.exports},a8f3:function(t,n,e){"use strict";e("d167")},d167:function(t,n,e){}}]);
\ No newline at end of file
<<<<<<< HEAD:dist/static/js/chunk-b4915312.bc882284.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4915312"],{3746:function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"fill-store-inf"},[t("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"注册账号"}}),e._v(" "),t("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),t("div",{staticClass:"main-con"},[t("el-form",{ref:"mainForm",staticClass:"main-form-con",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px",size:"small"}},[t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业资质信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"营业执照:",prop:"license"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{"padding-right":"6px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.licenseImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.licenseImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(i){e.dialogVisible=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小在2MB以内,支持png,jpg格式,最多可上传1张")]),t("br"),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("请确保营业执照在有效期内")])])])]),e._v(" "),t("el-form-item",{attrs:{label:"企业名称:",prop:"organization_name","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_name,callback:function(i){e.$set(e.mainForm,"organization_name",i)},expression:"mainForm.organization_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"统一社会代码:",prop:"license_number","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.license_number,callback:function(i){e.$set(e.mainForm,"license_number",i)},expression:"mainForm.license_number"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.periodLongTermChange},model:{value:e.periodConcreteTime,callback:function(i){e.periodConcreteTime=i},expression:"periodConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},attrs:{disabled:e.isPeriodDisabled},on:{change:e.periodConcreteChange},model:{value:e.periodLongTermVal,callback:function(i){e.periodLongTermVal=i},expression:"periodLongTermVal"}},[e._v("长期\n ")]),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("具体时间和长期,二者必填一个")])],1),e._v(" "),t("el-form-item",{attrs:{label:"企业地址:",prop:"organization_address","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_address,callback:function(i){e.$set(e.mainForm,"organization_address",i)},expression:"mainForm.organization_address"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整地址填写")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对营业执照信息,若信息不符合,可手动修改")])]),e._v(" "),t("el-divider"),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业法人信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"法人身份证:",prop:"idcard_front"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardPositive,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.idcardImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(i){e.dialogVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardBackImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"file-list":e.idcardBackImgFileList,"before-upload":e.beforeUpImg,"on-preview":e.handleBackPictureCardPreview2,"on-remove":e.handleBackRemove2,"http-request":e.uploadIdcardBack}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogBackVisible2},on:{"update:visible":function(i){e.dialogBackVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogBackImageUrl2,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("请按顺序分别上传正面(照片面)和反面(国徽面)电子版图片,文件大小在 2MB以内,支持png,jpg格式,最多可上传2张")])])]),e._v(" "),t("div",{staticClass:"idcard-tips-con"},[t("p",[e._v("请上传身份证正面")]),e._v(" "),t("p",[e._v("请上传身份证国徽面")])])]),e._v(" "),t("el-form-item",{attrs:{label:"法定姓名:",prop:"real_name"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.real_name,callback:function(i){e.$set(e.mainForm,"real_name",i)},expression:"mainForm.real_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的法人填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"法定代表人证件号:",prop:"idcard_number"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.idcard_number,callback:function(i){e.$set(e.mainForm,"idcard_number",i)},expression:"mainForm.idcard_number"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"有效期至:",prop:"idcard_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},on:{change:e.validityConcreteTimeChange},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTermValChange},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对企业法人信息,若信息不符合,可手动修改")])]),e._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary"},on:{click:function(i){return e.next("mainForm")}}},[e._v("下一步")])],1)])],1)],1)]),e._v(" "),t("el-dialog",{staticClass:"read-fail-dialog",attrs:{title:"提示",visible:e.isReadFailVisible,width:"600px",center:"","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.isReadFailVisible=i}}},[t("p",[e._v("未能识别有效信息,请重新上传正确的图片或者手动输入相关信息")]),e._v(" "),t("p",[e._v("该弹窗"),t("span",{staticClass:"read-time-m"},[e._v(e._s(e.readTime))]),e._v("S后自动关闭,无需手动关闭")])])],1)},r=[],s=(t("ac6a"),t("a481"),t("28a5"),t("6b1f")),n=t("ed08"),l={name:"FillMainInf",data:function(){var e=this,i=function(i,t,a){e.licenseImgFileList.length>0?a():0===e.licenseImgFileList.length&&a(new Error("营业执照图片至少上传一张"))},t=function(i,t,a){e.idcardImgFileList.length>0?a():0===e.idcardImgFileList.length&&a(new Error("法人证件照图片至少上传一张"))},a=function(e,i,t){var a=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;a.test(i)?t():t(new Error("法人证件号格式有误"))},r=function(i,t,a){0!=e.periodConcreteTime.length&&e.periodConcreteTime||!1!==e.periodLongTermVal?a():a(new Error("营业期限具体时间和长期必须填写其中一个"))},s=function(i,t,a){0!=e.validityConcreteTime.length&&e.validityConcreteTime||!1!==e.validityLongTermVal?a():a(new Error("有效期具体时间和长期必须填写其中一个"))};return{licenseImgFileList:[],idcardImgFileList:[],idcardBackImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogBackImageUrl2:"",dialogBackVisible2:!1,periodConcreteTime:[],periodLongTermVal:!1,validityConcreteTime:[],validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,submitTime:[],mainForm:{license:"",organization_name:"",license_number:"",organization_address:"",idcard_front:"",idcard_back:"",real_name:"",idcard_number:"",idcard_start_time:"",idcard_expires_time:"",license_expires_time:"",license_start_time:""},hasLicense:!1,mainRules:{license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],license_number:[{required:!0,message:"统一社会代码不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"企业地址不能为空",trigger:"blur"}],real_name:[{required:!0,message:"法人姓名不能为空",trigger:"blur"}],idcard_number:[{required:!0,message:"法人证件号不能为空",trigger:"blur"},{required:!0,message:"法人证件号码格式有误",validator:a,trigger:"blur"}],idcard_front:[{required:!0,message:"请上传法人证件电子版图片",validator:t}],license_expires_time:[{validator:r,required:!0,trigger:"change"}],idcard_expires_time:[{validator:s,required:!0,trigger:"change"}]},readTime:5,isReadFailVisible:!1,TIMER:null}},created:function(){var e=this;Object(s["g"])().then((function(i){if(1==i.code&&i.data.user){var t=!1;0==i.data.user.state?t=1==i.data.user.status:1!=i.data.user.state&&2!=i.data.user.state&&3!=i.data.user.state||(t=!0),t&&e.getMain()}}))},destroyed:function(){clearInterval(this.TIMER),this.TIMER=null},mounted:function(){},methods:{periodLongTermChange:function(){Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.periodLongTermVal=!1)},periodConcreteChange:function(){this.periodLongTermVal&&(this.periodConcreteTime=[])},validityConcreteTimeChange:function(){Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.validityLongTermVal=!1)},validityLongTermValChange:function(){this.validityLongTermVal&&(this.validityConcreteTime=[])},beforeUpImg:function(e){if("image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type)return this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1},uploadLicenseImages:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.licenseImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("license"),i.readLicenseImgInfo(i.licenseImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,i){for(var t=0;t<this.licenseImgFileList.length;t++)e.uid===this.licenseImgFileList[t].uid&&this.licenseImgFileList.splice(t,1)},readLicenseImgInfo:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["h"])(t).then((function(e){if(1==e.code)if(i.mainForm.organization_name=e.data.words_result["单位名称"].words?e.data.words_result["单位名称"].words:"",i.mainForm.license_number=e.data.words_result["社会信用代码"].words?e.data.words_result["社会信用代码"].words:"",i.mainForm.organization_address=e.data.words_result["地址"].words?e.data.words_result["地址"].words:"","长期"==e.data.words_result["有效期"].words||"年月日"==e.data.words_result["有效期"].words)i.periodConcreteTime=[],i.periodLongTermVal=!0;else{var t=e.data.words_result["成立日期"].words?e.data.words_result["成立日期"].words:"",a=e.data.words_result["有效期"].words,r=t.replace(/年|月|日/g,"-").substr(0,t.length-1),s=a.replace(/年|月|日/g,"-").substr(0,a.length-1);i.periodConcreteTime=[],i.periodConcreteTime.push(r),i.periodConcreteTime.push(s),i.periodLongTermVal=!1}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},uploadIdcardPositive:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_front"),i.readIdcardPositive(i.idcardImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardPositive:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code){if(e.data.words_result)try{i.mainForm.real_name=e.data.words_result["姓名"].words?e.data.words_result["姓名"].words:"",i.mainForm.idcard_number=e.data.words_result["公民身份号码"].words?e.data.words_result["公民身份号码"].words:""}catch(t){i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,i){for(var t=0;t<this.idcardImgFileList.length;t++)e.uid===this.idcardImgFileList[t].uid&&this.idcardImgFileList.splice(t,1)},uploadIdcardBack:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardBackImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_back"),i.readIdcardBack(i.idcardBackImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardBack:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code)if(e.data.words_result["签发日期"]&&e.data.words_result["失效日期"]){var t=e.data.words_result["签发日期"].words,a=e.data.words_result["失效日期"].words;if("长期"==a)i.validityConcreteTime=[],i.validityLongTermVal=!0;else{var r=/^(\d{4})(\d{2})(\d{2})$/,s=t.replace(r,"$1-$2-$3"),n=a.replace(r,"$1-$2-$3");i.validityConcreteTime=[],i.validityConcreteTime.push(s),i.validityConcreteTime.push(n),i.validityLongTermVal=!1}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3);else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handleBackPictureCardPreview2:function(e){this.dialogBackImageUrl2=e.url,this.dialogBackVisible2=!0},handleBackRemove2:function(e){for(var i=0;i<this.idcardBackImgFileList.length;i++)e.uid===this.idcardBackImgFileList[i].uid&&this.idcardBackImgFileList.splice(i,1)},getMain:function(){var e=this;Object(s["i"])().then((function(i){if(1==i.code){e.resetForm("mainForm"),e.mainForm=i.data;var t=[],a={};t=e.mainForm.license.split(","),t.length>0?t.forEach((function(i){a={},i&&(a.url=i,e.licenseImgFileList.push(a))})):e.licenseImgFileList=[];var r=[],s={};r=e.mainForm.idcard_front.split(","),r.length>0?r.forEach((function(i){s={},i&&(s.url=i,e.idcardImgFileList.push(s))})):e.idcardImgFileList=[];var n=[],l={};if(n=e.mainForm.idcard_back.split(","),n.length>0?n.forEach((function(i){l={},i&&(l.url=i,e.idcardBackImgFileList.push(l))})):e.idcardBackImgFileList=[],0==e.mainForm.license_expires_time)e.periodLongTermVal=!0,e.periodConcreteTime=[];else if(e.mainForm.license_expires_time>0){e.periodLongTermVal=!1,e.periodConcreteTime=[];var o=e.formatterTime(e.mainForm.license_start_time),d=e.formatterTime(e.mainForm.license_expires_time);e.periodConcreteTime.push(o),e.periodConcreteTime.push(d)}if(0==e.mainForm.idcard_expires_time)e.validityLongTermVal=!0,e.validityConcreteTime=[];else if(e.mainForm.idcard_expires_time>0){e.validityLongTermVal=!1,e.validityConcreteTime=[];var c=e.formatterTime(e.mainForm.idcard_start_time),m=e.formatterTime(e.mainForm.idcard_expires_time);e.validityConcreteTime.push(c),e.validityConcreteTime.push(m)}}else e.$message({type:"error",message:i.message?i.message:"获取主体信息失败"})}))},resetForm:function(e){this.periodConcreteTime=[],this.validityConcreteTime=[],this.$refs[e].resetFields()},getBase64:function(e){return new Promise((function(i,t){var a=new FileReader,r="";a.readAsDataURL(e),a.onload=function(){r=a.result},a.onerror=function(e){t(e)},a.onloadend=function(){i(r)}}))},formatterTime:function(e){return Object(n["c"])(1e3*e,"Y-m-d")},showTip2:function(){this.$message({message:"最多上传2张图片",type:"warning"})},showTip:function(){this.$message({message:"最多上传1张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?(this.mainForm.license_expires_time=0,this.mainForm.license_start_time=0):Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.mainForm.license_start_time=new Date(this.periodConcreteTime[0]).getTime()/1e3,this.mainForm.license_expires_time=new Date(this.periodConcreteTime[1]).getTime()/1e3),this.validityLongTermVal?(this.mainForm.idcard_expires_time=0,this.mainForm.idcard_start_time=0):Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.mainForm.idcard_start_time=new Date(this.validityConcreteTime[0]).getTime()/1e3,this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime[1]).getTime()/1e3),this.licenseImgFileList.length>0)for(var t=0;t<this.licenseImgFileList.length;t++)0===t?this.mainForm.license=this.licenseImgFileList[t].url:this.mainForm.license+=","+this.licenseImgFileList[t].url;if(this.idcardImgFileList.length>0)for(var a=0;a<this.idcardImgFileList.length;a++)0===a?this.mainForm.idcard_front=this.idcardImgFileList[a].url:this.mainForm.idcard_front+=","+this.idcardImgFileList[a].url;if(this.idcardBackImgFileList.length>0)for(var r=0;r<this.idcardBackImgFileList.length;r++)0===r?this.mainForm.idcard_back=this.idcardBackImgFileList[r].url:this.mainForm.idcard_back+=","+this.idcardBackImgFileList[r].url;this.$refs[e].validate((function(e){e&&Object(s["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillShopInf"):i.$message({type:"error",message:e.message?e.message:"保存失败"})}))}))}}},o=l,d=(t("69b5"),t("2877")),c=Object(d["a"])(o,a,r,!1,null,"2b9ff0be",null);i["default"]=c.exports},"69b5":function(e,i,t){"use strict";t("dff6")},"6b1f":function(e,i,t){"use strict";t.d(i,"g",(function(){return r})),t.d(i,"i",(function(){return s})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return l})),t.d(i,"a",(function(){return o})),t.d(i,"l",(function(){return d})),t.d(i,"j",(function(){return c})),t.d(i,"c",(function(){return m})),t.d(i,"m",(function(){return u})),t.d(i,"e",(function(){return g})),t.d(i,"h",(function(){return p})),t.d(i,"f",(function(){return h})),t.d(i,"k",(function(){return f}));var a=t("b775");function r(e){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/local/organization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function m(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/local/cate",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:e})}},dff6:function(e,i,t){}}]);
//# sourceMappingURL=chunk-b4915312.bc882284.js.map
=======
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4915312"],{3746:function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"fill-store-inf"},[t("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"注册账号"}}),e._v(" "),t("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),t("div",{staticClass:"main-con"},[t("el-form",{ref:"mainForm",staticClass:"main-form-con",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px",size:"small"}},[t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业资质信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"营业执照:",prop:"license"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{"padding-right":"6px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.licenseImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.licenseImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(i){e.dialogVisible=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小在2MB以内,支持png,jpg格式,最多可上传1张")]),t("br"),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("请确保营业执照在有效期内")])])])]),e._v(" "),t("el-form-item",{attrs:{label:"企业名称:",prop:"organization_name","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_name,callback:function(i){e.$set(e.mainForm,"organization_name",i)},expression:"mainForm.organization_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"统一社会代码:",prop:"license_number","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.license_number,callback:function(i){e.$set(e.mainForm,"license_number",i)},expression:"mainForm.license_number"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.periodLongTermChange},model:{value:e.periodConcreteTime,callback:function(i){e.periodConcreteTime=i},expression:"periodConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},attrs:{disabled:e.isPeriodDisabled},on:{change:e.periodConcreteChange},model:{value:e.periodLongTermVal,callback:function(i){e.periodLongTermVal=i},expression:"periodLongTermVal"}},[e._v("长期\n ")]),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("具体时间和长期,二者必填一个")])],1),e._v(" "),t("el-form-item",{attrs:{label:"企业地址:",prop:"organization_address","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_address,callback:function(i){e.$set(e.mainForm,"organization_address",i)},expression:"mainForm.organization_address"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整地址填写")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对营业执照信息,若信息不符合,可手动修改")])]),e._v(" "),t("el-divider"),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业法人信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"法人身份证:",prop:"idcard_front"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardPositive,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.idcardImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(i){e.dialogVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardBackImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"file-list":e.idcardBackImgFileList,"before-upload":e.beforeUpImg,"on-preview":e.handleBackPictureCardPreview2,"on-remove":e.handleBackRemove2,"http-request":e.uploadIdcardBack}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogBackVisible2},on:{"update:visible":function(i){e.dialogBackVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogBackImageUrl2,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("请按顺序分别上传正面(照片面)和反面(国徽面)电子版图片,文件大小在 2MB以内,支持png,jpg格式,最多可上传2张")])])]),e._v(" "),t("div",{staticClass:"idcard-tips-con"},[t("p",[e._v("请上传身份证正面")]),e._v(" "),t("p",[e._v("请上传身份证国徽面")])])]),e._v(" "),t("el-form-item",{attrs:{label:"法定姓名:",prop:"real_name"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.real_name,callback:function(i){e.$set(e.mainForm,"real_name",i)},expression:"mainForm.real_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的法人填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"法定代表人证件号:",prop:"idcard_number"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.idcard_number,callback:function(i){e.$set(e.mainForm,"idcard_number",i)},expression:"mainForm.idcard_number"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"有效期至:",prop:"idcard_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},on:{change:e.validityConcreteTimeChange},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTermValChange},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对企业法人信息,若信息不符合,可手动修改")])]),e._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary"},on:{click:function(i){return e.next("mainForm")}}},[e._v("下一步")])],1)])],1)],1)]),e._v(" "),t("el-dialog",{staticClass:"read-fail-dialog",attrs:{title:"提示",visible:e.isReadFailVisible,width:"600px",center:"","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.isReadFailVisible=i}}},[t("p",[e._v("未能识别有效信息,请重新上传正确的图片或者手动输入相关信息")]),e._v(" "),t("p",[e._v("该弹窗"),t("span",{staticClass:"read-time-m"},[e._v(e._s(e.readTime))]),e._v("S后自动关闭,无需手动关闭")])])],1)},r=[],s=(t("ac6a"),t("a481"),t("28a5"),t("6b1f")),n=t("ed08"),l={name:"FillMainInf",data:function(){var e=this,i=function(i,t,a){e.licenseImgFileList.length>0?a():0===e.licenseImgFileList.length&&a(new Error("营业执照图片至少上传一张"))},t=function(i,t,a){e.idcardImgFileList.length>0?a():0===e.idcardImgFileList.length&&a(new Error("法人证件照图片至少上传一张"))},a=function(e,i,t){var a=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;a.test(i)?t():t(new Error("法人证件号格式有误"))},r=function(i,t,a){0!=e.periodConcreteTime.length&&e.periodConcreteTime||!1!==e.periodLongTermVal?a():a(new Error("营业期限具体时间和长期必须填写其中一个"))},s=function(i,t,a){0!=e.validityConcreteTime.length&&e.validityConcreteTime||!1!==e.validityLongTermVal?a():a(new Error("有效期具体时间和长期必须填写其中一个"))};return{licenseImgFileList:[],idcardImgFileList:[],idcardBackImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogBackImageUrl2:"",dialogBackVisible2:!1,periodConcreteTime:[],periodLongTermVal:!1,validityConcreteTime:[],validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,submitTime:[],mainForm:{license:"",organization_name:"",license_number:"",organization_address:"",idcard_front:"",idcard_back:"",real_name:"",idcard_number:"",idcard_start_time:"",idcard_expires_time:"",license_expires_time:"",license_start_time:""},hasLicense:!1,mainRules:{license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],license_number:[{required:!0,message:"统一社会代码不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"企业地址不能为空",trigger:"blur"}],real_name:[{required:!0,message:"法人姓名不能为空",trigger:"blur"}],idcard_number:[{required:!0,message:"法人证件号不能为空",trigger:"blur"},{required:!0,message:"法人证件号码格式有误",validator:a,trigger:"blur"}],idcard_front:[{required:!0,message:"请上传法人证件电子版图片",validator:t}],license_expires_time:[{validator:r,required:!0,trigger:"change"}],idcard_expires_time:[{validator:s,required:!0,trigger:"change"}]},readTime:5,isReadFailVisible:!1,TIMER:null}},created:function(){var e=this;Object(s["g"])().then((function(i){if(1==i.code&&i.data.user){var t=!1;0==i.data.user.state?t=1==i.data.user.status:1!=i.data.user.state&&2!=i.data.user.state&&3!=i.data.user.state||(t=!0),t&&e.getMain()}}))},destroyed:function(){clearInterval(this.TIMER),this.TIMER=null},mounted:function(){},methods:{periodLongTermChange:function(){Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.periodLongTermVal=!1)},periodConcreteChange:function(){this.periodLongTermVal&&(this.periodConcreteTime=[])},validityConcreteTimeChange:function(){Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.validityLongTermVal=!1)},validityLongTermValChange:function(){this.validityLongTermVal&&(this.validityConcreteTime=[])},beforeUpImg:function(e){if("image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type)return this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1},uploadLicenseImages:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.licenseImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("license"),i.readLicenseImgInfo(i.licenseImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,i){for(var t=0;t<this.licenseImgFileList.length;t++)e.uid===this.licenseImgFileList[t].uid&&this.licenseImgFileList.splice(t,1)},readLicenseImgInfo:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["h"])(t).then((function(e){if(1==e.code)if(i.mainForm.organization_name=e.data.words_result["单位名称"].words?e.data.words_result["单位名称"].words:"",i.mainForm.license_number=e.data.words_result["社会信用代码"].words?e.data.words_result["社会信用代码"].words:"",i.mainForm.organization_address=e.data.words_result["地址"].words?e.data.words_result["地址"].words:"","长期"==e.data.words_result["有效期"].words||"年月日"==e.data.words_result["有效期"].words)i.periodConcreteTime=[],i.periodLongTermVal=!0;else{var t=e.data.words_result["成立日期"].words?e.data.words_result["成立日期"].words:"",a=e.data.words_result["有效期"].words,r=t.replace(/年|月|日/g,"-").substr(0,t.length-1),s=a.replace(/年|月|日/g,"-").substr(0,a.length-1);i.periodConcreteTime=[],i.periodConcreteTime.push(r),i.periodConcreteTime.push(s),i.periodLongTermVal=!1}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},uploadIdcardPositive:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_front"),i.readIdcardPositive(i.idcardImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardPositive:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code){if(e.data.words_result)try{i.mainForm.real_name=e.data.words_result["姓名"].words?e.data.words_result["姓名"].words:"",i.mainForm.idcard_number=e.data.words_result["公民身份号码"].words?e.data.words_result["公民身份号码"].words:""}catch(t){i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,i){for(var t=0;t<this.idcardImgFileList.length;t++)e.uid===this.idcardImgFileList[t].uid&&this.idcardImgFileList.splice(t,1)},uploadIdcardBack:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardBackImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_back"),i.readIdcardBack(i.idcardBackImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardBack:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code)if(e.data.words_result["签发日期"]&&e.data.words_result["失效日期"]){var t=e.data.words_result["签发日期"].words,a=e.data.words_result["失效日期"].words;if("长期"==a)i.validityConcreteTime=[],i.validityLongTermVal=!0;else{var r=/^(\d{4})(\d{2})(\d{2})$/,s=t.replace(r,"$1-$2-$3"),n=a.replace(r,"$1-$2-$3");i.validityConcreteTime=[],i.validityConcreteTime.push(s),i.validityConcreteTime.push(n),i.validityLongTermVal=!1}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3);else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handleBackPictureCardPreview2:function(e){this.dialogBackImageUrl2=e.url,this.dialogBackVisible2=!0},handleBackRemove2:function(e){for(var i=0;i<this.idcardBackImgFileList.length;i++)e.uid===this.idcardBackImgFileList[i].uid&&this.idcardBackImgFileList.splice(i,1)},getMain:function(){var e=this;Object(s["i"])().then((function(i){if(1==i.code){e.resetForm("mainForm"),e.mainForm=i.data;var t=[],a={};t=e.mainForm.license.split(","),t.length>0?t.forEach((function(i){a={},i&&(a.url=i,e.licenseImgFileList.push(a))})):e.licenseImgFileList=[];var r=[],s={};r=e.mainForm.idcard_front.split(","),r.length>0?r.forEach((function(i){s={},i&&(s.url=i,e.idcardImgFileList.push(s))})):e.idcardImgFileList=[];var n=[],l={};if(n=e.mainForm.idcard_back.split(","),n.length>0?n.forEach((function(i){l={},i&&(l.url=i,e.idcardBackImgFileList.push(l))})):e.idcardBackImgFileList=[],0==e.mainForm.license_expires_time)e.periodLongTermVal=!0,e.periodConcreteTime=[];else if(e.mainForm.license_expires_time>0){e.periodLongTermVal=!1,e.periodConcreteTime=[];var o=e.formatterTime(e.mainForm.license_start_time),d=e.formatterTime(e.mainForm.license_expires_time);e.periodConcreteTime.push(o),e.periodConcreteTime.push(d)}if(0==e.mainForm.idcard_expires_time)e.validityLongTermVal=!0,e.validityConcreteTime=[];else if(e.mainForm.idcard_expires_time>0){e.validityLongTermVal=!1,e.validityConcreteTime=[];var c=e.formatterTime(e.mainForm.idcard_start_time),m=e.formatterTime(e.mainForm.idcard_expires_time);e.validityConcreteTime.push(c),e.validityConcreteTime.push(m)}}else e.$message({type:"error",message:i.message?i.message:"获取主体信息失败"})}))},resetForm:function(e){this.periodConcreteTime=[],this.validityConcreteTime=[],this.$refs[e].resetFields()},getBase64:function(e){return new Promise((function(i,t){var a=new FileReader,r="";a.readAsDataURL(e),a.onload=function(){r=a.result},a.onerror=function(e){t(e)},a.onloadend=function(){i(r)}}))},formatterTime:function(e){return Object(n["c"])(1e3*e,"Y-m-d")},showTip2:function(){this.$message({message:"最多上传2张图片",type:"warning"})},showTip:function(){this.$message({message:"最多上传1张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?(this.mainForm.license_expires_time=0,this.mainForm.license_start_time=0):Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.mainForm.license_start_time=new Date(this.periodConcreteTime[0]).getTime()/1e3,this.mainForm.license_expires_time=new Date(this.periodConcreteTime[1]).getTime()/1e3),this.validityLongTermVal?(this.mainForm.idcard_expires_time=0,this.mainForm.idcard_start_time=0):Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.mainForm.idcard_start_time=new Date(this.validityConcreteTime[0]).getTime()/1e3,this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime[1]).getTime()/1e3),this.licenseImgFileList.length>0)for(var t=0;t<this.licenseImgFileList.length;t++)0===t?this.mainForm.license=this.licenseImgFileList[t].url:this.mainForm.license+=","+this.licenseImgFileList[t].url;if(this.idcardImgFileList.length>0)for(var a=0;a<this.idcardImgFileList.length;a++)0===a?this.mainForm.idcard_front=this.idcardImgFileList[a].url:this.mainForm.idcard_front+=","+this.idcardImgFileList[a].url;if(this.idcardBackImgFileList.length>0)for(var r=0;r<this.idcardBackImgFileList.length;r++)0===r?this.mainForm.idcard_back=this.idcardBackImgFileList[r].url:this.mainForm.idcard_back+=","+this.idcardBackImgFileList[r].url;this.$refs[e].validate((function(e){e&&Object(s["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillShopInf"):i.$message({type:"error",message:e.message?e.message:"保存失败"})}))}))}}},o=l,d=(t("69b5"),t("2877")),c=Object(d["a"])(o,a,r,!1,null,"2b9ff0be",null);i["default"]=c.exports},"69b5":function(e,i,t){"use strict";t("dff6")},"6b1f":function(e,i,t){"use strict";t.d(i,"g",(function(){return r})),t.d(i,"i",(function(){return s})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return l})),t.d(i,"a",(function(){return o})),t.d(i,"l",(function(){return d})),t.d(i,"j",(function(){return c})),t.d(i,"c",(function(){return m})),t.d(i,"m",(function(){return u})),t.d(i,"e",(function(){return g})),t.d(i,"h",(function(){return p})),t.d(i,"f",(function(){return h})),t.d(i,"k",(function(){return f}));var a=t("b775");function r(e){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/local/organization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function m(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/local/cate",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:e})}},dff6:function(e,i,t){}}]);
>>>>>>> fix-m-postage-tips:dist/static/js/chunk-b4915312.12278afc.js
<<<<<<< HEAD:dist/static/js/chunk-b4915312.bc882284.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4915312"],{3746:function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"fill-store-inf"},[t("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"注册账号"}}),e._v(" "),t("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),t("div",{staticClass:"main-con"},[t("el-form",{ref:"mainForm",staticClass:"main-form-con",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px",size:"small"}},[t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业资质信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"营业执照:",prop:"license"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{"padding-right":"6px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.licenseImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.licenseImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(i){e.dialogVisible=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小在2MB以内,支持png,jpg格式,最多可上传1张")]),t("br"),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("请确保营业执照在有效期内")])])])]),e._v(" "),t("el-form-item",{attrs:{label:"企业名称:",prop:"organization_name","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_name,callback:function(i){e.$set(e.mainForm,"organization_name",i)},expression:"mainForm.organization_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"统一社会代码:",prop:"license_number","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.license_number,callback:function(i){e.$set(e.mainForm,"license_number",i)},expression:"mainForm.license_number"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.periodLongTermChange},model:{value:e.periodConcreteTime,callback:function(i){e.periodConcreteTime=i},expression:"periodConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},attrs:{disabled:e.isPeriodDisabled},on:{change:e.periodConcreteChange},model:{value:e.periodLongTermVal,callback:function(i){e.periodLongTermVal=i},expression:"periodLongTermVal"}},[e._v("长期\n ")]),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("具体时间和长期,二者必填一个")])],1),e._v(" "),t("el-form-item",{attrs:{label:"企业地址:",prop:"organization_address","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_address,callback:function(i){e.$set(e.mainForm,"organization_address",i)},expression:"mainForm.organization_address"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整地址填写")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对营业执照信息,若信息不符合,可手动修改")])]),e._v(" "),t("el-divider"),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业法人信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"法人身份证:",prop:"idcard_front"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardPositive,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.idcardImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(i){e.dialogVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardBackImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"file-list":e.idcardBackImgFileList,"before-upload":e.beforeUpImg,"on-preview":e.handleBackPictureCardPreview2,"on-remove":e.handleBackRemove2,"http-request":e.uploadIdcardBack}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogBackVisible2},on:{"update:visible":function(i){e.dialogBackVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogBackImageUrl2,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("请按顺序分别上传正面(照片面)和反面(国徽面)电子版图片,文件大小在 2MB以内,支持png,jpg格式,最多可上传2张")])])]),e._v(" "),t("div",{staticClass:"idcard-tips-con"},[t("p",[e._v("请上传身份证正面")]),e._v(" "),t("p",[e._v("请上传身份证国徽面")])])]),e._v(" "),t("el-form-item",{attrs:{label:"法定姓名:",prop:"real_name"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.real_name,callback:function(i){e.$set(e.mainForm,"real_name",i)},expression:"mainForm.real_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的法人填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"法定代表人证件号:",prop:"idcard_number"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.idcard_number,callback:function(i){e.$set(e.mainForm,"idcard_number",i)},expression:"mainForm.idcard_number"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"有效期至:",prop:"idcard_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},on:{change:e.validityConcreteTimeChange},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTermValChange},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对企业法人信息,若信息不符合,可手动修改")])]),e._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary"},on:{click:function(i){return e.next("mainForm")}}},[e._v("下一步")])],1)])],1)],1)]),e._v(" "),t("el-dialog",{staticClass:"read-fail-dialog",attrs:{title:"提示",visible:e.isReadFailVisible,width:"600px",center:"","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.isReadFailVisible=i}}},[t("p",[e._v("未能识别有效信息,请重新上传正确的图片或者手动输入相关信息")]),e._v(" "),t("p",[e._v("该弹窗"),t("span",{staticClass:"read-time-m"},[e._v(e._s(e.readTime))]),e._v("S后自动关闭,无需手动关闭")])])],1)},r=[],s=(t("ac6a"),t("a481"),t("28a5"),t("6b1f")),n=t("ed08"),l={name:"FillMainInf",data:function(){var e=this,i=function(i,t,a){e.licenseImgFileList.length>0?a():0===e.licenseImgFileList.length&&a(new Error("营业执照图片至少上传一张"))},t=function(i,t,a){e.idcardImgFileList.length>0?a():0===e.idcardImgFileList.length&&a(new Error("法人证件照图片至少上传一张"))},a=function(e,i,t){var a=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;a.test(i)?t():t(new Error("法人证件号格式有误"))},r=function(i,t,a){0!=e.periodConcreteTime.length&&e.periodConcreteTime||!1!==e.periodLongTermVal?a():a(new Error("营业期限具体时间和长期必须填写其中一个"))},s=function(i,t,a){0!=e.validityConcreteTime.length&&e.validityConcreteTime||!1!==e.validityLongTermVal?a():a(new Error("有效期具体时间和长期必须填写其中一个"))};return{licenseImgFileList:[],idcardImgFileList:[],idcardBackImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogBackImageUrl2:"",dialogBackVisible2:!1,periodConcreteTime:[],periodLongTermVal:!1,validityConcreteTime:[],validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,submitTime:[],mainForm:{license:"",organization_name:"",license_number:"",organization_address:"",idcard_front:"",idcard_back:"",real_name:"",idcard_number:"",idcard_start_time:"",idcard_expires_time:"",license_expires_time:"",license_start_time:""},hasLicense:!1,mainRules:{license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],license_number:[{required:!0,message:"统一社会代码不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"企业地址不能为空",trigger:"blur"}],real_name:[{required:!0,message:"法人姓名不能为空",trigger:"blur"}],idcard_number:[{required:!0,message:"法人证件号不能为空",trigger:"blur"},{required:!0,message:"法人证件号码格式有误",validator:a,trigger:"blur"}],idcard_front:[{required:!0,message:"请上传法人证件电子版图片",validator:t}],license_expires_time:[{validator:r,required:!0,trigger:"change"}],idcard_expires_time:[{validator:s,required:!0,trigger:"change"}]},readTime:5,isReadFailVisible:!1,TIMER:null}},created:function(){var e=this;Object(s["g"])().then((function(i){if(1==i.code&&i.data.user){var t=!1;0==i.data.user.state?t=1==i.data.user.status:1!=i.data.user.state&&2!=i.data.user.state&&3!=i.data.user.state||(t=!0),t&&e.getMain()}}))},destroyed:function(){clearInterval(this.TIMER),this.TIMER=null},mounted:function(){},methods:{periodLongTermChange:function(){Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.periodLongTermVal=!1)},periodConcreteChange:function(){this.periodLongTermVal&&(this.periodConcreteTime=[])},validityConcreteTimeChange:function(){Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.validityLongTermVal=!1)},validityLongTermValChange:function(){this.validityLongTermVal&&(this.validityConcreteTime=[])},beforeUpImg:function(e){if("image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type)return this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1},uploadLicenseImages:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.licenseImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("license"),i.readLicenseImgInfo(i.licenseImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,i){for(var t=0;t<this.licenseImgFileList.length;t++)e.uid===this.licenseImgFileList[t].uid&&this.licenseImgFileList.splice(t,1)},readLicenseImgInfo:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["h"])(t).then((function(e){if(1==e.code)if(i.mainForm.organization_name=e.data.words_result["单位名称"].words?e.data.words_result["单位名称"].words:"",i.mainForm.license_number=e.data.words_result["社会信用代码"].words?e.data.words_result["社会信用代码"].words:"",i.mainForm.organization_address=e.data.words_result["地址"].words?e.data.words_result["地址"].words:"","长期"==e.data.words_result["有效期"].words||"年月日"==e.data.words_result["有效期"].words)i.periodConcreteTime=[],i.periodLongTermVal=!0;else{var t=e.data.words_result["成立日期"].words?e.data.words_result["成立日期"].words:"",a=e.data.words_result["有效期"].words,r=t.replace(/年|月|日/g,"-").substr(0,t.length-1),s=a.replace(/年|月|日/g,"-").substr(0,a.length-1);i.periodConcreteTime=[],i.periodConcreteTime.push(r),i.periodConcreteTime.push(s),i.periodLongTermVal=!1}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},uploadIdcardPositive:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_front"),i.readIdcardPositive(i.idcardImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardPositive:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code){if(e.data.words_result)try{i.mainForm.real_name=e.data.words_result["姓名"].words?e.data.words_result["姓名"].words:"",i.mainForm.idcard_number=e.data.words_result["公民身份号码"].words?e.data.words_result["公民身份号码"].words:""}catch(t){i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,i){for(var t=0;t<this.idcardImgFileList.length;t++)e.uid===this.idcardImgFileList[t].uid&&this.idcardImgFileList.splice(t,1)},uploadIdcardBack:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardBackImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_back"),i.readIdcardBack(i.idcardBackImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardBack:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code)if(e.data.words_result["签发日期"]&&e.data.words_result["失效日期"]){var t=e.data.words_result["签发日期"].words,a=e.data.words_result["失效日期"].words;if("长期"==a)i.validityConcreteTime=[],i.validityLongTermVal=!0;else{var r=/^(\d{4})(\d{2})(\d{2})$/,s=t.replace(r,"$1-$2-$3"),n=a.replace(r,"$1-$2-$3");i.validityConcreteTime=[],i.validityConcreteTime.push(s),i.validityConcreteTime.push(n),i.validityLongTermVal=!1}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3);else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handleBackPictureCardPreview2:function(e){this.dialogBackImageUrl2=e.url,this.dialogBackVisible2=!0},handleBackRemove2:function(e){for(var i=0;i<this.idcardBackImgFileList.length;i++)e.uid===this.idcardBackImgFileList[i].uid&&this.idcardBackImgFileList.splice(i,1)},getMain:function(){var e=this;Object(s["i"])().then((function(i){if(1==i.code){e.resetForm("mainForm"),e.mainForm=i.data;var t=[],a={};t=e.mainForm.license.split(","),t.length>0?t.forEach((function(i){a={},i&&(a.url=i,e.licenseImgFileList.push(a))})):e.licenseImgFileList=[];var r=[],s={};r=e.mainForm.idcard_front.split(","),r.length>0?r.forEach((function(i){s={},i&&(s.url=i,e.idcardImgFileList.push(s))})):e.idcardImgFileList=[];var n=[],l={};if(n=e.mainForm.idcard_back.split(","),n.length>0?n.forEach((function(i){l={},i&&(l.url=i,e.idcardBackImgFileList.push(l))})):e.idcardBackImgFileList=[],0==e.mainForm.license_expires_time)e.periodLongTermVal=!0,e.periodConcreteTime=[];else if(e.mainForm.license_expires_time>0){e.periodLongTermVal=!1,e.periodConcreteTime=[];var o=e.formatterTime(e.mainForm.license_start_time),d=e.formatterTime(e.mainForm.license_expires_time);e.periodConcreteTime.push(o),e.periodConcreteTime.push(d)}if(0==e.mainForm.idcard_expires_time)e.validityLongTermVal=!0,e.validityConcreteTime=[];else if(e.mainForm.idcard_expires_time>0){e.validityLongTermVal=!1,e.validityConcreteTime=[];var c=e.formatterTime(e.mainForm.idcard_start_time),m=e.formatterTime(e.mainForm.idcard_expires_time);e.validityConcreteTime.push(c),e.validityConcreteTime.push(m)}}else e.$message({type:"error",message:i.message?i.message:"获取主体信息失败"})}))},resetForm:function(e){this.periodConcreteTime=[],this.validityConcreteTime=[],this.$refs[e].resetFields()},getBase64:function(e){return new Promise((function(i,t){var a=new FileReader,r="";a.readAsDataURL(e),a.onload=function(){r=a.result},a.onerror=function(e){t(e)},a.onloadend=function(){i(r)}}))},formatterTime:function(e){return Object(n["c"])(1e3*e,"Y-m-d")},showTip2:function(){this.$message({message:"最多上传2张图片",type:"warning"})},showTip:function(){this.$message({message:"最多上传1张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?(this.mainForm.license_expires_time=0,this.mainForm.license_start_time=0):Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.mainForm.license_start_time=new Date(this.periodConcreteTime[0]).getTime()/1e3,this.mainForm.license_expires_time=new Date(this.periodConcreteTime[1]).getTime()/1e3),this.validityLongTermVal?(this.mainForm.idcard_expires_time=0,this.mainForm.idcard_start_time=0):Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.mainForm.idcard_start_time=new Date(this.validityConcreteTime[0]).getTime()/1e3,this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime[1]).getTime()/1e3),this.licenseImgFileList.length>0)for(var t=0;t<this.licenseImgFileList.length;t++)0===t?this.mainForm.license=this.licenseImgFileList[t].url:this.mainForm.license+=","+this.licenseImgFileList[t].url;if(this.idcardImgFileList.length>0)for(var a=0;a<this.idcardImgFileList.length;a++)0===a?this.mainForm.idcard_front=this.idcardImgFileList[a].url:this.mainForm.idcard_front+=","+this.idcardImgFileList[a].url;if(this.idcardBackImgFileList.length>0)for(var r=0;r<this.idcardBackImgFileList.length;r++)0===r?this.mainForm.idcard_back=this.idcardBackImgFileList[r].url:this.mainForm.idcard_back+=","+this.idcardBackImgFileList[r].url;this.$refs[e].validate((function(e){e&&Object(s["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillShopInf"):i.$message({type:"error",message:e.message?e.message:"保存失败"})}))}))}}},o=l,d=(t("69b5"),t("2877")),c=Object(d["a"])(o,a,r,!1,null,"2b9ff0be",null);i["default"]=c.exports},"69b5":function(e,i,t){"use strict";t("dff6")},"6b1f":function(e,i,t){"use strict";t.d(i,"g",(function(){return r})),t.d(i,"i",(function(){return s})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return l})),t.d(i,"a",(function(){return o})),t.d(i,"l",(function(){return d})),t.d(i,"j",(function(){return c})),t.d(i,"c",(function(){return m})),t.d(i,"m",(function(){return u})),t.d(i,"e",(function(){return g})),t.d(i,"h",(function(){return p})),t.d(i,"f",(function(){return h})),t.d(i,"k",(function(){return f}));var a=t("b775");function r(e){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/local/organization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function m(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/local/cate",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:e})}},dff6:function(e,i,t){}}]);
//# sourceMappingURL=chunk-b4915312.bc882284.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-b4915312.bc882284.js.map
=======
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4915312"],{3746:function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"fill-store-inf"},[t("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"注册账号"}}),e._v(" "),t("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),t("div",{staticClass:"main-con"},[t("el-form",{ref:"mainForm",staticClass:"main-form-con",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px",size:"small"}},[t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业资质信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"营业执照:",prop:"license"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{"padding-right":"6px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.licenseImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.licenseImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(i){e.dialogVisible=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小在2MB以内,支持png,jpg格式,最多可上传1张")]),t("br"),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("请确保营业执照在有效期内")])])])]),e._v(" "),t("el-form-item",{attrs:{label:"企业名称:",prop:"organization_name","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_name,callback:function(i){e.$set(e.mainForm,"organization_name",i)},expression:"mainForm.organization_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"统一社会代码:",prop:"license_number","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.license_number,callback:function(i){e.$set(e.mainForm,"license_number",i)},expression:"mainForm.license_number"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.periodLongTermChange},model:{value:e.periodConcreteTime,callback:function(i){e.periodConcreteTime=i},expression:"periodConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},attrs:{disabled:e.isPeriodDisabled},on:{change:e.periodConcreteChange},model:{value:e.periodLongTermVal,callback:function(i){e.periodLongTermVal=i},expression:"periodLongTermVal"}},[e._v("长期\n ")]),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("具体时间和长期,二者必填一个")])],1),e._v(" "),t("el-form-item",{attrs:{label:"企业地址:",prop:"organization_address","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_address,callback:function(i){e.$set(e.mainForm,"organization_address",i)},expression:"mainForm.organization_address"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整地址填写")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对营业执照信息,若信息不符合,可手动修改")])]),e._v(" "),t("el-divider"),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业法人信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"法人身份证:",prop:"idcard_front"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardPositive,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.idcardImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(i){e.dialogVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardBackImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"file-list":e.idcardBackImgFileList,"before-upload":e.beforeUpImg,"on-preview":e.handleBackPictureCardPreview2,"on-remove":e.handleBackRemove2,"http-request":e.uploadIdcardBack}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogBackVisible2},on:{"update:visible":function(i){e.dialogBackVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogBackImageUrl2,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("请按顺序分别上传正面(照片面)和反面(国徽面)电子版图片,文件大小在 2MB以内,支持png,jpg格式,最多可上传2张")])])]),e._v(" "),t("div",{staticClass:"idcard-tips-con"},[t("p",[e._v("请上传身份证正面")]),e._v(" "),t("p",[e._v("请上传身份证国徽面")])])]),e._v(" "),t("el-form-item",{attrs:{label:"法定姓名:",prop:"real_name"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.real_name,callback:function(i){e.$set(e.mainForm,"real_name",i)},expression:"mainForm.real_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的法人填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"法定代表人证件号:",prop:"idcard_number"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.idcard_number,callback:function(i){e.$set(e.mainForm,"idcard_number",i)},expression:"mainForm.idcard_number"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"有效期至:",prop:"idcard_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},on:{change:e.validityConcreteTimeChange},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTermValChange},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对企业法人信息,若信息不符合,可手动修改")])]),e._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary"},on:{click:function(i){return e.next("mainForm")}}},[e._v("下一步")])],1)])],1)],1)]),e._v(" "),t("el-dialog",{staticClass:"read-fail-dialog",attrs:{title:"提示",visible:e.isReadFailVisible,width:"600px",center:"","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.isReadFailVisible=i}}},[t("p",[e._v("未能识别有效信息,请重新上传正确的图片或者手动输入相关信息")]),e._v(" "),t("p",[e._v("该弹窗"),t("span",{staticClass:"read-time-m"},[e._v(e._s(e.readTime))]),e._v("S后自动关闭,无需手动关闭")])])],1)},r=[],s=(t("ac6a"),t("a481"),t("28a5"),t("6b1f")),n=t("ed08"),l={name:"FillMainInf",data:function(){var e=this,i=function(i,t,a){e.licenseImgFileList.length>0?a():0===e.licenseImgFileList.length&&a(new Error("营业执照图片至少上传一张"))},t=function(i,t,a){e.idcardImgFileList.length>0?a():0===e.idcardImgFileList.length&&a(new Error("法人证件照图片至少上传一张"))},a=function(e,i,t){var a=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;a.test(i)?t():t(new Error("法人证件号格式有误"))},r=function(i,t,a){0!=e.periodConcreteTime.length&&e.periodConcreteTime||!1!==e.periodLongTermVal?a():a(new Error("营业期限具体时间和长期必须填写其中一个"))},s=function(i,t,a){0!=e.validityConcreteTime.length&&e.validityConcreteTime||!1!==e.validityLongTermVal?a():a(new Error("有效期具体时间和长期必须填写其中一个"))};return{licenseImgFileList:[],idcardImgFileList:[],idcardBackImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogBackImageUrl2:"",dialogBackVisible2:!1,periodConcreteTime:[],periodLongTermVal:!1,validityConcreteTime:[],validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,submitTime:[],mainForm:{license:"",organization_name:"",license_number:"",organization_address:"",idcard_front:"",idcard_back:"",real_name:"",idcard_number:"",idcard_start_time:"",idcard_expires_time:"",license_expires_time:"",license_start_time:""},hasLicense:!1,mainRules:{license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],license_number:[{required:!0,message:"统一社会代码不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"企业地址不能为空",trigger:"blur"}],real_name:[{required:!0,message:"法人姓名不能为空",trigger:"blur"}],idcard_number:[{required:!0,message:"法人证件号不能为空",trigger:"blur"},{required:!0,message:"法人证件号码格式有误",validator:a,trigger:"blur"}],idcard_front:[{required:!0,message:"请上传法人证件电子版图片",validator:t}],license_expires_time:[{validator:r,required:!0,trigger:"change"}],idcard_expires_time:[{validator:s,required:!0,trigger:"change"}]},readTime:5,isReadFailVisible:!1,TIMER:null}},created:function(){var e=this;Object(s["g"])().then((function(i){if(1==i.code&&i.data.user){var t=!1;0==i.data.user.state?t=1==i.data.user.status:1!=i.data.user.state&&2!=i.data.user.state&&3!=i.data.user.state||(t=!0),t&&e.getMain()}}))},destroyed:function(){clearInterval(this.TIMER),this.TIMER=null},mounted:function(){},methods:{periodLongTermChange:function(){Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.periodLongTermVal=!1)},periodConcreteChange:function(){this.periodLongTermVal&&(this.periodConcreteTime=[])},validityConcreteTimeChange:function(){Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.validityLongTermVal=!1)},validityLongTermValChange:function(){this.validityLongTermVal&&(this.validityConcreteTime=[])},beforeUpImg:function(e){if("image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type)return this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1},uploadLicenseImages:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.licenseImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("license"),i.readLicenseImgInfo(i.licenseImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,i){for(var t=0;t<this.licenseImgFileList.length;t++)e.uid===this.licenseImgFileList[t].uid&&this.licenseImgFileList.splice(t,1)},readLicenseImgInfo:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["h"])(t).then((function(e){if(1==e.code)if(i.mainForm.organization_name=e.data.words_result["单位名称"].words?e.data.words_result["单位名称"].words:"",i.mainForm.license_number=e.data.words_result["社会信用代码"].words?e.data.words_result["社会信用代码"].words:"",i.mainForm.organization_address=e.data.words_result["地址"].words?e.data.words_result["地址"].words:"","长期"==e.data.words_result["有效期"].words||"年月日"==e.data.words_result["有效期"].words)i.periodConcreteTime=[],i.periodLongTermVal=!0;else{var t=e.data.words_result["成立日期"].words?e.data.words_result["成立日期"].words:"",a=e.data.words_result["有效期"].words,r=t.replace(/年|月|日/g,"-").substr(0,t.length-1),s=a.replace(/年|月|日/g,"-").substr(0,a.length-1);i.periodConcreteTime=[],i.periodConcreteTime.push(r),i.periodConcreteTime.push(s),i.periodLongTermVal=!1}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},uploadIdcardPositive:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_front"),i.readIdcardPositive(i.idcardImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardPositive:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code){if(e.data.words_result)try{i.mainForm.real_name=e.data.words_result["姓名"].words?e.data.words_result["姓名"].words:"",i.mainForm.idcard_number=e.data.words_result["公民身份号码"].words?e.data.words_result["公民身份号码"].words:""}catch(t){i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,i){for(var t=0;t<this.idcardImgFileList.length;t++)e.uid===this.idcardImgFileList[t].uid&&this.idcardImgFileList.splice(t,1)},uploadIdcardBack:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardBackImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_back"),i.readIdcardBack(i.idcardBackImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardBack:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code)if(e.data.words_result["签发日期"]&&e.data.words_result["失效日期"]){var t=e.data.words_result["签发日期"].words,a=e.data.words_result["失效日期"].words;if("长期"==a)i.validityConcreteTime=[],i.validityLongTermVal=!0;else{var r=/^(\d{4})(\d{2})(\d{2})$/,s=t.replace(r,"$1-$2-$3"),n=a.replace(r,"$1-$2-$3");i.validityConcreteTime=[],i.validityConcreteTime.push(s),i.validityConcreteTime.push(n),i.validityLongTermVal=!1}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3);else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handleBackPictureCardPreview2:function(e){this.dialogBackImageUrl2=e.url,this.dialogBackVisible2=!0},handleBackRemove2:function(e){for(var i=0;i<this.idcardBackImgFileList.length;i++)e.uid===this.idcardBackImgFileList[i].uid&&this.idcardBackImgFileList.splice(i,1)},getMain:function(){var e=this;Object(s["i"])().then((function(i){if(1==i.code){e.resetForm("mainForm"),e.mainForm=i.data;var t=[],a={};t=e.mainForm.license.split(","),t.length>0?t.forEach((function(i){a={},i&&(a.url=i,e.licenseImgFileList.push(a))})):e.licenseImgFileList=[];var r=[],s={};r=e.mainForm.idcard_front.split(","),r.length>0?r.forEach((function(i){s={},i&&(s.url=i,e.idcardImgFileList.push(s))})):e.idcardImgFileList=[];var n=[],l={};if(n=e.mainForm.idcard_back.split(","),n.length>0?n.forEach((function(i){l={},i&&(l.url=i,e.idcardBackImgFileList.push(l))})):e.idcardBackImgFileList=[],0==e.mainForm.license_expires_time)e.periodLongTermVal=!0,e.periodConcreteTime=[];else if(e.mainForm.license_expires_time>0){e.periodLongTermVal=!1,e.periodConcreteTime=[];var o=e.formatterTime(e.mainForm.license_start_time),d=e.formatterTime(e.mainForm.license_expires_time);e.periodConcreteTime.push(o),e.periodConcreteTime.push(d)}if(0==e.mainForm.idcard_expires_time)e.validityLongTermVal=!0,e.validityConcreteTime=[];else if(e.mainForm.idcard_expires_time>0){e.validityLongTermVal=!1,e.validityConcreteTime=[];var c=e.formatterTime(e.mainForm.idcard_start_time),m=e.formatterTime(e.mainForm.idcard_expires_time);e.validityConcreteTime.push(c),e.validityConcreteTime.push(m)}}else e.$message({type:"error",message:i.message?i.message:"获取主体信息失败"})}))},resetForm:function(e){this.periodConcreteTime=[],this.validityConcreteTime=[],this.$refs[e].resetFields()},getBase64:function(e){return new Promise((function(i,t){var a=new FileReader,r="";a.readAsDataURL(e),a.onload=function(){r=a.result},a.onerror=function(e){t(e)},a.onloadend=function(){i(r)}}))},formatterTime:function(e){return Object(n["c"])(1e3*e,"Y-m-d")},showTip2:function(){this.$message({message:"最多上传2张图片",type:"warning"})},showTip:function(){this.$message({message:"最多上传1张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?(this.mainForm.license_expires_time=0,this.mainForm.license_start_time=0):Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.mainForm.license_start_time=new Date(this.periodConcreteTime[0]).getTime()/1e3,this.mainForm.license_expires_time=new Date(this.periodConcreteTime[1]).getTime()/1e3),this.validityLongTermVal?(this.mainForm.idcard_expires_time=0,this.mainForm.idcard_start_time=0):Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.mainForm.idcard_start_time=new Date(this.validityConcreteTime[0]).getTime()/1e3,this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime[1]).getTime()/1e3),this.licenseImgFileList.length>0)for(var t=0;t<this.licenseImgFileList.length;t++)0===t?this.mainForm.license=this.licenseImgFileList[t].url:this.mainForm.license+=","+this.licenseImgFileList[t].url;if(this.idcardImgFileList.length>0)for(var a=0;a<this.idcardImgFileList.length;a++)0===a?this.mainForm.idcard_front=this.idcardImgFileList[a].url:this.mainForm.idcard_front+=","+this.idcardImgFileList[a].url;if(this.idcardBackImgFileList.length>0)for(var r=0;r<this.idcardBackImgFileList.length;r++)0===r?this.mainForm.idcard_back=this.idcardBackImgFileList[r].url:this.mainForm.idcard_back+=","+this.idcardBackImgFileList[r].url;this.$refs[e].validate((function(e){e&&Object(s["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillShopInf"):i.$message({type:"error",message:e.message?e.message:"保存失败"})}))}))}}},o=l,d=(t("69b5"),t("2877")),c=Object(d["a"])(o,a,r,!1,null,"2b9ff0be",null);i["default"]=c.exports},"69b5":function(e,i,t){"use strict";t("dff6")},"6b1f":function(e,i,t){"use strict";t.d(i,"g",(function(){return r})),t.d(i,"i",(function(){return s})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return l})),t.d(i,"a",(function(){return o})),t.d(i,"l",(function(){return d})),t.d(i,"j",(function(){return c})),t.d(i,"c",(function(){return m})),t.d(i,"m",(function(){return u})),t.d(i,"e",(function(){return g})),t.d(i,"h",(function(){return p})),t.d(i,"f",(function(){return h})),t.d(i,"k",(function(){return f}));var a=t("b775");function r(e){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/local/organization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function m(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/local/cate",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:e})}},dff6:function(e,i,t){}}]);
>>>>>>> fix-m-postage-tips:dist/static/js/chunk-b4915312.12278afc.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f18f73fa"],{"5a97":function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"i",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"f",(function(){return i})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"h",(function(){return m}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/goodsNew/list",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/system/goodsNew/shelvesStatus",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/system/goodsNew/goodsStatus",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/system/goodsNew/info",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/system/goodsNew/businessList",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/system/goodsNew/collect",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/system/goodsNew/cancelOnsale",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/system/goodsNew/cancelOnsaleAll",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/system/goodsNew/onsaleUpdate",method:"post",data:t})}},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"i",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"l",(function(){return i})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return m})),n.d(e,"e",(function(){return f})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"k",(function(){return g}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function h(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},"9c36":function(t,e,n){},e3b2:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t._v("商品导入")]),t._v(" "),n("h3",{staticClass:"cton_h3"},[t._v("剩余次数:"+t._s(t.collect_num)+" / 1000次")]),t._v(" "),n("div",{staticClass:"cton_text"},[n("p",[t._v("功能介绍:")]),t._v(" "),n("p",[t._v("\n 商品导入是为了商家快速、方便地将其它平台上已有的商品,一键导入到您的云仓平台,不再用手动输入编写商品信息\n ")]),t._v(" "),n("p",[t._v("使用方法:")]),t._v(" "),n("p",[t._v("\n 复制其它电商平台的商品链接,粘贴至商品链接输入框内,为该商品选择对应的商品分类,选择完成后点击立即获取按钮即可\n ")]),t._v(" "),n("p",[t._v("示例:")]),t._v(" "),n("p",[t._v("京东商品链接如:https://item.jd.com/10684560542.html")]),t._v(" "),n("p",[t._v("温馨提示:")]),t._v(" "),n("p",[t._v("商品在获取过程中,请不要进行其它操作")]),t._v(" "),n("p",[t._v("\n 商品抓取后,默认放入到下架商品中,请手动修改商品相关信息,再提交申请上架\n ")]),t._v(" "),n("p",[t._v("请确保不要将多个平台的商品链接混合输入")]),t._v(" "),n("p",[t._v("每个用户默认拥有1000次商品导入的机会,请慎重使用")])]),t._v(" "),n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"180px"}},[n("el-form-item",{attrs:{label:"商品链接:"}},[n("el-input",{staticStyle:{width:"700px"},attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入其它平台商品的链接,单次最多允许输入10条链接,以英文逗号隔开"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商品分类:"}},[t.el_valuestatus?n("el-cascader",{ref:"cascaderDom",staticStyle:{width:"350px"},attrs:{props:t.props,options:t.options,placeholder:"请选择"},on:{change:t.elvalueclick},model:{value:t.el_value,callback:function(e){t.el_value=e},expression:"el_value"}}):t._e()],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即导入")])],1)],1)],1)],1)},r=[],o=(n("6b54"),n("c5f6"),n("28a5"),n("5c96"),n("6b1f")),s=n("5a97"),c=(n("ed08"),{name:"freight",data:function(){return{collect_num:0,form:{desc:""},el_valuestatus:!0,el_value:[],options:[],props:{checkStrictly:!1,expandTrigger:"click",emitPath:!0,value:"id",label:"label"}}},components:{},created:function(){this.getData(),this.info()},watch:{},methods:{info:function(){var t=this;Object(o["j"])().then((function(e){1==e.code&&(t.collect_num=e.data.collect_num)}))},onSubmit:function(){var t=this;if(this.collect_num<=0)this.$message({type:"warning",message:"您好,您的导入次数已用完,请您联系我们的工作人员操作充值"});else{var e;if(!this.form.desc)return this.$message.error("请填写需要导入的商品链接!"),!1;if(e=this.form.desc.split(","),!(e.length>0&&e.length<=10))return e.length>10?(this.$message({message:"您单次输入的链接数量超过10条!",type:"warning"}),!1):(this.$message.error("请填写需要导入的商品链接!"),!1);if(Number(e.length)>Number(this.collect_num))this.$message({type:"warning",message:"您好,准备导入的商品条数过多,当前剩余次数不足,请重新输入"});else{if(3!=this.el_value.length)return this.$message.error("请选择商品分类!"),!1;var n={category_id:this.el_value[2],third_url:e};Object(s["f"])(n).then((function(n){var a=0,r=Number(e.length),o="";1===n.code?(1===r?1===Number(n.data)?t.$message({type:"success",message:"您好,商品已导入成功,请在仓库中进行编辑后申请上架"}):t.$message({type:"error",message:"您好,商品导入失败,请您重新导入"}):r>1&&(a=Number(n.data),o="您好,一共导入"+r+"条商品,"+a+"条导入成功,请在仓库中进行编辑后申请上架",t.$message({type:"warning",message:o})),t.el_value=[],t.$refs.cascaderDom.$refs.panel.activePath=[],t.form.desc=""):(o=n.message?n.message:"导入失败",t.$message({type:"error",message:o})),t.info()}))}}},add:function(t,e){var n,a,r,o;try{n=t.toString().split(".")[1].length,a=e.toString().split(".")[1].length}catch(s){n=0,a=0}return r=Math.pow(10,Math.max(n,a)),o=(t*r+e*r)/r,o=o.toFixed(2),o},minus:function(t,e){return this.add(t,-e)},elvalueclick:function(){},getData:function(){var t=this;Object(s["g"])().then((function(e){1==e.code&&(t.options=e.data)}))}}}),u=c,i=(n("fe8e"),n("2877")),l=Object(i["a"])(u,a,r,!1,null,"9269e492",null);e["default"]=l.exports},fe8e:function(t,e,n){"use strict";n("9c36")}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -127,7 +127,7 @@
>
</el-form>
<el-dialog title="选择不配送省" :visible.sync="dialogVisible" width="30%" append-to-body
<el-dialog :title="isPostageTitle" :visible.sync="dialogVisible" width="30%" append-to-body
:close-on-click-modal="false" center >
<div>
<el-checkbox-group v-model="checkList" class="spe-checkbox-group-con">
......@@ -200,6 +200,7 @@ export default {
checkList: [], //当前选择
disabledate: [], //不能选择
dialogVisible: false,
isPostageTitle: '',
goodsDate: {
id:0,
sort: 0,
......@@ -246,10 +247,17 @@ export default {
},
/** 选择 配送区域
* i= 1 ,操作是不配送区域
* i=0,配送区域;i= 1,是不配送区域
* */
opendias(type, i, index) {
// 处理不配送区域
this.isPostageTitle = ''
if (i == 0) {
this.isPostageTitle = '选择配送区域'
}
if (i == 1) {
this.isPostageTitle = '选择不配送区域'
}
// 初始化 已经勾选的区域(包含,不配送 和 配送的)
this.disabledate = [];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论