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

print.vue 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <template>
  2. <div>
  3. <div class="dialysisPage" style="padding-top: 40px">
  4. <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
  5. <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188" v-bind:childResponse="childResponse"
  6. :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
  7. :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
  8. :prescription_id="prescription_id"></printOne>
  9. <print-ten-one
  10. v-if="org_id == 10188" v-bind:childResponse="childResponse"
  11. :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
  12. :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
  13. :prescription_id="prescription_id"
  14. ></print-ten-one>
  15. <prinSeven v-if="org_id == 10375 "
  16. v-bind:childResponse="childResponse"
  17. :advicePrint="advicePrint"
  18. :ids="ids"
  19. :patient="patient"
  20. :hisPatient="hisPatient"
  21. :doctorPorject="doctorPorject"
  22. :patient_id="patient_id"
  23. :record_date="record_date"
  24. :prescription_id="prescription_id">
  25. </prinSeven>
  26. <printFour
  27. v-if="org_id == 10088"
  28. v-bind:childResponse="childResponse"
  29. :advicePrint="advicePrint"
  30. :ids="ids"
  31. :patient="patient"
  32. :hisPatient="hisPatient"
  33. :doctorPorject="doctorPorject"
  34. :patient_id="patient_id"
  35. :record_date="record_date"
  36. :prescription_id="prescription_id"
  37. ></printFour>
  38. <printFive
  39. v-if="org_id == 10215"
  40. v-bind:childResponse="childResponse"
  41. :advicePrint="advicePrint"
  42. :ids="ids"
  43. :patient="patient"
  44. :hisPatient="hisPatient"
  45. :doctorPorject="doctorPorject"
  46. :patient_id="patient_id"
  47. :record_date="record_date"
  48. :prescription_id="prescription_id"
  49. :his_patient_id ="his_patient_id"
  50. ></printFive>
  51. <!-- <printSix v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printSix> -->
  52. </div>
  53. <div v-else-if="org_id == 10243 || org_id == 9675">
  54. <printSix
  55. v-bind:childResponse="childResponse"
  56. :advicePrint="advicePrint"
  57. :ids="ids"
  58. :patient="patient"
  59. :hisPatient="hisPatient"
  60. :doctorPorject="doctorPorject"
  61. :patient_id="patient_id"
  62. :record_date="record_date"
  63. :prescription_id="prescription_id"
  64. ></printSix>
  65. </div>
  66. <div v-else>
  67. <printThree
  68. :advicePrint="advicePrint"
  69. :ids="ids"
  70. :patient="patient"
  71. :newHisPatient="newHisPatient"
  72. :doctorPorject="doctorPorject"
  73. :patient_id="patient_id"
  74. :record_date="record_date"
  75. :prescription_id="prescription_id"
  76. ></printThree>
  77. </div>
  78. </div>
  79. </div>
  80. </template>
  81. <script>
  82. import { uParseTime } from "@/utils/tools";
  83. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  84. import print from "print-js";
  85. import printOne from "./template/printOne";
  86. import printThree from "./template/printThree";
  87. import printFour from "./template/printFour";
  88. import printFive from "./template/printFive";
  89. import printSix from "./template/printSix";
  90. import prinSeven from './template/prinSeven.vue'
  91. import {
  92. getAllDoctorList,
  93. getAllHisPatientList,
  94. } from "@/api/project/project";
  95. import PrintTen from '../outpatientCharges/invoiceTemplate/printTen'
  96. import PrintTenOne from './template/printTenOne.vue'
  97. export default {
  98. name: "dialysisPrintOrder",
  99. components: {
  100. PrintTenOne,
  101. PrintTen,
  102. BreadCrumb,
  103. printOne,
  104. printThree,
  105. printFour,
  106. printFive,
  107. printSix,
  108. prinSeven
  109. },
  110. props: {
  111. paramsObj: Object,
  112. newHisPatient:Object,
  113. },
  114. data() {
  115. return {
  116. crumbs: [
  117. { path: false, name: "门诊医生站" },
  118. { path: false, name: "打印" },
  119. ],
  120. record_date: "",
  121. patientTableData: [],
  122. advicePrint: [],
  123. hisPatient: {},
  124. patient: {},
  125. doctorPorject: {},
  126. search_input: "",
  127. loading: false,
  128. patient_id: "",
  129. his_patient_id:"",
  130. prescription_id: "",
  131. ids: "",
  132. paramsObj: {},
  133. org_id: "",
  134. };
  135. },
  136. methods: {
  137. printThisPage() {
  138. var ptime = Math.round(new Date().getTime() / 1000);
  139. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  140. if (this.org_id == 10138 || this.org_id == 10278) {
  141. setTimeout(() => {
  142. const style =
  143. "@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:350px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 90%;}}}";
  144. printJS({
  145. printable: "prescriptionPrint1",
  146. type: "html",
  147. style: style,
  148. scanStyles: false,
  149. });
  150. }, 500);
  151. }
  152. else {
  153. const style =
  154. "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:100px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;position: relative;}.drugsBox div{line-height: 20px;width:80%} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBoxxxx{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .doctorBoxxxx p {margin-left: auto} .actionBar p{width:150px;}}";
  155. printJS({
  156. printable: "prescriptionPrint",
  157. type: "html",
  158. style: style,
  159. scanStyles: false,
  160. });
  161. }
  162. // if (this.org_template_info.template_id == 1) {
  163. // printJS({
  164. // printable: "dialysis-print-box",
  165. // type: "html",
  166. // style: style,
  167. // scanStyles: false
  168. // });
  169. // }
  170. },
  171. getAllDoctorList() {
  172. getAllDoctorList().then((response) => {
  173. if (response.data.state == 1) {
  174. var doctor = response.data.data.doctor;
  175. this.doctorList = doctor;
  176. }
  177. });
  178. },
  179. getAllHisPatientList() {
  180. const params = {
  181. record_date: this.record_date,
  182. };
  183. getAllHisPatientList(params).then((response) => {
  184. if (response.data.state == 1) {
  185. this.patientTableData = response.data.data.list;
  186. this.patientTableDataTwo = response.data.data.list;
  187. let cal_one = 0;
  188. let cal_two = 0;
  189. for (let i = 0; i < response.data.data.list.length; i++) {
  190. if (
  191. response.data.data.list[i].prescription == null ||
  192. response.data.data.list[i].prescription.length == 0
  193. ) {
  194. cal_one = cal_one + 1;
  195. }
  196. if (
  197. response.data.data.list[i].prescription != null &&
  198. response.data.data.list[i].prescription.length > 0
  199. ) {
  200. cal_two = cal_two + 1;
  201. }
  202. }
  203. // this.$refs.tab.setCurrentRow(this.patientTableData[0])
  204. // console.log(this.patientTableData[0])
  205. // this.choosePatient(this.patientTableData[0])
  206. this.cal_one = cal_one;
  207. this.cal_two = cal_two;
  208. }
  209. });
  210. },
  211. changePatient(row) {
  212. this.patient_id = row.patient_id;
  213. this.record_date = this.record_date;
  214. this.prescription_id = this.prescription_id;
  215. this.his_patient_id = row.his_patient_id
  216. },
  217. searchAction() {},
  218. },
  219. created() {
  220. this.record_date = this.paramsObj.record;
  221. this.prescription_id = this.paramsObj.prescription_id;
  222. this.patient_id = this.paramsObj.patient_id;
  223. this.ids = this.paramsObj.ids;
  224. this.org_id = this.$store.getters.xt_user.org_id;
  225. this.his_patient_id = this.paramsObj.his_patient_id;
  226. this.getAllDoctorList();
  227. this.getAllHisPatientList(this.record_date);
  228. },
  229. watch: {
  230. paramsObj: {
  231. //深度监听,可监听到对象、数组的变化
  232. handler(val, oldVal) {
  233. this.paramsObj = val;
  234. this.patient_id = this.paramsObj.patient_id;
  235. this.his_patient_id = this.paramsObj.his_patient_id;
  236. var record_date = this.paramsObj.record;
  237. this.record_date = record_date;
  238. var prescription_id = this.paramsObj.prescription_id;
  239. this.prescription_id = prescription_id;
  240. this.ids = this.paramsObj.ids;
  241. },
  242. deep: true,
  243. },
  244. },
  245. };
  246. </script>
  247. <style>
  248. .dialysis-print-order {
  249. width: 960px;
  250. margin: 0 auto;
  251. }
  252. .dialysis-print-order .order-yy-name {
  253. margin: auto;
  254. text-align: center;
  255. font-size: 20px;
  256. letter-spacing: 5px;
  257. }
  258. .dialysis-print-order .order-title {
  259. margin: auto;
  260. font-weight: 600;
  261. text-align: center;
  262. font-size: 22px;
  263. padding: 10px;
  264. }
  265. .dialysis-print-order .table-box {
  266. width: 100%;
  267. line-height: 23px;
  268. font-size: 14px;
  269. }
  270. .dialysis-print-order .print-table {
  271. width: 100%;
  272. text-align: center;
  273. border-collapse: collapse;
  274. line-height: 40px;
  275. font-size: 14px;
  276. border-color: #000;
  277. }
  278. .dialysis-print-order .print-table-no {
  279. width: 100%;
  280. text-align: center;
  281. border-collapse: collapse;
  282. font-size: 14px;
  283. }
  284. .dialysis-print-order .under-line {
  285. border-bottom: 1px solid #999;
  286. width: 95%;
  287. text-align: center;
  288. margin-left: 2px;
  289. }
  290. .dialysis-print-order .title-box {
  291. text-align: center;
  292. font-size: 16px;
  293. }
  294. .dialysis-print-order .radio-lebel-box {
  295. font-weight: 400;
  296. cursor: pointer;
  297. }
  298. .dialysis-print-order .radio-no {
  299. opacity: 0;
  300. outline: none;
  301. position: absolute;
  302. margin: 0;
  303. width: 0;
  304. height: 0;
  305. z-index: -1;
  306. }
  307. .dialysis-print-order .radio-inner {
  308. white-space: nowrap;
  309. cursor: pointer;
  310. outline: none;
  311. display: inline-block;
  312. line-height: 1;
  313. position: relative;
  314. vertical-align: middle;
  315. }
  316. .dialysis-print-order .radio-fang {
  317. display: inline-block;
  318. position: relative;
  319. border: 1px solid #000;
  320. box-sizing: border-box;
  321. width: 14px;
  322. height: 14px;
  323. background-color: #fff;
  324. z-index: 1;
  325. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  326. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  327. }
  328. .dialysis-print-order .is-checked-radio::after {
  329. content: "√";
  330. font-size: 15px;
  331. }
  332. .dialysis-print-order .print-table-no tr td {
  333. padding: 8px 5px;
  334. line-height: 25px;
  335. }
  336. .dialysis-print-order .print-table tr td {
  337. padding: 1px 1px;
  338. /*line-height: 25px;*/
  339. }
  340. .es-img {
  341. height: 30px;
  342. }
  343. .advice-name {
  344. text-align: left;
  345. }
  346. .advice-children {
  347. display: flex;
  348. }
  349. .title-box-pro {
  350. border: 0 #fff;
  351. line-height: 25px;
  352. height: 25px;
  353. text-align: left;
  354. padding-left: 10px !important;
  355. }
  356. .title-box-pro-tr {
  357. border: 0 #fff;
  358. }
  359. .text-align-left {
  360. text-align: left !important;
  361. padding-left: 10px !important;
  362. font-size: 14px !important;
  363. line-height: 25px;
  364. }
  365. .print-table-tr-new td {
  366. line-height: 20px !important;
  367. }
  368. .border-top-solid {
  369. border: solid 1px #000;
  370. }
  371. .print-template-two tr {
  372. line-height: 30px;
  373. }
  374. .table-box1 {
  375. border: 1px solid #000;
  376. width: 100%;
  377. line-height: 30px;
  378. font-size: 14px;
  379. border-collapse: collapse;
  380. }
  381. .table-box1 tr {
  382. border-bottom: 1px solid #000;
  383. }
  384. </style>
  385. <style lang="scss">
  386. .newContainer {
  387. .dialysisPage::-webkit-scrollbar {
  388. height: 15px;
  389. }
  390. .el-date-editor {
  391. .el-input__inner {
  392. padding-right: 0px;
  393. }
  394. }
  395. .el-table td,
  396. .el-table th {
  397. text-align: center;
  398. }
  399. }
  400. .newContainer::-webkit-scrollbar {
  401. height: 15px !important;
  402. }
  403. </style>