groundetials.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <template>
  2. <view class="groundtials-wrap">
  3. <!-- <qs-scanlistener @scan="scan"></qs-scanlistener> -->
  4. <view class="inventory-wrap">
  5. <view class="inner-item" v-for="(item,index) in listData" :key="index">
  6. <view class="inventory-item">
  7. <view class="shuo-item cont-item">
  8. <view class="shuo-label">
  9. 名称:
  10. </view>
  11. <view class="shuo-cont">
  12. {{item.factory}}
  13. </view>
  14. </view>
  15. </view>
  16. <view class="inventory-item">
  17. <view class="shuo-item">
  18. <view class="shuo-label">
  19. 规格:
  20. </view>
  21. <view class="shuo-cont">
  22. {{item.spec}}
  23. </view>
  24. </view>
  25. </view>
  26. <view class="inventory-item">
  27. <view class="shuo-item">
  28. <view class="shuo-label">
  29. 型号:
  30. </view>
  31. <view class="shuo-cont">
  32. {{item.model}}
  33. </view>
  34. </view>
  35. </view>
  36. <view class="inventory-item">
  37. <view class="shuo-item">
  38. <view class="shuo-label">
  39. 待上架数:
  40. </view>
  41. <view class="shuo-await">
  42. {{item.qty}}
  43. </view>
  44. </view>
  45. <view class="shuo-item">
  46. <view class="shuo-label">
  47. 已上架数:
  48. </view>
  49. <view class="shuo-ready">
  50. {{item.yishangj}}
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="inner-item detais-item" v-for="(item,index) in detailsData" :key="index">
  56. <view class="inventory-item ">
  57. <view class="shuo-item">
  58. <view class="shuo-label">
  59. S&nbsp;N&nbsp;码:
  60. </view>
  61. <view class="shuo-cont">
  62. {{item.id_lot}}
  63. </view>
  64. </view>
  65. <view class="shuo-item">
  66. <view class="shuo-label">
  67. RFID码:
  68. </view>
  69. <view class="shuo-cont">
  70. {{item.rfcode}}
  71. </view>
  72. </view>
  73. </view>
  74. <view class="inventory-item">
  75. <view class="shuo-item">
  76. <view class="shuo-label">
  77. 批次:
  78. </view>
  79. <view class="shuo-cont">
  80. {{item.lot}}
  81. </view>
  82. </view>
  83. <view class="shuo-item">
  84. <view class="shuo-label">
  85. 包装单位:
  86. </view>
  87. <view class="shuo-cont">
  88. {{item.unit}}
  89. </view>
  90. </view>
  91. </view>
  92. <view class="inventory-item">
  93. <view class="shuo-item">
  94. <view class="shuo-label">
  95. 有效期至:
  96. </view>
  97. <view class="shuo-cont">
  98. {{item.date_expire}}
  99. </view>
  100. </view>
  101. </view>
  102. <view class="ready-text">
  103. {{item.zt}}
  104. </view>
  105. <view class="index-text">
  106. {{index+1}}
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </template>
  112. <script>
  113. import {
  114. listData,
  115. pinData
  116. } from './list.js';
  117. import {
  118. mapState,
  119. mapMutations,
  120. mapActions
  121. } from 'vuex';
  122. export default {
  123. data() {
  124. return {
  125. data: [{
  126. code: "KMT20231126",
  127. hispName: "国药山西长治有限公司",
  128. snub: 200,
  129. danjuTime: "2023-11-26 14:05:08",
  130. daohuoTime: "2023-11-26 14:05:08"
  131. }],
  132. codeVal: "",
  133. listData: [],
  134. pinData: pinData
  135. }
  136. },
  137. computed: {
  138. ...mapState(['detailsData'])
  139. },
  140. mounted() {
  141. let data = uni.getStorageSync('detailsCont');
  142. this.listData = data;
  143. this.getdetilsCont({id_material:data[0].id_material})
  144. },
  145. onLoad() {
  146. },
  147. methods: {
  148. ...mapActions(['getdetilsCont']),
  149. queryList(pageNo, pageSize) {
  150. this.$refs.paging.complete(this.data);
  151. },
  152. //跳转上架详情
  153. itemDetails(item) {
  154. uni.navigateTo({
  155. url: '/pages/groundetials/groundetials',
  156. success: function(res) {}
  157. });
  158. },
  159. scan(code) {
  160. this.codeVal = code;
  161. }
  162. }
  163. }
  164. </script>
  165. <style lang="scss" scoped>
  166. .groundtials-wrap {
  167. width: 100%;
  168. height: 100%;
  169. padding: 20rpx;
  170. box-sizing: border-box;
  171. background-color: #F1F1F1;
  172. .inventory-wrap {
  173. width: 100%;
  174. border: 2rpx solid #BDBDBD;
  175. margin-top: 10rpx;
  176. border-radius: 20rpx;
  177. .inner-item {
  178. width: 100%;
  179. height: 260rpx;
  180. border-bottom: 2rpx solid #BDBDBD;
  181. padding: 20rpx 20rpx 20rpx 55rpx;
  182. box-sizing: border-box;
  183. position: relative;
  184. background-color: #fff;
  185. border-radius: 20rpx;
  186. position: relative;
  187. .all-text {
  188. width: 150rpx;
  189. height: 40rpx;
  190. position: absolute;
  191. right: 20rpx;
  192. bottom: 25rpx;
  193. font-family: PingFangSC-regular;
  194. font-size: 28rpx;
  195. color: rgba(52, 124, 175, 0.6);
  196. }
  197. .inventory-item {
  198. width: 100%;
  199. height: 40rpx;
  200. color: rgba(16, 16, 16, 1);
  201. font-size: 28rpx;
  202. text-align: left;
  203. font-family: PingFangSC-semiBold;
  204. margin-top: 10rpx;
  205. display: flex;
  206. align-items: center;
  207. .shuo-label {
  208. color: rgba(16, 16, 16, 1);
  209. font-size: 28rpx;
  210. text-align: left;
  211. font-family: PingFangSC-regular;
  212. }
  213. .shuo-cont {
  214. color: rgba(16, 16, 16, 1);
  215. font-size: 20rpx;
  216. text-align: left;
  217. font-family: PingFangSC-regular;
  218. margin-left: 10rpx;
  219. }
  220. .shuo-item {
  221. width: 50%;
  222. height: 100%;
  223. line-height: 20rpx;
  224. display: flex;
  225. align-items: center;
  226. .shuo-label {
  227. color: rgba(16, 16, 16, 1);
  228. font-size: 28rpx;
  229. text-align: left;
  230. font-family: PingFangSC-regular;
  231. }
  232. .shuo-cont {
  233. color: rgba(16, 16, 16, 1);
  234. font-size: 28rpx;
  235. text-align: left;
  236. font-family: PingFangSC-regular;
  237. }
  238. .shuo-await {
  239. color: rgba(255, 191, 107, 1);
  240. font-size: 28rpx;
  241. text-align: left;
  242. font-family: PingFangSC-regular;
  243. margin-left: 20rpx;
  244. }
  245. .shuo-ready {
  246. color: rgba(162, 239, 77, 1);
  247. font-size: 28rpx;
  248. text-align: left;
  249. font-family: PingFangSC-regular;
  250. margin-left: 20rpx;
  251. }
  252. }
  253. .cont-item{
  254. width:100%;
  255. }
  256. }
  257. }
  258. .detais-item {
  259. height: 200rpx !important;
  260. position: relative;
  261. z-index: 10;
  262. overflow: hidden;
  263. margin-top: 10rpx;
  264. .ready-text {
  265. z-index: 1;
  266. position: absolute;
  267. right: -40rpx;
  268. top: 20rpx;
  269. width: 150rpx;
  270. height: 30rpx;
  271. color: #fff;
  272. background-color: #3789EA;
  273. text-align: center;
  274. line-height: 30rpx;
  275. font-size: 20rpx;
  276. font-family: PingFangSC-regular;
  277. transform: rotate(45deg);
  278. }
  279. .index-text {
  280. z-index: 1;
  281. width: 40rpx;
  282. height: 20rpx;
  283. position: absolute;
  284. left: 10rpx;
  285. top: 50%;
  286. margin-top: -10rpx;
  287. text-align: center;
  288. line-height: 20rpx;
  289. font-size: 30rpx;
  290. font-family: PingFangSC-regular;
  291. }
  292. }
  293. }
  294. }
  295. </style>