Inventory.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <view class="inventory-wrap">
  3. <view class="ground-title-picking">
  4. <csr-tab :value.sync="index" :tabList="tabList" style="{position: 'relative';z-index: 51;}"></csr-tab>
  5. <view class="ground-icon"></view>
  6. <renTime :filterData='filterData' :defaultIndex='defaultIndex' @ed='ed'
  7. :stylesData="{padding:'0 0 0 540rpx'}"></renTime>
  8. </view>
  9. <z-paging ref="paging" @query="queryList" v-model="dataList" :use-page-scroll="true">
  10. <view class="list-item" v-for="(item,index) in dataList" :key="index" @click="itemDetails(item)">
  11. <view class="list-data">
  12. <text class="text-label">盘点单号:</text>
  13. <text class="text-cont">{{item.code}}</text>
  14. </view>
  15. <view class="list-data">
  16. <text class="text-label">任务名称:</text>
  17. <text class="text-cont">{{item.hispName}}</text>
  18. </view>
  19. <view class="list-data">
  20. <text class="text-label">目标仓库:</text>
  21. <text class="text-cont">{{item.cangku}}</text>
  22. </view>
  23. <view class="list-data">
  24. <text class="text-label">盘点品种:</text>
  25. <text class="text-cont">{{item.pandpz}}</text>
  26. <text class="text-label" style="{display: inline-block;margin-left: 50rpx;}">盘点总数:</text>
  27. <text class="text-cont">{{item.panzStal}}</text>
  28. </view>
  29. <view class="list-data">
  30. <text class="text-label">盘点金额:</text>
  31. <text class="text-cont">{{item.pandjine}}</text>
  32. </view>
  33. <view class="list-data">
  34. <text class="text-label">盘点时间:</text>
  35. <text class="text-cont">{{item.pandianTime}}</text>
  36. </view>
  37. <view class="invent-btn">
  38. <button type="primary" size="mini" v-if="item.status" @click.stop="inventResult()">盘点结果</button>
  39. <button type="primary" size="mini" v-else>进入盘点</button>
  40. </view>
  41. <view class="status-text">待盘点</view>
  42. </view>
  43. </z-paging>
  44. <uni-fab ref="fab" :horizontal="horizontal" :vertical="vertical"
  45. :direction="direction" @trigger="trigger" @fabClick="fabClick" />
  46. </view>
  47. </template>
  48. <script>
  49. import renTime from '@/components/ren-time/ren-time.vue';
  50. import {
  51. listData
  52. } from "./list.js";
  53. import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js'
  54. export default {
  55. mixins: [ZPMixin],
  56. components: {
  57. renTime,
  58. },
  59. data() {
  60. return {
  61. index: 0,
  62. tabList: ['全部', '待盘点', '已盘点'],
  63. filterData: [],
  64. defaultIndex: [0],
  65. listData: listData,
  66. dataList: []
  67. }
  68. },
  69. methods: {
  70. queryList(pageNo, pageSize) {
  71. this.$refs.paging.complete(this.listData);
  72. },
  73. //跳转上架详情
  74. itemDetails(item) {
  75. uni.navigateTo({
  76. url: '/pages/inventoryCont/outbound',
  77. success: function(res) {}
  78. });
  79. },
  80. // 进入盘点结果
  81. inventResult() {
  82. uni.navigateTo({
  83. url: '/pages/result/result',
  84. success: function(res) {}
  85. });
  86. },
  87. // 新建盘点
  88. fabClick(){
  89. uni.navigateTo({
  90. url: '/pages/formview/formview',
  91. success: function(res) {}
  92. });
  93. }
  94. }
  95. }
  96. </script>
  97. <style lang="scss">
  98. .inventory-wrap {
  99. width: 100%;
  100. height: 100%;
  101. box-sizing: border-box;
  102. background-color: #F1F1F1;
  103. .ground-title-picking {
  104. width: 100%;
  105. height: 100rpx;
  106. border-bottom: 2rpx solid #ccc;
  107. display: flex;
  108. align-items: center;
  109. box-sizing: border-box;
  110. position: relative;
  111. margin-bottom: 10rpx;
  112. }
  113. .list-item {
  114. width: 100%;
  115. height: 440rpx;
  116. margin-top: 10rpx;
  117. border: 2rpx solid #BDBDBD;
  118. padding: 20rpx 20rpx 20rpx 50rpx;
  119. box-sizing: border-box;
  120. position: relative;
  121. background-color: #fff;
  122. border-radius: 20rpx;
  123. .list-data {
  124. width: 70%;
  125. height: 40rpx;
  126. line-height: 40rpx;
  127. margin-top: 10rpx;
  128. .text-label {
  129. color: rgba(16, 16, 16, 1);
  130. font-size: 28rpx;
  131. font-family: PingFangSC-medium;
  132. }
  133. .text-cont {
  134. color: rgba(16, 16, 16, 1);
  135. font-size: 28rpx;
  136. font-family: PingFangSC-regular;
  137. }
  138. }
  139. .status-text {
  140. width: 100rpx;
  141. height: 40rpx;
  142. position: absolute;
  143. right: 20rpx;
  144. top: 30rpx;
  145. font-family: PingFangSC-semiBold;
  146. font-size: 28rpx;
  147. color: rgba(71, 73, 161, 0.86);
  148. }
  149. .invent-btn {
  150. width: 100%;
  151. height: 100rpx;
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. border-top: 2rpx solid #ccc;
  156. margin-top: 10rpx;
  157. }
  158. .time-text {
  159. width: 100rpx;
  160. height: 40rpx;
  161. position: absolute;
  162. right: 20rpx;
  163. bottom: 25rpx;
  164. font-family: PingFangSC-semiBold;
  165. font-size: 28rpx;
  166. color: rgba(71, 73, 161, 0.86);
  167. }
  168. }
  169. }
  170. </style>