printThree.vue 28KB

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