Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

printOne.vue 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. <template>
  2. <div id='prescription-print' class="prescription-print">
  3. <div v-if=" this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 9538">
  4. <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
  5. <div class="infoMain">
  6. <div class="infoP">医院(药店)编号:{{org_code}}</div>
  7. <div class="infoP">名称:{{orgname}}</div>
  8. <div class="infoP">医生工号:{{doctor_code}}</div>
  9. <div class="infoP">门诊流水号:{{result.transBody.akc190}}</div>
  10. <div class="infoP">科别:{{全科}}</div>
  11. <div class="infoP">处方单据号:</div>
  12. <div class="infoP">姓名:{{patient_name}}</div>
  13. <div class="infoP">医疗账号:</div>
  14. <div class="infoP">医疗类别:普通</div>
  15. </div>
  16. <div class="chargeBox">
  17. <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
  18. <div class="chargeUl" style="width:20%;">
  19. <p style="width:50%;border-right:1px solid #000;">费用类型</p>
  20. <p style="width:50%;border-right:1px solid #000;">金额</p>
  21. </div>
  22. <div class="chargeUl" style="width:80%;">
  23. <p style="width:40%;border-right:1px solid #000;">明细名称</p>
  24. <p style="width:15%;border-right:1px solid #000;">规格</p>
  25. <p style="width:15%;border-right:1px solid #000;">数量</p>
  26. <p style="width:15%;border-right:1px solid #000;">单价</p>
  27. <p style="width:15%;">金额</p>
  28. </div>
  29. </div>
  30. <div style="display:flex;justify-content: space-between;">
  31. <div style="width:20%;">
  32. <div class="chargeUl" v-for="(item,index) in result.transBody.outputlist2" :key="index">
  33. <p style="width:50%;">{{getItemName(item.aka111)}}</p>
  34. <p style="width:50%;">{{item.bka058}}</p>
  35. </div>
  36. <div class="chargeUl" style="border-top:1px solid #000;">
  37. <p style="width:50%;">费用合计</p>
  38. <p style="width:50%;">{{result.transBody.akc264}}</p>
  39. </div>
  40. <div class="chargeUl" style="border-top:1px solid #000;">
  41. <p style="width:50%;">记账支付</p>
  42. <p style="width:50%;">{{result.transBody.akb068}}</p>
  43. </div>
  44. <div class="chargeUl" style="border-top:1px solid #000;">
  45. <p style="width:50%;">个人账号</p>
  46. <p style="width:50%;">{{result.transBody.akc264}}</p>
  47. </div>
  48. <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
  49. <p style="width:50%;">现金支付</p>
  50. <p style="width:50%;">{{result.transBody.akb067}}</p>
  51. </div>
  52. </div>
  53. <div style="width:80%;display:flex;height:300px;">
  54. <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
  55. <p v-for="(item,i) in name_arr" :key="i" class="chargeP">
  56. {{item}}</p>
  57. </div>
  58. <div style="border-right:1px solid #000;width:15%;text-align:center;">
  59. <p v-for="(item,y) in spec_arr" :key="y" class="chargeP">
  60. {{item}}</p>
  61. </div>
  62. <div style="border-right:1px solid #000;width:15%;text-align:center;">
  63. <p v-for="(item,z) in count_arr" :key="z" class="chargeP">
  64. {{item}}次</p>
  65. </div>
  66. <div style="border-right:1px solid #000;width:15%;text-align:center;">
  67. <p v-for="(item,f) in price_arr" :key="f" class="chargeP">{{item}}</p>
  68. </div>
  69. <div style="width:15%;text-align:center;">
  70. <p v-for="(item,d) in total_arr" :key="d" class="chargeP">{{item}}</p>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="moneyBox">
  76. <p>实收金:{{result.transBody.akc264}}</p>
  77. <p>记账前金额:{{0.00}}</p>
  78. <p>扣款金额:{{0.00}}</p>
  79. <p>记账后金额:{{0.00}}</p>
  80. <p>找赎金:{{0.00}}</p>
  81. </div>
  82. <div class="actionBar">
  83. <div>收费员:{{doctor_name}}</div>
  84. <div>日期:{{this.$route.query.record_date}}</div>
  85. </div>
  86. </div>
  87. <div v-else>
  88. <div class="printTitle">{{orgname}}&nbsp;&nbsp;医药费收据及收费项目清单</div>
  89. <div class="infoMain">
  90. <div class="infoP">医院(药店)编号:</div>
  91. <div class="infoP">名称:{{orgname}}</div>
  92. <div class="infoP">医生工号:</div>
  93. <div class="infoP">门诊流水号:</div>
  94. <div class="infoP">科别:{{list.p_info.departments?list.p_info.departments:''}}</div>
  95. <div class="infoP">处方单据号:</div>
  96. <div class="infoP">姓名:{{patient.name}}</div>
  97. <div class="infoP">医疗账号:</div>
  98. <div class="infoP">医疗类别:普通</div>
  99. </div>
  100. <div class="chargeBox">
  101. <div style="display:flex;justify-content: space-between;border-bottom:1px solid #000;">
  102. <div class="chargeUl" style="width:20%;">
  103. <p style="width:50%;border-right:1px solid #000;">费用类型</p>
  104. <p style="width:50%;border-right:1px solid #000;">金额</p>
  105. </div>
  106. <div class="chargeUl" style="width:80%;" >
  107. <p style="width:40%;border-right:1px solid #000;">明细名称</p>
  108. <p style="width:15%;border-right:1px solid #000;">规格</p>
  109. <p style="width:15%;border-right:1px solid #000;">数量</p>
  110. <p style="width:15%;border-right:1px solid #000;">单价</p>
  111. <p style="width:15%;">金额</p>
  112. </div>
  113. </div>
  114. <div style="display:flex;justify-content: space-between;">
  115. <div style="width:20%;">
  116. <div class="chargeUl" v-for="(item,index) in 1" :key="index">
  117. <p style="width:50%;">材料费</p>
  118. <p style="width:50%;"></p>
  119. </div>
  120. <div class="chargeUl" style="border-top:1px solid #000;">
  121. <p style="width:50%;">费用合计</p>
  122. <p style="width:50%;">{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
  123. </div>
  124. <div class="chargeUl" style="border-top:1px solid #000;">
  125. <p style="width:50%;">记账支付</p>
  126. <p style="width:50%;"></p>
  127. </div>
  128. <div class="chargeUl" style="border-top:1px solid #000;">
  129. <p style="width:50%;">个人账号</p>
  130. <p style="width:50%;"></p>
  131. </div>
  132. <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
  133. <p style="width:50%;">现金支付</p>
  134. <p style="width:50%;">{{list.order_info.psn_cash_pay}}</p>
  135. </div>
  136. </div>
  137. <div style="width:80%;display:flex;height:300px;">
  138. <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
  139. <p v-for="(item,i) in prescription[0].advices" :key="i" class="chargeP">
  140. {{item.advice_name}}</p>
  141. </div>
  142. <div style="border-right:1px solid #000;width:15%;text-align:center;">
  143. <p v-for="(item,y) in prescription[0].advices" :key="y" class="chargeP">
  144. {{item.advice_desc}}</p>
  145. </div>
  146. <div style="border-right:1px solid #000;width:15%;text-align:center;">
  147. <p v-for="(item,z) in prescription[0].advices" :key="z" class="chargeP">
  148. {{item.single_dose}}个</p>
  149. </div>
  150. <div style="border-right:1px solid #000;width:15%;text-align:center;">
  151. <p v-for="(item,f) in prescription[0].advices" :key="f" class="chargeP">{{item.price}}</p>
  152. </div>
  153. <div style="width:15%;text-align:center;">
  154. <p v-for="(item,d) in prescription[0].advices" :key="d" class="chargeP">{{item.single_dose *
  155. item.price}}</p>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="moneyBox">
  161. <p>实收金:{{list.order_info.medfee_sumamt?list.order_info.medfee_sumamt:''}}</p>
  162. <p>记账前金额:{{list.order_info.preselfpay_amt?list.order_info.preselfpay_amt:''}}</p>
  163. <p>扣款金额:</p>
  164. <p>记账后金额:</p>
  165. <p>找赎金:</p>
  166. </div>
  167. <div class="actionBar">
  168. <div>收费员:{{}}</div>
  169. <div>日期:{{this.$route.query.record_date}}</div>
  170. </div>
  171. </div>
  172. </div>
  173. </template>
  174. <script>
  175. import axios from 'axios'
  176. import { getChargePrint } from '@/api/project/project'
  177. export default {
  178. data() {
  179. return {
  180. list: {},
  181. prescription: [],
  182. patient: {},
  183. orgname: '',
  184. result:{},
  185. org_code:"",
  186. patient_name:"",
  187. doctor_code:"",
  188. doctor_name:"",
  189. name_arr:[],
  190. spec_arr:[],
  191. count_arr:[],
  192. price_arr:[],
  193. total_arr:[],
  194. }
  195. },
  196. props: {
  197. paramsObj: Object
  198. },
  199. methods: {
  200. getItemName(number){
  201. switch (number) {
  202. case "01":
  203. return "床位费"
  204. break
  205. case "02":
  206. return "西药费"
  207. break
  208. case "03":
  209. return "中药费"
  210. break
  211. case "04":
  212. return "中成药费"
  213. break
  214. case "05":
  215. return "中草药费"
  216. break
  217. case "06":
  218. return "检查费"
  219. break
  220. case "07":
  221. return "治疗费"
  222. break
  223. case "08":
  224. return "放射费"
  225. break
  226. case "09":
  227. return "手术费"
  228. break
  229. case "10":
  230. return "化验费"
  231. break
  232. case "11":
  233. return "输血费"
  234. break
  235. case "12":
  236. return "输氧费"
  237. break
  238. case "13":
  239. return "其它费"
  240. break
  241. case "14":
  242. return "麻醉费"
  243. break
  244. case "15":
  245. return "材料费"
  246. break
  247. case "16":
  248. return "特殊检查费"
  249. break
  250. case "17":
  251. return "特殊治疗费"
  252. break
  253. case "18":
  254. return "诊疗费(诊查费)"
  255. break
  256. case "19":
  257. return "护理费"
  258. break
  259. case "20":
  260. return "诊金"
  261. break
  262. case "21":
  263. return "检查费(CT)"
  264. break
  265. case "22":
  266. return "检查费(MRT)"
  267. break
  268. case "23":
  269. return "检查费(其他)"
  270. break
  271. case "24":
  272. return "特需服务费"
  273. break
  274. case "25":
  275. return "杂费"
  276. break
  277. case "26":
  278. return "挂号费"
  279. break
  280. }
  281. },
  282. getChargePrint(record_date, patient_id, prescription_id) {
  283. var params = {
  284. record_date: record_date,
  285. patient_id: patient_id,
  286. prescription_id: prescription_id
  287. }
  288. console.log('params', params)
  289. getChargePrint(params).then(response => {
  290. if (response.data.state == 1) {
  291. var list = response.data.data.list
  292. console.log('list9999999999', list)
  293. this.list = list
  294. var prescription = response.data.data.prescription
  295. console.log('prescription', prescription)
  296. this.prescription = prescription
  297. var patient = response.data.data.patient
  298. console.log('patient', patient)
  299. this.patient = patient
  300. var histpatient = response.data.data.hisPatient
  301. console.log('hispatient', histpatient)
  302. }
  303. })
  304. }
  305. },
  306. created() {
  307. if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 9538) {
  308. var form = {
  309. 'order_id': this.paramsObj.order_id,
  310. 'patient_id': this.paramsObj.patient_id,
  311. 'record_time': this.paramsObj.record_date,
  312. 'admin_user_id': this.$store.getters.xt_user.user.id
  313. }
  314. var that = this
  315. axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
  316. params: form
  317. })
  318. .then(function(response) {
  319. if (response.data.state == 0) {
  320. that.$message.error(response.data.msg)
  321. return false
  322. } else {
  323. if (response.data.data.failed_code == -10) {
  324. that.$message.error(response.data.data.msg)
  325. } else {
  326. this.result = response.data.data.res
  327. this.org_code = response.data.data.org_code
  328. this.patient_name = response.data.data.patient_name
  329. this.doctor_code = response.data.data.doctor_code
  330. this.doctor_name = response.data.data.doctor_name
  331. this.name_arr = []
  332. this.spec_arr = []
  333. this.count_arr = []
  334. this.price_arr = []
  335. this.total_arr = []
  336. for(let i = 0;i < this.result.transBody.outputlist1.length; i++){
  337. this.name_arr.push(this.result.transBody.outputlist1[i].ake006)
  338. this.spec_arr.push(this.result.transBody.outputlist1[i].aka074)
  339. this.count_arr.push(this.result.transBody.outputlist1[i].akc226)
  340. this.price_arr.push(this.result.transBody.outputlist1[i].akc225)
  341. this.total_arr.push(this.result.transBody.outputlist1[i].akc264)
  342. }
  343. }
  344. }
  345. })
  346. .catch(function(error) {
  347. })
  348. } else {
  349. var record_date = this.paramsObj.record_date
  350. console.log('record_date', record_date)
  351. var patient_id = this.paramsObj.patient_id
  352. console.log('patient_id', patient_id)
  353. var prescription_id = this.paramsObj.prescription_id
  354. this.getChargePrint(record_date, patient_id, prescription_id)
  355. var xtuser = this.$store.getters.xt_user
  356. this.orgname = xtuser.org.org_name
  357. }
  358. },
  359. watch: {
  360. paramsObj: {//深度监听,可监听到对象、数组的变化
  361. handler(val, oldVal) {
  362. this.paramsObj = val
  363. this.patient_id = this.paramsObj.patient_id
  364. var record_date = this.paramsObj.record
  365. this.record_date = record_date
  366. var prescription_id = this.paramsObj.prescription_id
  367. this.prescription_id = prescription_id
  368. },
  369. deep: true
  370. }
  371. }
  372. }
  373. </script>
  374. <style lang="scss" scoped>
  375. .prescription-print {
  376. -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
  377. -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  378. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  379. margin-bottom: 20px;
  380. padding: 20px 10px;
  381. }
  382. .printTitle {
  383. font-size: 22px;
  384. text-align: center;
  385. font-weight: bold;
  386. }
  387. .infoMain {
  388. display: flex;
  389. flex-wrap: wrap;
  390. padding: 0 10px;
  391. margin-top: 10px;
  392. }
  393. .infoMain .infoP {
  394. width: 33%;
  395. line-height: 24px;
  396. }
  397. .chargeBox {
  398. border: 1px solid #000;
  399. }
  400. .chargeUl {
  401. display: flex;
  402. justify-content: space-between;
  403. text-align: center;
  404. }
  405. .chargeUl p {
  406. height: 40px;
  407. line-height: 40px;
  408. }
  409. .chargeP {
  410. height: 40px;
  411. line-height: 40px;
  412. }
  413. .moneyBox {
  414. display: flex;
  415. justify-content: space-between;
  416. padding: 0 10px;
  417. background: #eee;
  418. height: 40px;
  419. align-items: center;
  420. border: 1px solid #000;
  421. border-top: none
  422. }
  423. .actionBar {
  424. display: flex;
  425. justify-content: space-between;
  426. line-height: 24px;
  427. padding: 0 10px;
  428. }
  429. .actionBar div {
  430. width: 150px;
  431. }
  432. </style>