index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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="icon">
  12. <u-icon name="huowu-tuihui" custom-prefix="iscm-icon" size="48"></u-icon>
  13. </div>
  14. <div class="title">调回管理</div>
  15. <div>商品调回记录查询</div>
  16. </div>
  17. <div class="graid-box-1" @click="toPage('/pages/latePlay/chooseBulk')">
  18. <div class="icon">
  19. <u-icon name="icon_remark" custom-prefix="iscm-icon" size="48"></u-icon>
  20. </div>
  21. <div class="title">补打贴签</div>
  22. <div>遗漏标签快捷处理</div>
  23. </div>
  24. <div class="graid-box-1" @click="toPage('/pages/latePlay/chooseBulk')">
  25. <div class="icon">
  26. <u-icon name="mendianzhuanxiangshenhe" custom-prefix="iscm-icon" size="48"></u-icon>
  27. </div>
  28. <div class="title">门店审核</div>
  29. <div>审核门店的认证申请</div>
  30. </div>
  31. <!-- <div class="graid-box-1" @click="toPage('/pages/index/printAbc')">
  32. <div class="title">打印ABC</div>
  33. <div>遗漏标签快捷处理</div>
  34. </div> -->
  35. </div>
  36. </view>
  37. </template>
  38. <script>
  39. import iconItemsList from '@/components/icon-items-list/icon-items-list.vue';
  40. import { shelfReplenishStateCount } from '@/api/shelfReplenish'
  41. export default {
  42. components: {
  43. iconItemsList,
  44. },
  45. data() {
  46. return {
  47. // 数字货架
  48. storageRacksNavList: [],
  49. theme: ''
  50. }
  51. },
  52. onLoad() {
  53. // 设置底部tabbar 样式
  54. const theme = getApp().globalData.theme
  55. this.theme = theme
  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?billState=WAIT_CONFIRM',
  63. target: 'page',
  64. count: 0,
  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?billState=WAIT_OUT_STOCK',
  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?billState=WAIT_CHECK',
  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?billState=ALL',
  90. target: 'page',
  91. count: 0,
  92. auth: true
  93. }
  94. ]
  95. },
  96. onShow() {
  97. this.queryByTypeSum()
  98. },
  99. methods:{
  100. toPage(url){
  101. uni.navigateTo({ url:url })
  102. },
  103. // 查询补货单每个状态的数据条数
  104. queryByTypeSum () {
  105. shelfReplenishStateCount({}).then(res => {
  106. if (res.data && res.status == 200) {
  107. this.storageRacksNavList[0].count = res.data.WAIT_CONFIRM || 0
  108. this.storageRacksNavList[1].count = res.data.WAIT_OUT_STOCK || 0
  109. this.storageRacksNavList[2].count = res.data.WAIT_CHECK || 0
  110. }
  111. })
  112. },
  113. }
  114. }
  115. </script>
  116. <style lang="scss">
  117. .homePage-container {
  118. width: 100%;
  119. padding: 30rpx;
  120. .graid-box{
  121. display: flex;
  122. align-items: center;
  123. .graid-box-1{
  124. background-color: #ffffff;
  125. border-radius: 30upx;
  126. box-shadow: 3upx 2upx 6upx #eee;
  127. padding: 30rpx;
  128. width: 50%;
  129. font-size: 24rpx;
  130. color: #424D5E;
  131. text-align: center;
  132. .title{
  133. font-size: 28rpx;
  134. color: #191919;
  135. font-weight: bold;
  136. }
  137. .icon{
  138. text-align: center;
  139. }
  140. }
  141. > div{
  142. &:first-child{
  143. margin-right: 15rpx;
  144. }
  145. &:last-child{
  146. margin-left: 15rpx;
  147. }
  148. }
  149. }
  150. .panel-box {
  151. background-color: #ffffff;
  152. border-radius: 30upx;
  153. padding: 10upx 20upx;
  154. box-shadow: 3upx 2upx 6upx #eee;
  155. margin-bottom: 30upx;
  156. .panel-title {
  157. display: flex;
  158. align-items: center;
  159. padding: 20upx 12upx;
  160. .texts {
  161. font-size: 32upx;
  162. flex-grow: 1;
  163. }
  164. .btns {
  165. font-size: 28upx;
  166. color: #999;
  167. display: flex;
  168. align-items: center;
  169. }
  170. }
  171. .panel-body {
  172. padding: 0 10upx;
  173. .nodata {
  174. text-align: center;
  175. font-size: 24upx;
  176. width: 100%;
  177. color: #999999;
  178. padding: 30upx 0;
  179. }
  180. }
  181. }
  182. }
  183. </style>