|
|
@@ -41,7 +41,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">营业执照<em style="color: #FF0000;">*</em></span>
|
|
|
@@ -51,7 +51,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">纳税人证明</span>
|
|
|
@@ -61,7 +61,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>
|
|
|
@@ -94,7 +94,7 @@
|
|
|
</div>
|
|
|
<div class="brand-small-upload col-md-4">
|
|
|
<div class="brand-small-img">
|
|
|
- <upload :typeData="index" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="index" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</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>
|
|
|
@@ -115,7 +115,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">营业执照<em style="color: #FF0000;">*</em></span>
|
|
|
@@ -125,7 +125,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">纳税人证明</span>
|
|
|
@@ -135,7 +135,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>
|
|
|
@@ -167,7 +167,7 @@
|
|
|
</div>
|
|
|
<div class="brand-small-upload col-md-4">
|
|
|
<div class="brand-small-img">
|
|
|
- <upload :typeData="index" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="index" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</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>
|
|
|
@@ -188,7 +188,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'BUSINESS_LICENSE'" :url="businessLicenseUrl" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">营业执照<em style="color: #FF0000;">*</em></span>
|
|
|
@@ -198,7 +198,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'TAX_PAYER'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">纳税人证明</span>
|
|
|
@@ -208,7 +208,7 @@
|
|
|
<div class="col-md-4 custom_col">
|
|
|
<div class="row" style="margin: 0;">
|
|
|
<div class="col-md-5 col-md-offset-1 show_image_area show_image">
|
|
|
- <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload"></upload>
|
|
|
+ <upload :typeData="'TAX_REGISTRATION'" @uploadAction="onUpload" :NopassThree="true"></upload>
|
|
|
</div>
|
|
|
<div class="col-md-5" style="padding: 0;">
|
|
|
<span style="margin-top: 50%;padding-right: 20px;">税务登记证</span>
|
|
|
@@ -398,41 +398,45 @@
|
|
|
e.target.setAttribute('class', '')
|
|
|
},
|
|
|
submitApply: function () {
|
|
|
+ // 个人
|
|
|
if (this.loginData.isSelf) {
|
|
|
if (!this.registerData.isValidRegister) {
|
|
|
this.$message.error('请输入正确的注册信息')
|
|
|
} else if (!this.checkData.checked) {
|
|
|
this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|
|
|
+ // 注册企业,并提交申请
|
|
|
this.registerSelf()
|
|
|
}
|
|
|
- } else {
|
|
|
+ } else { // 企业
|
|
|
if (!this.checkData.checked) {
|
|
|
this.$message.error('您还没有勾选相关条款')
|
|
|
} else {
|
|
|
+ // 提交申请
|
|
|
this.storeApply(this.loginData.enterprise.uu)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 个人用户,先注册企业,成功后,提交开店申请
|
|
|
registerSelf: function () {
|
|
|
this.showLoading = true
|
|
|
this.$http.post('/basic/enterprise/register?filePath=' + this.registerData.url, this.registerData.enterprise)
|
|
|
.then(response => {
|
|
|
if (response.data.success) {
|
|
|
this.isSelfRegisterSuccess = true
|
|
|
+ // 删除保存的缓存企业信息
|
|
|
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()
|
|
|
- this.showLoading = false
|
|
|
- })
|
|
|
- }
|
|
|
- )
|
|
|
+ this.showLoading = false
|
|
|
+ })
|
|
|
} else {
|
|
|
this.isSelfRegisterSuccess = false
|
|
|
this.showLoading = false
|
|
|
@@ -445,6 +449,7 @@
|
|
|
this.$message.error('企业注册失败,请重新填写信息')
|
|
|
})
|
|
|
},
|
|
|
+ // 提交开店申请
|
|
|
storeApply: function (enuu) {
|
|
|
this.showLoading = true
|
|
|
let validCode = 0
|
|
|
@@ -485,6 +490,7 @@
|
|
|
tmpBrands.push(item)
|
|
|
}
|
|
|
})
|
|
|
+ // 申请开店
|
|
|
this.$http.post('/store-service/applications', {
|
|
|
brands: tmpBrands,
|
|
|
qualifications: qualifications,
|
|
|
@@ -500,16 +506,16 @@
|
|
|
}
|
|
|
this.$http.post('/basic/enterprise/openVendor/' + enuu)
|
|
|
.then(() => {
|
|
|
- this.$http.get('/user/authentication/reflash')
|
|
|
- .then(() => {
|
|
|
- this.$http.get(`/user/authentication/` + enuu).then(() => {
|
|
|
- this.$store.dispatch('loadUserInfo')
|
|
|
- })
|
|
|
- })
|
|
|
+// this.$http.get('/user/authentication/reflash')
|
|
|
+// .then(() => {
|
|
|
+// this.$http.get(`/user/authentication/` + enuu).then(() => {
|
|
|
+// this.$store.dispatch('loadUserInfo')
|
|
|
+// })
|
|
|
+// })
|
|
|
+ window.setTimeout(function () {
|
|
|
+ window.location.href = '/vendor#/store-apply/wait'
|
|
|
+ }, 3000)
|
|
|
})
|
|
|
- window.setTimeout(function () {
|
|
|
- window.location.href = '/vendor#/store-apply/wait'
|
|
|
- }, 3000)
|
|
|
}, err => {
|
|
|
console.log(err)
|
|
|
this.$http.post('/basic/enterprise/openVendorSetRead/' + enuu)
|