index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="homePage-container">
  3. <!-- 数字货架 -->
  4. <div class="panel-box">
  5. <div class="panel-title"><div class="texts">数字货架</div></div>
  6. <div class="panel-body"><iconItemsList :list="storageRacksNavList"></iconItemsList></div>
  7. </div>
  8. <!-- 调回管理 -->
  9. <div class="graid-box">
  10. <div class="graid-box-1" @click="toPage('/pages/shuntBackManage/shuntBackList')">
  11. <div class="title">调回管理</div>
  12. <div>商品调回记录查询</div>
  13. </div>
  14. <div class="graid-box-1" @click="toPage('/pages/latePlay/chooseBulk')">
  15. <div class="title">补打贴签</div>
  16. <div>遗漏标签快捷处理</div>
  17. </div>
  18. </div>
  19. </view>
  20. </template>
  21. <script>
  22. import iconItemsList from '@/components/icon-items-list/icon-items-list.vue';
  23. export default {
  24. components: {
  25. iconItemsList,
  26. },
  27. data() {
  28. return {
  29. // 数字货架
  30. storageRacksNavList: [],
  31. theme: ''
  32. }
  33. },
  34. onLoad() {
  35. // 设置底部tabbar 样式
  36. const theme = getApp().globalData.theme
  37. this.theme = theme
  38. uni.setTabBarItem({
  39. "index": 0,
  40. "iconPath": "static/"+theme+"/tabbar/home.png",
  41. "selectedIconPath": "static/"+theme+"/tabbar/home-active.png",
  42. })
  43. uni.setTabBarItem({
  44. "index": 1,
  45. "iconPath": "static/"+theme+"/tabbar/user.png",
  46. "selectedIconPath": "static/"+theme+"/tabbar/user-active.png",
  47. })
  48. uni.setTabBarStyle({
  49. color: this.$config("topBarTitleColors"),
  50. selectedColor: this.$config("primaryColor"),
  51. borderStyle: 'white',
  52. complete: function(res){
  53. console.log(res)
  54. }
  55. })
  56. // 数组货架导航按钮
  57. this.storageRacksNavList = [
  58. {
  59. id: 'scanVin',
  60. icon: `/static/${this.theme}/navIcon/home_icon_confirm@3x.png`,
  61. name: '待确认',
  62. url: '/pages/digitalShelf/orderList',
  63. target: 'page',
  64. auth: true
  65. },
  66. {
  67. id: 'scanGoods',
  68. icon: `/static/${this.theme}/navIcon/home_icon_out@3x.png`,
  69. name: '待出库',
  70. url: '/pages/digitalShelf/orderList',
  71. target: 'page',
  72. auth: true
  73. },
  74. {
  75. id: 'bhrk',
  76. icon: `/static/${this.theme}/navIcon/home_icon_warehousing@3x.png`,
  77. name: '待入库',
  78. url: '/pages/digitalShelf/stockPut',
  79. target: 'page',
  80. auth: true
  81. },
  82. {
  83. id: 'jsgl',
  84. icon: `/static/${this.theme}/navIcon/home_icon_entire@3x.png`,
  85. name: '全部',
  86. url: '/pages/digitalShelf/settlementManage/settlementManage',
  87. target: 'page',
  88. auth: true
  89. }
  90. ];
  91. },
  92. onShow() {
  93. },
  94. methods:{
  95. toPage(url){
  96. uni.navigateTo({
  97. url:url
  98. })
  99. }
  100. }
  101. }
  102. </script>
  103. <style lang="scss">
  104. .homePage-container {
  105. width: 100%;
  106. padding: 30rpx;
  107. .graid-box{
  108. display: flex;
  109. align-items: center;
  110. .graid-box-1{
  111. background-color: #ffffff;
  112. border-radius: 30upx;
  113. box-shadow: 3upx 2upx 6upx #eee;
  114. padding: 30rpx;
  115. width: 50%;
  116. font-size: 28rpx;
  117. color: #424D5E;
  118. .title{
  119. font-size: 45rpx;
  120. color: #191919;
  121. font-weight: bold;
  122. }
  123. }
  124. > div{
  125. &:first-child{
  126. margin-right: 15rpx;
  127. }
  128. &:last-child{
  129. margin-left: 15rpx;
  130. }
  131. }
  132. }
  133. .panel-box {
  134. background-color: #ffffff;
  135. border-radius: 30upx;
  136. padding: 10upx 20upx;
  137. box-shadow: 3upx 2upx 6upx #eee;
  138. margin-bottom: 30upx;
  139. .panel-title {
  140. display: flex;
  141. align-items: center;
  142. padding: 20upx 12upx;
  143. .texts {
  144. font-size: 32upx;
  145. flex-grow: 1;
  146. }
  147. .btns {
  148. font-size: 28upx;
  149. color: #999;
  150. display: flex;
  151. align-items: center;
  152. }
  153. }
  154. .panel-body {
  155. padding: 0 10upx;
  156. .nodata {
  157. text-align: center;
  158. font-size: 24upx;
  159. width: 100%;
  160. color: #999999;
  161. padding: 30upx 0;
  162. }
  163. }
  164. }
  165. }
  166. </style>