groundetials.vue 8.4 KB

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