groundetials.vue 8.7 KB

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