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

statementPrint.vue 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. <template>
  2. <div>
  3. <template>
  4. <el-button
  5. style="position:fixed;right:25px;z-index:999"
  6. :loading="loading"
  7. size="small"
  8. icon="el-icon-printer"
  9. @click="printThisPage"
  10. type="primary"
  11. >打印
  12. </el-button
  13. >
  14. </template>
  15. <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10215">
  16. <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>
  17. <printOne :info="info" v-else></printOne>
  18. </div>
  19. <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10265">
  20. <!-- <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>-->
  21. <!-- <printOne :info="info" v-else></printOne>-->
  22. <!-- <print-one :info="info" ></print-one>-->
  23. <hospital-settle-print :info="info"></hospital-settle-print>
  24. </div>
  25. <!-- <div class='dialysisPage' style="padding-top:40px;" v-else>-->
  26. <!-- <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>-->
  27. <!-- <printOne :info="info" v-else></printOne>-->
  28. <!-- </div>-->
  29. </div>
  30. </template>
  31. <script>
  32. import { uParseTime } from '@/utils/tools'
  33. import axios from 'axios'
  34. import { getPrivateExpensesOrder } from '@/api/his/his'
  35. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  36. import printOne from './statementTemplate/printOne'
  37. // import printOne from './settlementTemplate/hospitalPrintOne'
  38. import printTwo from './statementTemplate/printTwo'
  39. import { getAllDoctorList, getAllHisPatientList } from '@/api/project/project'
  40. import PrivateChargePrint from '../outpatientCharges/statementTemplate/privateChargePrint'
  41. import HospitalSettlePrint from './settlementTemplate/hospitalSettlePrint'
  42. export default {
  43. name: 'dialysisPrintOrder',
  44. components: {
  45. HospitalSettlePrint,
  46. PrivateChargePrint,
  47. BreadCrumb,
  48. printOne,
  49. printTwo
  50. },
  51. props: {
  52. paramsObj: Object
  53. },
  54. data() {
  55. return {
  56. crumbs: [
  57. { path: false, name: '门诊医生站' },
  58. { path: false, name: '打印' }
  59. ],
  60. record_date: '',
  61. patientTableData: [],
  62. advicePrint: [],
  63. hisPatient: {},
  64. patient: {},
  65. search_input: '',
  66. loading: false,
  67. patient_id: 0,
  68. prescription_id: 0,
  69. ids: '',
  70. info: null,
  71. org_id: ''
  72. }
  73. },
  74. methods: {
  75. printThisPage() {
  76. var ptime = Math.round(new Date().getTime() / 1000)
  77. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  78. const style =
  79. '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}'
  80. printJS({
  81. printable: 'statement-print',
  82. type: 'html',
  83. style: style,
  84. scanStyles: false
  85. })
  86. // if (this.org_template_info.template_id == 1) {
  87. // printJS({
  88. // printable: "dialysis-print-box",
  89. // type: "html",
  90. // style: style,
  91. // scanStyles: false
  92. // });
  93. // }
  94. },
  95. getAllDoctorList() {
  96. getAllDoctorList().then(response => {
  97. if (response.data.state == 1) {
  98. var doctor = response.data.data.doctor
  99. this.doctorList = doctor
  100. }
  101. })
  102. },
  103. getAllHisPatientList() {
  104. const params = {
  105. record_date: this.record_date
  106. }
  107. getAllHisPatientList(params).then(response => {
  108. if (response.data.state == 1) {
  109. this.patientTableData = response.data.data.list
  110. this.patientTableDataTwo = response.data.data.list
  111. console.log('222', this.patientTableData)
  112. let cal_one = 0
  113. let cal_two = 0
  114. for (let i = 0; i < response.data.data.list.length; i++) {
  115. if (response.data.data.list[i].prescription == null || response.data.data.list[i].prescription.length == 0) {
  116. cal_one = cal_one + 1
  117. }
  118. if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
  119. cal_two = cal_two + 1
  120. }
  121. }
  122. // this.$refs.tab.setCurrentRow(this.patientTableData[0])
  123. // console.log(this.patientTableData[0])
  124. // this.choosePatient(this.patientTableData[0])
  125. this.cal_one = cal_one
  126. this.cal_two = cal_two
  127. }
  128. })
  129. },
  130. changePatient(row) {
  131. console.log('row', row)
  132. this.patient_id = row.patient_id
  133. this.record_date = this.record_date
  134. this.prescription_id = this.prescription_id
  135. // var params = {
  136. // patient_id:row.patient_id,
  137. // record_date:this.record_date,
  138. // prescription_id:this.prescription_id,
  139. // }
  140. // getPrescriptionPrint(params).then(response=>{
  141. // if(response.data.state == 1){
  142. // var advicePrint = response.data.data.advicePrint
  143. // console.log("adviceprint",advicePrint)
  144. // this.advicePrint = advicePrint
  145. // // var hisPatient = response.data.data.hisPatient
  146. // // console.log("hispatient",hisPatient)
  147. // // this.hisPatient = hisPatient
  148. // var patient = response.data.data.patient
  149. // console.log("patient",patient)
  150. // this.patient = patient
  151. // var doctorPorject = response.data.data.doctorPorject
  152. // console.log("doctorporject",doctorPorject)
  153. // }
  154. // })
  155. },
  156. searchAction() {
  157. },
  158. getInfo(order_id, balance_accounts_type) {
  159. console.log(balance_accounts_type)
  160. var that = this
  161. if (balance_accounts_type == 2) {
  162. let params = {
  163. id: order_id,
  164. order_id: order_id,
  165. admin_user_id: this.$store.getters.xt_user.user.id
  166. }
  167. getPrivateExpensesOrder(params).then((response) => {
  168. if (response.data.state == 0) {
  169. // this.$message.error(response.data.msg)
  170. return false
  171. } else {
  172. var that = this
  173. that.info = response.data.data.info
  174. that.p_admin = response.data.data.printor_admin
  175. that.charge_admin = response.data.data.charge_admin
  176. that.info['p_admin'] = that.p_admin
  177. that.info['charge_admin'] = that.charge_admin
  178. that.info['order_number'] = response.data.data.order_number
  179. that.info['patient'] = response.data.data.patient
  180. that.info['date'] = response.data.data.date
  181. that.info['number'] = response.data.data.number
  182. that.info['order_infos'] = response.data.data.order_infos
  183. that.info['diagnosis'] = response.data.data.diagnosis
  184. that.info['fixmedins_name'] = response.data.data.org_name
  185. that.info['fixmedins_code'] = response.data.data.org_code
  186. that.info['his'] = response.data.data.his_hospital
  187. // that.info["doctor_code"] = response.data.data.doctor_code;
  188. // that.info["department"] = response.data.data.department;
  189. // that.info["health_card_no"] = response.data.data.health_card_no;
  190. that.info['bed_cost_total'] = response.data.data.bedCostTotal
  191. that.info['bed_cost_self_total'] =
  192. response.data.data.bedCostSelfTotal
  193. that.info['bed_cost_part_self_total'] =
  194. response.data.data.bedCostPartSelfTotal
  195. that.info['operation_cost_total'] =
  196. response.data.data.operationCostTotal
  197. that.info['operation_cost_self_total'] =
  198. response.data.data.operationCostSelfTotal
  199. that.info['operation_cost_part_self_total'] =
  200. response.data.data.operationCostPartSelfTotal
  201. that.info['other_cost_total'] = response.data.data.otherCostTotal
  202. that.info['other_cost_self_total'] =
  203. response.data.data.otherCostSelfTotal
  204. that.info['other_cost_part_self_total'] =
  205. response.data.data.otherCostPartSelfTotal
  206. that.info['material_cost_total'] =
  207. response.data.data.materialCostTotal
  208. that.info['material_cost_self_total'] =
  209. response.data.data.materialCostSelfTotal
  210. that.info['material_cost_part_self_total'] =
  211. response.data.data.materialCostPartSelfTotal
  212. that.info['western_medicine_cost_total'] =
  213. response.data.data.westernMedicineCostTotal
  214. that.info['western_medicine_cost_self_total'] =
  215. response.data.data.westernMedicineCostSelfTotal
  216. that.info['western_medicine_cost_part_self_total'] =
  217. response.data.data.westernMedicineCostPartSelfTotal
  218. that.info['chinese_traditional_medicine_cost_total'] =
  219. response.data.data.chineseTraditionalMedicineCostTotal
  220. that.info['chinese_traditional_medicine_cost_self_total'] =
  221. response.data.data.chineseTraditionalMedicineCostSelfTotal
  222. that.info['chinese_traditional_medicine_cost_part_self_total'] =
  223. response.data.data.chineseTraditionalMedicineCostPartSelfTotal
  224. that.info['check_cost_total'] = response.data.data.checkCostTotal
  225. that.info['check_cost_self_total'] =
  226. response.data.data.checkCostSelfTotal
  227. that.info['check_cost_part_self_total'] =
  228. response.data.data.checkCostPartSelfTotal
  229. that.info['laboratory_cost_total'] =
  230. response.data.data.laboratoryCostTotal
  231. that.info['laboratory_cost_self_total'] =
  232. response.data.data.laboratoryCostSelfTotal
  233. that.info['laboratory_cost_part_self_total'] =
  234. response.data.data.laboratoryCostPartSelfTotal
  235. that.info['treat_cost_total'] = response.data.data.treatCostTotal
  236. that.info['treat_cost_self_total'] =
  237. response.data.data.treatCostSelfTotal
  238. that.info['treat_cost_part_self_total'] =
  239. response.data.data.treatCostPartSelfTotal
  240. that.info['date'] = response.data.data.date
  241. // that.info["number"] = response.data.data.number;
  242. that.info['order_infos'] = response.data.data.order_infos
  243. that.info['diagnosis'] = response.data.data.diagnosis
  244. }
  245. })
  246. } else {
  247. axios.get('http://127.0.0.1:9532/api/settle/query', {
  248. params: {
  249. order_id: order_id,
  250. admin_user_id: this.$store.getters.xt_user.user.id
  251. }
  252. })
  253. .then(function(response) {
  254. if (response.data.state == 0) {
  255. this.$message.error(response.data.msg)
  256. return false
  257. } else {
  258. console.log('logloglog')
  259. console.log(response.data.data.info)
  260. that.info = response.data.data.info
  261. console.log(that.info)
  262. that.p_admin = response.data.data.printor_admin
  263. that.charge_admin = response.data.data.charge_admin
  264. that.order_infos = response.data.data
  265. that.info['p_admin'] = that.p_admin
  266. that.info['charge_admin'] = that.charge_admin
  267. that.info['date'] = response.data.data.date
  268. that.info['number'] = response.data.data.number
  269. that.info['order_infos'] = response.data.data.order_infos
  270. that.info['diagnosis'] = response.data.data.diagnosis
  271. that.info['bed_cost_total'] = response.data.data.bedCostTotal
  272. that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
  273. that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
  274. that.info['operation_cost_total'] = response.data.data.operationCostTotal
  275. that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
  276. that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
  277. that.info['other_cost_total'] = response.data.data.otherCostTotal
  278. that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
  279. that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
  280. that.info['material_cost_total'] = response.data.data.materialCostTotal
  281. that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
  282. that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
  283. that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
  284. that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
  285. that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
  286. that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
  287. that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
  288. that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
  289. that.info['check_cost_total'] = response.data.data.checkCostTotal
  290. that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
  291. that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
  292. that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
  293. that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
  294. that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
  295. that.info['treat_cost_total'] = response.data.data.treatCostTotal
  296. that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
  297. that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
  298. that.info['date'] = response.data.data.date
  299. that.info['number'] = response.data.data.number
  300. that.info['order_infos'] = response.data.data.order_infos
  301. that.info['diagnosis'] = response.data.data.diagnosis
  302. }
  303. })
  304. .catch(function(error) {
  305. })
  306. }
  307. }
  308. },
  309. created() {
  310. this.getInfo(this.paramsObj.order_id, this.paramsObj.balance_accounts_type)
  311. this.org_id = this.$store.getters.xt_user.org_id
  312. },
  313. watch: {
  314. paramsObj: {//深度监听,可监听到对象、数组的变化
  315. handler(val, oldVal) {
  316. this.paramsObj = val
  317. this.getInfo(this.paramsObj.order_id, this.paramsObj.balance_accounts_type)
  318. },
  319. deep: true
  320. }
  321. }
  322. }
  323. </script>
  324. <style>
  325. .dialysis-print-order {
  326. width: 960px;
  327. margin: 0 auto;
  328. }
  329. .dialysis-print-order .order-yy-name {
  330. margin: auto;
  331. text-align: center;
  332. font-size: 20px;
  333. letter-spacing: 5px;
  334. }
  335. .dialysis-print-order .order-title {
  336. margin: auto;
  337. font-weight: 600;
  338. text-align: center;
  339. font-size: 22px;
  340. padding: 10px;
  341. }
  342. .dialysis-print-order .table-box {
  343. width: 100%;
  344. line-height: 23px;
  345. font-size: 14px;
  346. }
  347. .dialysis-print-order .print-table {
  348. width: 100%;
  349. text-align: center;
  350. border-collapse: collapse;
  351. line-height: 40px;
  352. font-size: 14px;
  353. border-color: #000;
  354. }
  355. .dialysis-print-order .print-table-no {
  356. width: 100%;
  357. text-align: center;
  358. border-collapse: collapse;
  359. font-size: 14px;
  360. }
  361. .dialysis-print-order .under-line {
  362. border-bottom: 1px solid #999;
  363. width: 95%;
  364. text-align: center;
  365. margin-left: 2px;
  366. }
  367. .dialysis-print-order .title-box {
  368. text-align: center;
  369. font-size: 16px;
  370. }
  371. .dialysis-print-order .radio-lebel-box {
  372. font-weight: 400;
  373. cursor: pointer;
  374. }
  375. .dialysis-print-order .radio-no {
  376. opacity: 0;
  377. outline: none;
  378. position: absolute;
  379. margin: 0;
  380. width: 0;
  381. height: 0;
  382. z-index: -1;
  383. }
  384. .dialysis-print-order .radio-inner {
  385. white-space: nowrap;
  386. cursor: pointer;
  387. outline: none;
  388. display: inline-block;
  389. line-height: 1;
  390. position: relative;
  391. vertical-align: middle;
  392. }
  393. .dialysis-print-order .radio-fang {
  394. display: inline-block;
  395. position: relative;
  396. border: 1px solid #000;
  397. box-sizing: border-box;
  398. width: 14px;
  399. height: 14px;
  400. background-color: #fff;
  401. z-index: 1;
  402. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  403. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  404. }
  405. .dialysis-print-order .is-checked-radio::after {
  406. content: "√";
  407. font-size: 15px;
  408. }
  409. .dialysis-print-order .print-table-no tr td {
  410. padding: 8px 5px;
  411. line-height: 25px;
  412. }
  413. .dialysis-print-order .print-table tr td {
  414. padding: 1px 1px;
  415. /*line-height: 25px;*/
  416. }
  417. .es-img {
  418. height: 30px;
  419. }
  420. .advice-name {
  421. text-align: left;
  422. }
  423. .advice-children {
  424. display: flex;
  425. }
  426. .title-box-pro {
  427. border: 0 #fff;
  428. line-height: 25px;
  429. height: 25px;
  430. text-align: left;
  431. padding-left: 10px !important;
  432. }
  433. .title-box-pro-tr {
  434. border: 0 #fff;
  435. }
  436. .text-align-left {
  437. text-align: left !important;
  438. padding-left: 10px !important;
  439. font-size: 14px !important;
  440. line-height: 25px;
  441. }
  442. .print-table-tr-new td {
  443. line-height: 20px !important;
  444. }
  445. .border-top-solid {
  446. border: solid 1px #000;
  447. }
  448. .print-template-two tr {
  449. line-height: 30px;
  450. }
  451. .table-box1 {
  452. border: 1px solid #000;
  453. width: 100%;
  454. line-height: 30px;
  455. font-size: 14px;
  456. border-collapse: collapse;
  457. }
  458. .table-box1 tr {
  459. border-bottom: 1px solid #000;
  460. }
  461. </style>
  462. <style lang="scss">
  463. .newContainer {
  464. .dialysisPage::-webkit-scrollbar {
  465. height: 15px;
  466. }
  467. .el-date-editor {
  468. .el-input__inner {
  469. padding-right: 0px;
  470. }
  471. }
  472. .el-table td, .el-table th {
  473. text-align: center;
  474. }
  475. }
  476. .newContainer::-webkit-scrollbar {
  477. height: 15px !important;
  478. }
  479. </style>