index.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. import { shelfReplenishStateCount } from '@/api/shelfReplenish'
  24. export default {
  25. components: {
  26. iconItemsList,
  27. },
  28. data() {
  29. return {
  30. // 数字货架
  31. storageRacksNavList: [],
  32. theme: ''
  33. }
  34. },
  35. onLoad() {
  36. // 设置底部tabbar 样式
  37. const theme = getApp().globalData.theme
  38. this.theme = theme
  39. // 数字货架导航按钮
  40. this.storageRacksNavList = [
  41. {
  42. id: 'scanVin',
  43. icon: `/static/${this.theme}/navIcon/home_icon_confirm@3x.png`,
  44. name: '待确认',
  45. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_CONFIRM',
  46. target: 'page',
  47. count: 0,
  48. auth: true
  49. },
  50. {
  51. id: 'scanGoods',
  52. icon: `/static/${this.theme}/navIcon/home_icon_out@3x.png`,
  53. name: '待出库',
  54. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_OUT_STOCK',
  55. target: 'page',
  56. count: 0,
  57. auth: true
  58. },
  59. {
  60. id: 'bhrk',
  61. icon: `/static/${this.theme}/navIcon/home_icon_warehousing@3x.png`,
  62. name: '待签收',
  63. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_CHECK',
  64. target: 'page',
  65. count: 0,
  66. auth: true
  67. },
  68. {
  69. id: 'jsgl',
  70. icon: `/static/${this.theme}/navIcon/home_icon_entire@3x.png`,
  71. name: '全部',
  72. url: '/pages/replenishmentManage/replenishmentList?billState=ALL',
  73. target: 'page',
  74. count: 0,
  75. auth: true
  76. }
  77. ]
  78. },
  79. onShow() {
  80. this.queryByTypeSum()
  81. },
  82. methods:{
  83. toPage(url){
  84. uni.navigateTo({ url:url })
  85. },
  86. // 查询补货单每个状态的数据条数
  87. queryByTypeSum () {
  88. shelfReplenishStateCount({}).then(res => {
  89. if (res.data && res.status == 200) {
  90. this.storageRacksNavList[0].count = res.data.WAIT_CONFIRM || 0
  91. this.storageRacksNavList[1].count = res.data.WAIT_OUT_STOCK || 0
  92. this.storageRacksNavList[2].count = res.data.WAIT_CHECK || 0
  93. }
  94. })
  95. },
  96. }
  97. }
  98. </script>
  99. <style lang="scss">
  100. .homePage-container {
  101. width: 100%;
  102. padding: 30rpx;
  103. .graid-box{
  104. display: flex;
  105. align-items: center;
  106. .graid-box-1{
  107. background-color: #ffffff;
  108. border-radius: 30upx;
  109. box-shadow: 3upx 2upx 6upx #eee;
  110. padding: 30rpx;
  111. width: 50%;
  112. font-size: 28rpx;
  113. color: #424D5E;
  114. .title{
  115. font-size: 45rpx;
  116. color: #191919;
  117. font-weight: bold;
  118. }
  119. }
  120. > div{
  121. &:first-child{
  122. margin-right: 15rpx;
  123. }
  124. &:last-child{
  125. margin-left: 15rpx;
  126. }
  127. }
  128. }
  129. .panel-box {
  130. background-color: #ffffff;
  131. border-radius: 30upx;
  132. padding: 10upx 20upx;
  133. box-shadow: 3upx 2upx 6upx #eee;
  134. margin-bottom: 30upx;
  135. .panel-title {
  136. display: flex;
  137. align-items: center;
  138. padding: 20upx 12upx;
  139. .texts {
  140. font-size: 32upx;
  141. flex-grow: 1;
  142. }
  143. .btns {
  144. font-size: 28upx;
  145. color: #999;
  146. display: flex;
  147. align-items: center;
  148. }
  149. }
  150. .panel-body {
  151. padding: 0 10upx;
  152. .nodata {
  153. text-align: center;
  154. font-size: 24upx;
  155. width: 100%;
  156. color: #999999;
  157. padding: 30upx 0;
  158. }
  159. }
  160. }
  161. }
  162. </style>