consumepick.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <template>
  2. <view class="groundtials-wrap">
  3. <uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入或扫描条码" @iconClick="iconClick" :focus="true">
  4. </uni-easyinput>
  5. <view class="total-wrap">
  6. <view class="total-item">
  7. <view class="total-label">
  8. 消耗品种:
  9. </view>
  10. <view class="total-await">
  11. 100
  12. </view>
  13. </view>
  14. <view class="total-item">
  15. <view class="total-label">
  16. 消耗数量:
  17. </view>
  18. <view class="total-aready">
  19. 100
  20. </view>
  21. </view>
  22. </view>
  23. <view class="inventory-wrap">
  24. <view class="inner-item" v-for="(item,index) in listDatacont" :key="index" @click="itemDetails(item)">
  25. <view class="inventory-item">
  26. <view class="shuo-item">
  27. <view class="shuo-label">
  28. {{index}}:
  29. </view>
  30. <view class="shuo-cont">
  31. {{item.name}}
  32. </view>
  33. </view>
  34. <view class="shuo-item">
  35. <view class="shuo-nub">
  36. 包(100支/包)
  37. </view>
  38. </view>
  39. </view>
  40. <view class="inventory-item">
  41. <view class="shuo-item">
  42. <view class="shuo-label">
  43. 规格:
  44. </view>
  45. <view class="shuo-cont">
  46. {{item.guige}}
  47. </view>
  48. </view>
  49. <view class="shuo-item">
  50. <view class="shuo-label">
  51. 型号:
  52. </view>
  53. <view class="shuo-cont">
  54. {{item.xinghao}}
  55. </view>
  56. </view>
  57. </view>
  58. <view class="inventory-item">
  59. <view class="shuo-item">
  60. <view class="shuo-label">
  61. 消耗数量:
  62. </view>
  63. <view class="shuo-await">
  64. {{item.yansliang}}
  65. </view>
  66. </view>
  67. </view>
  68. <view class="inventory-item">
  69. <view class="shuo-label">
  70. 生产厂家:
  71. </view>
  72. <view class="shuo-cont">
  73. {{item.hispName}}
  74. </view>
  75. </view>
  76. </view>
  77. <view class="footer-cont">
  78. <button type="primary" style="{'background-color': 'rgba(60, 100, 220, 1)'}">消耗确认</button>
  79. </view>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. import {
  85. listData
  86. } from './list.js';
  87. export default {
  88. data() {
  89. return {
  90. datas: [{
  91. chucode: "KMT20231126",
  92. mubiaoke: "血透室",
  93. yansliang: 10,
  94. yishangj: 10,
  95. guige: '医用耗材',
  96. xinghao: "出库结算",
  97. hispName: "张一山",
  98. shangjhuwe: "2023-11-26 14:05:08",
  99. shangjiatime: "QS2134897345"
  100. }],
  101. listDatacont: [],
  102. value: ""
  103. }
  104. },
  105. onLoad() {
  106. },
  107. mounted() {
  108. this.listDatacont = listData;
  109. },
  110. methods: {
  111. queryList(pageNo, pageSize) {
  112. this.$refs.paging.complete(this.data);
  113. },
  114. //跳转上架详情
  115. itemDetails(item) {
  116. uni.navigateTo({
  117. url: '/pages/pickingeitalscont/pickingetials',
  118. success: function(res) {}
  119. });
  120. }
  121. }
  122. }
  123. </script>
  124. <style lang="scss" scoped>
  125. .groundtials-wrap {
  126. width: 100%;
  127. height: 100%;
  128. padding: 20rpx;
  129. box-sizing: border-box;
  130. background-color: #F1F1F1;
  131. overflow-y: scroll;
  132. overflow-x: hidden;
  133. .total-wrap {
  134. width: 100%;
  135. height: 100rpx;
  136. margin-top: 10rpx;
  137. border: 2rpx solid #BDBDBD;
  138. padding: 20rpx;
  139. box-sizing: border-box;
  140. background-color: #fff;
  141. border-radius: 20rpx;
  142. display: flex;
  143. .total-item {
  144. width: 50%;
  145. height: 100%;
  146. display: flex;
  147. .total-label {
  148. height: 100%;
  149. padding-left: 30rpx;
  150. line-height: 50rpx;
  151. color: rgba(16, 16, 16, 1);
  152. font-size: 32rpx;
  153. text-align: left;
  154. font-family: PingFangSC-regular;
  155. }
  156. .total-await {
  157. height: 100%;
  158. line-height: 50rpx;
  159. color: rgba(255, 191, 107, 1);
  160. font-size: 28rpx;
  161. text-align: left;
  162. font-family: PingFangSC-regular;
  163. margin-left: 20rpx;
  164. }
  165. .total-aready {
  166. height: 100%;
  167. line-height: 50rpx;
  168. color: rgba(162, 239, 77, 1);
  169. font-size: 28rpx;
  170. text-align: left;
  171. font-family: PingFangSC-regular;
  172. margin-left: 20rpx;
  173. }
  174. }
  175. }
  176. .inventory-wrap {
  177. width: 100%;
  178. margin-top: 20rpx;
  179. border-radius: 20rpx;
  180. padding-bottom: 100rpx;
  181. .inner-item {
  182. width: 100%;
  183. height: 260rpx;
  184. margin-top:20rpx;
  185. border-bottom: 2rpx solid #BDBDBD;
  186. padding: 20rpx 20rpx 20rpx 50rpx;
  187. box-sizing: border-box;
  188. position: relative;
  189. background-color: #fff;
  190. border-radius: 20rpx;
  191. position: relative;
  192. .all-text {
  193. width: 150rpx;
  194. height: 40rpx;
  195. position: absolute;
  196. right: 20rpx;
  197. bottom: 25rpx;
  198. font-family: PingFangSC-regular;
  199. font-size: 28rpx;
  200. color: rgba(52, 124, 175, 0.6);
  201. }
  202. .inventory-item {
  203. width: 100%;
  204. height: 40rpx;
  205. color: rgba(16, 16, 16, 1);
  206. font-size: 28rpx;
  207. text-align: left;
  208. font-family: PingFangSC-semiBold;
  209. margin-top: 10rpx;
  210. display: flex;
  211. align-items: center;
  212. .shuo-label {
  213. color: rgba(16, 16, 16, 1);
  214. font-size: 28rpx;
  215. text-align: left;
  216. font-family: PingFangSC-regular;
  217. }
  218. .shuo-cont {
  219. color: rgba(16, 16, 16, 1);
  220. font-size: 28rpx;
  221. text-align: left;
  222. font-family: PingFangSC-regular;
  223. margin-left: 30rpx;
  224. }
  225. .shuo-item {
  226. width: 50%;
  227. height: 100%;
  228. line-height: 20rpx;
  229. display: flex;
  230. align-items: center;
  231. .shuo-label {
  232. color: rgba(16, 16, 16, 1);
  233. font-size: 28rpx;
  234. text-align: left;
  235. font-family: PingFangSC-regular;
  236. }
  237. .shuo-cont {
  238. color: rgba(16, 16, 16, 1);
  239. font-size: 28rpx;
  240. text-align: left;
  241. font-family: PingFangSC-regular;
  242. margin-left: 30rpx;
  243. }
  244. .shuo-await {
  245. color: rgba(255, 191, 107, 1);
  246. font-size: 28rpx;
  247. text-align: left;
  248. font-family: PingFangSC-regular;
  249. margin-left: 20rpx;
  250. }
  251. .shuo-ready {
  252. color: rgba(162, 239, 77, 1);
  253. font-size: 28rpx;
  254. text-align: left;
  255. font-family: PingFangSC-regular;
  256. margin-left: 20rpx;
  257. }
  258. }
  259. }
  260. }
  261. }
  262. .footer-cont {
  263. width: 100%;
  264. height: 100rpx;
  265. display: flex;
  266. margin-top: 40rpx;
  267. }
  268. }
  269. </style>