morePage.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="morePages">
  3. <view class="list-box">
  4. <view class="list-title">
  5. <u-icon size="38" name="bag"></u-icon> <text>货品管理</text>
  6. </view>
  7. <u-cell-group :border="false">
  8. <u-cell-item title="库存查询" @click="toPage('/pages/stockQuery/stockQuery')" :title-style="{fontSize:'1em'}">
  9. <text slot="icon"></text>
  10. </u-cell-item>
  11. <u-cell-item title="补货记录" @click="toPage('/pages/digitalShelf/stockPut')" :title-style="{fontSize:'1em'}">
  12. <text slot="icon"></text>
  13. </u-cell-item>
  14. </u-cell-group>
  15. </view>
  16. <view class="list-box">
  17. <view class="list-title">
  18. <u-icon size="34" name="order"></u-icon> <text>订单管理</text>
  19. </view>
  20. <u-cell-group :border="false">
  21. <u-cell-item title="货架订单" @click="toPage('/pages/digitalShelf/orderList')" :title-style="{fontSize:'1em'}">
  22. <text slot="icon"></text>
  23. </u-cell-item>
  24. <u-cell-item title="临配订单" @click="toPage('/pages/digitalShelf/tempOrderList/tempOrderList')" :title-style="{fontSize:'1em'}">
  25. <text slot="icon"></text>
  26. </u-cell-item>
  27. </u-cell-group>
  28. </view>
  29. <view class="list-box">
  30. <view class="list-title">
  31. <u-icon size="36" name="rmb-circle"></u-icon> <text>结算管理</text>
  32. </view>
  33. <u-cell-group :border="false">
  34. <u-cell-item title="结算记录" @click="toPage('/pages/digitalShelf/settlementRecord/settlementRecord')" :title-style="{fontSize:'1em'}">
  35. <text slot="icon"></text>
  36. </u-cell-item>
  37. <u-cell-item title="付款结算" @click="toPage('/pages/digitalShelf/settlementManage/settlementManage')" :title-style="{fontSize:'1em'}">
  38. <text slot="icon"></text>
  39. </u-cell-item>
  40. </u-cell-group>
  41. </view>
  42. <view class="list-box">
  43. <view class="list-title">
  44. <u-icon size="32" name="home"></u-icon> <text>门店管理</text>
  45. </view>
  46. <u-cell-group :border="false">
  47. <u-cell-item title="员工管理" @click="toPage('/pages/storeManage/personnel')" :title-style="{fontSize:'1em'}">
  48. <text slot="icon"></text>
  49. </u-cell-item>
  50. </u-cell-group>
  51. <u-cell-group :border="false">
  52. <u-cell-item title="岗位权限" @click="toPage('/pages/storeManage/roleSetting/roleSetting')" :title-style="{fontSize:'1em'}">
  53. <text slot="icon"></text>
  54. </u-cell-item>
  55. </u-cell-group>
  56. </view>
  57. <view class="list-box" v-if="hasLogin&&dealerPhone">
  58. <view class="list-title flex justify_center phone" @click="call">
  59. <u-icon size="36" name="phone"></u-icon> <text>联系汽配商</text>
  60. </view>
  61. </view>
  62. <!-- 去认证 -->
  63. <u-popup v-model="showPopup" mode="center" :border-radius="20" closeable>
  64. <view style="background-color: #fff;padding: 1rem;">
  65. <u-image width="533" height="415" src="/static/authimg.jpg"></u-image>
  66. <view style="padding-top:1rem;" class="flex justify_center">
  67. <u-button @click="toAuthStore()" shape="circle" :custom-style="{background:'#066cff',color:'#fff',width:'350rpx'}">开始认证</u-button>
  68. </view>
  69. </view>
  70. </u-popup>
  71. </view>
  72. </template>
  73. <script>
  74. import {
  75. mapState,
  76. mapMutations
  77. } from 'vuex'
  78. export default {
  79. data() {
  80. return {
  81. dealerPhone: null,
  82. showPopup: false
  83. }
  84. },
  85. computed: {
  86. ...mapState(['hasLogin']),
  87. hasShelf(){
  88. return !!this.$store.state.vuex_storeShelf
  89. },
  90. userInfo(){
  91. return this.$store.state.vuex_userInfo
  92. },
  93. storeApply(){
  94. return this.$store.state.vuex_storeAuthInfo
  95. }
  96. },
  97. onShow() {
  98. const shelfInfo = this.$store.state.vuex_storeShelf
  99. this.dealerPhone = shelfInfo&&shelfInfo.contactMobile ? shelfInfo.contactMobile : ''
  100. },
  101. methods: {
  102. toPage(path){
  103. if(this.hasLogin){
  104. // 游客未认证
  105. if(this.userInfo.sysUserFlag == '0'){
  106. this.showPopup = true
  107. }else{
  108. // 已有数字货架
  109. if(this.hasShelf){
  110. uni.navigateTo({
  111. url: path
  112. })
  113. }else{
  114. uni.showToast({
  115. icon:'none',
  116. title: '门店没有关联数字货架,无法使用此功能!'
  117. })
  118. }
  119. }
  120. }else{
  121. uni.navigateTo({
  122. url: '/pages/login/login'
  123. })
  124. }
  125. },
  126. toAuthStore(){
  127. this.showPopup = false
  128. uni.navigateTo({
  129. url: '/pages/storeManage/storeAuth'
  130. })
  131. },
  132. call(){
  133. this.callPhone(this.dealerPhone)
  134. }
  135. }
  136. }
  137. </script>
  138. <style lang="less">
  139. .morePages{
  140. width: 100%;
  141. padding: 30rpx;
  142. background-image: linear-gradient(#86defa 0%,#cdeff9 20%,#f8f8f8 30%);
  143. .list-box{
  144. background: #ffffff;
  145. margin-bottom: 30rpx;
  146. border-radius: 25rpx;
  147. overflow: hidden;
  148. box-shadow: 2rpx 2rpx 5rpx #eee;
  149. .list-title{
  150. padding:30rpx 20rpx;
  151. font-size: 30rpx;
  152. border-bottom: 2rpx solid #f8f8f8;
  153. > text{
  154. margin-left: 10rpx;
  155. }
  156. }
  157. &:first-child{
  158. box-shadow: 2rpx 2rpx 5rpx #cdeff9;
  159. }
  160. }
  161. .phone{
  162. color: #00aaff;
  163. &:active{
  164. opacity: 0.8;
  165. transform:scale(0.9);
  166. }
  167. }
  168. }
  169. </style>