index.vue 5.2 KB

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