增加权限埋点
This commit is contained in:
parent
76c5387753
commit
5a3a7a2767
@ -1,3 +1,5 @@
|
||||
import getCdnUrl from "./getCdnUrl.js"
|
||||
|
||||
const ordStaEnum = {
|
||||
post: 1,
|
||||
get: 2,
|
||||
@ -179,8 +181,50 @@ const addressNameCodeMap = [
|
||||
{ nameKey: 'townName', codeKey: 'town' }
|
||||
]
|
||||
|
||||
const authCodeEnum = {
|
||||
lanShou: 'emis:app:scan:10'
|
||||
}
|
||||
|
||||
const dealBtnMap = {
|
||||
lanShou: { title: '揽收扫描', subTitle: "", icon: getCdnUrl(`home/lshsm.png`), url: 'deliveryDeal/pickUp', code: authCodeEnum.lanShou },
|
||||
shouHuo: { title: '收货入库', subTitle: "", icon: getCdnUrl(`home/shhruku.png`), url: 'deliveryDeal/storage' },
|
||||
faJianScan: { title: '发件扫描', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/qutgoingScanning' },
|
||||
daoJianScan: { title: '到件扫描', subTitle: "", icon: getCdnUrl(`home/daojsm.png`), url: 'deliveryDeal/arriveScanning' },
|
||||
yunDanLuRu: { title: '运单录入', subTitle: "", icon: getCdnUrl(`home/ydluru.png`), url: 'post/openorder' },
|
||||
qianShouScan: { title: '签收扫描', subTitle: "", icon: getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning' },
|
||||
fenBoScan: { title: '分拨发件', subTitle: "", icon: getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/distributeOutgoing' },
|
||||
paiJianScan: { title: '派件扫描', subTitle: "", icon: getCdnUrl(`home/paijsm.png`), url: 'deliveryDeal/deliveryScanning' },
|
||||
yunDanXiuGai: { title: '运单修改', subTitle: "", icon: getCdnUrl(`home/ydxiugai.png`), url: 'post/post' },
|
||||
baoJiaShiSuan: { title: '报价试算', subTitle: "", icon: getCdnUrl(`home/baojshs.png`), url: 'post/freightCalculate' },
|
||||
wenTiJian: { title: '问题件', subTitle: "", icon: getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
||||
daoPaiScan: { title: '到派扫描', subTitle: "", icon: getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
||||
woDeErWeiMa: { title: '我的二维码', subTitle: "", icon: getCdnUrl(`mine/zhshu.png`), url: 'user/exclusiveQrcode' },
|
||||
mianDanDayin: { title: '面单打印', subTitle: "", icon: getCdnUrl(`home/mdbuda.png`), url: 'print/courierNote' },
|
||||
kuaiJianGenZong: { title: '快件跟踪', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: '' },
|
||||
heBaoScan: { title: '合包扫描', subTitle: "", icon: getCdnUrl(`home/hebaosm.png`), url: 'tms/coPackingScanning' },
|
||||
zhuangGuiScan: { title: '装柜扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'deliveryDeal/shipping' },
|
||||
faJianQingDan: { title: '发件清单', subTitle: "", icon: getCdnUrl(`home/fjqingdan.png`), url: 'deliveryDeal/sendList' },
|
||||
chaiBaoScan: { title: '拆包扫描', subTitle: "", icon: getCdnUrl(`home/chaibsm.png`), url: 'tms/unpackingScanning' },
|
||||
baoGuanScan: { title: '报关扫描', subTitle: "", icon: getCdnUrl(`home/baogsm.png`), url: 'tms/customsDeclarationScanning' },
|
||||
qingGuanScan: { title: '清关扫描', subTitle: "", icon: getCdnUrl(`home/qinggsm.png`), url: 'tms/customsClearanceScanning' },
|
||||
zhuangCheScan: { title: '装车扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'tms/entruckingScanning' },
|
||||
zhengCheScan: { title: '整车扫描', subTitle: "", icon: getCdnUrl(`home/zhuangchesm.png`), url: 'tms/allCartScanning' },
|
||||
xieCheScan: { title: '卸车扫描', subTitle: "", icon: getCdnUrl(`home/xiechesm.png`), url: 'tms/untruckingScanning' },
|
||||
daoJianQingDan: { title: '到件清单', subTitle: "", icon: getCdnUrl(`home/daojqd.png`), url: 'deliveryDeal/arriveList' },
|
||||
paiJianQingDan: { title: '派件清单', subTitle: "", icon: getCdnUrl(`home/paijqd.png`), url: 'deliveryDeal/paiList' },
|
||||
liuCangScan: { title: '留仓扫描', subTitle: "", icon: getCdnUrl(`home/licsm.png`), url: 'deliveryDeal/stayScanning' },
|
||||
zhuanJianScan: { title: '转件扫描', subTitle: "", icon: getCdnUrl(`home/zhuanjsm.png`), url: 'deliveryDeal/translateScanning' },
|
||||
jinCangChaXun: { title: '进仓查询', subTitle: "", icon: getCdnUrl(`home/jincchx.png`), url: '' },
|
||||
yunDanChaXun: { title: '运单查询', subTitle: "", icon: getCdnUrl(`home/kdchxun.png`), url: 'post/query' },
|
||||
shuiFeiYuGu: { title: '税费预估', subTitle: "", icon: getCdnUrl(`home/shfgs.png`), url: '' }
|
||||
}
|
||||
|
||||
export {
|
||||
addressNameCodeMap,
|
||||
dateRangeList,
|
||||
pageEventNames,
|
||||
authCodeEnum,
|
||||
dealBtnMap,
|
||||
ordStaEnum,
|
||||
ordStatusList,
|
||||
payTypeEnum,
|
||||
@ -203,6 +247,4 @@ export {
|
||||
packTypeList,
|
||||
kuaidiTypeEnum,
|
||||
kuaidiTypeList,
|
||||
dateRangeList,
|
||||
pageEventNames,
|
||||
}
|
||||
45
components/buns-auth/buns-auth.vue
Normal file
45
components/buns-auth/buns-auth.vue
Normal file
@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<slot v-if="isShow"></slot>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
isShow(){
|
||||
let permissions = this.$store.getters.userInfo?.permissions || []
|
||||
let bl = true
|
||||
if(this.code) {
|
||||
bl = permissions.indexOf(this.code) > -1
|
||||
}
|
||||
return bl
|
||||
}
|
||||
},
|
||||
props: {
|
||||
code: {
|
||||
default () {
|
||||
return ''
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
onHide() {
|
||||
|
||||
},
|
||||
unmounted() {},
|
||||
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
@ -138,7 +138,7 @@
|
||||
|
||||
<view class="yunf-input-item">
|
||||
<tpx-select v-model:value="submitParam.warehouseInNo" v-model:resObject="wareRes" :getListFun="getWarehouseInList" :transKeyVal="{valKey: 'inNo',titleKey: 'inNo'}" :isWhite="true"
|
||||
searchParam="" type="multiple" placeholder="请选择进仓单"
|
||||
searchParam="" type="multiple" placeholder="请选择进仓单" minChecked="0"
|
||||
>
|
||||
<tpx-text-item label="进仓单" :value="submitParam.warehouseInNo" :list="wareRes.list"></tpx-text-item>
|
||||
</tpx-select>
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
</tpx-page>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
import { dealBtnMap } from "@/common/enum"
|
||||
export default {
|
||||
props: {
|
||||
// hasLeftWin: {
|
||||
@ -59,41 +59,41 @@
|
||||
return {
|
||||
|
||||
faBtnlist: [
|
||||
{ title: '运单录入', subTitle: "", icon: this.getCdnUrl(`home/ydluru.png`), url: 'post/openorder' },
|
||||
{ title: '揽收扫描', subTitle: "", icon: this.getCdnUrl(`home/lshsm.png`), url: 'deliveryDeal/pickUp' },
|
||||
{ title: '发件扫描', subTitle: "", icon: this.getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/qutgoingScanning' },
|
||||
{ title: '分拨发件', subTitle: "", icon: this.getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/distributeOutgoing' },
|
||||
{ title: '合包扫描', subTitle: "", icon: this.getCdnUrl(`home/hebaosm.png`), url: 'tms/coPackingScanning' },
|
||||
{ title: '运单修改', subTitle: "", icon: this.getCdnUrl(`home/ydxiugai.png`), url: '' },
|
||||
{ title: '收货入库', subTitle: "", icon: this.getCdnUrl(`home/shhruku.png`), url: 'deliveryDeal/storage' },
|
||||
{ title: '装柜扫描', subTitle: "", icon: this.getCdnUrl(`home/zhuangchesm.png`), url: 'deliveryDeal/shipping' },
|
||||
{ title: '发件清单', subTitle: "", icon: this.getCdnUrl(`home/fjqingdan.png`), url: 'deliveryDeal/sendList' },
|
||||
{ title: '拆包扫描', subTitle: "", icon: this.getCdnUrl(`home/chaibsm.png`), url: 'tms/unpackingScanning' },
|
||||
{ title: '报关扫描', subTitle: "", icon: this.getCdnUrl(`home/baogsm.png`), url: 'tms/customsDeclarationScanning' },
|
||||
{ title: '清关扫描', subTitle: "", icon: this.getCdnUrl(`home/qinggsm.png`), url: 'tms/customsClearanceScanning' },
|
||||
{ title: '装车扫描', subTitle: "", icon: this.getCdnUrl(`home/zhuangchesm.png`), url: 'tms/entruckingScanning' },
|
||||
{ title: '整车扫描', subTitle: "", icon: this.getCdnUrl(`home/zhuangchesm.png`), url: 'tms/allCartScanning' },
|
||||
{ title: '面单补打', subTitle: "", icon: this.getCdnUrl(`home/mdbuda.png`), url: '' }
|
||||
{ ...dealBtnMap.yunDanLuRu },
|
||||
{ ...dealBtnMap.lanShou },
|
||||
{ ...dealBtnMap.faJianScan },
|
||||
{...dealBtnMap.fenBoScan},
|
||||
{...dealBtnMap.heBaoScan},
|
||||
{...dealBtnMap.yunDanXiuGai},
|
||||
{ ...dealBtnMap.shouHuo },
|
||||
{ ...dealBtnMap.zhuangGuiScan },
|
||||
{ ...dealBtnMap.faJianQingDan },
|
||||
{ ...dealBtnMap.chaiBaoScan },
|
||||
{ ...dealBtnMap.baoGuanScan },
|
||||
{ ...dealBtnMap.qingGuanScan },
|
||||
{ ...dealBtnMap.zhuangCheScan },
|
||||
{ ...dealBtnMap.zhengCheScan },
|
||||
{ ...dealBtnMap.mianDanDayin },
|
||||
],
|
||||
daoBtnlist: [
|
||||
{ title: '到件扫描', subTitle: "", icon: this.getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveScanning' },
|
||||
{ title: '派件扫描', subTitle: "", icon: this.getCdnUrl(`home/paijsm.png`), url: 'deliveryDeal/deliveryScanning' },
|
||||
{ title: '签收扫描', subTitle: "", icon: this.getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning' },
|
||||
{ title: '到派扫描', subTitle: "", icon: this.getCdnUrl(`home/daojsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
||||
{ title: '卸车扫描', subTitle: "", icon: this.getCdnUrl(`home/xiechesm.png`), url: 'tms/untruckingScanning' },
|
||||
{ title: '到件清单', subTitle: "", icon: this.getCdnUrl(`home/daojqd.png`), url: 'deliveryDeal/arriveList' },
|
||||
{ title: '派件清单', subTitle: "", icon: this.getCdnUrl(`home/paijqd.png`), url: 'deliveryDeal/paiList' },
|
||||
{ title: '留仓扫描', subTitle: "", icon: this.getCdnUrl(`home/licsm.png`), url: 'deliveryDeal/stayScanning' },
|
||||
{ title: '转件扫描', subTitle: "", icon: this.getCdnUrl(`home/zhuanjsm.png`), url: 'deliveryDeal/translateScanning' },
|
||||
{ title: '进仓查询', subTitle: "", icon: this.getCdnUrl(`home/jincchx.png`), url: '' }
|
||||
{ ...dealBtnMap.daoJianScan },
|
||||
{...dealBtnMap.paiJianScan},
|
||||
{ ...dealBtnMap.qianShouScan },
|
||||
{ ...dealBtnMap.daoPaiScan },
|
||||
{ ...dealBtnMap.xieCheScan },
|
||||
{ ...dealBtnMap.daoJianQingDan },
|
||||
{ ...dealBtnMap.paiJianQingDan },
|
||||
{ ...dealBtnMap.liuCangScan },
|
||||
{ ...dealBtnMap.zhuanJianScan },
|
||||
{ ...dealBtnMap.jinCangChaXun }
|
||||
],
|
||||
otherBtnlist: [
|
||||
{ title: '运单查询', subTitle: "", icon: this.getCdnUrl(`home/kdchxun.png`), url: 'post/query' },
|
||||
{ title: '我的二维码', subTitle: "", icon: this.getCdnUrl(`home/woderwm.png`), url: 'user/exclusiveQrcode' },
|
||||
{ title: '报价试算', subTitle: "", icon: this.getCdnUrl(`home/baojshs.png`), url: 'post/freightCalculate' },
|
||||
{ title: '问题件', subTitle: "", icon: this.getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
||||
{ title: '面单补打', subTitle: "", icon: this.getCdnUrl(`home/mdbuda.png`), url: '' },
|
||||
{ title: '税费预估', subTitle: "", icon: this.getCdnUrl(`home/shfgs.png`), url: '' }
|
||||
{ ...dealBtnMap.yunDanChaXun },
|
||||
{ ...dealBtnMap.woDeErWeiMa },
|
||||
{ ...dealBtnMap.baoJiaShiSuan },
|
||||
{ ...dealBtnMap.wenTiJian },
|
||||
{ ...dealBtnMap.mianDanDayin },
|
||||
{ ...dealBtnMap.shuiFeiYuGu }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<tpx-page>
|
||||
<view style="position: relative;background-color: #fff;">
|
||||
<view class="customer_nav_bar">
|
||||
<!-- 这里是状态栏 -->
|
||||
@ -77,20 +78,24 @@
|
||||
</view>
|
||||
<view class="btnlist2 com-jianju">
|
||||
<u-row justify="start" gutter="18" custom-style="flex-wrap: wrap;">
|
||||
<u-col span="3" v-for="tlItem in toolBtnlist" align="center" @click="goto(tlItem.url)">
|
||||
<buns-auth v-for="tlItem in toolBtnlist" :code="tlItem.code">
|
||||
<u-col span="3" align="center" @click="goto(tlItem.url)">
|
||||
<u-col align="center" justify="center" custom-style="padding: 20rpx;border: 2rpx solid #F6F6F6;border-radius: 16rpx;margin-bottom: 18rpx;display: flex;">
|
||||
<image :src="tlItem.icon" style="height: 46rpx;width: 46rpx" mode="aspectFit"/>
|
||||
<view style="font-size: 24rpx;margin-top: 20rpx;">{{tlItem.title}}</view>
|
||||
</u-col>
|
||||
</u-col>
|
||||
</buns-auth>
|
||||
</u-row>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</tpx-page>
|
||||
</template>
|
||||
<script>
|
||||
import { dealBtnMap } from "@/common/enum"
|
||||
export default {
|
||||
computed: {
|
||||
userInfo() {
|
||||
@ -115,18 +120,21 @@
|
||||
{ title: '待回款', subTitle: "12888.80", icon: this.getCdnUrl(`home/daihuikuan.png`), url: '' }
|
||||
],
|
||||
toolBtnlist: [
|
||||
{ title: '运单录入', subTitle: "", icon: this.getCdnUrl(`home/ydluru.png`), url: 'post/openorder' },
|
||||
{ title: '问题件', subTitle: "", icon: this.getCdnUrl(`home/wentijian.png`), url: 'deliveryDeal/problemsRegisteScanning' },
|
||||
{ title: '货物图片', subTitle: "", icon: this.getCdnUrl(`home/hwtup.png`), url: '' },
|
||||
{ title: '发件扫描', subTitle: "", icon: this.getCdnUrl(`home/fajiansm.png`), url: 'deliveryDeal/qutgoingScanning' },
|
||||
{ title: '到件扫描', subTitle: "", icon: this.getCdnUrl(`home/daojsm.png`), url: 'deliveryDeal/arriveScanning' },
|
||||
{ title: '派件扫描', subTitle: "", icon: this.getCdnUrl(`home/paijsm.png`), url: 'deliveryDeal/deliveryScanning' },
|
||||
{ title: '签收扫描', subTitle: "", icon: this.getCdnUrl(`home/qianshsm.png`), url: 'deliveryDeal/signedScanning' },
|
||||
{ title: '到派扫描', subTitle: "", icon: this.getCdnUrl(`home/daohsm.png`), url: 'deliveryDeal/arriveDeliveryScanning' },
|
||||
{ title: '快件查询', subTitle: "", icon: this.getCdnUrl(`home/kdchxun.png`), url: '' },
|
||||
{ title: '面单补打', subTitle: "", icon: this.getCdnUrl(`home/mdbuda.png`), url: 'print/courierNote' },
|
||||
{ title: '收货入库', subTitle: "", icon: this.getCdnUrl(`home/shhruku.png`), url: 'deliveryDeal/storage' },
|
||||
{ title: '运单修改', subTitle: "", icon: this.getCdnUrl(`home/ydxiugai.png`), url: 'post/post' }
|
||||
{ ...dealBtnMap.lanShou },
|
||||
{ ...dealBtnMap.shouHuo },
|
||||
{ ...dealBtnMap.faJianScan },
|
||||
{ ...dealBtnMap.daoJianScan },
|
||||
{ ...dealBtnMap.yunDanLuRu },
|
||||
{ ...dealBtnMap.qianShouScan },
|
||||
{...dealBtnMap.fenBoScan},
|
||||
{...dealBtnMap.paiJianScan},
|
||||
{...dealBtnMap.yunDanXiuGai},
|
||||
{ ...dealBtnMap.baoJiaShiSuan },
|
||||
{ ...dealBtnMap.wenTiJian },
|
||||
{ ...dealBtnMap.daoPaiScan },
|
||||
{ ...dealBtnMap.woDeErWeiMa },
|
||||
{ ...dealBtnMap.mianDanDayin },
|
||||
{ ...dealBtnMap.kuaiJianGenZong }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<tpx-page>
|
||||
<view style="position: relative;">
|
||||
<view class="customer_nav_bar">
|
||||
<!-- 这里是状态栏 -->
|
||||
@ -115,9 +116,11 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</tpx-page>
|
||||
</template>
|
||||
<script>
|
||||
import { USERKEY } from "@/store/actionKey"
|
||||
import { dealBtnMap } from "@/common/enum"
|
||||
export default {
|
||||
computed: {
|
||||
userInfo() {
|
||||
@ -135,7 +138,7 @@
|
||||
mainBtnlist: [
|
||||
{ title: '服务客户', icon: this.getCdnUrl(`mine/kehu.png`), url: '' },
|
||||
{ title: '计提明细', icon: this.getCdnUrl(`mine/jitmx.png`), url: 'user/withdraw' },
|
||||
{ title: '专属二维码', icon: this.getCdnUrl(`mine/zhshu.png`), url: 'user/exclusiveQrcode' },
|
||||
{...dealBtnMap.woDeErWeiMa},
|
||||
{ title: '我的收件', icon: this.getCdnUrl(`mine/shj.png`), url: 'user/bunsStatic' }
|
||||
],
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user