details.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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.id}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="inventory-item">
  20. <view class="shuo-item">
  21. <view class="shuo-label">
  22. 采购品种数:
  23. </view>
  24. <view class="shuo-cont">
  25. {{acceptDetaData.detlCnt}}
  26. </view>
  27. </view>
  28. <view class="shuo-item">
  29. <view class="shuo-label">
  30. 采购总数量:
  31. </view>
  32. <view class="shuo-cont">
  33. {{acceptDetaData.qtySum}}
  34. </view>
  35. </view>
  36. </view>
  37. <view class="inventory-item">
  38. <view class="shuo-item">
  39. <view class="shuo-label">
  40. 采购总金额:
  41. </view>
  42. <view class="shuo-cont">
  43. {{acceptDetaData.purcAmt}}
  44. </view>
  45. </view>
  46. <view class="shuo-item">
  47. <view class="shuo-label">
  48. 来源机构:
  49. </view>
  50. <view class="shuo-cont">
  51. {{acceptDetaData.branchName||""}}
  52. </view>
  53. </view>
  54. </view>
  55. <view class="inventory-item">
  56. <view class="shuo-item">
  57. <view class="shuo-label">
  58. 采购描述:
  59. </view>
  60. <view class="shuo-cont">
  61. <span v-if="acceptDetaData.purcType == '2'">{{ acceptDetaData.oprn }}</span>
  62. <span v-if="acceptDetaData.purcType == '1'">普通采购</span>
  63. </view>
  64. </view>
  65. <view class="shuo-item">
  66. <view class="shuo-label">
  67. 采购时间:
  68. </view>
  69. <view class="shuo-cont">
  70. {{forMatTime(acceptDetaData.docmkDate)}}
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="empty-cont" v-if="orderDelData.length=='0'">
  76. 暂无明细数据
  77. </view>
  78. <view class="inner-item" v-for="(item,idex) in orderDelData" :key="idex">
  79. <view class="text-title" v-if="idex=='0'">
  80. <view class="title-circ">
  81. </view>
  82. <span>耗材清单</span>
  83. </view>
  84. <view class="inventory-item">
  85. <view class="shuo-item-name">
  86. <view class="shuo-label-podnme">
  87. 耗材编码
  88. </view>
  89. <view class="shuo-unit">
  90. {{item.prodCode}}
  91. </view>
  92. </view>
  93. </view>
  94. <view class="inventory-item">
  95. <view class="shuo-item-name">
  96. <view class="shuo-label-podnme">
  97. 医保编码
  98. </view>
  99. <view class="shuo-unit">
  100. {{item.hiCode}}
  101. </view>
  102. </view>
  103. </view>
  104. <view class="inventory-item">
  105. <view class="shuo-item-name">
  106. <view class="shuo-label-podnme">
  107. {{item.prodName}}
  108. </view>
  109. <view class="shuo-unit">
  110. <span>{{ item.purcUnt }} ({{ item.convrat }}{{ item.prcUnt }}/{{
  111. item.purcUnt
  112. }})</span>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="inventory-item">
  117. <view class="shuo-item">
  118. <view class="shuo-label">
  119. 采购数量:
  120. </view>
  121. <view class="shuo-cont">
  122. {{item.purcCnt}}
  123. </view>
  124. </view>
  125. <view class="shuo-item">
  126. <view class="shuo-label">
  127. 采购金额:
  128. </view>
  129. <view class="shuo-cont">
  130. {{item.purcAmt}}
  131. </view>
  132. </view>
  133. </view>
  134. <view class="inventory-item">
  135. <view class="shuo-item">
  136. <view class="shuo-label">
  137. 规格:
  138. </view>
  139. <view class="shuo-cont">
  140. {{item.spec}}
  141. </view>
  142. </view>
  143. <view class="shuo-item">
  144. <view class="shuo-label">
  145. 型号:
  146. </view>
  147. <view class="shuo-cont">
  148. {{item.mol}}
  149. </view>
  150. </view>
  151. </view>
  152. <view class="inventory-item">
  153. <view class="shuo-item">
  154. <view class="shuo-label">
  155. 材质:
  156. </view>
  157. <view class="shuo-cont">
  158. {{item.matl}}
  159. </view>
  160. </view>
  161. <view class="shuo-item">
  162. <view class="shuo-label">
  163. 注册证号:
  164. </view>
  165. <view class="shuo-cont">
  166. {{item.regcertno}}
  167. </view>
  168. </view>
  169. </view>
  170. <view class="inventory-item" v-if="acceptDetaData.purcOrdStas=='C'||acceptDetaData.purcOrdStas=='Y'">
  171. <view class="shuo-item">
  172. <view class="shuo-label">
  173. 出库数量:
  174. </view>
  175. <view class="shuo-cont">
  176. {{item.delvCnt}}
  177. </view>
  178. </view>
  179. <view class="shuo-item">
  180. <view class="shuo-label">
  181. 待出库数量:
  182. </view>
  183. <view class="shuo-cont">
  184. {{item.toDelvCnt}}
  185. </view>
  186. </view>
  187. </view>
  188. <view class="inventory-item"
  189. v-if="acceptDetaData.purcOrdStas=='D'||acceptDetaData.purcOrdStas=='C'||acceptDetaData.purcOrdStas=='Y'">
  190. <view class="shuo-item">
  191. <view class="shuo-label">
  192. 验收数量:
  193. </view>
  194. <view class="shuo-cont">
  195. {{item.shppCnt}}
  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-blue">
  205. <span v-if="item.mcsType == '0'"> 普通耗材 </span>
  206. <span v-if="item.mcsType == '1'"> 高值耗材 </span>
  207. <span v-if="item.mcsType == '2'"> 试剂 </span>
  208. <span v-if="item.mcsType == '3'"> 总务耗材 </span>
  209. </view>
  210. </view>
  211. <view class="shuo-item">
  212. <view class="shuo-label">
  213. 生产来源:
  214. </view>
  215. <view class="shuo-cont-blue">
  216. <span v-if="item.prodSouc == '1'" type="success"> 国产 </span>
  217. <span v-if="item.prodSouc == '2'" type="danger"> 进口 </span>
  218. </view>
  219. </view>
  220. </view>
  221. <view class="inventory-item">
  222. <view class="shuo-item-name">
  223. <view class="shuo-label">
  224. 生产企业:
  225. </view>
  226. <view class="shuo-cont">
  227. {{item.prodEntp}}
  228. </view>
  229. </view>
  230. </view>
  231. </view>
  232. <uni-popup ref="popup">
  233. <uni-popup-dialog type="warn" :before-close="true" cancelText="取消" confirmText="确定" content="你确定当前操作吗?"
  234. @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
  235. </uni-popup>
  236. <view class="botm-btn" v-if="acceptDetaData.stas == 'A'">
  237. <button type="default" plain="true" style="width:240rpx;line-height: 70rpx;background: #01A992;color:#fff"
  238. @click.stop="accessData()">受理</button>
  239. </view>
  240. </view>
  241. </template>
  242. <script>
  243. import {
  244. mapState,
  245. mapMutations,
  246. mapActions
  247. } from 'vuex';
  248. import moment from "moment";
  249. export default {
  250. data() {
  251. return {
  252. listData: [],
  253. acceptDetaData: {},
  254. subMitData: {}
  255. }
  256. },
  257. computed: {
  258. ...mapState(['orderDelData', 'instData'])
  259. },
  260. onShow() {
  261. let that = this;
  262. that.$forceUpdate();
  263. uni.getStorage({
  264. key: 'puderDelData',
  265. success: function(res) {
  266. that.touData(res.data);
  267. that.acceptDetaData = res.data;
  268. }
  269. });
  270. },
  271. mounted() {},
  272. methods: {
  273. ...mapActions(['getMcsOrderDetail', 'getMcsBondDetail']),
  274. touData(data) {
  275. if (data.purcOrdStas == "A" || data.purcOrdStas == "B") {
  276. this.getMcsOrderDetail({
  277. delvOrdId: data.delvOrdId,
  278. purcOrdId: data.purcOrdId,
  279. spdId: this.instData.spdId,
  280. })
  281. }
  282. if (data.purcOrdStas == "C" || data.purcOrdStas == "D" || data.purcOrdStas == "Y") {
  283. this.getMcsBondDetail({
  284. purcOrdId: data.id,
  285. spdId: this.instData.spdId
  286. })
  287. }
  288. },
  289. forMatTime(row) {
  290. return moment(row).format("YYYY-MM-DD HH:mm");
  291. },
  292. //确认/退回
  293. accessData() {
  294. this.$http('orderTaking.subData', {
  295. id: this.acceptDetaData.id,
  296. rejtList: this.orderDelData
  297. }, '加载中').then(res => {
  298. if (res.success == true) {
  299. uni.navigateTo({
  300. url: '/subpkg/pages/mcs-order-taking/index',
  301. success: function(res) {
  302. console.log(res, "res")
  303. }
  304. });
  305. }
  306. }).catch(e => {
  307. })
  308. },
  309. //日期格式化
  310. forMatTime(time) {
  311. return moment(time).format("YYYY-MM-DD");
  312. },
  313. //加时分秒
  314. forMatTimehs(time) {
  315. return moment(time).format("YYYY-MM-DD HH:mm");
  316. },
  317. },
  318. watch: {
  319. }
  320. }
  321. </script>
  322. <style lang="scss" scoped>
  323. .query-wrap {
  324. width: 100%;
  325. height: 100%;
  326. padding: 20rpx;
  327. box-sizing: border-box;
  328. background-color: #F1F1F1;
  329. overflow-y: scroll;
  330. overflow-x: hidden;
  331. position: relative;
  332. padding-bottom: 200rpx;
  333. .botm-btn {
  334. width: 100%;
  335. height: 120rpx;
  336. background-color: #fff;
  337. position: fixed;
  338. left: 0;
  339. bottom: 0;
  340. padding-top: 40rpx;
  341. display: flex;
  342. align-items: center;
  343. justify-content: space-around;
  344. }
  345. .time-view {
  346. height: 350rpx;
  347. background-color: #fff;
  348. padding: 50rpx 50rpx 0 50rpx;
  349. box-sizing: border-box;
  350. .btn-view {
  351. width: 100%;
  352. height: 100rpx;
  353. margin-top: 100rpx;
  354. display: flex;
  355. justify-content: space-around;
  356. }
  357. }
  358. }
  359. uni-page-body {
  360. width: 100%;
  361. height: 100%;
  362. }
  363. </style>