apply.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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.hostUrl}/image/ghs/home/hcgl2.png`,url: "/admin/item/list2",pf:1},
  35. {name: "花材分类",img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`,url: "/admin/itemClass/list",pf:1},
  36. {name: "停用",img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`,url: "/admin/item/list?delStatus=1",pf:1},
  37. { name: "花材盘点", img: `${this.$constant.hostUrl}/image/ghs/home/pandian2.png`, url: "/pagesStorehouse/inventory/list",pf:1}
  38. ]
  39. },
  40. {
  41. title:'花束',
  42. list:[
  43. { name: "花束", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/list",pf:1},
  44. { name: "花束分类", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/category",pf:1},
  45. { name: "涨价设置", img: `${this.$constant.hostUrl}/image/ghs/home/gj2.png`, url: "/admin/goods/price-increase",pf:1},
  46. { name: "花束顺序", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/categorySort",pf:1},
  47. ]
  48. },
  49. {
  50. title:'绿植',
  51. list:[
  52. { name: "绿植", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/lz",pf:1},
  53. { name: "绿植品种", img: `${this.$constant.hostUrl}/image/ghs/home/hcgl2.png`, url: "/admin/goods/lzKind",pf:1},
  54. { name: "绿植采购", img: `${this.$constant.hostUrl}/image/ghs/home/icon_caigou2.png`, url: "/admin/goods/plantCg",pf:1},
  55. { name: "绿植盘点", img: `${this.$constant.hostUrl}/image/ghs/home/pandian2.png`, url: "/admin/goods/pdList",pf:1}
  56. ]
  57. },
  58. {
  59. title: '生产',
  60. list: [
  61. { name: "列表", img: `${this.$constant.hostUrl}/image/ghs/home/kcyjs2.png`, url: "/admin/work/list",pf:1},
  62. {name: "生产统计",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/kind",pf:1},
  63. { name: "员工生产统计", img: `${this.$constant.hostUrl}/image/ghs/home/kcyjs2.png`, url: "/admin/stat/makeStat",pf:1},
  64. { name: "设置", img: `${this.$constant.hostUrl}/image/ghs/home/kcyjs2.png`, url: "/admin/work/set",pf:1},
  65. ]
  66. },
  67. {
  68. title: '门店仓库',
  69. list: [
  70. { name: "门店", img: `${this.$constant.hostUrl}/image/ghs/home/shop2.png`, url: "/admin/shop/list",pf:1},
  71. { name: "调拨出库", img: `${this.$constant.hostUrl}/image/ghs/home/dbck2.png`, url: "/pagesStorehouse/allot/allotEx",pf:0},
  72. { name: "调拨入库", img: `${this.$constant.hostUrl}/image/ghs/home/dbrk2.png`, url: "/pagesStorehouse/allot/allotPut",pf:0},
  73. { name: "库存预警", img: `${this.$constant.hostUrl}/image/ghs/home/kcyjs2.png`, url: "/pagesStorehouse/stockWarn/manage",pf:1},
  74. { name: "员工", img: `${this.$constant.hostUrl}/image/ghs/home/yggl2.png`, url: "/admin/staff/list",pf:1},
  75. { name: "员工业绩", img: `${this.$constant.hostUrl}/image/ghs/home/icon_ygyj2.png`, url: "/admin/staff/achieve",pf:1},
  76. { name: "供货商", img: `${this.$constant.hostUrl}/image/ghs/home/icon_ghs2.png`, url: "/pagesPurchase/order",pf:1},
  77. { name: "已屏蔽", img: `${this.$constant.hostUrl}/image/ghs/home/icon_ghs2.png`, url: "/pagesPurchase/pb",pf:1},
  78. { name: "采购单", img: `${this.$constant.hostUrl}/image/ghs/home/icon_caigou2.png`, url: "/pagesPurchase/shopping",pf:1},
  79. { name: "损耗", img: `${this.$constant.hostUrl}/image/ghs/home/kcyjs2.png`, url: "/admin/breakage/list",pf:1},
  80. { name: "拆散", img: `${this.$constant.hostUrl}/image/ghs/home/kcyjs2.png`, url: "/admin/part/list",pf:1},
  81. { name: "商城", img: `${this.$constant.hostUrl}/image/ghs/home/shop2.png`, url: "/admin/cg/mall",pf:1},
  82. { name: "开关商城", img: `${this.$constant.hostUrl}/image/ghs/home/shop2.png`, url: "/pagesPurchase/open",pf:1},
  83. { name: "失信人员", img: `${this.$constant.hostUrl}/image/ghs/home/shop2.png`, url: "/admin/ll/list",pf:1},
  84. { name: "会员优惠", img: `${this.$constant.hostUrl}/image/ghs/home/shop2.png`, url: "/admin/member/discount",pf:1},
  85. { name: "充值优惠", img: `${this.$constant.hostUrl}/image/ghs/home/shop2.png`, url: "/admin/recharge/discount",pf:1},
  86. ]
  87. },
  88. {
  89. title: '数据统计',
  90. list: [
  91. {name: "利润表",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/profit",pf:1},
  92. {name: "收入统计",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/kdIncome",pf:1},
  93. {name: "花材销量",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/productSale",pf:1},
  94. // {name: "客户下单榜",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/customSale",pf:1},
  95. {name: "采购统计",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/cgStat",pf:1},
  96. {name: "采购花材",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/cgItem",pf:1},
  97. {name: "绿植统计",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/kindLz",pf:1},
  98. {name: "损耗总览",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/stat/waste"},
  99. {name: "赊账汇总",img: `${this.$constant.hostUrl}/image/ghs/home/jyzk2.png`,url: "/admin/custom/showTotalBalance"},
  100. ]
  101. }
  102. ]
  103. }
  104. },
  105. computed: {
  106. ...mapGetters({ loginInfo: "getLoginInfo" })
  107. },
  108. onPullDownRefresh () {
  109. uni.stopPullDownRefresh();
  110. },
  111. methods: {
  112. init(){
  113. },
  114. goPage (item) {
  115. if (item.url === '/admin/billing/priceChange') {
  116. this.goToMallPt('pages/pay/index')
  117. return true
  118. }
  119. if(this.getLoginInfo.pfShopId && Number(this.getLoginInfo.pfShopId)>0){
  120. if(item.pf == 0){
  121. this.$msg('请在批发端操作')
  122. return false
  123. }
  124. }
  125. this.$util.pageTo(item)
  126. }
  127. }
  128. }
  129. </script>
  130. <style lang="scss" scoped>
  131. .apply-content_box {
  132. padding-top: 1upx;
  133. padding-bottom: 60upx;
  134. & .apply-list_box {
  135. margin-top: 20upx;
  136. padding: 40upx 30upx;
  137. background-color: #ffffff;
  138. & > .tit {
  139. color: #333333;
  140. font-size: 32upx;
  141. font-weight: 600;
  142. }
  143. }
  144. .tabs-wrap {
  145. padding: 40upx 0upx;
  146. @include disFlex(center, flex-start);
  147. flex-wrap: wrap;
  148. .tabs-list {
  149. width: 25%;
  150. margin-top: 50upx;
  151. text-align: center;
  152. .tabs-img {
  153. width: 100upx;
  154. height: 100upx;
  155. margin: 0 auto;
  156. img {
  157. height: 100%;
  158. }
  159. }
  160. .tabs-name {
  161. color: #444444;
  162. margin-top: 10upx;
  163. }
  164. &:nth-child(-n + 4) {
  165. margin-top: 0;
  166. }
  167. }
  168. }
  169. }
  170. </style>