detail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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.pres_type}}</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.pres_status}}</view>
  27. </view>
  28. <view class="r2">
  29. <view class="row">就诊科室:{{v.office}}</view>
  30. <view class="row">临床诊断:{{v.dis_name}}—{{v.sym_name}}</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.money.drugs_amount}}</view>
  68. </view>
  69. <view class="r2">
  70. <view class="jyf">煎药费:{{v.money.cook_fee}}</view>
  71. <view class="psf">配送费:{{v.money.delie_fee}}</view>
  72. </view>
  73. <view class="r3">
  74. 总金额:{{v.money.summary}}
  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 preseObj = ref({
  106. code: '11220822134401',
  107. color:['#000'], // 条形码的颜色
  108. bgColor: '#FFFFFF', // 背景色
  109. width: 200, // 宽度
  110. height: 50 // 高度
  111. })
  112. const barOpations = ref({
  113. height: 80,
  114. displayValue: false
  115. })
  116. const v=ref({
  117. pres_id:11220822134401,
  118. pres_type:'普通处方',
  119. name:'李某',
  120. sex:'男',
  121. age:35,
  122. tel:'13888888888',
  123. pres_status: '发药',
  124. office:'中医内科',
  125. dis_name:'胃脘痛病',
  126. sym_name:'脾胃虚寒证',
  127. prescriptionTime:'2023-06-01 15:58',
  128. addr:'浙江省某某事某某去某某事中医院门诊楼三楼302是',
  129. rp:[
  130. {name:'车前子',num:'6g',tips:'包煎',sign:'医生签名'},
  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. ],
  175. pies:3,
  176. pies_tips:'待见',
  177. med_type:'汤剂',
  178. eat_type:'煎服',
  179. capa:'200ml',
  180. freque:'一日三次',
  181. eat_tips:'饭后服',
  182. rp_tips:'注意多休息,饮食清单。',
  183. money:{
  184. drugs_amount: 187.00,
  185. cook_fee:30.00,
  186. delie_fee:10.00,
  187. summary: 227.00,
  188. },
  189. service:{
  190. extra_doc:'A医生',
  191. check_doc:'B医生',
  192. depoly:'调陪人',
  193. review:'复核人',
  194. steep:'浸泡',
  195. cook:'煎煮人',
  196. pack:'大宝人',
  197. dispen:'发药人',
  198. },
  199. comment:'1、本处方当日有效\n 2、取药时请您当面核对。。。。 \n 3、延长处方用量时间原油:慢性病 其他老年病 外地 其他'
  200. })
  201. onMounted(() => {
  202. })
  203. onLoad(async() => {
  204. const params = {
  205. token: token,
  206. data: {
  207. id: userId,
  208. }
  209. }
  210. const {data:res } = selectOrderDetail(params)
  211. if (res.code === 200) {
  212. v.prescriptionTime = res.data.prescriptionTime,
  213. v.value.name = res.data.name,
  214. v.value.sex = res.data.sex,
  215. v.value.age = res.data.age,
  216. v.value.deployState = res.data.deployState,
  217. v.value.disName = res.data.disName,
  218. v.value.symName = res.data.symName,
  219. v.value.preNo = res.data.preNo,
  220. v.value.department = res.data.department,
  221. v.value.dosageForm = res.data.dosageForm,
  222. v.value.number = res.data.number,
  223. v.value.prescriptionSum = res.data.prescriptionSum,
  224. v.value.prescriptionTotalSum = res.data.prescriptionTotalSum,
  225. v.value.daijianCost = res.data.daijianCost,
  226. v.value.distributionCost = res.data.distributionCost,
  227. v.value.entrust = res.data.entrust,
  228. v.value.rp = res.data.detailList
  229. preseObj.value.code = res.data.preNo,
  230. }
  231. })
  232. const handleBack =()=>{
  233. uni.navigateBack({
  234. delta: 1
  235. })
  236. }
  237. </script>
  238. <style lang="scss">
  239. .main {
  240. display: flex;
  241. flex-direction:column;
  242. justify-content:flex-start;
  243. height: 2000px;
  244. width: 1200px;
  245. .content{
  246. margin: 10px;
  247. background-color: #fff;
  248. flex-direction:column;
  249. align-items: center;
  250. .header{
  251. display: flex;
  252. flex-direction:column;
  253. margin:16px 16px 0;
  254. .ti{
  255. display: flex;
  256. flex-direction:row;
  257. justify-content: space-between;
  258. .left{
  259. align-items: flex-start;
  260. .baracode{
  261. display: flex;
  262. flex-direction:column;
  263. width: 320px;
  264. // align-items: center;
  265. .barnum{
  266. width:320px;
  267. font-size: 40px;
  268. display: flex;
  269. justify-content:center;
  270. align-items: center;
  271. letter-spacing: 0.1em;
  272. }
  273. }
  274. }
  275. .mid{
  276. align-items: flex-start;
  277. justify-content:center;
  278. width:320px;
  279. display: flex;
  280. .title{
  281. font-size: 40px;
  282. margin-top: 20px;
  283. font-weight: 800;
  284. }
  285. }
  286. .rig{
  287. align-items: flex-start;
  288. justify-content:flex-end;
  289. width:320px;
  290. display: flex;
  291. .title{
  292. font-size: 26px;
  293. width: 60px;
  294. font-weight: 300;
  295. }
  296. }
  297. }
  298. .patiinfo{
  299. display: flex;
  300. flex-direction:column;
  301. margin-top: 5px;
  302. padding-bottom: 10px;
  303. border-bottom: 1px solid #000;
  304. .r1{
  305. display: flex;
  306. flex-direction:row;
  307. height: 50px;
  308. .row{
  309. font-size: 28px;
  310. font-weight: 400;
  311. margin-right: 30px;
  312. }
  313. }
  314. .r2{
  315. display: flex;
  316. flex-direction:row;
  317. margin-top: 5px;
  318. height: 50px;
  319. .row{
  320. font-size: 28px;
  321. font-weight: 400;
  322. margin-right: 20px;
  323. }
  324. }
  325. .r3{
  326. display: flex;
  327. flex-direction:row;
  328. height: 50px;
  329. margin-top: 5px;
  330. font-size: 28px;
  331. font-weight: 400;
  332. }
  333. }
  334. }
  335. .rp{
  336. display: flex;
  337. flex-direction:column;
  338. margin:0 16px 0;
  339. border-bottom: 1px solid #000;
  340. .title{
  341. font-size: 40px;
  342. }
  343. .lists{
  344. display: flex;
  345. flex-wrap: wrap;
  346. flex-direction: row;
  347. justify-content:flex-start;
  348. align-content:flex-start;
  349. margin-left:80px;
  350. // width: 1000px;
  351. // height: 1800px;
  352. .item{
  353. display: flex;
  354. justify-content:center;
  355. align-items: center;
  356. height:80px;
  357. width: 220px;
  358. margin-right: 40px;
  359. // flex-basis: 25%;
  360. .le{
  361. display: flex;
  362. width: 130px;
  363. font-size: 28px;
  364. }
  365. .rig{
  366. display: flex;
  367. flex-direction:column;
  368. margin-left: 10px;
  369. .up{
  370. width: 80px;
  371. height: 22px;
  372. }
  373. .do{
  374. width: 80px;
  375. height: 22px;
  376. }
  377. }
  378. }
  379. }
  380. .footer{
  381. margin: 20px 0 0 80px;
  382. display: flex;
  383. font-size: 25px;
  384. .js{
  385. display: flex;
  386. margin-right: 100px;
  387. .pies_tips{}
  388. }
  389. .freque{}
  390. }
  391. .rp-tips{
  392. display: flex;
  393. justify-content:flex-end;
  394. font-size: 25px;
  395. }
  396. }
  397. .amountarea{
  398. display: flex;
  399. margin: 10px 16px 0;
  400. padding-bottom: 10px;
  401. border-bottom: 1px solid #000;
  402. .amount{
  403. display: flex;
  404. flex-direction:column;
  405. .r1{
  406. border: 1px solid #000;
  407. font-size: 30px;
  408. width: 400px;
  409. display: flex;
  410. justify-content:center;
  411. align-items: center;
  412. height: 50px;
  413. }
  414. .r2{
  415. display: flex;
  416. justify-content:center;
  417. align-items: center;
  418. font-size: 30px;
  419. height: 50px;
  420. width: 400px;
  421. border-left: 1px solid #000;
  422. border-right: 1px solid #000;
  423. .jyf{
  424. width: 200px;
  425. display: flex;
  426. justify-content:center;
  427. align-items: center;
  428. }
  429. .psf{
  430. border-left: 1px solid #000;
  431. width: 201px;
  432. display: flex;
  433. justify-content:center;
  434. align-items: center;
  435. }
  436. }
  437. .r3{
  438. display: flex;
  439. justify-content:center;
  440. height: 50px;
  441. align-items: center;
  442. font-size: 30px;
  443. border: 1px solid #000;
  444. }
  445. }
  446. .service{
  447. display: flex;
  448. flex-wrap: wrap;
  449. margin-left: 50px;
  450. .kf{
  451. font-size: 30px;
  452. margin-right: 55px;
  453. }
  454. }
  455. }
  456. .comment{
  457. margin: 10px 16px 10px;
  458. font-size: 30px;
  459. line-height: 50px;
  460. display: flex;
  461. }
  462. }
  463. }
  464. </style>