details.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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.deptName||""}}
  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">
  171. <view class="shuo-item">
  172. <view class="shuo-label">
  173. 耗材类别:
  174. </view>
  175. <view class="shuo-cont-blue">
  176. <span v-if="item.mcsType == '0'"> 普通耗材 </span>
  177. <span v-if="item.mcsType == '1'"> 高值耗材 </span>
  178. <span v-if="item.mcsType == '2'"> 试剂 </span>
  179. <span v-if="item.mcsType == '3'"> 总务耗材 </span>
  180. </view>
  181. </view>
  182. <view class="shuo-item">
  183. <view class="shuo-label">
  184. 生产来源:
  185. </view>
  186. <view class="shuo-cont-blue">
  187. <span v-if="item.prodSouc == '1'" type="success"> 国产 </span>
  188. <span v-if="item.prodSouc == '2'" type="danger"> 进口 </span>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="inventory-item">
  193. <view class="shuo-item-name">
  194. <view class="shuo-label">
  195. 生产企业:
  196. </view>
  197. <view class="shuo-cont">
  198. {{item.prodEntp}}
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. <uni-popup ref="popup">
  204. <uni-popup-dialog type="warn" :before-close="true" cancelText="取消" confirmText="确定" content="你确定当前操作吗?"
  205. @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
  206. </uni-popup>
  207. <view class="botm-btn" v-if="acceptDetaData.stas == 'A'">
  208. <button type="default" plain="true" style="width:240rpx;line-height: 70rpx;background: #01A992;color:#fff"
  209. @click.stop="accessData()">受理</button>
  210. </view>
  211. </view>
  212. </template>
  213. <script>
  214. import {
  215. mapState,
  216. mapMutations,
  217. mapActions
  218. } from 'vuex';
  219. import moment from "moment";
  220. export default {
  221. data() {
  222. return {
  223. listData: [],
  224. acceptDetaData: {},
  225. subMitData: {}
  226. }
  227. },
  228. computed: {
  229. ...mapState(['orderDelData'])
  230. },
  231. onShow() {
  232. let that = this;
  233. uni.getStorage({
  234. key: 'orderTakDetailData',
  235. success: function(res) {
  236. that.touData({
  237. id: res.data.id,
  238. });
  239. that.acceptDetaData = res.data;
  240. }
  241. });
  242. },
  243. mounted() {},
  244. methods: {
  245. ...mapActions(['getOrderDetail']),
  246. async touData(data) {
  247. this.getOrderDetail(data)
  248. },
  249. forMatTime(row) {
  250. return moment(row).format("YYYY-MM-DD HH:mm");
  251. },
  252. //确认/退回
  253. accessData() {
  254. this.$http('orderTaking.subData', {
  255. id: this.acceptDetaData.id,
  256. rejtList: this.orderDelData
  257. }, '加载中').then(res => {
  258. if (res.success == true) {
  259. uni.navigateTo({
  260. url: '/subpkg/pages/mcs-order-taking/index',
  261. success: function(res) {
  262. console.log(res, "res")
  263. }
  264. });
  265. }
  266. }).catch(e => {
  267. })
  268. },
  269. //日期格式化
  270. forMatTime(time) {
  271. return moment(time).format("YYYY-MM-DD");
  272. },
  273. //加时分秒
  274. forMatTimehs(time) {
  275. return moment(time).format("YYYY-MM-DD HH:mm");
  276. },
  277. },
  278. watch: {
  279. }
  280. }
  281. </script>
  282. <style lang="scss" scoped>
  283. .query-wrap {
  284. width: 100%;
  285. height: 100%;
  286. padding: 20rpx;
  287. box-sizing: border-box;
  288. background-color: #F1F1F1;
  289. overflow-y: scroll;
  290. overflow-x: hidden;
  291. position: relative;
  292. padding-bottom: 200rpx;
  293. .botm-btn {
  294. width: 100%;
  295. height: 120rpx;
  296. background-color: #fff;
  297. position: fixed;
  298. left: 0;
  299. bottom: 0;
  300. padding-top: 40rpx;
  301. display: flex;
  302. align-items: center;
  303. justify-content: space-around;
  304. }
  305. .time-view {
  306. height: 350rpx;
  307. background-color: #fff;
  308. padding: 50rpx 50rpx 0 50rpx;
  309. box-sizing: border-box;
  310. .btn-view {
  311. width: 100%;
  312. height: 100rpx;
  313. margin-top: 100rpx;
  314. display: flex;
  315. justify-content: space-around;
  316. }
  317. }
  318. }
  319. uni-page-body {
  320. width: 100%;
  321. height: 100%;
  322. }
  323. </style>