Commit 5ec9d873 by Jianli Ou

接口对接

parent be95e227
......@@ -11,4 +11,8 @@
.el-input__inner::-webkit-input-placeholder {
color: #888 !important
}
.el-cascader .el-input .el-input__inner {
background-color: rgba(0, 0, 0, 0);
border-width: 0;
}
</style>
......@@ -34,7 +34,8 @@ function fetch(options) {
if (options.headers) {
Object.assign(headers, options.headers)
}
headers[REQUEST_HEADER_TOKEN] = window.vm.$store.state.user.token
// headers[REQUEST_HEADER_TOKEN] = window.vm.$store.state.user.token
headers[REQUEST_HEADER_TOKEN] = localStorage.getItem('TOKEN')
return data
}], //请求前的数据处理
responseType: options.resoponseType || "json", //响应数据类型
......
......@@ -7,34 +7,48 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
// 个人资料
const memberInfo = (params = {}) => {
return POST(`${Prefix}/office/member/api/info` + `/${params.id}`, params)
return POST(`${Prefix}/office/member/authApi/info`, params)
}
// 保存个人资料
const saveMemberInfo = (params = {}) => {
return POST(`${Prefix}/office/member/api/update`, params)
return POST(`${Prefix}/office/member/authApi/update`, params)
}
// 保存企业信息(申请第一步)
const saveTycpdmFirmInfo = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/api/save`, params)
return POST(`${Prefix}/office/tycpdmfirm/authApi/save`, params)
}
// 厂商实名上传年检企业营业执照扫描件
const tycpdmfirmUploadOne = (params = {}) => {
return UPLOAD(`${Prefix}/office/tycpdmfirm/authApi/uploadFileOne`, params)
}
// 厂商实名资料提交(申请第二步)
const tycpdmfirmUpload = (params = {}) => {
return UPLOAD(`${Prefix}/office/tycpdmfirm/api/uploadFile`, params)
return UPLOAD(`${Prefix}/office/tycpdmfirm/authApi/uploadFile`, params)
}
// 企业信息
const tycpdmFirmInfo = (params = {}) => {
return GET(`${Prefix}/office/tycpdmfirm/api/findUserName`, params)
return GET(`${Prefix}/office/tycpdmfirm/authApi/findUserName`, params)
}
// 修改登录密码
const saveUpdatePass = (params = {}) => {
return POST(`${Prefix}/office/member/api/updatePass`, params)
return POST(`${Prefix}/office/member/authApi/updatePass`, params)
}
// 企业实名认证统计信息
const tycpdmfirmLogoutFlagCount = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/authApi/findTycpdmFirmLogoutFlagCount?userId=${params.userId}`, params)
}
// 审核列表
const tycpdmfirmAuditList = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirmchange/authApi/findlist`, params)
}
export default {
memberInfo,
saveMemberInfo,
saveTycpdmFirmInfo,
tycpdmfirmUploadOne,
tycpdmfirmUpload,
tycpdmFirmInfo,
saveUpdatePass
saveUpdatePass,
tycpdmfirmLogoutFlagCount,
tycpdmfirmAuditList
}
......@@ -6,7 +6,7 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
// 用户登录
const login = (params = {}) => {
return POST(`${Prefix}/office/loglogin/api/login`, params)
return POST(`${Prefix}/office/loglogin/authApi/login`, params)
}
export default {
......
......@@ -13,6 +13,7 @@ import "./plugins/element.js";
import "./plugins/qrcode.js";
import "./assets/css/element-variables.scss";
import GsTable from './components/table/index'
import './utils/codeTable'
// 百度地图
import BaiduMap from 'vue-baidu-map'
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -44,34 +44,35 @@ export default {
},
data() {
return {
loginInfo: {},
query: {},
showUnCheck: false,
realNameCertification: [
{
key: '1',
label: '等待审核',
value: '等待审核',
amount: '641',
value: '0',
amount: '0',
color: '#2F7CF1'
},
{
key: '2',
label: '已通过审核',
value: '已通过审核',
amount: '10,388',
value: '1',
amount: '0',
color: '#3ABD79'
},
{
key: '3',
label: '未通过审核',
value: '未通过审核',
amount: '385',
value: '2',
amount: '0',
color: '#F8A702'
},
{
key: '4',
label: '申请总数',
amount: '11,414',
amount: '0',
color: '#F26335'
}
],
......@@ -79,28 +80,28 @@ export default {
{
key: '1',
label: '等待审核',
value: '等待审核',
amount: '17',
value: '0',
amount: '0',
color: '#2F7CF1'
},
{
key: '2',
label: '已通过审核',
value: '已通过审核',
amount: '77',
value: '1',
amount: '0',
color: '#3ABD79'
},
{
key: '3',
label: '未通过审核',
value: '未通过审核',
amount: '1',
value: '2',
amount: '0',
color: '#F8A702'
},
{
key: '4',
label: '申请总数',
amount: '95',
amount: '0',
color: '#F26335'
}
],
......@@ -123,7 +124,7 @@ export default {
path: '',
query: {
type: 'new',
status: item.label,
status: item.value,
}
})
},
......@@ -133,11 +134,26 @@ export default {
path: '',
query: {
type: 'change',
status: item.label,
status: item.value,
}
})
},
async getTotalCount() {
const result = await this.$api.myManage.tycpdmfirmLogoutFlagCount({userId: this.loginInfo.id})
this.realNameCertification[0].amount = result.data.auditCount
this.realNameCertification[1].amount = result.data.throughCount
this.realNameCertification[2].amount = result.data.notThroughCount
this.realNameCertification[3].amount = result.data.countAll
this.realNameCertificationChange[0].amount = result.data.auditChangeCount
this.realNameCertificationChange[1].amount = result.data.throughChangeCount
this.realNameCertificationChange[2].amount = result.data.notThroughChangeCount
this.realNameCertificationChange[3].amount = result.data.countChangeAll
}
},
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.getTotalCount()
}
}
</script>
......
<template>
<div class="gs-ac-search-table">
<div v-show="!checkDetail" class="card_wrapper">
<div class="title">{{ query.status }}
<div class="title">{{ status[query.status] }}
<span class="back_btn" @click="$router.push({path:''})">返回</span>
</div>
<div class="body" style="max-height: 100vh;">
......@@ -10,7 +10,7 @@
<div class="search row" style="margin: 15px 0;">
<div class="col-lg-4">
<el-form-item label="分中心名称:" label-width="90px">
<el-select size="small" style="width: 145px" v-model="search.entName">
<el-select size="small" style="width: 145px" v-model="search.branchCode">
<el-option
v-for="item in subCenterList"
:key="item.value"
......@@ -22,11 +22,11 @@
</div>
<div class="col-lg-3">
<el-form-item label="状态:" label-width="50px">
<el-select size="small" style="width: 145px" v-model="search.status">
<el-select size="small" style="width: 145px" v-model="search.logoutFlag">
<el-option
v-for="item in statusList"
:key="item.value"
:label="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
......@@ -34,7 +34,7 @@
</div>
<div class="col-lg-3">
<el-form-item label="搜索:" label-width="50px">
<el-input size="small" style="width: 145px" v-model="search.entName"></el-input>
<el-input size="small" style="width: 145px" v-model="search.firmName"></el-input>
</el-form-item>
</div>
<div class="col-lg-2" style="text-align: right">
......@@ -74,10 +74,11 @@ export default {
components: {CertificationDetail},
props: {query: Object},
created() {
this.setData()
this.search.status = this.query.status
// this.setData()
this.search.logoutFlag = this.query.status
if (this.query.type === 'new') {
// TODO 查询新增
this.getAuditList()
} else {
// TODO 查询变更
}
......@@ -86,26 +87,32 @@ export default {
return {
page: {},
search: {
status: '',
entName: '',
subCenterName: ''
logoutFlag: '',
firmName: '',
branchCode: '',
page: 1,
limit: 10
},
status: ['等待审核', '已审核通过', '未审核通过'],
statusList: [
{
value: '等待审核',
label: '等待审核',
value: '0',
},
{
value: '已审核通过',
label: '已审核通过',
value: '1',
},
{
value: '未审核通过',
label: '未审核通过',
value: '2',
},
],
subCenterList: [],
result: [],
cols: [
{
type: 'status',
type: 'logoutFlag',
label: '状态',
align: 'center',
width: '60px',
......@@ -116,15 +123,15 @@ export default {
),
},
{
prop: 'type',
prop: 'servicetype',
label: '业务类型',
},
{
prop: 'username',
prop: 'baseUser',
label: '用户名',
},
{
prop: 'entName',
prop: 'firmname',
label: '企业名称',
renderCell: (value, row) => (
<span class="gs-clickable"
......@@ -137,29 +144,29 @@ export default {
),
},
{
prop: 'entAddress',
prop: 'address',
label: '企业地址',
},
{
prop: 'user',
prop: 'contactman',
label: '经办人',
width: '80px'
},
{
prop: 'mobile',
prop: 'contactmanmp',
label: '经办人手机',
width: '120px'
},
{
prop: 'date1',
prop: 'loginDate',
label: '申请日期',
},
{
prop: 'date2',
prop: 'approveDate',
label: '审核日期',
},
{
prop: 'center',
prop: 'branchcode',
label: '所属分中心',
},
{
......@@ -190,31 +197,44 @@ export default {
console.log(row)
},
getIcon(status) {
status = status.status
if (status === 'checked') {
status = status.logoutFlag
// if (status === 'checked') {
// return checked
// } else if (status === 'unchecked') {
// return unchecked
// } else if (status === 'refuse') {
// return refuse
// }
if (status === 1) {
return checked
} else if (status === 'unchecked') {
} else if (status === 0) {
return unchecked
} else if (status === 'refuse') {
} else if (status === 2) {
return refuse
} else {
return refuse
}
},
setData() {
for (let i = 0; i < 20; i++) {
this.result.push({
status: 'unchecked',
type: '新增',
username: '厦门皇名',
entName: '厦门皇名酒业有限公司',
entAddress: '福建省厦门市思明区鹭江道268号',
user: '王庆',
mobile: '18098097532',
date1: '2021/06/20 11:20:40',
date2: '',
center: '厦门办事处',
})
}
// setData() {
// for (let i = 0; i < 20; i++) {
// this.result.push({
// status: 'unchecked',
// type: '新增',
// username: '厦门皇名',
// entName: '厦门皇名酒业有限公司',
// entAddress: '福建省厦门市思明区鹭江道268号',
// user: '王庆',
// mobile: '18098097532',
// date1: '2021/06/20 11:20:40',
// date2: '',
// center: '厦门办事处',
// })
// }
// },
async getAuditList() {
const result = await this.$api.myManage.tycpdmfirmAuditList(this.search)
this.result = result.data.list
console.log(result)
}
},
}
......
......@@ -121,6 +121,7 @@ export default {
this.showUserLoginError = true;
} else {
localStorage.setItem('loginInfo', JSON.stringify(res.data))
localStorage.setItem('TOKEN', res.data.token)
if (res.data.levels === null) {
localStorage.setItem('gs-user', JSON.stringify({type: 'unVerify'}))
this.$router.push({path: '/MyManage/UnVerify/index'})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment