pickingetials.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. <template>
  2. <view class="groundtials-wrap">
  3. <uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入或扫描条码" @iconClick="iconClick" :focus="true">
  4. </uni-easyinput>
  5. <view class="inner-item" v-for="(item,index) in datas" :key="index">
  6. <view class="inventory-item">
  7. <view class="shuo-item shuo-one-cont">
  8. <view class="shuo-label">
  9. 出库单号:
  10. </view>
  11. <view class="shuo-cont">
  12. {{item.id_bill}}
  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.id_dept_super}}
  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-await">
  32. {{item.yansliang}}
  33. </view>
  34. </view>
  35. <view class="shuo-item">
  36. <view class="shuo-label">
  37. 已拣数量:
  38. </view>
  39. <view class="shuo-ready">
  40. {{item.yishangj}}
  41. </view>
  42. </view>
  43. </view>
  44. <view class="inventory-item">
  45. <view class="shuo-item">
  46. <view class="shuo-label">
  47. 耗材类型:
  48. </view>
  49. <view class="shuo-cont">
  50. {{item.guige}}
  51. </view>
  52. </view>
  53. <view class="shuo-item">
  54. <view class="shuo-label">
  55. 结算方式:
  56. </view>
  57. <view class="shuo-cont">
  58. {{item.xinghao}}
  59. </view>
  60. </view>
  61. </view>
  62. <view class="inventory-item">
  63. <view class="shuo-item shuo-min">
  64. <view class="shuo-label">
  65. 制单人:
  66. </view>
  67. <view class="shuo-cont">
  68. {{item.hispName}}
  69. </view>
  70. </view>
  71. <view class="shuo-item max-item">
  72. <view class="shuo-label">
  73. 制单时间:
  74. </view>
  75. <view class="shuo-cont">
  76. {{item.rq}}
  77. </view>
  78. </view>
  79. </view>
  80. <view class="inventory-item">
  81. <view class="shuo-item shuo-one-cont">
  82. <view class="shuo-label">
  83. 请领单号:
  84. </view>
  85. <view class="shuo-cont">
  86. {{item.shangjiatime}}
  87. </view>
  88. </view>
  89. </view>
  90. <view class="all-text">已出库</view>
  91. </view>
  92. <view class="total-wrap">
  93. <view class="total-item">
  94. <view class="total-label">
  95. 待出库数量:
  96. </view>
  97. <view class="total-await">
  98. 100
  99. </view>
  100. </view>
  101. <view class="total-item">
  102. <view class="total-label">
  103. 已出库数量:
  104. </view>
  105. <view class="total-aready">
  106. 100
  107. </view>
  108. </view>
  109. </view>
  110. <view class="inventory-wrap">
  111. <view class="inner-item" v-for="(item,index) in detailsData" :key="index" @click="itemDetails(item)">
  112. <view class="inventory-item">
  113. <view class="shuo-item shuo-onec">
  114. <view class="shuo-label">
  115. {{index+1}}:
  116. </view>
  117. <view class="shuo-cont">
  118. {{item.name_material}}
  119. </view>
  120. </view>
  121. <view class="shuo-nub">
  122. {{item.unit}}
  123. </view>
  124. </view>
  125. <view class="inventory-item">
  126. <view class="shuo-item">
  127. <view class="shuo-label">
  128. 规格:
  129. </view>
  130. <view class="shuo-cont">
  131. {{item.spec}}
  132. </view>
  133. </view>
  134. <view class="shuo-item">
  135. <view class="shuo-label">
  136. 型号:
  137. </view>
  138. <view class="shuo-cont">
  139. {{item.model}}
  140. </view>
  141. </view>
  142. </view>
  143. <view class="inventory-item">
  144. <view class="shuo-item">
  145. <view class="shuo-label">
  146. 待拣数量:
  147. </view>
  148. <view class="shuo-await">
  149. {{item.qty}}
  150. </view>
  151. </view>
  152. <view class="shuo-item">
  153. <view class="shuo-label">
  154. 已拣架数:
  155. </view>
  156. <view class="shuo-ready">
  157. {{item.yishangj}}
  158. </view>
  159. </view>
  160. </view>
  161. <view class="inventory-item">
  162. <view class="shuo-label">
  163. 生产厂家:
  164. </view>
  165. <view class="shuo-cont">
  166. {{item.factory}}
  167. </view>
  168. </view>
  169. <view class="inventory-item">
  170. <view class="shuo-label">
  171. 上架货位:
  172. </view>
  173. <view class="shuo-cont">
  174. {{item.id_cell}}
  175. </view>
  176. </view>
  177. <view class="inventory-item">
  178. <view class="shuo-label">
  179. 上架时间:
  180. </view>
  181. <view class="shuo-cont">
  182. {{item.rq}}
  183. </view>
  184. </view>
  185. </view>
  186. <view class="footer-cont">
  187. <button type="primary" style="{'background-color': 'rgba(60, 100, 220, 1)'}">完成拣货</button>
  188. <button type="primary" style="{'background-color': 'rgba(233, 157, 66, 1)'}">撤销拣货</button>
  189. </view>
  190. </view>
  191. </view>
  192. </template>
  193. <script>
  194. import {
  195. mapState,
  196. mapMutations,
  197. mapActions
  198. } from 'vuex';
  199. export default {
  200. data() {
  201. return {
  202. datas: [],
  203. listDatacont: [],
  204. value: ""
  205. }
  206. },
  207. onLoad() {
  208. },
  209. computed: {
  210. ...mapState(['detailsData'])
  211. },
  212. mounted() {
  213. this.listDatacont = listData;
  214. let data = uni.getStorageSync('outBounddetails');
  215. this.datas = data;
  216. this.getDetailsData({
  217. id_bill: data[0].id_bill
  218. })
  219. },
  220. methods: {
  221. ...mapActions(['getDetailsData']),
  222. queryList(pageNo, pageSize) {
  223. this.$refs.paging.complete(this.data);
  224. },
  225. //跳转上架详情
  226. itemDetails(item) {
  227. uni.navigateTo({
  228. url: '/pages/pickingeitalscont/pickingetials',
  229. success: function(res) {}
  230. });
  231. uni.setStorageSync('BoundetailsCont', [item]);
  232. }
  233. }
  234. }
  235. </script>
  236. <style lang="scss" scoped>
  237. uni-page-body {
  238. width: 100%;
  239. height: 100%;
  240. }
  241. .groundtials-wrap {
  242. width: 100%;
  243. height: 100%;
  244. padding: 20rpx;
  245. box-sizing: border-box;
  246. background-color: #F1F1F1;
  247. overflow-y: scroll;
  248. .inner-item {
  249. width: 100%;
  250. height: 360rpx;
  251. border-bottom: 2rpx solid #BDBDBD;
  252. padding: 20rpx 20rpx 20rpx 50rpx;
  253. box-sizing: border-box;
  254. position: relative;
  255. background-color: #fff;
  256. border-radius: 20rpx;
  257. position: relative;
  258. margin-top: 10rpx;
  259. .all-text {
  260. width: 150rpx;
  261. height: 40rpx;
  262. position: absolute;
  263. right: 20rpx;
  264. top: 30rpx;
  265. font-family: PingFangSC-regular;
  266. font-size: 28rpx;
  267. color: rgba(52, 124, 175, 0.6);
  268. }
  269. .inventory-item {
  270. width: 100%;
  271. height: 40rpx;
  272. color: rgba(16, 16, 16, 1);
  273. font-size: 28rpx;
  274. text-align: left;
  275. font-family: PingFangSC-semiBold;
  276. margin-top: 10rpx;
  277. display: flex;
  278. align-items: center;
  279. .shuo-nub {
  280. width: 100rpx;
  281. height: 100%;
  282. text-align: right;
  283. color: rgba(55, 137, 234, 1);
  284. font-size: 28rpx;
  285. font-family: PingFangSC-semiBold;
  286. line-height: 30rpx;
  287. }
  288. .shuo-label {
  289. color: rgba(16, 16, 16, 1);
  290. font-size: 28rpx;
  291. text-align: left;
  292. font-family: PingFangSC-regular;
  293. width: 130rpx;
  294. }
  295. .shuo-cont {
  296. color: rgba(16, 16, 16, 1);
  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. height:30rpx;
  305. line-height: 30rpx;
  306. }
  307. .shuo-item {
  308. width: 50%;
  309. height: 100%;
  310. line-height: 20rpx;
  311. display: flex;
  312. align-items: center;
  313. .shuo-label {
  314. color: rgba(16, 16, 16, 1);
  315. font-size: 28rpx;
  316. text-align: left;
  317. font-family: PingFangSC-regular;
  318. }
  319. .shuo-cont {
  320. color: rgba(16, 16, 16, 1);
  321. font-size: 28rpx;
  322. text-align: left;
  323. font-family: PingFangSC-regular;
  324. margin-left: 30rpx;
  325. }
  326. .shuo-await {
  327. color: rgba(255, 191, 107, 1);
  328. font-size: 28rpx;
  329. text-align: left;
  330. font-family: PingFangSC-regular;
  331. margin-left: 20rpx;
  332. }
  333. .shuo-ready {
  334. color: rgba(162, 239, 77, 1);
  335. font-size: 28rpx;
  336. text-align: left;
  337. font-family: PingFangSC-regular;
  338. margin-left: 20rpx;
  339. }
  340. }
  341. .shuo-onec {
  342. width: 70% !important;
  343. height: 30rpx;
  344. .shuo-cont {
  345. height: 30rpx;
  346. line-height: 30rpx;
  347. }
  348. .shuo-label{
  349. text-align: right;
  350. }
  351. }
  352. .shuo-one-cont {
  353. width: 60%;
  354. }
  355. .shuo-min {
  356. width: 33%;
  357. }
  358. .max-item {
  359. width: 68%;
  360. margin-left: 10rpx;
  361. .shuo-cont {
  362. font-size: 25rpx;
  363. }
  364. }
  365. }
  366. }
  367. .total-wrap {
  368. width: 100%;
  369. height: 100rpx;
  370. margin-top: 10rpx;
  371. border: 2rpx solid #BDBDBD;
  372. padding: 20rpx;
  373. box-sizing: border-box;
  374. background-color: #fff;
  375. border-radius: 20rpx;
  376. display: flex;
  377. .total-item {
  378. width: 50%;
  379. height: 100%;
  380. display: flex;
  381. .total-label {
  382. height: 100%;
  383. padding-left: 30rpx;
  384. line-height: 50rpx;
  385. color: rgba(16, 16, 16, 1);
  386. font-size: 32rpx;
  387. text-align: left;
  388. font-family: PingFangSC-regular;
  389. }
  390. .total-await {
  391. height: 100%;
  392. line-height: 50rpx;
  393. color: rgba(255, 191, 107, 1);
  394. font-size: 28rpx;
  395. text-align: left;
  396. font-family: PingFangSC-regular;
  397. margin-left: 20rpx;
  398. }
  399. .total-aready {
  400. height: 100%;
  401. line-height: 50rpx;
  402. color: rgba(162, 239, 77, 1);
  403. font-size: 28rpx;
  404. text-align: left;
  405. font-family: PingFangSC-regular;
  406. margin-left: 20rpx;
  407. }
  408. }
  409. }
  410. .inventory-wrap {
  411. width: 100%;
  412. margin-top: 20rpx;
  413. border-radius: 20rpx;
  414. padding-bottom: 100rpx;
  415. .inner-item {
  416. width: 100%;
  417. height: 360rpx;
  418. border-bottom: 2rpx solid #BDBDBD;
  419. padding: 20rpx 20rpx 20rpx 50rpx;
  420. box-sizing: border-box;
  421. position: relative;
  422. background-color: #fff;
  423. border-radius: 20rpx;
  424. position: relative;
  425. .all-text {
  426. width: 150rpx;
  427. height: 40rpx;
  428. position: absolute;
  429. right: 20rpx;
  430. bottom: 25rpx;
  431. font-family: PingFangSC-regular;
  432. font-size: 28rpx;
  433. color: rgba(52, 124, 175, 0.6);
  434. }
  435. .inventory-item {
  436. width: 100%;
  437. height: 40rpx;
  438. color: rgba(16, 16, 16, 1);
  439. font-size: 28rpx;
  440. text-align: left;
  441. font-family: PingFangSC-semiBold;
  442. margin-top: 10rpx;
  443. display: flex;
  444. align-items: center;
  445. .shuo-label {
  446. color: rgba(16, 16, 16, 1);
  447. font-size: 28rpx;
  448. text-align: left;
  449. font-family: PingFangSC-regular;
  450. }
  451. .shuo-cont {
  452. color: rgba(16, 16, 16, 1);
  453. font-size: 28rpx;
  454. text-align: left;
  455. font-family: PingFangSC-regular;
  456. margin-left: 30rpx;
  457. }
  458. .shuo-item {
  459. width: 50%;
  460. height: 100%;
  461. line-height: 20rpx;
  462. display: flex;
  463. align-items: center;
  464. .shuo-label {
  465. color: rgba(16, 16, 16, 1);
  466. font-size: 28rpx;
  467. text-align: left;
  468. font-family: PingFangSC-regular;
  469. }
  470. .shuo-cont {
  471. color: rgba(16, 16, 16, 1);
  472. font-size: 28rpx;
  473. text-align: left;
  474. font-family: PingFangSC-regular;
  475. margin-left: 30rpx;
  476. }
  477. .shuo-await {
  478. color: rgba(255, 191, 107, 1);
  479. font-size: 28rpx;
  480. text-align: left;
  481. font-family: PingFangSC-regular;
  482. margin-left: 20rpx;
  483. }
  484. .shuo-ready {
  485. color: rgba(162, 239, 77, 1);
  486. font-size: 28rpx;
  487. text-align: left;
  488. font-family: PingFangSC-regular;
  489. margin-left: 20rpx;
  490. }
  491. }
  492. }
  493. }
  494. }
  495. .footer-cont {
  496. width: 100%;
  497. height: 100rpx;
  498. display: flex;
  499. margin-top: 40rpx;
  500. }
  501. }
  502. body {
  503. width: 100%;
  504. height: 100%;
  505. }
  506. </style>