ready.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <view class="query-wrap">
  3. <view class="inner-item">
  4. <view class="text-title">
  5. <view class="title-circ">
  6. </view>
  7. <span>基本信息</span>
  8. </view>
  9. <view class="inventory-item">
  10. <view class="shuo-item-name">
  11. <view class="shuo-label-podnme">
  12. 出库单号:
  13. </view>
  14. <view class="shuo-unit">
  15. {{acceptDetaData.delvOrdId}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="inventory-item">
  20. <view class="shuo-item-name">
  21. <view class="shuo-label-podnme">
  22. 关联订单号:
  23. </view>
  24. <view class="shuo-unit">
  25. {{acceptDetaData.purcOrdId}}
  26. </view>
  27. </view>
  28. </view>
  29. <view class="inventory-item">
  30. <view class="shuo-item">
  31. <view class="shuo-label">
  32. 采购品种数
  33. </view>
  34. <view class="shuo-cont">
  35. {{acceptDetaData.detlCnt||""}}
  36. </view>
  37. </view>
  38. <view class="shuo-item">
  39. <view class="shuo-label">
  40. 采购总数量
  41. </view>
  42. <view class="shuo-cont">
  43. {{acceptDetaData.qtySum||""}}
  44. </view>
  45. </view>
  46. </view>
  47. <view class="inventory-item">
  48. <view class="shuo-item">
  49. <view class="shuo-label">
  50. 本次出库数:
  51. </view>
  52. <view class="shuo-cont">
  53. {{acceptDetaData.bcckl||""}}
  54. </view>
  55. </view>
  56. <view class="shuo-item">
  57. <view class="shuo-label">
  58. 本次验收量:
  59. </view>
  60. <view class="shuo-cont">
  61. {{acceptDetaData.shppCnt||""}}
  62. </view>
  63. </view>
  64. </view>
  65. <view class="inventory-item">
  66. <view class="shuo-item">
  67. <view class="shuo-label">
  68. 待出库量:
  69. </view>
  70. <view class="shuo-cont">
  71. {{acceptDetaData.toDelvCnt||""}}
  72. </view>
  73. </view>
  74. <view class="shuo-item">
  75. <view class="shuo-label">
  76. 出库人:
  77. </view>
  78. <view class="shuo-cont">
  79. {{acceptDetaData.docmker||""}}
  80. </view>
  81. </view>
  82. </view>
  83. <view class="inventory-item">
  84. <view class="shuo-item-name">
  85. <view class="shuo-label">
  86. 来源机构:
  87. </view>
  88. <view class="shuo-cont">
  89. {{acceptDetaData.branchName}}
  90. </view>
  91. </view>
  92. </view>
  93. <view class="inventory-item">
  94. <view class="shuo-item">
  95. <view class="shuo-label">
  96. 出库时间:
  97. </view>
  98. <view class="shuo-cont">
  99. {{forMatTime(acceptDetaData.docmkDate)}}
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="empty-cont" v-if="orderDelData.length=='0'">
  105. 暂无明细数据
  106. </view>
  107. <view class="inner-item" v-for="(item,idex) in orderDelData" :key="idex">
  108. <view class="text-title" v-if="idex=='0'">
  109. <view class="title-circ">
  110. </view>
  111. <span>耗材清单</span>
  112. </view>
  113. <view class="inventory-item">
  114. <view class="shuo-item-name">
  115. <view class="shuo-label-podnme">
  116. 耗材编码
  117. </view>
  118. <view class="shuo-unit">
  119. {{item.prodCode}}
  120. </view>
  121. </view>
  122. </view>
  123. <view class="inventory-item">
  124. <view class="shuo-item-name">
  125. <view class="shuo-label-podnme">
  126. 医保编码
  127. </view>
  128. <view class="shuo-unit">
  129. {{item.hiCode}}
  130. </view>
  131. </view>
  132. </view>
  133. <view class="inventory-item">
  134. <view class="shuo-item-name">
  135. <view class="shuo-label-podnme">
  136. {{item.prodName}}
  137. </view>
  138. <view class="shuo-unit">
  139. <span>{{ item.purcUnt }} ({{ item.convrat }}{{ item.prcUnt }}/{{
  140. item.purcUnt
  141. }})</span>
  142. </view>
  143. </view>
  144. </view>
  145. <view class="inventory-item">
  146. <view class="shuo-item">
  147. <view class="shuo-label">
  148. 规格:
  149. </view>
  150. <view class="shuo-cont">
  151. {{item.spec}}
  152. </view>
  153. </view>
  154. <view class="shuo-item">
  155. <view class="shuo-label">
  156. 型号:
  157. </view>
  158. <view class="shuo-cont">
  159. {{item.mol}}
  160. </view>
  161. </view>
  162. </view>
  163. <view class="inventory-item">
  164. <view class="shuo-item">
  165. <view class="shuo-label">
  166. 材质:
  167. </view>
  168. <view class="shuo-cont">
  169. {{item.matl}}
  170. </view>
  171. </view>
  172. <view class="shuo-item">
  173. <view class="shuo-label">
  174. 采购数量:
  175. </view>
  176. <view class="shuo-cont">
  177. {{item.purcCnt}}
  178. </view>
  179. </view>
  180. </view>
  181. <view class="inventory-item">
  182. <view class="shuo-item">
  183. <view class="shuo-label">
  184. 已出库数量:
  185. </view>
  186. <view class="shuo-cont">
  187. {{item.delvCnt}}
  188. </view>
  189. </view>
  190. <view class="shuo-item">
  191. <view class="shuo-label">
  192. 剩余出库量:
  193. </view>
  194. <view class="shuo-cont">
  195. {{item.toDelvCnt||""}}
  196. </view>
  197. </view>
  198. </view>
  199. <view class="inventory-item">
  200. <view class="shuo-item">
  201. <view class="shuo-label">
  202. 本次验收量:
  203. </view>
  204. <view class="shuo-cont">
  205. {{item.shppCnt}}
  206. </view>
  207. </view>
  208. <view class="shuo-item">
  209. <view class="shuo-label">
  210. 本次拒收量:
  211. </view>
  212. <view class="shuo-cont">
  213. {{item.returnCnt||""}}
  214. </view>
  215. </view>
  216. </view>
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. import {
  222. mapState,
  223. mapMutations,
  224. mapActions
  225. } from 'vuex';
  226. import moment from "moment";
  227. export default {
  228. data() {
  229. return {
  230. listData: [],
  231. acceptDetaData: {},
  232. subMitData: {},
  233. selcectData: {} //详情选中的数据
  234. }
  235. },
  236. computed: {
  237. ...mapState(['orderDelData', 'instData', 'batchData'])
  238. },
  239. onShow() {
  240. let that = this;
  241. uni.getStorage({
  242. key: 'orderDetailsData',
  243. success: function(res) {
  244. that.touData({
  245. delvOrdId: res.data.delvOrdId,
  246. purcOrdId: res.data.purcOrdId,
  247. spdId: that.instData.spdId,
  248. });
  249. that.acceptDetaData = res.data;
  250. }
  251. });
  252. },
  253. mounted() {},
  254. methods: {
  255. ...mapActions(['getOrderReadyDetail']),
  256. async touData(data) {
  257. this.getOrderReadyDetail(data)
  258. },
  259. forMatTime(row) {
  260. return moment(row).format("YYYY-MM-DD HH:mm");
  261. },
  262. //属性值进行比较
  263. //日期格式化
  264. forMatTime(time) {
  265. return moment(time).format("YYYY-MM-DD");
  266. },
  267. //加时分秒
  268. forMatTimehs(time) {
  269. return moment(time).format("YYYY-MM-DD HH:mm");
  270. },
  271. },
  272. watch: {
  273. }
  274. }
  275. </script>
  276. <style lang="scss" scoped>
  277. .query-wrap {
  278. width: 100%;
  279. height: 100%;
  280. padding: 20rpx;
  281. box-sizing: border-box;
  282. background-color: #F1F1F1;
  283. overflow-y: scroll;
  284. overflow-x: hidden;
  285. position: relative;
  286. padding-bottom: 200rpx;
  287. .botm-btn {
  288. width: 100%;
  289. height: 120rpx;
  290. background-color: #fff;
  291. position: fixed;
  292. left: 0;
  293. bottom: 0;
  294. padding-top: 40rpx;
  295. display: flex;
  296. align-items: center;
  297. justify-content: space-around;
  298. }
  299. .time-view {
  300. height: 350rpx;
  301. background-color: #fff;
  302. padding: 50rpx 50rpx 0 50rpx;
  303. box-sizing: border-box;
  304. .btn-view {
  305. width: 100%;
  306. height: 100rpx;
  307. margin-top: 100rpx;
  308. display: flex;
  309. justify-content: space-around;
  310. }
  311. }
  312. }
  313. uni-page-body {
  314. width: 100%;
  315. height: 100%;
  316. }
  317. </style>