detail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. <template>
  2. <view class="main">
  3. <uni-nav-bar dark :fixed="true" shadow background-color="#007AFF" status-bar left-icon="left" left-text="返回" :leftWidth=120 :rightWidth=120 :height=100 :width="1200"
  4. title="处方详情" @clickLeft="handleBack"
  5. />
  6. <view class="content">
  7. <view class="header">
  8. <view class="ti">
  9. <view class="left">
  10. <view class="baracode">
  11. <w-barcode :options="preseObj"></w-barcode>
  12. <view class="barnum">{{v.preNo}}</view>
  13. </view>
  14. </view>
  15. <view class="mid">
  16. <text class="title">中药处方笺</text>
  17. </view>
  18. <view class="rig"><text class="title">{{v.presType}}</text></view>
  19. </view>
  20. <view class="patiinfo">
  21. <view class="r1">
  22. <view class="row">姓名:{{v.name}}</view>
  23. <view class="row">性别:{{v.sex}}</view>
  24. <view class="row">年龄:{{v.age}}岁</view>
  25. <view class="row">电话:{{v.tel}}</view>
  26. <view class="row">当前处方状态:{{v.status}}</view>
  27. </view>
  28. <view class="r2">
  29. <view class="row">就诊科室:{{v.department}}</view>
  30. <view class="row">临床诊断:{{v.disName}}—{{v.symName}}</view>
  31. <view class="row">开方时间:{{v.prescriptionTime}}</view>
  32. </view>
  33. <view class="r3">联系地址:{{v.addr}}</view>
  34. </view>
  35. </view>
  36. <view class="rp">
  37. <view class="title">
  38. <text class="text">Rp:</text>
  39. </view>
  40. <view class="lists">
  41. <view class="item" v-for="(x, i) in v.rp" :key="i">
  42. <view class="le">{{x.name}} {{x.num}}</view>
  43. <view class="rig">
  44. <view class="up"> {{x.tips}}</view>
  45. <view class="do"> {{x.sign}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="footer">
  50. <view class="js">
  51. 剂数:{{v.pies}}
  52. <view v-if="v.pies_tips!==''" class="pies_tips">
  53. ({{v.pies_tips}})
  54. </view>
  55. </view>
  56. <view class="js">{{v.med_type}}</view>
  57. <view class="js">{{v.eat_type}}</view>
  58. <view class="js">每次{{v.capa}}</view>
  59. <view class="js">{{v.freque}}</view>
  60. <view class="freque">{{v.eat_tips}}</view>
  61. </view>
  62. <view class="rp-tips">{{v.rp_tips}}</view>
  63. </view>
  64. <view class="amountarea">
  65. <view class="amount">
  66. <view class="r1">
  67. <view class="pijw">药品金额:{{v.prescriptionSum}}</view>
  68. </view>
  69. <view class="r2">
  70. <view class="jyf">煎药费:{{v.daijianCost}}</view>
  71. <view class="psf">配送费:{{v.distributionCost}}</view>
  72. </view>
  73. <view class="r3">
  74. 总金额:{{v.prescriptionTotleSum}}
  75. <!-- <view class="zjw"></view> -->
  76. </view>
  77. </view>
  78. <view class="service">
  79. <view class="kf">开方:{{v.service.extra_doc}}</view>
  80. <view class="kf">审核:{{v.service.check_doc}}</view>
  81. <view class="kf">调配:{{v.service.depoly}}</view>
  82. <view class="kf">复核:{{v.service.review}}</view>
  83. <view class="kf">浸泡:{{v.service.steep}}</view>
  84. <view class="kf">煎煮:{{v.service.cook}}</view>
  85. <view class="kf">打包:{{v.service.pack}}</view>
  86. <view class="kf">发药:{{v.service.dispen}}</view>
  87. </view>
  88. </view>
  89. <view class="comment">
  90. <view class="z">注:</view>
  91. <text>{{v.comment}}</text>
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <script>
  97. export default {
  98. name: ''
  99. }
  100. </script>
  101. <script setup>
  102. import { onMounted, ref } from 'vue'
  103. import { selectOrderDetail } from "@/static/api.js"
  104. import { onLoad } from '@dcloudio/uni-app'
  105. const preseId = ref(11220822134401)
  106. const preseObj = ref({
  107. code: '11220822134401',
  108. color:['#000'], // 条形码的颜色
  109. bgColor: '#FFFFFF', // 背景色
  110. width: 200, // 宽度
  111. height: 50 // 高度
  112. })
  113. const barOpations = ref({
  114. height: 80,
  115. displayValue: false
  116. })
  117. const v=ref({
  118. preNo:11220822134401,
  119. presType:'普通处方',
  120. name:'李某',
  121. sex:'男',
  122. age:35,
  123. tel:'13888888888',
  124. pres_status: '发药',
  125. office:'中医内科',
  126. disName:'胃脘痛病',
  127. symName:'脾胃虚寒证',
  128. prescriptionTime:'2023-06-01 15:58',
  129. addr:'浙江省某某事某某去某某事中医院门诊楼三楼302是',
  130. rp:[
  131. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  132. {name:'车前子',num:'6g',tips:'先煎',sign:'医生签名'},
  133. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  134. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  135. {name:'车前子',num:'6g',tips:'先煎',sign:'医生签名'},
  136. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  137. {name:'车前子',num:'6g',tips:'',sign:''},
  138. {name:'车前子',num:'6g',tips:'',sign:''},
  139. {name:'车前子',num:'6g',tips:'',sign:''},
  140. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  141. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  142. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  143. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  144. {name:'车前子',num:'6g',tips:'包煎',sign:''},
  145. {name:'车前子',num:'6g',tips:'包煎',sign:''},
  146. {name:'车前子',num:'6g',tips:'包煎',sign:''},
  147. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  148. {name:'车前子',num:'6g',tips:'先煎',sign:'医生签名'},
  149. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  150. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  151. {name:'车前子',num:'6g',tips:'先煎',sign:'医生签名'},
  152. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  153. {name:'车前子',num:'6g',tips:'',sign:''},
  154. {name:'车前子',num:'6g',tips:'',sign:''},
  155. {name:'车前子',num:'6g',tips:'',sign:''},
  156. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  157. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  158. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  159. {name:'车前子',num:'6g',tips:'先煎',sign:''},
  160. {name:'车前子',num:'6g',tips:'包煎',sign:''},
  161. {name:'车前子',num:'6g',tips:'包煎',sign:''},
  162. {name:'车前子',num:'6g',tips:'包煎',sign:''},
  163. {name:'车前子',num:'6g',tips:'',sign:''},
  164. {name:'车前子',num:'6g',tips:'',sign:''},
  165. {name:'车前子',num:'6g',tips:'',sign:''},
  166. {name:'车前子',num:'6g',tips:'',sign:''},
  167. {name:'车前子',num:'6g',tips:'',sign:''},
  168. {name:'车前子',num:'6g',tips:'',sign:''},
  169. {name:'车前子',num:'6g',tips:'',sign:''},
  170. {name:'车前子',num:'6g',tips:'',sign:''},
  171. {name:'车前子',num:'6g',tips:'',sign:''},
  172. {name:'车前子',num:'6g',tips:'',sign:''},
  173. {name:'车前子',num:'6g',tips:'',sign:''},
  174. {name:'车前子',num:'6g',tips:'',sign:''}
  175. ],
  176. pies:3,
  177. pies_tips:'待见',
  178. med_type:'汤剂',
  179. eat_type:'煎服',
  180. capa:'200ml',
  181. freque:'一日三次',
  182. eat_tips:'饭后服',
  183. rp_tips:'注意多休息,饮食清单。',
  184. money:{
  185. drugs_amount: 187.00,
  186. cook_fee:30.00,
  187. delie_fee:10.00,
  188. summary: 227.00,
  189. },
  190. service:{
  191. extra_doc:'A医生',
  192. check_doc:'B医生',
  193. depoly:'调陪人',
  194. review:'复核人',
  195. steep:'浸泡',
  196. cook:'煎煮人',
  197. pack:'大宝人',
  198. dispen:'发药人',
  199. },
  200. comment:'1、本处方当日有效\n 2、取药时请您当面核对。。。。 \n 3、延长处方用量时间原油:慢性病 其他老年病 外地 其他'
  201. })
  202. onMounted(() => {
  203. })
  204. onLoad(async(options) => {
  205. console.log('options', options)
  206. const token = uni.getStorageSync('token')
  207. const userId = uni.getStorageSync('userId')
  208. const params = {
  209. token: token,
  210. data: {
  211. preId: options.preId,
  212. userId: userId,
  213. }
  214. }
  215. const {data:res } = selectOrderDetail(params)
  216. if (res.code === 200) {
  217. v.prescriptionTime = res.data.prescriptionTime,
  218. v.value.name = res.data.name,
  219. v.value.sex = res.data.sex,
  220. v.value.age = res.data.age,
  221. v.value.disName = res.data.disName,
  222. v.value.symName = res.data.symName,
  223. v.value.preNo = res.data.preNo,
  224. v.value.department = res.data.department,
  225. v.value.dosageForm = res.data.dosageForm,
  226. v.value.number = res.data.number,
  227. v.value.prescriptionSum = res.data.prescriptionSum,
  228. v.value.prescriptionTotalSum = res.data.prescriptionTotalSum,
  229. v.value.daijianCost = res.data.daijianCost,
  230. v.value.distributionCost = res.data.distributionCost,
  231. v.value.entrust = res.data.entrust,
  232. v.value.rp = res.data.detailList
  233. // v.value.status = res.data.status,
  234. switch (res.data.status) {
  235. case '1':
  236. v.value.status = '配药'
  237. break
  238. case '2':
  239. v.value.status = '煎药'
  240. break
  241. case '3':
  242. v.value.status = '发药'
  243. break
  244. case '4':
  245. v.value.status = '配送'
  246. break
  247. case '5':
  248. v.value.status = '已分配'
  249. break
  250. case '6':
  251. v.value.status = '已传送'
  252. break
  253. default:
  254. v.value.status = '配药'
  255. }
  256. }
  257. })
  258. const handleBack =()=>{
  259. uni.navigateBack({
  260. delta: 1
  261. })
  262. }
  263. </script>
  264. <style lang="scss">
  265. .main {
  266. display: flex;
  267. flex-direction:column;
  268. justify-content:flex-start;
  269. width: 1200px;
  270. .content{
  271. margin: 10px;
  272. background-color: #fff;
  273. flex-direction:column;
  274. align-items: center;
  275. .header{
  276. display: flex;
  277. flex-direction:column;
  278. margin:16px 16px 0;
  279. .ti{
  280. display: flex;
  281. flex-direction:row;
  282. justify-content: space-between;
  283. .left{
  284. align-items: flex-start;
  285. .baracode{
  286. display: flex;
  287. flex-direction:column;
  288. width: 320px;
  289. // align-items: center;
  290. .barnum{
  291. width:320px;
  292. font-size: 40px;
  293. display: flex;
  294. justify-content:center;
  295. align-items: center;
  296. letter-spacing: 0.1em;
  297. }
  298. }
  299. }
  300. .mid{
  301. align-items: flex-start;
  302. justify-content:center;
  303. width:320px;
  304. display: flex;
  305. .title{
  306. font-size: 40px;
  307. margin-top: 20px;
  308. font-weight: 800;
  309. }
  310. }
  311. .rig{
  312. align-items: flex-start;
  313. justify-content:flex-end;
  314. width:320px;
  315. display: flex;
  316. .title{
  317. font-size: 26px;
  318. width: 60px;
  319. font-weight: 300;
  320. }
  321. }
  322. }
  323. .patiinfo{
  324. display: flex;
  325. flex-direction:column;
  326. margin-top: 5px;
  327. padding-bottom: 10px;
  328. border-bottom: 1px solid #000;
  329. .r1{
  330. display: flex;
  331. flex-direction:row;
  332. height: 50px;
  333. .row{
  334. font-size: 28px;
  335. font-weight: 400;
  336. margin-right: 30px;
  337. }
  338. }
  339. .r2{
  340. display: flex;
  341. flex-direction:row;
  342. margin-top: 5px;
  343. height: 50px;
  344. .row{
  345. font-size: 28px;
  346. font-weight: 400;
  347. margin-right: 20px;
  348. }
  349. }
  350. .r3{
  351. display: flex;
  352. flex-direction:row;
  353. height: 50px;
  354. margin-top: 5px;
  355. font-size: 28px;
  356. font-weight: 400;
  357. }
  358. }
  359. }
  360. .rp{
  361. display: flex;
  362. flex-direction:column;
  363. margin:0 16px 0;
  364. border-bottom: 1px solid #000;
  365. .title{
  366. font-size: 40px;
  367. }
  368. .lists{
  369. display: flex;
  370. flex-wrap: wrap;
  371. flex-direction: row;
  372. justify-content:flex-start;
  373. align-content:flex-start;
  374. margin-left:80px;
  375. // width: 1000px;
  376. // height: 1800px;
  377. .item{
  378. display: flex;
  379. justify-content:center;
  380. align-items: center;
  381. height:80px;
  382. width: 220px;
  383. margin-right: 40px;
  384. // flex-basis: 25%;
  385. .le{
  386. display: flex;
  387. width: 130px;
  388. font-size: 28px;
  389. }
  390. .rig{
  391. display: flex;
  392. flex-direction:column;
  393. margin-left: 10px;
  394. .up{
  395. width: 80px;
  396. height: 22px;
  397. }
  398. .do{
  399. width: 80px;
  400. height: 22px;
  401. }
  402. }
  403. }
  404. }
  405. .footer{
  406. margin: 20px 0 0 80px;
  407. display: flex;
  408. font-size: 25px;
  409. .js{
  410. display: flex;
  411. margin-right: 100px;
  412. .pies_tips{}
  413. }
  414. .freque{}
  415. }
  416. .rp-tips{
  417. display: flex;
  418. justify-content:flex-end;
  419. font-size: 25px;
  420. }
  421. }
  422. .amountarea{
  423. display: flex;
  424. margin: 10px 16px 0;
  425. padding-bottom: 10px;
  426. border-bottom: 1px solid #000;
  427. .amount{
  428. display: flex;
  429. flex-direction:column;
  430. .r1{
  431. border: 1px solid #000;
  432. font-size: 30px;
  433. width: 400px;
  434. display: flex;
  435. justify-content:center;
  436. align-items: center;
  437. height: 50px;
  438. }
  439. .r2{
  440. display: flex;
  441. justify-content:center;
  442. align-items: center;
  443. font-size: 30px;
  444. height: 50px;
  445. width: 400px;
  446. border-left: 1px solid #000;
  447. border-right: 1px solid #000;
  448. .jyf{
  449. width: 200px;
  450. display: flex;
  451. justify-content:center;
  452. align-items: center;
  453. }
  454. .psf{
  455. border-left: 1px solid #000;
  456. width: 201px;
  457. display: flex;
  458. justify-content:center;
  459. align-items: center;
  460. }
  461. }
  462. .r3{
  463. display: flex;
  464. justify-content:center;
  465. height: 50px;
  466. align-items: center;
  467. font-size: 30px;
  468. border: 1px solid #000;
  469. }
  470. }
  471. .service{
  472. display: flex;
  473. flex-wrap: wrap;
  474. margin-left: 50px;
  475. .kf{
  476. font-size: 30px;
  477. margin-right: 55px;
  478. }
  479. }
  480. }
  481. .comment{
  482. margin: 10px 16px 10px;
  483. font-size: 30px;
  484. line-height: 50px;
  485. display: flex;
  486. }
  487. }
  488. }
  489. </style>