|
@@ -104,7 +104,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="brand-small-upload clearfix" style="margin: 0.1rem 0.25rem 0 0.25rem">
|
|
<div class="brand-small-upload clearfix" style="margin: 0.1rem 0.25rem 0 0.25rem">
|
|
|
<div class="brand-small-img">
|
|
<div class="brand-small-img">
|
|
|
- <upload :typeData="index" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="index" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="file-text">品牌logo/商标注册原件/授权说明书</div>
|
|
<div class="file-text">品牌logo/商标注册原件/授权说明书</div>
|
|
|
<div v-show="brands.length > 1" @click="deleteBrand(index)" class="delete" title="删除"><i class="fa fa-trash"></i></div>
|
|
<div v-show="brands.length > 1" @click="deleteBrand(index)" class="delete" title="删除"><i class="fa fa-trash"></i></div>
|
|
@@ -127,7 +127,7 @@
|
|
|
<div class="wrap-title"><span class="line"></span>营业执照</div>
|
|
<div class="wrap-title"><span class="line"></span>营业执照</div>
|
|
|
<div class="clearfix" style="margin: 0 0.25rem">
|
|
<div class="clearfix" style="margin: 0 0.25rem">
|
|
|
<div class="show_image_area show_image pull-left">
|
|
<div class="show_image_area show_image pull-left">
|
|
|
- <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="pull-left infoTextMobile" style="width: 5.1rem;margin-left: 0.2rem">
|
|
<div class="pull-left infoTextMobile" style="width: 5.1rem;margin-left: 0.2rem">
|
|
|
<em style="color: #FF0000;">*</em>如已上传最新版营业执照(三证合一),则其他两证无需上传;仅支持上传JPG、PNG、GIF、PDF格式,每张大小超过3M
|
|
<em style="color: #FF0000;">*</em>如已上传最新版营业执照(三证合一),则其他两证无需上传;仅支持上传JPG、PNG、GIF、PDF格式,每张大小超过3M
|
|
@@ -141,7 +141,7 @@
|
|
|
<div class="wrap-title"><span class="line"></span>纳税人证明</div>
|
|
<div class="wrap-title"><span class="line"></span>纳税人证明</div>
|
|
|
<div class="" style="margin: 0 0.25rem">
|
|
<div class="" style="margin: 0 0.25rem">
|
|
|
<div class="show_image_area show_image">
|
|
<div class="show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -149,7 +149,7 @@
|
|
|
<div class="wrap-title"><span class="line"></span>税务登记证</div>
|
|
<div class="wrap-title"><span class="line"></span>税务登记证</div>
|
|
|
<div class="" style="margin: 0 0.25rem">
|
|
<div class="" style="margin: 0 0.25rem">
|
|
|
<div class="show_image_area show_image">
|
|
<div class="show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
<!--<div class="col-md-5" style="padding: 0;">-->
|
|
<!--<div class="col-md-5" style="padding: 0;">-->
|
|
|
<!--<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>-->
|
|
<!--<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>-->
|
|
@@ -188,7 +188,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="brand-small-upload clearfix" style="margin: 0.1rem 0.25rem 0 0.25rem">
|
|
<div class="brand-small-upload clearfix" style="margin: 0.1rem 0.25rem 0 0.25rem">
|
|
|
<div class="brand-small-img">
|
|
<div class="brand-small-img">
|
|
|
- <upload :typeData="index" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="index" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="file-text">代理资格证/代理授权书</div>
|
|
<div class="file-text">代理资格证/代理授权书</div>
|
|
|
<div v-show="brands.length > 1" @click="deleteBrand(index)" class="delete" title="删除"><i class="fa fa-trash"></i></div>
|
|
<div v-show="brands.length > 1" @click="deleteBrand(index)" class="delete" title="删除"><i class="fa fa-trash"></i></div>
|
|
@@ -214,7 +214,7 @@
|
|
|
<div class="wrap-title"><span class="line"></span>营业执照</div>
|
|
<div class="wrap-title"><span class="line"></span>营业执照</div>
|
|
|
<div class="clearfix" style="margin: 0 0.25rem">
|
|
<div class="clearfix" style="margin: 0 0.25rem">
|
|
|
<div class="show_image_area show_image pull-left">
|
|
<div class="show_image_area show_image pull-left">
|
|
|
- <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="pull-left infoTextMobile" style="width: 5.1rem;margin-left: 0.2rem">
|
|
<div class="pull-left infoTextMobile" style="width: 5.1rem;margin-left: 0.2rem">
|
|
|
<em style="color: #FF0000;">*</em>如已上传最新版营业执照(三证合一),则其他两证无需上传;仅支持上传JPG、PNG、GIF、PDF格式,每张大小超过3M
|
|
<em style="color: #FF0000;">*</em>如已上传最新版营业执照(三证合一),则其他两证无需上传;仅支持上传JPG、PNG、GIF、PDF格式,每张大小超过3M
|
|
@@ -228,7 +228,7 @@
|
|
|
<div class="wrap-title"><span class="line"></span>纳税人证明</div>
|
|
<div class="wrap-title"><span class="line"></span>纳税人证明</div>
|
|
|
<div class="" style="margin: 0 0.25rem">
|
|
<div class="" style="margin: 0 0.25rem">
|
|
|
<div class="show_image_area show_image">
|
|
<div class="show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -236,7 +236,7 @@
|
|
|
<div class="wrap-title"><span class="line"></span>税务登记证</div>
|
|
<div class="wrap-title"><span class="line"></span>税务登记证</div>
|
|
|
<div class="" style="margin: 0 0.25rem">
|
|
<div class="" style="margin: 0 0.25rem">
|
|
|
<div class="show_image_area show_image">
|
|
<div class="show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
|
|
|
|
|
|
|
+ <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
</div>
|
|
|
<!--<div class="col-md-5" style="padding: 0;">-->
|
|
<!--<div class="col-md-5" style="padding: 0;">-->
|
|
|
<!--<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>-->
|
|
<!--<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>-->
|
|
@@ -442,6 +442,7 @@
|
|
|
e.target.setAttribute('class', '')
|
|
e.target.setAttribute('class', '')
|
|
|
},
|
|
},
|
|
|
submitApply: function () {
|
|
submitApply: function () {
|
|
|
|
|
+ // 个人
|
|
|
if (this.loginData.isSelf) {
|
|
if (this.loginData.isSelf) {
|
|
|
if (!this.registerData.isValidRegister) {
|
|
if (!this.registerData.isValidRegister) {
|
|
|
// this.$message.error('请输入正确的注册信息')
|
|
// this.$message.error('请输入正确的注册信息')
|
|
@@ -452,37 +453,41 @@
|
|
|
this.collectResult = '您还没有勾选相关条款'
|
|
this.collectResult = '您还没有勾选相关条款'
|
|
|
this.timeoutCount++
|
|
this.timeoutCount++
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ // 注册企业,并提交申请
|
|
|
this.registerSelf()
|
|
this.registerSelf()
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ // 企业
|
|
|
if (!this.checkData.checked) {
|
|
if (!this.checkData.checked) {
|
|
|
// this.$message.error('您还没有勾选相关条款')
|
|
// this.$message.error('您还没有勾选相关条款')
|
|
|
this.collectResult = '您还没有勾选相关条款'
|
|
this.collectResult = '您还没有勾选相关条款'
|
|
|
this.timeoutCount++
|
|
this.timeoutCount++
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ // 提交申请
|
|
|
this.storeApply(this.loginData.enterprise.uu)
|
|
this.storeApply(this.loginData.enterprise.uu)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ // 个人用户,先注册企业,成功后,提交开店申请
|
|
|
registerSelf: function () {
|
|
registerSelf: function () {
|
|
|
this.showLoading = true
|
|
this.showLoading = true
|
|
|
this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
|
|
this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
|
|
|
.then(response => {
|
|
.then(response => {
|
|
|
if (response.data.success) {
|
|
if (response.data.success) {
|
|
|
this.isSelfRegisterSuccess = true
|
|
this.isSelfRegisterSuccess = true
|
|
|
|
|
+ // 删除保存的缓存企业信息
|
|
|
this.$http.delete('basic/user/userCacheEnterprise')
|
|
this.$http.delete('basic/user/userCacheEnterprise')
|
|
|
- this.$http.get('/user/authentication/reflash')
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- this.$http.get(`/user/authentication/` + response.data.data.enuu).then(() => {
|
|
|
|
|
- this.$store.dispatch('loadUserInfo')
|
|
|
|
|
- this.loginData.isSelf = false
|
|
|
|
|
- this.loginData.enterprise.uu = response.data.data.enuu
|
|
|
|
|
- this.storeApply(response.data.data.enuu)
|
|
|
|
|
|
|
+ // 把当前用户登录企业信息切换为注册的企业
|
|
|
|
|
+ this.$http.get(`/user/authentication/` + response.data.data.enuu).then(() => {
|
|
|
|
|
+ // 重新获取登录用户信息
|
|
|
|
|
+ this.$store.dispatch('loadUserInfo')
|
|
|
|
|
+ this.loginData.isSelf = false
|
|
|
|
|
+ this.loginData.enterprise.uu = response.data.data.enuu
|
|
|
|
|
+ // 提交开店申请
|
|
|
|
|
+ this.storeApply(response.data.data.enuu)
|
|
|
// window.location.reload()
|
|
// window.location.reload()
|
|
|
- this.showLoading = false
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ this.showLoading = false
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.isSelfRegisterSuccess = false
|
|
this.isSelfRegisterSuccess = false
|
|
|
this.showLoading = false
|
|
this.showLoading = false
|
|
@@ -541,6 +546,7 @@
|
|
|
tmpBrands.push(item)
|
|
tmpBrands.push(item)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ // 申请开店
|
|
|
this.$http.post('/store-service/applications', {
|
|
this.$http.post('/store-service/applications', {
|
|
|
brands: tmpBrands,
|
|
brands: tmpBrands,
|
|
|
qualifications: qualifications,
|
|
qualifications: qualifications,
|
|
@@ -561,20 +567,10 @@
|
|
|
}
|
|
}
|
|
|
this.$http.post('/basic/enterprise/openVendor/' + enuu)
|
|
this.$http.post('/basic/enterprise/openVendor/' + enuu)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- this.$http.get('/user/authentication/reflash')
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- this.$http.get(`/user/authentication/` + enuu).then(() => {
|
|
|
|
|
- this.$store.dispatch('loadUserInfo')
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$router.push('/mobile/user')
|
|
|
|
|
- }, 3000)
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$router.push('/mobile/user')
|
|
|
|
|
+ }, 3000)
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
- // window.setTimeout(function () {
|
|
|
|
|
- // window.location.href = '/vendor#/store-apply/wait'
|
|
|
|
|
- // }, 3000)
|
|
|
|
|
}, err => {
|
|
}, err => {
|
|
|
console.log(err)
|
|
console.log(err)
|
|
|
this.$http.post('/basic/enterprise/openVendorSetRead/' + enuu)
|
|
this.$http.post('/basic/enterprise/openVendorSetRead/' + enuu)
|
|
@@ -632,9 +628,13 @@
|
|
|
goProduct: function (baseUrl) {
|
|
goProduct: function (baseUrl) {
|
|
|
if (this.loginData.isSelf) {
|
|
if (this.loginData.isSelf) {
|
|
|
if (!this.registerData.isValidRegister) {
|
|
if (!this.registerData.isValidRegister) {
|
|
|
- this.$message.error('请输入正确的注册信息')
|
|
|
|
|
|
|
+ this.collectResult = '请输入正确的注册信息'
|
|
|
|
|
+ this.timeoutCount++
|
|
|
|
|
+ // this.$message.error('请输入正确的注册信息')
|
|
|
} else if (!this.checkData.checked) {
|
|
} else if (!this.checkData.checked) {
|
|
|
- this.$message.error('您还没有勾选相关条款')
|
|
|
|
|
|
|
+ this.collectResult = '您还没有勾选相关条款'
|
|
|
|
|
+ this.timeoutCount++
|
|
|
|
|
+ // this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|
|
} else {
|
|
|
this.showLoading = true
|
|
this.showLoading = true
|
|
|
this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
|
|
this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
|
|
@@ -645,19 +645,25 @@
|
|
|
this.reflashEnterprise(response.data.data.enuu, baseUrl || '/vendor#/vendor_upload')
|
|
this.reflashEnterprise(response.data.data.enuu, baseUrl || '/vendor#/vendor_upload')
|
|
|
} else {
|
|
} else {
|
|
|
this.isSelfRegisterSuccess = false
|
|
this.isSelfRegisterSuccess = false
|
|
|
- this.$message.error(response.data.message || '企业注册失败,请重新填写信息')
|
|
|
|
|
|
|
+ this.collectResult = response.data.message || '企业注册失败,请重新填写信息'
|
|
|
|
|
+ this.timeoutCount++
|
|
|
|
|
+ // this.$message.error(response.data.message || '企业注册失败,请重新填写信息')
|
|
|
}
|
|
}
|
|
|
this.showLoading = false
|
|
this.showLoading = false
|
|
|
}, err => {
|
|
}, err => {
|
|
|
console.log(err)
|
|
console.log(err)
|
|
|
this.isSelfRegisterSuccess = false
|
|
this.isSelfRegisterSuccess = false
|
|
|
this.showLoading = false
|
|
this.showLoading = false
|
|
|
- this.$message.error('企业注册失败,请重新填写信息')
|
|
|
|
|
|
|
+ this.collectResult = '企业注册失败,请重新填写信息'
|
|
|
|
|
+ this.timeoutCount++
|
|
|
|
|
+ // this.$message.error('企业注册失败,请重新填写信息')
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
if (!this.checkData.checked) {
|
|
if (!this.checkData.checked) {
|
|
|
- this.$message.error('您还没有勾选相关条款')
|
|
|
|
|
|
|
+ this.collectResult = '您还没有勾选相关条款'
|
|
|
|
|
+ this.timeoutCount++
|
|
|
|
|
+ // this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|
|
} else {
|
|
|
this.reflashEnterprise(this.loginData.enterprise.uu, baseUrl || '/vendor#/vendor_upload')
|
|
this.reflashEnterprise(this.loginData.enterprise.uu, baseUrl || '/vendor#/vendor_upload')
|
|
|
}
|
|
}
|