Merge branch 'test20230707' into 2023年7月变更
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* 防止打包部署时路径被写死-开发环境的配置项
|
||||
*/
|
||||
const incomeUrl = 'http://localhost:21826'
|
||||
window._CONFIG = {};
|
||||
window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer
|
||||
// websocket连接的地址
|
||||
@@ -26,3 +27,6 @@ window._CONFIG["memberDomianWebSocketURL"] = "http://10.0.1.9:9000/api";
|
||||
|
||||
// 查看物流信息
|
||||
window._CONFIG["lookExpressDomainURL"] = "http://localhost:3001/lookExpressInfo";
|
||||
|
||||
// 来款企业端-注册标协会员页面
|
||||
window._CONFIG['memberRegisterUrl'] = `${incomeUrl}/user/member-register`
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* 防止打包部署时路径被写死-开发环境的配置项
|
||||
*/
|
||||
const incomeUrl = 'http://bxxt.hzwlsoft.com'
|
||||
window._CONFIG = {};
|
||||
window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer
|
||||
// websocket连接的地址
|
||||
@@ -24,4 +25,7 @@ window._CONFIG["memberStaticDomainURL"] = window._CONFIG["memberURL"] + "/sys/co
|
||||
window._CONFIG["memberDomianWebSocketURL"] = "http://139.9.235.66/memberApi";
|
||||
|
||||
// 查看物流信息
|
||||
window._CONFIG["lookExpressDomainURL"] = "http://bxxt.hzwlsoft.com/lookExpressInfo";
|
||||
window._CONFIG["lookExpressDomainURL"] = "http://bxxt.hzwlsoft.com/lookExpressInfo";
|
||||
|
||||
// 来款企业端-注册标协会员页面
|
||||
window._CONFIG['memberRegisterUrl'] = `${incomeUrl}/user/member-register`
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* 防止打包部署时路径被写死-生产环境的配置项
|
||||
*/
|
||||
const incomeUrl = 'http://cwp.catarc.org.cn'
|
||||
window._CONFIG = {};
|
||||
window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer
|
||||
// websocket连接的地址
|
||||
@@ -22,7 +23,10 @@ window._CONFIG["singInQRCodHref"]= 'http://cwp.catarc.org.cn/signupentrance'
|
||||
window._CONFIG["memberURL"] = "/memberApi";
|
||||
// 会员系统的静态文件的地址
|
||||
window._CONFIG["memberStaticDomainURL"] = window._CONFIG["memberURL"] + "/sys/common/static";
|
||||
window._CONFIG["memberDomianWebSocketURL"] = "http://cwp.catarc.org.cn/memberApi";
|
||||
window._CONFIG["memberDomianWebSocketURL"] = incomeUrl + "/memberApi";
|
||||
|
||||
// 查看物流信息
|
||||
window._CONFIG["lookExpressDomainURL"] = "http://cwp.catarc.org.cn/lookExpressInfo";
|
||||
|
||||
// 来款企业端-注册标协会员页面
|
||||
window._CONFIG['memberRegisterUrl'] = `${incomeUrl}/user/member-register`
|
||||
|
||||
@@ -148,6 +148,20 @@ export const routerData = [
|
||||
name: 'data-member',
|
||||
id: '6'
|
||||
},
|
||||
// 标协会员 只是显示当前企业的信息,方便相关人员注册
|
||||
{
|
||||
path: '/BasicInfoFromIncome',
|
||||
component: 'standardsAssociation/BasicInfoFromIncome',
|
||||
route: '1',
|
||||
meta: {
|
||||
icon: 'team', // 菜单前图标
|
||||
componentName: 'SubBidCommittee',
|
||||
keepAlive: false,
|
||||
title: '标协会员' // 菜单名称
|
||||
},
|
||||
name: 'BasicInfoFromIncome',
|
||||
id: '17',
|
||||
},
|
||||
{
|
||||
redirect: null,
|
||||
path: '/standardsAssociation',
|
||||
@@ -357,8 +371,9 @@ export const routerData = [
|
||||
keepAlive: false,
|
||||
internalOrExternal: false,
|
||||
componentName: 'ApprovalDocumentNumberList',
|
||||
title: '收费通知'
|
||||
title: '收费通知',
|
||||
},
|
||||
hidden: true,
|
||||
name: 'member-standardsAssociation-approvalDocumentNumberList',
|
||||
path: '/standardsAssociation/approvalDocumentNumberList',
|
||||
route: '1'
|
||||
|
||||
@@ -14,6 +14,7 @@ import { welcome } from '@/utils/util'
|
||||
import { getAction } from '@/api/manage'
|
||||
import { routerData } from '@/config/router.config'
|
||||
|
||||
|
||||
const user = {
|
||||
state: {
|
||||
token: '',
|
||||
@@ -216,6 +217,7 @@ const user = {
|
||||
*/
|
||||
GetPermissionList({ commit }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let currentRouterData = JSON.parse(JSON.stringify(routerData))
|
||||
let menuData = []
|
||||
/**判断用户角色**/
|
||||
let userIdentity
|
||||
@@ -241,9 +243,9 @@ const user = {
|
||||
// 通过roleCode === 3 判断是否显示人员信息
|
||||
let allMenuData = []
|
||||
if(userInfo.roleCode + '' !== '3' ){
|
||||
allMenuData = routerData.filter(menu => menu.id !== '16')
|
||||
allMenuData = currentRouterData.filter(menu => menu.id !== '16')
|
||||
}else {
|
||||
allMenuData = routerData
|
||||
allMenuData = currentRouterData
|
||||
}
|
||||
|
||||
/**判断用户角色-end*/
|
||||
@@ -251,22 +253,26 @@ const user = {
|
||||
// 不是标协会员,则不显示标协会员的全部菜单
|
||||
case '0':
|
||||
menuData = allMenuData.filter(tt => tt.id.indexOf('standards') === -1)
|
||||
// menuData = allMenuData
|
||||
break
|
||||
// 是标协会员企业管理员,显示系统全部菜单
|
||||
case '1':
|
||||
menuData = allMenuData
|
||||
menuData = allMenuData.filter(tt => tt.id !== '17')
|
||||
break
|
||||
// 是标协会员但不是企业管理员,不显示标协会员下的会员管理、证书管理、缴费信息、理事会四个菜单
|
||||
case '2':
|
||||
routerData.forEach(item => {
|
||||
currentRouterData.forEach(item => {
|
||||
if (item.children && item.children.length > 0) {
|
||||
let tt = item
|
||||
tt.children = item.children.filter(aa => (aa.id.indexOf('standardsMemberManagement') === -1 && aa.id.indexOf('standardsCertificateManagement') === -1 && aa.id.indexOf('standardsPaymentInfo') === -1 && aa.id.indexOf('standardsCouncil')))
|
||||
menuData.push(tt)
|
||||
} else {
|
||||
menuData.push(item)
|
||||
if(item.id !== '17') {
|
||||
menuData.push(item)
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log('--menuData--------', menuData)
|
||||
break
|
||||
// 是标协会员理事,不显示标协会员下的会员管理、证书管理、缴费信息三个菜单
|
||||
case '3' :
|
||||
@@ -276,7 +282,9 @@ const user = {
|
||||
tt.children = item.children.filter(aa => (aa.id.indexOf('standardsMemberManagement') === -1 && aa.id.indexOf('standardsCertificateManagement') === -1 && aa.id.indexOf('standardsPaymentInfo') === -1))
|
||||
menuData.push(tt)
|
||||
} else {
|
||||
menuData.push(item)
|
||||
if(item.id !== '17') {
|
||||
menuData.push(item)
|
||||
}
|
||||
}
|
||||
})
|
||||
break
|
||||
|
||||
@@ -588,6 +588,9 @@
|
||||
<section class="base-info">
|
||||
<h3 class="title">会议资料</h3>
|
||||
<!-- 报名成功才显示查看按钮-->
|
||||
<div class="table-operator" style="margin-bottom: 15px">
|
||||
<a-button type="primary" icon="plus" >资料上传</a-button>
|
||||
</div>
|
||||
<file-table :file-id="model.meetingData" :has-limit-bool="true" :meeting-id="model.id"
|
||||
:show-detail-bool="showDetailBool"></file-table>
|
||||
</section>
|
||||
@@ -601,6 +604,7 @@
|
||||
</section>
|
||||
<!--会议纪要end-->
|
||||
<!--问题征集 --标协会议:并且会议的是否需要会议征集为需要 && 报名状态是已报名 存在 begin-->
|
||||
<!-- {{model.meetingType === MeetingTypeEnums.standard.index }} --{{model.isAddQuestion === '1'}} ---{{hasQuestionList}}-->
|
||||
<section
|
||||
class="base-info"
|
||||
v-if="model.meetingType === MeetingTypeEnums.standard.index && model.isAddQuestion === '1' && hasQuestionList"
|
||||
|
||||
@@ -0,0 +1,219 @@
|
||||
<template>
|
||||
|
||||
<div class="main-box member-basic-info">
|
||||
<a-spin :spinning="isLoading">
|
||||
<div class="panel-cell">
|
||||
<div class="title">秘书处信息</div>
|
||||
<div class="content">
|
||||
<div class="info-row">
|
||||
<span class="label-span">挂靠单位:</span>
|
||||
<span class="value-span">中国汽车技术研究中心有限公司标准化研究院</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="label-span">地址:</span>
|
||||
<span class="value-span">{{ secretariatInfo.address }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="label-span">联系人:</span>
|
||||
<span class="value-span">{{ secretariatInfo.contactPerson }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="label-span">联系人电话:</span>
|
||||
<span class="value-span">{{ secretariatInfo.contactPhone }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="label-span">联系人邮箱:</span>
|
||||
<span class="value-span">{{ secretariatInfo.contactMail }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-cell">
|
||||
<div class="title">本企业信息</div>
|
||||
<div class="panel-cell-top" v-if="isShowEdit">
|
||||
<a-button type="link" @click="handleEdit">
|
||||
编辑
|
||||
<img src="../../assets/imgs/icon/icon-edit.png" class="title-icon">
|
||||
</a-button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="info-row">
|
||||
<span class="label-span">企业名称:</span>
|
||||
<span class="value-span">{{ memberInfo.companyName|| loginUserInfo.companyName }}</span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="value-span">如若需要注册企业会员,请前往<a :href="memberRegisterUrl" target="_blank">网站</a>注册</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</a-spin>
|
||||
<basic-model ref="basicModel" @ok="refreshInfo"></basic-model>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getMemberBaseInfo } from '../../api/standardsAssociationApi'
|
||||
import BasicModel from './modules/BasicModel'
|
||||
import { mapGetters, mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'BasicInfo',
|
||||
components: {
|
||||
BasicModel
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
// 秘书处信息
|
||||
secretariatInfo: {
|
||||
address: '东丽区', // 地址
|
||||
contactPerson: '郭某某', // 联系人
|
||||
contactPhone: '022-5907252', // 联系人电话
|
||||
contactMail: '113222222222222@qq.c113222222222222113222222222222113222222222222113222222222222113222222222222113222222222222113222222222222om' // 联系人邮箱
|
||||
},
|
||||
// 本企业信息
|
||||
memberInfo: {
|
||||
companyName: '', // 企业名称
|
||||
contactPerson: '', // 企业管理员
|
||||
contactPhone: '', // 管理员电话
|
||||
contactMail: '', // 管理员邮箱
|
||||
validDate: 'xxxx年xx月xx日到xxxx年xx月xx日' // 会员有效期
|
||||
},
|
||||
// 当前登录用户的信息
|
||||
loginUserInfo: {},
|
||||
memberInfoInit: {} // 会员的初始化信息,用于编辑使用
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
// 是否显示编辑按钮,当A企业角色为会员企业:(1--普通企业;2--会员企业)B当前登录人是企业管理员 的时候返回true
|
||||
isShowEdit() {
|
||||
if(Number((this.loginUserInfo || {}).companyRole) === 2 && (this.loginUserInfo || {}).roleCode + '' === '2') {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
memberRegisterUrl() {
|
||||
return window._CONFIG['memberRegisterUrl']
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 获得会员相关数据的字段
|
||||
getBasicInfo() {
|
||||
this.isLoading = true
|
||||
getMemberBaseInfo({}).then(res => {
|
||||
if(res.success) {
|
||||
const secretariatInfo = res.result.tbContacts || {}
|
||||
this.secretariatInfo.address = secretariatInfo.address || '天津市东丽开发区先锋东路68号'
|
||||
this.secretariatInfo.contactPerson = res.result.secretariat.realname || '郭琳'
|
||||
this.secretariatInfo.contactPhone = secretariatInfo.telephone
|
||||
this.secretariatInfo.contactMail = secretariatInfo.email
|
||||
const memberInfo = res.result.memberInfo || {}
|
||||
this.memberInfoInit = memberInfo
|
||||
this.memberInfo.companyName = memberInfo.companyName
|
||||
this.memberInfo.contactPerson = memberInfo.liaisonMan
|
||||
this.memberInfo.contactPhone = memberInfo.mobile
|
||||
this.memberInfo.contactMail = memberInfo.email
|
||||
this.memberInfo.validDate = memberInfo.validDate
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isLoading = false
|
||||
})
|
||||
},
|
||||
// 编辑成功后的回调-刷新页面的数据
|
||||
refreshInfo() {
|
||||
this.getBasicInfo()
|
||||
},
|
||||
handleEdit() {
|
||||
this.$refs.basicModel.edit(this.memberInfoInit)
|
||||
},
|
||||
...mapGetters(['userInfo'])
|
||||
},
|
||||
created() {
|
||||
console.log("----window._CONFIG['memberRegisterUrl']--------", window._CONFIG['memberRegisterUrl'])
|
||||
this.getBasicInfo()
|
||||
this.loginUserInfo = this.userInfo()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.member-basic-info {
|
||||
margin-bottom: 20px;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
opacity: 1;
|
||||
/deep/.ant-spin-container{
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.panel-cell {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
height: 419px;
|
||||
//padding: 10px;
|
||||
background: #ffffff;
|
||||
border-radius: 4px;
|
||||
box-shadow: -2px 0px 10px 10px rgba(51, 51, 51, 0.10);
|
||||
background: #ffffff;
|
||||
|
||||
.title {
|
||||
height: 56px;
|
||||
line-height: 56px;
|
||||
background: #fff;
|
||||
border-bottom: 2px solid #f2f2f2;
|
||||
padding: 0 20px;
|
||||
font-size: 16px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 10px;
|
||||
// 每行数据
|
||||
.info-row {
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: baseline;
|
||||
|
||||
& > span {
|
||||
display: inline-block;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.label-span {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.value-span {
|
||||
width: 0;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.panel-cell + .panel-cell {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
.panel-cell-top{
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 5px;
|
||||
img{
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -191,9 +191,9 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 会员批复文件下载
|
||||
uploadApproveFile(val) {
|
||||
async uploadApproveFile(val) {
|
||||
const url = `/memberInfo/memberInfo/downloadApprovalPdf?companyName=${encodeURIComponent(val.companyName)}&memberId=${val.id}`
|
||||
downloadFile(url, '会员批复文件.pdf')
|
||||
await downloadFile(url, '会员批复文件.pdf')
|
||||
},
|
||||
// tab按钮的切换
|
||||
switchNav(index) {
|
||||
|
||||
@@ -51,8 +51,9 @@
|
||||
<a-form :form="form" style="margin-left: 10px" :selfUpdate="true">
|
||||
<a-divider orientation="left">
|
||||
缴费信息
|
||||
<!-- v-if="isMember === 'member'"-->
|
||||
<span
|
||||
v-if="isMember === 'member'"
|
||||
|
||||
class="charge-notice"
|
||||
@click="downChargeNotice(newestNoticeInfo.chargeNoticeFileId)">{{
|
||||
newestNoticeInfo.chargeNoticeName
|
||||
|
||||
Reference in New Issue
Block a user