pickingetials.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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-item shuo-once-cont">
  7. <view class="shuo-label">
  8. 品名:
  9. </view>
  10. <view class="shuo-cont">
  11. {{item.name_material}}
  12. </view>
  13. </view>
  14. </view>
  15. <view class="inventory-item">
  16. <view class="shuo-item">
  17. <view class="shuo-label">
  18. 规格:
  19. </view>
  20. <view class="shuo-cont">
  21. {{item.spec}}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="inventory-item">
  26. <view class="shuo-item">
  27. <view class="shuo-label">
  28. 型号:
  29. </view>
  30. <view class="shuo-cont">
  31. {{item.model}}
  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-await">
  41. {{item.yansliang}}
  42. </view>
  43. </view>
  44. <view class="shuo-item">
  45. <view class="shuo-label">
  46. 已拣数量:
  47. </view>
  48. <view class="shuo-ready">
  49. {{item.qty}}
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="inner-item detais-item" v-for="(item,index) in pinData" :key="index">
  55. <liu-swipe-action :index="index" @clickItem="clickItem">
  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 shuo-once-cont">
  94. <view class="shuo-label">
  95. 有效期至:
  96. </view>
  97. <view class="shuo-cont">
  98. {{item.date_expire}}
  99. </view>
  100. </view>
  101. </view>
  102. </liu-swipe-action>
  103. <view class="index-text">
  104. {{index+1}}
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </template>
  110. <script>
  111. import {
  112. listData,
  113. pinData
  114. } from './list.js';
  115. export default {
  116. data() {
  117. return {
  118. data: [],
  119. listData: [],
  120. pinData: []
  121. }
  122. },
  123. onLoad() {
  124. },
  125. mounted() {
  126. let dataCont = uni.getStorageSync('BoundetailsCont');
  127. let data = uni.getStorageSync('outBounddetails');
  128. this.listData = dataCont;
  129. this.reqListData({
  130. id_bill: data[0].id_bill,
  131. id_material: dataCont[0].id_material
  132. })
  133. },
  134. methods: {
  135. reqListData(data) {
  136. this.$http('outbound.detailsContData', data, '加载中').then((res) => {
  137. if (res.success == "true") {
  138. if (res.data && res.data.length > 0) {
  139. this.pinData = res.data;
  140. }
  141. }
  142. })
  143. },
  144. //跳转上架详情
  145. itemDetails(item) {
  146. uni.navigateTo({
  147. url: '/pages/groundetials/groundetials',
  148. success: function(res) {}
  149. });
  150. }
  151. }
  152. }
  153. </script>
  154. <style lang="scss" scoped>
  155. uni-page-body {
  156. width: 100%;
  157. height: 100%;
  158. }
  159. .groundtials-wrap {
  160. width: 100%;
  161. height: 100%;
  162. padding: 20rpx;
  163. box-sizing: border-box;
  164. background-color: #F1F1F1;
  165. .inventory-wrap {
  166. width: 100%;
  167. border: 2rpx solid #BDBDBD;
  168. margin-top: 10rpx;
  169. border-radius: 20rpx;
  170. .inner-item {
  171. width: 100%;
  172. height: 260rpx;
  173. border-bottom: 2rpx solid #BDBDBD;
  174. padding: 20rpx 20rpx 20rpx 60rpx;
  175. box-sizing: border-box;
  176. position: relative;
  177. background-color: #fff;
  178. border-radius: 20rpx;
  179. position: relative;
  180. .all-text {
  181. width: 150rpx;
  182. height: 40rpx;
  183. position: absolute;
  184. right: 20rpx;
  185. bottom: 25rpx;
  186. font-family: PingFangSC-regular;
  187. font-size: 28rpx;
  188. color: rgba(52, 124, 175, 0.6);
  189. }
  190. .inventory-item {
  191. width: 100%;
  192. height: 40rpx;
  193. color: rgba(16, 16, 16, 1);
  194. font-size: 28rpx;
  195. text-align: left;
  196. font-family: PingFangSC-semiBold;
  197. margin-top: 10rpx;
  198. display: flex;
  199. align-items: center;
  200. .shuo-label {
  201. color: rgba(16, 16, 16, 1);
  202. font-size: 28rpx;
  203. text-align: left;
  204. font-family: PingFangSC-regular;
  205. }
  206. .shuo-cont {
  207. color: rgba(16, 16, 16, 1);
  208. font-size: 28rpx;
  209. text-align: left;
  210. font-family: PingFangSC-regular;
  211. margin-left: 10rpx;
  212. }
  213. .shuo-item {
  214. width: 50%;
  215. height: 100%;
  216. line-height: 20rpx;
  217. display: flex;
  218. align-items: center;
  219. .shuo-label {
  220. color: rgba(16, 16, 16, 1);
  221. font-size: 28rpx;
  222. text-align: left;
  223. font-family: PingFangSC-regular;
  224. }
  225. .shuo-cont {
  226. color: rgba(16, 16, 16, 1);
  227. font-size: 28rpx;
  228. text-align: left;
  229. font-family: PingFangSC-regular;
  230. margin-left: 10rpx;
  231. }
  232. .shuo-await {
  233. color: rgba(255, 191, 107, 1);
  234. font-size: 28rpx;
  235. text-align: left;
  236. font-family: PingFangSC-regular;
  237. margin-left: 20rpx;
  238. }
  239. .shuo-ready {
  240. color: rgba(162, 239, 77, 1);
  241. font-size: 28rpx;
  242. text-align: left;
  243. font-family: PingFangSC-regular;
  244. margin-left: 20rpx;
  245. }
  246. }
  247. .shuo-once-cont {
  248. width: 70%;
  249. }
  250. }
  251. }
  252. .detais-item {
  253. height: 200rpx !important;
  254. position: relative;
  255. z-index: 10;
  256. overflow: hidden;
  257. margin-top: 10rpx;
  258. .ready-text {
  259. z-index: 1;
  260. position: absolute;
  261. right: -40rpx;
  262. top: 20rpx;
  263. width: 150rpx;
  264. height: 30rpx;
  265. color: #fff;
  266. background-color: #3789EA;
  267. text-align: center;
  268. line-height: 30rpx;
  269. font-size: 20rpx;
  270. font-family: PingFangSC-regular;
  271. transform: rotate(45deg);
  272. }
  273. .index-text {
  274. z-index: 1;
  275. width: 40rpx;
  276. height: 20rpx;
  277. position: absolute;
  278. left: 10rpx;
  279. top: 50%;
  280. margin-top: -10rpx;
  281. text-align: center;
  282. line-height: 20rpx;
  283. font-size: 30rpx;
  284. font-family: PingFangSC-regular;
  285. }
  286. }
  287. }
  288. }
  289. </style>