query.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. {{item.name}}
  9. </view>
  10. </view>
  11. <view class="inventory-item">
  12. <view class="shuo-item">
  13. <view class="shuo-label">
  14. 规格:
  15. </view>
  16. <view class="shuo-cont">
  17. {{item.guige}}
  18. </view>
  19. </view>
  20. <view class="shuo-item">
  21. <view class="shuo-label">
  22. 型号:
  23. </view>
  24. <view class="shuo-cont">
  25. {{item.xinghao}}
  26. </view>
  27. </view>
  28. </view>
  29. <view class="inventory-item">
  30. <view class="shuo-item">
  31. <view class="shuo-label">
  32. 所在仓库:
  33. </view>
  34. <view class="shuo-cont">
  35. {{item.suozcku}}
  36. </view>
  37. </view>
  38. <view class="shuo-item">
  39. <view class="shuo-label">
  40. 所在库位:
  41. </view>
  42. <view class="shuo-cont">
  43. {{item.suozaikw}}
  44. </view>
  45. </view>
  46. </view>
  47. <view class="inventory-item">
  48. <view class="shuo-item">
  49. <view class="shuo-label">
  50. 现有库存:
  51. </view>
  52. <view class="shuo-cont">
  53. {{item.xianykc}}
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. import {
  62. queryData
  63. } from './list.js'
  64. export default {
  65. data() {
  66. return {
  67. value: '',
  68. queryData: queryData
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="scss">
  74. .query-wrap {
  75. width: 100%;
  76. height: 100%;
  77. padding: 20rpx;
  78. box-sizing: border-box;
  79. background-color: #F1F1F1;
  80. overflow-y: scroll;
  81. overflow-x: hidden;
  82. .inner-item {
  83. width: 100%;
  84. height: 270rpx;
  85. border-bottom: 2rpx solid #BDBDBD;
  86. padding: 20rpx 20rpx 20rpx 50rpx;
  87. box-sizing: border-box;
  88. position: relative;
  89. background-color: #fff;
  90. border-radius: 20rpx;
  91. position: relative;
  92. margin-top: 10rpx;
  93. .all-text {
  94. width: 150rpx;
  95. height: 40rpx;
  96. position: absolute;
  97. right: 20rpx;
  98. top: 30rpx;
  99. font-family: PingFangSC-regular;
  100. font-size: 28rpx;
  101. color: rgba(52, 124, 175, 0.6);
  102. }
  103. .inventory-item {
  104. width: 100%;
  105. height: 40rpx;
  106. color: rgba(16, 16, 16, 1);
  107. font-size: 28rpx;
  108. text-align: left;
  109. font-family: PingFangSC-semiBold;
  110. margin-top: 10rpx;
  111. display: flex;
  112. align-items: center;
  113. .shuo-label {
  114. color: rgba(16, 16, 16, 1);
  115. font-size: 28rpx;
  116. text-align: left;
  117. font-family: PingFangSC-regular;
  118. }
  119. .shuo-cont {
  120. color: rgba(16, 16, 16, 1);
  121. font-size: 28rpx;
  122. text-align: left;
  123. font-family: PingFangSC-regular;
  124. margin-left: 30rpx;
  125. }
  126. .shuo-item {
  127. width: 50%;
  128. height: 100%;
  129. line-height: 20rpx;
  130. display: flex;
  131. align-items: center;
  132. .shuo-label {
  133. color: rgba(16, 16, 16, 1);
  134. font-size: 28rpx;
  135. text-align: left;
  136. font-family: PingFangSC-regular;
  137. }
  138. .shuo-cont {
  139. color: rgba(16, 16, 16, 1);
  140. font-size: 28rpx;
  141. text-align: left;
  142. font-family: PingFangSC-regular;
  143. margin-left: 30rpx;
  144. }
  145. .shuo-await {
  146. color: rgba(255, 191, 107, 1);
  147. font-size: 28rpx;
  148. text-align: left;
  149. font-family: PingFangSC-regular;
  150. margin-left: 20rpx;
  151. }
  152. .shuo-ready {
  153. color: rgba(162, 239, 77, 1);
  154. font-size: 28rpx;
  155. text-align: left;
  156. font-family: PingFangSC-regular;
  157. margin-left: 20rpx;
  158. }
  159. }
  160. .shuo-one-cont {
  161. width: 60%;
  162. }
  163. .shuo-min {
  164. width: 33%;
  165. }
  166. .max-item {
  167. width: 68%;
  168. margin-left: 10rpx;
  169. .shuo-cont {
  170. font-size: 25rpx;
  171. }
  172. }
  173. }
  174. }
  175. }
  176. </style>