|
@@ -8,11 +8,12 @@
|
|
<!-- 公司营业执照上传 -->
|
|
<!-- 公司营业执照上传 -->
|
|
<view v-if="license1 != ''">
|
|
<view v-if="license1 != ''">
|
|
<upload v-if="consentStatus == true" class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
<upload v-if="consentStatus == true" class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
- :size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
|
|
|
|
+ :size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
|
|
- :custom="uploadCustom" @on-progress="onProgress"></upload>
|
|
|
|
|
|
+ :custom="uploadCustom" ></upload>
|
|
</view>
|
|
</view>
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
|
|
+ <text class="tit_red">*</text>
|
|
<text class="tit">公司名称</text>
|
|
<text class="tit">公司名称</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写公司名称" name="input" v-model="identityAuthenticationInfo.compName"></input>
|
|
<input placeholder="请填写公司名称" name="input" v-model="identityAuthenticationInfo.compName"></input>
|
|
@@ -30,16 +31,17 @@
|
|
<view>
|
|
<view>
|
|
<!-- 个人身份证正面 -->
|
|
<!-- 个人身份证正面 -->
|
|
<upload class="upload" ref="upload1" :action="action" :max-size="maxSize" :max-count="1"
|
|
<upload class="upload" ref="upload1" :action="action" :max-size="maxSize" :max-count="1"
|
|
- :size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
|
|
|
|
|
|
+ :size-type="['compressed']" @on-success="getImgUrl1" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
|
|
- :custom="uploadCustom1" @on-progress="onProgress"></upload>
|
|
|
|
|
|
+ :custom="uploadCustom1" ></upload>
|
|
<!-- 个人身份证反面 -->
|
|
<!-- 个人身份证反面 -->
|
|
<upload class="upload" ref="upload2" :action="action" :max-size="maxSize" :max-count="1"
|
|
<upload class="upload" ref="upload2" :action="action" :max-size="maxSize" :max-count="1"
|
|
- :size-type="['compressed']" @on-success="getImgUrl2" @on-error="onError" @on-remove="onRemove"
|
|
|
|
|
|
+ :size-type="['compressed']" @on-success="getImgUrl2" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions2"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions2"
|
|
- :custom="uploadCustom2" @on-progress="onProgress"></upload>
|
|
|
|
|
|
+ :custom="uploadCustom2" ></upload>
|
|
</view>
|
|
</view>
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
|
|
+ <text class="tit_red">*</text>
|
|
<text class="tit">姓名</text>
|
|
<text class="tit">姓名</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input placeholder="请填写姓名" name="input" v-model="identityAuthenticationInfo.customerName"></input>
|
|
<input placeholder="请填写姓名" name="input" v-model="identityAuthenticationInfo.customerName"></input>
|
|
@@ -218,20 +220,20 @@
|
|
this.$api.msg('公司名称输入错误')
|
|
this.$api.msg('公司名称输入错误')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.identityAuthenticationInfo.payTaxesCard) {
|
|
|
|
- this.$api.msg('纳税人识别号不能为空')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.identityAuthenticationInfo.payTaxesCard.length < 15 || this.identityAuthenticationInfo
|
|
|
|
- .payTaxesCard.length > 20) {
|
|
|
|
- this.$api.msg('纳税人识别号输入错误')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.identityAuthenticationInfo.businessLicenseAddressUrl == "" || this.identityAuthenticationInfo
|
|
|
|
- .businessLicenseAddressUrl == null) {
|
|
|
|
- this.$api.msg('请上传营业执照')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.identityAuthenticationInfo.payTaxesCard) {
|
|
|
|
+ // this.$api.msg('纳税人识别号不能为空')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (this.identityAuthenticationInfo.payTaxesCard.length < 15 || this.identityAuthenticationInfo
|
|
|
|
+ // .payTaxesCard.length > 20) {
|
|
|
|
+ // this.$api.msg('纳税人识别号输入错误')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (this.identityAuthenticationInfo.businessLicenseAddressUrl == "" || this.identityAuthenticationInfo
|
|
|
|
+ // .businessLicenseAddressUrl == null) {
|
|
|
|
+ // this.$api.msg('请上传营业执照')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
this.identityAuthenticationInfo.customerTypeFlag = "2"
|
|
this.identityAuthenticationInfo.customerTypeFlag = "2"
|
|
this.identityAuthenticationInfo.customerType = "企业"
|
|
this.identityAuthenticationInfo.customerType = "企业"
|
|
var model = JSON.stringify(this.identityAuthenticationInfo);
|
|
var model = JSON.stringify(this.identityAuthenticationInfo);
|
|
@@ -240,14 +242,14 @@
|
|
})
|
|
})
|
|
} else if (this.consentStatus1) {
|
|
} else if (this.consentStatus1) {
|
|
this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
|
|
this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
|
|
- if (this.id[0] == '' || this.id[0] == null) {
|
|
|
|
- this.$api.msg('请上传身份证正面')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.id[1] == '' || this.id[1] == null) {
|
|
|
|
- this.$api.msg('请上传身份证反面')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.id[0] == '' || this.id[0] == null) {
|
|
|
|
+ // this.$api.msg('请上传身份证正面')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (this.id[1] == '' || this.id[1] == null) {
|
|
|
|
+ // this.$api.msg('请上传身份证反面')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (!this.identityAuthenticationInfo.customerName) {
|
|
if (!this.identityAuthenticationInfo.customerName) {
|
|
this.$api.msg('姓名不能为空')
|
|
this.$api.msg('姓名不能为空')
|
|
return
|
|
return
|
|
@@ -257,14 +259,14 @@
|
|
this.$api.msg('姓名输入错误')
|
|
this.$api.msg('姓名输入错误')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.identityAuthenticationInfo.customerNumberCard) {
|
|
|
|
- this.$api.msg('身份证号不能为空')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
|
|
|
|
- this.$api.msg('身份证号输入错误')
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.identityAuthenticationInfo.customerNumberCard) {
|
|
|
|
+ // this.$api.msg('身份证号不能为空')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
|
|
|
|
+ // this.$api.msg('身份证号输入错误')
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
this.identityAuthenticationInfo.customerTypeFlag = "1"
|
|
this.identityAuthenticationInfo.customerTypeFlag = "1"
|
|
this.identityAuthenticationInfo.customerType = "个人"
|
|
this.identityAuthenticationInfo.customerType = "个人"
|
|
var model = JSON.stringify(this.identityAuthenticationInfo);
|
|
var model = JSON.stringify(this.identityAuthenticationInfo);
|
|
@@ -393,4 +395,7 @@
|
|
.upload {
|
|
.upload {
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
}
|
|
}
|
|
|
|
+ .tit_red{
|
|
|
|
+ color: #E54D42;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|