query.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <template>
  2. <view class="query-wrap">
  3. <uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入商品名称" @iconClick="iconClick" :focus="true">
  4. </uni-easyinput>
  5. <view class="inner-item" v-for="(item,index) in queryData" :key="index">
  6. <view class="inventory-item">
  7. <view class="shuo-item">
  8. <view class="shuo-label">
  9. {{item.name}}
  10. </view>
  11. <view class="shuo-unit">
  12. {{item.unit}}
  13. </view>
  14. </view>
  15. </view>
  16. <view class="inventory-item">
  17. <view class="shuo-item">
  18. <view class="shuo-label">
  19. 规格:
  20. </view>
  21. <view class="shuo-cont">
  22. {{item.guige}}
  23. </view>
  24. </view>
  25. <view class="shuo-item">
  26. <view class="shuo-label">
  27. 型号:
  28. </view>
  29. <view class="shuo-cont">
  30. {{item.xinghao}}
  31. </view>
  32. </view>
  33. </view>
  34. <view class="inventory-item">
  35. <view class="shuo-item">
  36. <view class="shuo-label">
  37. 耗材类别:
  38. </view>
  39. <view class="shuo-cont-blue">
  40. {{item.liebie}}
  41. </view>
  42. </view>
  43. <view class="shuo-item">
  44. <view class="shuo-label">
  45. 生产来源:
  46. </view>
  47. <view class="shuo-cont-blue">
  48. {{item.laiyuan}}
  49. </view>
  50. </view>
  51. </view>
  52. <view class="inventory-item">
  53. <view class="shuo-item-qy">
  54. <view class="shuo-label">
  55. 生产企业:
  56. </view>
  57. <view class="shuo-cont">
  58. {{item.qiye}}
  59. </view>
  60. </view>
  61. </view>
  62. <view class="inventory-item">
  63. <view class="shuo-item">
  64. <view class="shuo-label">
  65. 所在仓库:
  66. </view>
  67. <view class="shuo-cont">
  68. {{item.suozcku}}
  69. </view>
  70. </view>
  71. <view class="shuo-item">
  72. <view class="shuo-label">
  73. 所在库位:
  74. </view>
  75. <view class="shuo-cont">
  76. {{item.suozaikw}}
  77. </view>
  78. </view>
  79. </view>
  80. <view class="inventory-item">
  81. <view class="shuo-item">
  82. <view class="shuo-label">
  83. 现有库存:
  84. </view>
  85. <view class="shuo-cont-blue">
  86. {{item.xianykc}}
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </template>
  93. <script>
  94. import {
  95. queryData
  96. } from './list.js'
  97. export default {
  98. data() {
  99. return {
  100. value: '',
  101. queryData: queryData
  102. }
  103. }
  104. }
  105. </script>
  106. <style lang="scss">
  107. .query-wrap {
  108. width: 100%;
  109. height: 100%;
  110. padding: 20rpx;
  111. box-sizing: border-box;
  112. background-color: #F1F1F1;
  113. overflow-y: scroll;
  114. overflow-x: hidden;
  115. .inner-item {
  116. width: 100%;
  117. height: 350rpx;
  118. border-bottom: 2rpx solid #BDBDBD;
  119. padding: 20rpx 20rpx 20rpx 50rpx;
  120. box-sizing: border-box;
  121. position: relative;
  122. background-color: #fff;
  123. border-radius: 20rpx;
  124. position: relative;
  125. margin-top: 10rpx;
  126. .all-text {
  127. width: 150rpx;
  128. height: 40rpx;
  129. position: absolute;
  130. right: 20rpx;
  131. top: 30rpx;
  132. font-family: PingFangSC-regular;
  133. font-size: 28rpx;
  134. color: rgba(52, 124, 175, 0.6);
  135. }
  136. .inventory-item {
  137. width: 115%;
  138. height: 40rpx;
  139. color: rgba(16, 16, 16, 1);
  140. font-size: 28rpx;
  141. text-align: left;
  142. font-family: PingFangSC-semiBold;
  143. margin-top: 10rpx;
  144. display: flex;
  145. align-items: center;
  146. .shuo-label {
  147. color: rgba(16, 16, 16, 1);
  148. font-size: 28rpx;
  149. text-align: left;
  150. font-family: PingFangSC-regular;
  151. font-weight: bold;
  152. }
  153. .shuo-unit {
  154. color: rgba(0, 193, 0, 1.0);
  155. font-weight: bold;
  156. }
  157. .shuo-cont-blue {
  158. color: #00BBFF;
  159. font-size: 28rpx;
  160. text-align: left;
  161. font-family: PingFangSC-regular;
  162. font-weight: bold;
  163. }
  164. .shuo-cont {
  165. color: rgba(16, 16, 16, 1);
  166. font-size: 28rpx;
  167. text-align: left;
  168. font-family: PingFangSC-regular;
  169. margin-left: 30rpx;
  170. }
  171. .shuo-item-qy {
  172. width: 100%;
  173. height: 100%;
  174. line-height: 20rpx;
  175. display: flex;
  176. align-items: center;
  177. .shuo-label {
  178. color: rgba(16, 16, 16, 1);
  179. font-size: 28rpx;
  180. text-align: left;
  181. font-family: PingFangSC-regular;
  182. }
  183. .shuo-cont {
  184. color: rgba(16, 16, 16, 1);
  185. font-size: 28rpx;
  186. text-align: left;
  187. font-family: PingFangSC-regular;
  188. margin-left: 30rpx;
  189. }
  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>