query.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <template>
  2. <view class="query-wrap">
  3. <uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入商品名称" @iconClick="iconClick" :focus="true">
  4. </uni-easyinput>
  5. <z-paging ref="paging" @query="queryList" v-model="dataList" :use-page-scroll="true">
  6. <view class="inner-item" v-for="(item,index) in queryData" :key="index">
  7. <view class="inventory-item">
  8. <view class="shuo-item-name">
  9. <view class="shuo-label">
  10. {{item.name}}
  11. </view>
  12. <view class="shuo-unit">
  13. {{item.unit}}
  14. </view>
  15. </view>
  16. </view>
  17. <view class="inventory-item">
  18. <view class="shuo-item">
  19. <view class="shuo-label">
  20. 规格:
  21. </view>
  22. <view class="shuo-cont">
  23. {{item.guige}}
  24. </view>
  25. </view>
  26. <view class="shuo-item">
  27. <view class="shuo-label">
  28. 型号:
  29. </view>
  30. <view class="shuo-cont">
  31. {{item.xinghao}}
  32. </view>
  33. </view>
  34. </view>
  35. <view class="inventory-item">
  36. <view class="shuo-item">
  37. <view class="shuo-label">
  38. 耗材类别:
  39. </view>
  40. <view class="shuo-cont-blue">
  41. {{item.liebie}}
  42. </view>
  43. </view>
  44. <view class="shuo-item">
  45. <view class="shuo-label">
  46. 生产来源:
  47. </view>
  48. <view class="shuo-cont-blue">
  49. {{item.laiyuan}}
  50. </view>
  51. </view>
  52. </view>
  53. <view class="inventory-item">
  54. <view class="shuo-item-qy">
  55. <view class="shuo-label">
  56. 生产企业:
  57. </view>
  58. <view class="shuo-cont">
  59. {{item.qiye}}
  60. </view>
  61. </view>
  62. </view>
  63. <view class="inventory-item">
  64. <view class="shuo-item">
  65. <view class="shuo-label">
  66. 所在仓库:
  67. </view>
  68. <view class="shuo-cont">
  69. {{item.suozcku}}
  70. </view>
  71. </view>
  72. <view class="shuo-item">
  73. <view class="shuo-label">
  74. 所在库位:
  75. </view>
  76. <view class="shuo-cont">
  77. {{item.suozaikw}}
  78. </view>
  79. </view>
  80. </view>
  81. <view class="inventory-item">
  82. <view class="shuo-item">
  83. <view class="shuo-label">
  84. 现有库存:
  85. </view>
  86. <view class="shuo-cont-blue">
  87. {{item.xianykc}}
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </z-paging>
  93. </view>
  94. </template>
  95. <script>
  96. import {
  97. queryData
  98. } from './list.js'
  99. export default {
  100. data() {
  101. return {
  102. value: '',
  103. queryData: queryData,
  104. dataList: [],
  105. }
  106. },
  107. methods: {
  108. queryList(pageNo, pageSize) {
  109. // this.getGroundData();
  110. this.$refs.paging.complete(this.listData);
  111. },
  112. }
  113. }
  114. </script>
  115. <style lang="scss">
  116. .query-wrap {
  117. width: 100%;
  118. height: 100%;
  119. padding: 20rpx;
  120. box-sizing: border-box;
  121. background-color: #F1F1F1;
  122. overflow-y: scroll;
  123. overflow-x: hidden;
  124. .inner-item {
  125. width: 100%;
  126. height: 350rpx;
  127. border-bottom: 2rpx solid #BDBDBD;
  128. padding: 20rpx 20rpx 20rpx 50rpx;
  129. box-sizing: border-box;
  130. position: relative;
  131. background-color: #fff;
  132. border-radius: 20rpx;
  133. position: relative;
  134. margin-top: 10rpx;
  135. .all-text {
  136. width: 150rpx;
  137. height: 40rpx;
  138. position: absolute;
  139. right: 20rpx;
  140. top: 30rpx;
  141. font-family: PingFangSC-regular;
  142. font-size: 28rpx;
  143. color: rgba(52, 124, 175, 0.6);
  144. }
  145. .inventory-item {
  146. width: 100%;
  147. height: 40rpx;
  148. color: rgba(16, 16, 16, 1);
  149. font-size: 28rpx;
  150. text-align: left;
  151. font-family: PingFangSC-semiBold;
  152. margin-top: 10rpx;
  153. display: flex;
  154. align-items: center;
  155. .shuo-item-name {
  156. width: 100%;
  157. height: 100%;
  158. line-height: 20rpx;
  159. display: flex;
  160. align-items: center;
  161. .shuo-label {
  162. width: 200rpx;
  163. color: rgba(16, 16, 16, 1);
  164. font-size: 28rpx;
  165. text-align: left;
  166. font-family: PingFangSC-regular;
  167. text-align: justify;
  168. text-align-last: justify;
  169. margin-right: 10rpx;
  170. }
  171. .shuo-cont {
  172. color: rgba(16, 16, 16, 1);
  173. font-size: 25rpx;
  174. text-align: left;
  175. font-family: PingFangSC-regular;
  176. margin-left: 20rpx;
  177. }
  178. }
  179. .shuo-label {
  180. color: rgba(16, 16, 16, 1);
  181. font-size: 28rpx;
  182. text-align: left;
  183. font-family: PingFangSC-regular;
  184. font-weight: bold;
  185. width: 130rpx;
  186. text-align: justify;
  187. text-align-last: justify;
  188. }
  189. .shuo-unit {
  190. color: rgba(0, 193, 0, 1.0);
  191. font-weight: bold;
  192. }
  193. .shuo-cont-blue {
  194. color: #00BBFF;
  195. font-size: 28rpx;
  196. text-align: left;
  197. font-family: PingFangSC-regular;
  198. font-weight: bold;
  199. margin-left: 20rpx;
  200. }
  201. .shuo-cont {
  202. color: rgba(16, 16, 16, 1);
  203. font-size: 28rpx;
  204. text-align: left;
  205. font-family: PingFangSC-regular;
  206. margin-left: 20rpx;
  207. }
  208. .shuo-item-qy {
  209. width: 100%;
  210. height: 100%;
  211. line-height: 20rpx;
  212. display: flex;
  213. align-items: center;
  214. .shuo-label {
  215. color: rgba(16, 16, 16, 1);
  216. font-size: 28rpx;
  217. text-align: left;
  218. font-family: PingFangSC-regular;
  219. }
  220. .shuo-cont {
  221. color: rgba(16, 16, 16, 1);
  222. font-size: 28rpx;
  223. text-align: left;
  224. font-family: PingFangSC-regular;
  225. margin-left: 20rpx;
  226. }
  227. }
  228. .shuo-item {
  229. width: 50%;
  230. height: 100%;
  231. line-height: 20rpx;
  232. display: flex;
  233. align-items: center;
  234. .shuo-label {
  235. color: rgba(16, 16, 16, 1);
  236. font-size: 28rpx;
  237. text-align: left;
  238. font-family: PingFangSC-regular;
  239. }
  240. .shuo-cont {
  241. color: rgba(16, 16, 16, 1);
  242. font-size: 28rpx;
  243. text-align: left;
  244. font-family: PingFangSC-regular;
  245. margin-left: 20rpx;
  246. }
  247. .shuo-await {
  248. color: rgba(255, 191, 107, 1);
  249. font-size: 28rpx;
  250. text-align: left;
  251. font-family: PingFangSC-regular;
  252. margin-left: 20rpx;
  253. }
  254. .shuo-ready {
  255. color: rgba(162, 239, 77, 1);
  256. font-size: 28rpx;
  257. text-align: left;
  258. font-family: PingFangSC-regular;
  259. margin-left: 20rpx;
  260. }
  261. }
  262. .shuo-one-cont {
  263. width: 60%;
  264. }
  265. .shuo-min {
  266. width: 33%;
  267. }
  268. .max-item {
  269. width: 68%;
  270. margin-left: 10rpx;
  271. .shuo-cont {
  272. font-size: 25rpx;
  273. }
  274. }
  275. }
  276. }
  277. }
  278. </style>