From 7284d749cf5da0f7f3f2af407a2a9cd94fffaf2e Mon Sep 17 00:00:00 2001 From: songyang <972986197@qq.com> Date: Tue, 5 Dec 2023 17:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 2 + env/.env.dev | 11 +- src/components/uploadComponent/index.vue | 225 ++++++++++++++ src/http/api/home/index.ts | 5 + src/http/api/usercenter/baseinfo.ts | 9 + src/store/user.ts | 47 ++- src/views/AppMain.vue | 2 +- src/views/EnterpriseCertification.vue | 372 +++++++++++++++++++---- src/views/home/index.vue | 19 +- src/views/user/baseInfo/index.vue | 15 +- 10 files changed, 638 insertions(+), 69 deletions(-) create mode 100644 src/components/uploadComponent/index.vue create mode 100644 src/http/api/home/index.ts create mode 100644 src/http/api/usercenter/baseinfo.ts diff --git a/components.d.ts b/components.d.ts index 5f872ed..fa46f5b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -37,6 +37,8 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] TableComponent: typeof import('./src/components/TableComponent/index.vue')['default'] + UploadCom: typeof import('./src/components/uploadComponent/uploadCom.vue')['default'] + UploadComponent: typeof import('./src/components/uploadComponent/index.vue')['default'] UploadImg: typeof import('./src/components/uploadImg.vue')['default'] } } diff --git a/env/.env.dev b/env/.env.dev index 7034e08..ee79829 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -7,5 +7,14 @@ VITE_API_URL = '/proxyApi' # 开发环境接口地址 # VITE_proxyTarget = 'http://10.40.92.66:9205' #盛旭 -VITE_proxyTarget = 'http://10.40.92.185:9200' # 赵福海 +# VITE_proxyTarget = 'http://10.40.92.185:9200' # 赵福海 (登录) + +# VITE_proxyTarget = 'http://10.40.92.185:9301' # 赵福海 (商品分类) + +VITE_proxyTarget = 'http://10.40.92.253:8080' # 牛 (个人中心 基础信息企业申请认证) + + + + + diff --git a/src/components/uploadComponent/index.vue b/src/components/uploadComponent/index.vue new file mode 100644 index 0000000..92daf93 --- /dev/null +++ b/src/components/uploadComponent/index.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/src/http/api/home/index.ts b/src/http/api/home/index.ts new file mode 100644 index 0000000..01ae1df --- /dev/null +++ b/src/http/api/home/index.ts @@ -0,0 +1,5 @@ +import { get, post } from '../../index' + +export const getGoodsClassListApi = () => { + return get('/maType/getEquipmentType', {}) +} \ No newline at end of file diff --git a/src/http/api/usercenter/baseinfo.ts b/src/http/api/usercenter/baseinfo.ts new file mode 100644 index 0000000..2c13a9f --- /dev/null +++ b/src/http/api/usercenter/baseinfo.ts @@ -0,0 +1,9 @@ +// 个人中心 基础信息模块 + +import { get, post } from '../../index' + +// 申请企业信息认证接口 +export const applyAttestationApi = (data: any) => { + return post('/company_info/addCompanyInfo', data) +} + diff --git a/src/store/user.ts b/src/store/user.ts index 9e16179..0bd7227 100644 --- a/src/store/user.ts +++ b/src/store/user.ts @@ -1,3 +1,5 @@ +import { get, post } from 'http/index' + export const useStore = defineStore('myUser', { state: () => { return { @@ -7,7 +9,13 @@ export const useStore = defineStore('myUser', { { title: '基础信息', name: 'baseInfo' }, { title: '订单管理', name: 'orderManagement' }, { title: '子账号管理', name: 'subAccount' } - ] + ], + provinceList: [], // 省份信息 + marketList: [], // 市级信息 + areaList: [], // 区级信息 + idTypeList: [], // 证件类型 + companyTypeList: [],//企业类型 + companyLtdList: [] //企业所属 } }, getters: { @@ -26,6 +34,43 @@ export const useStore = defineStore('myUser', { editcurrentMenuList(val: any) { this.menuList = val }, + // 获取省份信息 + async getprovinceList() { + const res: any = await post('/baseAddress/selectAddress', {}) + this.provinceList = res.data + + }, + // 获取市级信息 + async getmarketList(val: any) { + const res: any = await post('/baseAddress/selectAddress', { code: val }) + console.log(res, '市区信息'); + this.marketList = res.data + + + }, + // 获取区级信息 + async getareaList(val: any) { + const res: any = await post('/baseAddress/selectAddress', { code: val }) + this.areaList = res.data + }, + // 获取证件类型 + async getIdTypeList() { + const res: any = await post('/company_type/selectIdCard', {}) + console.log(res, '证件类型'); + this.idTypeList = res.rows + }, + // 获取企业类型 + async getcompanyTypeList() { + const res: any = await post('/company_type/selectCompanyTypeList', {}) + console.log(res, '企业类型'); + this.companyTypeList = res.rows + }, + // 获取企业所属 + async getcompanyLtdList() { + const res: any = await post('/company_type/selectCompanyLtd', {}) + console.log(res, '企业所属'); + this.companyLtdList = res.rows + } }, persist: { enabled: true, // 开启数据缓存 diff --git a/src/views/AppMain.vue b/src/views/AppMain.vue index 28908c3..8f192ff 100644 --- a/src/views/AppMain.vue +++ b/src/views/AppMain.vue @@ -227,7 +227,7 @@ } .erweima { - // display: none; + display: none; width: 100px; height: 80px; margin-left: -20px; diff --git a/src/views/EnterpriseCertification.vue b/src/views/EnterpriseCertification.vue index 862289c..f8ecba5 100644 --- a/src/views/EnterpriseCertification.vue +++ b/src/views/EnterpriseCertification.vue @@ -12,81 +12,149 @@ - + - - - + + + + + + + + + + + + + + + + + + + + + - - - + + + + v-for="item in selProvinceList" + :key="item.id" + :label="item.name" + :value="item.code + ',' + item.name"> - - + + + v-for="item in selMarketList" + :key="item.id" + :label="item.name" + :value="item.code + ',' + item.name"> - - + + + v-for="item in selAreaList" + :key="item.id" + :label="item.name" + :value="item.code + ',' + item.name"> - - + + - - - + + + + v-for="item in selProvinceList" + :key="item.id" + :label="item.name" + :value="item.code + ',' + item.name"> - - + + + v-for="item in selMarketList" + :key="item.id" + :label="item.name" + :value="item.code + ',' + item.name"> - - + + + v-for="item in selAreaList" + :key="item.id" + :label="item.name" + :value="item.code + ',' + item.name"> - - + + @@ -94,19 +162,25 @@ - + + v-for="item in selIdTypeList" + :key="item.id" + :label="item.name" + :value="item.name"> - + @@ -144,24 +218,40 @@ - + + > + - + - + - + @@ -177,18 +267,27 @@ - + - +
- +
被授权人手机号修改且运营审核通过后,企业系统管理员权限将同步到修改后被授权手机号的登录账号。
@@ -280,11 +379,166 @@
+ + + 提 交 + 关 闭 + +