|
|
@@ -5,7 +5,7 @@
|
|
|
<view class="tit"> {{item.title}} </view>
|
|
|
<div class="tabs-wrap">
|
|
|
<div v-for="s in item.list" :key="s.url" class="tabs-list" >
|
|
|
- <div @click="pageTo(s)">
|
|
|
+ <div @click="goPage(s)">
|
|
|
<div class="tabs-img"> <img :src="s.img" alt mode="widthFix" />
|
|
|
</div>
|
|
|
<div class="tabs-name">{{s.name}}</div>
|
|
|
@@ -18,6 +18,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { mapGetters } from "vuex";
|
|
|
import NotLogin from "@/components/not-login";
|
|
|
export default {
|
|
|
name: 'apply',
|
|
|
@@ -30,56 +31,74 @@ export default {
|
|
|
{
|
|
|
title:'商品花材',
|
|
|
list:[
|
|
|
- {name: "花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list"},
|
|
|
- {name: "停用花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list?delStatus=1"},
|
|
|
- {name: "花材分类",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/itemClass/list"},
|
|
|
- { name: "花束盆栽", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/list" },
|
|
|
- { name: "商品分类", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/category" },
|
|
|
- { name: "涨价设置", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/price-increase" },
|
|
|
- { name: "运费规则", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/freight" }
|
|
|
+ {name: "花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list",pf:1},
|
|
|
+ {name: "停用花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list?delStatus=1",pf:1},
|
|
|
+ {name: "花材分类",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/itemClass/list",pf:1},
|
|
|
+ { name: "花束盆栽", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/list",pf:1},
|
|
|
+ { name: "商品分类", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/category",pf:1},
|
|
|
+ { name: "涨价设置", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/price-increase",pf:1},
|
|
|
+ { name: "运费规则", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goodsManage/freight",pf:1}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title: '门店仓库',
|
|
|
list: [
|
|
|
- { name: "门店", img: `${this.$constant.imgUrl}/ghs/home/shop.png`, url: "/admin/shop/list" },
|
|
|
- { name: "调拨出库", img: `${this.$constant.imgUrl}/ghs/home/dbck.png`, url: "/pagesStorehouse/allot/allotEx" },
|
|
|
- { name: "调拨入库", img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`, url: "/pagesStorehouse/allot/allotPut" },
|
|
|
- { name: "库存", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/pagesStorehouse/stockWarn/manage" },
|
|
|
- { name: "盘点", img: `${this.$constant.imgUrl}/ghs/home/pandian.png`, url: "/pagesStorehouse/inventory/list" },
|
|
|
- { name: "员工", img: `${this.$constant.imgUrl}/ghs/home/yggl.png`, url: "/admin/staff/list" },
|
|
|
- { name: "员工业绩", img: `${this.$constant.imgUrl}/ghs/home/icon_ygyj.png`, url: "/admin/staff/achieve" },
|
|
|
- { name: "供应商", img: `${this.$constant.imgUrl}/ghs/home/icon_ghs.png`, url: "/pagesPurchase/order" },
|
|
|
- { name: "采购单", img: `${this.$constant.imgUrl}/ghs/home/icon_caigou.png`, url: "/pagesPurchase/shopping" },
|
|
|
- { name: "培训班", img: `${this.$constant.imgUrl}/ghs/home/icon_pxb.png`, url: "/pagesStatistics/trainingClass" },
|
|
|
+ { name: "门店", img: `${this.$constant.imgUrl}/ghs/home/shop.png`, url: "/admin/shop/list",pf:1},
|
|
|
+ { name: "调拨出库", img: `${this.$constant.imgUrl}/ghs/home/dbck.png`, url: "/pagesStorehouse/allot/allotEx",pf:0},
|
|
|
+ { name: "调拨入库", img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`, url: "/pagesStorehouse/allot/allotPut",pf:0},
|
|
|
+ { name: "库存预警", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/pagesStorehouse/stockWarn/manage",pf:1},
|
|
|
+ { name: "盘点", img: `${this.$constant.imgUrl}/ghs/home/pandian.png`, url: "/pagesStorehouse/inventory/list",pf:1},
|
|
|
+ { name: "员工", img: `${this.$constant.imgUrl}/ghs/home/yggl.png`, url: "/admin/staff/list",pf:1},
|
|
|
+ { name: "员工业绩", img: `${this.$constant.imgUrl}/ghs/home/icon_ygyj.png`, url: "/admin/staff/achieve",pf:1},
|
|
|
+ { name: "供应商", img: `${this.$constant.imgUrl}/ghs/home/icon_ghs.png`, url: "/pagesPurchase/order",pf:0},
|
|
|
+ { name: "采购单", img: `${this.$constant.imgUrl}/ghs/home/icon_caigou.png`, url: "/pagesPurchase/shopping",pf:0},
|
|
|
+ { name: "培训班", img: `${this.$constant.imgUrl}/ghs/home/icon_pxb.png`, url: "/pagesStatistics/trainingClass",pf:1},
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title: '数据统计',
|
|
|
list: [
|
|
|
- {name: "利润表",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/profit"},
|
|
|
- {name: "收入渠道",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/kdIncome"},
|
|
|
- {name: "花材销量",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/productSale"},
|
|
|
- // {name: "客户下单榜",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/customSale"},
|
|
|
- {name: "采购统计",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/cgStat"}
|
|
|
+ {name: "利润表",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/profit",pf:1},
|
|
|
+ {name: "收入渠道",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/kdIncome",pf:1},
|
|
|
+ {name: "花材销量",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/productSale",pf:1},
|
|
|
+ // {name: "客户下单榜",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/customSale",pf:1},
|
|
|
+ {name: "采购统计",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/statistics/cgStat",pf:1}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title: '代理商',
|
|
|
list: [
|
|
|
- // {name: "新客福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/xrFl"},
|
|
|
- // {name: "推荐福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/tjFl"},
|
|
|
- // {name: "充值福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/item/rechargeHb"},
|
|
|
- // {name: "充值记录",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/rechargeList"},
|
|
|
- // {name: "已发红包",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/list"},
|
|
|
- { name: "邀请开店", img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`, url: "/pagesInvite/list" }
|
|
|
+ // {name: "新客福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/xrFl",pf:1},
|
|
|
+ // {name: "推荐福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/tjFl",pf:1},
|
|
|
+ // {name: "充值福利",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/item/rechargeHb",pf:1},
|
|
|
+ // {name: "充值记录",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/rechargeList",pf:1},
|
|
|
+ // {name: "已发红包",img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`,url: "/admin/hb/list",pf:1},
|
|
|
+ { name: "邀请开店", img: `${this.$constant.imgUrl}/ghs/home/yqyl.png`, url: "/pagesInvite/list",pf:1 }
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({ loginInfo: "getLoginInfo" })
|
|
|
+ },
|
|
|
onPullDownRefresh () {
|
|
|
uni.stopPullDownRefresh();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ goPage (item) {
|
|
|
+ if (item.url === '/admin/billing/priceChange') {
|
|
|
+ this.goToMallPt('pages/pay/index')
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if(this.getLoginInfo.pfShopId && Number(this.getLoginInfo.pfShopId)>0){
|
|
|
+ if(item.pf == 0){
|
|
|
+ this.$msg('请在批发端操作')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$util.pageTo(item)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|