details.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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.purcAmt}}
  34. </view>
  35. </view>
  36. </view>
  37. <view class="inventory-item">
  38. <view class="shuo-item-name">
  39. <view class="shuo-label">
  40. 来源机构:
  41. </view>
  42. <view class="shuo-cont">
  43. {{acceptDetaData.orgName}}
  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. {{forMatTime(acceptDetaData.docmkDate)}}
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="empty-cont" v-if="orderDelData.length=='0'">
  59. 暂无明细数据
  60. </view>
  61. <view class="inner-item" v-for="(item,idex) in orderDelData" :key="idex">
  62. <view class="text-title" v-if="idex=='0'">
  63. <view class="title-circ">
  64. </view>
  65. <span>药品清单</span>
  66. </view>
  67. <view class="inventory-item" style="margin-top: 40rpx;">
  68. <view class="shuo-item-name">
  69. <view class="shuo-label-podnme">
  70. 药品名称:
  71. </view>
  72. <view class="shuo-unit">
  73. <span>{{ item.drugName }}</span>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="inventory-item">
  78. <view class="shuo-item-name">
  79. <view class="shuo-label-podnme">
  80. 药品编码:
  81. </view>
  82. <view class="shuo-cont">
  83. <span>{{ item.drugListId }}</span>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="inventory-item">
  88. <view class="shuo-item-name">
  89. <view class="shuo-label">
  90. 药品规格:
  91. </view>
  92. <view class="shuo-cont">
  93. {{item.specName}}
  94. </view>
  95. </view>
  96. </view>
  97. <view class="inventory-item">
  98. <view class="shuo-item">
  99. <view class="shuo-label">
  100. 是否基药:
  101. </view>
  102. <view class="shuo-cont">
  103. <span v-if="item.essdrugType == '0'">否</span>
  104. <span v-if="item.essdrugType == '1'">是</span>
  105. </view>
  106. </view>
  107. <view class="shuo-item">
  108. <view class="shuo-label">
  109. 药品剂型:
  110. </view>
  111. <view class="shuo-cont">
  112. {{item.dosformName}}
  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.purcPric}}
  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.purcAmt}}
  141. </view>
  142. </view>
  143. <view class="shuo-item">
  144. <view class="shuo-label">
  145. 批准文号:
  146. </view>
  147. <view class="shuo-cont">
  148. {{item.aprvNo}}
  149. </view>
  150. </view>
  151. </view>
  152. <view class="inventory-item">
  153. <view class="shuo-item-name">
  154. <view class="shuo-label-podnme">
  155. 生产厂家:
  156. </view>
  157. <view class="shuo-cont">
  158. <span>{{ item.prodentpName }}</span>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <uni-popup ref="popup">
  164. <uni-popup-dialog type="warn" :before-close="true" cancelText="取消" confirmText="确定" content="你确定当前操作吗?"
  165. @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
  166. </uni-popup>
  167. <view class="botm-btn" v-if="acceptDetaData.stas == 'A'">
  168. <button type="default" plain="true" style="width:240rpx;line-height: 70rpx;background: #01A992;color:#fff"
  169. @click.stop="accessData()">受理</button>
  170. </view>
  171. </view>
  172. </template>
  173. <script>
  174. import {
  175. mapState,
  176. mapMutations,
  177. mapActions
  178. } from 'vuex';
  179. import moment from "moment";
  180. export default {
  181. data() {
  182. return {
  183. listData: [],
  184. acceptDetaData: {},
  185. subMitData: {}
  186. }
  187. },
  188. computed: {
  189. ...mapState(['orderDelData'])
  190. },
  191. onShow() {
  192. let that = this;
  193. uni.getStorage({
  194. key: 'orderTakDetailData',
  195. success: function(res) {
  196. that.touData({
  197. id: res.data.id,
  198. });
  199. that.acceptDetaData = res.data;
  200. }
  201. });
  202. },
  203. mounted() {},
  204. methods: {
  205. ...mapActions(['getOrderDetail']),
  206. async touData(data) {
  207. this.getOrderDetail(data)
  208. },
  209. forMatTime(row) {
  210. return moment(row).format("YYYY-MM-DD HH:mm");
  211. },
  212. //确认/退回
  213. accessData() {
  214. let subData = [];
  215. this.orderDelData.forEach((item) => {
  216. subData.push({
  217. ...item,
  218. flag: 0
  219. })
  220. })
  221. this.$http('orderTaking.subData', {
  222. id: this.acceptDetaData.id,
  223. rejtList: subData
  224. }, '加载中').then(res => {
  225. if (res.success == true) {
  226. uni.redirectTo({
  227. url: '/durgsubpkg/pages/order-taking/index',
  228. success: function(res) {
  229. console.log(res, "res")
  230. }
  231. });
  232. }
  233. }).catch(e => {
  234. })
  235. },
  236. //日期格式化
  237. forMatTime(time) {
  238. return moment(time).format("YYYY-MM-DD");
  239. },
  240. //加时分秒
  241. forMatTimehs(time) {
  242. return moment(time).format("YYYY-MM-DD HH:mm");
  243. },
  244. },
  245. watch: {
  246. }
  247. }
  248. </script>
  249. <style lang="scss" scoped>
  250. .query-wrap {
  251. width: 100%;
  252. height: 100%;
  253. padding: 20rpx;
  254. box-sizing: border-box;
  255. background-color: #F1F1F1;
  256. overflow-y: scroll;
  257. overflow-x: hidden;
  258. position: relative;
  259. padding-bottom: 200rpx;
  260. .botm-btn {
  261. width: 100%;
  262. height: 120rpx;
  263. background-color: #fff;
  264. position: fixed;
  265. left: 0;
  266. bottom: 0;
  267. padding-top: 40rpx;
  268. display: flex;
  269. align-items: center;
  270. justify-content: space-around;
  271. }
  272. .time-view {
  273. height: 350rpx;
  274. background-color: #fff;
  275. padding: 50rpx 50rpx 0 50rpx;
  276. box-sizing: border-box;
  277. .btn-view {
  278. width: 100%;
  279. height: 100rpx;
  280. margin-top: 100rpx;
  281. display: flex;
  282. justify-content: space-around;
  283. }
  284. }
  285. }
  286. uni-page-body {
  287. width: 100%;
  288. height: 100%;
  289. }
  290. </style>