consume.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <template>
  2. <view class="picking-wrap">
  3. <view class="ground-title-picking">
  4. <picker mode="date" @change="handleDate">
  5. <view class="date c-flex-align" :style="{ height:'100rpx'}">
  6. <view>{{ selDate }}</view>
  7. <image src="https://i.loli.net/2020/07/15/xjVSvzWcH9NO7al.png" mode="" class="icon-triangle">
  8. </image>
  9. </view>
  10. </picker>
  11. </view>
  12. <uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入消耗单号" @iconClick="iconClick" :focus="true">
  13. </uni-easyinput>
  14. <z-paging ref="paging" @query="queryList" v-model="dataList" :use-page-scroll="true">
  15. <view class="inner-item" v-for="(item,index) in listData" :key="index" @click="itemDetails(item)">
  16. <view class="inventory-item">
  17. <view class="shuo-item shuo-one-cont">
  18. <view class="shuo-label">
  19. 消耗单号:
  20. </view>
  21. <view class="shuo-cont">
  22. {{item.chucode}}
  23. </view>
  24. </view>
  25. </view>
  26. <view class="inventory-item">
  27. <view class="shuo-item">
  28. <view class="shuo-label">
  29. 消耗科室:
  30. </view>
  31. <view class="shuo-cont">
  32. {{item.mubiaoke}}
  33. </view>
  34. </view>
  35. </view>
  36. <view class="inventory-item">
  37. <view class="shuo-item">
  38. <view class="shuo-label">
  39. 消耗品种:
  40. </view>
  41. <view class="shuo-await">
  42. {{item.yansliang}}
  43. </view>
  44. </view>
  45. <view class="shuo-item">
  46. <view class="shuo-label">
  47. 消耗数量:
  48. </view>
  49. <view class="shuo-ready">
  50. {{item.yishangj}}
  51. </view>
  52. </view>
  53. </view>
  54. <view class="inventory-item">
  55. <view class="shuo-item shuo-min">
  56. <view class="shuo-label">
  57. 制单人:
  58. </view>
  59. <view class="shuo-cont">
  60. {{item.hispName}}
  61. </view>
  62. </view>
  63. <view class="shuo-item max-item">
  64. <view class="shuo-label">
  65. 制单时间:
  66. </view>
  67. <view class="shuo-cont">
  68. {{item.shangjhuwe}}
  69. </view>
  70. </view>
  71. </view>
  72. <view class="all-text">已出库</view>
  73. </view>
  74. </z-paging>
  75. <uni-fab ref="fab" @trigger="trigger" @fabClick="fabClick" />
  76. </view>
  77. </template>
  78. <script>
  79. import {
  80. listData
  81. } from './list.js';
  82. import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js'
  83. export default {
  84. mixins: [ZPMixin],
  85. data() {
  86. return {
  87. value: "",
  88. dataList: [],
  89. listData: listData,
  90. selDate: "选择日期"
  91. }
  92. },
  93. methods: {
  94. queryList(pageNo, pageSize) {
  95. this.$refs.paging.complete(this.listData);
  96. },
  97. // 获取日期
  98. handleDate(e) {
  99. let d = e.detail.value;
  100. this.selDate = d;
  101. },
  102. //跳转上架详情
  103. itemDetails(item) {
  104. // uni.navigateTo({
  105. // url: '/pages/pickingetials/pickingetials',
  106. // success: function(res) {}
  107. // });
  108. },
  109. //跳转待消耗详情
  110. fabClick() {
  111. uni.navigateTo({
  112. url: '/pages/consumepick/consumepick',
  113. success: function(res) {}
  114. });
  115. }
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. .picking-wrap {
  121. width: 100%;
  122. height: 100%;
  123. padding: 20rpx;
  124. box-sizing: border-box;
  125. background-color: #F1F1F1;
  126. .ground-title-picking {
  127. width: 100%;
  128. height: 100rpx;
  129. display: flex;
  130. align-items: center;
  131. justify-content: flex-end;
  132. padding: 20rpx;
  133. box-sizing: border-box;
  134. margin-bottom: 10rpx;
  135. background-color: #fff;
  136. .c-flex-align {
  137. display: flex;
  138. align-items: center;
  139. color: rgba(16, 16, 16, 1);
  140. }
  141. .icon-triangle {
  142. width: 16rpx;
  143. height: 16rpx;
  144. margin-left: 10rpx;
  145. }
  146. }
  147. .inner-item {
  148. width: 100%;
  149. height: 260rpx;
  150. border-bottom: 2rpx solid #BDBDBD;
  151. padding: 20rpx 20rpx 20rpx 50rpx;
  152. box-sizing: border-box;
  153. position: relative;
  154. background-color: #fff;
  155. border-radius: 20rpx;
  156. position: relative;
  157. margin-top: 10rpx;
  158. .all-text {
  159. width: 150rpx;
  160. height: 40rpx;
  161. position: absolute;
  162. right: 20rpx;
  163. top: 30rpx;
  164. font-family: PingFangSC-regular;
  165. font-size: 28rpx;
  166. color: rgba(52, 124, 175, 0.6);
  167. }
  168. .inventory-item {
  169. width: 100%;
  170. height: 40rpx;
  171. color: rgba(16, 16, 16, 1);
  172. font-size: 28rpx;
  173. text-align: left;
  174. font-family: PingFangSC-semiBold;
  175. margin-top: 10rpx;
  176. display: flex;
  177. align-items: center;
  178. .shuo-label {
  179. color: rgba(16, 16, 16, 1);
  180. font-size: 28rpx;
  181. text-align: left;
  182. font-family: PingFangSC-regular;
  183. }
  184. .shuo-cont {
  185. color: rgba(16, 16, 16, 1);
  186. font-size: 28rpx;
  187. text-align: left;
  188. font-family: PingFangSC-regular;
  189. margin-left: 30rpx;
  190. }
  191. .shuo-item {
  192. width: 50%;
  193. height: 100%;
  194. line-height: 20rpx;
  195. display: flex;
  196. align-items: center;
  197. .shuo-label {
  198. color: rgba(16, 16, 16, 1);
  199. font-size: 28rpx;
  200. text-align: left;
  201. font-family: PingFangSC-regular;
  202. }
  203. .shuo-cont {
  204. color: rgba(16, 16, 16, 1);
  205. font-size: 28rpx;
  206. text-align: left;
  207. font-family: PingFangSC-regular;
  208. margin-left: 30rpx;
  209. }
  210. .shuo-await {
  211. color: rgba(255, 191, 107, 1);
  212. font-size: 28rpx;
  213. text-align: left;
  214. font-family: PingFangSC-regular;
  215. margin-left: 20rpx;
  216. }
  217. .shuo-ready {
  218. color: rgba(162, 239, 77, 1);
  219. font-size: 28rpx;
  220. text-align: left;
  221. font-family: PingFangSC-regular;
  222. margin-left: 20rpx;
  223. }
  224. }
  225. .shuo-one-cont {
  226. width: 60%;
  227. }
  228. .shuo-min {
  229. width: 33%;
  230. }
  231. .max-item {
  232. width: 68%;
  233. margin-left: 10rpx;
  234. .shuo-cont {
  235. font-size: 25rpx;
  236. }
  237. }
  238. }
  239. }
  240. }
  241. </style>