index.vue 5.5 KB

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