consumepick.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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. export default {
  85. data() {
  86. return {
  87. datas: [{
  88. chucode: "KMT20231126",
  89. mubiaoke: "血透室",
  90. yansliang: 10,
  91. yishangj: 10,
  92. guige: '医用耗材',
  93. xinghao: "出库结算",
  94. hispName: "张一山",
  95. shangjhuwe: "2023-11-26 14:05:08",
  96. shangjiatime: "QS2134897345"
  97. }],
  98. listDatacont: [],
  99. value: ""
  100. }
  101. },
  102. onLoad() {
  103. },
  104. mounted() {
  105. this.listDatacont = listData;
  106. },
  107. methods: {
  108. queryList(pageNo, pageSize) {
  109. this.$refs.paging.complete(this.data);
  110. },
  111. //跳转上架详情
  112. itemDetails(item) {
  113. uni.navigateTo({
  114. url: '/pages/pickingeitalscont/pickingetials',
  115. success: function(res) {}
  116. });
  117. }
  118. }
  119. }
  120. </script>
  121. <style lang="scss" scoped>
  122. .groundtials-wrap {
  123. width: 100%;
  124. height: 100%;
  125. padding: 20rpx;
  126. box-sizing: border-box;
  127. background-color: #F1F1F1;
  128. overflow-y: scroll;
  129. overflow-x: hidden;
  130. .total-wrap {
  131. width: 100%;
  132. height: 100rpx;
  133. margin-top: 10rpx;
  134. border: 2rpx solid #BDBDBD;
  135. padding: 20rpx;
  136. box-sizing: border-box;
  137. background-color: #fff;
  138. border-radius: 20rpx;
  139. display: flex;
  140. .total-item {
  141. width: 50%;
  142. height: 100%;
  143. display: flex;
  144. .total-label {
  145. height: 100%;
  146. padding-left: 30rpx;
  147. line-height: 50rpx;
  148. color: rgba(16, 16, 16, 1);
  149. font-size: 32rpx;
  150. text-align: left;
  151. font-family: PingFangSC-regular;
  152. }
  153. .total-await {
  154. height: 100%;
  155. line-height: 50rpx;
  156. color: rgba(255, 191, 107, 1);
  157. font-size: 28rpx;
  158. text-align: left;
  159. font-family: PingFangSC-regular;
  160. margin-left: 20rpx;
  161. }
  162. .total-aready {
  163. height: 100%;
  164. line-height: 50rpx;
  165. color: rgba(162, 239, 77, 1);
  166. font-size: 28rpx;
  167. text-align: left;
  168. font-family: PingFangSC-regular;
  169. margin-left: 20rpx;
  170. }
  171. }
  172. }
  173. .inventory-wrap {
  174. width: 100%;
  175. margin-top: 20rpx;
  176. border-radius: 20rpx;
  177. padding-bottom: 100rpx;
  178. .inner-item {
  179. width: 100%;
  180. height: 260rpx;
  181. margin-top:20rpx;
  182. border-bottom: 2rpx solid #BDBDBD;
  183. padding: 20rpx 20rpx 20rpx 50rpx;
  184. box-sizing: border-box;
  185. position: relative;
  186. background-color: #fff;
  187. border-radius: 20rpx;
  188. position: relative;
  189. .all-text {
  190. width: 150rpx;
  191. height: 40rpx;
  192. position: absolute;
  193. right: 20rpx;
  194. bottom: 25rpx;
  195. font-family: PingFangSC-regular;
  196. font-size: 28rpx;
  197. color: rgba(52, 124, 175, 0.6);
  198. }
  199. .inventory-item {
  200. width: 100%;
  201. height: 40rpx;
  202. color: rgba(16, 16, 16, 1);
  203. font-size: 28rpx;
  204. text-align: left;
  205. font-family: PingFangSC-semiBold;
  206. margin-top: 10rpx;
  207. display: flex;
  208. align-items: center;
  209. .shuo-label {
  210. color: rgba(16, 16, 16, 1);
  211. font-size: 28rpx;
  212. text-align: left;
  213. font-family: PingFangSC-regular;
  214. }
  215. .shuo-cont {
  216. color: rgba(16, 16, 16, 1);
  217. font-size: 28rpx;
  218. text-align: left;
  219. font-family: PingFangSC-regular;
  220. margin-left: 30rpx;
  221. }
  222. .shuo-item {
  223. width: 50%;
  224. height: 100%;
  225. line-height: 20rpx;
  226. display: flex;
  227. align-items: center;
  228. .shuo-label {
  229. color: rgba(16, 16, 16, 1);
  230. font-size: 28rpx;
  231. text-align: left;
  232. font-family: PingFangSC-regular;
  233. }
  234. .shuo-cont {
  235. color: rgba(16, 16, 16, 1);
  236. font-size: 28rpx;
  237. text-align: left;
  238. font-family: PingFangSC-regular;
  239. margin-left: 30rpx;
  240. }
  241. .shuo-await {
  242. color: rgba(255, 191, 107, 1);
  243. font-size: 28rpx;
  244. text-align: left;
  245. font-family: PingFangSC-regular;
  246. margin-left: 20rpx;
  247. }
  248. .shuo-ready {
  249. color: rgba(162, 239, 77, 1);
  250. font-size: 28rpx;
  251. text-align: left;
  252. font-family: PingFangSC-regular;
  253. margin-left: 20rpx;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. .footer-cont {
  260. width: 100%;
  261. height: 100rpx;
  262. display: flex;
  263. margin-top: 40rpx;
  264. }
  265. }
  266. </style>