pickingetials.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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. listData
  196. } from './list.js';
  197. import {
  198. mapState,
  199. mapMutations,
  200. mapActions
  201. } from 'vuex';
  202. export default {
  203. data() {
  204. return {
  205. datas: [],
  206. listDatacont: [],
  207. value: ""
  208. }
  209. },
  210. onLoad() {
  211. },
  212. computed: {
  213. ...mapState(['detailsData'])
  214. },
  215. mounted() {
  216. this.listDatacont = listData;
  217. let data = uni.getStorageSync('outBounddetails');
  218. this.datas = data;
  219. this.getDetailsData({
  220. id_bill: data[0].id_bill
  221. })
  222. },
  223. methods: {
  224. ...mapActions(['getDetailsData']),
  225. queryList(pageNo, pageSize) {
  226. this.$refs.paging.complete(this.data);
  227. },
  228. //跳转上架详情
  229. itemDetails(item) {
  230. uni.navigateTo({
  231. url: '/pages/pickingeitalscont/pickingetials',
  232. success: function(res) {}
  233. });
  234. uni.setStorageSync('BoundetailsCont', [item]);
  235. }
  236. }
  237. }
  238. </script>
  239. <style lang="scss" scoped>
  240. uni-page-body {
  241. width: 100%;
  242. height: 100%;
  243. }
  244. .groundtials-wrap {
  245. width: 100%;
  246. height: 100%;
  247. padding: 20rpx;
  248. box-sizing: border-box;
  249. background-color: #F1F1F1;
  250. overflow-y: scroll;
  251. .inner-item {
  252. width: 100%;
  253. height: 360rpx;
  254. border-bottom: 2rpx solid #BDBDBD;
  255. padding: 20rpx 20rpx 20rpx 50rpx;
  256. box-sizing: border-box;
  257. position: relative;
  258. background-color: #fff;
  259. border-radius: 20rpx;
  260. position: relative;
  261. margin-top: 10rpx;
  262. .all-text {
  263. width: 150rpx;
  264. height: 40rpx;
  265. position: absolute;
  266. right: 20rpx;
  267. top: 30rpx;
  268. font-family: PingFangSC-regular;
  269. font-size: 28rpx;
  270. color: rgba(52, 124, 175, 0.6);
  271. }
  272. .inventory-item {
  273. width: 100%;
  274. height: 40rpx;
  275. color: rgba(16, 16, 16, 1);
  276. font-size: 28rpx;
  277. text-align: left;
  278. font-family: PingFangSC-semiBold;
  279. margin-top: 10rpx;
  280. display: flex;
  281. align-items: center;
  282. .shuo-nub {
  283. width: 100rpx;
  284. height: 100%;
  285. text-align: right;
  286. color: rgba(55, 137, 234, 1);
  287. font-size: 28rpx;
  288. font-family: PingFangSC-semiBold;
  289. line-height: 30rpx;
  290. }
  291. .shuo-label {
  292. color: rgba(16, 16, 16, 1);
  293. font-size: 28rpx;
  294. text-align: left;
  295. font-family: PingFangSC-regular;
  296. width: 130rpx;
  297. }
  298. .shuo-cont {
  299. color: rgba(16, 16, 16, 1);
  300. font-size: 28rpx;
  301. text-align: left;
  302. font-family: PingFangSC-regular;
  303. margin-left: 30rpx;
  304. overflow: hidden;
  305. text-overflow: ellipsis;
  306. white-space: nowrap;
  307. height:30rpx;
  308. line-height: 30rpx;
  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. }
  329. .shuo-await {
  330. color: rgba(255, 191, 107, 1);
  331. font-size: 28rpx;
  332. text-align: left;
  333. font-family: PingFangSC-regular;
  334. margin-left: 20rpx;
  335. }
  336. .shuo-ready {
  337. color: rgba(162, 239, 77, 1);
  338. font-size: 28rpx;
  339. text-align: left;
  340. font-family: PingFangSC-regular;
  341. margin-left: 20rpx;
  342. }
  343. }
  344. .shuo-onec {
  345. width: 70% !important;
  346. height: 30rpx;
  347. .shuo-cont {
  348. height: 30rpx;
  349. line-height: 30rpx;
  350. }
  351. .shuo-label{
  352. text-align: right;
  353. }
  354. }
  355. .shuo-one-cont {
  356. width: 60%;
  357. }
  358. .shuo-min {
  359. width: 33%;
  360. }
  361. .max-item {
  362. width: 68%;
  363. margin-left: 10rpx;
  364. .shuo-cont {
  365. font-size: 25rpx;
  366. }
  367. }
  368. }
  369. }
  370. .total-wrap {
  371. width: 100%;
  372. height: 100rpx;
  373. margin-top: 10rpx;
  374. border: 2rpx solid #BDBDBD;
  375. padding: 20rpx;
  376. box-sizing: border-box;
  377. background-color: #fff;
  378. border-radius: 20rpx;
  379. display: flex;
  380. .total-item {
  381. width: 50%;
  382. height: 100%;
  383. display: flex;
  384. .total-label {
  385. height: 100%;
  386. padding-left: 30rpx;
  387. line-height: 50rpx;
  388. color: rgba(16, 16, 16, 1);
  389. font-size: 32rpx;
  390. text-align: left;
  391. font-family: PingFangSC-regular;
  392. }
  393. .total-await {
  394. height: 100%;
  395. line-height: 50rpx;
  396. color: rgba(255, 191, 107, 1);
  397. font-size: 28rpx;
  398. text-align: left;
  399. font-family: PingFangSC-regular;
  400. margin-left: 20rpx;
  401. }
  402. .total-aready {
  403. height: 100%;
  404. line-height: 50rpx;
  405. color: rgba(162, 239, 77, 1);
  406. font-size: 28rpx;
  407. text-align: left;
  408. font-family: PingFangSC-regular;
  409. margin-left: 20rpx;
  410. }
  411. }
  412. }
  413. .inventory-wrap {
  414. width: 100%;
  415. margin-top: 20rpx;
  416. border-radius: 20rpx;
  417. padding-bottom: 100rpx;
  418. .inner-item {
  419. width: 100%;
  420. height: 360rpx;
  421. border-bottom: 2rpx solid #BDBDBD;
  422. padding: 20rpx 20rpx 20rpx 50rpx;
  423. box-sizing: border-box;
  424. position: relative;
  425. background-color: #fff;
  426. border-radius: 20rpx;
  427. position: relative;
  428. .all-text {
  429. width: 150rpx;
  430. height: 40rpx;
  431. position: absolute;
  432. right: 20rpx;
  433. bottom: 25rpx;
  434. font-family: PingFangSC-regular;
  435. font-size: 28rpx;
  436. color: rgba(52, 124, 175, 0.6);
  437. }
  438. .inventory-item {
  439. width: 100%;
  440. height: 40rpx;
  441. color: rgba(16, 16, 16, 1);
  442. font-size: 28rpx;
  443. text-align: left;
  444. font-family: PingFangSC-semiBold;
  445. margin-top: 10rpx;
  446. display: flex;
  447. align-items: center;
  448. .shuo-label {
  449. color: rgba(16, 16, 16, 1);
  450. font-size: 28rpx;
  451. text-align: left;
  452. font-family: PingFangSC-regular;
  453. }
  454. .shuo-cont {
  455. color: rgba(16, 16, 16, 1);
  456. font-size: 28rpx;
  457. text-align: left;
  458. font-family: PingFangSC-regular;
  459. margin-left: 30rpx;
  460. }
  461. .shuo-item {
  462. width: 50%;
  463. height: 100%;
  464. line-height: 20rpx;
  465. display: flex;
  466. align-items: center;
  467. .shuo-label {
  468. color: rgba(16, 16, 16, 1);
  469. font-size: 28rpx;
  470. text-align: left;
  471. font-family: PingFangSC-regular;
  472. }
  473. .shuo-cont {
  474. color: rgba(16, 16, 16, 1);
  475. font-size: 28rpx;
  476. text-align: left;
  477. font-family: PingFangSC-regular;
  478. margin-left: 30rpx;
  479. }
  480. .shuo-await {
  481. color: rgba(255, 191, 107, 1);
  482. font-size: 28rpx;
  483. text-align: left;
  484. font-family: PingFangSC-regular;
  485. margin-left: 20rpx;
  486. }
  487. .shuo-ready {
  488. color: rgba(162, 239, 77, 1);
  489. font-size: 28rpx;
  490. text-align: left;
  491. font-family: PingFangSC-regular;
  492. margin-left: 20rpx;
  493. }
  494. }
  495. }
  496. }
  497. }
  498. .footer-cont {
  499. width: 100%;
  500. height: 100rpx;
  501. display: flex;
  502. margin-top: 40rpx;
  503. }
  504. }
  505. body {
  506. width: 100%;
  507. height: 100%;
  508. }
  509. </style>