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

newStatementPrintTwo.vue 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. >打印</el-button
  12. >
  13. </template>
  14. <div class='dialysisPage' style="padding-top:40px;">
  15. <!--<printOne :info="info"></printOne>-->
  16. <print-one :info="info"></print-one>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import { parseTime } from "@/utils";
  22. import { getDialysisRecord } from "@/api/dialysis";
  23. import { getDataConfig } from "@/utils/data";
  24. import { jsGetAge, uParseTime } from "@/utils/tools";
  25. import axios from 'axios'
  26. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  27. import print from "print-js";
  28. import printOne from "./newTreatTemplate/printOne"
  29. export default {
  30. name: "newStatementPrintTwo",
  31. components: {
  32. BreadCrumb,
  33. printOne
  34. },
  35. props:{
  36. paramsObj:Object
  37. },
  38. data() {
  39. return {
  40. crumbs: [
  41. { path: false, name: '门诊医生站' },
  42. { path: false, name: '打印' }
  43. ],
  44. record_date:"",
  45. patientTableData:[],
  46. advicePrint:[],
  47. hisPatient:{},
  48. patient:{},
  49. search_input:"",
  50. loading:false,
  51. patient_id:0,
  52. prescription_id:0,
  53. ids:'',
  54. info:null,
  55. };
  56. },
  57. methods:{
  58. printThisPage() {
  59. var ptime = Math.round(new Date().getTime() / 1000);
  60. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  61. const style =
  62. '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
  63. printJS({
  64. printable: "prescription-print",
  65. type: "html",
  66. style: style,
  67. scanStyles: false
  68. });
  69. // if (this.org_template_info.template_id == 1) {
  70. // printJS({
  71. // printable: "dialysis-print-box",
  72. // type: "html",
  73. // style: style,
  74. // scanStyles: false
  75. // });
  76. // }
  77. },
  78. searchAction(){
  79. },
  80. getInfo(obj) {
  81. if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
  82. var that = this;
  83. axios.get('http://127.0.0.1:9532/sz/api/settle/query', {
  84. params: obj
  85. })
  86. .then(function (response) {
  87. if (response.data.state == 0) {
  88. this.$message.error(response.data.msg);
  89. return false
  90. } else {
  91. if (response.data.data.failed_code == -10) {
  92. // that.$message.error(response.data.data.msg)
  93. that.$confirm(response.data.data.msg, '医保错误信息', {
  94. confirmButtonText: '确 定',
  95. type: 'warning'
  96. }).then(() => {
  97. }).catch(() => {
  98. })
  99. } else {
  100. console.log("~~~~");
  101. that.info = response.data.data.result;
  102. console.log(that.info);
  103. that.info['org_code'] = response.data.data.org_code;
  104. that.info['patient_name'] = response.data.data.patient_name;
  105. that.info['doctor_code'] = response.data.data.doctor_code;
  106. that.info['doctor_name'] = response.data.data.doctor_name;
  107. if(response.data.data.health_card_no_two.length == 0){
  108. that.info['health_card_no'] = response.data.data.health_card_no
  109. }else{
  110. that.info['health_card_no'] = response.data.data.health_card_no_two
  111. }
  112. that.info['order_number'] = response.data.data.order_number;
  113. that.info['department'] = response.data.data.department;
  114. that.info['yiliao_leibie'] = response.data.data.yiliao_leibie;
  115. that.info['before_money'] = response.data.data.before_money;
  116. that.info['after_money'] = response.data.data.after_money;
  117. that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
  118. console.log("~~~~" + that.info);
  119. var name_arr = [];
  120. var spec_arr = [];
  121. var count_arr = [];
  122. var price_arr = [];
  123. var total_arr = [];
  124. for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
  125. name_arr.push(that.info.transBody.outputlist1[i].ake006);
  126. spec_arr.push(that.info.transBody.outputlist1[i].aka074);
  127. count_arr.push(that.info.transBody.outputlist1[i].akc226);
  128. price_arr.push(that.info.transBody.outputlist1[i].akc225);
  129. total_arr.push(that.info.transBody.outputlist1[i].akc264)
  130. }
  131. console.log("~~~" + that.info);
  132. that.info['name_arr'] = name_arr;
  133. that.info['spec_arr'] = spec_arr;
  134. that.info['count_arr'] = count_arr;
  135. that.info['price_arr'] = price_arr;
  136. that.info['total_arr'] = total_arr;
  137. that.info['record_date'] = obj.record_time;
  138. console.log("~~" + that.info)
  139. }
  140. }
  141. })
  142. .catch(function (error) {
  143. });
  144. }
  145. }
  146. },
  147. created() {
  148. this.getInfo(this.paramsObj)
  149. },
  150. watch:{
  151. paramsObj:{//深度监听,可监听到对象、数组的变化
  152. handler(val, oldVal){
  153. this.paramsObj = val;
  154. this.getInfo(this.paramsObj)
  155. },
  156. deep:true
  157. }
  158. }
  159. };
  160. </script>
  161. <style>
  162. .dialysis-print-order {
  163. width: 960px;
  164. margin: 0 auto;
  165. }
  166. .dialysis-print-order .order-yy-name {
  167. margin: auto;
  168. text-align: center;
  169. font-size: 20px;
  170. letter-spacing: 5px;
  171. }
  172. .dialysis-print-order .order-title {
  173. margin: auto;
  174. font-weight: 600;
  175. text-align: center;
  176. font-size: 22px;
  177. padding: 10px;
  178. }
  179. .dialysis-print-order .table-box {
  180. width: 100%;
  181. line-height: 23px;
  182. font-size: 14px;
  183. }
  184. .dialysis-print-order .print-table {
  185. width: 100%;
  186. text-align: center;
  187. border-collapse: collapse;
  188. line-height: 40px;
  189. font-size: 14px;
  190. border-color: #000;
  191. }
  192. .dialysis-print-order .print-table-no {
  193. width: 100%;
  194. text-align: center;
  195. border-collapse: collapse;
  196. font-size: 14px;
  197. }
  198. .dialysis-print-order .under-line {
  199. border-bottom: 1px solid #999;
  200. width: 95%;
  201. text-align: center;
  202. margin-left: 2px;
  203. }
  204. .dialysis-print-order .title-box {
  205. text-align: center;
  206. font-size: 16px;
  207. }
  208. .dialysis-print-order .radio-lebel-box {
  209. font-weight: 400;
  210. cursor: pointer;
  211. }
  212. .dialysis-print-order .radio-no {
  213. opacity: 0;
  214. outline: none;
  215. position: absolute;
  216. margin: 0;
  217. width: 0;
  218. height: 0;
  219. z-index: -1;
  220. }
  221. .dialysis-print-order .radio-inner {
  222. white-space: nowrap;
  223. cursor: pointer;
  224. outline: none;
  225. display: inline-block;
  226. line-height: 1;
  227. position: relative;
  228. vertical-align: middle;
  229. }
  230. .dialysis-print-order .radio-fang {
  231. display: inline-block;
  232. position: relative;
  233. border: 1px solid #000;
  234. box-sizing: border-box;
  235. width: 14px;
  236. height: 14px;
  237. background-color: #fff;
  238. z-index: 1;
  239. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  240. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  241. }
  242. .dialysis-print-order .is-checked-radio::after {
  243. content: "√";
  244. font-size: 15px;
  245. }
  246. .dialysis-print-order .print-table-no tr td {
  247. padding: 8px 5px;
  248. line-height: 25px;
  249. }
  250. .dialysis-print-order .print-table tr td {
  251. padding: 1px 1px;
  252. /*line-height: 25px;*/
  253. }
  254. .es-img {
  255. height: 30px;
  256. }
  257. .advice-name {
  258. text-align: left;
  259. }
  260. .advice-children {
  261. display: flex;
  262. }
  263. .title-box-pro {
  264. border: 0 #fff;
  265. line-height: 25px;
  266. height: 25px;
  267. text-align: left;
  268. padding-left: 10px !important;
  269. }
  270. .title-box-pro-tr {
  271. border: 0 #fff;
  272. }
  273. .text-align-left {
  274. text-align: left !important;
  275. padding-left: 10px !important;
  276. font-size: 14px !important;
  277. line-height: 25px;
  278. }
  279. .print-table-tr-new td {
  280. line-height: 20px !important;
  281. }
  282. .border-top-solid {
  283. border: solid 1px #000;
  284. }
  285. .print-template-two tr {
  286. line-height: 30px;
  287. }
  288. .table-box1 {
  289. border: 1px solid #000;
  290. width: 100%;
  291. line-height: 30px;
  292. font-size: 14px;
  293. border-collapse: collapse;
  294. }
  295. .table-box1 tr {
  296. border-bottom: 1px solid #000;
  297. }
  298. </style>
  299. <style lang="scss">
  300. .newContainer{
  301. .dialysisPage::-webkit-scrollbar {
  302. height: 15px;
  303. }
  304. .el-date-editor{
  305. .el-input__inner{
  306. padding-right:0px;
  307. }
  308. }
  309. .el-table td, .el-table th{
  310. text-align: center;
  311. }
  312. }
  313. .newContainer::-webkit-scrollbar{
  314. height: 15px !important;
  315. }
  316. </style>