Commit 5ec9d873 by Jianli Ou

接口对接

parent be95e227
...@@ -11,4 +11,8 @@ ...@@ -11,4 +11,8 @@
.el-input__inner::-webkit-input-placeholder { .el-input__inner::-webkit-input-placeholder {
color: #888 !important color: #888 !important
} }
.el-cascader .el-input .el-input__inner {
background-color: rgba(0, 0, 0, 0);
border-width: 0;
}
</style> </style>
...@@ -34,7 +34,8 @@ function fetch(options) { ...@@ -34,7 +34,8 @@ function fetch(options) {
if (options.headers) { if (options.headers) {
Object.assign(headers, 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 return data
}], //请求前的数据处理 }], //请求前的数据处理
responseType: options.resoponseType || "json", //响应数据类型 responseType: options.resoponseType || "json", //响应数据类型
......
...@@ -7,34 +7,48 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : ''; ...@@ -7,34 +7,48 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
// 个人资料 // 个人资料
const memberInfo = (params = {}) => { const memberInfo = (params = {}) => {
return POST(`${Prefix}/office/member/api/info` + `/${params.id}`, params) return POST(`${Prefix}/office/member/authApi/info`, params)
} }
// 保存个人资料 // 保存个人资料
const saveMemberInfo = (params = {}) => { const saveMemberInfo = (params = {}) => {
return POST(`${Prefix}/office/member/api/update`, params) return POST(`${Prefix}/office/member/authApi/update`, params)
} }
// 保存企业信息(申请第一步) // 保存企业信息(申请第一步)
const saveTycpdmFirmInfo = (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 = {}) => { const tycpdmfirmUpload = (params = {}) => {
return UPLOAD(`${Prefix}/office/tycpdmfirm/api/uploadFile`, params) return UPLOAD(`${Prefix}/office/tycpdmfirm/authApi/uploadFile`, params)
} }
// 企业信息 // 企业信息
const tycpdmFirmInfo = (params = {}) => { const tycpdmFirmInfo = (params = {}) => {
return GET(`${Prefix}/office/tycpdmfirm/api/findUserName`, params) return GET(`${Prefix}/office/tycpdmfirm/authApi/findUserName`, params)
} }
// 修改登录密码 // 修改登录密码
const saveUpdatePass = (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 { export default {
memberInfo, memberInfo,
saveMemberInfo, saveMemberInfo,
saveTycpdmFirmInfo, saveTycpdmFirmInfo,
tycpdmfirmUploadOne,
tycpdmfirmUpload, tycpdmfirmUpload,
tycpdmFirmInfo, tycpdmFirmInfo,
saveUpdatePass saveUpdatePass,
tycpdmfirmLogoutFlagCount,
tycpdmfirmAuditList
} }
...@@ -6,7 +6,7 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : ''; ...@@ -6,7 +6,7 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
// 用户登录 // 用户登录
const login = (params = {}) => { const login = (params = {}) => {
return POST(`${Prefix}/office/loglogin/api/login`, params) return POST(`${Prefix}/office/loglogin/authApi/login`, params)
} }
export default { export default {
......
...@@ -13,6 +13,7 @@ import "./plugins/element.js"; ...@@ -13,6 +13,7 @@ import "./plugins/element.js";
import "./plugins/qrcode.js"; import "./plugins/qrcode.js";
import "./assets/css/element-variables.scss"; import "./assets/css/element-variables.scss";
import GsTable from './components/table/index' import GsTable from './components/table/index'
import './utils/codeTable'
// 百度地图 // 百度地图
import BaiduMap from 'vue-baidu-map' 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 { ...@@ -44,34 +44,35 @@ export default {
}, },
data() { data() {
return { return {
loginInfo: {},
query: {}, query: {},
showUnCheck: false, showUnCheck: false,
realNameCertification: [ realNameCertification: [
{ {
key: '1', key: '1',
label: '等待审核', label: '等待审核',
value: '等待审核', value: '0',
amount: '641', amount: '0',
color: '#2F7CF1' color: '#2F7CF1'
}, },
{ {
key: '2', key: '2',
label: '已通过审核', label: '已通过审核',
value: '已通过审核', value: '1',
amount: '10,388', amount: '0',
color: '#3ABD79' color: '#3ABD79'
}, },
{ {
key: '3', key: '3',
label: '未通过审核', label: '未通过审核',
value: '未通过审核', value: '2',
amount: '385', amount: '0',
color: '#F8A702' color: '#F8A702'
}, },
{ {
key: '4', key: '4',
label: '申请总数', label: '申请总数',
amount: '11,414', amount: '0',
color: '#F26335' color: '#F26335'
} }
], ],
...@@ -79,28 +80,28 @@ export default { ...@@ -79,28 +80,28 @@ export default {
{ {
key: '1', key: '1',
label: '等待审核', label: '等待审核',
value: '等待审核', value: '0',
amount: '17', amount: '0',
color: '#2F7CF1' color: '#2F7CF1'
}, },
{ {
key: '2', key: '2',
label: '已通过审核', label: '已通过审核',
value: '已通过审核', value: '1',
amount: '77', amount: '0',
color: '#3ABD79' color: '#3ABD79'
}, },
{ {
key: '3', key: '3',
label: '未通过审核', label: '未通过审核',
value: '未通过审核', value: '2',
amount: '1', amount: '0',
color: '#F8A702' color: '#F8A702'
}, },
{ {
key: '4', key: '4',
label: '申请总数', label: '申请总数',
amount: '95', amount: '0',
color: '#F26335' color: '#F26335'
} }
], ],
...@@ -123,7 +124,7 @@ export default { ...@@ -123,7 +124,7 @@ export default {
path: '', path: '',
query: { query: {
type: 'new', type: 'new',
status: item.label, status: item.value,
} }
}) })
}, },
...@@ -133,11 +134,26 @@ export default { ...@@ -133,11 +134,26 @@ export default {
path: '', path: '',
query: { query: {
type: 'change', 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> </script>
......
<template> <template>
<div class="gs-ac-search-table"> <div class="gs-ac-search-table">
<div v-show="!checkDetail" class="card_wrapper"> <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> <span class="back_btn" @click="$router.push({path:''})">返回</span>
</div> </div>
<div class="body" style="max-height: 100vh;"> <div class="body" style="max-height: 100vh;">
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="search row" style="margin: 15px 0;"> <div class="search row" style="margin: 15px 0;">
<div class="col-lg-4"> <div class="col-lg-4">
<el-form-item label="分中心名称:" label-width="90px"> <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 <el-option
v-for="item in subCenterList" v-for="item in subCenterList"
:key="item.value" :key="item.value"
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
<el-form-item label="状态:" label-width="50px"> <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 <el-option
v-for="item in statusList" v-for="item in statusList"
:key="item.value" :key="item.value"
:label="item.value" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
<el-form-item label="搜索:" label-width="50px"> <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> </el-form-item>
</div> </div>
<div class="col-lg-2" style="text-align: right"> <div class="col-lg-2" style="text-align: right">
...@@ -74,10 +74,11 @@ export default { ...@@ -74,10 +74,11 @@ export default {
components: {CertificationDetail}, components: {CertificationDetail},
props: {query: Object}, props: {query: Object},
created() { created() {
this.setData() // this.setData()
this.search.status = this.query.status this.search.logoutFlag = this.query.status
if (this.query.type === 'new') { if (this.query.type === 'new') {
// TODO 查询新增 // TODO 查询新增
this.getAuditList()
} else { } else {
// TODO 查询变更 // TODO 查询变更
} }
...@@ -86,26 +87,32 @@ export default { ...@@ -86,26 +87,32 @@ export default {
return { return {
page: {}, page: {},
search: { search: {
status: '', logoutFlag: '',
entName: '', firmName: '',
subCenterName: '' branchCode: '',
page: 1,
limit: 10
}, },
status: ['等待审核', '已审核通过', '未审核通过'],
statusList: [ statusList: [
{ {
value: '等待审核', label: '等待审核',
value: '0',
}, },
{ {
value: '已审核通过', label: '已审核通过',
value: '1',
}, },
{ {
value: '未审核通过', label: '未审核通过',
value: '2',
}, },
], ],
subCenterList: [], subCenterList: [],
result: [], result: [],
cols: [ cols: [
{ {
type: 'status', type: 'logoutFlag',
label: '状态', label: '状态',
align: 'center', align: 'center',
width: '60px', width: '60px',
...@@ -116,15 +123,15 @@ export default { ...@@ -116,15 +123,15 @@ export default {
), ),
}, },
{ {
prop: 'type', prop: 'servicetype',
label: '业务类型', label: '业务类型',
}, },
{ {
prop: 'username', prop: 'baseUser',
label: '用户名', label: '用户名',
}, },
{ {
prop: 'entName', prop: 'firmname',
label: '企业名称', label: '企业名称',
renderCell: (value, row) => ( renderCell: (value, row) => (
<span class="gs-clickable" <span class="gs-clickable"
...@@ -137,29 +144,29 @@ export default { ...@@ -137,29 +144,29 @@ export default {
), ),
}, },
{ {
prop: 'entAddress', prop: 'address',
label: '企业地址', label: '企业地址',
}, },
{ {
prop: 'user', prop: 'contactman',
label: '经办人', label: '经办人',
width: '80px' width: '80px'
}, },
{ {
prop: 'mobile', prop: 'contactmanmp',
label: '经办人手机', label: '经办人手机',
width: '120px' width: '120px'
}, },
{ {
prop: 'date1', prop: 'loginDate',
label: '申请日期', label: '申请日期',
}, },
{ {
prop: 'date2', prop: 'approveDate',
label: '审核日期', label: '审核日期',
}, },
{ {
prop: 'center', prop: 'branchcode',
label: '所属分中心', label: '所属分中心',
}, },
{ {
...@@ -190,31 +197,44 @@ export default { ...@@ -190,31 +197,44 @@ export default {
console.log(row) console.log(row)
}, },
getIcon(status) { getIcon(status) {
status = status.status status = status.logoutFlag
if (status === 'checked') { // if (status === 'checked') {
// return checked
// } else if (status === 'unchecked') {
// return unchecked
// } else if (status === 'refuse') {
// return refuse
// }
if (status === 1) {
return checked return checked
} else if (status === 'unchecked') { } else if (status === 0) {
return unchecked return unchecked
} else if (status === 'refuse') { } else if (status === 2) {
return refuse
} else {
return refuse return refuse
} }
}, },
setData() { // setData() {
for (let i = 0; i < 20; i++) { // for (let i = 0; i < 20; i++) {
this.result.push({ // this.result.push({
status: 'unchecked', // status: 'unchecked',
type: '新增', // type: '新增',
username: '厦门皇名', // username: '厦门皇名',
entName: '厦门皇名酒业有限公司', // entName: '厦门皇名酒业有限公司',
entAddress: '福建省厦门市思明区鹭江道268号', // entAddress: '福建省厦门市思明区鹭江道268号',
user: '王庆', // user: '王庆',
mobile: '18098097532', // mobile: '18098097532',
date1: '2021/06/20 11:20:40', // date1: '2021/06/20 11:20:40',
date2: '', // date2: '',
center: '厦门办事处', // 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 { ...@@ -121,6 +121,7 @@ export default {
this.showUserLoginError = true; this.showUserLoginError = true;
} else { } else {
localStorage.setItem('loginInfo', JSON.stringify(res.data)) localStorage.setItem('loginInfo', JSON.stringify(res.data))
localStorage.setItem('TOKEN', res.data.token)
if (res.data.levels === null) { if (res.data.levels === null) {
localStorage.setItem('gs-user', JSON.stringify({type: 'unVerify'})) localStorage.setItem('gs-user', JSON.stringify({type: 'unVerify'}))
this.$router.push({path: '/MyManage/UnVerify/index'}) 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