297 lines
8.1 KiB
Vue
297 lines
8.1 KiB
Vue
<template>
|
|
<view class="content w-100 h-100">
|
|
<HeaderTop page_title='认证'></HeaderTop>
|
|
<view class="x-bg-white padding-30 font-weight">当前企业信息</view>
|
|
<view class="line bg_F2F2F2 w-100" style="height:10upx;"></view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
企业名称</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="form.name" placeholder="请输入企业名称" :disabled="true" />
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
企业类型
|
|
</view>
|
|
<view class="uni-list-cell-db px-1 font-md flex-1">
|
|
<picker @change="bindPickerChange" :value="index" :range="list" range-key="name" :disabled="true">
|
|
<view class="uni-input">{{list[index].name}}</view>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<pick-regions :defaultRegions="defaultRegions" :defaultDisabled="true" @getRegions="handleGetRegions">
|
|
<view class="p-2 d-flex a-center bg-white border-bottom">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
注册区域
|
|
</view>
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
{{regionsName}}
|
|
</view>
|
|
</view>
|
|
</pick-regions>
|
|
<view class="p-2 d-flex a-center bg-white border-bottom">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
详细地址</view>
|
|
<input placeholder="(请输入营业执照上的详细地址)" class="px-1 font-md flex-1" type="text" v-model="form.detailPath" :disabled="true"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
收货人</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="form.linkman" :disabled="true"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
手机号</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="form.phone" :disabled="true"/>
|
|
</view>
|
|
<view class="line bg_F2F2F2 w-100" style="height:10upx;"></view>
|
|
<view class="x-bg-white font-weight padding-30">税务信息</view>
|
|
<view class="line bg_F2F2F2 w-100" style="height:10upx;"></view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
发票抬头</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="bank.invoiceTitle" :disabled="true"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
纳税人识别码</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="bank.taxpayer" :disabled="true"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
开户行</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="bank.openingBank" :disabled="true"/>
|
|
</view>
|
|
<view class="p-2 border-bottom d-flex a-center bg-white">
|
|
<view class="font-md text-secondary mr-1 flex-shrink text-dark">
|
|
对公账号</view>
|
|
<input class="px-1 font-md flex-1" type="text" v-model="bank.hedgeFund" :disabled="true"/>
|
|
</view>
|
|
<view class="line bg_F2F2F2 w-100" style="height:10upx;"></view>
|
|
<view class="x-bg-white padding-30 font-weight">资质图片</view>
|
|
<view class="line bg_F2F2F2 w-100" style="height:10upx;"></view>
|
|
<view class="imgBox d-flex j-sb padding-30">
|
|
<view class="imgBox d-flex j-sb padding-zy30">
|
|
<view class="x_textCenter margin-shu20" v-for="(item,index) of subTypeInfo" :key='index' v-if="item.path[0] || item.image">
|
|
<!-- <img :src="item.path[0]?item.path[0]:item.image" alt="" class='img'> -->
|
|
<image :src="item.path[0]?item.path[0]:item.image" alt="" class='img'></image>
|
|
<view>{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import pickRegions from '@/components/pick-regions/pick-regions.vue'
|
|
import authentication from '../../utils/models/auth.js'
|
|
import HeaderTop from '../../components/HeaderTop/HeaderTop.vue'
|
|
import commonPopup from "@/components/common/common-popup.vue"
|
|
import shippingAddress from '../../utils/models/shop.js'
|
|
export default {
|
|
components: {
|
|
commonPopup,
|
|
HeaderTop,
|
|
pickRegions
|
|
},
|
|
data() {
|
|
return {
|
|
list_index: 1,
|
|
regions: [],
|
|
defaultRegions: ['安徽省', '合肥市', '蜀山区'],
|
|
area_id: 2,
|
|
list: [{
|
|
key: 'purchasing_enterprise',
|
|
name: '商业公司'
|
|
},
|
|
{
|
|
key: 'purchasing_chain_boss',
|
|
name: '连锁药房(总店)'
|
|
},
|
|
{
|
|
key: 'liansuo_drugstore',
|
|
name: '连锁药房(分店)'
|
|
},
|
|
{
|
|
key: 'drugstore',
|
|
name: '单体药房'
|
|
},
|
|
{
|
|
key: 'clinic_single',
|
|
name: '单体诊所'
|
|
},
|
|
{
|
|
key: 'clinic_door',
|
|
name: '门诊'
|
|
},
|
|
{
|
|
key: 'clinic_community',
|
|
name: '社区卫生服务所'
|
|
},
|
|
{
|
|
key: 'hospital_private',
|
|
name: '私立医院'
|
|
}
|
|
],
|
|
index: 0,
|
|
current: 0,
|
|
form: {
|
|
path: '', //地址
|
|
name: "", //企业名称
|
|
type: "", //企业类型
|
|
detailPath: "", //详细地址
|
|
linkman: "", //联系人姓名
|
|
kefu: '' //客服
|
|
},
|
|
bank:{
|
|
|
|
},
|
|
subTypeInfo:[],
|
|
}
|
|
},
|
|
methods: {
|
|
bindPickerChange: function(e) {
|
|
this.index = e.detail.value
|
|
this.form.sub_type = this.list[this.index].key
|
|
},
|
|
before() {
|
|
uni.navigateBack()
|
|
},
|
|
async do_auth() {
|
|
let parames = {
|
|
name: this.form.name,
|
|
area_id: this.area_id,
|
|
sub_type: this.form.sub_type,
|
|
business_address: this.form.detailPath,
|
|
consignee: this.form.linkman,
|
|
phone: this.form.phone,
|
|
service_number: this.form.kefu,
|
|
}
|
|
let res = await authentication.authBaisc(parames);
|
|
uni.redirectTo({
|
|
url: '../auth/certificate'
|
|
})
|
|
this.handleError(res, res => {
|
|
|
|
})
|
|
},
|
|
async getInfo() {
|
|
let data = await authentication.viewBaisc()
|
|
let info = data.data
|
|
if (info) {
|
|
this.form.name = info.name
|
|
this.area_id = info.area_id
|
|
this.form.sub_type = info.sub_type
|
|
this.form.detailPath = info.business_address
|
|
this.form.linkman = info.consignee
|
|
this.form.phone = info.tel
|
|
this.form.kefu = info.service_number
|
|
this.regions = info.area_name
|
|
for (let i in this.list) {
|
|
if (this.form.sub_type == this.list[i]['key']) {
|
|
this.index = i
|
|
}
|
|
}
|
|
}
|
|
this.handleError(data, res => {
|
|
|
|
})
|
|
},
|
|
// 获取选择的地区
|
|
handleGetRegions(regions) {
|
|
this.regions = regions
|
|
this.area_id = this.regions.map(item => item.id).join('-')
|
|
},
|
|
async viewCertificate() {
|
|
let data = await authentication.viewCertificate()
|
|
this.subTypeInfo = data.data
|
|
this.handleError(data, res => {
|
|
|
|
})
|
|
},
|
|
async viewBank() {
|
|
let data = await authentication.viewBank()
|
|
let info = data.data
|
|
if (info) {
|
|
this.bank.invoiceTitle = info.invoice_title
|
|
this.bank.taxpayer = info.tax_number
|
|
this.bank.hedgeFund = info.bank_account
|
|
this.bank.openingBank = info.bank_name
|
|
this.bank.account_name = info.account_name
|
|
|
|
}
|
|
this.handleError(data, res => {
|
|
|
|
})
|
|
}
|
|
},
|
|
computed: {
|
|
regionsName() {
|
|
// 转为字符串
|
|
return this.regions.map(item => item.area_name).join(' ')
|
|
}
|
|
},
|
|
onShow() {
|
|
this.getInfo()
|
|
this.viewBank()
|
|
this.viewCertificate()
|
|
},
|
|
created() {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.page {
|
|
background: #F7F7F7;
|
|
}
|
|
|
|
.place {
|
|
background-color: #ffffff;
|
|
height: 148upx;
|
|
}
|
|
|
|
.b_header {
|
|
height: 148upx;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
font-size: 32upx;
|
|
}
|
|
|
|
.content {
|
|
.imgBox {
|
|
flex-wrap: wrap;
|
|
|
|
.img {
|
|
height: 208upx;
|
|
width: 327upx;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
height: 148upx;
|
|
font-size: 32upx;
|
|
position: relative;
|
|
line-height: 194upx;
|
|
|
|
.edit_shoppingCar {
|
|
position: absolute;
|
|
bottom: -48upx;
|
|
right: 31upx;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
.progress {
|
|
color: #FFFFFF;
|
|
padding-top: 30px;
|
|
height: 200upx;
|
|
|
|
}
|
|
</style>
|