Commit f7ba9b9f by Lyan

bug修改

parent 0d014ab0
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_CURRENTMODE = "production" VUE_APP_CURRENTMODE = "production"
VUE_APP_HOST_URL = "http://192.168.0.77:9091" VUE_APP_HOST_URL = "http://192.168.0.81:9091"
VUE_APP_API_URL = "http://192.168.0.77:9091" VUE_APP_API_URL = "http://192.168.0.81:9091"
VUE_APP_GDS_URL = "http://data-studio.gds.org.cn" VUE_APP_GDS_URL = "http://data-studio.gds.org.cn"
VUE_APP_LOG = false VUE_APP_LOG = false
VUE_APP_CHINATM_URL = http://192.168.0.77/chinatm VUE_APP_CHINATM_URL = http://192.168.0.81/chinatm
NODE_ENV = "production" NODE_ENV = "production"
VUE_APP_CURRENTMODE = "production" VUE_APP_CURRENTMODE = "production"
VUE_APP_HOST_URL = "http://192.168.0.77:9091" VUE_APP_HOST_URL = "http://192.168.0.81:9091"
VUE_APP_API_URL = "http://192.168.0.77:9091" VUE_APP_API_URL = "http://192.168.0.81:9091"
VUE_APP_GDS_URL = "http://data-studio.gds.org.cn" VUE_APP_GDS_URL = "http://data-studio.gds.org.cn"
VUE_APP_CHINATM_URL = "http://192.168.0.77:80/chinatm" VUE_APP_CHINATM_URL = "http://192.168.0.81:80/chinatm"
VUE_APP_LOG = false VUE_APP_LOG = false
...@@ -30,6 +30,10 @@ const serviceGetCaseDetailInfo = (params = {}) => { ...@@ -30,6 +30,10 @@ const serviceGetCaseDetailInfo = (params = {}) => {
const serviceGetPartnersDetailInfo = (params = {}) => { const serviceGetPartnersDetailInfo = (params = {}) => {
return POST(`${Prefix}/office/partners/api/getDetailInfo`, params) return POST(`${Prefix}/office/partners/api/getDetailInfo`, params)
} }
// 获取路径
const filePath = (params = {}) => {
return POST(`${Prefix}/office/domain/api/filePath`, params)
}
export default { export default {
getCodeBook, getCodeBook,
...@@ -37,4 +41,5 @@ export default { ...@@ -37,4 +41,5 @@ export default {
serviceCasesFrontList, serviceCasesFrontList,
serviceGetCaseDetailInfo, serviceGetCaseDetailInfo,
serviceGetPartnersDetailInfo, serviceGetPartnersDetailInfo,
filePath
} }
...@@ -72,6 +72,7 @@ export default { ...@@ -72,6 +72,7 @@ export default {
if (nav.class) { if (nav.class) {
classNames.push(...nav.class) classNames.push(...nav.class)
} }
return ( return (
<div class={classNames.join(" ").trim()} style={{...nav.style}}> <div class={classNames.join(" ").trim()} style={{...nav.style}}>
<div <div
......
...@@ -84,6 +84,7 @@ export default { ...@@ -84,6 +84,7 @@ export default {
currentNav: "0", currentNav: "0",
preActive: "", preActive: "",
showDropDown: '', showDropDown: '',
navShow:false
}; };
}, },
watch: { watch: {
...@@ -162,9 +163,7 @@ export default { ...@@ -162,9 +163,7 @@ export default {
}, },
handleWindowClick() { handleWindowClick() {
console.log('handleWindowClick', this.fromNav, this.preActive);
console.log('fromNav', this.fromNav);
console.log('preActive', this.preActive);
if (!this.fromNav) { if (!this.fromNav) {
this.showDropDown = '' this.showDropDown = ''
} }
...@@ -177,8 +176,8 @@ export default { ...@@ -177,8 +176,8 @@ export default {
}, },
handleNavClick(nav) { handleNavClick(nav) {
console.log('handleNavClick', nav) console.log('handleNavClick', nav)
this.showDropDown = nav.id; this.showDropDown = nav.id;
if (!nav.children || nav.children.length === 0) { if (!nav.children || nav.children.length === 0) {
this.currentNav = nav.id; this.currentNav = nav.id;
...@@ -187,7 +186,7 @@ export default { ...@@ -187,7 +186,7 @@ export default {
} else { } else {
// 点击事件不来自子代导航item // 点击事件不来自子代导航item
if (!this.fromDropdown) { if (!this.fromDropdown) {
// console.log('!this.fromDropdown', this.currentNav, nav.id) console.log(this.fromDropdown, this.currentNav, nav.id)
// 重复点击同一个nav // 重复点击同一个nav
if (this.currentNav === nav.id) { if (this.currentNav === nav.id) {
// 不改变状态 // 不改变状态
...@@ -204,6 +203,8 @@ export default { ...@@ -204,6 +203,8 @@ export default {
} }
} }
} }
}, },
handleItemClick(item) { handleItemClick(item) {
......
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
<style> <style>
.enter_box .input_box .el-input, .enter_box .input_box .el-input,
.enter_box .input_box .el-input .el-input__inner { .enter_box .input_box .el-input .el-input__inner {
width: 242px; width: 270px;
height: 42px; height: 42px;
} }
.enter_box .input_box .el-input { .enter_box .input_box .el-input {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</button> </button>
</li> </li>
</ul> </ul>
<div class="tab-content" id="myTabContent"> <div class="tab-content" id="myTabContent" ref="tablist">
<div <div
v-for="(tmp, i) in list" v-for="(tmp, i) in list"
:key="i" :key="i"
...@@ -88,6 +88,13 @@ export default { ...@@ -88,6 +88,13 @@ export default {
immediate: true, immediate: true,
} }
}, },
created() {
this.$nextTick(() => {
// 禁用选择
this.$refs.tablist.onselectstart = new Function("event.returnValue=false");
});
},
methods: { methods: {
init() { init() {
this.setLogoutFlag(this.$route.query.type); this.setLogoutFlag(this.$route.query.type);
...@@ -183,5 +190,6 @@ export default { ...@@ -183,5 +190,6 @@ export default {
} }
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
display: inline-block; display: inline-block;
width: 11px; width: 11px;
height: 11px; height: 11px;
background: #50c96b; // background: #50c96b;
margin-left: 3px; margin-left: 3px;
margin-right: 9px; margin-right: 9px;
border-radius: 50%; border-radius: 50%;
......
...@@ -91,10 +91,16 @@ export default { ...@@ -91,10 +91,16 @@ export default {
}, },
async saveUpdatePass() { async saveUpdatePass() {
this.form['id'] = this.loginInfo.id this.form['id'] = this.loginInfo.id
this.form['userType']=this.loginInfo.userType
let that =this
const result = await this.$api.myManage.saveUpdatePass(this.form) const result = await this.$api.myManage.saveUpdatePass(this.form)
if (result.success) { if (result.success) {
this.$message.success('密码修改成功') this.$message.success('密码修改成功')
this.resetForm() this.resetForm()
localStorage.clear()
setTimeout(function(){
that.$router.push({path: "/login"});
},1000)
} else { } else {
this.$message.error(result.returnMsg) this.$message.error(result.returnMsg)
} }
......
<template>
<div class="container2">
<div class="header">
<p>
网站最新推出<a href="http://wsdt.ancc.org.cn/anccoh/">在线注册</a>
&nbsp;&nbsp;<a href="#">在线续展</a>&nbsp;&nbsp;<a href="#">
产品信息通报</a
>等业务
</p>
</div>
<div class="content">
<div class="title">业务提醒专区</div>
<div class="content-list">
<ul>
<li>
<p class="content-title">商品条码相关业务</p>
<p>请直接登录<a @click="redirectYWDT">网上业务大厅</a>办理商品条码</p>
</li>
<!-- 厂商实名认证已认证 -->
<li v-if="loginInfo.isQY === 1">
<p class="content-title">
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
</p>
<p>
<i class="bi bi-check-circle-fill"></i>
您已成为中国物品编码中心实名认证企业!
</p>
<p v-if="isShowGDS" style="padding-left:24px">
您可以——前往
<a @click="redirectGDS">中国商品信息服务平台</a>
<!-- 办理
<a @click="redirectGDS">“通报进口商品信息” “开通条码微站” “使用数据总资产服务”!</a> -->
</p>
<p v-if="loginInfo.isXT === 2" style="padding-left:24px">
您可以——前往<a @click="redirectGLN">购买GLN</a
>
</p>
</li>
<!-- 厂商实名认证未认证 -->
<li v-if="loginInfo.isQY === 2">
<p class="content-title">
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
<!-- <label :style="tycpdmFirmInfo.logoutFlag === 0?'color: #50c96b':'color: #ff0033'">{{tycpdmFirmInfo.logoutFlag === 0 ? '(审核中)' : tycpdmFirmInfo.logoutFlag === 2 ? '(审核不通过)' : ''}}</label> -->
</p>
<p>1、进口商品数据服务</p>
<p class="list-cnt">
通报进口商品数据,生成进口商品“身份证”,提供条码国际校验、数据全网分享等服务,实现进口商品扫码查询,助力进口产品入市、进场。
</p>
<p>2、GLN申请</p>
<p class="list-cnt">
快速申请、维护GLN信息,并对外提供GLN信息查询验证。帮助企业在EDI、GDSN、海关、追溯等应用场景中,有效识别企业主体与地理位置等信息。
</p>
<p class="list-cnt">
点击办理<a href="https://www.gds.org.cn/#/enterpriseAuth/index" target="blank">厂商实名认证</a>
</p>
<!-- <div v-if="!tycpdmFirmInfo || (tycpdmFirmInfo.logoutFlag === -1 || tycpdmFirmInfo.logoutFlag === null)" class="list-img row">
<div class="img-p col-lg-4">
<a href="/MyManage/UnVerify/vendor">
<img src="../../../assets/image/mymanage/tx.png" alt="" />
<p>填写申请信息</p>
</a>
</div>
<div class="img-p col-lg-4">
<a href="/MyManage/UnVerify/vendor">
<img src="../../../assets/image/mymanage/tj.png" alt="" />
<p>提交书面材料</p>
</a>
</div>
<div class="img-p col-lg-4">
<a href="/MyManage/UnVerify/vendor">
<img src="../../../assets/image/mymanage/sh.png" alt="" />
<p>审核状态</p>
</a>
</div>
</div> -->
</li>
<!-- 一期先不上线检测校准申请,暂时把个人中心首页的检测校准申请相关内容进行隐藏(包括检测校准申请菜单项)-->
<!-- 校准未认证 -->
<!-- <li>-->
<!-- <p class="content-title">-->
<!-- 检测校准申请(办理“条码印制品检测”、“条码检测仪校准”等业务需先完成此申请)-->
<!-- </p>-->
<!-- <p>1、条码印制品检测</p>-->
<!-- <p class="list-cnt">-->
<!-- 对商品条码、商品二维码、GS1通用规范(GS1 General-->
<!-- Specifications)、医疗UDI、汽车零部件标识、追溯码、服装条码、名片二维码、物流编码等提供检验检测服务,出具检验检测报告。-->
<!-- </p>-->
<!-- <p>2、条码检测仪校准</p>-->
<!-- <p class="list-cnt">-->
<!-- 对条码检测仪的最高反射率、最低反射率、可译码度、缺陷度、轴向不一致性、网格不一致性、反差一致性等测量参数进行校准,出具校准证书。-->
<!-- </p>-->
<!-- <div class="list-img row">-->
<!-- <div class="img-p col-lg-4">-->
<!-- <a href="/MyManage/UnVerify/calibration">-->
<!-- <img src="../../../assets/image/mymanage/tx.png" alt="" />-->
<!-- <p>填写校准信息</p>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="img-p col-lg-4">-->
<!-- <a href="/MyManage/UnVerify/uploadcalibration">-->
<!-- <img src="../../../assets/image/mymanage/tj.png" alt="" />-->
<!-- <p>提交书面材料</p>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="img-p col-lg-4">-->
<!-- <a href="/MyManage/UnVerify/shcalibration">-->
<!-- <img src="../../../assets/image/mymanage/sh.png" alt="" />-->
<!-- <p>审核状态</p>-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- </li>-->
<!-- 校准已认证 -->
<!-- <li v-if="false">-->
<!-- <p class="content-title">-->
<!-- 检测校准申请(办理“条码印制品检测”、“条码检测仪校准”等业务需先完成此申请)-->
<!-- </p>-->
<!-- <p>-->
<!-- <i class="bi bi-check-circle-fill"></i-->
<!-- >您已成为中国物品编码中心检验检测/校准客户!-->
<!-- </p>-->
<!-- <p style="padding-left:24px">您可以——办理条码印制品检测</p>-->
<!-- <p style="padding-left:24px">您可以——办理条码检测仪校准</p>-->
<!-- <p style="padding-left:24px">若想申请办理上述业务,请您联系:</p>-->
<!-- <p style="padding-left:24px">-->
<!-- 王工<i class="bi bi-telephone-fill color-grey"></i>010-84295493-->
<!-- <i class="bi bi-envelope-fill color-grey"></i>wanghy@ancc.org.cn-->
<!-- <i class="qe color-grey"></i>2308350380-->
<!-- </p>-->
<!-- <p style="padding-left:24px">-->
<!-- 胡工<i class="bi bi-telephone-fill color-grey"></i>010-84295499-->
<!-- <i class="bi bi-envelope-fill color-grey"></i-->
<!-- >hum@ancc.org.cn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i-->
<!-- class="qe color-grey"-->
<!-- ></i-->
<!-- >1246978728-->
<!-- </p>-->
<!-- </li>-->
</ul>
</div>
</div>
</div>
</template>
<script>
export default {
name: "index",
data () {
return {
isShowGDS: false,
memberInfo: {},
tycpdmFirmInfo: {
logoutFlag:null
},
loginInfo: {
carno: '', // 条码卡号
id: 16, // 用户ID
isQY: 2, // 是否开通企业认证 1.是 2.否
isXT: 2, // 是否是业务大厅系统成员 1.是 2.否
userType: 3, // 用户类型 1、业务大厅(手机号用户);2、业务大厅(条码成员);3、官网用户
levels: 0 // 用户权限 空.普通用户 0.中心管理员 1.校验管理员 其他4位.分中心管理员
}
}
},
methods: {
//业务大厅跳转
async redirectYWDT() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id}
const result = await this.$api.myManage.redirectYWDT(params)
if (result.success) {
window.open(result.data, '_blank')
} else {
this.$message.error(result.returnMsg)
}
},
// 跳转
async redirectGDS() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id, carno: this.loginInfo.carno}
const result = await this.$api.myManage.redirectGDS(params)
if (result.success) {
window.open(result.data, '_blank')
} else {
this.$message.error(result.returnMsg)
}
},
// 跳转
async redirectGLN() {
const result = await this.$api.myManage.redirectGLN()
if (result.success) {
window.open(result.data, '_blank')
} else {
this.$message.error(result.returnMsg)
}
},
// 初始化实名认证显示内容
initIsShowGDS() {
if (this.loginInfo.carno) this.isShowGDS = true // 有条码卡号可以进行GDS跳转
if (this.loginInfo.isQY) this.isShowGDS = true // 官网用户已进行实名厂商认证可以进行GDS跳转
},
async getTycpdmFirmInfo() {
const result = await this.$api.myManage.tycpdmFirmInfoNoAuth({name: this.memberInfo.username})
if(result.data){
this.tycpdmFirmInfo = result.data
}else{
this.tycpdmFirmInfo.logoutFlag=null
}
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
await this.getTycpdmFirmInfo()
}
},
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
console.log(this.loginInfo)
this.initIsShowGDS()
this.getMemberInfo()
}
}
</script>
<style lang="scss" scoped>
.container2 {
.header {
min-height: 50px;
background: #fef1ec;
text-align: center;
color: #f26335;
font-size: 16px;
// font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
p {
margin: 0;
line-height: 50px;
font-weight: 500;
// font-family: PingFangSC-Medium, PingFang SC;
a {
text-decoration: none;
color: #00799e;
}
}
}
.content {
@include module-box;
margin-top: 14px;
.title {
color: #f26335;
font-size: 16px;
padding: 20px 40px;
border: 1px solid #f3f3f3;
// font-family: PingFangSC-Medium, PingFang SC;
}
.content-list {
font-size: 14px;
line-height: 20px;
// font-family: PingFangSC-Medium, PingFang SC;
ul {
li {
margin-top: 19px;
border-bottom: 1px dashed #b4cdeb;
padding-left: 40px;
padding-bottom: 6px;
p:first-child {
color: #414345;
font-weight: 500;
// font-family: PingFangSC-Medium, PingFang SC;
}
p:first-child::before {
content: "●";
color: #f26335;
margin-right: 5px;
}
p {
margin-bottom: 14px;
font-weight: 400;
i {
color: #50c96b;
margin-right: 10px;
}
.bi-check-circle-fill {
position: relative;
display: inline-block;
width: 11px;
height: 11px;
// background: #50c96b;
margin-left: 3px;
margin-right: 9px;
border-radius: 50%;
}
.color-grey {
color: #666666;
margin: 0 5px 0 20px;
}
.qe {
display: inline-block;
width: 14px;
height: 14px;
background: url("../../../assets/image/mymanage/qe.png") no-repeat;
background-size: cover;
}
}
.list-cnt {
font-size: 13px;
color: #666666;
}
.list-img {
margin-top: 31px;
text-align: center;
a {
color: #414345;
}
img {
width: 46px;
height: 46px;
margin-bottom: 16px;
}
}
}
li:last-child {
border: none;
margin-bottom: 40px;
}
}
a {
text-decoration: none;
color: #00799e;
margin: 0 5px;
}
}
}
}
</style>
<style lang="scss" scoped>
.content {
@media screen and (max-width: 992px) {
ul {
padding: 0 10px;
}
}
}
</style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="header"> <div class="header">
<p> <p>
网站最新推出<a href="http://wsdt.ancc.org.cn/anccoh/">在线注册</a> 网站最新推出<a href="http://wsdt.ancc.org.cn/anccoh/">在线注册</a>
&nbsp;&nbsp;<a href="#">在线续展</a>&nbsp;&nbsp;<a href="#"> &nbsp;&nbsp;<a href="/Business/Renewal">在线续展</a>&nbsp;&nbsp;<a href="http://wsdt.ancc.org.cn/anccoh/">
产品信息通报</a 产品信息通报</a
>等业务 >等业务
</p> </p>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<p>请直接登录<a @click="redirectYWDT">网上业务大厅</a>办理商品条码</p> <p>请直接登录<a @click="redirectYWDT">网上业务大厅</a>办理商品条码</p>
</li> </li>
<!-- 厂商实名认证已认证 --> <!-- 厂商实名认证已认证 -->
<li v-if="loginInfo.isQY === 1"> <li v-if="loginInfo.userType === 3">
<p class="content-title"> <p class="content-title">
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证) 厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
</p> </p>
...@@ -25,19 +25,19 @@ ...@@ -25,19 +25,19 @@
<i class="bi bi-check-circle-fill"></i> <i class="bi bi-check-circle-fill"></i>
您已成为中国物品编码中心实名认证企业! 您已成为中国物品编码中心实名认证企业!
</p> </p>
<p v-if="isShowGDS" style="padding-left:24px"> <p style="padding-left:24px">
您可以——前往 您可以——前往
<a @click="redirectGDS">中国商品信息服务平台</a> <a @click="redirectGDS">中国商品信息服务平台</a>
<!-- 办理 办理“通报进口商品信息” “开通条码微站” “使用数据总资产服务”!
<a @click="redirectGDS">“通报进口商品信息” “开通条码微站” “使用数据总资产服务”!</a> -->
</p> </p>
<p v-if="loginInfo.isXT === 2" style="padding-left:24px"> <p style="padding-left:24px">
您可以——前往<a @click="redirectGLN">购买GLN</a 您可以——前往<a @click="redirectGLN">购买GLN</a
> >
</p> </p>
</li> </li>
<!-- 厂商实名认证未认证 --> <!-- 厂商实名认证未认证 -->
<li v-if="loginInfo.isQY === 2"> <li v-if="loginInfo.userType === 4">
<p class="content-title"> <p class="content-title">
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证) 厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
<!-- <label :style="tycpdmFirmInfo.logoutFlag === 0?'color: #50c96b':'color: #ff0033'">{{tycpdmFirmInfo.logoutFlag === 0 ? '(审核中)' : tycpdmFirmInfo.logoutFlag === 2 ? '(审核不通过)' : ''}}</label> --> <!-- <label :style="tycpdmFirmInfo.logoutFlag === 0?'color: #50c96b':'color: #ff0033'">{{tycpdmFirmInfo.logoutFlag === 0 ? '(审核中)' : tycpdmFirmInfo.logoutFlag === 2 ? '(审核不通过)' : ''}}</label> -->
...@@ -74,68 +74,7 @@ ...@@ -74,68 +74,7 @@
</div> </div>
</div> --> </div> -->
</li> </li>
<!-- 一期先不上线检测校准申请,暂时把个人中心首页的检测校准申请相关内容进行隐藏(包括检测校准申请菜单项)-->
<!-- 校准未认证 -->
<!-- <li>-->
<!-- <p class="content-title">-->
<!-- 检测校准申请(办理“条码印制品检测”、“条码检测仪校准”等业务需先完成此申请)-->
<!-- </p>-->
<!-- <p>1、条码印制品检测</p>-->
<!-- <p class="list-cnt">-->
<!-- 对商品条码、商品二维码、GS1通用规范(GS1 General-->
<!-- Specifications)、医疗UDI、汽车零部件标识、追溯码、服装条码、名片二维码、物流编码等提供检验检测服务,出具检验检测报告。-->
<!-- </p>-->
<!-- <p>2、条码检测仪校准</p>-->
<!-- <p class="list-cnt">-->
<!-- 对条码检测仪的最高反射率、最低反射率、可译码度、缺陷度、轴向不一致性、网格不一致性、反差一致性等测量参数进行校准,出具校准证书。-->
<!-- </p>-->
<!-- <div class="list-img row">-->
<!-- <div class="img-p col-lg-4">-->
<!-- <a href="/MyManage/UnVerify/calibration">-->
<!-- <img src="../../../assets/image/mymanage/tx.png" alt="" />-->
<!-- <p>填写校准信息</p>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="img-p col-lg-4">-->
<!-- <a href="/MyManage/UnVerify/uploadcalibration">-->
<!-- <img src="../../../assets/image/mymanage/tj.png" alt="" />-->
<!-- <p>提交书面材料</p>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div class="img-p col-lg-4">-->
<!-- <a href="/MyManage/UnVerify/shcalibration">-->
<!-- <img src="../../../assets/image/mymanage/sh.png" alt="" />-->
<!-- <p>审核状态</p>-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- </li>-->
<!-- 校准已认证 -->
<!-- <li v-if="false">-->
<!-- <p class="content-title">-->
<!-- 检测校准申请(办理“条码印制品检测”、“条码检测仪校准”等业务需先完成此申请)-->
<!-- </p>-->
<!-- <p>-->
<!-- <i class="bi bi-check-circle-fill"></i-->
<!-- >您已成为中国物品编码中心检验检测/校准客户!-->
<!-- </p>-->
<!-- <p style="padding-left:24px">您可以——办理条码印制品检测</p>-->
<!-- <p style="padding-left:24px">您可以——办理条码检测仪校准</p>-->
<!-- <p style="padding-left:24px">若想申请办理上述业务,请您联系:</p>-->
<!-- <p style="padding-left:24px">-->
<!-- 王工<i class="bi bi-telephone-fill color-grey"></i>010-84295493-->
<!-- <i class="bi bi-envelope-fill color-grey"></i>wanghy@ancc.org.cn-->
<!-- <i class="qe color-grey"></i>2308350380-->
<!-- </p>-->
<!-- <p style="padding-left:24px">-->
<!-- 胡工<i class="bi bi-telephone-fill color-grey"></i>010-84295499-->
<!-- <i class="bi bi-envelope-fill color-grey"></i-->
<!-- >hum@ancc.org.cn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i-->
<!-- class="qe color-grey"-->
<!-- ></i-->
<!-- >1246978728-->
<!-- </p>-->
<!-- </li>-->
</ul> </ul>
</div> </div>
</div> </div>
......
<template>
<div class="userInfo">
<div class="cnt">
<img src="../../../assets/image/mymanage/headImg.png" alt="">
<template v-if="type === UN_VERIFY">
<p>{{ userName }}/{{ phone }}{{ cardNo ? '/'+cardNo : '' }}</p>
<p>{{ userType }} | {{ nocardNo }}</p>
</template>
<template v-if="type === SYSTEM_MEMBER">
<p>{{ userName }}/{{ phone }}{{ cardNo ? '/'+cardNo : '' }}</p>
<p>{{ userType }} | {{ nocardNo }}</p>
</template>
<template v-else-if="type === ADMIN">
<p class="admin_name">{{ userName }}</p>
<p>- - - | 中心管理员</p>
</template>
<template v-else-if="type === ADMINBRANCH">
<p class="admin_name">{{ userName }}</p>
<p>- - - | 分中心管理员</p>
</template>
</div>
</div>
</template>
<script>
const UN_VERIFY = 0;
const SYSTEM_MEMBER = 1;
const ADMIN = 2;
const ADMINBRANCH = 3;
export default {
props: {
type: Number,
loginInfo: {type: Object, default: () => {}}
},
data() {
return {
UN_VERIFY,
SYSTEM_MEMBER,
ADMIN,
ADMINBRANCH,
userName: '用户名',
phone: '手机号',
cardNo: '条码卡号',
userType: '用户类别',
nocardNo: '未申请条码卡',
memberInfo: {}
};
},
methods: {
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
if (this.loginInfo.userType === 1) {
this.userName = this.loginInfo.username
this.phone = this.loginInfo.phone
} else {
this.userName = this.memberInfo.username
this.phone = this.memberInfo.phone
}
if (this.loginInfo.carno) {
this.nocardNo = '已申请条码卡'
this.cardNo = this.loginInfo.carno
} else {
this.nocardNo = '未申请条码卡'
this.cardNo = ''
}
switch (this.loginInfo.userType) {
case 1:
this.userType = '手机号用户'
break
case 2:
this.userType = '条码成员'
break
case 3:
this.userType = '网站用户'
}
this.loginInfo.isQY === 1 && (this.userType = '实名认证企业')
this.loginInfo.isXT === 1 && (this.userType = '系统成员')
}
},
mounted() {
this.getMemberInfo()
},
created() {
},
};
</script>
<style lang="scss" scoped>
.userInfo {
background: #fff;
min-height: 224px;
margin-bottom: 14px;
.cnt {
text-align: center;
img {
width: 80px;
height: 80px;
margin-top: 40px;
margin-bottom: 20px;
}
p {
margin-bottom: 0;
}
p:first-child {
font-size: 16px;
line-height: 24px;
color: #414345;
}
p:last-child {
font-size: 13px;
line-height: 18px;
color: #999999;
}
.admin_name{
margin-bottom: 6px;
}
}
}
</style>
...@@ -2,22 +2,23 @@ ...@@ -2,22 +2,23 @@
<div class="userInfo"> <div class="userInfo">
<div class="cnt"> <div class="cnt">
<img src="../../../assets/image/mymanage/headImg.png" alt=""> <img src="../../../assets/image/mymanage/headImg.png" alt="">
<template v-if="type === UN_VERIFY"> <template v-if="loginInfo.userType === 1">
<p>{{ userName }}/{{ phone }}{{ cardNo ? '/'+cardNo : '' }}</p> <p>{{ userName }} | {{ cardNo }}</p>
<p>{{ userType }} | {{ nocardNo }}</p> <p>{{ userType }} | {{ nocardNo }}</p>
</template> </template>
<template v-if="type === SYSTEM_MEMBER"> <template v-if="loginInfo.userType === 2">
<p>{{ userName }}/{{ phone }}{{ cardNo ? '/'+cardNo : '' }}</p> <p>{{ userName }}</p>
<p>{{ userType }} | {{ nocardNo }}</p> <p>{{ userType }} | {{ nocardNo }}</p>
</template> </template>
<template v-else-if="type === ADMIN"> <template v-if="loginInfo.userType === 3">
<p class="admin_name">{{ userName }}</p> <p>{{ userName }} | {{ phone }}</p>
<p>- - - | 中心管理员</p> <p>{{ userType }} | {{ nocardNo }}</p>
</template> </template>
<template v-else-if="type === ADMINBRANCH"> <template v-if="loginInfo.userType === 4">
<p class="admin_name">{{ userName }}</p> <p>{{ userName }} | {{ phone }}</p>
<p>- - - | 分中心管理员</p> <p>{{ userType }} | {{ nocardNo }}</p>
</template> </template>
</div> </div>
</div> </div>
...@@ -28,20 +29,14 @@ const SYSTEM_MEMBER = 1; ...@@ -28,20 +29,14 @@ const SYSTEM_MEMBER = 1;
const ADMIN = 2; const ADMIN = 2;
const ADMINBRANCH = 3; const ADMINBRANCH = 3;
export default { export default {
props: { props: ['type','loginInfo'],
type: Number,
loginInfo: {type: Object, default: () => {}}
},
data() { data() {
return { return {
UN_VERIFY,
SYSTEM_MEMBER,
ADMIN,
ADMINBRANCH,
userName: '用户名', userName: '用户名',
phone: '手机号', phone: '手机号',
cardNo: '条码卡号', cardNo: '条码卡号',
userType: '用户类别', userType: '',
nocardNo: '未申请条码卡', nocardNo: '未申请条码卡',
memberInfo: {} memberInfo: {}
}; };
...@@ -49,7 +44,7 @@ export default { ...@@ -49,7 +44,7 @@ export default {
methods: { methods: {
async getMemberInfo() { async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
if (this.loginInfo.userType === 1) { if (this.loginInfo.userType === 1 || this.loginInfo.userType==2) {
this.userName = this.loginInfo.username this.userName = this.loginInfo.username
this.phone = this.loginInfo.phone this.phone = this.loginInfo.phone
} else { } else {
...@@ -65,16 +60,19 @@ export default { ...@@ -65,16 +60,19 @@ export default {
} }
switch (this.loginInfo.userType) { switch (this.loginInfo.userType) {
case 1: case 1:
this.userType = '手机号用户' this.userType = '系统成员'
break break
case 2: case 2:
this.userType = '条码成员' this.userType = '手机用户'
break break
case 3: case 3:
this.userType = '网站用户' this.userType = '实名认证企业'
break
case 4:
this.userType='网站用户'
} }
this.loginInfo.isQY === 1 && (this.userType = '实名认证企业')
this.loginInfo.isXT === 1 && (this.userType = '系统成员')
} }
}, },
mounted() { mounted() {
...@@ -82,6 +80,7 @@ export default { ...@@ -82,6 +80,7 @@ export default {
}, },
created() { created() {
}, },
}; };
</script> </script>
......
<template>
<div class="nav-me container marginTop20 mb-5" style="position: relative">
<div class="row">
<div class="col-lg-3">
<UserInfo :type="userType" :loginInfo="loginInfo"/>
<SubNav/>
</div>
<div class="col-lg-9">
<router-view :key="$route.fullPath"></router-view>
</div>
</div>
</div>
</template>
<script>
import SubNav from "../comps/SubNav.vue";
import UserInfo from "./comps/userInfo.vue";
import {uuid} from "../../utils/utils";
const UN_VERIFY = 0;
const SYSTEM_MEMBER = 1;
const ADMIN = 2;
const ADMINBRANCH = 3;
export default {
components: {
SubNav,
UserInfo
},
data() {
return {
routerList: [
{
id: uuid("gs_nav"),
name: "首页",
index: 0,
link: "/MyManage/UnVerify/index",
},
{
id: uuid("gs_nav"),
name: "业务管理",
index: 1,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "商品条码在线注册",
index: 0,
link: "http://wsdt.ancc.org.cn/anccoh/",
},
{
id: uuid("gs_nav"),
name: "厂商实名认证",
index: 1,
// link: "/MyManage/UnVerify/vendor",
link:'https://www.gds.org.cn/#/enterpriseAuth/index',
},
// { // 一期先不上线,暂时把该菜单项进行隐藏(包括个人中心首页的检测校准申请相关内容)
// id: uuid("gs_nav"),
// name: "检测校准申请",
// index: 2,
// link: "/MyManage/UnVerify/calibration",
// },
],
},
{
id: uuid("gs_nav"),
name: "用户信息管理",
index: 2,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "个人资料",
index: 0,
link: "/MyManage/UnVerify/personalInfo",
},
{
id: uuid("gs_nav"),
name: "修改登录密码",
index: 1,
link: "/MyManage/UnVerify/changePass",
},
{
id: uuid("gs_nav"),
name: "修改手机号码",
index: 2,
link: "/MyManage/UnVerify/changePhone",
},
],
},
],
isQYRouterList: [
{
id: uuid("gs_nav"),
name: "首页",
index: 0,
link: "/MyManage/UnVerify/index",
},
{
id: uuid("gs_nav"),
name: "业务管理",
index: 1,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "商品条码在线注册",
index: 0,
link: "http://wsdt.ancc.org.cn/anccoh/",
},
// { // 一期先不上线,暂时把该菜单项进行隐藏(包括个人中心首页的检测校准申请相关内容)
// id: uuid("gs_nav"),
// name: "检测校准申请",
// index: 2,
// link: "/MyManage/UnVerify/calibration",
// },
],
},
{
id: uuid("gs_nav"),
name: "用户信息管理",
index: 2,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "个人资料",
index: 0,
link: "/MyManage/UnVerify/personalInfo",
},
// {
// id: uuid("gs_nav"),
// name: "企业信息",
// index: 1,
// link: '/MyManage/SystemMember/companyInfo'
// },
{
id: uuid("gs_nav"),
name: "修改登录密码",
index: 2,
link: "/MyManage/UnVerify/changePass",
},
{
id: uuid("gs_nav"),
name: "修改手机号码",
index: 3,
link: "/MyManage/UnVerify/changePhone",
},
// {
// id: uuid("gs_nav"),
// name: "变更企业信息",
// index: 4,
// link: "/MyManage/UnVerify/vendor",
// },
],
},
],
adminRouterList:[],//暂时屏蔽管理员审核
adminRouterList2: [
{
id: uuid("gs_nav"),
name: "业务审核",
index: 0,
link: "/MyManage/admin/check",
},
// {
// id: uuid("gs_nav"),
// name: "统一产品编码",
// index: 1,
// link: "/MyManage/admin/code",
// },
{
id: uuid("gs_nav"),
name: "审核状态修改",
index: 2,
link: "/MyManage/admin/status_change",
},
// {
// id: uuid("gs_nav"),
// name: "企业信息修改",
// index: 3,
// link: "/MyManage/admin/ent_info",
// },
{
id: uuid("gs_nav"),
name: "日志查看",
index: 4,
link: "/MyManage/admin/log",
},
],
adminBranchRouterList:[],//暂时屏蔽管理员审核
adminBranchRouterList2: [
{
id: uuid("gs_nav"),
name: "实名认证业务审核",
index: 1,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "企业实名认证",
index: 0,
link: "/MyManage/admin/check?type=new&status=3",
},
{
id: uuid("gs_nav"),
name: "企业实名认证变更",
index: 1,
link: "/MyManage/admin/check?type=change&status=3",
},
],
}
],
userType: ADMIN,
loginInfo: JSON.parse(localStorage.getItem('loginInfo'))
};
},
created() {
// // TODO 判断用户状态 处理一下左侧的 sub_nav 和用户panel
const user = JSON.parse(localStorage.getItem('gs-user'))
if(!user){
this.$router.push({path:'/login'})
}
// // 1. 未申请条码
// // 2.系统成员
// // 3.管理员
// // 4.分中心管理员
if (user.type === 'admin') {
this.userType = ADMIN;
} else if (user.type === 'adminBranch') {
this.userType = ADMINBRANCH;
} else if (user.type === 'verify') {
this.userType = SYSTEM_MEMBER;
} else {
this.userType = UN_VERIFY;
}
if (this.userType === UN_VERIFY) {
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
}
if (this.loginInfo.userType === 3 && this.loginInfo.isQY === 1) {
this.$store.commit("system/SET_SUB_NAV", this.isQYRouterList);
return
}
this.$store.commit("system/SET_SUB_NAV", this.routerList);
} else if (this.userType === SYSTEM_MEMBER) {
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
}
if (this.loginInfo.isXT === 1 && !this.loginInfo.carno) { // 未申请条码卡的系统成员没有商品条码在线注册菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.name !== '商品条码在线注册')
}
if (this.loginInfo.userType === 1 || this.loginInfo.userType === 2) { // 手机号登陆和条码可登陆用户不能有修改手机号菜单
this.routerList[2].children = this.routerList[2].children.filter(item => item.name !== '修改手机号码')
}
this.routerList[0].link = '/MyManage/SystemMember/index'
// if (this.loginInfo.isXT === 1 && this.loginInfo.carno) { // 申请条码卡的系统成员有企业信息菜单 和 变更企业信息菜单
// this.routerList[2].children.push({
// id: uuid("gs_nav"),
// name: "企业信息",
// index: 3,
// link: '/MyManage/SystemMember/companyInfo'
// })
// this.routerList[2].children.push({ // 不做任何页面跳转,只是给出提示
// id: uuid("gs_nav"),
// name: "变更企业信息",
// index: 4,
// link: '',
// alert: () => {window.alert('系统成员请联系所属分支机构办理企业信息变更!')}
// })
// }
if (this.loginInfo.userType === 2) { // 条码卡登陆用户,修改登录密码给出提示
this.routerList[2].children.some(item => {
const isReturn = item.name === '修改登录密码'
if (isReturn) {
item.link = ''
item.alert = () => {window.alert('系统成员请前往中国商品信息服务平台修改条码卡密码。')}
}
return isReturn
})
}
// 由于屏蔽了检测校准申请,所以未申请条码卡的系统成员的业务管理模块没有任何菜单(去除业务管理,二期开始开发后注销掉下方处理代码即可)
if (this.loginInfo.isXT === 1 && !this.loginInfo.carno) { // 未申请条码卡的系统成员没有商品条码在线注册菜单
this.routerList = this.routerList.filter(item => item.name !== '业务管理')
}
this.$store.commit("system/SET_SUB_NAV", this.routerList);
} else if (this.userType === ADMIN) {
this.$store.commit("system/SET_SUB_NAV", this.adminRouterList);
} else if (this.userType === ADMINBRANCH) {
this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList);
}
// this.$store.commit("system/SET_SUB_NAV", this.routerList);
},
methods: {},
};
</script>
<style>
.nav-me p {
line-height: 24px;
}
</style>
...@@ -90,12 +90,12 @@ export default { ...@@ -90,12 +90,12 @@ export default {
], ],
}, },
], ],
isQYRouterList: [ typeRouterList1: [
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "首页", name: "首页",
index: 0, index: 0,
link: "/MyManage/UnVerify/index", link: "/MyManage/SystemMember/index",
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
...@@ -105,16 +105,68 @@ export default { ...@@ -105,16 +105,68 @@ export default {
children: [ children: [
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "商品条码在线注册", name: "商品条码相关业务",
index: 0,
link: "",
},
{
id: uuid("gs_nav"),
name: "产品信息在线通报",
index: 0, index: 0,
link: "http://wsdt.ancc.org.cn/anccoh/", link: "http://wsdt.ancc.org.cn/anccoh/",
}, },
// { // 一期先不上线,暂时把该菜单项进行隐藏(包括个人中心首页的检测校准申请相关内容)
// id: uuid("gs_nav"), ],
// name: "检测校准申请", },
// index: 2, {
// link: "/MyManage/UnVerify/calibration", id: uuid("gs_nav"),
// }, name: "用户信息管理",
index: 2,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "修改登录密码",
index: 2,
link: "/MyManage/UnVerify/changePass",
},
],
},
],
typeRouterList2: [
{
id: uuid("gs_nav"),
name: "首页",
index: 0,
link: "/MyManage/UnVerify/index",
},
],
typeRouterList3: [
{
id: uuid("gs_nav"),
name: "首页",
index: 0,
link: "/MyManage/UnVerify/index",
},
{
id: uuid("gs_nav"),
name: "业务管理",
index: 1,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "商品条码相关业务",
index: 0,
link: "",
},
{
id: uuid("gs_nav"),
name: "产品信息在线通报",
index: 0,
link: "",
},
], ],
}, },
{ {
...@@ -129,92 +181,78 @@ export default { ...@@ -129,92 +181,78 @@ export default {
index: 0, index: 0,
link: "/MyManage/UnVerify/personalInfo", link: "/MyManage/UnVerify/personalInfo",
}, },
// {
// id: uuid("gs_nav"),
// name: "企业信息",
// index: 1,
// link: '/MyManage/SystemMember/companyInfo'
// },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "修改登录密码", name: "修改登录密码",
index: 2, index: 1,
link: "/MyManage/UnVerify/changePass", link: "/MyManage/UnVerify/changePass",
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "修改手机号码", name: "修改手机号码",
index: 3, index: 2,
link: "/MyManage/UnVerify/changePhone", link: "/MyManage/UnVerify/changePhone",
}, },
// {
// id: uuid("gs_nav"),
// name: "变更企业信息",
// index: 4,
// link: "/MyManage/UnVerify/vendor",
// },
], ],
}, },
], ],
adminRouterList:[],//暂时屏蔽管理员审核 typeRouterList4: [
adminRouterList2: [ {
{
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "业务审核", name: "首页",
index: 0, index: 0,
link: "/MyManage/admin/check", link: "/MyManage/UnVerify/index",
},
// {
// id: uuid("gs_nav"),
// name: "统一产品编码",
// index: 1,
// link: "/MyManage/admin/code",
// },
{
id: uuid("gs_nav"),
name: "审核状态修改",
index: 2,
link: "/MyManage/admin/status_change",
}, },
// { {
// id: uuid("gs_nav"),
// name: "企业信息修改",
// index: 3,
// link: "/MyManage/admin/ent_info",
// },
{
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "日志查看", name: "业务管理",
index: 4, index: 1,
link: "/MyManage/admin/log", link: "",
children: [
{
id: uuid("gs_nav"),
name: "商品条码相关业务",
index: 0,
link: "",
},
{
id: uuid("gs_nav"),
name: "厂商实名认证",
index: 0,
link: "https://www.gds.org.cn/#/enterpriseAuth/index",
},
],
}, },
],
adminBranchRouterList:[],//暂时屏蔽管理员审核
adminBranchRouterList2: [
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "实名认证业务审核", name: "用户信息管理",
index: 1, index: 2,
link: "", link: "",
children: [ children: [
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "企业实名认证", name: "个人资料",
index: 0, index: 0,
link: "/MyManage/admin/check?type=new&status=3", link: "/MyManage/UnVerify/personalInfo",
}, },
{ {
id: uuid("gs_nav"), id: uuid("gs_nav"),
name: "企业实名认证变更", name: "修改登录密码",
index: 1, index: 1,
link: "/MyManage/admin/check?type=change&status=3", link: "/MyManage/UnVerify/changePass",
},
{
id: uuid("gs_nav"),
name: "修改手机号码",
index: 2,
link: "/MyManage/UnVerify/changePhone",
}, },
], ],
} },
], ],
userType: ADMIN, loginInfo: JSON.parse(localStorage.getItem('loginInfo')),
loginInfo: JSON.parse(localStorage.getItem('loginInfo')) userType:1
}; };
}, },
created() { created() {
...@@ -223,79 +261,129 @@ export default { ...@@ -223,79 +261,129 @@ export default {
if(!user){ if(!user){
this.$router.push({path:'/login'}) this.$router.push({path:'/login'})
} }
// // 1. 未申请条码
// // 2.系统成员 if (this.loginInfo.userType==1) {
// // 3.管理员 this.typeRouterList1[1].children.some(item => {
// // 4.分中心管理员 let isReturn = item.name === '商品条码相关业务'
if (user.type === 'admin') {
this.userType = ADMIN;
} else if (user.type === 'adminBranch') {
this.userType = ADMINBRANCH;
} else if (user.type === 'verify') {
this.userType = SYSTEM_MEMBER;
} else {
this.userType = UN_VERIFY;
}
if (this.userType === UN_VERIFY) {
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
}
if (this.loginInfo.userType === 3 && this.loginInfo.isQY === 1) {
this.$store.commit("system/SET_SUB_NAV", this.isQYRouterList);
return
}
this.$store.commit("system/SET_SUB_NAV", this.routerList);
} else if (this.userType === SYSTEM_MEMBER) {
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
}
if (this.loginInfo.isXT === 1 && !this.loginInfo.carno) { // 未申请条码卡的系统成员没有商品条码在线注册菜单
this.routerList[1].children = this.routerList[1].children.filter(item => item.name !== '商品条码在线注册')
}
if (this.loginInfo.userType === 1 || this.loginInfo.userType === 2) { // 手机号登陆和条码可登陆用户不能有修改手机号菜单
this.routerList[2].children = this.routerList[2].children.filter(item => item.name !== '修改手机号码')
}
this.routerList[0].link = '/MyManage/SystemMember/index'
// if (this.loginInfo.isXT === 1 && this.loginInfo.carno) { // 申请条码卡的系统成员有企业信息菜单 和 变更企业信息菜单
// this.routerList[2].children.push({
// id: uuid("gs_nav"),
// name: "企业信息",
// index: 3,
// link: '/MyManage/SystemMember/companyInfo'
// })
// this.routerList[2].children.push({ // 不做任何页面跳转,只是给出提示
// id: uuid("gs_nav"),
// name: "变更企业信息",
// index: 4,
// link: '',
// alert: () => {window.alert('系统成员请联系所属分支机构办理企业信息变更!')}
// })
// }
if (this.loginInfo.userType === 2) { // 条码卡登陆用户,修改登录密码给出提示
this.routerList[2].children.some(item => {
const isReturn = item.name === '修改登录密码'
if (isReturn) { if (isReturn) {
item.link = '' item.link = ''
item.alert = () => {window.alert('系统成员请前往中国商品信息服务平台修改条码卡密码。')} item.alert = () => {this.redirectYWDT()}
} }
return isReturn return isReturn
})
this.typeRouterList1[1].children.some(item => {
let isReturn2 = item.name === '产品信息在线通报'
if (isReturn2) {
item.link = ''
item.alert = () => {this.redirectGDS()}
}
return isReturn2
}) })
} this.$store.commit("system/SET_SUB_NAV", this.typeRouterList1);
// 由于屏蔽了检测校准申请,所以未申请条码卡的系统成员的业务管理模块没有任何菜单(去除业务管理,二期开始开发后注销掉下方处理代码即可)
if (this.loginInfo.isXT === 1 && !this.loginInfo.carno) { // 未申请条码卡的系统成员没有商品条码在线注册菜单 }else if (this.loginInfo.userType==2) {
this.routerList = this.routerList.filter(item => item.name !== '业务管理') this.$store.commit("system/SET_SUB_NAV", this.typeRouterList2);
}
this.$store.commit("system/SET_SUB_NAV", this.routerList); }else if (this.loginInfo.userType==3) {
} else if (this.userType === ADMIN) { this.typeRouterList3[1].children.some(item => {
this.$store.commit("system/SET_SUB_NAV", this.adminRouterList); let isReturn3 = item.name === '商品条码相关业务'
} else if (this.userType === ADMINBRANCH) { if (isReturn3) {
this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList); item.link = ''
item.alert = () => {this.redirectYWDT()}
}
return isReturn3
})
this.typeRouterList3[1].children.some(item => {
let isReturn4 = item.name === '产品信息在线通报'
if (isReturn4) {
item.link = ''
item.alert = () => {this.redirectGDS()}
}
return isReturn4
})
this.$store.commit("system/SET_SUB_NAV", this.typeRouterList3);
}else if (this.loginInfo.userType==4) {
this.typeRouterList4[1].children.some(item => {
const isReturn5 = item.name === '商品条码相关业务'
if (isReturn5) {
item.link = ''
item.alert = () => {this.redirectYWDT()}
}
return isReturn5
})
this.$store.commit("system/SET_SUB_NAV", this.typeRouterList4);
} }
// if (this.userType === UN_VERIFY) {
// if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
// this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
// }
// if (this.loginInfo.userType === 3 && this.loginInfo.isQY === 1) {
// this.$store.commit("system/SET_SUB_NAV", this.isQYRouterList);
// return
// }
// this.$store.commit("system/SET_SUB_NAV", this.routerList);
// } else if (this.userType === SYSTEM_MEMBER) {
// if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
// this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
// }
// if (this.loginInfo.isXT === 1 && !this.loginInfo.carno) { // 未申请条码卡的系统成员没有商品条码在线注册菜单
// this.routerList[1].children = this.routerList[1].children.filter(item => item.name !== '商品条码在线注册')
// }
// if (this.loginInfo.userType === 1 || this.loginInfo.userType === 2) { // 手机号登陆和条码可登陆用户不能有修改手机号菜单
// this.routerList[2].children = this.routerList[2].children.filter(item => item.name !== '修改手机号码')
// }
// this.routerList[0].link = '/MyManage/SystemMember/index'
// if (this.loginInfo.userType === 2) { // 条码卡登陆用户,修改登录密码给出提示
// this.routerList[2].children.some(item => {
// const isReturn = item.name === '修改登录密码'
// if (isReturn) {
// item.link = ''
// item.alert = () => {window.alert('系统成员请前往中国商品信息服务平台修改条码卡密码。')}
// }
// return isReturn
// })
// }
// // 由于屏蔽了检测校准申请,所以未申请条码卡的系统成员的业务管理模块没有任何菜单(去除业务管理,二期开始开发后注销掉下方处理代码即可)
// if (this.loginInfo.isXT === 1 && !this.loginInfo.carno) { // 未申请条码卡的系统成员没有商品条码在线注册菜单
// this.routerList = this.routerList.filter(item => item.name !== '业务管理')
// }
// this.$store.commit("system/SET_SUB_NAV", this.routerList);
// } else if (this.userType === ADMIN) {
// this.$store.commit("system/SET_SUB_NAV", this.adminRouterList);
// } else if (this.userType === ADMINBRANCH) {
// this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList);
// }
// this.$store.commit("system/SET_SUB_NAV", this.routerList); // this.$store.commit("system/SET_SUB_NAV", this.routerList);
}, },
methods: {}, methods: {
// 跳转
async redirectGDS() {
const params = {userType: this.loginInfo.userType, id: this.loginInfo.id, carno: this.loginInfo.carno}
const result = await this.$api.myManage.redirectGDS(params)
if (result.success) {
window.open(result.data, '_blank')
} else {
this.$message.error(result.returnMsg)
}
},
//业务大厅跳转
async redirectYWDT() {
const params = {
userType: this.loginInfo.userType,
id: this.loginInfo.id
}
const result = await this.$api.myManage.redirectYWDT(params)
if (result.success) {
window.open(result.data, '_blank')
} else {
this.$message.error(result.returnMsg)
}
},
},
}; };
</script> </script>
<style> <style>
......
...@@ -100,6 +100,8 @@ export default { ...@@ -100,6 +100,8 @@ export default {
}, },
methods: { methods: {
async handleSearch() { async handleSearch() {
this.errorMsg ='正在查询……'
this.result=null
const params = { const params = {
code: "", code: "",
firmName: "", firmName: "",
......
...@@ -112,6 +112,7 @@ export default { ...@@ -112,6 +112,7 @@ export default {
window.open(url, '_blank') window.open(url, '_blank')
}, },
async handleSearch() { async handleSearch() {
this.errorMsg ='正在查询……'
this.searchCodeShow = this.search.code; this.searchCodeShow = this.search.code;
if(this.hasSpecialString(this.searchCodeShow)){ if(this.hasSpecialString(this.searchCodeShow)){
return true return true
......
...@@ -132,12 +132,14 @@ export default { ...@@ -132,12 +132,14 @@ export default {
// } // }
const regName =/^[0-9]*[1-9][0-9]*$/; const regName =/^[0-9]*[1-9][0-9]*$/;
if(!regName.test(string)){ if(!regName.test(string)){
this.$message.error('查询值只能数字!'); this.$message.error('请输入正确的条码信息');
return true; return true;
} }
return false return false
}, },
async handleSearch() { async handleSearch() {
this.errorMsg ='正在查询……'
this.result = null;
this.searchCodeShow = this.search.code; this.searchCodeShow = this.search.code;
if(this.hasSpecialString(this.searchCodeShow)){ if(this.hasSpecialString(this.searchCodeShow)){
return true return true
......
...@@ -93,6 +93,8 @@ export default { ...@@ -93,6 +93,8 @@ export default {
}, },
methods: { methods: {
async handleSearch() { async handleSearch() {
this.errorMsg ='正在查询……'
this.result=null
const params = { const params = {
keyword: this.search.code, keyword: this.search.code,
type: this.type, type: this.type,
......
...@@ -304,6 +304,7 @@ export default { ...@@ -304,6 +304,7 @@ export default {
captcha:'' captcha:''
}, },
result: null, result: null,
currentData:null,
resultType: 'company', resultType: 'company',
searchCodeShow: "", searchCodeShow: "",
errorMsg: "", errorMsg: "",
...@@ -393,6 +394,9 @@ export default { ...@@ -393,6 +394,9 @@ export default {
}, },
async handleSearchCompany() { async handleSearchCompany() {
this.errorMsg ='正在查询……'
this.currentData = null
this.dataTotal=null
if (this.company === CODE) { if (this.company === CODE) {
this.searchCodeShow = this.companySearch.code; this.searchCodeShow = this.companySearch.code;
} else if (this.company === NAME) { } else if (this.company === NAME) {
...@@ -409,7 +413,9 @@ export default { ...@@ -409,7 +413,9 @@ export default {
const searchGlnRes = await this.$api.search.searchInternal(params); const searchGlnRes = await this.$api.search.searchInternal(params);
const {returnCode, data} = searchGlnRes; const {returnCode, data} = searchGlnRes;
if (returnCode === "0" || returnCode === 0) { if (returnCode === "0" || returnCode === 0) {
console.log(data)
// this.result = data.hits.hits; // this.result = data.hits.hits;
this.currentData = data.hits.hits;
this.dataTotal = data.hits.hits; this.dataTotal = data.hits.hits;
this.pagination.total = data.hits.hits.length; this.pagination.total = data.hits.hits.length;
this.pagination.totalPage = Math.floor(data.hits.hits.length / this.pagination.pageSize) + 1; this.pagination.totalPage = Math.floor(data.hits.hits.length / this.pagination.pageSize) + 1;
......
...@@ -129,6 +129,8 @@ export default { ...@@ -129,6 +129,8 @@ export default {
}, },
methods: { methods: {
async handleSearchCompany() { async handleSearchCompany() {
this.errorMsg ='正在查询……'
this.currentData = null
const params = { const params = {
shortCode: "", shortCode: "",
firmName: "", firmName: "",
...@@ -156,6 +158,8 @@ export default { ...@@ -156,6 +158,8 @@ export default {
const searchGlnRes = await this.$api.search.searchGetList(params); const searchGlnRes = await this.$api.search.searchGetList(params);
const {returnCode, data} = searchGlnRes; const {returnCode, data} = searchGlnRes;
if (returnCode === "0") { if (returnCode === "0") {
this.currentData = data
// this.result = data; // this.result = data;
this.dataTotal = data; this.dataTotal = data;
this.pagination.total = data.length; this.pagination.total = data.length;
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
hasSpecialString(string){ hasSpecialString(string){
const regName =/^[\u4e00-\u9fa5_a-zA-Z0-9]+$/; const regName =/^[\u4e00-\u9fa5_a-zA-Z0-9]+$/;
if(!regName.test(string)){ if(!regName.test(string)){
this.$message.error('查询值只能包含中英文字符和数字!'); this.$message.error('请输入正确的条码信息');
return true; return true;
} }
return false return false
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<i class="iconfont icon-jurassic_email"></i> <i class="iconfont icon-jurassic_email"></i>
<span style="font-size: 14px; color: #666; margin-left: 6px" <span style="font-size: 14px; color: #666; margin-left: 6px"
>邮箱: >邮箱:
<a :href="partnersMsg.email">{{ partnersMsg.email }}</a> <a :href="partnersMsgHref">{{ partnersMsg.email }}</a>
</span> </span>
</div> </div>
</div> </div>
...@@ -51,7 +51,9 @@ ...@@ -51,7 +51,9 @@
export default { export default {
data() { data() {
return { return {
partnersMsg: {}, partnersMsg: {
},
partnersMsgHref:''
} }
}, },
created() { created() {
...@@ -76,6 +78,9 @@ export default { ...@@ -76,6 +78,9 @@ export default {
console.log(serviceGetPartnersDetailInfoRes, "serviceGetPartnersDetailInfoRes"); console.log(serviceGetPartnersDetailInfoRes, "serviceGetPartnersDetailInfoRes");
if (returnCode === "0") { if (returnCode === "0") {
this.partnersMsg = data; this.partnersMsg = data;
console.log(this.partnersMsg)
this.partnersMsgHref='mailto:'+this.partnersMsg.email
console.log(this.partnersMsgHref)
} }
}, },
}, },
......
...@@ -89,6 +89,7 @@ export default { ...@@ -89,6 +89,7 @@ export default {
}, },
data() { data() {
return { return {
pathUrl:'',
dialogVisible: false, dialogVisible: false,
currentBook: {}, currentBook: {},
activeName: 'second', activeName: 'second',
...@@ -107,7 +108,7 @@ export default { ...@@ -107,7 +108,7 @@ export default {
desc: '生成识读功能', desc: '生成识读功能',
android: 'http://www.anzhi.com/soft_969237.html', android: 'http://www.anzhi.com/soft_969237.html',
ios: `https://apps.apple.com/us/app/han-xin-er-wei-ma/id665768613`, ios: `https://apps.apple.com/us/app/han-xin-er-wei-ma/id665768613`,
local: 'http://www.gs1cn.org/Manage/down/%E6%B1%89%E4%BF%A1%E7%A0%81%E7%94%9F%E6%88%90%E5%B7%A5%E5%85%B7V2.1.rar', local:'',
}, },
{ {
name: '条码追溯', name: '条码追溯',
...@@ -139,10 +140,12 @@ export default { ...@@ -139,10 +140,12 @@ export default {
pageCount: 1, pageCount: 1,
total: 10, total: 10,
}, },
id:this.$route.query.id||'' id:this.$route.query.id||'',
} }
}, },
created() { created() {
this.filePath()
if(this.id){ if(this.id){
this.activeName='first' this.activeName='first'
}else{ }else{
...@@ -150,13 +153,23 @@ export default { ...@@ -150,13 +153,23 @@ export default {
} }
this.getBooks() this.getBooks()
}, },
methods: { methods: {
showBookDetail(book) { showBookDetail(book) {
this.currentBook = book; this.currentBook = book;
this.dialogVisible = true; this.dialogVisible = true;
}, },
async filePath() {
const res = await this.$api.service.filePath()
const {returnCode, data} = res;
if (returnCode === "0") {
console.log(data)
this.appList[1].local=`${data}Manage/down/%E6%B1%89%E4%BF%A1%E7%A0%81%E7%94%9F%E6%88%90%E5%B7%A5%E5%85%B7V2.1.rar`
}
},
async getBooks(page = 1) { async getBooks(page = 1) {
const res = await this.$api.service.getCodeBook({page: page, size: this.page.pageSize,id:this.id}) const res = await this.$api.service.getCodeBook({page: page, size: this.page.pageSize,id:this.id})
...@@ -206,6 +219,16 @@ export default { ...@@ -206,6 +219,16 @@ export default {
.book-content { .book-content {
padding: 16px 20px; padding: 16px 20px;
@media screen and (max-width: 992px) {
display: grid;
}
>div{
width: 100%;
overflow:hidden;
white-space: nowrap;
text-overflow: ellipsis!important;
-o-text-overflow:ellipsis;
}
> .title { > .title {
font-size: 21px; font-size: 21px;
...@@ -240,6 +263,10 @@ export default { ...@@ -240,6 +263,10 @@ export default {
border: 1px solid rgba(197, 216, 238, 0.5); border: 1px solid rgba(197, 216, 238, 0.5);
margin-bottom: 25px; margin-bottom: 25px;
cursor: pointer; cursor: pointer;
@media screen and (max-width: 992px) {
display:inherit;
height: auto;
}
&:hover { &:hover {
box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08); box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08);
...@@ -286,7 +313,7 @@ export default { ...@@ -286,7 +313,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 60px; margin-right: 60px;
img { img {
max-width: 14px; max-width: 14px;
margin-right: 10px; margin-right: 10px;
...@@ -305,7 +332,9 @@ export default { ...@@ -305,7 +332,9 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@media screen and (max-width: 992px) {
padding-bottom: 20px;
}
img { img {
max-width: 80%; max-width: 80%;
} }
......
...@@ -128,19 +128,34 @@ export default { ...@@ -128,19 +128,34 @@ export default {
console.log(memberInfo) console.log(memberInfo)
const loginInfo = res.data const loginInfo = res.data
localStorage.setItem('loginInfo', JSON.stringify({...memberInfo.data, ...loginInfo})) localStorage.setItem('loginInfo', JSON.stringify({...memberInfo.data, ...loginInfo}))
if ((loginInfo.userType === 1 && loginInfo.isXT !== 1) || (loginInfo.userType === 2 && loginInfo.isXT !== 1) || (loginInfo.userType === 3 && loginInfo.levels === null)) { // if ((loginInfo.userType === 1 && loginInfo.isXT !== 1) || (loginInfo.userType === 2 && loginInfo.isXT !== 1) || (loginInfo.userType === 3 && loginInfo.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'})
} else if (loginInfo.isXT === 1) { // } else if (loginInfo.isXT === 1) {
localStorage.setItem('gs-user', JSON.stringify({type: 'verify'})) // localStorage.setItem('gs-user', JSON.stringify({type: 'verify'}))
this.$router.push({path: '/MyManage/SystemMember/index'}) // this.$router.push({path: '/MyManage/SystemMember/index'})
} else if (loginInfo.levels === 0) { // } else if (loginInfo.levels === 0) {
localStorage.setItem('gs-user', JSON.stringify({type: 'admin'})) // localStorage.setItem('gs-user', JSON.stringify({type: 'admin'}))
this.$router.push({path: '/MyManage/admin/check'}) // this.$router.push({path: '/MyManage/admin/check'})
} else if (String(loginInfo.levels).length === 4) { // } else if (String(loginInfo.levels).length === 4) {
localStorage.setItem('gs-user', JSON.stringify({type: 'adminBranch'})) // localStorage.setItem('gs-user', JSON.stringify({type: 'adminBranch'}))
this.$router.push({path: '/MyManage/admin/check'}) // this.$router.push({path: '/MyManage/admin/check'})
} // }
// userType 1.系统成员 2.手机用户 3.实名认证企业 4.网站用户
if(loginInfo.userType===1){
localStorage.setItem('gs-user', JSON.stringify({type: 1}))
this.$router.push({path: '/MyManage/SystemMember/index'})
}else if(loginInfo.userType===2){
this.$router.push({path: '/MyManage/UnVerify/index'})
localStorage.setItem('gs-user', JSON.stringify({type: 2}))
}else if(loginInfo.userType===3){
this.$router.push({path: '/MyManage/UnVerify/index'})
localStorage.setItem('gs-user', JSON.stringify({type: 3}))
}else if(loginInfo.userType===4){
this.$router.push({path: '/MyManage/UnVerify/index'})
localStorage.setItem('gs-user', JSON.stringify({type: 4}))
}
} }
}) })
} else { } else {
......
...@@ -18,10 +18,11 @@ ...@@ -18,10 +18,11 @@
<div class="pages-middle"> <div class="pages-middle">
<button class="pages-btn" v-if="false">首页</button> <button class="pages-btn" v-if="false">首页</button>
<el-pagination <el-pagination
:small="small"
:page-size="pageSize" :page-size="pageSize"
:current-page="currPage" :current-page="currPage"
layout="prev, pager, next" :layout="layout"
:pager-count="5" :pager-count="showSize"
:total="total" :total="total"
@current-change="goPage" @current-change="goPage"
background background
...@@ -60,10 +61,33 @@ export default { ...@@ -60,10 +61,33 @@ export default {
pages: { pages: {
size: 10, size: 10,
}, },
screenWidth:null,
showSize:5,
small:false,
layout:'prev, pager, next'
}; };
}, },
watch:{
screenWidth:function(a,b){
if(a<=992){
this.showSize=5
this.small=true
this.layout='prev, next'
}else{
this.showSize=7
this.small=false
this.layout='prev, pager, next'
}
}
},
mounted(){ mounted(){
this.screenWidth=document.body.clientWidth
window.onresize=()=>{
return(()=>{
this.screenWidth=document.body.clientWidth
})
}
}, },
methods:{ methods:{
changeSize(){ changeSize(){
......
...@@ -18,10 +18,11 @@ ...@@ -18,10 +18,11 @@
<div class="pages-middle" v-if="total!=0"> <div class="pages-middle" v-if="total!=0">
<button class="pages-btn" v-if="false">首页</button> <button class="pages-btn" v-if="false">首页</button>
<el-pagination <el-pagination
:small="small"
:page-size="pageSize" :page-size="pageSize"
:current-page="currPage" :current-page="currPage"
layout="prev, pager, next" :layout="layout"
:pager-count="5" :pager-count="showSize"
:total="total" :total="total"
@size-change="changeSize" @size-change="changeSize"
@current-change="goPage" @current-change="goPage"
...@@ -61,10 +62,33 @@ export default { ...@@ -61,10 +62,33 @@ export default {
pages: { pages: {
size: 10, size: 10,
}, },
screenWidth:null,
showSize:5,
small:false,
layout:'prev, pager, next'
}; };
}, },
watch:{
screenWidth:function(a,b){
if(a<=992){
this.showSize=5
this.small=true
this.layout='pager'
}else{
this.showSize=7
this.small=false
this.layout='prev, pager, next'
}
}
},
mounted(){ mounted(){
this.screenWidth=document.body.clientWidth
window.onresize=()=>{
return(()=>{
this.screenWidth=document.body.clientWidth
})
}
}, },
methods:{ methods:{
changeSize(i){ changeSize(i){
......
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