index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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="70"></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="70"></u-icon>
  20. </div>
  21. <div class="title">补打贴签</div>
  22. <div>遗漏标签快捷处理</div>
  23. </div>
  24. <div class="graid-box-1" @click="toPage('/pages/approveStore/list')">
  25. <div class="icon">
  26. <u-icon name="mendianzhuanxiangshenhe" custom-prefix="iscm-icon" size="70"></u-icon>
  27. <u-badge type="error" size="mini" :offset="[-5,20]" :count="storeAuthNums"></u-badge>
  28. </div>
  29. <div class="title">门店审核</div>
  30. <div>审核门店的认证申请</div>
  31. </div>
  32. <!-- <div class="graid-box-1" @click="toPage('/pages/index/printAbc')">
  33. <div class="title">打印ABC</div>
  34. <div>遗漏标签快捷处理</div>
  35. </div> -->
  36. </div>
  37. </view>
  38. </template>
  39. <script>
  40. import iconItemsList from '@/components/icon-items-list/icon-items-list.vue';
  41. import { shelfReplenishStateCount } from '@/api/shelfReplenish'
  42. import { xprhStoreApplyQueryPage } from '@/api/approveStore'
  43. export default {
  44. components: {
  45. iconItemsList,
  46. },
  47. data() {
  48. return {
  49. // 数字货架
  50. storageRacksNavList: [],
  51. theme: '',
  52. storeAuthNums: 0
  53. }
  54. },
  55. onLoad() {
  56. // 设置底部tabbar 样式
  57. const theme = getApp().globalData.theme
  58. this.theme = theme
  59. // 数字货架导航按钮
  60. this.storageRacksNavList = [
  61. {
  62. id: 'scanVin',
  63. icon: `/static/${this.theme}/navIcon/home_icon_confirm@3x.png`,
  64. name: '待确认',
  65. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_CONFIRM',
  66. target: 'page',
  67. count: 0,
  68. auth: true
  69. },
  70. {
  71. id: 'scanGoods',
  72. icon: `/static/${this.theme}/navIcon/home_icon_out@3x.png`,
  73. name: '待出库',
  74. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_OUT_STOCK',
  75. target: 'page',
  76. count: 0,
  77. auth: true
  78. },
  79. {
  80. id: 'bhrk',
  81. icon: `/static/${this.theme}/navIcon/home_icon_warehousing@3x.png`,
  82. name: '待签收',
  83. url: '/pages/replenishmentManage/replenishmentList?billState=WAIT_CHECK',
  84. target: 'page',
  85. count: 0,
  86. auth: true
  87. },
  88. {
  89. id: 'jsgl',
  90. icon: `/static/${this.theme}/navIcon/home_icon_entire@3x.png`,
  91. name: '全部',
  92. url: '/pages/replenishmentManage/replenishmentList?billState=ALL',
  93. target: 'page',
  94. count: 0,
  95. auth: true
  96. }
  97. ]
  98. },
  99. onShow() {
  100. this.queryByTypeSum()
  101. this.getStoreNums()
  102. },
  103. methods:{
  104. toPage(url){
  105. uni.navigateTo({ url:url })
  106. },
  107. // 查询补货单每个状态的数据条数
  108. queryByTypeSum () {
  109. shelfReplenishStateCount({}).then(res => {
  110. if (res.data && res.status == 200) {
  111. this.storageRacksNavList[0].count = res.data.WAIT_CONFIRM || 0
  112. this.storageRacksNavList[1].count = res.data.WAIT_OUT_STOCK || 0
  113. this.storageRacksNavList[2].count = res.data.WAIT_CHECK || 0
  114. }
  115. })
  116. },
  117. getStoreNums(){
  118. xprhStoreApplyQueryPage({pageNo:1,pageSize:1,auditStatus:'WAIT'}).then(res => {
  119. this.storeAuthNums = res.data.count || 0
  120. })
  121. }
  122. }
  123. }
  124. </script>
  125. <style lang="scss">
  126. .homePage-container {
  127. width: 100%;
  128. padding: 30rpx;
  129. .graid-box{
  130. display: flex;
  131. align-items: center;
  132. .graid-box-1{
  133. background-color: #ffffff;
  134. border-radius: 30upx;
  135. box-shadow: 3upx 2upx 6upx #eee;
  136. padding: 30rpx;
  137. width: 50%;
  138. font-size: 24rpx;
  139. color: #424D5E;
  140. text-align: center;
  141. .title{
  142. font-size: 28rpx;
  143. color: #191919;
  144. font-weight: bold;
  145. }
  146. .icon{
  147. text-align: center;
  148. position: relative;
  149. }
  150. }
  151. > div{
  152. &:first-child{
  153. margin-right: 15rpx;
  154. }
  155. &:last-child{
  156. margin-left: 15rpx;
  157. }
  158. }
  159. }
  160. .panel-box {
  161. background-color: #ffffff;
  162. border-radius: 30upx;
  163. padding: 10upx 20upx;
  164. box-shadow: 3upx 2upx 6upx #eee;
  165. margin-bottom: 30upx;
  166. .panel-title {
  167. display: flex;
  168. align-items: center;
  169. padding: 20upx 12upx;
  170. .texts {
  171. font-size: 32upx;
  172. flex-grow: 1;
  173. }
  174. .btns {
  175. font-size: 28upx;
  176. color: #999;
  177. display: flex;
  178. align-items: center;
  179. }
  180. }
  181. .panel-body {
  182. padding: 0 10upx;
  183. .nodata {
  184. text-align: center;
  185. font-size: 24upx;
  186. width: 100%;
  187. color: #999999;
  188. padding: 30upx 0;
  189. }
  190. }
  191. }
  192. }
  193. </style>