groundetials.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. <template>
  2. <view class="groundtials-wrap">
  3. <view class="inventory-wrap">
  4. <view class="inner-item" v-for="(item,index) in listData" :key="index">
  5. <view class="inventory-item">
  6. <view class="shuo-name">
  7. {{item.name}}
  8. </view>
  9. </view>
  10. <view class="inventory-item">
  11. <view class="shuo-label">
  12. 规格:
  13. </view>
  14. <view class="shuo-cont">
  15. {{item.guige }}
  16. </view>
  17. </view>
  18. <view class="inventory-item">
  19. <view class="shuo-label">
  20. 型号:
  21. </view>
  22. <view class="shuo-cont">
  23. {{item.xinghao }}
  24. </view>
  25. </view>
  26. <view class="inventory-item">
  27. <view class="shuo-label">
  28. 生产批次:
  29. </view>
  30. <view class="shuo-cont">
  31. {{item.A}}
  32. </view>
  33. </view>
  34. <view class="inventory-item">
  35. <view class="shuo-label">
  36. 生产日期:
  37. </view>
  38. <view class="shuo-cont">
  39. {{item.D}}
  40. </view>
  41. </view>
  42. <view class="inventory-item">
  43. <view class="shuo-label">
  44. 有效日期:
  45. </view>
  46. <view class="shuo-cont">
  47. {{item.D}}
  48. </view>
  49. </view>
  50. <view class="inventory-item">
  51. <view class="shuo-label">
  52. 注册证号:
  53. </view>
  54. <view class="shuo-cont">
  55. {{item.C}}
  56. </view>
  57. </view>
  58. <view class="inventory-item">
  59. <view class="shuo-label">
  60. 耗材类别:
  61. </view>
  62. <view class="shuo-cont-Mcs">
  63. {{item.B}}
  64. </view>
  65. </view>
  66. <view class="inventory-item">
  67. <view class="shuo-label">
  68. 生产来源:
  69. </view>
  70. <view class="shuo-cont-Ly">
  71. {{item.A}}
  72. </view>
  73. </view>
  74. <view class="inventory-item">
  75. <view class="shuo-label">
  76. 生产企业:
  77. </view>
  78. <view class="shuo-cont">
  79. {{item.G}}
  80. </view>
  81. </view>
  82. <view class="inventory-item">
  83. <view class="shuo-label">
  84. 报关单:
  85. </view>
  86. <view class="shuo-cont-byd">
  87. {{item.F}}
  88. </view>
  89. </view>
  90. <view class="inventory-item">
  91. <view class="shuo-label">
  92. 是否集采:
  93. </view>
  94. <view class="shuo-cont">
  95. {{item.E}}
  96. </view>
  97. </view>
  98. <view class="inventory-item">
  99. <view class="shuo-label">
  100. 采集批次:
  101. </view>
  102. <view class="shuo-cont">
  103. {{item.D}}
  104. </view>
  105. </view>
  106. <view class="inventory-item">
  107. <view class="shuo-label">
  108. 管理方式:
  109. </view>
  110. <view class="shuo-cont">
  111. {{item.C}}
  112. </view>
  113. </view>
  114. <view class="inventory-item">
  115. <view class="shuo-label">
  116. 一物一码:
  117. </view>
  118. <view class="shuo-cont">
  119. {{item.yansliang}}
  120. </view>
  121. </view>
  122. <view class="inventory-item">
  123. <view class="shuo-label">
  124. SN编码:
  125. </view>
  126. <view class="shuo-cont">
  127. {{item.yansliang}}
  128. </view>
  129. </view>
  130. <view class="inventory-item">
  131. <view class="shuo-label">
  132. RFID编码:
  133. </view>
  134. <view class="shuo-cont">
  135. {{item.yansliang}}
  136. </view>
  137. </view>
  138. <view class="inventory-item">
  139. <view class="shuo-label">
  140. 上架货位:
  141. </view>
  142. <view class="shuo-cont">
  143. {{item.A}}
  144. </view>
  145. </view>
  146. <view class="inventory-item">
  147. <view class="shuo-label">
  148. 状态:
  149. </view>
  150. <view class="shuo-cont-Ly">
  151. {{item.B}}
  152. </view>
  153. </view>
  154. <view class="all-text">{{item.zt}}</view>
  155. </view>
  156. </view>
  157. </view>
  158. </template>
  159. <script>
  160. import {
  161. listData,
  162. mentItem
  163. } from './list.js';
  164. import {
  165. mapState,
  166. mapMutations,
  167. mapActions
  168. } from 'vuex';
  169. export default {
  170. data() {
  171. return {
  172. datas: [{
  173. code: "KMT20231126",
  174. hispName: "国药山西长治有限公司",
  175. snub: 200,
  176. danjuTime: "2023-11-26 14:05:08",
  177. daohuoTime: "2023-11-26 14:05:08"
  178. }],
  179. textCode: "显示扫码结果",
  180. listDatacont: [],
  181. listData: listData,
  182. mentItem: mentItem,
  183. }
  184. },
  185. onLoad() {
  186. },
  187. computed: {
  188. // ...mapState(['mentItem','groundDetailsData'])
  189. },
  190. onBackPress(options) {
  191. uni.$emit('update', {
  192. msg: '页面更新'
  193. });
  194. },
  195. mounted() {
  196. this.listDatacont = listData;
  197. // this.getDetails();
  198. },
  199. methods: {
  200. // ...mapActions(['getDetails']),
  201. // queryList(pageNo, pageSize) {
  202. // this.$refs.paging.complete(this.data);
  203. // },
  204. //跳转上架详情
  205. // itemDetails(item) {
  206. // uni.navigateTo({
  207. // url: '/pages/groundeitalscont/groundetials',
  208. // success: function(res) {}
  209. // });
  210. // uni.setStorageSync('detailsCont', [item]);
  211. // },
  212. scanCode(code) {
  213. this.textCode = code;
  214. }
  215. }
  216. }
  217. </script>
  218. <style lang="scss">
  219. .groundtials-wrap {
  220. width: 100%;
  221. height: 100%;
  222. padding: 20rpx;
  223. box-sizing: border-box;
  224. overflow-y: scroll;
  225. background-color: #F1F1F1;
  226. .inventory-wrap {
  227. width: 100%;
  228. border: 2rpx solid #BDBDBD;
  229. margin-top: 20rpx;
  230. border-radius: 20rpx;
  231. .inner-item {
  232. width: 100%;
  233. height: 85%;
  234. border-bottom: 2rpx solid #BDBDBD;
  235. padding: 20rpx 20rpx 20rpx 50rpx;
  236. box-sizing: border-box;
  237. position: relative;
  238. background-color: #fff;
  239. border-radius: 20rpx;
  240. position: relative;
  241. .all-text {
  242. width: 150rpx;
  243. height: 40rpx;
  244. position: absolute;
  245. right: 20rpx;
  246. bottom: 25rpx;
  247. font-family: PingFangSC-regular;
  248. font-size: 28rpx;
  249. color: rgba(52, 124, 175, 0.6);
  250. }
  251. .inventory-item {
  252. width: 100%;
  253. height: 40rpx;
  254. color: rgba(16, 16, 16, 1);
  255. font-size: 28rpx;
  256. text-align: left;
  257. font-family: PingFangSC-semiBold;
  258. margin-top: 10rpx;
  259. display: flex;
  260. align-items: center;
  261. .shuo-cont-Mcs {
  262. color: rgba(0, 170, 255, 1.0);
  263. font-size: 28rpx;
  264. text-align: left;
  265. font-family: PingFangSC-regular;
  266. margin-left: 30rpx;
  267. overflow: hidden;
  268. text-overflow: ellipsis;
  269. white-space: nowrap;
  270. }
  271. .shuo-name {
  272. color: rgba(16, 16, 16, 1);
  273. font-size: 31rpx;
  274. text-align: left;
  275. font-family: PingFangSC-regular;
  276. width: 180rpx;
  277. font-weight: bold;
  278. margin-bottom: 25rpx;
  279. }
  280. .shuo-label {
  281. color: rgba(16, 16, 16, 1);
  282. font-size: 28rpx;
  283. text-align: left;
  284. font-family: PingFangSC-regular;
  285. width: 180rpx;
  286. font-weight: bold;
  287. text-align: justify;
  288. text-align-last: justify;
  289. }
  290. .shuo-cont {
  291. color: rgba(180, 180, 180, 1.0);
  292. font-size: 28rpx;
  293. text-align: left;
  294. font-family: PingFangSC-regular;
  295. margin-left: 30rpx;
  296. overflow: hidden;
  297. text-overflow: ellipsis;
  298. white-space: nowrap;
  299. }
  300. .shuo-cont-Ly {
  301. color: rgba(202, 202, 0, 1.0);
  302. font-size: 28rpx;
  303. text-align: left;
  304. font-family: PingFangSC-regular;
  305. margin-left: 30rpx;
  306. overflow: hidden;
  307. text-overflow: ellipsis;
  308. white-space: nowrap;
  309. }
  310. .shuo-cont-byd {
  311. color: rgba(0, 170, 255, 1.0);
  312. font-size: 28rpx;
  313. text-align: left;
  314. font-family: PingFangSC-regular;
  315. margin-left: 30rpx;
  316. overflow: hidden;
  317. text-overflow: ellipsis;
  318. white-space: nowrap;
  319. }
  320. .shuo-item {
  321. width: 50%;
  322. height: 100%;
  323. line-height: 20rpx;
  324. display: flex;
  325. align-items: center;
  326. .shuo-label {
  327. color: rgba(16, 16, 16, 1);
  328. font-size: 28rpx;
  329. text-align: left;
  330. font-family: PingFangSC-regular;
  331. font-weight: normal;
  332. text-align: justify;
  333. text-align-last: justify;
  334. }
  335. .shuo-cont {
  336. color: rgba(16, 16, 16, 1);
  337. font-size: 28rpx;
  338. text-align: left;
  339. font-family: PingFangSC-regular;
  340. margin-left: 30rpx;
  341. overflow: hidden;
  342. text-overflow: ellipsis;
  343. white-space: nowrap;
  344. }
  345. .shuo-await {
  346. color: rgba(255, 191, 107, 1);
  347. font-size: 28rpx;
  348. text-align: left;
  349. font-family: PingFangSC-regular;
  350. margin-left: 20rpx;
  351. }
  352. .shuo-ready {
  353. color: rgba(162, 239, 77, 1);
  354. font-size: 28rpx;
  355. text-align: left;
  356. font-family: PingFangSC-regular;
  357. margin-left: 20rpx;
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }
  364. uni-page-body {
  365. width: 100%;
  366. height: 100%;
  367. }
  368. </style>