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

newStatementPrintTwo.vue 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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 {.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;}}';
  63. printJS({
  64. printable: "statement-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) {
  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. } else {
  94. console.log("~~~~")
  95. that.info = response.data.data.result
  96. console.log(that.info)
  97. that.info['org_code'] = response.data.data.org_code
  98. that.info['patient_name'] = response.data.data.patient_name
  99. that.info['doctor_code'] = response.data.data.doctor_code
  100. that.info['doctor_name'] = response.data.data.doctor_name
  101. that.info['health_card_no'] = response.data.data.health_card_no
  102. that.info['order_number'] = response.data.data.order_number
  103. that.info['department'] = response.data.data.department
  104. that.info['yiliao_leibie'] = response.data.data.yiliao_leibie
  105. that.info['org_name'] = that.$store.getters.xt_user.org.org_name
  106. console.log("~~~~" + that.info)
  107. var name_arr = []
  108. var spec_arr = []
  109. var count_arr = []
  110. var price_arr = []
  111. var total_arr = []
  112. for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
  113. name_arr.push(that.info.transBody.outputlist1[i].ake006)
  114. spec_arr.push(that.info.transBody.outputlist1[i].aka074)
  115. count_arr.push(that.info.transBody.outputlist1[i].akc226)
  116. price_arr.push(that.info.transBody.outputlist1[i].akc225)
  117. total_arr.push(that.info.transBody.outputlist1[i].akc264)
  118. }
  119. console.log("~~~" + that.info)
  120. that.info['name_arr'] = name_arr
  121. that.info['spec_arr'] = spec_arr
  122. that.info['count_arr'] = count_arr
  123. that.info['price_arr'] = price_arr
  124. that.info['total_arr'] = total_arr
  125. that.info['record_date'] = obj.record_time
  126. console.log("~~" + that.info)
  127. }
  128. }
  129. })
  130. .catch(function (error) {
  131. });
  132. }
  133. }
  134. },
  135. created() {
  136. this.getInfo(this.paramsObj)
  137. },
  138. watch:{
  139. paramsObj:{//深度监听,可监听到对象、数组的变化
  140. handler(val, oldVal){
  141. this.paramsObj = val
  142. this.getInfo(this.paramsObj)
  143. },
  144. deep:true
  145. }
  146. }
  147. };
  148. </script>
  149. <style>
  150. .dialysis-print-order {
  151. width: 960px;
  152. margin: 0 auto;
  153. }
  154. .dialysis-print-order .order-yy-name {
  155. margin: auto;
  156. text-align: center;
  157. font-size: 20px;
  158. letter-spacing: 5px;
  159. }
  160. .dialysis-print-order .order-title {
  161. margin: auto;
  162. font-weight: 600;
  163. text-align: center;
  164. font-size: 22px;
  165. padding: 10px;
  166. }
  167. .dialysis-print-order .table-box {
  168. width: 100%;
  169. line-height: 23px;
  170. font-size: 14px;
  171. }
  172. .dialysis-print-order .print-table {
  173. width: 100%;
  174. text-align: center;
  175. border-collapse: collapse;
  176. line-height: 40px;
  177. font-size: 14px;
  178. border-color: #000;
  179. }
  180. .dialysis-print-order .print-table-no {
  181. width: 100%;
  182. text-align: center;
  183. border-collapse: collapse;
  184. font-size: 14px;
  185. }
  186. .dialysis-print-order .under-line {
  187. border-bottom: 1px solid #999;
  188. width: 95%;
  189. text-align: center;
  190. margin-left: 2px;
  191. }
  192. .dialysis-print-order .title-box {
  193. text-align: center;
  194. font-size: 16px;
  195. }
  196. .dialysis-print-order .radio-lebel-box {
  197. font-weight: 400;
  198. cursor: pointer;
  199. }
  200. .dialysis-print-order .radio-no {
  201. opacity: 0;
  202. outline: none;
  203. position: absolute;
  204. margin: 0;
  205. width: 0;
  206. height: 0;
  207. z-index: -1;
  208. }
  209. .dialysis-print-order .radio-inner {
  210. white-space: nowrap;
  211. cursor: pointer;
  212. outline: none;
  213. display: inline-block;
  214. line-height: 1;
  215. position: relative;
  216. vertical-align: middle;
  217. }
  218. .dialysis-print-order .radio-fang {
  219. display: inline-block;
  220. position: relative;
  221. border: 1px solid #000;
  222. box-sizing: border-box;
  223. width: 14px;
  224. height: 14px;
  225. background-color: #fff;
  226. z-index: 1;
  227. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  228. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  229. }
  230. .dialysis-print-order .is-checked-radio::after {
  231. content: "√";
  232. font-size: 15px;
  233. }
  234. .dialysis-print-order .print-table-no tr td {
  235. padding: 8px 5px;
  236. line-height: 25px;
  237. }
  238. .dialysis-print-order .print-table tr td {
  239. padding: 1px 1px;
  240. /*line-height: 25px;*/
  241. }
  242. .es-img {
  243. height: 30px;
  244. }
  245. .advice-name {
  246. text-align: left;
  247. }
  248. .advice-children {
  249. display: flex;
  250. }
  251. .title-box-pro {
  252. border: 0 #fff;
  253. line-height: 25px;
  254. height: 25px;
  255. text-align: left;
  256. padding-left: 10px !important;
  257. }
  258. .title-box-pro-tr {
  259. border: 0 #fff;
  260. }
  261. .text-align-left {
  262. text-align: left !important;
  263. padding-left: 10px !important;
  264. font-size: 14px !important;
  265. line-height: 25px;
  266. }
  267. .print-table-tr-new td {
  268. line-height: 20px !important;
  269. }
  270. .border-top-solid {
  271. border: solid 1px #000;
  272. }
  273. .print-template-two tr {
  274. line-height: 30px;
  275. }
  276. .table-box1 {
  277. border: 1px solid #000;
  278. width: 100%;
  279. line-height: 30px;
  280. font-size: 14px;
  281. border-collapse: collapse;
  282. }
  283. .table-box1 tr {
  284. border-bottom: 1px solid #000;
  285. }
  286. </style>
  287. <style lang="scss">
  288. .newContainer{
  289. .dialysisPage::-webkit-scrollbar {
  290. height: 15px;
  291. }
  292. .el-date-editor{
  293. .el-input__inner{
  294. padding-right:0px;
  295. }
  296. }
  297. .el-table td, .el-table th{
  298. text-align: center;
  299. }
  300. }
  301. .newContainer::-webkit-scrollbar{
  302. height: 15px !important;
  303. }
  304. </style>