Application.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <template>
  2. <div class="application-view">
  3. <ul class="model-ul">
  4. <li
  5. v-for="(item, index) in application_list"
  6. :key="index"
  7. class="detail-tab-item"
  8. >
  9. <p class="detail-tab-title">
  10. {{ item.label }}
  11. </p>
  12. <ul class="detail-tab-main">
  13. <li
  14. v-for="(itemC, indexC) in item.children"
  15. :key="indexC"
  16. class="mm-li"
  17. >
  18. <div class="clearfix mm-li-div" @click="inApp(itemC)">
  19. <div class="clearfix">
  20. <span
  21. :style="{ backgroundColor: itemC.color }"
  22. class="iconfont float_left mml-icon"
  23. :class="[itemC.icon]"
  24. ></span>
  25. <p class="mml-tit float_left">
  26. {{ itemC.label }}
  27. </p>
  28. </div>
  29. <p class="mml-des">
  30. {{ itemC.description }}
  31. </p>
  32. </div>
  33. </li>
  34. </ul>
  35. </li>
  36. </ul>
  37. </div>
  38. </template>
  39. <script>
  40. import * as nodes from "@/access/node";
  41. import { title } from "@/config/settings.js";
  42. export default {
  43. name: "Application",
  44. data() {
  45. return {
  46. application_list: [
  47. {
  48. label: "应用",
  49. children: [
  50. {
  51. icon: "icon-dayin",
  52. color: "#43bb1f",
  53. label: "单据模板",
  54. access: nodes.TemplateListgetAll,
  55. description: "单据模板打印",
  56. path: "/BillTemplate/TemplateList",
  57. },
  58. {
  59. icon: "icon-gd",
  60. color: "#ff0000",
  61. label: "股东分红",
  62. access: nodes.TemplateListgetAll,
  63. description: "股东分红",
  64. path: "/Shareholders/CommissionRule",
  65. },
  66. {
  67. icon: "icon-jine1",
  68. color: "#fe6b58",
  69. label: "销售提成",
  70. access: nodes.saleCommission,
  71. description: "销售员提成,清晰明了",
  72. path: "/saleCommission/CommissionRule",
  73. },
  74. {
  75. icon: "icon-shanghu",
  76. color: "rgb(18,186,123)",
  77. label: "多商户",
  78. description: "为商家提供完整的入驻子商户线上经营方案",
  79. path: "/Merchants/MerchartsList",
  80. },
  81. {
  82. icon: "icon-icon-pin",
  83. color: "rgb(194, 109, 210)",
  84. label: "钱货日清对账",
  85. description: "",
  86. path: "/MoneyGoodsBill",
  87. access: nodes.getTodayStatistics,
  88. },
  89. ],
  90. },
  91. {
  92. label: "营销",
  93. children: [
  94. {
  95. icon: "icon-coupon",
  96. color: "#E6A23C",
  97. label: "优惠券",
  98. access: nodes.CouponList,
  99. description: "多样优惠券活动,达成快速引流",
  100. path: "/Marketing/MarketingList/Coupon",
  101. },
  102. {
  103. icon: "icon-miaosha1",
  104. color: "#F56C6C",
  105. label: "商品秒杀",
  106. access: nodes.ActivityGoods,
  107. description: "商品售出率过低?限时秒杀来帮您",
  108. path: "/Marketing/Promotion/PromotionList",
  109. },
  110. {
  111. icon: "icon-huiyuanka",
  112. color: "#E6A23C",
  113. label: "会员卡",
  114. access: nodes.MembershipCard,
  115. description: "打折、赠券、提升用户粘合度",
  116. path: "/Marketing/vip/membershipCard",
  117. },
  118. {
  119. icon: "icon-icon6",
  120. color: "#12BA7B",
  121. label: "组合套餐",
  122. access: nodes.Application_SetMeal,
  123. description: "关联商品组合营销",
  124. path: "/Marketing/SetMeal/index",
  125. },
  126. {
  127. icon: "icon-fenxiao",
  128. color: "#1890FF",
  129. label: "分销",
  130. access: nodes.Distribution,
  131. description: "裂变分销,智能锁粉快速沉淀客户",
  132. path: "/Distribution/DOverview",
  133. },
  134. {
  135. icon: "icon-jifen",
  136. color: "#1890FF",
  137. label: "积分商城",
  138. access: nodes.PointsMall,
  139. description: "专属会员积分兑换系统",
  140. path: "/PointsMall/GoodsManage",
  141. },
  142. ],
  143. },
  144. {
  145. label: "新零售",
  146. children: [
  147. {
  148. icon: "icon-jiageguanli",
  149. color: "#fb2c95",
  150. label: "收银台",
  151. access: nodes.Cashier,
  152. description: "连接线上线下,提升店铺经营效率",
  153. path: "/Cashier/CashierList",
  154. },
  155. {
  156. icon: "icon-shanghu",
  157. color: "#1890FF",
  158. label: "多门店",
  159. access: nodes.Application_Multistore,
  160. description: "连接线上门店一体化管理,提高各门店经营效率",
  161. path: "/Multistore/StoreList",
  162. },
  163. {
  164. icon: "icon-tabtubiao-1",
  165. color: "#1890FF",
  166. label: "供应商管理端",
  167. access: nodes.Application_supplierManage,
  168. description: "供应商管理端",
  169. path: "/Supplier/supplierSet",
  170. },
  171. ],
  172. },
  173. // {
  174. // label: "分销中心",
  175. // children: [
  176. // {
  177. // icon: "icon-fenxiao",
  178. // color: "#1890FF",
  179. // label: "分销",
  180. // access: nodes.Distribution,
  181. // description: "裂变分销,智能锁粉快速沉淀客户",
  182. // path: "/Distribution/DOverview",
  183. // },
  184. // {
  185. // icon: "icon-jifen",
  186. // color: "#1890FF",
  187. // label: "积分商城",
  188. // // access: nodes.Distribution,
  189. // description: "裂变分销,智能锁粉快速沉淀客户",
  190. // path: "/PointsMall/GoodsManage",
  191. // },
  192. // ],
  193. // },
  194. // {
  195. // label: "店铺拓展",
  196. // children: [
  197. // {
  198. // icon: "icon-jine1",
  199. // color: "#fe6b58",
  200. // label: "销售提成",
  201. // description: "销售员提成,清晰明了",
  202. // path: "/saleCommission/CommissionList",
  203. // },
  204. // ],
  205. // },
  206. ],
  207. application: [],
  208. };
  209. },
  210. mounted() {},
  211. methods: {
  212. inApp(row) {
  213. if (!this.$accessCheck(row.access)) {
  214. this.$message.warning("抱歉,您暂无权限");
  215. return;
  216. }
  217. if (
  218. row.label === "多门店" &&
  219. parseInt(this.$store.getters["MUser/enterpriseScope"]) === 4
  220. ) {
  221. this.$message.warning(
  222. `抱歉您的企业为单店铺类型,无法使用应用【多店铺】,请联系${title}售后开通`
  223. );
  224. return;
  225. }
  226. this.$router.push(row.path);
  227. },
  228. },
  229. };
  230. </script>
  231. <style scoped>
  232. .application-view {
  233. /*padding: 16px;*/
  234. /*color: #333333;*/
  235. /*background-color: #ffffff;*/
  236. }
  237. .model-li-main {
  238. display: flex;
  239. flex-wrap: wrap;
  240. }
  241. .model-li {
  242. margin-bottom: 30px;
  243. }
  244. .model-tit {
  245. /*height: 30px;*/
  246. line-height: 30px;
  247. font-size: 16px;
  248. font-weight: 400;
  249. }
  250. .mm-li {
  251. display: inline-block;
  252. margin-top: 15px;
  253. width: calc(25% - 15px);
  254. height: 100px;
  255. margin-right: 15px;
  256. background-color: #f5f7fa;
  257. /*border: 1px solid #dddddd;*/
  258. border-radius: 6px;
  259. text-align: center;
  260. cursor: pointer;
  261. line-height: 100px;
  262. }
  263. .mm-li-div {
  264. text-align: left;
  265. line-height: 16px;
  266. width: calc(100% - 30px);
  267. /*padding: 18px 12px 0;*/
  268. display: inline-block;
  269. vertical-align: middle;
  270. }
  271. .mml-icon {
  272. width: 42px;
  273. height: 42px;
  274. background-color: #67c23a;
  275. line-height: 42px;
  276. text-align: center;
  277. color: #fff;
  278. font-size: 26px;
  279. border-radius: 8px;
  280. margin-right: 12px;
  281. }
  282. .mml-tit {
  283. line-height: 42px;
  284. font-size: 16px;
  285. }
  286. .mml-des {
  287. color: #666666;
  288. margin-top: 10px;
  289. font-size: 12px;
  290. }
  291. </style>