index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 class="graid-box-1" @click="toPage('/pages/index/printAbc')">
  19. <div class="title">打印ABC</div>
  20. <div>遗漏标签快捷处理</div>
  21. </div> -->
  22. </div>
  23. </view>
  24. </template>
  25. <script>
  26. import iconItemsList from '@/components/icon-items-list/icon-items-list.vue';
  27. import { shelfReplenishStateCount } from '@/api/shelfReplenish'
  28. export default {
  29. components: {
  30. iconItemsList,
  31. },
  32. data() {
  33. return {
  34. // 数字货架
  35. storageRacksNavList: [],
  36. theme: ''
  37. }
  38. },
  39. onLoad() {
  40. // 设置底部tabbar 样式
  41. const theme = getApp().globalData.theme
  42. this.theme = theme
  43. // 数字货架导航按钮
  44. this.storageRacksNavList = [
  45. {
  46. id: 'scanVin',
  47. icon: `/static/${this.theme}/navIcon/home_icon_confirm@3x.png`,
  48. name: '待确认',
  49. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_CONFIRM',
  50. target: 'page',
  51. count: 0,
  52. auth: true
  53. },
  54. {
  55. id: 'scanGoods',
  56. icon: `/static/${this.theme}/navIcon/home_icon_out@3x.png`,
  57. name: '待出库',
  58. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_OUT_STOCK',
  59. target: 'page',
  60. count: 0,
  61. auth: true
  62. },
  63. {
  64. id: 'bhrk',
  65. icon: `/static/${this.theme}/navIcon/home_icon_warehousing@3x.png`,
  66. name: '待签收',
  67. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_CHECK',
  68. target: 'page',
  69. count: 0,
  70. auth: true
  71. },
  72. {
  73. id: 'jsgl',
  74. icon: `/static/${this.theme}/navIcon/home_icon_entire@3x.png`,
  75. name: '全部',
  76. url: '/pages/replenishmentManage/replenishmentList?billState=ALL',
  77. target: 'page',
  78. count: 0,
  79. auth: true
  80. }
  81. ]
  82. },
  83. onShow() {
  84. this.queryByTypeSum()
  85. },
  86. methods:{
  87. toPage(url){
  88. uni.navigateTo({ url:url })
  89. },
  90. // 查询补货单每个状态的数据条数
  91. queryByTypeSum () {
  92. shelfReplenishStateCount({}).then(res => {
  93. if (res.data && res.status == 200) {
  94. this.storageRacksNavList[0].count = res.data.WAIT_CONFIRM || 0
  95. this.storageRacksNavList[1].count = res.data.WAIT_OUT_STOCK || 0
  96. this.storageRacksNavList[2].count = res.data.WAIT_CHECK || 0
  97. }
  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>