index.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <template>
  2. <view class="query-wrap">
  3. <view class="inner-item">
  4. <view class="inventory-item">
  5. <view class="shuo-item-name">
  6. <view class="shuo-label">
  7. {{refusaData.data.prodName||"" }}
  8. </view>
  9. <view class="shuo-unit">
  10. <span>{{ refusaData.data.purcUnt }} ({{ refusaData.data.convrat
  11. }}{{refusaData.data.prcUnt}}/{{ refusaData.data.purcUnt }})</span>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="inventory-item">
  16. <view class="shuo-item-name">
  17. <view class="shuo-label">
  18. 规格:
  19. </view>
  20. <view class="shuo-cont">
  21. {{refusaData.data.spec}}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="inventory-item">
  26. <view class="shuo-item-name">
  27. <view class="shuo-label">
  28. 型号:
  29. </view>
  30. <view class="shuo-cont">
  31. {{refusaData.data.mol}}
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="inner-item" v-for="(item,idex) in udiData" :key="idex">
  37. <view class="text-title">
  38. {{idex+1}}
  39. </view>
  40. <view class="inventory-item">
  41. <view class="shuo-item-name">
  42. <view class="shuo-label">
  43. UDI编码:
  44. </view>
  45. <view class="shuo-cont">
  46. {{item.udi}}
  47. </view>
  48. </view>
  49. </view>
  50. <view class="inventory-item">
  51. <view class="shuo-item">
  52. <view class="shuo-label">
  53. 批次:
  54. </view>
  55. <view class="shuo-cont">
  56. {{item.lotNum}}
  57. </view>
  58. </view>
  59. <view class="shuo-item">
  60. <view class="shuo-label">
  61. 包装单位:
  62. </view>
  63. <view class="shuo-cont">
  64. <span>{{ item.pacunt }}({{item.pacCnt }}{{ item.prcUnt }}/{{ item.pacunt }})</span>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. import {
  73. mapState,
  74. mapMutations,
  75. mapActions
  76. } from 'vuex';
  77. import moment from "moment";
  78. const paging = {
  79. current: 1,
  80. size: 10000
  81. };
  82. export default {
  83. data() {
  84. return {
  85. listData: [],
  86. }
  87. },
  88. computed: {
  89. ...mapState(['refusaData', 'udiData'])
  90. },
  91. onShow() {},
  92. mounted() {
  93. },
  94. methods: {},
  95. watch: {
  96. }
  97. }
  98. </script>
  99. <style lang="scss">
  100. .query-wrap {
  101. width: 100%;
  102. height: 100%;
  103. padding: 20rpx;
  104. box-sizing: border-box;
  105. background-color: #F1F1F1;
  106. overflow-y: scroll;
  107. overflow-x: hidden;
  108. position: relative;
  109. padding-bottom: 200rpx;
  110. .inner-item {
  111. width: 100%;
  112. height: auto;
  113. border-bottom: 2rpx solid #BDBDBD;
  114. padding: 20rpx 20rpx 20rpx 60rpx;
  115. box-sizing: border-box;
  116. position: relative;
  117. background-color: #fff;
  118. border-radius: 20rpx;
  119. position: relative;
  120. margin-top: 10rpx;
  121. .text-title {
  122. width: 20rpx;
  123. height: 40rpx;
  124. color: #01A992;
  125. font-size: 32rpx;
  126. text-align: left;
  127. font-family: PingFangSC-semiBold;
  128. position: absolute;
  129. left:20rpx;
  130. top:50rpx;
  131. }
  132. .item-stats {
  133. position: absolute;
  134. right: 20rpx;
  135. top: 30rpx;
  136. width: 96rpx;
  137. height: 46rpx;
  138. line-height: 46rpx;
  139. color: rgba(1, 169, 146, 1);
  140. font-size: 32rpx;
  141. text-align: left;
  142. font-family: PingFangSC-bold;
  143. }
  144. .inventory-item {
  145. width: 100%;
  146. height: 40rpx;
  147. color: rgba(16, 16, 16, 1);
  148. font-size: 28rpx;
  149. text-align: left;
  150. font-family: PingFangSC-semiBold;
  151. margin-top: 15rpx;
  152. display: flex;
  153. align-items: center;
  154. .shuo-label {
  155. color: rgba(16, 16, 16, 1);
  156. font-size: 28rpx;
  157. text-align: left;
  158. font-family: PingFangSC-regular;
  159. font-weight: bold;
  160. }
  161. .shuo-unit {
  162. color: rgba(0, 193, 0, 1.0);
  163. font-weight: bold;
  164. overflow: hidden;
  165. white-space: nowrap;
  166. text-overflow: ellipsis;
  167. height: 50rpx;
  168. line-height: 50rpx;
  169. }
  170. .shuo-cont-blue {
  171. color: #00BBFF;
  172. font-size: 25rpx;
  173. text-align: left;
  174. font-family: PingFangSC-regular;
  175. font-weight: bold;
  176. margin-left: 10rpx;
  177. }
  178. .shuo-cont,
  179. .suces,
  180. .shuo-error {
  181. color: rgba(16, 16, 16, 1);
  182. font-size: 25rpx;
  183. text-align: left;
  184. height: 40rpx;
  185. line-height: 40rpx;
  186. font-family: PingFangSC-regular;
  187. margin-left: 20rpx;
  188. overflow: hidden;
  189. white-space: nowrap;
  190. text-overflow: ellipsis
  191. }
  192. .suces {
  193. color: rgba(0, 193, 0, 1.0);
  194. font-weight: bold;
  195. }
  196. .shuo-error {
  197. color: red;
  198. font-weight: bold;
  199. }
  200. .shuo-item-name {
  201. width: 100%;
  202. height: 100%;
  203. line-height: 20rpx;
  204. display: flex;
  205. align-items: center;
  206. .shuo-label {
  207. color: rgba(16, 16, 16, 1);
  208. font-size: 28rpx;
  209. text-align: left;
  210. font-family: PingFangSC-regular;
  211. margin-right: 20rpx;
  212. overflow: hidden;
  213. white-space: nowrap;
  214. text-overflow: ellipsis;
  215. height: 50rpx;
  216. line-height: 50rpx;
  217. }
  218. .shuo-cont {
  219. color: rgba(16, 16, 16, 1);
  220. font-size: 25rpx;
  221. text-align: left;
  222. font-family: PingFangSC-regular;
  223. margin-left: 20rpx;
  224. overflow: hidden;
  225. white-space: nowrap;
  226. text-overflow: ellipsis;
  227. height: 50rpx;
  228. line-height: 50rpx;
  229. }
  230. }
  231. .shuo-item-tcl {
  232. width: 100%;
  233. height: 100%;
  234. line-height: 20rpx;
  235. display: flex;
  236. align-items: center;
  237. .shuo-label {
  238. width: 150rpx;
  239. color: rgba(16, 16, 16, 1);
  240. font-size: 28rpx;
  241. text-align: left;
  242. font-family: PingFangSC-regular;
  243. text-align: justify;
  244. text-align-last: justify;
  245. margin-right: 20rpx;
  246. }
  247. .shuo-cont {
  248. color: rgba(16, 16, 16, 1);
  249. font-size: 25rpx;
  250. text-align: left;
  251. font-family: PingFangSC-regular;
  252. margin-left: 20rpx;
  253. }
  254. }
  255. .shuo-item {
  256. width: 50%;
  257. height: 100%;
  258. line-height: 20rpx;
  259. display: flex;
  260. align-items: center;
  261. .shuo-label {
  262. width: 180rpx;
  263. color: rgba(16, 16, 16, 1);
  264. font-size: 28rpx;
  265. text-align: left;
  266. font-family: PingFangSC-regular;
  267. text-align-last: justify;
  268. }
  269. .shuo-cont {
  270. color: rgba(16, 16, 16, 1);
  271. font-size: 25rpx;
  272. text-align: left;
  273. font-family: PingFangSC-regular;
  274. margin-left: 10rpx;
  275. }
  276. .shuo-await {
  277. color: rgba(255, 191, 107, 1);
  278. font-size: 28rpx;
  279. text-align: left;
  280. font-family: PingFangSC-regular;
  281. margin-left: 20rpx;
  282. }
  283. .shuo-ready {
  284. color: rgba(162, 239, 77, 1);
  285. font-size: 28rpx;
  286. text-align: left;
  287. font-family: PingFangSC-regular;
  288. margin-left: 20rpx;
  289. }
  290. }
  291. .shuo-one-cont {
  292. width: 60%;
  293. }
  294. .shuo-min {
  295. width: 33%;
  296. }
  297. .max-item {
  298. width: 68%;
  299. margin-left: 10rpx;
  300. .shuo-cont {
  301. font-size: 20rpx;
  302. }
  303. }
  304. }
  305. }
  306. }
  307. uni-page-body {
  308. width: 100%;
  309. height: 100%;
  310. }
  311. </style>