printThree.vue 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. <template>
  2. <div>
  3. <div v-if="paramsObj.balance_accounts_type != 2" id='prescription-print' class="prescription-print"
  4. style="position: relative;">
  5. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
  6. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10278" src="https://kuyi.shengws.com/beierlog.png" alt="">
  7. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10610" src="https://kuyi.shengws.com/156.jpg" alt="">
  8. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10537" src="https://kuyi.shengws.com/xuwenshou.jpg" alt="">
  9. <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
  10. <div style="display:flex;">
  11. <div>单据号:<span
  12. style="display:inline-block;width:200px;">{{info.order_number ? info.order_number : ''}}</span>
  13. </div>
  14. <div>透析号:<span style="display:inline-block;width:200px;">{{info.patient.dialysis_no ? info.patient.dialysis_no : ''}}</span>
  15. </div>
  16. <div style="margin-left:2px;">电脑号:<span
  17. style="display:inline-block;">{{info.new_order.psn_no ? info.new_order.psn_no : ''}}</span></div>
  18. </div>
  19. <div style="display:flex;justify-content: space-between;">
  20. <div style="display:flex;">
  21. <div>姓名:<span style="display:inline-block;width:50px;">{{info.patient.name ? info.patient.name.indexOf('(') > -1 ? info.patient.name.substring(0,info.patient.name.indexOf('(')) : info.patient.name : ''}}</span>
  22. </div>
  23. <div>性别:<span
  24. style="display:inline-block;width:30px;">{{info.patient.gender == '1' ? '男' : '女'}}</span>
  25. </div>
  26. <div>年龄:<span
  27. style="display:inline-block;width:50px;">{{info.patient.age ? info.patient.age : ''}}岁</span>
  28. </div>
  29. <div>费别:<span style="display:inline-block;min-width:80px;">医保</span>
  30. </div>
  31. <div>收费日期:<span style="display:inline-block;width:100px;">{{info.new_order.setl_time ? info.new_order.setl_time.split(' ')[0] : ''}}</span>
  32. </div>
  33. </div>
  34. <div style="float:right">金额单位:元</div>
  35. </div>
  36. <div style="min-height: 300px;">
  37. <table border='1' style="width:100%;" cellspacing="0">
  38. <tr>
  39. <td width="70">类别</td>
  40. <td>项目</td>
  41. <td min-width="180" style="min-width:60px;">规格</td>
  42. <td width="40">单位</td>
  43. <td width="40">数量</td>
  44. <td width="60">单价</td>
  45. <td width="70">总额</td>
  46. <td width="130">小计</td>
  47. </tr>
  48. <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
  49. <tr v-for="(subItem,index) in item.details" :key="index">
  50. <td>
  51. <span v-if="item.type == 1">药品费</span>
  52. <span v-if="item.type == 2">诊疗费</span>
  53. <span v-if="item.type == 3">耗材费</span>
  54. <span v-if="item.type == 4">诊疗费</span>
  55. </td>
  56. <td>
  57. <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
  58. <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
  59. <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
  60. <span v-if="item.type == 4">{{ subItem.project.project.team_name }}</span>
  61. </td>
  62. <td>
  63. <span v-if="item.type == 1"><span
  64. v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
  65. <span v-if="item.type == 2"></span>
  66. <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
  67. <span v-if="item.type == 4"></span>
  68. </td>
  69. <td>
  70. <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
  71. <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
  72. <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
  73. <span v-if="item.type == 4"></span>
  74. </td>
  75. <td>
  76. <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
  77. <span v-if="item.type == 2">{{ subItem.project.count }}</span>
  78. <span v-if="item.type == 3">{{ subItem.project.count }}</span>
  79. <span v-if="item.type == 4"></span>
  80. </td>
  81. <td>
  82. <span v-if="item.type == 1">{{ subItem.pric.toFixed(2) }}</span>
  83. <span v-if="item.type == 2">{{ subItem.pric.toFixed(2) }}</span>
  84. <span v-if="item.type == 3">{{ subItem.pric.toFixed(2) }}</span>
  85. <span v-if="item.type == 4">{{subItem.Total}}</span>
  86. </td>
  87. <td>
  88. <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
  89. <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
  90. <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
  91. <span v-if="item.type == 4">{{subItem.Total}}</span>
  92. <!--<span v-if="item.type == 4"></span>-->
  93. </td>
  94. <td :rowspan="item.details.length" v-if="index == 0"
  95. style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}
  96. </td>
  97. </tr>
  98. </div>
  99. <tr>
  100. <td colspan="7">
  101. <div style="display:flex;flez-wrap:wrap;">
  102. <div style="width:33%;" v-for="(item,index) in info.new_detail_list" :key="index">
  103. <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
  104. <span v-if="item.type == 2">诊疗费: {{ item.total.toFixed(2) }}</span>
  105. <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
  106. <span v-if="item.type == 4">诊疗费: {{ item.total.toFixed(2) }}</span>
  107. <!--<span v-if="item.type == 4">检验费: {{ item.total.toFixed(4) }}</span>-->
  108. </div>
  109. </div>
  110. </td>
  111. <td>合计: {{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</td>
  112. </tr>
  113. <tr>
  114. <td colspan="7">
  115. <div style="display:flex;flez-wrap:wrap;margin-bottom:10px;font-size:16px;">
  116. <div style="width:33%;">医疗费总额:{{info.medfee_sumamt?info.medfee_sumamt:info.new_order.medfee_sumamt}}元</div>
  117. <div style="width:33%;">基金支付金额:{{ (info.new_order.hifp_pay + info.new_order.maf_pay + info.new_order.hifmi_pay + info.new_order.hifob_pay).toFixed(2)}}元</div>
  118. <div style="width:33%;">个人账户支付金额:{{info.acct_pay?info.acct_pay:info.new_order.acct_pay}}元</div>
  119. </div>
  120. <div style="display:flex;flez-wrap:wrap;font-size:16px;">
  121. <div style="width:33%;">医疗救助基金金额:{{info.maf_pay?info.maf_pay:info.new_order.maf_pay}}元</div>
  122. <div style="width:33%;">个人支付金额:{{ info.new_order.psn_cash_pay}}元</div>
  123. <div style="width:33%;">个人账户金额:{{info.new_order.balc}}元</div>
  124. </div>
  125. <!-- <div style="display:flex;flez-wrap:wrap;font-size:16px;margin-top: 10px">-->
  126. <!--&lt;!&ndash; <div style="width:33%;">基金统筹支付金额:{{info.hifp_pay?info.hifp_pay:info.new_order.hifp_pay}}元</div>&ndash;&gt;-->
  127. <!-- </div>-->
  128. <div style="display:flex;flez-wrap:wrap;font-size:16px;">
  129. <div style="width:33%;">公务员医疗补助:{{info.new_order.cvlserv_pay?info.new_order.cvlserv_pay:0}}元</div>
  130. <div style="width:33%;">企业补充医疗保险基金支出:{{info.new_order.cvlserv_pay?info.new_order.cvlserv_pay:0}}元</div>
  131. </div>
  132. </td>
  133. <td style="font-size:16px;">合计:{{info.new_order.medfee_sumamt}}元</td>
  134. </tr>
  135. </table>
  136. </div>
  137. <div style="float:right;margin:10px 0;display:flex;">
  138. <div>操作人:<span style="width:100px;display:inline-block;">{{info.p_admin.user_name}}</span></div>
  139. <div>操作日期:<span style="width:100px;display:inline-block;">{{info.new_order.setl_time ? info.new_order.setl_time.split(' ')[0] : ''}}</span>
  140. </div>
  141. </div>
  142. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
  143. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10278" src="https://kuyi.shengws.com/bailinbeier.png" alt="">
  144. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10610"src="https://kuyi.shengws.com/157.jpg" alt="">
  145. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10537"src="https://kuyi.shengws.com/xuwenwei.jpg" alt="">
  146. </div>
  147. <div v-else id='prescription-print' class="prescription-print" style="position: relative;">
  148. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/bltotle.jpg" alt="">
  149. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id == 10278" src="https://kuyi.shengws.com/beierlog.png" alt="">
  150. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10610" src="https://kuyi.shengws.com/156.jpg" alt="">
  151. <img style="width:100%;height:80px" v-if="$store.getters.xt_user.org_id==10537" src="https://kuyi.shengws.com/xuwenshou.jpg" alt="">
  152. <div class="printTitle" style="position: absolute;left: 40%;top: 50px;">门诊收费清单</div>
  153. <div style="display:flex;">
  154. <div>单据号:<span style="display:inline-block;width:200px;">{{balanceAccounts.order ? balanceAccounts.order.mdtrt_id : ''}}</span>
  155. </div>
  156. <div>透析号:<span style="display:inline-block;width:200px;">{{balanceAccounts.patient ? balanceAccounts.patient.dialysis_no : ''}}</span>
  157. </div>
  158. <div>电脑号:<span style="display:inline-block;width:80px;"></span></div>
  159. </div>
  160. <div style="display:flex;justify-content: space-between;">
  161. <div style="display:flex;">
  162. <div>姓名:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.name.indexOf('(') > -1 ? balanceAccounts.patient.name.substring(0,balanceAccounts.patient.name.indexOf('(')) : balanceAccounts.patient.name : ''}}</span>
  163. </div>
  164. <div>性别:<span style="display:inline-block;width:30px;">{{balanceAccounts.patient && balanceAccounts.patient.gender == '1' ? '男' : '女'}}</span>
  165. </div>
  166. <div>年龄:<span style="display:inline-block;width:50px;">{{balanceAccounts.patient ? balanceAccounts.patient.age : ''}}岁</span>
  167. </div>
  168. <div>费别:<span style="display:inline-block;width:80px;">自费</span>
  169. </div>
  170. <div>收费日期:<span style="display:inline-block;width:100px;">{{getTime(balanceAccounts.order.settle_accounts_date,"{y}-{m}-{d}")?getTime(balanceAccounts.order.settle_accounts_date,'{y}-{m}-{d}'):''}}</span>
  171. </div>
  172. </div>
  173. <div style="float:right">金额单位:元</div>
  174. </div>
  175. <div style="min-height: 300px;">
  176. <table border='1' style="width:100%;" cellspacing="0">
  177. <tr>
  178. <td width="70">类别</td>
  179. <td>项目</td>
  180. <td min-width="180" style="min-width:60px;">规格</td>
  181. <td width="40">单位</td>
  182. <td width="40">数量</td>
  183. <td width="60">单价</td>
  184. <td width="70">总额</td>
  185. <td width="130">小计</td>
  186. </tr>
  187. <div v-for="(item,i) in balanceAccounts.new_detail_list" :key="i"
  188. style="width:100%;display: table-row-group;">
  189. <tr v-for="(subItem,index) in item.details" :key="index">
  190. <td>
  191. <span v-if="item.type == 1">药品费</span>
  192. <span v-if="item.type == 2">诊疗费</span>
  193. <span v-if="item.type == 3">耗材费</span>
  194. <!-- <span v-if="item.type == 4">诊疗费</span>-->
  195. </td>
  196. <td>
  197. <span v-if="item.type == 1">{{ subItem.advice.advice_name }}</span>
  198. <span v-if="item.type == 2">{{ subItem.project.project.project_name }}</span>
  199. <span v-if="item.type == 3">{{ subItem.project.good_info.good_name }}</span>
  200. <!-- <span v-if="item.type == 4">{{ subItem.Name }}</span>-->
  201. </td>
  202. <td>
  203. <span v-if="item.type == 1"><span
  204. v-if="subItem.advice.drug.min_unit != subItem.advice.drug.dose_unit">{{subItem.advice.drug.dose}}{{subItem.advice.drug.dose_unit}}&nbsp;* &nbsp;</span>{{subItem.advice.drug.min_number}}{{subItem.advice.drug.min_unit}}/{{subItem.advice.drug.max_unit}}</span>
  205. <span v-if="item.type == 2"></span>
  206. <span v-if="item.type == 3">{{ subItem.project.good_info.specification_name }}</span>
  207. <!-- <span v-if="item.type == 4"></span>-->
  208. </td>
  209. <td>
  210. <span v-if="item.type == 1">{{ subItem.advice.drug.prescribing_number_unit }}</span>
  211. <span v-if="item.type == 2">{{ subItem.project.unit }}</span>
  212. <span v-if="item.type == 3">{{ subItem.project.unit }}</span>
  213. <!-- <span v-if="item.type == 4"></span>-->
  214. </td>
  215. <td>
  216. <span v-if="item.type == 1">{{ subItem.advice.prescribing_number }}</span>
  217. <span v-if="item.type == 2">{{ subItem.project.count }}</span>
  218. <span v-if="item.type == 3">{{ subItem.project.count }}</span>
  219. <!-- <span v-if="item.type == 4">1</span>-->
  220. </td>
  221. <td>
  222. <span v-if="item.type == 1">{{ subItem.pric }}</span>
  223. <span v-if="item.type == 2">{{ subItem.pric }}</span>
  224. <span v-if="item.type == 3">{{ subItem.pric }}</span>
  225. <!-- <span v-if="item.type == 4">{{subItem.Total}}</span>-->
  226. </td>
  227. <td>
  228. <span v-if="item.type == 1">{{ (subItem.advice.prescribing_number * subItem.pric).toFixed(2) }}</span>
  229. <span v-if="item.type == 2">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
  230. <span v-if="item.type == 3">{{ (subItem.project.count * subItem.pric).toFixed(2) }}</span>
  231. <!-- <span v-if="item.type == 4">{{subItem.Total}}</span>-->
  232. </td>
  233. <td :rowspan="item.details.length" v-if="index == 0"
  234. style="vertical-align: middle;text-align: center;">{{ item.total.toFixed(2) }}
  235. </td>
  236. </tr>
  237. </div>
  238. <tr>
  239. <td colspan="7">
  240. <div style="display:flex;flez-wrap:wrap;">
  241. <div style="width:33%;" v-for="(item,index) in balanceAccounts.new_detail_list"
  242. :key="index">
  243. <span v-if="item.type == 1">药品费: {{ item.total.toFixed(2) }}</span>
  244. <span v-if="item.type == 2">诊疗费: {{ item.total.toFixed(2) }}</span>
  245. <span v-if="item.type == 3">耗材费: {{ item.total.toFixed(2) }}</span>
  246. <!-- <span v-if="item.type == 4">诊疗费: {{ item.total.toFixed(2) }}</span>-->
  247. </div>
  248. </div>
  249. </td>
  250. <td>合计: {{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
  251. </tr>
  252. <tr>
  253. <td colspan="7">
  254. <div style="display:flex;flez-wrap:wrap;">
  255. <div style="width:33%;">
  256. 医疗费总额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元
  257. </div>
  258. <div style="width:33%;">基金支付金额:0元</div>
  259. <div style="width:33%;">个人账户支付金额:0元</div>
  260. </div>
  261. <div style="display:flex;flez-wrap:wrap;">
  262. <div style="width:33%;">医疗救助基金金额:0元</div>
  263. <div style="width:33%;">
  264. 个人支付金额:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元
  265. </div>
  266. <div style="width:33%;">个人账户金额:0元</div>
  267. </div>
  268. </td>
  269. <td>合计:{{balanceAccounts.order.medfee_sumamt?balanceAccounts.order.medfee_sumamt:0}}元</td>
  270. </tr>
  271. </table>
  272. </div>
  273. <div style="float:right;margin:10px 0;display:flex;">
  274. <div>操作人:<span
  275. style="width:100px;display:inline-block;">{{balanceAccounts.current_admin.user_name}}</span>
  276. </div>
  277. <div>操作日期:<span style="width:100px;display:inline-block;">{{getTime(new Date(),'{y}-{m}-{d}')?getTime(new Date(),'{y}-{m}-{d}'):''}}</span>
  278. </div>
  279. </div>
  280. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10138" src="https://kuyi.shengws.com/bailin/blend.jpg" alt="">
  281. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10278"src="https://kuyi.shengws.com/bailinbeier.png" alt="">
  282. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10610"src="https://kuyi.shengws.com/157.jpg" alt="">
  283. <img style="width:100%;" v-if="$store.getters.xt_user.org_id == 10537"src="https://kuyi.shengws.com/xuwenwei.jpg" alt="">
  284. </div>
  285. </div>
  286. </template>
  287. <script>
  288. import { getChargePrint } from '@/api/project/project'
  289. import { uParseTime } from '@/utils/tools'
  290. export default {
  291. data() {
  292. return {
  293. list: {},
  294. prescription: [],
  295. patient: {},
  296. orgname: '',
  297. result: {},
  298. org_code: '',
  299. patient_name: '',
  300. doctor_code: '',
  301. doctor_name: '',
  302. name_arr: [],
  303. spec_arr: [],
  304. count_arr: [],
  305. price_arr: [],
  306. total_arr: []
  307. }
  308. },
  309. props: {
  310. paramsObj: Object,
  311. info: Object,
  312. balanceAccounts: Object
  313. },
  314. methods: {
  315. getName(list) {
  316. let new_list = []
  317. for (let i = 0; i < list.length; i++) {
  318. if (list[i].aac031 == '1') {
  319. new_list.push(list[i])
  320. }
  321. }
  322. switch (new_list[0].bcc334) {
  323. case 'A31001':
  324. return '深圳医保1档'
  325. break
  326. case 'A31002':
  327. return '深圳医保2档'
  328. break
  329. case 'A31003':
  330. return '深圳医保3档'
  331. break
  332. case 'A31004':
  333. return '二档(少儿)'
  334. break
  335. case 'A31005':
  336. return '学生二档'
  337. break
  338. case 'A31006':
  339. return '大学生二档'
  340. break
  341. case 'A32001':
  342. return '在职公务员'
  343. break
  344. case 'A32002':
  345. return '在职驻深公务员'
  346. break
  347. case 'A39301':
  348. return '家属统筹医疗'
  349. break
  350. case 'A41001':
  351. return '工伤在职'
  352. break
  353. case 'A51001':
  354. return '生育在职'
  355. break
  356. case 'A52001':
  357. return '生育医疗一档'
  358. break
  359. case 'A52002':
  360. return '生育医疗一档'
  361. break
  362. case 'C31001':
  363. return '一档医疗退休'
  364. break
  365. case 'C31002':
  366. return '二档医疗退休'
  367. break
  368. }
  369. },
  370. getValue(item) {
  371. return this.getItemName(item.aka111) + ': ' + item.bka058 + '元'
  372. },
  373. getItemName(number) {
  374. switch (number) {
  375. case '01':
  376. return '床位费'
  377. break
  378. case '02':
  379. return '西药费'
  380. break
  381. case '03':
  382. return '中药费'
  383. break
  384. case '04':
  385. return '中成药费'
  386. break
  387. case '05':
  388. return '中草药费'
  389. break
  390. case '06':
  391. return '检查费'
  392. break
  393. case '07':
  394. return '治疗费'
  395. break
  396. case '08':
  397. return '放射费'
  398. break
  399. case '09':
  400. return '手术费'
  401. break
  402. case '10':
  403. return '化验费'
  404. break
  405. case '11':
  406. return '输血费'
  407. break
  408. case '12':
  409. return '输氧费'
  410. break
  411. case '13':
  412. return '其它费'
  413. break
  414. case '14':
  415. return '麻醉费'
  416. break
  417. case '15':
  418. return '材料费'
  419. break
  420. case '16':
  421. return '特殊检查费'
  422. break
  423. case '17':
  424. return '特殊治疗费'
  425. break
  426. case '18':
  427. return '诊疗费(诊查费)'
  428. break
  429. case '19':
  430. return '护理费'
  431. break
  432. case '20':
  433. return '诊金'
  434. break
  435. case '21':
  436. return '检查费(CT)'
  437. break
  438. case '22':
  439. return '检查费(MRT)'
  440. break
  441. case '23':
  442. return '检查费(其他)'
  443. break
  444. case '24':
  445. return '特需服务费'
  446. break
  447. case '25':
  448. return '杂费'
  449. break
  450. case '26':
  451. return '挂号费'
  452. break
  453. case '99':
  454. return '诊疗费'
  455. break
  456. }
  457. },
  458. getChargePrint(record_date, patient_id, prescription_id) {
  459. var params = {
  460. record_date: record_date,
  461. patient_id: patient_id,
  462. prescription_id: prescription_id
  463. }
  464. console.log('params', params)
  465. getChargePrint(params).then(response => {
  466. if (response.data.state == 1) {
  467. var list = response.data.data.list
  468. console.log('list9999999999', list)
  469. this.list = list
  470. var prescription = response.data.data.prescription
  471. console.log('prescription', prescription)
  472. this.prescription = prescription
  473. var patient = response.data.data.patient
  474. console.log('patient', patient)
  475. this.patient = patient
  476. var histpatient = response.data.data.hisPatient
  477. console.log('hispatient', histpatient)
  478. }
  479. })
  480. },
  481. getTime(value, temp) {
  482. if (value != undefined) {
  483. return uParseTime(value, temp)
  484. }
  485. return ''
  486. }
  487. },
  488. mounted() {
  489. this.org_id = this.$store.getters.xt_user.org_id
  490. var record_date = this.paramsObj.record_date
  491. console.log('record_date', record_date)
  492. var patient_id = this.paramsObj.patient_id
  493. console.log('patient_id', patient_id)
  494. var prescription_id = this.paramsObj.prescription_id
  495. this.getChargePrint(record_date, patient_id, prescription_id)
  496. var xtuser = this.$store.getters.xt_user
  497. this.orgname = xtuser.org.org_name
  498. },
  499. watch: {
  500. paramsObj: {//深度监听,可监听到对象、数组的变化
  501. handler(val, oldVal) {
  502. this.paramsObj = val
  503. this.patient_id = this.paramsObj.patient_id
  504. var record_date = this.paramsObj.record
  505. this.record_date = record_date
  506. var prescription_id = this.paramsObj.prescription_id
  507. this.prescription_id = prescription_id
  508. },
  509. deep: true
  510. }
  511. }
  512. }
  513. </script>
  514. <style lang="scss" scoped>
  515. .prescription-print {
  516. -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
  517. -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  518. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  519. margin-bottom: 20px;
  520. padding: 20px 10px;
  521. }
  522. .printTitle {
  523. font-size: 22px;
  524. text-align: center;
  525. font-weight: bold;
  526. }
  527. .infoMain {
  528. display: flex;
  529. flex-wrap: wrap;
  530. padding: 0 10px;
  531. margin-top: 10px;
  532. }
  533. .infoMain .infoP {
  534. width: 33%;
  535. line-height: 24px;
  536. }
  537. .chargeBox {
  538. border: 1px solid #000;
  539. }
  540. .chargeUl {
  541. display: flex;
  542. justify-content: space-between;
  543. text-align: center;
  544. }
  545. .chargeUl p {
  546. height: 40px;
  547. line-height: 40px;
  548. }
  549. .chargeP {
  550. height: 40px;
  551. line-height: 40px;
  552. }
  553. .moneyBox {
  554. display: flex;
  555. justify-content: space-between;
  556. padding: 0 10px;
  557. background: #eee;
  558. height: 40px;
  559. align-items: center;
  560. border: 1px solid #000;
  561. border-top: none
  562. }
  563. .actionBar {
  564. display: flex;
  565. justify-content: space-between;
  566. line-height: 24px;
  567. padding: 0 10px;
  568. }
  569. .actionBar div {
  570. width: 150px;
  571. }
  572. table {
  573. td {
  574. padding: 10px 5px;
  575. }
  576. }
  577. </style>