Kaynağa Gözat

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 2 yıl önce
ebeveyn
işleme
a75945e327

+ 2 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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>

+ 49 - 31
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue Dosyayı Görüntüle

@@ -1,41 +1,50 @@
1 1
 <template>
2 2
     <div id='invoice-print'>
3 3
 
4
+        <div style="display:flex;justify-content: space-between;">
5
+            
6
+            <div style="position: absolute;top:40px;left:40px"></div>
7
+            
8
+            <div  style="position: absolute;top:40px;left:300px"></div>
9
+
10
+            <div style="position: absolute;top:40px;left:560px"></div>
11
+        </div>
12
+
4 13
         <div style="display:flex;justify-content: space-between;">
5 14
             <!-- 机构名称 -->
6
-            <div>{{ list.org_name }}</div>
15
+            <div style="position: absolute;top:70px;left:40px">机构名称:{{ list.org_name }}</div>
7 16
             <!-- 单据号 -->
8
-            <div  style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
17
+            <div  style="position: absolute;top:70px;left:200px">{{ list.number }}</div>
9 18
             <div></div>
10 19
             <div  style="position: absolute;left:560px;top:70px;">
11 20
             <!-- 发票序号 -->
12 21
             </div>
13
-             <div  style="position: absolute;left:660px;top:70px;">
22
+             <div  style="position: absolute;left:460px;top:70px;">
14 23
             <!-- 类别 -->
15
-            类别:
24
+            类别:医保
16 25
             </div>
17 26
         </div>
18 27
 
19 28
         <div style="display:flex;justify-content: space-between;">
20 29
             <!-- 姓名 -->
21
-            <div style="position: absolute;top:90px;left:120px;"> {{ paramsObj.name }}</div>
30
+            <div style="position: absolute;top:90px;left:40px;"> {{ paramsObj.name }}</div>
22 31
             <!-- 个人电脑编号 -->
23
-            <div style="position: absolute;top:90px;left:240px;">{{psn_no}}</div>
32
+            <div style="position: absolute;top:90px;left:220px;">{{psn_no}}</div>
24 33
             <!-- 科室 -->
25
-            <div style="position: absolute;top:90px;left:240px;">{{'血透'}}</div>
34
+            <div style="position: absolute;top:90px;left:420px;">{{'血透'}}</div>
26 35
             <!-- 床号 -->
27
-            <div style="position: absolute;top:90px;left:240px;"></div>
36
+            <div style="position: absolute;top:90px;left:560px;"></div>
28 37
         </div>
29 38
 
30 39
         <div style="display:flex;justify-content: space-between;">
31 40
             <!-- 住院号 -->
32
-            <div style="position: absolute;top:90px;left:120px;"> {{ number?number:'' }}</div>
41
+            <div style="position: absolute;top:120px;left:40px;"> {{ number?number:'' }}</div>
33 42
             <!-- 入院日期 -->
34
-            <div style="position: absolute;top:90px;left:240px;">{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
43
+            <div style="position: absolute;top:120px;left:220px;">{{in_hosptial_time?in_hosptial_time.split(' ')[0]:''}}</div>
35 44
             <!-- 出院日期 -->
36
-            <div style="position: absolute;top:90px;left:240px;">{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
45
+            <div style="position: absolute;top:120px;left:420px;">{{out_hosptial_time?out_hosptial_time.split(' ')[0]:''}}</div>
37 46
             <!-- 住院天数 -->
38
-          <div style="position: absolute;top:90px;left:240px;">{{getDay(in_hosptial_time.split(' ')[0] ,out_hosptial_time.split(' ')[0])}}</div>
47
+          <div style="position: absolute;top:120px;left:560px;">{{getDay(in_hosptial_time.split(' ')[0] ,out_hosptial_time.split(' ')[0])}}</div>
39 48
         </div>
40 49
 
41 50
         <!-- <div style="display:flex;justify-content: space-between;">
@@ -46,7 +55,7 @@
46 55
 
47 56
 
48 57
         <div style="display:flex;justify-content: space-between;">
49
-            <div style="position: absolute;top:160px;left:40px">西药</div>
58
+            <div style="position: absolute;top:160px;left:40px">西药</div>
50 59
             <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>
51 60
             <div style="position: absolute;top:160px;left:180px">检查费</div>
52 61
             <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
@@ -88,6 +97,7 @@
88 97
 
89 98
         <div>
90 99
             <span>
100
+            <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span> 
91 101
             <span  style="position: absolute;top:280px;left:180px">
92 102
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
93 103
                     {{ zhongwen.substring(0,1) }}
@@ -141,24 +151,24 @@
141 151
         </div>
142 152
 
143 153
 
144
-        <div style="position: absolute;top:310px;left:320px">
154
+        <div style="position: absolute;top:310px;left:40px">
145 155
             <!-- 个人账户支付 -->
146
-          {{list.order.acct_pay?list.order.acct_pay:''}}
156
+          个人账户支付:{{list.order.acct_pay?list.order.acct_pay:''}}
147 157
         </div>
148
-        <div style="position: absolute;top:310px;left:380px">
158
+        <div style="position: absolute;top:310px;left:250px">
149 159
             <!-- 统筹支付 -->
150
-          {{list.order.hifp_pay?list.order.hifp_pay:''}}
160
+          统筹支付:{{list.order.hifp_pay?list.order.hifp_pay:''}}
151 161
         </div>
152
-        <div style="position: absolute;top:310px;left:500px">
153
-          {{list.order.psn_cash_pay?list.order.psn_cash_pay:''}}
162
+        <div style="position: absolute;top:310px;left:480px">
163
+          现金支付:{{list.order.psn_cash_pay?list.order.psn_cash_pay:''}}
154 164
           <!-- 现金支付 -->
155 165
         </div>
156
-        <div style="position: absolute;top:340px;left:320px">
157
-          {{list.order.cvlserv_pay?list.order.cvlserv_pay:''}}
166
+        <div style="position: absolute;top:340px;left:40px">
167
+          公务员补助:{{list.order.cvlserv_pay?list.order.cvlserv_pay:''}}
158 168
           <!-- 公务员补助 -->
159 169
         </div>
160
-        <div style="position: absolute;top:340px;left:380px">
161
-          {{list.order.maf_pay?list.order.maf_pay:''}}
170
+        <div style="position: absolute;top:340px;left:250px">
171
+          医疗救助:{{list.order.maf_pay?list.order.maf_pay:''}}
162 172
           <!-- 医疗救助 -->
163 173
         </div>
164 174
         <!-- 大病 -->
@@ -171,31 +181,39 @@
171 181
           {{list.order.oth_pay?list.order.oth_pay:''}}
172 182
 
173 183
         </div> -->
174
-        <div style="position: absolute;top:370px;left:320px">
184
+        <div style="position: absolute;top:370px;left:40px">
175 185
             <!-- 预交款合计 -->
176
-
186
+            预交款合计:
177 187
         </div>
178
-        <div style="position: absolute;top:370px;left:380px">
188
+        <div style="position: absolute;top:370px;left:250px">
179 189
             <!-- 补交款 -->
190
+            补交款:
180 191
         </div>
181
-        <div style="position: absolute;top:370px;left:500px">
192
+        <div style="position: absolute;top:370px;left:480px">
182 193
             <!-- 应退款 -->
194
+            应退款:
183 195
         </div>
184 196
         <div>
185 197
             <div style="position: absolute;top:400px;left:40px">
186 198
                 <!-- 开票日期 -->
187
-              {{printDate}}
199
+              开票日期:{{printDate}}
188 200
 
189 201
             </div>
190 202
             <div style="position: absolute;top:400px;left:280px">
191 203
                 <!-- 结算日期: -->
192
-              {{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
204
+              结算日期:{{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
193 205
             </div>
194
-            <div style="position: absolute;top:400px;left:580px">
195
-                <!-- 经手人: -->
206
+            <div style="position: absolute;top:400px;left:500px">
207
+               经手人:<!-- 经手人: -->
196 208
               {{list.admin_user_name}}
197 209
             </div>
198 210
         </div>
211
+
212
+        <div>
213
+            <div style="position: absolute;top:600px;left:40px">
214
+                <!-- 开票人: -->
215
+            </div>
216
+        </div>
199 217
     </div>
200 218
 </template>
201 219
 

+ 9 - 3
src/xt_pages/hospitalStation/listPrint.vue Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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>

+ 4 - 5
src/xt_pages/hospitalStation/recordPrint.vue Dosyayı Görüntüle

@@ -13,7 +13,7 @@
13 13
 
14 14
      <div class="dialysisPage" style="padding-top: 40px">
15 15
       <printOne
16
-        v-if="org_id != 9675 && org_id != 9671 &&org_id != 0"
16
+        v-if="org_id != 10217&&org_id != 9675 && org_id != 9671 &&org_id != 0 &&org_id != 10164"
17 17
         ref="printOne"
18 18
         v-bind:childResponse="childResponse"
19 19
         :patient="patient"
@@ -22,7 +22,7 @@
22 22
         :patientid="patientid"
23 23
       ></printOne>
24 24
       <printTwo
25
-        v-if="org_id == 10217 || org_id == 0 ||org_id==9675||org_id==9671"
25
+        v-if="org_id == 10217 || org_id == 0 ||org_id==9675||org_id==9671||org_id == 10164"
26 26
         ref="printTwo"
27 27
         v-bind:childResponse="childResponse"
28 28
         :patient="patient"
@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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)

+ 3 - 2
src/xt_pages/outpatientCharges/summaryDetail.vue Dosyayı Görüntüle

@@ -111,13 +111,13 @@
111 111
             <li style="width:30%;">基本医疗保险统筹基金支出:{{order.hifp_pay}}元</li>
112 112
             <li style="width:30%;">医疗救助基金支出:{{order.maf_pay.toFixed(2)}}元</li>
113 113
             <li style="width:30%;">个人账户支付金额:{{ order.acct_pay}}</li>
114
-            <li style="width:30%;">个人支付金额:{{order.psn_cash_pay.toFixed(2)}}元</li>
114
+            <li v-if="this.hisPatientInfo.balance_accounts_type == 2" style="width:30%;">个人支付金额:{{order.medfee_sumamt.toFixed(2) }}元</li>
115
+            <li v-else="this.hisPatientInfo.balance_accounts_type == 2" style="width:30%;">个人支付金额:{{order.psn_cash_pay.toFixed(2)}}元</li>
115 116
           </ul>
116 117
 
117 118
         </div>
118 119
       </div>
119 120
     </div>
120
-
121 121
     <div v-if="listVisible">
122 122
       <el-dialog
123 123
           class="centerDialog"
@@ -200,6 +200,7 @@ export default {
200 200
   },created(){
201 201
     this.GetOrderDetail()
202 202
   },methods:{
203
+      // console.log("hisPatientInfo",this.hisPatientInfo)
203 204
     open(val){
204 205
       if(val == 1){
205 206
         this.paramsObj.id == this.$route.query.id

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Dosyayı Görüntüle

@@ -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

+ 3 - 3
src/xt_pages/outpatientDoctorStation/recordPrint.vue Dosyayı Görüntüle

@@ -13,7 +13,7 @@
13 13
 
14 14
     <div class="dialysisPage" style="padding-top: 40px">
15 15
       <printOne
16
-        v-if="org_id && org_id != 9675 && org_id != 9671 && org_id != 0"
16
+        v-if="org_id != 10217 && org_id != 9675 && org_id != 9671 && org_id != 0 &&org_id != 10164"
17 17
         ref="printOne"
18 18
         v-bind:childResponse="childResponse"
19 19
         :patient="patient"
@@ -23,7 +23,7 @@
23 23
       ></printOne>
24 24
       <printTwo
25 25
         v-if="
26
-          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671
26
+          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671 || org_id == 10164
27 27
         "
28 28
         ref="printTwo"
29 29
         v-bind:childResponse="childResponse"
@@ -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 Dosyayı Görüntüle

@@ -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
 

+ 3 - 4
src/xt_pages/outpatientTool/components/detailStatistics.vue Dosyayı Görüntüle

@@ -183,7 +183,7 @@ export default {
183 183
        if(response.data.state == 1){
184 184
           var list =  response.data.data.list
185 185
           this.tableData = []
186
-          console.log("list23232332232322323",list)
186
+          // console.log("list23232332232322323",list)
187 187
           for(let i=0;i<list.length;i++){
188 188
             for(let j=0;j<list[i].orders.length;j++){
189 189
               for(let z=0;z<list[i].orders[j].order_info.length;z++){
@@ -203,12 +203,11 @@ export default {
203 203
           obj.total_price = (obj.total_price).toFixed(2)
204 204
           this.tableData.push(obj)
205 205
           
206
-          console.log("tabledata",this.tableData)
206
+          // console.log("tabledata",this.tableData)
207 207
        }
208 208
      })
209 209
     },
210 210
     getAllPice(){
211
-      console.log("hhhhh",this.tableData)
212 211
       var total_price = 0
213 212
       for(let i=0;i<this.tableData.length;i++){
214 213
         if(this.tableData[i].index =="合计"){
@@ -219,7 +218,7 @@ export default {
219 218
     }
220 219
   },
221 220
   created() {
222
-   // this.getHisSummaryDetailList()
221
+    this.getHisSummaryDetailList()
223 222
   },
224 223
   watch:{
225 224
     "patient_id":function(){

+ 60 - 7
src/xt_pages/outpatientTool/components/gatherStatistics.vue Dosyayı Görüntüle

@@ -43,21 +43,28 @@
43 43
       <div>
44 44
       </div>
45 45
     </div>
46
-    <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
46
+    <el-table :data="tableList" border :row-style="{ color: '#303133' }" ref="table"
47 47
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
48 48
               show-summary
49 49
               max-height="600"
50 50
               v-loading="detail_loading"
51 51
               highlight-current-row>
52
-      <el-table-column type="index" label="序号" width="60px" align="center"></el-table-column>
52
+      <el-table-column type="index" label="序号" width="60px" align="center">
53
+           <template slot-scope="scope">{{scope.row.index}}</template>
54
+      </el-table-column>
53 55
       <el-table-column align="center" prop="name" label="处方日期">
54 56
         <template slot-scope="scope"></template>
55 57
       </el-table-column>
56 58
       <el-table-column align="center" prop="name" label="费用分类">
57
-        <template slot-scope="scope"></template>
59
+        <template slot-scope="scope">
60
+
61
+        </template>
58 62
       </el-table-column>
59 63
       <el-table-column align="center" prop="name" label="项目名称">
60
-        <template slot-scope="scope"></template>
64
+        <template slot-scope="scope">
65
+           <span v-if="scope.row.advice_id > 0 ">{{getAdviceName(scope.row.advice_id)}}</span>
66
+           <span v-if="scope.row.project_id > 0 ">{{getProjectName(scope.row.project_id)}}</span>
67
+        </template>
61 68
       </el-table-column>
62 69
       <el-table-column align="center" prop="name" label="规格型号">
63 70
         <template slot-scope="scope"></template>
@@ -109,6 +116,7 @@ export default {
109 116
       sameRowArr: [],
110 117
       keywords: '',
111 118
       tableData: [],
119
+      tableList:[],
112 120
       chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
113 121
       item_type: '0',
114 122
       items: [
@@ -117,7 +125,7 @@ export default {
117 125
         { id: 2, name: '项目' }
118 126
 
119 127
       ]
120
-
128
+     
121 129
     }
122 130
   },
123 131
   methods: {
@@ -143,15 +151,60 @@ export default {
143 151
       }
144 152
      getGatherDetailList(params).then(response=>{
145 153
        if(response.data.state == 1){
146
-         var detailList = response.data.data.detailList
147
-         console.log("detailist232323322332",detailList)
154
+         var projectlist = response.data.data.projectlist
155
+         for(let i=0;i<projectlist.length;i++){
156
+          this.tableList.push(projectlist[i])
157
+         }
158
+         console.log("detailist232323322332",projectlist)
159
+         var advicelist = response.data.data.advicelist
160
+         for(let i=0;i<advicelist.length;i++){
161
+           this.tableList.push(advicelist[i])
162
+         }
163
+         for(let i=0;i<this.tableData.length;i++){
164
+           this.tableList[i].index = i +1
165
+         }
166
+         console.log("advicelist332233323232323232",this.tableList)
167
+      
148 168
          var list = response.data.data.list
149 169
          console.log("list233223232323",list)
170
+         for(let i=0;i<list.length;i++){
171
+            for(let j=0;j<list[i].orders.length;j++){
172
+              for(let z=0;z<list[i].orders[j].order_info.length;z++){
173
+                  list[i].orders[j].order_info[z].record_date = list[i].orders[j].settle_accounts_date
174
+                  list[i].orders[j].order_info[z].number = list[i].orders[j].number
175
+                  this.tableData.push(list[i].orders[j].order_info[z])
176
+               }
177
+            }
178
+          }
179
+        for(let i=0;i<this.tableData.length;i++){
180
+          this.tableData[i].index = i+1
181
+          this.tableData[i].total_price = 0
182
+          this.tableData[i].total_price = (this.tableData[i].cnt * this.tableData[i].pric).toFixed(2)
183
+        }
184
+        console.log("322323232323322323",this.tableData)
150 185
        }
151 186
      })
152 187
 
153 188
 
154 189
     },
190
+    getAdviceName(id){
191
+      var drug_name = ""
192
+      for(let i= 0;i<this.tableData.length;i++){
193
+         if(id == this.tableData[i].advice_id){
194
+           drug_name = this.tableData[i].advice.advice_name
195
+         }
196
+      }
197
+      return drug_name
198
+    },
199
+    getProjectName(id){
200
+     var project_name = ""
201
+     for(let i=0;i<this.tableData.length;i++){
202
+       if(id == this.tableData[i].project_id){
203
+         project_name = this.tableData[i].project.project.project_name
204
+       }
205
+     }
206
+     return project_name
207
+    }
155 208
   },
156 209
   created() {
157 210
     this.getGatherDetailList()

+ 1 - 4
src/xt_pages/stock/drugs/components/drugOutDetail.vue Dosyayı Görüntüle

@@ -420,6 +420,7 @@ export default {
420 420
         this.tableList = []
421 421
         if(response.data.state == 1){
422 422
           var order = response.data.data.order
423
+          console.log("order233322332323223",order)
423 424
           var obj = {id:0,storehouse_name:"全部"}
424 425
           this.houseList = []
425 426
           this.houseList.push(obj)
@@ -441,22 +442,18 @@ export default {
441 442
                  }
442 443
                  if(order[i].count_unit == order[i].max_unit){
443 444
                    order[i].total_price += order[i].count * order[i].price * order[i].min_number
444
-                  //  total_price += order[i].total_price
445 445
                  }
446 446
                 
447 447
                }
448 448
                if(order[i].price ==0 ){
449 449
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
450 450
                     order[i].total_price = order[i].count * this.getPrice(order[i].drug_id)
451
-                   // total_price += order[i].count * this.getPrice(order[i].drug_id)
452 451
                    total_price +=order[i].total_price
453 452
                     order[i].price = this.getPrice(order[i].drug_id)
454 453
                  }
455 454
                 
456 455
                 if(order[i].count_unit == order[i].max_unit){
457 456
                    order[i].total_price += order[i].count * this.getPrice(order[i].drug_id) * order[i].min_number
458
-                   //total_price += order[i].count * this.getPrice(order[i].drug_id)
459
-                  //  order[i].total_price = order[i].total_price
460 457
                    order[i].price = this.getPrice(order[i].drug_id)
461 458
                 }
462 459
                  

+ 14 - 8
src/xt_pages/stock/drugs/drugStockOutOrder.vue Dosyayı Görüntüle

@@ -248,8 +248,8 @@
248 248
           </el-table-column> -->
249 249
           <el-table-column label="总价" align="center">
250 250
             <template slot-scope="scope">
251
-              <span v-if="scope.row.price > 0">{{getAllPriceOne(scope.row.drug_id,scope.row.price,scope.row.price,scope.row.max_unit,scope.row.count_unit,scope.row.min_number).toFixed(2)}}</span>
252
-              <span v-if="scope.row.price == 0">{{getAllPriceOne(scope.row.drug_id,scope.row.retail_price,scope.row.min_price,scope.row.max_unit,scope.row.count_unit,scope.row.min_number).toFixed(2)}}</span>
251
+              <span v-if="scope.row.price > 0">{{getAllPriceOne(scope.row.drug_id,scope.row.price,scope.row.price,scope.row.max_unit,scope.row.count_unit,scope.row.min_number,scope.row.is_sys).toFixed(2)}}</span>
252
+              <span v-if="scope.row.price == 0">{{getAllPriceOne(scope.row.drug_id,scope.row.retail_price,scope.row.min_price,scope.row.max_unit,scope.row.count_unit,scope.row.min_number,scope.row.is_sys).toFixed(2)}}</span>
253 253
             </template>
254 254
           </el-table-column>
255 255
           <el-table-column label="生产厂家" align="center">
@@ -961,7 +961,7 @@ export default {
961 961
           this.tableShow = true
962 962
           this.tableList = []
963 963
           var list =  response.data.data.list
964
-
964
+         console.log("lisrt233232323232233223",list)
965 965
          this.manufacturerList = response.data.data.manufacturerList
966 966
          this.dealerList = response.data.data.dealerList
967 967
          var drugFlowList = response.data.data.drugFlowList
@@ -971,6 +971,8 @@ export default {
971 971
             for(let i=0;i<drugFlowList.length;i++){
972 972
                 if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
973 973
                     drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
974
+                   
975
+
974 976
                 }
975 977
                 if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
976 978
                     drugFlowList[i].count = drugFlowList[i].count
@@ -983,16 +985,20 @@ export default {
983 985
          }
984 986
          if(is_sys == 0 || is_sys == 12){
985 987
             var flowlist = response.data.data.flowlist
988
+            console.log("flowlist233232232323233223",flowlist)
986 989
             this.drugFlowList = []
987 990
             for(let i=0;i<flowlist.length;i++){
988 991
               if(flowlist[i].count_unit == flowlist[i].max_unit){
989
-                  flowlist[i].count = flowlist[i].count * flowlist[i].min_number
992
+                flowlist[i].count = flowlist[i].count * flowlist[i].min_number
993
+                flowlist[i].count_unit = flowlist[i].min_unit
990 994
               }
991 995
               if(flowlist[i].count_unit == flowlist[i].min_unit){
992 996
                   flowlist[i].count = flowlist[i].count
993 997
               }
994 998
             }
995 999
             this.drugFlowList = flowlist
1000
+            console.log("this.drugFlowList32323232322323323232322323我的",flowlist)
1001
+
996 1002
          }
997 1003
 
998 1004
          for(let i=0;i<list.length;i++){
@@ -1256,8 +1262,8 @@ export default {
1256 1262
      formatJson(filterVal, jsonData) {
1257 1263
       return jsonData.map(v => filterVal.map(j => v[j]));
1258 1264
      },
1259
-      getAllPriceOne(drug_id,price,min_price,max_unit,count_unit,min_number){
1260
-        console.log("drugfalowlist22332233232",this.drugFlowList)
1265
+      getAllPriceOne(drug_id,price,min_price,max_unit,count_unit,min_number,is_sys){
1266
+        
1261 1267
         var total = 0
1262 1268
         var all_price = 0
1263 1269
         for(let i=0;i<this.drugFlowList.length;i++){
@@ -1265,10 +1271,10 @@ export default {
1265 1271
               total += this.drugFlowList[i].count
1266 1272
           }
1267 1273
         }
1268
-        if(max_unit == count_unit){
1274
+        if(max_unit == count_unit && is_sys!=0 && is_sys!=12){
1269 1275
           total = total * min_number
1270 1276
         }
1271
-        all_price = total * price
1277
+        all_price = (total/min_number) * price
1272 1278
 
1273 1279
         return  all_price
1274 1280
       },

+ 4 - 4
src/xt_pages/stock/drugs/inventory.vue Dosyayı Görüntüle

@@ -78,15 +78,15 @@
78 78
               </el-table-column>
79 79
               <el-table-column prop="name" label="盘点前数量" width="180"  align="center">
80 80
                 <template slot-scope="scope">
81
-                    <span><el-input style="width:50px" v-model="scope.row.stock_max_number" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
82
-                    <span v-if="scope.row.XtBaseDrug.max_unit!=scope.row.XtBaseDrug.min_unit"><el-input style="width:50px" v-model="scope.row.stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
81
+                    <span><el-input style="width:100px" v-model="scope.row.stock_max_number" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
82
+                    <span v-if="scope.row.XtBaseDrug.max_unit!=scope.row.XtBaseDrug.min_unit"><el-input style="width:100px" v-model="scope.row.stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
83 83
                   </template> 
84 84
               </el-table-column>
85 85
 
86 86
              <el-table-column prop="name" label="盘点后数量" width="180"  align="center">
87 87
                 <template slot-scope="scope">
88
-                  <el-input style="width:50px" v-model="scope.row.last_stock_max_number"></el-input>{{scope.row.max_unit}}
89
-                 <span v-if="scope.row.XtBaseDrug.max_unit!=scope.row.XtBaseDrug.min_unit"><el-input style="width:50px" v-model="scope.row.last_stock_min_number"></el-input>{{scope.row.min_unit}}</span> 
88
+                  <el-input style="width:100px" v-model="scope.row.last_stock_max_number"></el-input>{{scope.row.max_unit}}
89
+                 <span v-if="scope.row.XtBaseDrug.max_unit!=scope.row.XtBaseDrug.min_unit"><el-input style="width:100px" v-model="scope.row.last_stock_min_number"></el-input>{{scope.row.min_unit}}</span> 
90 90
                  </template> 
91 91
               </el-table-column>
92 92