details.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <template>
  2. <view class="query-wrap">
  3. <view class="inner-item">
  4. <view class="item-stats">
  5. {{acceptDetaData.stas=='A'?'待确认':"已确认"}}
  6. </view>
  7. <view class="text-title">
  8. <view class="title-circ">
  9. </view>
  10. <span>基本信息</span>
  11. </view>
  12. <view class="inventory-item">
  13. <view class="shuo-item-name">
  14. <view class="shuo-label-podnme">
  15. 退货单号:
  16. </view>
  17. <view class="shuo-cont">
  18. {{acceptDetaData.id}}
  19. </view>
  20. </view>
  21. </view>
  22. <view class="inventory-item">
  23. <view class="shuo-item">
  24. <view class="shuo-label">
  25. 退货品种数:
  26. </view>
  27. <view class="shuo-cont">
  28. {{acceptDetaData.deltCnt||""}}
  29. </view>
  30. </view>
  31. <view class="shuo-item">
  32. <view class="shuo-label">
  33. 退货总金额:
  34. </view>
  35. <view class="shuo-cont">
  36. {{acceptDetaData.amt}}
  37. </view>
  38. </view>
  39. </view>
  40. <view class="inventory-item">
  41. <view class="shuo-item-name">
  42. <view class="shuo-label-podnme">
  43. 来源机构:
  44. </view>
  45. <view class="shuo-cont">
  46. {{acceptDetaData.orgName}}
  47. </view>
  48. </view>
  49. </view>
  50. <view class="inventory-item">
  51. <view class="shuo-item-name">
  52. <view class="shuo-label-podnme">
  53. 供应商名称:
  54. </view>
  55. <view class="shuo-cont">
  56. {{acceptDetaData.splerName}}
  57. </view>
  58. </view>
  59. </view>
  60. <view class="inventory-item">
  61. <view class="shuo-item-name">
  62. <view class="shuo-label">
  63. 退货时间:
  64. </view>
  65. <view class="shuo-cont">
  66. {{forMatTimehs(acceptDetaData.retnDate)}}
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="empty-cont" v-if="depDelData.length=='0'">
  72. 暂无明细数据
  73. </view>
  74. <view class="inner-item" v-for="(item,idex) in depDelData" :key="idex">
  75. <view class="text-title" v-if="idex=='0'">
  76. <view class="title-circ">
  77. </view>
  78. <span>药品清单</span>
  79. </view>
  80. <view class="inventory-item" style="margin-top: 40rpx;">
  81. <view class="shuo-item-name">
  82. <view class="shuo-label-podnme">
  83. 药品名称:
  84. </view>
  85. <view class="shuo-unit">
  86. <span>{{ item.drugName }}</span>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="inventory-item">
  91. <view class="shuo-item-name">
  92. <view class="shuo-label-podnme">
  93. 药品编码:
  94. </view>
  95. <view class="shuo-cont">
  96. <span>{{ item.drugListId }}</span>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="inventory-item">
  101. <view class="shuo-item-name">
  102. <view class="shuo-label">
  103. 药品规格:
  104. </view>
  105. <view class="shuo-cont">
  106. {{
  107. "" +
  108. item.specName +
  109. "*" +
  110. item.convrat +
  111. item.pac +
  112. "/" +
  113. item.pacUnt +
  114. "】"
  115. }}
  116. </view>
  117. </view>
  118. </view>
  119. <view class="inventory-item">
  120. <view class="shuo-item">
  121. <view class="shuo-label">
  122. 是否基药:
  123. </view>
  124. <view class="shuo-cont">
  125. <span v-if="item.essdrugType == '0'">否</span>
  126. <span v-if="item.essdrugType == '1'">是</span>
  127. </view>
  128. </view>
  129. <view class="shuo-item">
  130. <view class="shuo-label">
  131. 药品剂型:
  132. </view>
  133. <view class="shuo-cont">
  134. {{item.dosformName}}
  135. </view>
  136. </view>
  137. </view>
  138. <view class="inventory-item">
  139. <view class="shuo-item">
  140. <view class="shuo-label">
  141. 制剂单位:
  142. </view>
  143. <view class="shuo-cont">
  144. {{item.prepunt}}
  145. </view>
  146. </view>
  147. </view>
  148. <view class="inventory-item">
  149. <view class="shuo-item">
  150. <view class="shuo-label">
  151. 退货数量:
  152. </view>
  153. <view class="shuo-cont">
  154. {{item.retnCnt}}
  155. </view>
  156. </view>
  157. <view class="shuo-item">
  158. <view class="shuo-label">
  159. 退货金额:
  160. </view>
  161. <view class="shuo-cont">
  162. {{item.retnAmt}}
  163. </view>
  164. </view>
  165. </view>
  166. <view class="inventory-item">
  167. <view class="shuo-item-name">
  168. <view class="shuo-label-podnme">
  169. 生产厂家:
  170. </view>
  171. <view class="shuo-cont">
  172. <span>{{ item.prodentpName }}</span>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="inventory-item">
  177. <view class="shuo-item-name">
  178. <view class="shuo-label-podnme">
  179. 退货原因:
  180. </view>
  181. <view class="shuo-cont">
  182. <span>{{ item.retnRea }}</span>
  183. </view>
  184. </view>
  185. </view>
  186. </view>
  187. <uni-popup ref="popup">
  188. <uni-popup-dialog type="warn" :before-close="true" cancelText="取消" confirmText="确定" content="你确定当前操作吗?"
  189. @confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
  190. </uni-popup>
  191. <view class="botm-btn" v-if="acceptDetaData.stas == 'A'">
  192. <button type="default" plain="true" style="width:200rpx;line-height: 70rpx;background: #01A992;color:#fff"
  193. @click.stop="accessData('Y')">确认</button>
  194. </view>
  195. </view>
  196. </template>
  197. <script>
  198. import {
  199. mapState,
  200. mapMutations,
  201. mapActions
  202. } from 'vuex';
  203. import moment from "moment";
  204. export default {
  205. data() {
  206. return {
  207. listData: [],
  208. acceptDetaData: {}
  209. }
  210. },
  211. computed: {
  212. ...mapState(['depDelData'])
  213. },
  214. onShow() {
  215. let that = this;
  216. uni.getStorage({
  217. key: 'depDetailData',
  218. success: function(res) {
  219. that.touData({
  220. id: res.data.id,
  221. });
  222. that.acceptDetaData = res.data;
  223. }
  224. });
  225. },
  226. mounted() {},
  227. methods: {
  228. ...mapActions(['getDepretDetail']),
  229. async touData(data) {
  230. this.getDepretDetail(data)
  231. },
  232. forMatTime(row) {
  233. return moment(row).format("YYYY-MM-DD");
  234. },
  235. //确认
  236. accessData(type) {
  237. this.depDelData.map((item) => {
  238. return item.stas = 'Y';
  239. })
  240. this.$http('depTeturn.submit', this.depDelData, '加载中').then(res => {
  241. if (res.success == true) {
  242. uni.navigateTo({
  243. url: '/durgsubpkg/pages/depart-return/index',
  244. success: function(res) {
  245. console.log(res, "res")
  246. }
  247. });
  248. }
  249. }).catch(e => {
  250. })
  251. },
  252. //加时分秒
  253. forMatTimehs(time) {
  254. return moment(time).format("YYYY-MM-DD HH:mm");
  255. },
  256. },
  257. watch: {
  258. }
  259. }
  260. </script>
  261. <style lang="scss" scoped>
  262. .query-wrap {
  263. width: 100%;
  264. height: 100%;
  265. padding: 20rpx;
  266. box-sizing: border-box;
  267. background-color: #F1F1F1;
  268. overflow-y: scroll;
  269. overflow-x: hidden;
  270. position: relative;
  271. padding-bottom: 200rpx;
  272. .botm-btn {
  273. width: 100%;
  274. height: 120rpx;
  275. background-color: #fff;
  276. position: fixed;
  277. left: 0;
  278. bottom: 0;
  279. padding-top: 40rpx;
  280. display: flex;
  281. align-items: center;
  282. justify-content: space-around;
  283. }
  284. .time-view {
  285. height: 350rpx;
  286. background-color: #fff;
  287. padding: 50rpx 50rpx 0 50rpx;
  288. box-sizing: border-box;
  289. .btn-view {
  290. width: 100%;
  291. height: 100rpx;
  292. margin-top: 100rpx;
  293. display: flex;
  294. justify-content: space-around;
  295. }
  296. }
  297. }
  298. uni-page-body {
  299. width: 100%;
  300. height: 100%;
  301. }
  302. </style>