提交 660f2894 authored 作者: huaxinzhu's avatar huaxinzhu

打包测试

上级 fbeb7628
No preview for this file type
......@@ -181,7 +181,7 @@
font-size: 13px;
color: #FFF;
opacity: 0.5;
}</style><link href=/static/css/chunk-libs.144811ca.css rel=stylesheet><link href=/static/css/app.62dc0ccb.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],d=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 d)Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]);k&&k(n);while(i.length)i.shift()();return f.push.apply(f,o||[]),c()}function c(){for(var e,n=0;n<f.length;n++){for(var c=f[n],t=!0,u=1;u<c.length;u++){var a=c[u];0!==r[a]&&(t=!1)}t&&(f.splice(n--,1),e=d(d.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},f=[];function a(e){return d.p+"static/js/"+({}[e]||e)+"."+{"chunk-0a90d205":"0189bbe0","chunk-1e735e58":"ec23e7c9","chunk-2bb94dd1":"59879535","chunk-2d0c7ece":"6e0c231b","chunk-2d0c84d3":"cdf8b2d0","chunk-0b4a9e9a":"82347d9f","chunk-2d0e28b6":"b5c279ef","chunk-47c51416":"42d1d71b","chunk-2d0d6345":"e4d18775","chunk-2d0e2366":"13651a23","chunk-dcbd9598":"e08d12d9","chunk-68d5bf9e":"05315b0a","chunk-2d0d67a2":"2a791f8c","chunk-08486bce":"a6625ee5","chunk-2d0f012d":"c5cdd7ec","chunk-2f2393fa":"ea5c9cee","chunk-3fa655f3":"c016b9eb","chunk-25c3b3a2":"42186f8b","chunk-5f18f729":"565ed286","chunk-6c237b40":"54fd57df","chunk-727a03af":"846b7e08","chunk-792fc926":"e9e04949","chunk-7c2f4fe6":"33c37f8e","chunk-c655b3a8":"3995a87d","chunk-f18f73fa":"4162e24b"}[e]+".js"}function d(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,d),c.l=!0,c.exports}d.e=function(e){var n=[],c={"chunk-0a90d205":1,"chunk-1e735e58":1,"chunk-2bb94dd1":1,"chunk-dcbd9598":1,"chunk-68d5bf9e":1,"chunk-2f2393fa":1,"chunk-3fa655f3":1,"chunk-25c3b3a2":1,"chunk-5f18f729":1,"chunk-6c237b40":1,"chunk-727a03af":1,"chunk-792fc926":1,"chunk-c655b3a8":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-1e735e58":"854b22f7","chunk-2bb94dd1":"08f68e23","chunk-2d0c7ece":"31d6cfe0","chunk-2d0c84d3":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-2d0e28b6":"31d6cfe0","chunk-47c51416":"31d6cfe0","chunk-2d0d6345":"31d6cfe0","chunk-2d0e2366":"31d6cfe0","chunk-dcbd9598":"2fc0dad0","chunk-68d5bf9e":"3c72d4e5","chunk-2d0d67a2":"31d6cfe0","chunk-08486bce":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2f2393fa":"ca8aeaeb","chunk-3fa655f3":"0276f1eb","chunk-25c3b3a2":"55ffd948","chunk-5f18f729":"c9a455ad","chunk-6c237b40":"fe6be668","chunk-727a03af":"06132cc6","chunk-792fc926":"5818f70b","chunk-7c2f4fe6":"31d6cfe0","chunk-c655b3a8":"75799628","chunk-f18f73fa":"0615606c"}[e]+".css",r=d.p+t,f=document.getElementsByTagName("link"),a=0;a<f.length;a++){var o=f[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,f=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");f.request=t,delete u[e],k.parentNode.removeChild(k),c(f)},k.href=r;var l=document.getElementsByTagName("head")[0];l.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var f=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=f);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,d.nc&&h.setAttribute("nonce",d.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,f=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");f.type=t,f.request=u,c[1](f)}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)},d.m=e,d.c=t,d.d=function(e,n,c){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(d.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)d.d(c,t,function(n){return e[n]}.bind(null,t));return c},d.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="/",d.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.88ca490a.js></script></body><script>window.onload = function() {
}</style><link href=/static/css/chunk-libs.144811ca.css rel=stylesheet><link href=/static/css/app.62dc0ccb.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,f=n[0],d=n[1],o=n[2],h=0,i=[];h<f.length;h++)u=f[h],r[u]&&i.push(r[u][0]),r[u]=0;for(t in d)Object.prototype.hasOwnProperty.call(d,t)&&(e[t]=d[t]);k&&k(n);while(i.length)i.shift()();return a.push.apply(a,o||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],t=!0,u=1;u<c.length;u++){var f=c[u];0!==r[f]&&(t=!1)}t&&(a.splice(n--,1),e=d(d.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},a=[];function f(e){return d.p+"static/js/"+({}[e]||e)+"."+{"chunk-0a90d205":"0189bbe0","chunk-1e735e58":"ec23e7c9","chunk-2d0c7ece":"6e0c231b","chunk-2d0c84d3":"cdf8b2d0","chunk-0b4a9e9a":"82347d9f","chunk-2d0e28b6":"b5c279ef","chunk-47c51416":"42d1d71b","chunk-2d0d6345":"e4d18775","chunk-2d0e2366":"13651a23","chunk-ad7b25a2":"72e154ee","chunk-68d5bf9e":"05315b0a","chunk-2d0d67a2":"2a791f8c","chunk-08486bce":"a6625ee5","chunk-2d0f012d":"c5cdd7ec","chunk-2f2393fa":"ea5c9cee","chunk-25c3b3a2":"42186f8b","chunk-5f18f729":"565ed286","chunk-6b92f9cd":"03796aea","chunk-6c237b40":"54fd57df","chunk-727a03af":"846b7e08","chunk-78e7b944":"abc3f175","chunk-792fc926":"e9e04949","chunk-7c2f4fe6":"33c37f8e","chunk-d563c6a8":"6cb5ae95","chunk-f18f73fa":"4162e24b"}[e]+".js"}function d(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,d),c.l=!0,c.exports}d.e=function(e){var n=[],c={"chunk-0a90d205":1,"chunk-1e735e58":1,"chunk-ad7b25a2":1,"chunk-68d5bf9e":1,"chunk-2f2393fa":1,"chunk-25c3b3a2":1,"chunk-5f18f729":1,"chunk-6b92f9cd":1,"chunk-6c237b40":1,"chunk-727a03af":1,"chunk-78e7b944":1,"chunk-792fc926":1,"chunk-d563c6a8":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-1e735e58":"854b22f7","chunk-2d0c7ece":"31d6cfe0","chunk-2d0c84d3":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-2d0e28b6":"31d6cfe0","chunk-47c51416":"31d6cfe0","chunk-2d0d6345":"31d6cfe0","chunk-2d0e2366":"31d6cfe0","chunk-ad7b25a2":"f5a2a79b","chunk-68d5bf9e":"3c72d4e5","chunk-2d0d67a2":"31d6cfe0","chunk-08486bce":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2f2393fa":"ca8aeaeb","chunk-25c3b3a2":"55ffd948","chunk-5f18f729":"c9a455ad","chunk-6b92f9cd":"35744973","chunk-6c237b40":"fe6be668","chunk-727a03af":"06132cc6","chunk-78e7b944":"ef8037a3","chunk-792fc926":"5818f70b","chunk-7c2f4fe6":"31d6cfe0","chunk-d563c6a8":"77012854","chunk-f18f73fa":"0615606c"}[e]+".css",r=d.p+t,a=document.getElementsByTagName("link"),f=0;f<a.length;f++){var o=a[f],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===r))return n()}var i=document.getElementsByTagName("style");for(f=0;f<i.length;f++){o=i[f],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,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.request=t,delete u[e],k.parentNode.removeChild(k),c(a)},k.href=r;var l=document.getElementsByTagName("head")[0];l.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=a);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,d.nc&&h.setAttribute("nonce",d.nc),h.src=f(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,a=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");a.type=t,a.request=u,c[1](a)}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)},d.m=e,d.c=t,d.d=function(e,n,c){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(d.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)d.d(c,t,function(n){return e[n]}.bind(null,t));return c},d.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="/",d.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.35a05b52.js></script></body><script>window.onload = function() {
var op = 'open'
var ssa = window.location.host
var xhttp = new XMLHttpRequest();
......
.fill-store-inf[data-v-669fb180]{width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}.fill-store-inf .box-card[data-v-669fb180]{width:80%;margin:30px auto 30px;height:calc(100% - 120px)}.fill-store-inf .box-card[data-v-669fb180] .el-card__body{height:calc(100% - 120px);overflow-x:hidden;overflow-y:scroll}.logo-bg[data-v-669fb180]{height:60px;background:#1890ff}.logo-bg img[data-v-669fb180]{height:44px;margin:8px 0 8px 20px}.steps[data-v-669fb180]{height:70px;width:60%;margin:20px auto}.steps[data-v-669fb180] .el-step__title{font-size:16px;line-height:18px;padding-top:20px}.el-step[data-v-669fb180] .el-step__head.is-process{color:#1890ff;border-color:#1890ff}.el-step[data-v-669fb180] .el-step__head.is-process .el-step__icon.is-text{background-color:#1890ff}.el-step[data-v-669fb180] .el-step__head.is-process .el-step__icon.is-text .el-step__icon-inner{color:#fff}.el-step[data-v-669fb180] .el-step__title.is-process{color:#000;font-weight:400}.el-step[data-v-669fb180] .el-step__head.is-success{color:#1890ff;border-color:#1890ff}.el-step[data-v-669fb180] .el-step__head.is-success .el-step__line{background-color:#1890ff}.el-step[data-v-669fb180] .el-step__title.is-success{color:#000}.main-con[data-v-669fb180]{width:70%;margin:30px auto 50px;overflow-y:scroll}.main-con .tips-text[data-v-669fb180]{font-size:14px;color:#c9c9c9;word-break:break-all}.main-con .h-warning[data-v-669fb180]:before{color:#e3c300}.main-con .uploadData[data-v-669fb180]{display:inline-block}.main-con .uploadData[data-v-669fb180] .el-upload--picture-card{width:100px;height:100px}.main-con .uploadData[data-v-669fb180] .el-upload,.main-con .uploadData[data-v-669fb180] .el-upload-list--picture-card .el-upload-list__item,.main-con .uploadData[data-v-669fb180] .el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100px;height:100px;line-height:100px}.main-con .uploadData[data-v-669fb180] .avatar{width:100px;height:100px}.confirm-btn[data-v-669fb180]{width:50%;margin:0 auto}.confirm-btn p[data-v-669fb180]{text-align:center}
\ No newline at end of file
.fill-store-inf[data-v-773f1273]{width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}.fill-store-inf .box-card[data-v-773f1273]{width:80%;margin:30px auto 30px;height:calc(100% - 120px)}.fill-store-inf .box-card[data-v-773f1273] .el-card__body{height:calc(100% - 120px);overflow-x:hidden;overflow-y:scroll}.logo-bg[data-v-773f1273]{height:60px;background:#1890ff}.logo-bg img[data-v-773f1273]{height:44px;margin:8px 0 8px 20px}.steps[data-v-773f1273]{height:70px;width:60%;margin:20px auto}.steps[data-v-773f1273] .el-step__title{font-size:16px;line-height:18px;padding-top:20px}.el-step[data-v-773f1273] .el-step__head.is-process{color:#1890ff;border-color:#1890ff}.el-step[data-v-773f1273] .el-step__head.is-process .el-step__icon.is-text{background-color:#1890ff}.el-step[data-v-773f1273] .el-step__head.is-process .el-step__icon.is-text .el-step__icon-inner{color:#fff}.el-step[data-v-773f1273] .el-step__title.is-process{color:#000;font-weight:400}.el-step[data-v-773f1273] .el-step__head.is-success{color:#1890ff;border-color:#1890ff}.el-step[data-v-773f1273] .el-step__head.is-success .el-step__line{background-color:#1890ff}.el-step[data-v-773f1273] .el-step__title.is-success{color:#000}.main-con[data-v-773f1273]{width:70%;margin:20px auto 0;overflow-y:scroll}.main-con .tips-text[data-v-773f1273]{font-size:14px;color:#c9c9c9;word-break:break-all}.main-con .h-warning[data-v-773f1273]:before{color:#e3c300}.main-con .uploadData[data-v-773f1273]{display:inline-block}.main-con .uploadData[data-v-773f1273] .el-upload--picture-card{width:100px;height:100px}.main-con .uploadData[data-v-773f1273] .el-upload,.main-con .uploadData[data-v-773f1273] .el-upload-list--picture-card .el-upload-list__item,.main-con .uploadData[data-v-773f1273] .el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100px;height:100px;line-height:100px}.main-con .uploadData[data-v-773f1273] .avatar{width:100px;height:100px}
\ No newline at end of file
.fill-store-inf[data-v-ea67f3ee]{width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}.fill-store-inf .box-card[data-v-ea67f3ee]{width:80%;margin:30px auto 30px;height:calc(100% - 120px)}.fill-store-inf .box-card[data-v-ea67f3ee] .el-card__body{height:calc(100% - 120px);overflow-x:hidden;overflow-y:scroll}.logo-bg[data-v-ea67f3ee]{height:60px;background:#1890ff}.logo-bg img[data-v-ea67f3ee]{height:44px;margin:8px 0 8px 20px}.steps[data-v-ea67f3ee]{height:70px;width:60%;margin:20px auto}.steps[data-v-ea67f3ee] .el-step__title{font-size:16px;line-height:18px;padding-top:20px}.el-step[data-v-ea67f3ee] .el-step__head.is-process{color:#1890ff;border-color:#1890ff}.el-step[data-v-ea67f3ee] .el-step__head.is-process .el-step__icon.is-text{background-color:#1890ff}.el-step[data-v-ea67f3ee] .el-step__head.is-process .el-step__icon.is-text .el-step__icon-inner{color:#fff}.el-step[data-v-ea67f3ee] .el-step__title.is-process{color:#000;font-weight:400}.el-step[data-v-ea67f3ee] .el-step__head.is-success{color:#1890ff;border-color:#1890ff}.el-step[data-v-ea67f3ee] .el-step__head.is-success .el-step__line{background-color:#1890ff}.el-step[data-v-ea67f3ee] .el-step__title.is-success{color:#000}.main-con[data-v-ea67f3ee]{width:70%;margin:20px auto 0;overflow-y:scroll}.main-con .tips-text[data-v-ea67f3ee]{font-size:14px;color:#c9c9c9;word-break:break-all}.main-con .h-warning[data-v-ea67f3ee]:before{color:#e3c300}.main-con .uploadData[data-v-ea67f3ee]{display:inline-block}.main-con .uploadData[data-v-ea67f3ee] .el-upload--picture-card{width:100px;height:100px}.main-con .uploadData[data-v-ea67f3ee] .el-upload,.main-con .uploadData[data-v-ea67f3ee] .el-upload-list--picture-card .el-upload-list__item,.main-con .uploadData[data-v-ea67f3ee] .el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100px;height:100px;line-height:100px}.main-con .uploadData[data-v-ea67f3ee] .avatar{width:100px;height:100px}
\ No newline at end of file
.fill-store-inf[data-v-18d64163]{width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}.fill-store-inf .box-card[data-v-18d64163]{width:80%;margin:30px auto 30px;height:calc(100% - 120px)}.fill-store-inf .box-card[data-v-18d64163] .el-card__body{height:calc(100% - 120px);overflow-x:hidden;overflow-y:scroll}.logo-bg[data-v-18d64163]{height:60px;background:#1890ff}.logo-bg img[data-v-18d64163]{height:44px;margin:8px 0 8px 20px}.steps[data-v-18d64163]{height:70px;width:60%;margin:20px auto}.steps[data-v-18d64163] .el-step__title{font-size:16px;line-height:18px;padding-top:20px}.el-step[data-v-18d64163] .el-step__head.is-process{color:#1890ff;border-color:#1890ff}.el-step[data-v-18d64163] .el-step__head.is-process .el-step__icon.is-text{background-color:#1890ff}.el-step[data-v-18d64163] .el-step__head.is-process .el-step__icon.is-text .el-step__icon-inner{color:#fff}.el-step[data-v-18d64163] .el-step__title.is-process{color:#000;font-weight:400}.el-step[data-v-18d64163] .el-step__head.is-success{color:#1890ff;border-color:#1890ff}.el-step[data-v-18d64163] .el-step__head.is-success .el-step__line{background-color:#1890ff}.el-step[data-v-18d64163] .el-step__title.is-success{color:#000}.main-con[data-v-18d64163]{width:70%;margin:30px auto 50px;overflow-y:scroll}.main-con .tips-text[data-v-18d64163]{font-size:14px;color:#c9c9c9;word-break:break-all}.main-con .h-warning[data-v-18d64163]:before{color:#e3c300}.main-con .uploadData[data-v-18d64163]{display:inline-block}.main-con .uploadData[data-v-18d64163] .el-upload--picture-card{width:100px;height:100px}.main-con .uploadData[data-v-18d64163] .el-upload,.main-con .uploadData[data-v-18d64163] .el-upload-list--picture-card .el-upload-list__item,.main-con .uploadData[data-v-18d64163] .el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100px;height:100px;line-height:100px}.main-con .uploadData[data-v-18d64163] .avatar{width:100px;height:100px}.confirm-btn[data-v-18d64163]{width:50%;margin:0 auto}.confirm-btn p[data-v-18d64163]{text-align:center}
\ No newline at end of file
.fill-brand-inf[data-v-e5db499a]{width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}.fill-brand-inf .box-card[data-v-e5db499a]{width:80%;margin:30px auto 30px;height:calc(100% - 120px)}.fill-brand-inf .box-card[data-v-e5db499a] .el-card__body{height:calc(100% - 120px);overflow-x:hidden;overflow-y:scroll}.fill-brand-inf .logo-bg[data-v-e5db499a]{height:60px;background:#1890ff}.fill-brand-inf .logo-bg img[data-v-e5db499a]{height:44px;margin:8px 0 8px 20px}.fill-brand-inf .spe-brand-text[data-v-e5db499a]{width:100%;height:50px;line-height:50px;margin:15px 0 15px 30px;font-size:18px;font-family:Microsoft YaHei;font-weight:700;color:#333;background-color:#fafafa}.steps[data-v-e5db499a]{height:70px;width:60%;margin:20px auto}.steps[data-v-e5db499a] .el-step__title{font-size:16px;line-height:18px;padding-top:20px}.el-step[data-v-e5db499a] .el-step__head.is-process{color:#1890ff;border-color:#1890ff}.el-step[data-v-e5db499a] .el-step__head.is-process .el-step__icon.is-text{background-color:#1890ff}.el-step[data-v-e5db499a] .el-step__head.is-process .el-step__icon.is-text .el-step__icon-inner{color:#fff}.el-step[data-v-e5db499a] .el-step__title.is-process{color:#000;font-weight:400}.el-step[data-v-e5db499a] .el-step__head.is-success{color:#1890ff;border-color:#1890ff}.el-step[data-v-e5db499a] .el-step__head.is-success .el-step__line{background-color:#1890ff}.el-step[data-v-e5db499a] .el-step__title.is-success{color:#000}.main-con[data-v-e5db499a]{width:70%;margin:30px auto 50px;overflow-x:hidden;overflow-y:scroll}.main-con .tips-text[data-v-e5db499a]{font-size:14px;color:#c9c9c9;word-break:break-all}.main-con .h-warning[data-v-e5db499a]:before{color:#e3c300}.main-con .no-brand[data-v-e5db499a]{padding-left:60px}.main-con .no-brand p[data-v-e5db499a]{color:#333;font-size:14px;line-height:20px;padding:10px 80px 0}.main-con .no-brand .no-brand-btn[data-v-e5db499a]{padding-left:84px;padding-top:30px}.main-con .uploadData[data-v-e5db499a]{display:inline-block}.main-con .uploadData[data-v-e5db499a] .el-upload--picture-card{width:100px;height:100px}.main-con .uploadData[data-v-e5db499a] .el-upload,.main-con .uploadData[data-v-e5db499a] .el-upload-list--picture-card .el-upload-list__item,.main-con .uploadData[data-v-e5db499a] .el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100px;height:100px;line-height:100px}.main-con .uploadData[data-v-e5db499a] .avatar{width:100px;height:100px}.main-con .download-Template-btn[data-v-e5db499a]{width:145px;height:38px;line-height:38px;text-align:center;color:#1890ff;font-size:14px;border:1px solid #1890ff;border-radius:3px;cursor:pointer}.main-con .download-Template-btn[data-v-e5db499a]:hover{color:#fff;border:1px solid #1890ff;background-color:#1890ff}
\ No newline at end of file
.fill-brand-inf[data-v-3482731f]{width:100%;height:100%;overflow-x:hidden;overflow-y:scroll}.fill-brand-inf .box-card[data-v-3482731f]{width:80%;margin:30px auto 30px;height:calc(100% - 120px)}.fill-brand-inf .box-card[data-v-3482731f] .el-card__body{height:calc(100% - 120px);overflow-x:hidden;overflow-y:scroll}.fill-brand-inf .logo-bg[data-v-3482731f]{height:60px;background:#1890ff}.fill-brand-inf .logo-bg img[data-v-3482731f]{height:44px;margin:8px 0 8px 20px}.fill-brand-inf .spe-brand-text[data-v-3482731f]{width:100%;height:50px;line-height:50px;margin:15px 0 15px 30px;font-size:18px;font-family:Microsoft YaHei;font-weight:700;color:#333;background-color:#fafafa}.steps[data-v-3482731f]{height:70px;width:60%;margin:20px auto}.steps[data-v-3482731f] .el-step__title{font-size:16px;line-height:18px;padding-top:20px}.el-step[data-v-3482731f] .el-step__head.is-process{color:#1890ff;border-color:#1890ff}.el-step[data-v-3482731f] .el-step__head.is-process .el-step__icon.is-text{background-color:#1890ff}.el-step[data-v-3482731f] .el-step__head.is-process .el-step__icon.is-text .el-step__icon-inner{color:#fff}.el-step[data-v-3482731f] .el-step__title.is-process{color:#000;font-weight:400}.el-step[data-v-3482731f] .el-step__head.is-success{color:#1890ff;border-color:#1890ff}.el-step[data-v-3482731f] .el-step__head.is-success .el-step__line{background-color:#1890ff}.el-step[data-v-3482731f] .el-step__title.is-success{color:#000}.main-con[data-v-3482731f]{width:70%;margin:30px auto 50px;overflow-x:hidden;overflow-y:scroll}.main-con .tips-text[data-v-3482731f]{font-size:14px;color:#c9c9c9;word-break:break-all}.main-con .h-warning[data-v-3482731f]:before{color:#e3c300}.main-con .no-brand[data-v-3482731f]{padding-left:60px}.main-con .no-brand p[data-v-3482731f]{color:#333;font-size:14px;line-height:20px;padding:10px 80px 0}.main-con .no-brand .no-brand-btn[data-v-3482731f]{padding-left:84px;padding-top:30px}.main-con .uploadData[data-v-3482731f]{display:inline-block}.main-con .uploadData[data-v-3482731f] .el-upload--picture-card{width:100px;height:100px}.main-con .uploadData[data-v-3482731f] .el-upload,.main-con .uploadData[data-v-3482731f] .el-upload-list--picture-card .el-upload-list__item,.main-con .uploadData[data-v-3482731f] .el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100px;height:100px;line-height:100px}.main-con .uploadData[data-v-3482731f] .avatar{width:100px;height:100px}.main-con .download-Template-btn[data-v-3482731f]{width:145px;height:38px;line-height:38px;text-align:center;color:#1890ff;font-size:14px;border:1px solid #1890ff;border-radius:3px;cursor:pointer}.main-con .download-Template-btn[data-v-3482731f]:hover{color:#fff;border:1px solid #1890ff;background-color:#1890ff}
\ 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-2bb94dd1"],{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:0,"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",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px"}},[t("el-form-item",{attrs:{label:"主体类型:"}},[t("el-radio-group",{model:{value:e.mainForm.organization_type,callback:function(i){e.$set(e.mainForm,"organization_type",i)},expression:"mainForm.organization_type"}},[t("el-radio",{attrs:{label:1}},[e._v("企业/公司")]),e._v(" "),t("el-radio",{attrs:{label:2}},[e._v("个体工商户")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"执照类型:",prop:"license_type"}},[t("el-select",{staticStyle:{width:"400px"},attrs:{placeholder:"请选择..."},model:{value:e.mainForm.license_type,callback:function(i){e.$set(e.mainForm,"license_type",i)},expression:"mainForm.license_type"}},e._l(e.zzOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),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",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:2,"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格式,最多可上传2张")])])])]),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:"organization_address"}},[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",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期",disabled:e.isConcretePeriod},on:{change:e.periodConcrete},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.periodLongTerm},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:"idcard_type"}},[t("el-select",{staticStyle:{width:"400px"},attrs:{placeholder:"请选择..."},model:{value:e.mainForm.idcard_type,callback:function(i){e.$set(e.mainForm,"idcard_type",i)},expression:"mainForm.idcard_type"}},e._l(e.idcardTypeOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),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:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:e.validityConcrete},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTerm},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),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-right":"6px"}},[t("el-upload",{staticClass:"uploadData",attrs:{"list-type":"picture-card",action:"#",limit:2,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardImages,"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",[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:"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)])],1)},r=[],n=(t("28a5"),t("6b1f")),s={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){null===e.periodConcreteTime&&!1===e.periodLongTermVal?a(new Error("营业期限具体时间和长期必须填写其中一个")):a()},n=function(i,t,a){null===e.validityConcreteTime&&!1===e.validityLongTermVal?a(new Error("有效期具体时间和长期必须填写其中一个")):a()};return{licenseImgFileList:[],idcardImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,zzOptions:[{label:"多证合一营业执照(统一社会信用代码)",value:1},{label:"多证合一营业执照(非统一社会信用代码)",value:2}],idcardTypeOptions:[{label:"大陆身份证",value:1},{label:"护照",value:2},{label:"港奥台居民通行证",value:3},{label:"台湾居民通行证",value:4}],periodConcreteTime:null,periodLongTermVal:!1,validityConcreteTime:null,validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,mainForm:{organization_type:2,license_type:"",license:"",organization_name:"",organization_address:"",license_expires_time:"",idcard_type:"",real_name:"",idcard_number:"",idcard_expires_time:"",idcard_front:"",idcardback:"jiazhuangwshifanmian"},hasLicense:!1,mainRules:{license_type:[{required:!0,message:"营业执照类型不能为空",trigger:"change"}],license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"营业执照地址不能为空",trigger:"blur"}],idcard_type:[{required:!0,message:"证件类型不能为空",trigger:"change"}],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:n,required:!0,trigger:"change"}]}}},created:function(){this.getMain()},mounted:function(){},methods:{periodConcrete:function(){this.periodConcreteTime&&(this.periodLongTermVal=!1)},periodLongTerm:function(){this.periodLongTermVal&&(this.periodConcreteTime=null)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},beforeUpImg:function(e){var i=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):i?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},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(n["i"])(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.$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)},uploadIdcardImages: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(n["i"])(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.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},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)},getMain:function(){var e=this;Object(n["f"])().then((function(i){if(1===i.code){e.resetForm("mainForm"),e.mainForm=i.data,e.mainForm.idcardback="jzwsfm";var t={},a=[];if(e.mainForm.license.indexOf(",")>0){a=e.mainForm.license.split(",");for(var r=0;r<a.length;r++)t={},t.url=a[r],e.licenseImgFileList.push(t)}else t.url=e.mainForm.license,e.licenseImgFileList=[],e.licenseImgFileList.push(t);var n={},s=[];if(e.mainForm.idcard_front.indexOf(",")>0){s=e.mainForm.idcard_front.split(",");for(var l=0;l<s.length;l++)n={},n.url=s[l],e.idcardImgFileList.push(n)}else n.url=e.mainForm.idcard_front,e.idcardImgFileList=[],e.idcardImgFileList.push(n);0===e.mainForm.idcard_expires_time?e.validityLongTermVal=!0:e.validityConcreteTime=e.toStandTime(e.mainForm.idcard_expires_time),0===e.mainForm.license_expires_time?e.periodLongTermVal=!0:e.periodConcreteTime=e.toStandTime(e.mainForm.license_expires_time)}else e.$message({type:"error",message:i.message?i.message:""})}))},resetForm:function(e){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)}}))},toStandTime:function(e){var i=new Date(1e3*e),t=i.getFullYear()+"-",a=(i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1)+"-",r=(i.getDate()<10?"0"+i.getDate():i.getDate())+" ",n=(i.getHours()<10?"0"+i.getHours():i.getHours())+":",s=(i.getMinutes()<10?"0"+i.getMinutes():i.getMinutes())+":",l=i.getSeconds()<10?"0"+i.getSeconds():i.getSeconds();return t+a+r+n+s+l},showTip:function(e,i){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?this.mainForm.license_expires_time=this.periodLongTermVal-0-1:!1===this.periodLongTermVal&&this.periodConcreteTime?this.mainForm.license_expires_time=new Date(this.periodConcreteTime).getTime()/1e3:this.mainForm.license_expires_time="",this.validityLongTermVal?this.mainForm.idcard_expires_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime).getTime()/1e3:this.mainForm.idcard_expires_time="",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;this.$refs[e].validate((function(e){e&&Object(n["b"])(i.mainForm).then((function(e){1==e?i.$router.push("/fillBrandInf"):i.$message({type:"error",message:e.message?e.message:"操作失败"})}))}))}}},l=s,o=(t("4e6b"),t("2877")),d=Object(o["a"])(l,a,r,!1,null,"669fb180",null);i["default"]=d.exports},"4e6b":function(e,i,t){"use strict";t("b8da")},"6b1f":function(e,i,t){"use strict";t.d(i,"f",(function(){return r})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return s})),t.d(i,"a",(function(){return l})),t.d(i,"h",(function(){return o})),t.d(i,"g",(function(){return d})),t.d(i,"c",(function(){return c})),t.d(i,"i",(function(){return m})),t.d(i,"e",(function(){return g}));var a=t("b775");function r(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 s(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function c(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function m(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})}},b8da:function(e,i,t){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fa655f3"],{"6b1f":function(e,t,s){"use strict";s.d(t,"f",(function(){return o})),s.d(t,"b",(function(){return r})),s.d(t,"d",(function(){return a})),s.d(t,"a",(function(){return l})),s.d(t,"h",(function(){return n})),s.d(t,"g",(function(){return g})),s.d(t,"c",(function(){return u})),s.d(t,"i",(function(){return m})),s.d(t,"e",(function(){return c}));var i=s("b775");function o(e){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:e})}function r(e){return Object(i["a"])({url:"/local/organization",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/local/brands",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/local/upbrands",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:e})}function u(e){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/local/cate",method:"get",params:e})}},"759b":function(e,t,s){"use strict";s("fdf0")},ba53:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"fill-store-inf"},[s("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[s("el-steps",{attrs:{active:2,"align-center":"","finish-status":"success"}},[s("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写品牌信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),s("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),s("div",{staticClass:"main-con"},[s("el-form",{ref:"storeForm",attrs:{model:e.storeForm,rules:e.shopRules,"label-width":"180px"}},[s("el-form-item",{attrs:{label:"电商平台经验:",prop:"is_business_experience"}},[s("el-radio-group",{model:{value:e.storeForm.is_business_experience,callback:function(t){e.$set(e.storeForm,"is_business_experience",t)},expression:"storeForm.is_business_experience"}},[s("el-radio",{attrs:{label:1}},[e._v("有")]),e._v(" "),s("el-radio",{attrs:{label:0}},[e._v("无")])],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺名称:",prop:"store_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入店铺名称"},model:{value:e.storeForm.store_name,callback:function(t){e.$set(e.storeForm,"store_name",t)},expression:"storeForm.store_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"经营类目:",prop:"scope"}},[s("el-select",{staticStyle:{width:"400px"},attrs:{multiple:"",placeholder:"请选择..."},model:{value:e.storeForm.scope,callback:function(t){e.$set(e.storeForm,"scope",t)},expression:"storeForm.scope"}},e._l(e.scopeOptions,(function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺LOGO:",prop:"shop_logo"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card",limit:1,"on-exceed":e.showTip1,"before-upload":e.beforeUpLogoImg,"http-request":e.uploadLogoImgs,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.logoImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[e._v("请上传店铺LOGO,文件大小在500KB以内,支持png,jpg格式,最多可上传1张")])])])]),e._v(" "),s("el-form-item",{attrs:{label:"运营负责人:",prop:"emergency_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入运营负责人姓名"},model:{value:e.storeForm.emergency_name,callback:function(t){e.$set(e.storeForm,"emergency_name",t)},expression:"storeForm.emergency_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"联系电话:",prop:"emergency_tel"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入联系电话"},model:{value:e.storeForm.emergency_tel,callback:function(t){e.$set(e.storeForm,"emergency_tel",t)},expression:"storeForm.emergency_tel"}})],1),e._v(" "),s("el-form-item",[s("p",{staticStyle:{width:"580px","line-height":"24px","font-size":"14px",margin:"0"}},[e._v("需要提交特殊产品资质的类目请将资质上传在此处,包括全国工业生产许可证、3C、医疗品械\n 生产许可证、化妆品生产企业许可证等,根据具体类目资质要求提交")])]),e._v(" "),s("el-form-item",{attrs:{label:"其他资质:",prop:"business_auth"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card",limit:20,"on-exceed":e.showTip20,"before-upload":e.beforeUpBusImg,"http-request":e.uploadBusinessImgs,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.businessImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px",color:"#333"}},[s("span",{staticClass:"tips-text"},[e._v("请上其他资质,单个文件大小在2MB以内,支持jpg,png格式,最多可上传20张")])])])]),e._v(" "),s("el-form-item",{staticStyle:{margin:"40px 0 0"}},[s("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:e.back}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.next("storeForm")}}},[e._v("提交审核")])],1)],1)],1)])],1)},o=[],r=(s("28a5"),s("6b1f")),a={name:"FillShopInf",data:function(){var e=this,t=function(t,s,i){e.logoImgFileList.length>0?i():0===e.logoImgFileList.length&&i(new Error("店铺logo图片至少上传一张"))},s=function(t,s,i){e.businessImgFileList.length>0?i():0===e.businessImgFileList.length&&i(new Error("其他资质图片至少上传一张"))},i=function(e,t,s){var i=/^1[3456789]\d{9}$/;i.test(t)?s():s(new Error("手机号码格式有误"))};return{dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,logoImgFileList:[],businessImgFileList:[],scopeOptions:[],storeForm:{is_business_experience:0,store_name:"",scope:[],shop_logo:"",business_auth:"",emergency_name:""},shopRules:{store_name:[{required:!0,message:"店铺名称不能为空",trigger:"blur"}],scope:[{required:!0,message:"经营类目至少选择一种",trigger:"change"}],shop_logo:[{required:!0,message:"店铺Logo至少上传一张图片",validator:t}],emergency_name:[{required:!0,message:"运营负责人不能为空",trigger:"blur"}],emergency_tel:[{required:!0,message:"联系人手机号码不能为空",trigger:"blur"},{required:!0,validator:i,trigger:"blur"}],business_auth:[{required:!0,message:"其他资质至少上传一张图片",validator:s}]}}},created:function(){var e=this;Object(r["e"])().then((function(t){1==t.code?e.scopeOptions=t.data:e.$message({type:"error",message:t.message?t.message:""})})),this.getShop()},mounted:function(){},methods:{showTip1:function(e,t){this.$message({message:"最多上传1张图片",type:"warning"})},showTip20:function(e,t){this.$message({message:"最多上传20张图片",type:"warning"})},beforeUpLogoImg:function(e){var t=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过500kb",type:"warning"}),!1):void 0},beforeUpBusImg:function(e){var t=e.size/1024/1024>2;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},getShop:function(){var e=this;Object(r["g"])().then((function(t){if(1==t.code&&t.data){if(e.storeForm.scope=[],""===t.data.scope)e.storeForm.scope=[];else{for(var s=t.data.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));e.storeForm=t.data,e.storeForm.scope=i}var r={},a=[];if(e.storeForm.shop_logo.indexOf(",")>0){a=e.storeForm.shop_logo.split(",");for(var l=0;l<a.length;l++)r={},r.url=a[l],e.logoImgFileList.push(r)}else e.storeForm.shop_logo?(r.url=e.storeForm.shop_logo,e.logoImgFileList=[],e.logoImgFileList.push(r)):e.logoImgFileList=[];var n={},g=[];if(e.storeForm.business_auth.indexOf(",")>0){g=e.storeForm.business_auth.split(",");for(var u=0;u<g.length;u++)n={},n.url=g[u],e.businessImgFileList.push(n)}else e.storeForm.business_auth?(n.url=e.storeForm.business_auth,e.businessImgFileList=[],e.businessImgFileList.push(n)):e.businessImgFileList=[]}else e.$message({message:t.message?t.message:"操作失败",type:"error"})}))},uploadLogoImgs:function(e){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img};Object(r["i"])(i).then((function(e){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){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img};Object(r["i"])(i).then((function(e){1===e.code?(t.businessImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("business_auth")):t.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,t){for(var s=0;s<this.logoImgFileList.length;s++)e.uid===this.logoImgFileList[s].uid&&this.logoImgFileList.splice(s,1)},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,t){for(var s=0;s<this.businessImgFileList.length;s++)e.uid===this.businessImgFileList[s].uid&&this.businessImgFileList.splice(s,1)},getBase64:function(e){return new Promise((function(t,s){var i=new FileReader,o="";i.readAsDataURL(e),i.onload=function(){o=i.result},i.onerror=function(e){s(e)},i.onloadend=function(){t(o)}}))},back:function(){this.$router.push("/fillBrandInf")},next:function(e){for(var t=this,s="",i=0;i<this.storeForm.scope.length;i++)s+=this.storeForm.scope[i]+",";if(this.storeForm.scope=s.substring(0,s.length-1),this.logoImgFileList.length>0)for(var o=0;o<this.logoImgFileList.length;o++)0===o?this.storeForm.shop_logo=this.logoImgFileList[o].url:this.storeForm.shop_logo+=","+this.logoImgFileList[o].url;if(this.businessImgFileList.length>0)for(var a=0;a<this.businessImgFileList.length;a++)0===a?this.storeForm.business_auth=this.businessImgFileList[a].url:this.storeForm.business_auth+=","+this.businessImgFileList[a].url;this.$refs[e].validate((function(e){if(e)Object(r["c"])(t.storeForm).then((function(e){if(1===e.code)t.$router.push("/reviewing");else if(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}}))}}},l=a,n=(s("759b"),s("2877")),g=Object(n["a"])(l,i,o,!1,null,"773f1273",null);t["default"]=g.exports},fdf0:function(e,t,s){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b92f9cd"],{"6b1f":function(e,t,s){"use strict";s.d(t,"f",(function(){return o})),s.d(t,"b",(function(){return r})),s.d(t,"d",(function(){return a})),s.d(t,"a",(function(){return l})),s.d(t,"h",(function(){return n})),s.d(t,"g",(function(){return g})),s.d(t,"c",(function(){return u})),s.d(t,"i",(function(){return m})),s.d(t,"e",(function(){return c}));var i=s("b775");function o(e){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:e})}function r(e){return Object(i["a"])({url:"/local/organization",method:"post",data:e})}function a(e){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/local/brands",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/local/upbrands",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:e})}function u(e){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/local/cate",method:"get",params:e})}},a048:function(e,t,s){"use strict";s("b0aa")},b0aa:function(e,t,s){},ba53:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"fill-store-inf"},[s("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[s("el-steps",{attrs:{active:2,"align-center":"","finish-status":"success"}},[s("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写品牌信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),s("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),s("div",{staticClass:"main-con"},[s("el-form",{ref:"storeForm",attrs:{model:e.storeForm,rules:e.shopRules,"label-width":"180px"}},[s("el-form-item",{attrs:{label:"电商平台经验:",prop:"is_business_experience"}},[s("el-radio-group",{model:{value:e.storeForm.is_business_experience,callback:function(t){e.$set(e.storeForm,"is_business_experience",t)},expression:"storeForm.is_business_experience"}},[s("el-radio",{attrs:{label:1}},[e._v("有")]),e._v(" "),s("el-radio",{attrs:{label:0}},[e._v("无")])],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺名称:",prop:"store_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入店铺名称"},model:{value:e.storeForm.store_name,callback:function(t){e.$set(e.storeForm,"store_name",t)},expression:"storeForm.store_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"经营类目:",prop:"scope"}},[s("el-select",{staticStyle:{width:"400px"},attrs:{multiple:"",placeholder:"请选择..."},model:{value:e.storeForm.scope,callback:function(t){e.$set(e.storeForm,"scope",t)},expression:"storeForm.scope"}},e._l(e.scopeOptions,(function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺LOGO:",prop:"shop_logo"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card",limit:1,"on-exceed":e.showTip1,"before-upload":e.beforeUpLogoImg,"http-request":e.uploadLogoImgs,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.logoImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[e._v("请上传店铺LOGO,文件大小在500KB以内,支持png,jpg格式,最多可上传1张")])])])]),e._v(" "),s("el-form-item",{attrs:{label:"运营负责人:",prop:"emergency_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入运营负责人姓名"},model:{value:e.storeForm.emergency_name,callback:function(t){e.$set(e.storeForm,"emergency_name",t)},expression:"storeForm.emergency_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"联系电话:",prop:"emergency_tel"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入联系电话"},model:{value:e.storeForm.emergency_tel,callback:function(t){e.$set(e.storeForm,"emergency_tel",t)},expression:"storeForm.emergency_tel"}})],1),e._v(" "),s("el-form-item",[s("p",{staticStyle:{width:"580px","line-height":"24px","font-size":"14px",margin:"0"}},[e._v("需要提交特殊产品资质的类目请将资质上传在此处,包括全国工业生产许可证、3C、医疗品械\n 生产许可证、化妆品生产企业许可证等,根据具体类目资质要求提交")])]),e._v(" "),s("el-form-item",{attrs:{label:"其他资质:",prop:"business_auth"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card",limit:20,"on-exceed":e.showTip20,"before-upload":e.beforeUpBusImg,"http-request":e.uploadBusinessImgs,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.businessImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px",color:"#333"}},[s("span",{staticClass:"tips-text"},[e._v("请上其他资质,单个文件大小在2MB以内,支持jpg,png格式,最多可上传20张")])])])]),e._v(" "),s("el-form-item",{staticStyle:{margin:"40px 0 0"}},[s("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:e.back}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.next("storeForm")}}},[e._v("提交审核")])],1)],1)],1)])],1)},o=[],r=(s("28a5"),s("6b1f")),a={name:"FillShopInf",data:function(){var e=this,t=function(t,s,i){e.logoImgFileList.length>0?i():0===e.logoImgFileList.length&&i(new Error("店铺logo图片至少上传一张"))},s=function(t,s,i){e.businessImgFileList.length>0?i():0===e.businessImgFileList.length&&i(new Error("其他资质图片至少上传一张"))},i=function(e,t,s){var i=/^1[3456789]\d{9}$/;i.test(t)?s():s(new Error("手机号码格式有误"))};return{dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,logoImgFileList:[],businessImgFileList:[],scopeOptions:[],storeForm:{is_business_experience:0,store_name:"",scope:[],shop_logo:"",business_auth:"",emergency_name:""},shopRules:{store_name:[{required:!0,message:"店铺名称不能为空",trigger:"blur"}],scope:[{required:!0,message:"经营类目至少选择一种",trigger:"change"}],shop_logo:[{required:!0,message:"店铺Logo至少上传一张图片",validator:t}],emergency_name:[{required:!0,message:"运营负责人不能为空",trigger:"blur"}],emergency_tel:[{required:!0,message:"联系人手机号码不能为空",trigger:"blur"},{required:!0,validator:i,trigger:"blur"}],business_auth:[{required:!0,message:"其他资质至少上传一张图片",validator:s}]}}},created:function(){var e=this;Object(r["e"])().then((function(t){1==t.code?e.scopeOptions=t.data:e.$message({type:"error",message:t.message?t.message:""})})),this.getShop()},mounted:function(){},methods:{showTip1:function(e,t){this.$message({message:"最多上传1张图片",type:"warning"})},showTip20:function(e,t){this.$message({message:"最多上传20张图片",type:"warning"})},beforeUpLogoImg:function(e){var t=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过500kb",type:"warning"}),!1):void 0},beforeUpBusImg:function(e){var t=e.size/1024/1024>2;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},getShop:function(){var e=this;Object(r["g"])().then((function(t){if(1==t.code&&t.data){if(e.storeForm.scope=[],""===t.data.scope)e.storeForm.scope=[];else{for(var s=t.data.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));e.storeForm=t.data,e.storeForm.scope=i}var r={},a=[];if(e.storeForm.shop_logo.indexOf(",")>0){a=e.storeForm.shop_logo.split(",");for(var l=0;l<a.length;l++)r={},r.url=a[l],e.logoImgFileList.push(r)}else e.storeForm.shop_logo?(r.url=e.storeForm.shop_logo,e.logoImgFileList=[],e.logoImgFileList.push(r)):e.logoImgFileList=[];var n={},g=[];if(e.storeForm.business_auth.indexOf(",")>0){g=e.storeForm.business_auth.split(",");for(var u=0;u<g.length;u++)n={},n.url=g[u],e.businessImgFileList.push(n)}else e.storeForm.business_auth?(n.url=e.storeForm.business_auth,e.businessImgFileList=[],e.businessImgFileList.push(n)):e.businessImgFileList=[]}else e.$message({message:t.message?t.message:"操作失败",type:"error"})}))},uploadLogoImgs:function(e){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img};Object(r["i"])(i).then((function(e){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){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img};Object(r["i"])(i).then((function(e){1==e.code?(t.businessImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("business_auth")):t.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,t){for(var s=0;s<this.logoImgFileList.length;s++)e.uid===this.logoImgFileList[s].uid&&this.logoImgFileList.splice(s,1)},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,t){for(var s=0;s<this.businessImgFileList.length;s++)e.uid===this.businessImgFileList[s].uid&&this.businessImgFileList.splice(s,1)},getBase64:function(e){return new Promise((function(t,s){var i=new FileReader,o="";i.readAsDataURL(e),i.onload=function(){o=i.result},i.onerror=function(e){s(e)},i.onloadend=function(){t(o)}}))},back:function(){this.$router.push("/fillBrandInf")},next:function(e){for(var t=this,s="",i=0;i<this.storeForm.scope.length;i++)s+=this.storeForm.scope[i]+",";if(this.storeForm.scope=s.substring(0,s.length-1),this.logoImgFileList.length>0)for(var o=0;o<this.logoImgFileList.length;o++)0===o?this.storeForm.shop_logo=this.logoImgFileList[o].url:this.storeForm.shop_logo+=","+this.logoImgFileList[o].url;if(this.businessImgFileList.length>0)for(var a=0;a<this.businessImgFileList.length;a++)0===a?this.storeForm.business_auth=this.businessImgFileList[a].url:this.storeForm.business_auth+=","+this.businessImgFileList[a].url;this.$refs[e].validate((function(e){if(e)Object(r["c"])(t.storeForm).then((function(e){if(1==e.code)t.$router.push("/reviewing");else if(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}}))}}},l=a,n=(s("a048"),s("2877")),g=Object(n["a"])(l,i,o,!1,null,"ea67f3ee",null);t["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78e7b944"],{"237b":function(e,i,t){"use strict";t("b425")},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:0,"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",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px"}},[t("el-form-item",{attrs:{label:"主体类型:"}},[t("el-radio-group",{model:{value:e.mainForm.organization_type,callback:function(i){e.$set(e.mainForm,"organization_type",i)},expression:"mainForm.organization_type"}},[t("el-radio",{attrs:{label:1}},[e._v("企业/公司")]),e._v(" "),t("el-radio",{attrs:{label:2}},[e._v("个体工商户")])],1)],1),e._v(" "),t("el-form-item",{attrs:{label:"执照类型:",prop:"license_type"}},[t("el-select",{staticStyle:{width:"400px"},attrs:{placeholder:"请选择..."},model:{value:e.mainForm.license_type,callback:function(i){e.$set(e.mainForm,"license_type",i)},expression:"mainForm.license_type"}},e._l(e.zzOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),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",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:2,"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格式,最多可上传2张")])])])]),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:"organization_address"}},[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",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期",disabled:e.isConcretePeriod},on:{change:e.periodConcrete},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.periodLongTerm},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:"idcard_type"}},[t("el-select",{staticStyle:{width:"400px"},attrs:{placeholder:"请选择..."},model:{value:e.mainForm.idcard_type,callback:function(i){e.$set(e.mainForm,"idcard_type",i)},expression:"mainForm.idcard_type"}},e._l(e.idcardTypeOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),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:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:e.validityConcrete},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTerm},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),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-right":"6px"}},[t("el-upload",{staticClass:"uploadData",attrs:{"list-type":"picture-card",action:"#",limit:2,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardImages,"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",[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:"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)])],1)},r=[],n=(t("28a5"),t("6b1f")),s={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){null===e.periodConcreteTime&&!1===e.periodLongTermVal?a(new Error("营业期限具体时间和长期必须填写其中一个")):a()},n=function(i,t,a){null===e.validityConcreteTime&&!1===e.validityLongTermVal?a(new Error("有效期具体时间和长期必须填写其中一个")):a()};return{licenseImgFileList:[],idcardImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,zzOptions:[{label:"多证合一营业执照(统一社会信用代码)",value:1},{label:"多证合一营业执照(非统一社会信用代码)",value:2}],idcardTypeOptions:[{label:"大陆身份证",value:1},{label:"护照",value:2},{label:"港奥台居民通行证",value:3},{label:"台湾居民通行证",value:4}],periodConcreteTime:null,periodLongTermVal:!1,validityConcreteTime:null,validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,mainForm:{organization_type:2,license_type:"",license:"",organization_name:"",organization_address:"",license_expires_time:"",idcard_type:"",real_name:"",idcard_number:"",idcard_expires_time:"",idcard_front:"",idcardback:"jiazhuangwshifanmian"},hasLicense:!1,mainRules:{license_type:[{required:!0,message:"营业执照类型不能为空",trigger:"change"}],license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"营业执照地址不能为空",trigger:"blur"}],idcard_type:[{required:!0,message:"证件类型不能为空",trigger:"change"}],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:n,required:!0,trigger:"change"}]}}},created:function(){this.getMain()},mounted:function(){},methods:{periodConcrete:function(){this.periodConcreteTime&&(this.periodLongTermVal=!1)},periodLongTerm:function(){this.periodLongTermVal&&(this.periodConcreteTime=null)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},beforeUpImg:function(e){var i=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):i?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},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(n["i"])(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.$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)},uploadIdcardImages: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(n["i"])(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.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},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)},getMain:function(){var e=this;Object(n["f"])().then((function(i){if(1===i.code){e.resetForm("mainForm"),e.mainForm=i.data,e.mainForm.idcardback="jzwsfm";var t={},a=[];if(e.mainForm.license.indexOf(",")>0){a=e.mainForm.license.split(",");for(var r=0;r<a.length;r++)t={},t.url=a[r],e.licenseImgFileList.push(t)}else t.url=e.mainForm.license,e.licenseImgFileList=[],e.licenseImgFileList.push(t);var n={},s=[];if(e.mainForm.idcard_front.indexOf(",")>0){s=e.mainForm.idcard_front.split(",");for(var l=0;l<s.length;l++)n={},n.url=s[l],e.idcardImgFileList.push(n)}else n.url=e.mainForm.idcard_front,e.idcardImgFileList=[],e.idcardImgFileList.push(n);0===e.mainForm.idcard_expires_time?e.validityLongTermVal=!0:e.validityConcreteTime=e.toStandTime(e.mainForm.idcard_expires_time),0===e.mainForm.license_expires_time?e.periodLongTermVal=!0:e.periodConcreteTime=e.toStandTime(e.mainForm.license_expires_time)}else e.$message({type:"error",message:i.message?i.message:""})}))},resetForm:function(e){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)}}))},toStandTime:function(e){var i=new Date(1e3*e),t=i.getFullYear()+"-",a=(i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1)+"-",r=(i.getDate()<10?"0"+i.getDate():i.getDate())+" ",n=(i.getHours()<10?"0"+i.getHours():i.getHours())+":",s=(i.getMinutes()<10?"0"+i.getMinutes():i.getMinutes())+":",l=i.getSeconds()<10?"0"+i.getSeconds():i.getSeconds();return t+a+r+n+s+l},showTip:function(e,i){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?this.mainForm.license_expires_time=this.periodLongTermVal-0-1:!1===this.periodLongTermVal&&this.periodConcreteTime?this.mainForm.license_expires_time=new Date(this.periodConcreteTime).getTime()/1e3:this.mainForm.license_expires_time="",this.validityLongTermVal?this.mainForm.idcard_expires_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime).getTime()/1e3:this.mainForm.idcard_expires_time="",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;this.$refs[e].validate((function(e){e&&Object(n["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillBrandInf"):i.$message({type:"error",message:e.message?e.message:"操作失败"})}))}))}}},l=s,o=(t("237b"),t("2877")),d=Object(o["a"])(l,a,r,!1,null,"18d64163",null);i["default"]=d.exports},"6b1f":function(e,i,t){"use strict";t.d(i,"f",(function(){return r})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return s})),t.d(i,"a",(function(){return l})),t.d(i,"h",(function(){return o})),t.d(i,"g",(function(){return d})),t.d(i,"c",(function(){return c})),t.d(i,"i",(function(){return m})),t.d(i,"e",(function(){return g}));var a=t("b775");function r(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 s(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function c(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function m(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})}},b425:function(e,i,t){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c655b3a8"],{"6b1f":function(t,e,a){"use strict";a.d(e,"f",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"h",(function(){return l})),a.d(e,"g",(function(){return d})),a.d(e,"c",(function(){return m})),a.d(e,"i",(function(){return h})),a.d(e,"e",(function(){return c}));var i=a("b775");function r(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function o(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function m(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 c(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}},"7bc1":function(t,e,a){"use strict";a("dc25")},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["i"])(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["i"])(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["i"])(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&&e.data){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["h"])(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("7bc1"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"e5db499a",null);e["default"]=d.exports},dc25:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d563c6a8"],{"6b1f":function(t,e,a){"use strict";a.d(e,"f",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"h",(function(){return l})),a.d(e,"g",(function(){return d})),a.d(e,"c",(function(){return m})),a.d(e,"i",(function(){return h})),a.d(e,"e",(function(){return c}));var i=a("b775");function r(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function o(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function m(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 c(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}},"836f":function(t,e,a){},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["i"])(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["i"])(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["i"])(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&&e.data){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["h"])(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("c4f7"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"3482731f",null);e["default"]=d.exports},c4f7:function(t,e,a){"use strict";a("836f")}}]);
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论