apply.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="app-content">
  3. <view class="apply-content_box">
  4. <view v-for="item in menuList" :key="item.title" class="apply-list_box" >
  5. <view class="tit"> {{item.title}} </view>
  6. <div class="tabs-wrap">
  7. <div v-for="s in item.list" :key="s.url" class="tabs-list" >
  8. <div @click="goPage(s)">
  9. <div class="tabs-img"> <img :src="s.img" alt mode="widthFix" />
  10. </div>
  11. <div class="tabs-name">{{s.name}}</div>
  12. </div>
  13. </div>
  14. </div>
  15. </view>
  16. </view>
  17. <NotLogin></NotLogin>
  18. </view>
  19. </template>
  20. <script>
  21. import { mapGetters } from "vuex";
  22. import NotLogin from "@/components/not-login";
  23. export default {
  24. name: 'apply',
  25. components: {
  26. NotLogin
  27. },
  28. data () {
  29. return {
  30. menuList: [
  31. {
  32. title:'花材',
  33. list:[
  34. {name: "花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list",pf:1},
  35. {name: "花材分类",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/itemClass/list",pf:1},
  36. {name: "停用花材",img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`,url: "/admin/item/list?delStatus=1",pf:1}
  37. ]
  38. },
  39. {
  40. title:'商品',
  41. list:[
  42. { name: "商品", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/list",pf:1},
  43. { name: "分类", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/category",pf:1},
  44. { name: "种类", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/kind",pf:1},
  45. { name: "涨价设置", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/price-increase",pf:1},
  46. { name: "运费规则", img: `${this.$constant.imgUrl}/ghs/home/hcgl.png`, url: "/admin/goods/freight",pf:1}
  47. ]
  48. },
  49. {
  50. title: '制作单',
  51. list: [
  52. { name: "制作单", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/work/list",pf:1},
  53. { name: "制作统计", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/work/statCat",pf:1},
  54. { name: "制作设置", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/work/set",pf:1},
  55. ]
  56. },
  57. {
  58. title: '门店仓库',
  59. list: [
  60. { name: "门店", img: `${this.$constant.imgUrl}/ghs/home/shop.png`, url: "/admin/shop/list",pf:1},
  61. { name: "调拨出库", img: `${this.$constant.imgUrl}/ghs/home/dbck.png`, url: "/pagesStorehouse/allot/allotEx",pf:0},
  62. { name: "调拨入库", img: `${this.$constant.imgUrl}/ghs/home/dbrk.png`, url: "/pagesStorehouse/allot/allotPut",pf:0},
  63. { name: "库存预警", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/pagesStorehouse/stockWarn/manage",pf:1},
  64. { name: "盘点", img: `${this.$constant.imgUrl}/ghs/home/pandian.png`, url: "/pagesStorehouse/inventory/list",pf:0},
  65. { name: "员工", img: `${this.$constant.imgUrl}/ghs/home/yggl.png`, url: "/admin/staff/list",pf:0},
  66. { name: "员工业绩", img: `${this.$constant.imgUrl}/ghs/home/icon_ygyj.png`, url: "/admin/staff/achieve",pf:1},
  67. { name: "供货商", img: `${this.$constant.imgUrl}/ghs/home/icon_ghs.png`, url: "/pagesPurchase/order",pf:1},
  68. { name: "采购单", img: `${this.$constant.imgUrl}/ghs/home/icon_caigou.png`, url: "/pagesPurchase/shopping",pf:1},
  69. { name: "报损", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/breakage/list",pf:1},
  70. { name: "拆散", img: `${this.$constant.imgUrl}/ghs/home/kcyjs.png`, url: "/admin/part/list",pf:1}
  71. ]
  72. },
  73. {
  74. title: '数据统计',
  75. list: [
  76. {name: "利润表",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/profit",pf:1},
  77. {name: "收入渠道",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/kdIncome",pf:1},
  78. {name: "花材销量",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/productSale",pf:1},
  79. // {name: "客户下单榜",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/customSale",pf:1},
  80. {name: "采购统计",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/cgStat",pf:1},
  81. {name: "采购花材",img: `${this.$constant.imgUrl}/ghs/home/jyzk.png`,url: "/admin/stat/cgItem",pf:1}
  82. ]
  83. }
  84. ]
  85. }
  86. },
  87. computed: {
  88. ...mapGetters({ loginInfo: "getLoginInfo" })
  89. },
  90. onPullDownRefresh () {
  91. uni.stopPullDownRefresh();
  92. },
  93. methods: {
  94. goPage (item) {
  95. if (item.url === '/admin/billing/priceChange') {
  96. this.goToMallPt('pages/pay/index')
  97. return true
  98. }
  99. if(this.getLoginInfo.pfShopId && Number(this.getLoginInfo.pfShopId)>0){
  100. if(item.pf == 0){
  101. this.$msg('请在批发端操作')
  102. return false
  103. }
  104. }
  105. this.$util.pageTo(item)
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .apply-content_box {
  112. padding-top: 1upx;
  113. padding-bottom: 60upx;
  114. & .apply-list_box {
  115. margin-top: 20upx;
  116. padding: 40upx 30upx;
  117. background-color: #ffffff;
  118. & > .tit {
  119. color: #333333;
  120. font-size: 32upx;
  121. font-weight: 600;
  122. }
  123. }
  124. .tabs-wrap {
  125. padding: 40upx 0upx;
  126. @include disFlex(center, flex-start);
  127. flex-wrap: wrap;
  128. .tabs-list {
  129. width: 25%;
  130. margin-top: 50upx;
  131. text-align: center;
  132. .tabs-img {
  133. width: 100upx;
  134. height: 100upx;
  135. margin: 0 auto;
  136. img {
  137. height: 100%;
  138. }
  139. }
  140. .tabs-name {
  141. color: $fontColor2;
  142. margin-top: 10upx;
  143. }
  144. &:nth-child(-n + 4) {
  145. margin-top: 0;
  146. }
  147. }
  148. }
  149. }
  150. </style>