index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/replenishmentManage/replenishmentList?state=1',
  63. target: 'page',
  64. count: 10,
  65. auth: true
  66. },
  67. {
  68. id: 'scanGoods',
  69. icon: `/static/${this.theme}/navIcon/home_icon_out@3x.png`,
  70. name: '待出库',
  71. url: '/pages/replenishmentManage/replenishmentList?state=2',
  72. target: 'page',
  73. count: 0,
  74. auth: true
  75. },
  76. {
  77. id: 'bhrk',
  78. icon: `/static/${this.theme}/navIcon/home_icon_warehousing@3x.png`,
  79. name: '待入库',
  80. url: '/pages/replenishmentManage/replenishmentList?state=3',
  81. target: 'page',
  82. count: 0,
  83. auth: true
  84. },
  85. {
  86. id: 'jsgl',
  87. icon: `/static/${this.theme}/navIcon/home_icon_entire@3x.png`,
  88. name: '全部',
  89. url: '/pages/replenishmentManage/replenishmentList?state=0',
  90. target: 'page',
  91. count: 0,
  92. auth: true
  93. }
  94. ];
  95. },
  96. onShow() {
  97. },
  98. methods:{
  99. toPage(url){
  100. uni.navigateTo({
  101. url:url
  102. })
  103. }
  104. }
  105. }
  106. </script>
  107. <style lang="scss">
  108. .homePage-container {
  109. width: 100%;
  110. padding: 30rpx;
  111. .graid-box{
  112. display: flex;
  113. align-items: center;
  114. .graid-box-1{
  115. background-color: #ffffff;
  116. border-radius: 30upx;
  117. box-shadow: 3upx 2upx 6upx #eee;
  118. padding: 30rpx;
  119. width: 50%;
  120. font-size: 28rpx;
  121. color: #424D5E;
  122. .title{
  123. font-size: 45rpx;
  124. color: #191919;
  125. font-weight: bold;
  126. }
  127. }
  128. > div{
  129. &:first-child{
  130. margin-right: 15rpx;
  131. }
  132. &:last-child{
  133. margin-left: 15rpx;
  134. }
  135. }
  136. }
  137. .panel-box {
  138. background-color: #ffffff;
  139. border-radius: 30upx;
  140. padding: 10upx 20upx;
  141. box-shadow: 3upx 2upx 6upx #eee;
  142. margin-bottom: 30upx;
  143. .panel-title {
  144. display: flex;
  145. align-items: center;
  146. padding: 20upx 12upx;
  147. .texts {
  148. font-size: 32upx;
  149. flex-grow: 1;
  150. }
  151. .btns {
  152. font-size: 28upx;
  153. color: #999;
  154. display: flex;
  155. align-items: center;
  156. }
  157. }
  158. .panel-body {
  159. padding: 0 10upx;
  160. .nodata {
  161. text-align: center;
  162. font-size: 24upx;
  163. width: 100%;
  164. color: #999999;
  165. padding: 30upx 0;
  166. }
  167. }
  168. }
  169. }
  170. </style>