huangyw 2 anni fa
parent
commit
6672458ff5

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Vedi File

@@ -1037,11 +1037,11 @@
1037 1037
           >
1038 1038
           </DialysisPrintOrderFortySeven>
1039 1039
 
1040
-           <DialysisPrintOrderFortyEight
1040
+           <DialysisPrintOrderFiftyOne
1041 1041
             v-bind:childResponse="childResponse"
1042 1042
             v-if="org_template_info.template_id == 48"
1043 1043
           >
1044
-          </DialysisPrintOrderFortyEight>
1044
+          </DialysisPrintOrderFiftyOne>
1045 1045
 
1046 1046
             <DialysisPrintOrderFortyNine
1047 1047
             v-bind:childResponse="childResponse"

+ 3 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue Vedi File

@@ -538,6 +538,7 @@
538 538
                       <tr>
539 539
                         <td width="60">时间</td>
540 540
                         <td width="60">血压<br />(mmHg)</td>
541
+                        <td width="60">体温<br />(°C)</td>
541 542
                         <td width="50">脉搏<br />(次/分)</td>
542 543
                         <td width="50">呼吸<br />(次/分)</td>
543 544
                         <td width="50">血流量<br />(ml/min)</td>
@@ -572,6 +573,7 @@
572 573
                           {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
573 574
                           {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
574 575
                         </td>
576
+                        <td>{{ monitor.monitor_temperature ? monitor.monitor_temperature : "" }}</td>
575 577
                         <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
576 578
                         <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
577 579
                         <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
@@ -636,6 +638,7 @@
636 638
                         <td></td>
637 639
                         <td></td>
638 640
                         <td></td>
641
+                        <td></td>
639 642
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50"></td>
640 643
                         <td v-if="org_id == 9919"></td>
641 644
                         <td style="line-height:16px;padding:0px;">

+ 2 - 2
src/xt_pages/hospitalStation/components/deskRecord.vue Vedi File

@@ -88,7 +88,7 @@
88 88
           :disabled="true"
89 89
         ></el-input>
90 90
       </el-form-item>
91
-      <!-- <el-form-item label="药物过敏史: " prop="name">
91
+      <el-form-item label="药物过敏史: " prop="name">
92 92
         <el-input
93 93
           v-model="allergic_history"
94 94
           placeholder="药物过敏史"
@@ -152,7 +152,7 @@
152 152
           v-model="lab_apparatus"
153 153
           placeholder="实验室及器械检查"
154 154
         ></el-input>
155
-      </el-form-item> -->
155
+      </el-form-item>
156 156
     </el-form>
157 157
     <div class="mainTitle">体格信息:</div>
158 158
     <el-form

+ 1 - 1
src/xt_pages/hospitalStation/doctorDesk.vue Vedi File

@@ -275,7 +275,7 @@
275 275
                 width="600px"
276 276
                 title="打印"
277 277
                 :visible.sync="recordVisible">
278
-            <recordPrint :patientid="patientid" ref="recordPrint"></recordPrint>
278
+            <recordPrint :patientid="patientid" ref="recordPrint" :showBtn='true'></recordPrint>
279 279
         </el-dialog>
280 280
 
281 281
     </div>

+ 92 - 74
src/xt_pages/hospitalStation/invoicePrint.vue Vedi File

@@ -2,7 +2,7 @@
2 2
   <div>
3 3
     <template>
4 4
       <el-button
5
-        style="position:fixed;right:25px;z-index:999"
5
+        style="position: fixed; right: 25px; z-index: 999"
6 6
         :loading="loading"
7 7
         size="small"
8 8
         icon="el-icon-printer"
@@ -11,36 +11,43 @@
11 11
         >打印</el-button
12 12
       >
13 13
     </template>
14
-    <div class="app-container" style="padding-top:40px;">
15
-        <div class='dialysisPage'>
16
-            <printOne v-if="org_id != 10215 && org_id != 10265 && org_id !=4&& org_id !=0" :paramsObj="invoiceParams"></printOne>
17
-            <printTwo v-if="org_id == 10215" :paramsObj="invoiceParams"></printTwo>
18
-            <printThree v-if="org_id == 10265 || org_id == 0|| org_id == 4" :paramsObj="invoiceParams"></printThree>
19
-        </div>
14
+    <div class="app-container" style="padding-top: 40px">
15
+      <div class="dialysisPage">
16
+        <printOne
17
+          v-if="
18
+            org_id != 10215 && org_id != 10265 && org_id != 4 && org_id != 0
19
+          "
20
+          :paramsObj="invoiceParams"
21
+        ></printOne>
22
+        <printTwo v-if="org_id == 10215" :paramsObj="invoiceParams"></printTwo>
23
+        <printThree
24
+          v-if="org_id == 10265 || org_id == 0 || org_id == 4"
25
+          :paramsObj="invoiceParams"
26
+        ></printThree>
27
+      </div>
20 28
     </div>
21 29
   </div>
22 30
 </template>
23 31
 
24 32
 <script>
25
-import printOne from './invoiceTemplate/printOne'
26
-import printTwo from './invoiceTemplate/printTwo'
27
-import printThree from './invoiceTemplate/printThree'
33
+import printOne from "./invoiceTemplate/printOne";
34
+import printTwo from "./invoiceTemplate/printTwo";
35
+import printThree from "./invoiceTemplate/printThree";
28 36
 export default {
29 37
   name: "invoicePrint",
30 38
   components: {
31 39
     printOne,
32 40
     printTwo,
33
-    printThree
41
+    printThree,
34 42
   },
35
-  props:{
36
-    invoiceParams:Object
43
+  props: {
44
+    invoiceParams: Object,
37 45
   },
38 46
   data() {
39 47
     return {
40 48
       childResponse: {},
41
-    //   invoiceParams:{}
42
-      org_id:''
43
-
49
+      //   invoiceParams:{}
50
+      org_id: "",
44 51
     };
45 52
   },
46 53
   methods: {
@@ -67,15 +74,26 @@ export default {
67 74
       return "";
68 75
     },
69 76
     printThisPage() {
70
-
71
-      const style =
72
-        '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.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}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
77
+      if (this.org_id == 10265 || this.org_id == 0 || this.org_id == 4) {
78
+        const style1 =
79
+          "@media print {#invoice-print{font-size:16px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.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}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}";
73 80
         printJS({
74
-            printable: "invoice-print",
75
-            type: "html",
76
-            style: style,
77
-            scanStyles: false
81
+          printable: "invoice-print",
82
+          type: "html",
83
+          style: style1,
84
+          scanStyles: false,
78 85
         });
86
+      } else {
87
+        const style =
88
+          "@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.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}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}";
89
+        printJS({
90
+          printable: "invoice-print",
91
+          type: "html",
92
+          style: style,
93
+          scanStyles: false,
94
+        });
95
+      }
96
+
79 97
       // if (this.org_template_info.template_id == 1) {
80 98
       //   printJS({
81 99
       //     printable: "dialysis-print-box",
@@ -87,73 +105,73 @@ export default {
87 105
     },
88 106
   },
89 107
   created() {
90
-      console.log('this.invoiceParams',this.invoiceParams)
91
-      this.org_id = this.$store.getters.xt_user.org_id
92
-      console.log(this.org_id,'this.org_id')
108
+    console.log("this.invoiceParams", this.invoiceParams);
109
+    this.org_id = this.$store.getters.xt_user.org_id;
110
+    console.log(this.org_id, "this.org_id");
93 111
   },
94
-  watch:{
95
-    paramsObj:{//深度监听,可监听到对象、数组的变化
96
-      handler(val, oldVal){
97
-        this.invoiceParams = val
98
-
112
+  watch: {
113
+    paramsObj: {
114
+      //深度监听,可监听到对象、数组的变化
115
+      handler(val, oldVal) {
116
+        this.invoiceParams = val;
99 117
       },
100
-      deep:true
101
-    }
102
-  }
118
+      deep: true,
119
+    },
120
+  },
103 121
 };
104 122
 </script>
105 123
 
106 124
 <style lang="scss" scoped>
107
-.printTitle{
108
-    font-size: 22px;
109
-    text-align: center;
110
-    font-weight: bold;
125
+.printTitle {
126
+  font-size: 22px;
127
+  text-align: center;
128
+  font-weight: bold;
111 129
 }
112
-.infoMain{
113
-    display: flex;
114
-    flex-wrap: wrap;
115
-    border-bottom: 2px solid #000;
116
-    padding:0 10px;
130
+.infoMain {
131
+  display: flex;
132
+  flex-wrap: wrap;
133
+  border-bottom: 2px solid #000;
134
+  padding: 0 10px;
117 135
 }
118
-.infoMain .infoP{
119
-    width: 33%;
120
-    line-height: 24px;
136
+.infoMain .infoP {
137
+  width: 33%;
138
+  line-height: 24px;
121 139
 }
122
-.prescriptionBox{
123
-    padding:0 10px;
124
-    height:600px;
140
+.prescriptionBox {
141
+  padding: 0 10px;
142
+  height: 600px;
125 143
 }
126
-.Rp{
127
-    font-size: 22px;
128
-    font-weight: bold;
144
+.Rp {
145
+  font-size: 22px;
146
+  font-weight: bold;
129 147
 }
130
-.drugsBox{
131
-    padding-left: 40px;
132
-    margin-bottom: 10px;
148
+.drugsBox {
149
+  padding-left: 40px;
150
+  margin-bottom: 10px;
133 151
 }
134
-.drugsBox p{
135
-    line-height: 30px;
152
+.drugsBox p {
153
+  line-height: 30px;
136 154
 }
137
-.drugsOne{
138
-    line-height: 24px;
155
+.drugsOne {
156
+  line-height: 24px;
139 157
 }
140
-.drugsOne span{
141
-    margin-right: 20px;
158
+.drugsOne span {
159
+  margin-right: 20px;
142 160
 }
143
-.doctorBox{
144
-    display: flex;
145
-    justify-content: space-between;
146
-    padding:0 10px;
147
-    line-height: 24px;
148
-    border-bottom: 2px solid #000;
161
+.doctorBox {
162
+  display: flex;
163
+  justify-content: space-between;
164
+  padding: 0 10px;
165
+  line-height: 24px;
166
+  border-bottom: 2px solid #000;
149 167
 }
150
-.actionBar{
151
-    display: flex;
152
-    justify-content: space-between;
153
-    line-height: 24px;
154
-    padding:0 10px;
168
+.actionBar {
169
+  display: flex;
170
+  justify-content: space-between;
171
+  line-height: 24px;
172
+  padding: 0 10px;
155 173
 }
156
-.actionBar p{
157
-    width:150px;
174
+.actionBar p {
175
+  width: 150px;
158 176
 }
159 177
 </style>

+ 9 - 3
src/xt_pages/hospitalStation/listPrint.vue Vedi File

@@ -13,20 +13,23 @@
13 13
     </template>
14 14
 
15 15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
16
+      <!-- <printOne :list="list" :patient="patient" :order="order" :admin="admin"></printOne> -->
17
+      <printTwo :list="list" :patient="patient" :order="order" :admin="admin"></printTwo>
17 18
     </div>
18 19
   </div>
19 20
 </template>
20 21
 
21 22
 <script>
22 23
   import printOne from './listTemplate/printOne'
24
+  import printTwo from './listTemplate/printTwo'
23 25
   import { getHisOrderDetail } from '@/api/his/his'
24 26
   import { uParseTime } from '@/utils/tools'
25 27
 
26 28
   export default {
27 29
     name: 'listPrint',
28 30
     components: {
29
-      printOne
31
+      printOne,
32
+      printTwo
30 33
     },
31 34
     props: {
32 35
       paramsObj: Object
@@ -173,9 +176,12 @@
173 176
           printable: 'list-print',
174 177
           type: 'html',
175 178
           style: style,
176
-          scanStyles: false
179
+          scanStyles: false,
180
+          // documentTitle:"EFFORT", 
181
+          // repeatTableHeader:true,  //重复表头
177 182
         })
178 183
 
184
+
179 185
         // if (this.org_template_info.template_id == 1) {
180 186
         //   printJS({
181 187
         //     printable: "dialysis-print-box",

+ 527 - 0
src/xt_pages/hospitalStation/listTemplate/printTwo.vue Vedi File

@@ -0,0 +1,527 @@
1
+<template>
2
+  <div id="list-print" class="list-print">
3
+    <div v-for="(i, index) in pageArr.length" :key="index">
4
+      <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
5
+      <!-- <div class="listTitle" :style="{position: 'absolute',top:(20 + (index * 160))  + 'px',left:200+ 'px',}">赤峰市肿瘤医院病人费用明细清单</div> -->
6
+      <div class="listInfo">
7
+        <div>病人ID:</div>
8
+        <div>住院号:{{ patient.dialysis_no }}</div>
9
+        <div>次数:</div>
10
+        <div>姓名:{{ patient.name }}</div>
11
+        <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
12
+      </div>
13
+
14
+      <div class="listInfo">
15
+        <div>入院科室:</div>
16
+        <div>出院科室:</div>
17
+        <div>入院日期:</div>
18
+        <div>出院日期:</div>
19
+        <div>住院天数:</div>
20
+      </div>
21
+
22
+      <div
23
+        class="listInfo"
24
+        style="padding-bottom: 10px; border-bottom: 1px solid"
25
+      >
26
+        <div>出院诊断:</div>
27
+        <div>床位号:</div>
28
+        <div>费别:</div>
29
+      </div>
30
+
31
+      <table
32
+        class="listTable"
33
+        border="1"
34
+        frame="hsides"
35
+        rules="none"
36
+        cellspacing="0"
37
+      >
38
+        <tr style="border: 1px solid">
39
+          <td style="width: 19%">账单名称:床位费</td>
40
+          <td style="width: 31%">费用名称</td>
41
+          <td style="width: 14%">规格</td>
42
+          <td style="width: 10%">类别</td>
43
+          <td style="width: 10%">单价(元)</td>
44
+          <td style="width: 6%">数量</td>
45
+          <td style="width: 10%">金额(元)</td>
46
+        </tr>
47
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
48
+          <td style="width: 19%"></td>
49
+          <td style="width: 31%"></td>
50
+          <td style="width: 14%">{{ item.spec }}</td>
51
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
52
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
53
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
54
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
55
+        </tr>
56
+        <tr>
57
+          <td style="width: 19%">甲类:</td>
58
+          <td style="width: 31%">乙类药品:</td>
59
+          <td style="width: 14%">非药品:</td>
60
+          <td style="width: 10%">丙类:</td>
61
+          <td style="width: 10%">其他:</td>
62
+          <td></td>
63
+          <td style="width: 6%">小计:</td>
64
+        </tr>
65
+
66
+
67
+        <tr style="border: 1px solid">
68
+          <td style="width: 19%">账单名称:护理费</td>
69
+          <td style="width: 31%">费用名称</td>
70
+          <td style="width: 14%">规格</td>
71
+          <td style="width: 10%">类别</td>
72
+          <td style="width: 10%">单价(元)</td>
73
+          <td style="width: 6%">数量</td>
74
+          <td style="width: 10%">金额(元)</td>
75
+        </tr>
76
+
77
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
78
+          <td style="width: 19%"></td>
79
+          <td style="width: 31%"></td>
80
+          <td style="width: 14%">{{ item.spec }}</td>
81
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
82
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
83
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
84
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
85
+        </tr>
86
+        <tr>
87
+          <td style="width: 19%">甲类:</td>
88
+          <td style="width: 31%">乙类药品:</td>
89
+          <td style="width: 14%">非药品:</td>
90
+          <td style="width: 10%">丙类:</td>
91
+          <td style="width: 10%">其他:</td>
92
+          <td></td>
93
+          <td style="width: 6%">小计:</td>
94
+        </tr>
95
+
96
+        <tr style="border: 1px solid">
97
+          <td style="width: 19%">账单名称:化验费</td>
98
+          <td style="width: 31%">费用名称</td>
99
+          <td style="width: 14%">规格</td>
100
+          <td style="width: 10%">类别</td>
101
+          <td style="width: 10%">单价(元)</td>
102
+          <td style="width: 6%">数量</td>
103
+          <td style="width: 10%">金额(元)</td>
104
+        </tr>
105
+
106
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
107
+          <td style="width: 19%"></td>
108
+          <td style="width: 31%"></td>
109
+          <td style="width: 14%">{{ item.spec }}</td>
110
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
111
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
112
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
113
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
114
+        </tr>
115
+        <tr>
116
+          <td style="width: 19%">甲类:</td>
117
+          <td style="width: 31%">乙类药品:</td>
118
+          <td style="width: 14%">非药品:</td>
119
+          <td style="width: 10%">丙类:</td>
120
+          <td style="width: 10%">其他:</td>
121
+          <td></td>
122
+          <td style="width: 6%">小计:</td>
123
+        </tr>
124
+
125
+        <tr style="border: 1px solid;page-break-after:always">
126
+          <td style="width: 19%">账单名称:检查费</td>
127
+          <td style="width: 31%">费用名称</td>
128
+          <td style="width: 14%">规格</td>
129
+          <td style="width: 10%">类别</td>
130
+          <td style="width: 10%">单价(元)</td>
131
+          <td style="width: 6%">数量</td>
132
+          <td style="width: 10%">金额(元)</td>
133
+        </tr>
134
+        
135
+
136
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
137
+          <td style="width: 19%"></td>
138
+          <td style="width: 31%"></td>
139
+          <td style="width: 14%">{{ item.spec }}</td>
140
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
141
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
142
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
143
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
144
+        </tr>
145
+        <tr>
146
+          <td style="width: 19%">甲类:</td>
147
+          <td style="width: 31%">乙类药品:</td>
148
+          <td style="width: 14%">非药品:</td>
149
+          <td style="width: 10%">丙类:</td>
150
+          <td style="width: 10%">其他:</td>
151
+          <td></td>
152
+          <td style="width: 6%">小计:</td>
153
+        </tr>
154
+
155
+        <tr style="border: 1px solid">
156
+          <td style="width: 19%">账单名称:麻醉费</td>
157
+          <td style="width: 31%">费用名称</td>
158
+          <td style="width: 14%">规格</td>
159
+          <td style="width: 10%">类别</td>
160
+          <td style="width: 10%">单价(元)</td>
161
+          <td style="width: 6%">数量</td>
162
+          <td style="width: 10%">金额(元)</td>
163
+        </tr>
164
+
165
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
166
+          <td style="width: 19%"></td>
167
+          <td style="width: 31%"></td>
168
+          <td style="width: 14%">{{ item.spec }}</td>
169
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
170
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
171
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
172
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
173
+        </tr>
174
+        <tr>
175
+          <td style="width: 19%">甲类:</td>
176
+          <td style="width: 31%">乙类药品:</td>
177
+          <td style="width: 14%">非药品:</td>
178
+          <td style="width: 10%">丙类:</td>
179
+          <td style="width: 10%">其他:</td>
180
+          <td></td>
181
+          <td style="width: 6%">小计:</td>
182
+        </tr>
183
+
184
+         
185
+
186
+        <tr style="border: 1px solid">
187
+          <td style="width: 19%">账单名称:其他费</td>
188
+          <td style="width: 31%">费用名称</td>
189
+          <td style="width: 14%">规格</td>
190
+          <td style="width: 10%">类别</td>
191
+          <td style="width: 10%">单价(元)</td>
192
+          <td style="width: 6%">数量</td>
193
+          <td style="width: 10%">金额(元)</td>
194
+        </tr>
195
+
196
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
197
+          <td style="width: 19%"></td>
198
+          <td style="width: 31%"></td>
199
+          <td style="width: 14%">{{ item.spec }}</td>
200
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
201
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
202
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
203
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
204
+        </tr>
205
+        <tr>
206
+          <td style="width: 19%">甲类:</td>
207
+          <td style="width: 31%">乙类药品:</td>
208
+          <td style="width: 14%">非药品:</td>
209
+          <td style="width: 10%">丙类:</td>
210
+          <td style="width: 10%">其他:</td>
211
+          <td></td>
212
+          <td style="width: 6%">小计:</td>
213
+        </tr>
214
+
215
+        <tr style="border: 1px solid">
216
+          <td style="width: 19%">账单名称:取暖费</td>
217
+          <td style="width: 31%">费用名称</td>
218
+          <td style="width: 14%">规格</td>
219
+          <td style="width: 10%">类别</td>
220
+          <td style="width: 10%">单价(元)</td>
221
+          <td style="width: 6%">数量</td>
222
+          <td style="width: 10%">金额(元)</td>
223
+        </tr>
224
+
225
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
226
+          <td style="width: 19%"></td>
227
+          <td style="width: 31%"></td>
228
+          <td style="width: 14%">{{ item.spec }}</td>
229
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
230
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
231
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
232
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
233
+        </tr>
234
+        <tr style="page-break-after:always">
235
+          <td style="width: 19%">甲类:</td>
236
+          <td style="width: 31%">乙类药品:</td>
237
+          <td style="width: 14%">非药品:</td>
238
+          <td style="width: 10%">丙类:</td>
239
+          <td style="width: 10%">其他:</td>
240
+          <td></td>
241
+          <td style="width: 6%">小计:</td>
242
+        </tr>
243
+
244
+
245
+        <tr style="border: 1px solid">
246
+          <td style="width: 19%">账单名称:手术费</td>
247
+          <td style="width: 31%">费用名称</td>
248
+          <td style="width: 14%">规格</td>
249
+          <td style="width: 10%">类别</td>
250
+          <td style="width: 10%">单价(元)</td>
251
+          <td style="width: 6%">数量</td>
252
+          <td style="width: 10%">金额(元)</td>
253
+        </tr>
254
+
255
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
256
+          <td style="width: 19%"></td>
257
+          <td style="width: 31%"></td>
258
+          <td style="width: 14%">{{ item.spec }}</td>
259
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
260
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
261
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
262
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
263
+        </tr>
264
+        <tr>
265
+          <td style="width: 19%">甲类:</td>
266
+          <td style="width: 31%">乙类药品:</td>
267
+          <td style="width: 14%">非药品:</td>
268
+          <td style="width: 10%">丙类:</td>
269
+          <td style="width: 10%">其他:</td>
270
+          <td></td>
271
+          <td style="width: 6%">小计:</td>
272
+        </tr>
273
+
274
+
275
+        <tr style="border: 1px solid">
276
+          <td style="width: 19%">账单名称:西药费</td>
277
+          <td style="width: 31%">费用名称</td>
278
+          <td style="width: 14%">规格</td>
279
+          <td style="width: 10%">类别</td>
280
+          <td style="width: 10%">单价(元)</td>
281
+          <td style="width: 6%">数量</td>
282
+          <td style="width: 10%">金额(元)</td>
283
+        </tr>
284
+
285
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
286
+          <td style="width: 19%"></td>
287
+          <td style="width: 31%"></td>
288
+          <td style="width: 14%">{{ item.spec }}</td>
289
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
290
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
291
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
292
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
293
+        </tr>
294
+        <tr>
295
+          <td style="width: 19%">甲类:</td>
296
+          <td style="width: 31%">乙类药品:</td>
297
+          <td style="width: 14%">非药品:</td>
298
+          <td style="width: 10%">丙类:</td>
299
+          <td style="width: 10%">其他:</td>
300
+          <td></td>
301
+          <td style="width: 6%">小计:</td>
302
+        </tr>
303
+
304
+
305
+        <tr style="border: 1px solid">
306
+          <td style="width: 19%">账单名称:治疗费</td>
307
+          <td style="width: 31%">费用名称</td>
308
+          <td style="width: 14%">规格</td>
309
+          <td style="width: 10%">类别</td>
310
+          <td style="width: 10%">单价(元)</td>
311
+          <td style="width: 6%">数量</td>
312
+          <td style="width: 10%">金额(元)</td>
313
+        </tr>
314
+
315
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
316
+          <td style="width: 19%"></td>
317
+          <td style="width: 31%"></td>
318
+          <td style="width: 14%">{{ item.spec }}</td>
319
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
320
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
321
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
322
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
323
+        </tr>
324
+        <tr>
325
+          <td style="width: 19%">甲类:</td>
326
+          <td style="width: 31%">乙类药品:</td>
327
+          <td style="width: 14%">非药品:</td>
328
+          <td style="width: 10%">丙类:</td>
329
+          <td style="width: 10%">其他:</td>
330
+          <td></td>
331
+          <td style="width: 6%">小计:</td>
332
+        </tr>
333
+
334
+        <tr style="border: 1px solid">
335
+          <td style="width: 19%">账单名称:中成药费</td>
336
+          <td style="width: 31%">费用名称</td>
337
+          <td style="width: 14%">规格</td>
338
+          <td style="width: 10%">类别</td>
339
+          <td style="width: 10%">单价(元)</td>
340
+          <td style="width: 6%">数量</td>
341
+          <td style="width: 10%">金额(元)</td>
342
+        </tr>
343
+
344
+        <tr v-for="item in list.slice(index * 13, index * 13 + pageArr[index])">
345
+          <td style="width: 19%"></td>
346
+          <td style="width: 31%"></td>
347
+          <td style="width: 14%">{{ item.spec }}</td>
348
+          <td style="width: 10%">{{ item.med_chrgitm_type }}</td>
349
+          <td style="width: 10%">{{ item.price.toFixed(2) }}</td>
350
+          <td style="width: 6%">{{ item.count }}{{ item.unit }}</td>
351
+          <td style="width: 10%">{{ (item.price * item.count).toFixed(2) }}</td>
352
+        </tr>
353
+        <tr>
354
+          <td style="width: 19%">甲类:</td>
355
+          <td style="width: 31%">乙类药品:</td>
356
+          <td style="width: 14%">非药品:</td>
357
+          <td style="width: 10%">丙类:</td>
358
+          <td style="width: 10%">其他:</td>
359
+          <td></td>
360
+          <td style="width: 6%">小计:</td>
361
+        </tr>
362
+        <tr>
363
+          <td></td>
364
+          <td></td>
365
+          <td></td>
366
+          <td></td>
367
+          <td></td>
368
+          <td></td>
369
+          <td>
370
+            总费用:
371
+          </td>
372
+        </tr>
373
+
374
+        <tr>
375
+          <td>报销类别费用合计</td>
376
+          <td>甲类:</td>
377
+          <td>乙类药品:</td>
378
+          <td>丙类:</td>
379
+          <td>非药品:</td>
380
+          <td></td>
381
+          <td>其他:</td>
382
+          
383
+        </tr>
384
+
385
+
386
+      </table>
387
+      <div class="tableBottom">
388
+        <!-- <div class="tableBottomOne">制表人:{{ admin.user_name }}</div> -->
389
+        <div class="tableBottomOne">制表日期:{{ getNowTime() }}</div>
390
+        <!-- <div class="tableBottomOne">总费用:{{ order.medfee_sumamt }}元</div> -->
391
+      </div>
392
+    </div>
393
+  </div>
394
+</template>
395
+
396
+<script>
397
+import { uParseTime } from "@/utils/tools";
398
+
399
+export default {
400
+  props: {
401
+    list: {
402
+      type: Array,
403
+      default: function () {
404
+        return [];
405
+      },
406
+    },
407
+    patient: {
408
+      type: Object,
409
+      default: function () {
410
+        return {};
411
+      },
412
+    },
413
+    order: {
414
+      type: Object,
415
+      default: function () {
416
+        return {};
417
+      },
418
+    },
419
+    admin: {
420
+      type: Object,
421
+      default: function () {
422
+        return {};
423
+      },
424
+    },
425
+  },
426
+  data() {
427
+    return {
428
+      page: 1,
429
+      pageArr: [],
430
+    };
431
+  },
432
+  // mounted(){
433
+  //     this.getPage()
434
+  // },
435
+  methods: {
436
+    getNowTime: function () {
437
+      let dateTime;
438
+      let yy = new Date().getFullYear();
439
+      let mm = new Date().getMonth() + 1;
440
+      let dd = new Date().getDate();
441
+      let hh = new Date().getHours();
442
+      let mf =
443
+        new Date().getMinutes() < 10
444
+          ? "0" + new Date().getMinutes()
445
+          : new Date().getMinutes();
446
+      let ss =
447
+        new Date().getSeconds() < 10
448
+          ? "0" + new Date().getSeconds()
449
+          : new Date().getSeconds();
450
+      dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
451
+      return dateTime;
452
+    },
453
+    getTimes(time) {
454
+      return uParseTime(time, "{y}-{m}-{d}");
455
+    },
456
+    getPage() {
457
+      if (this.list.length <= 13) {
458
+        this.page = 1;
459
+        this.pageArr.push(this.list.length);
460
+      } else if (this.list.length > 13) {
461
+        this.page = parseInt(this.list.length / 13);
462
+        let num = this.list.length % 13;
463
+        for (var i = 0; i < this.page; i++) {
464
+          this.pageArr.push(13);
465
+        }
466
+        if (num != 0) {
467
+          this.pageArr.push(num);
468
+        }
469
+      }
470
+
471
+      console.log(this.pageArr,'this.pageArr')
472
+    },
473
+  },
474
+  watch: {
475
+    list: {
476
+      handler(newVal) {
477
+        this.getPage();
478
+      },
479
+      deep: true,
480
+    },
481
+  },
482
+};
483
+</script>
484
+
485
+<style lang="scss" scoped>
486
+.list-print {
487
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
488
+    0 0 60px rgba(0, 0, 0, 0.06) inset;
489
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
490
+    0 0 40px rgba(0, 0, 0, 0.06) inset;
491
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
492
+  margin-bottom: 20px;
493
+  padding: 20px 10px;
494
+}
495
+.listTitle {
496
+  font-size: 24px;
497
+  text-align: center;
498
+  font-weight: bold;
499
+  margin-bottom: 10px;
500
+}
501
+.listInfo {
502
+  display: flex;
503
+  font-size: 16px;
504
+  justify-content: space-between;
505
+  margin: 10px 0;
506
+}
507
+.listTable {
508
+  width: 100%;
509
+  text-align: center;
510
+  border-collapse: collapse;
511
+  line-height: 40px;
512
+  font-size: 14px;
513
+  border-color: #000;
514
+  text-align: left;
515
+}
516
+.listTable tr td {
517
+  padding: 0 5px;
518
+}
519
+.tableBottom {
520
+  font-size: 16px;
521
+  display: flex;
522
+  margin-top: 20px;
523
+}
524
+.tableBottomOne {
525
+  margin-right: 40px;
526
+}
527
+</style>

+ 2 - 3
src/xt_pages/hospitalStation/recordPrint.vue Vedi File

@@ -113,9 +113,8 @@ export default {
113 113
       const style =
114 114
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
115 115
        const style1 =
116
-        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
117
-      
118
-      
116
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: fit-content;min-height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
117
+
119 118
       if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675) {
120 119
         printJS({
121 120
           printable: "prescription-print",

+ 111 - 81
src/xt_pages/hospitalStation/recordTemplate/printTwo.vue Vedi File

@@ -2,7 +2,7 @@
2 2
   <div id="prescription-print">
3 3
     <div class="prescription-print">
4 4
       <div class="printTitle">{{ orgname }}血透中心病历</div>
5
-       <!-- <div class="record_Title">
5
+      <!-- <div class="record_Title">
6 6
             <div>姓名:{{patient.name?patient.name:''}}</div>
7 7
             <div>性别:
8 8
                 <span v-if="patient.gender == 1">男</span>
@@ -11,8 +11,10 @@
11 11
             <div>年龄:{{patient.age?patient.age:''}}岁</div>
12 12
             <div>透析病历号:{{patient.id?patient.id:''}}</div>
13 13
         </div> -->
14
-      <div class="infoTitle" style="margin-top:20px;">
15
-        <div class="name_slot">姓名:{{ patient.name ? patient.name : "" }}</div>
14
+      <div class="infoTitle" style="margin-top: 20px">
15
+        <div class="name_slot">
16
+          姓名:{{ patient.name ? patient.name : "" }}
17
+        </div>
16 18
         <div class="address_slot">
17 19
           家庭住址:{{ patient.home_address ? patient.home_address : "" }}
18 20
         </div>
@@ -23,47 +25,56 @@
23 25
           <span v-if="patient.gender == 1">男</span>
24 26
           <span v-if="patient.gender == 2">女</span>
25 27
         </div>
26
-        <div class="address_slot">工作单位:{{patient.work_unit}}</div>
27
-       
28
+        <div class="address_slot">工作单位:{{ patient.work_unit }}</div>
28 29
       </div>
29 30
       <div class="infoTitle">
30
-        <div class="name_slot">出生日期:{{patient.id_card_no.slice(6,10)}}年{{ patient.id_card_no.slice(10,12) }}月{{patient.id_card_no.slice(12,14) }}日</div> 
31
-        <div class="address_slot">身份证号:{{patient.id_card_no}}</div>
31
+        <div class="name_slot">
32
+          出生日期:{{ patient.id_card_no.slice(6, 10) }}年{{
33
+            patient.id_card_no.slice(10, 12)
34
+          }}月{{ patient.id_card_no.slice(12, 14) }}日
35
+        </div>
36
+        <div class="address_slot">身份证号:{{ patient.id_card_no }}</div>
32 37
       </div>
33 38
       <div class="infoTitle">
34
-        <div class="name_slot">联系人:{{patient.contact_name}}</div>
35
-        <div class="address_slot">联系电话:{{ patient.phone ? patient.phone : "" }}</div>
39
+        <div class="name_slot">联系人:{{ patient.contact_name }}</div>
40
+        <div class="address_slot">
41
+          联系电话:{{ patient.phone ? patient.phone : "" }}
42
+        </div>
36 43
       </div>
37 44
       <div class="otherInfo" style="border-bottom: 1px solid">
38
-        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
45
+        <div>进入透析时间:{{ getTime(patient.first_dialysis_date) }}</div>
39 46
         <div style="flex: 1"></div>
40 47
       </div>
41 48
       <div class="infoTitle">
42
-        <div style="width: 300px">原发病:{{history.primary_disease}}</div>
43
-        <div class="address_slot">确诊肾衰日期:{{getTime(history.confirm_failure_date)}}</div>
49
+        <div style="width: 300px">原发病:{{ history.primary_disease }}</div>
50
+        <div class="address_slot">
51
+          确诊肾衰日期:{{ getTime(history.confirm_failure_date) }}
52
+        </div>
44 53
       </div>
45 54
       <div class="otherInfo">
46 55
         <div>
47
-          药物过敏史:{{ history.allergic_history ? history.allergic_history : "" }}
56
+          药物过敏史:{{
57
+            history.allergic_history ? history.allergic_history : ""
58
+          }}
48 59
         </div>
49 60
       </div>
50 61
       <div class="otherInfo">
51
-        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
62
+        <div>初始透析日期:{{ getTime(patient.first_dialysis_date) }}</div>
52 63
         <div style="flex: 1"></div>
53 64
       </div>
54 65
       <div class="otherInfo" style="border-bottom: 1px solid">
55
-        <div>血管通路:{{accessList.blood_access_part_opera_id}}</div>
66
+        <div>血管通路:{{ accessList.blood_access_part_opera_id }}</div>
56 67
         <div style="flex: 1"></div>
57 68
       </div>
58 69
 
59
-      <div class="otherInfo" style="min-height: 60px;">
70
+      <div class="otherInfo" style="min-height: 60px">
60 71
         <div class="otherName">主诉:</div>
61 72
         <div style="flex: 1">
62 73
           {{ history.chief_conplaint ? history.chief_conplaint : "" }}
63 74
         </div>
64 75
       </div>
65 76
 
66
-      <div class="otherInfo" style="min-height: 180px;">
77
+      <div class="otherInfo" style="min-height: 180px">
67 78
         <div class="otherName">现病史:</div>
68 79
         <div style="flex: 1">
69 80
           {{
@@ -74,63 +85,83 @@
74 85
         </div>
75 86
       </div>
76 87
 
77
-      <div class="otherInfo" style="min-height: 100px;">
88
+      <div class="otherInfo" style="min-height: 100px">
78 89
         <div class="otherName">既往史:</div>
79 90
         <div style="flex: 1">
80 91
           {{ history.past_history ? history.past_history : "" }}
81 92
         </div>
82 93
       </div>
83 94
 
84
-      <div class="otherInfo" style="min-height: 80px;">
95
+      <div class="otherInfo" style="min-height: 80px">
85 96
         <div class="otherName">个人史:</div>
86 97
         <div style="flex: 1">
87 98
           {{ history.personal_history ? history.personal_history : "" }}
88 99
         </div>
89 100
       </div>
90
-
91
-      <div class="otherInfo" style="min-height: 150px;">
101
+ 
102
+      <div class="otherInfo" style="min-height: 150px">
92 103
         <div class="otherName">家族史:</div>
93 104
         <div style="flex: 1">
94
-          {{ history.family_history ? history.family_history : "" }}啊实打实大苏打实打实
105
+          {{ history.family_history ? history.family_history : "" }}
95 106
         </div>
96 107
       </div>
97 108
     </div>
98
-<div style="page-break-after: always; margin-top: 50px"></div>
109
+    <div style="page-break-after: always; margin-top: 50px"></div>
99 110
     <div class="prescription-print">
100 111
       <!-- <div class="printTitle">病历内容</div> -->
101 112
       <div class="recordTitle">
102 113
         <div>体格检查</div>
103
-        <div class="recordContent" style="height:250px;">
114
+        <div class="recordContent" style="height: fit-content;min-height: 250px;">
104 115
           <div>
105
-          <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
106
-          <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
107
-          <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
108
-          <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
116
+            <span
117
+              >体温:{{
118
+                history.temperature ? history.temperature + "℃" : "/"
119
+              }}</span
120
+            >
121
+            <span
122
+              >脉搏:{{ history.pulse ? history.pulse + "次/分" : "/" }}</span
123
+            >
124
+            <span
125
+              >呼吸:{{
126
+                history.breathing ? history.breathing + "次/分" : "/"
127
+              }}</span
128
+            >
129
+            <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
109 130
           </div>
110
-
131
+           <div style="text-align:left;">
132
+          {{history.physical_examination}}
111 133
         </div>
112
-        <div></div>
134
+        </div>
135
+
113 136
       </div>
114 137
       <div class="recordTitle">
115 138
         <div>专科检查</div>
116
-        <div class="recordContent">{{history.special_inspection}}</div>
139
+        <div class="recordContent">{{ history.special_inspection }}</div>
117 140
       </div>
118 141
       <div class="recordTitle" style="border-bottom: 1px solid">
119 142
         <div>实验室及器械检查</div>
120
-        <div class="recordContent" style="height:250px;">{{history.lab_apparatus}}</div>
143
+        <div class="recordContent" style="height: fit-content;min-height: 250px;">
144
+          {{ history.lab_apparatus }}
145
+        </div>
121 146
       </div>
122
-      <div style="display: flex; justify-content:flex-end">
147
+      <div style="display: flex; justify-content: flex-end">
123 148
         <div class="endInfo">
124 149
           <div style="height: 100px">
125 150
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
126 151
           </div>
127 152
           <div style="display: flex">
128
-            <div>医师:{{getDoctor(history.doctor) ? getDoctor(history.doctor) : ""}}</div>
129 153
             <div>
130
-              手签:
154
+              医师:{{
155
+                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
156
+              }}
131 157
             </div>
158
+            <div>手签:</div>
159
+          </div>
160
+          <div
161
+            style="text-align: center; letter-spacing: 3px; padding-top: 20px"
162
+          >
163
+            {{ getTime(history.record_date) }}
132 164
           </div>
133
-          <div style="text-align: center; letter-spacing: 3px;padding-top:20px">{{getTime(history.record_date)}}</div>
134 165
         </div>
135 166
       </div>
136 167
     </div>
@@ -141,7 +172,7 @@ import { jsGetAge, uParseTime } from "@/utils/tools";
141 172
 
142 173
 import { getDataConfig } from "@/utils/data";
143 174
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
144
-import {getAccessList} from "@/api/patient"
175
+import { getAccessList } from "@/api/patient";
145 176
 export default {
146 177
   props: {
147 178
     patient: Object,
@@ -156,10 +187,12 @@ export default {
156 187
       orgname: "",
157 188
       history: {},
158 189
       printDate: "",
159
-      accessList:{},
160
-      blood_access_part_opera:[],
190
+      accessList: {},
191
+      blood_access_part_opera: [],
161 192
     };
162 193
   },
194
+
195
+
163 196
   methods: {
164 197
     getAge(patient) {
165 198
       var thisLen = patient.id_card_no.length;
@@ -198,7 +231,6 @@ export default {
198 231
 
199 232
           this.doctorList = doctor;
200 233
           var department = response.data.data.department;
201
-          console.log("department", department);
202 234
           this.departmentList = department;
203 235
         }
204 236
       });
@@ -220,14 +252,12 @@ export default {
220 252
         if (response.data.state == 1) {
221 253
           var patient = response.data.data.patient;
222 254
           this.patient = patient;
223
-          console.log(this.patient,'this.patient')
224 255
           var history = response.data.data.history;
225 256
           this.history = history;
226 257
           var hispatient = response.data.data.hispatient;
227 258
           this.hispatient = hispatient;
228
-          var accessList = response.data.data.accessList
229
-          console.log("accesslist2332323232",accessList)
230
-          this.accessList = accessList
259
+          var accessList = response.data.data.accessList;
260
+          this.accessList = accessList;
231 261
         }
232 262
       });
233 263
     },
@@ -241,38 +271,39 @@ export default {
241 271
       return name;
242 272
     },
243 273
     getTime(val) {
244
-      if(val < 0){
245
-        return ""
274
+      if (val < 0) {
275
+        return "";
246 276
       }
247
-      if(val == ""){
248
-      return ""
249
-      }else {
250
-      return uParseTime(val, '{y}-{m}-{d}')
277
+      if (val == "") {
278
+        return "";
279
+      } else {
280
+        return uParseTime(val, "{y}-{m}-{d}");
251 281
       }
252 282
     },
253
-    getAccessList(){
254
-      getAccessList().then(response=>{
255
-        if(response.data.state == 1){
256
-          var blood_access_part_opera = response.data.data.blood_access_part_opera
257
-          this.blood_access_part_opera = blood_access_part_opera
283
+    getAccessList() {
284
+      getAccessList().then((response) => {
285
+        if (response.data.state == 1) {
286
+          var blood_access_part_opera =
287
+            response.data.data.blood_access_part_opera;
288
+          this.blood_access_part_opera = blood_access_part_opera;
258 289
         }
259
-     })
290
+      });
260 291
     },
261
-    getAccess(id){
262
-      var name = ""
263
-      for(let i=0;i<this.blood_access_part_opera.length;i++){
264
-         if(id == this.blood_access_part_opera[i].value){
265
-             name = this.blood_access_part_opera[i].name
266
-         }
292
+    getAccess(id) {
293
+      var name = "";
294
+      for (let i = 0; i < this.blood_access_part_opera.length; i++) {
295
+        if (id == this.blood_access_part_opera[i].value) {
296
+          name = this.blood_access_part_opera[i].name;
297
+        }
267 298
       }
268
-      return name
269
-    }
299
+      return name;
300
+    },
270 301
   },
271 302
   created() {
272 303
     this.educationOptions = getDataConfig("patient", "education_types");
273 304
     // this.getAllDoctorList();
274 305
     // this.getPatientCaseHistory();
275
-    // this.getAccessList()
306
+    // this.getAccessList();
276 307
     var xtuser = this.$store.getters.xt_user;
277 308
     this.orgname = xtuser.org.org_name;
278 309
     var data = new Date();
@@ -280,12 +311,6 @@ export default {
280 311
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
281 312
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
282 313
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
283
-
284
-  },
285
-  watch: {
286
-    patientid: function (val) {
287
-      console.log("val22332323", val);
288
-    },
289 314
   },
290 315
 };
291 316
 </script>
@@ -316,8 +341,12 @@ export default {
316 341
   width: 200px;
317 342
 }
318 343
 
319
-.infoTitle .address_slot{width: 400px;} 
320
-.infoTitle .name_slot{width: 250px;}
344
+.infoTitle .address_slot {
345
+  width: 400px;
346
+}
347
+.infoTitle .name_slot {
348
+  width: 250px;
349
+}
321 350
 
322 351
 .otherInfo {
323 352
   display: flex;
@@ -350,19 +379,20 @@ export default {
350 379
 }
351 380
 .recordTitle .recordContent {
352 381
   width: 100%;
353
-  height: 150px;
382
+  height: fit-content;
383
+  min-height: 150px;
354 384
   text-align: left;
355 385
 }
356 386
 
357
-.record_Title{
358
-    display: flex;
359
-    margin-top:10px;
360
-    line-height: 24px;
361
-    padding:0 10px;
362
-    border-bottom: 2px solid #000;
387
+.record_Title {
388
+  display: flex;
389
+  margin-top: 10px;
390
+  line-height: 24px;
391
+  padding: 0 10px;
392
+  border-bottom: 2px solid #000;
363 393
 }
364 394
 
365
-.record_Title div{
395
+.record_Title div {
366 396
   width: 200px;
367 397
 }
368 398
 </style>

+ 1 - 1
src/xt_pages/hospitalStation/summary.vue Vedi File

@@ -844,7 +844,7 @@
844 844
         return uParseTime(time, '{y}-{m}-{d}')
845 845
       },
846 846
       toDetail(row) {
847
-        this.$router.push('/outpatientCharges/summaryDetail?patient_id=' + row.patient.id + '&number=' + row.number + '&id=' + row.id)
847
+        this.$router.push('/hospitalCharges/summaryDetail?patient_id=' + row.patient.id + '&number=' + row.number + '&id=' + row.id)
848 848
       }, getTime(value, temp) {
849 849
         if (value != undefined) {
850 850
           return uParseTime(value, temp)

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Vedi File

@@ -88,7 +88,7 @@
88 88
           :disabled="true"
89 89
         ></el-input>
90 90
       </el-form-item>
91
-      <!-- <el-form-item label="药物过敏史: " prop="name">
91
+      <el-form-item label="药物过敏史: " prop="name">
92 92
         <el-input
93 93
           v-model="allergic_history"
94 94
           placeholder="药物过敏史"
@@ -152,7 +152,7 @@
152 152
           v-model="lab_apparatus"
153 153
           placeholder="实验室及器械检查"
154 154
         ></el-input>
155
-      </el-form-item> -->
155
+      </el-form-item>
156 156
     </el-form>
157 157
     <div class="mainTitle">体格信息:</div>
158 158
     <el-form

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue Vedi File

@@ -112,7 +112,7 @@ export default {
112 112
       const style =
113 113
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
114 114
       const style1 =
115
-        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
115
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: fit-content;min-height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
116 116
 
117 117
       if (this.org_id != 10217 && this.org_id != 0 && this.org_id != 9675) {
118 118
         printJS({

+ 5 - 4
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue Vedi File

@@ -98,7 +98,7 @@
98 98
           {{ history.personal_history ? history.personal_history : "" }}
99 99
         </div>
100 100
       </div>
101
-
101
+ 
102 102
       <div class="otherInfo" style="min-height: 150px">
103 103
         <div class="otherName">家族史:</div>
104 104
         <div style="flex: 1">
@@ -111,7 +111,7 @@
111 111
       <!-- <div class="printTitle">病历内容</div> -->
112 112
       <div class="recordTitle">
113 113
         <div>体格检查</div>
114
-        <div class="recordContent" style="height: 250px">
114
+        <div class="recordContent" style="height: fit-content;min-height: 250px;">
115 115
           <div>
116 116
             <span
117 117
               >体温:{{
@@ -140,7 +140,7 @@
140 140
       </div>
141 141
       <div class="recordTitle" style="border-bottom: 1px solid">
142 142
         <div>实验室及器械检查</div>
143
-        <div class="recordContent" style="height: 250px">
143
+        <div class="recordContent" style="height: fit-content;min-height: 250px;">
144 144
           {{ history.lab_apparatus }}
145 145
         </div>
146 146
       </div>
@@ -379,7 +379,8 @@ export default {
379 379
 }
380 380
 .recordTitle .recordContent {
381 381
   width: 100%;
382
-  height: 150px;
382
+  height: fit-content;
383
+  min-height: 150px;
383 384
   text-align: left;
384 385
 }
385 386