Browse Source

10月30 杏康

yq1 5 months ago
parent
commit
a39f9d5a3d

+ 31 - 23
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

@@ -203,7 +203,7 @@
203 203
                         </div>
204 204
                         次/分
205 205
                       </div>
206
-                      <div class="inline_block" style="flex: 1;">
206
+                      <div class="inline_block" style="flex: 1.5;">
207 207
                         BP:
208 208
                         <div class="under_line" style="width: 50px; text-align: center">
209 209
                           {{
@@ -222,6 +222,13 @@
222 222
                         </div>
223 223
                         mmHg
224 224
                       </div>
225
+                      <div class="inline_block" style="flex: 1.5;">
226
+                        穿刺方式:
227
+                        <div class="under_line" style="width: 68%;white-space: normal;">
228
+                          {{record.assessment_before_dislysis.puncture_way ? 
229
+                            record.assessment_before_dislysis.puncture_way : '/'}}
230
+                        </div>
231
+                      </div>
225 232
                     </div>
226 233
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
227 234
                       <div class="inline_block" style="flex: 1.5;">
@@ -312,15 +319,7 @@
312 319
                         </div>
313 320
                         ml/min
314 321
                       </div>
315
-                      <div class="inline_block" style="flex: 1;">
316
-                        预透时间:
317
-                        <div class="under_line"
318
-                          style=" width: 50%; text-align: center; white-space: normal; "
319
-                        >
320
-                          {{ record.prescription.dialysis_duration_hour ? record.prescription.dialysis_duration_hour : "0"}}h
321
-                          {{ record.prescription.dialysis_duration_minute ? record.prescription.dialysis_duration_minute : "0"}}min
322
-                        </div>
323
-                      </div>
322
+                      
324 323
                     </div>
325 324
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
326 325
                       <div class="inline_block" style="flex: 1">
@@ -352,8 +351,26 @@
352 351
                           }}
353 352
                         </div>
354 353
                       </div>
355
-
356
-                      <div class="inline_block" style="flex: 1.3">
354
+                      <div class="inline_block" style="flex: 1;">
355
+                        预透时间:
356
+                        <div class="under_line"
357
+                          style=" width: 50%; text-align: center; white-space: normal; "
358
+                        >
359
+                          {{ record.prescription.dialysis_duration_hour ? record.prescription.dialysis_duration_hour : "0"}}h
360
+                          {{ record.prescription.dialysis_duration_minute ? record.prescription.dialysis_duration_minute : "0"}}min
361
+                        </div>
362
+                      </div>
363
+                      <div class="inline_block" style="flex: 1">
364
+                        干体重:
365
+                        <div class="under_line" style="width: 100px; text-align: center">
366
+                          {{
367
+                            record.assessment_before_dislysis.dry_weight 
368
+                            ? record.assessment_before_dislysis.dry_weight : "/"
369
+                          }}
370
+                        </div>
371
+                        kg
372
+                      </div>
373
+                      <!-- <div class="inline_block" style="flex: 1.3">
357 374
                         可复用透析器使用次数:
358 375
                         <div class="under_line"
359 376
                           style="width: 20%; text-align: center"
@@ -378,19 +395,10 @@
378 395
                         >
379 396
                           {{ }}
380 397
                         </div>
381
-                      </div>
398
+                      </div> -->
382 399
                     </div>
383 400
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
384
-                      <div class="inline_block" style="flex: 1">
385
-                        干体重:
386
-                        <div class="under_line" style="width: 100px; text-align: center">
387
-                          {{
388
-                            record.assessment_before_dislysis.dry_weight 
389
-                            ? record.assessment_before_dislysis.dry_weight : "/"
390
-                          }}
391
-                        </div>
392
-                        kg
393
-                      </div>
401
+                      
394 402
                       <div class="inline_block" style="flex: 1">
395 403
                         上次透后体重:
396 404
                         <div class="under_line" style="width: 50px; text-align: center">

+ 60 - 73
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue View File

@@ -591,7 +591,7 @@
591 591
                       <div class="under_line" style="width: 70px; text-align: center">
592 592
                        <span v-if="dialysisOrder!=null">{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
593 593
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
594
-                        </span> 
594
+                        </span>
595 595
                       </div>
596 596
                     </div>
597 597
                   </div>
@@ -931,11 +931,7 @@
931 931
                     <tbody>
932 932
                       <tr>
933 933
                         <td
934
-                          :colspan="
935
-                            prescription.mode_id == 2 ||
936
-                            prescription.mode_id == 5
937
-                              ? 14: 13
938
-                          "
934
+                          colspan="14"
939 935
                           style=" letter-spacing: 5px;text-align: center;
940 936
                             font-weight: 520;font-size: 16px;
941 937
                             padding: 0px 8px;line-height: 30px;"
@@ -990,7 +986,7 @@
990 986
                           {{ monitor.replacement_rate ? monitor.replacement_rate : '0' }} /
991 987
                           {{ monitor.displacement_quantity ? monitor.displacement_quantity : '0'  }}
992 988
                         </td>
993
-                        <!-- 钠浓度(mmol/L)/温度°C -->
989
+                        <!-- 钠浓度(mmol/L)/温度°C  -->
994 990
                         <td>
995 991
                           {{ monitor.sodium_concentration ? monitor.sodium_concentration : "0" }} /
996 992
                           {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : '0' }}
@@ -1249,8 +1245,7 @@
1249 1245
                     </div>
1250 1246
                   </div>
1251 1247
 
1252
-                  <div
1253
-                    class="row"
1248
+                  <div class="row"
1254 1249
                     style="padding: 2px 0; line-height: 23px; display: flex"
1255 1250
                   >
1256 1251
                     <div
@@ -1282,8 +1277,7 @@
1282 1277
               </tr>
1283 1278
               <tr>
1284 1279
                 <td colspan="7">
1285
-                  <div
1286
-                    class="row"
1280
+                  <div class="row"
1287 1281
                     style="padding: 2px 0; line-height: 23px; display: flex"
1288 1282
                   >
1289 1283
                     <div >
@@ -1567,8 +1561,6 @@
1567 1561
                   </div>
1568 1562
                 </td>
1569 1563
               </tr>
1570
-
1571
-
1572 1564
             </tbody>
1573 1565
           </table>
1574 1566
 
@@ -1819,6 +1811,7 @@ export default {
1819 1811
 
1820 1812
     checkData() {
1821 1813
       var checkDate =[]
1814
+      var monearr = []
1822 1815
       if (this.predialysis.temperature == '') {
1823 1816
         const obj = "透前体温"
1824 1817
         checkDate.push(obj)
@@ -1886,11 +1879,11 @@ export default {
1886 1879
       } if (this.afterdialysis.weight_after == 0) {
1887 1880
         const obj20 = "透后体重"
1888 1881
         checkDate.push(obj20)
1889
-      } 
1882
+      }
1890 1883
       if (this.afterdialysis.weight_loss == 0) {
1891 1884
         const obj21 = "体重减少"
1892 1885
         checkDate.push(obj21)
1893
-      } 
1886
+      }
1894 1887
       if (this.prescription.target_ultrafiltration == 0) {
1895 1888
         const obj22 = "处方脱水量"
1896 1889
         checkDate.push(obj22)
@@ -1938,13 +1931,8 @@ export default {
1938 1931
       ) {
1939 1932
         const obj34 = "首剂"
1940 1933
         checkDate.push(obj34)
1941
-      } 
1942
-      // if (this.prescription.anticoagulant_weichi == 0 &&
1943
-      //   this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1944
-      // ) {
1945
-      //   const obj35 = "维持"
1946
-      //   checkDate.push(obj35)
1947
-      // } 
1934
+      }
1935
+
1948 1936
       if (this.prescription.anticoagulant_zongliang == 0 &&
1949 1937
         this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1950 1938
       ) {
@@ -2046,55 +2034,54 @@ export default {
2046 2034
           }
2047 2035
         })
2048 2036
       }
2049
-      // if (this.tableAdvice.length > 0) {
2050
-      //   let num = 0;
2051
-      //   this.tableAdvice.map((item) => {
2052
-      //     if (item.id > 0 && (item.created_time || item.start_time)) {
2053
-      //       this.users.map((it) => {
2054
-      //         if (it.id == item.advice_doctor) {
2055
-      //           if (it.user_type == 3) {
2056
-      //             num++;
2057
-      //             this.$message.closeAll();
2058
-      //             this.$message.error("存在不是医生保存的医嘱");
2059
-      //           } else if (
2060
-      //             it.id == item.execution_staff &&
2061
-      //             item.execution_staff > 0
2062
-      //           ) {
2063
-      //             if (it.user_type == 2) {
2064
-      //               num++;
2065
-      //               this.$message.closeAll();
2066
-      //               this.$message.error("存在不是护士执行的医嘱");
2067
-      //             }
2068
-      //           } else if (it.id == item.checker && item.checker > 0) {
2069
-      //             if (it.user_type == 2) {
2070
-      //               num++;
2071
-      //               this.$message.closeAll();
2072
-      //               this.$message.error("存在不是护士核对的医嘱");
2073
-      //             }
2074
-      //           }
2075
-      //         } else if (
2076
-      //           it.id == item.execution_staff &&
2077
-      //           item.execution_staff > 0
2078
-      //         ) {
2079
-      //           if (it.user_type == 2) {
2080
-      //             num++;
2081
-      //             this.$message.closeAll();
2082
-      //             this.$message.error("存在不是护士执行的医嘱");
2083
-      //           }
2084
-      //         } else if (it.id == item.checker && item.checker > 0) {
2085
-      //           if (it.user_type == 2) {
2086
-      //             num++;
2087
-      //             this.$message.closeAll();
2088
-      //             this.$message.error("存在不是护士核对的医嘱");
2089
-      //           }
2090
-      //         }
2091
-      //       });
2092
-      //     }
2093
-      //   });
2094
-      //   if (num == 0) {
2095
-      //     this.$message.success("核对完成");
2096
-      //   }
2097
-      // }
2037
+      if(this.monitors.length >0){
2038
+
2039
+        for(let i in this.monitors){
2040
+          if(this.monitors[i].blood_flow_volume ==0){
2041
+            const obj55 = '监测第'+((i*1)+1)+'行血流量'
2042
+            monearr.push(obj55)
2043
+          } if(this.monitors[i].venous_pressure ==0 ||
2044
+               this.monitors[i].transmembrane_pressure ==0
2045
+          ){
2046
+            const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
2047
+            monearr.push(obj56)
2048
+          } if(this.monitors[i].ultrafiltration_rate ==0){
2049
+            const obj57 = '监测第'+((i*1)+1)+'行超滤率'
2050
+            monearr.push(obj57)
2051
+          } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
2052
+            const obj53 = '监测第'+((i*1)+1)+'行超滤量'
2053
+            monearr.push(obj53)
2054
+          } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
2055
+          ){
2056
+            const obj58 = '监测第'+((i*1)+1)+'行置换率'
2057
+            monearr.push(obj58)
2058
+          } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
2059
+            const obj54 = '监测第'+((i*1)+1)+'行置换量'
2060
+            monearr.push(obj54)
2061
+          }  if(this.monitors[i].sodium_concentration ==0 ){
2062
+            // this.monitors[i].temperature == 0
2063
+            const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
2064
+            monearr.push(obj59)
2065
+          } if(this.monitors[i].pulse_frequency ==0){
2066
+            const obj60 = '监测第'+((i*1)+1)+'行脉搏'
2067
+            monearr.push(obj60)
2068
+          } if(this.monitors[i].breathing_rate ==0){
2069
+            const obj61 = '监测第'+((i*1)+1)+'行呼吸'
2070
+            monearr.push(obj61)
2071
+          } if(this.monitors[i].systolic_blood_pressure ==0 ||
2072
+                this.monitors.diastolic_blood_pressure==0){
2073
+            const obj62 = '监测第'+((i*1)+1)+'行血压'
2074
+            monearr.push(obj62)
2075
+          }
2076
+
2077
+        }
2078
+      }
2079
+      if(monearr.length>0){
2080
+       checkDate =checkDate.concat(monearr)
2081
+        console.log('1111',checkDate.concat(monearr));
2082
+      }
2083
+      console.log('monearr监测',checkDate,monearr);
2084
+
2098 2085
       this.getcheckData(checkDate)
2099 2086
     },
2100 2087
     getDisplaceLiquiPart: function (val) {
@@ -2429,11 +2416,11 @@ export default {
2429 2416
         }
2430 2417
 
2431 2418
         this.jilurow = this.monitors.length + 1;
2432
-        
2419
+
2433 2420
         if(this.advices!=null && this.advices.length>0){
2434 2421
           this.advice_jilurow = this.advices.length + 1;
2435 2422
         }
2436
-       
2423
+
2437 2424
 
2438 2425
         var childMap = {};
2439 2426
         for (const index in this.advices) {

+ 243 - 159
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue View File

@@ -29,7 +29,7 @@
29 29
               <div class="inline_block under_line" style="width:50px">{{ queryParams.xtdate.slice(8,11) }}</div>日
30 30
           </div>
31 31
           <div class="inline_block" style="margin-right:10px;">
32
-            姓名 
32
+            姓名
33 33
             <div class="inline_block under_line" style="width:80px;text-align: center;">
34 34
                 {{ patientInfo.name ? patientInfo.name : "" }}
35 35
             </div>
@@ -47,7 +47,7 @@
47 47
48 48
           </div>
49 49
           <div class="inline_block" style="margin-right:10px;">
50
-              机器编号 
50
+              机器编号
51 51
               <div class="inline_block under_line" style="width:80px;">
52 52
               {{ getNumber() }}
53 53
               </div>
@@ -59,7 +59,7 @@
59 59
         <div style="border-bottom: 2px solid #000;width:100%;"></div>
60 60
         <div class="row">
61 61
             <div class="inline_block" style="margin-right:30px;">
62
-              血液净化方式 
62
+              血液净化方式
63 63
               <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
64 64
                 /
65 65
               </div>
@@ -122,13 +122,13 @@
122 122
               </div>
123 123
             </div>
124 124
             <div class="inline_block" style="margin-right:30px;">
125
-              血液净化器类型 
125
+              血液净化器类型
126 126
               <div class="inline_block under_line" style="width:150px;text-align: center;">
127 127
                   {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : ''}}
128 128
               </div>
129 129
             </div>
130 130
             <div class="inline_block" style="margin-right:30px;">
131
-              透析液配方 
131
+              透析液配方
132 132
               <div class="inline_block under_line" style="width:150px;text-align: center;">
133 133
                   {{ prescription.dialysate_formulation_name ? prescription.dialysate_formulation_name : ''}}
134 134
               </div>
@@ -139,10 +139,10 @@
139 139
           <div class="inline_block under_line" style="width:200px;text-align: left;">
140 140
             {{ predialysis.blood_access_part_id }}
141 141
           </div>
142
-       
143
-          血管通路 
142
+
143
+          血管通路
144 144
           <div class="inline_block under_line" style="width:200px;text-align: left;">
145
-            
145
+
146 146
             {{ predialysis.blood_access_part_opera_name?predialysis.blood_access_part_opera_name:"/" }}
147 147
             <!-- <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('内瘘-右') > -1 ? true : false" showValue="内瘘"></label-box>
148 148
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('内瘘-左') > -1 ? true : false" showValue="左"></label-box>
@@ -158,7 +158,7 @@
158 158
             &nbsp;
159 159
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左-股')>-1?true:predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右-股')>-1?true:false" showValue="股"></label-box>
160 160
             &nbsp;
161
-           
161
+
162 162
             <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左')>-1?true:predialysis.blood_access_part_opera_name.indexOf('股静脉-右')>-1?true:false" showValue="股静脉"></label-box>
163 163
             (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-左') > -1 ? true : false" showValue="左"></label-box>
164 164
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉-右') > -1 ? true : false" showValue="右"></label-box>)
@@ -167,7 +167,7 @@
167 167
             &nbsp; -->
168 168
           </div>
169 169
         </div>
170
-       
170
+
171 171
         <div class="row">
172 172
           导管
173 173
           <div class="inline_block under_line" style="width:200px;text-align: left;">
@@ -179,11 +179,15 @@
179 179
           </div>
180 180
         </div>
181 181
         <div class="row">
182
-          抗凝药物 
182
+          抗凝药物
183 183
           <div class="inline_block under_line" style="width:92%;text-align: left;">
184 184
             <label-box :isChecked="prescription.anticoagulant == '普通肝素' ? true : false" showValue="普通肝素"></label-box>&nbsp;
185 185
             <label-box :isChecked="prescription.anticoagulant == '甲磺酸萘莫司他' ? true : false" showValue="甲磺酸萘莫司他"></label-box>&nbsp;
186
-            <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box>
186
+            <label-box :isChecked="(prescription.anticoagulant == '低分子肝素钙'||
187
+                  prescription.anticoagulant == '低分子肝素钠'||
188
+                  prescription.anticoagulant == '低分子肝素') ? true : false" showValue="低分子肝素">
189
+            </label-box>&nbsp;
190
+            <!-- <label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="低分子肝素"></label-box> -->
187 191
             (<label-box :isChecked="prescription.anticoagulant == '低分子肝素钙' ? true : false" showValue="钙"></label-box>
188 192
               <label-box :isChecked="prescription.anticoagulant == '低分子肝素钠' ? true : false" showValue="钠"></label-box>)
189 193
             <div class="inline_block">
@@ -197,7 +201,7 @@
197 201
               <span v-if="prescription.anticoagulant == '普通肝素'">mg</span>
198 202
               <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
199 203
               <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
200
-              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp; 
204
+              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
201 205
             </div>
202 206
             <div class="inline_block">
203 207
               追加
@@ -210,7 +214,7 @@
210 214
               <span v-if="prescription.anticoagulant == '普通肝素'">mg/h</span>
211 215
               <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
212 216
               <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
213
-              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp; 
217
+              <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>&nbsp;
214 218
             </div>
215 219
             <div class="inline_block">
216 220
               总量
@@ -277,7 +281,7 @@
277 281
             </div>
278 282
         </div>
279 283
         <div class="row">
280
-          透前评估 
284
+          透前评估
281 285
           <div class="inline_block under_line" style="width:50%;text-align: left;margin-right:30px;">
282 286
             <div class="inline_block" style="margin-right:30px;">
283 287
               体温
@@ -332,8 +336,10 @@
332 336
         <div class="row">
333 337
           上机医生
334 338
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
335
-            <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
336
-            <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
339
+            <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''">
340
+              {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }}
341
+            </span>
342
+            <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
337 343
           </div>
338 344
           冲管护士
339 345
           <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
@@ -438,7 +444,10 @@
438 444
                 </td>
439 445
                 <td>&nbsp;{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
440 446
                 <td>&nbsp;{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
441
-                <td>&nbsp;{{monitor.venous_pressure?monitor.venous_pressure:''}}<span v-if="monitor.venous_pressure||monitor.arterial_pressure">/</span>{{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}</td>
447
+                <td>&nbsp;{{monitor.venous_pressure?monitor.venous_pressure:''}}
448
+                  <span v-if="monitor.venous_pressure||monitor.arterial_pressure">/</span>
449
+                  {{ monitor.arterial_pressure ? monitor.arterial_pressure : "" }}
450
+                </td>
442 451
                 <td>&nbsp;{{monitor.ultrafiltration_volume==0 && monitor.id?'0':monitor.ultrafiltration_volume}}</td>
443 452
                 <td>&nbsp;{{monitor.transmembrane_pressure?monitor.transmembrane_pressure:''}}</td>
444 453
                 <td>&nbsp;{{monitor.conductivity?monitor.conductivity:''}}</td>
@@ -515,8 +524,8 @@
515 524
                           </span>L
516 525
                         </div>
517 526
                       </td>
518
-                      
519
-                      
527
+
528
+
520 529
                       <!-- <td width="50" style="text-align:left;border:none;"></td> -->
521 530
                       <!-- <td width="110" style="text-align:left;border:none;"></td> -->
522 531
                       <td width="120" style="border:none;padding-left:5px">透析期间进食:</td>
@@ -607,13 +616,13 @@
607 616
                   </tbody>
608 617
                 </table>
609 618
               </td>
610
-              
611
-              
619
+
620
+
612 621
             </tr>
613
-              
614
-            
615
-            
616
-            
622
+
623
+
624
+
625
+
617 626
           </tbody>
618 627
         </table>
619 628
 
@@ -634,7 +643,7 @@
634 643
           </tr>
635 644
           <tr style="height:40px">
636 645
             <td rowspan="11" style="border:none;text-align:right;height:40px">
637
-              护士签名
646
+              护士签名:
638 647
               <span style="display: inline-block;width:100px;text-align: left;">
639 648
                   <span v-if="orderForm.url === ''" style="display:flex;align-items:center;">{{ orderForm.start_nurse }}</span>
640 649
                   <span v-if="orderForm.url !== ''" style="display:flex;align-items:center;height:36px;">
@@ -656,19 +665,21 @@
656 665
                 </span>
657 666
                 <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt srcset v-else />
658 667
               </span> -->
659
-              </span>
660
-              医生签名
668
+              <!-- </span> -->
669
+              医生签名:
661 670
               <span style="display: inline-block;width:100px;text-align: left;">
662 671
                 &nbsp;
663
-                <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
664
-                <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
672
+                <span v-if="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:'')) == ''">
673
+                  {{ getAdminUser(prescription==null?0:(prescription.creater?prescription.creater:'')) }}
674
+                </span>
675
+                <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.creater?prescription.creater:''))" alt="" srcset="" v-else />
665 676
                 <!-- <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
666 677
                 <span v-if="doctorForm.url !== ''">
667 678
                   <img class="es-img" style="height:30px;" :src="doctorForm.url" />
668 679
                 </span> -->
669 680
               </span>
670
-              
671
-              
681
+
682
+
672 683
             </td>
673 684
           </tr>
674 685
         </table>
@@ -824,136 +835,197 @@ export default {
824 835
   },
825 836
   methods: {
826 837
     checkData(){
827
-      if(this.prescription.mode_id == ""){
828
-        this.$message.error('血液净化方式未填')
829
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
830
-        this.$message.error('血液净化器类型未填')
831
-      }else if(this.prescription.dialysate_formulation_name == ""){
832
-        this.$message.error('透析液配方未填')
833
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
834
-        this.$message.error('血管通路未填')
835
-      }else if(this.predialysis.catheter == ''){
836
-        this.$message.error('透前导管未填')
837
-      }else if(this.predialysis.internal_fistula == ''){
838
-        this.$message.error('透前内瘘未填')
839
-      }else if(this.prescription.anticoagulant == 0){
840
-        this.$message.error('抗凝药物未填')
841
-      }else if(this.predialysis.dry_weight == 0){
842
-        this.$message.error('干体重未填')
843
-      }else if(this.predialysis.weight_before == 0){
844
-        this.$message.error('净化前体重未填')
845
-      }else if(this.prescription.target_ultrafiltration == 0){
846
-        this.$message.error('预设脱水未填')
847
-      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
848
-        this.$message.error('净化时间未填')
849
-      }else if(this.afterdialysis.weight_after == 0){
850
-        this.$message.error('净化后体重未填')
851
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
852
-        this.$message.error('实际脱水未填')
853
-      }else if(this.prescription.conductivity == 0){
854
-        this.$message.error('电导度未填')
855
-      }else if(this.predialysis.temperature == ""){
856
-        this.$message.error('透前体温未填')
857
-      }else if(this.predialysis.pulse_frequency == ""){
858
-        this.$message.error('透前脉搏未填')
859
-      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
860
-        this.$message.error('透前血压未填完整')
861
-      }else if(this.receiverTreatmentAccess.way == 0){
862
-        this.$message.error('入室方式未填')
863
-      }else if(this.predialysis.dialysis_count == 0){
864
-        this.$message.error('透析频次未填')
865
-      }else if(this.predialysis.symptom_before_dialysis == ""){
866
-        this.$message.error('透析前症状未填')
867
-      }else if(this.predialysis.edema == ""){
868
-        this.$message.error('水肿未填')
869
-      }else if(this.predialysis.is_hemorrhage == 1 && (this.predialysis.hemorrhage == "" && this.predialysis.hemorrhage_other == "")){
870
-        this.$message.error('出血未填')
871
-      }else if(this.receiverTreatmentAccess.precaution == ''){
872
-        this.$message.error('跌倒风险预防措施未填')
873
-      }else if(this.prescription.prescription_doctor == 0){
874
-        this.$message.error('上机医生未填')
875
-      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
876
-        this.$message.error('冲管护士未填')
877
-      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
878
-        this.$message.error('穿刺者未填')
879
-      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
880
-        this.$message.error('上机护士未填')
881
-      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
882
-        this.$message.error('下机护士未填')
883
-      }else if(this.afterdialysis.temperature == 0){
884
-        this.$message.error('透后体温未填')
885
-      }else if(this.afterdialysis.pulse_frequency == 0){
886
-        this.$message.error('透后脉搏未填')
887
-      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
888
-        this.$message.error('透后血压未填完整')
889
-      }else if(this.afterdialysis.symptom_after_dialysis == ""){
890
-        this.$message.error('透后症状未填')
891
-      }else if(this.afterdialysis.actual_displacement == 0){
892
-        this.$message.error('实际置换量未填')
893
-      }else if(this.afterdialysis.is_eat == 0){
894
-        this.$message.error('透析期间进食未填')
895
-      }else if(this.predialysis.is_eat == 1 && this.predialysis.dialysis_during == 0){
896
-        this.$message.error('透析进食未填')
897
-      }else if(this.afterdialysis.cruor == ""){
898
-        this.$message.error('透析器凝血未填')
899
-      }else if(this.afterdialysis.arterial_tube == 0){
900
-        this.$message.error('动脉管道未填')
901
-      }else if(this.afterdialysis.intravenous_tube == 0){
902
-        this.$message.error('静脉管道未填')
903
-      }else if(this.afterdialysis.internal_fistula == ''){
904
-        this.$message.error('透后内瘘未填')
905
-      }else if(this.summary.dialysis_summary == ""){
906
-        this.$message.error('透析小结未填')
907
-      }else if(this.summary.special_record == ""){
908
-        this.$message.error('病情记录未填')
909
-      }else if(this.tableAdvice.length > 0){
910
-        let num = 0
911
-        if(this.tableAdvice.length > 0){
912
-          this.tableAdvice.map(item => {
913
-            if(item.id > 0 && (item.created_time || item.start_time)){
914
-              this.users.map(it => {
915
-                if(it.id == item.advice_doctor){
916
-                  if(it.user_type == 3){
917
-                    num++
918
-                    this.$message.closeAll()
919
-                    this.$message.error('存在不是医生保存的医嘱')
920
-                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
921
-                    if(it.user_type == 2){
922
-                      num++
923
-                      this.$message.closeAll()
924
-                      this.$message.error('存在不是护士执行的医嘱')
925
-                    }
926
-                  }else if(it.id == item.checker && item.checker > 0){
927
-                    if(it.user_type == 2){
928
-                      num++
929
-                      this.$message.closeAll()
930
-                      this.$message.error('存在不是护士核对的医嘱')
931
-                    }
932
-                  }
933
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
934
-                  if(it.user_type == 2){
935
-                    num++
936
-                    this.$message.closeAll()
937
-                    this.$message.error('存在不是护士执行的医嘱')
938
-                  }
939
-                }else if(it.id == item.checker && item.checker > 0){
940
-                  if(it.user_type == 2){
941
-                    num++
942
-                    this.$message.closeAll()
943
-                    this.$message.error('存在不是护士核对的医嘱')
944
-                  }
945
-                }
946
-              })
838
+      var checkDate =[]
839
+      var monearr = []
840
+      if(this.prescription.mode_id ==0){
841
+        const obj0 = '血液净化方式'
842
+        checkDate.push(obj0)
843
+      }
844
+      if(this.prescription.dialyzer_perfusion_apparatus ==''){
845
+        const obj = '血液净化器类型'
846
+        checkDate.push(obj)
847
+      } if(this.prescription.dialysate_formulation_name ==''){
848
+        const obj1 = '透析液配方'
849
+        checkDate.push(obj1)
850
+      } if(this.predialysis.blood_access_part_id ==''){
851
+        const obj2 = '血管通路部位'
852
+        checkDate.push(obj2)
853
+      } if(this.predialysis.blood_access_part_opera_name ==''){
854
+        const obj3 = '血管通路'
855
+        checkDate.push(obj3)
856
+      } if(this.predialysis.catheter == ''){
857
+        const obj4 = '透前导管'
858
+        checkDate.push(obj4)
859
+      } if(this.predialysis.internal_fistula ==''){
860
+        const obj5 = '透前内瘘'
861
+        checkDate.push(obj5)
862
+      } if(this.prescription.anticoagulant == 0){
863
+        const obj6 = '抗凝药物'
864
+        checkDate.push(obj6)
865
+      } if(this.prescription.anticoagulant_shouji ==''){
866
+        const obj7 = '首剂'
867
+        checkDate.push(obj7)
868
+      } if(this.prescription.anticoagulant_zongliang ==''){
869
+        const obj8 = '总量'
870
+        checkDate.push(obj8)
871
+      } if(this.predialysis.dry_weight ==''){
872
+        const obj9 = '干体重'
873
+        checkDate.push(obj9)
874
+      } if(this.predialysis.weight_before ==0){
875
+        const obj10 = '净化前体重'
876
+        checkDate.push(obj10)
877
+      } if(this.prescription.target_ultrafiltration == 0){
878
+        const obj11 = '预设脱水'
879
+        checkDate.push(obj11)
880
+      } if(this.afterdialysis.actual_treatment_hour == 0 &&
881
+           this.afterdialysis.actual_treatment_minute == 0
882
+      ){
883
+        const obj12 = '净化时间'
884
+        checkDate.push(obj12)
885
+      } if(this.afterdialysis.weight_after == 0){
886
+        const obj13 = '净化后体重'
887
+        checkDate.push(obj13)
888
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
889
+        const obj14 = '实际脱水'
890
+        checkDate.push(obj14)
891
+      } if(this.prescription.conductivity == 0){
892
+        const obj15 = '电导度'
893
+        checkDate.push(obj15)
894
+      } if(this.predialysis.temperature == ""){
895
+        const obj16 = '透前体温'
896
+        checkDate.push(obj16)
897
+      } if(this.predialysis.pulse_frequency == ""){
898
+        const obj17 = '透前脉搏'
899
+        checkDate.push(obj17)
900
+      } if(this.predialysis.systolic_blood_pressure == 0 ||
901
+            this.predialysis.diastolic_blood_pressure == 0
902
+      ){
903
+        const obj18 = '透前血压'
904
+        checkDate.push(obj18)
905
+      } if(this.receiverTreatmentAccess.way == 0){
906
+        const obj19 = '入室方式'
907
+        checkDate.push(obj19)
908
+      } if(this.predialysis.dialysis_count == 0){
909
+        const obj20 = '透析频次'
910
+        checkDate.push(obj20)
911
+      } if(this.predialysis.symptom_before_dialysis == ""){
912
+        const obj21 = '透析前症状'
913
+        checkDate.push(obj21)
914
+      } if(this.predialysis.edema == ""){
915
+        const obj22 = '水肿'
916
+        checkDate.push(obj22)
917
+      } if(this.predialysis.is_hemorrhage == 1 &&
918
+          (this.predialysis.hemorrhage == "" && this.predialysis.hemorrhage_other == "")
919
+      ){
920
+        const obj23 = '出血'
921
+        checkDate.push(obj23)
922
+      } if(this.receiverTreatmentAccess.precaution == ''){
923
+        const obj24 = '跌倒风险预防措施'
924
+        checkDate.push(obj24)
925
+      } if(this.prescription.prescription_doctor == 0){
926
+        const obj25 = '上机医生'
927
+        checkDate.push(obj25)
928
+      } if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse == 0){
929
+        const obj26 = '冲管护士'
930
+        checkDate.push(obj26)
931
+      } if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
932
+        const obj27 = '穿刺者'
933
+        checkDate.push(obj27)
934
+      } if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
935
+        const obj28 = '上机护士'
936
+        checkDate.push(obj28)
937
+      } if(this.afterdialysis.temperature == 0){
938
+        const obj29 = '透后体温'
939
+        checkDate.push(obj29)
940
+      } if(this.afterdialysis.pulse_frequency == 0){
941
+        const obj30 = '透后脉搏'
942
+        checkDate.push(obj30)
943
+      } if(this.afterdialysis.systolic_blood_pressure == 0 ||
944
+            this.afterdialysis.diastolic_blood_pressure == 0
945
+      ){
946
+        const obj31 = '透后血压'
947
+        checkDate.push(obj31)
948
+      } if(this.afterdialysis.symptom_after_dialysis == ""){
949
+        const obj32 = '透后症状'
950
+        checkDate.push(obj32)
951
+      } if(this.afterdialysis.actual_displacement == 0){
952
+        const obj33 = '实际置换量'
953
+        checkDate.push(obj33)
954
+      } if(this.afterdialysis.is_eat == 0){
955
+        const obj34 = '透析期间进食'
956
+        checkDate.push(obj34)
957
+      } if(this.predialysis.is_eat == 1 && this.predialysis.dialysis_during == 0){
958
+        const obj35 = '透析进食'
959
+        checkDate.push(obj35)
960
+      } if(this.afterdialysis.cruor == ""){
961
+        const obj36 = '透析器凝血'
962
+        checkDate.push(obj36)
963
+      } if(this.afterdialysis.arterial_tube == 0){
964
+        const obj37 = '动脉管道'
965
+        checkDate.push(obj37)
966
+      } if(this.afterdialysis.intravenous_tube == 0){
967
+        const obj38 = '静脉管道'
968
+        checkDate.push(obj38)
969
+      } if(this.afterdialysis.internal_fistula == ''){
970
+        const obj39 = '透后内瘘'
971
+        checkDate.push(obj39)
972
+      } if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
973
+        const obj40 = '下机护士'
974
+        checkDate.push(obj40)
975
+      } if(this.summary.dialysis_summary == ""){
976
+        const obj41 = '透析小结'
977
+        checkDate.push(obj41)
978
+      } if(this.summary.special_record == ""){
979
+        const obj42 = '病情记录'
980
+        checkDate.push(obj42)
981
+      } if(this.tableAdvice.length > 0){
982
+        this.tableAdvice.map((item) =>{
983
+          if(item.id > 0 && (item.created_time || item.start_time)){
984
+            if(item.execution_staff ==0 || item.advice_doctor ==0){
985
+              const obj43 = '执行人员,医生签名'
986
+              checkDate.push(obj43)
947 987
             }
988
+          }
948 989
         })
990
+      } if(this.monitors.length >0){
991
+        for(let i in this.monitors){
992
+          if(this.monitors[i].systolic_blood_pressure ==0 ||
993
+                this.monitors.diastolic_blood_pressure==0){
994
+            const obj62 = '监测第'+((i*1)+1)+'行血压'
995
+            monearr.push(obj62)
996
+          } if(this.monitors[i].pulse_frequency ==0){
997
+            const obj60 = '监测第'+((i*1)+1)+'行脉搏'
998
+            monearr.push(obj60)
999
+          }
1000
+          if(this.monitors[i].blood_flow_volume ==0){
1001
+            const obj44 = '监测第'+((i*1)+1)+'行血流速'
1002
+            monearr.push(obj44)
1003
+          } if(this.monitors[i].venous_pressure ==0 &&this.monitors[i].arterial_pressure ==0){
1004
+            const obj45 = '监测第'+((i*1)+1)+'行静脉压/动脉压'
1005
+            monearr.push(obj45)
1006
+          } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1007
+            const obj47= '监测第'+((i*1)+1)+'行超滤量'
1008
+            monearr.push(obj47)
1009
+          } if(this.monitors[i].transmembrane_pressure ==0){
1010
+            const obj46 = '监测第'+((i*1)+1)+'行TMP'
1011
+            monearr.push(obj46)
1012
+          } if(this.monitors[i].conductivity == 0){
1013
+            const obj47= '监测第'+((i*1)+1)+'行电导率'
1014
+            monearr.push(obj47)
1015
+          } if(this.monitors[i].dialysate_temperature == 0){
1016
+            const obj51 = '监测第'+((i*1)+1)+'行温度'
1017
+            monearr.push(obj51)
1018
+          } if(this.monitors[i].ultrafiltration_rate ==0 ){
1019
+            const obj48 = '监测第'+((i*1)+1)+'行UF'
1020
+            monearr.push(obj48)
1021
+          }
949 1022
         }
950
-        
951
-        if(num == 0){
952
-          this.$message.success('核对完成')
953
-        }
954
-      }else{
955
-        this.$message.success('核对完成')
956 1023
       }
1024
+      if(monearr.length>0){
1025
+       checkDate =checkDate.concat(monearr)
1026
+        console.log('1111',checkDate.concat(monearr));
1027
+      }
1028
+      this.getcheckData(checkDate)
957 1029
     },
958 1030
     getNewAge(UUserCard) {
959 1031
       if (UUserCard != null && UUserCard != '') {
@@ -1083,6 +1155,7 @@ export default {
1083 1155
         ? this.modeOptions[mode_id].name
1084 1156
         : ''
1085 1157
     },
1158
+    // 数据源
1086 1159
     getDialysisRecords() {
1087 1160
       this.loading = true
1088 1161
       this.queryParams.patient_id = parseInt(this.$route.query.patient_id)
@@ -1092,6 +1165,7 @@ export default {
1092 1165
           this.adminUser = response.data.data.users
1093 1166
           this.users = response.data.data.users
1094 1167
           var patientInfo = response.data.data.patientInfo
1168
+          console.log('response.data',response.data.data)
1095 1169
           if (patientInfo.gender === 1) {
1096 1170
             patientInfo.gender = '男'
1097 1171
           }
@@ -1661,6 +1735,16 @@ export default {
1661 1735
           return this.vascularAccess[i].name
1662 1736
         }
1663 1737
       }
1738
+    },
1739
+    getcheckData(val){
1740
+      if(val.length >0){
1741
+        const a = val.join(',')
1742
+        console.log('a',a);
1743
+        this.$message.error(a +" 未填");
1744
+        return a
1745
+      }else{
1746
+        this.$message.success('核对完成')
1747
+      }
1664 1748
     }
1665 1749
   },
1666 1750
   watch: {

+ 23 - 21
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue View File

@@ -291,15 +291,7 @@
291 291
                       </div>
292 292
                       ml/min
293 293
                     </div>
294
-                    <div class="inline_block" style="flex: 1;">
295
-                      预透时间:
296
-                      <div class="under_line"
297
-                        style=" width: 50%; text-align: center; white-space: normal; "
298
-                      >
299
-                        {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0"}}h
300
-                        {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0"}}min
301
-                      </div>
302
-                    </div>
294
+                    
303 295
                   </div>
304 296
 
305 297
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -331,8 +323,25 @@
331 323
                         }}
332 324
                       </div>
333 325
                     </div>
334
-
335
-                    <div class="inline_block" style="flex: 1.3">
326
+                    <div class="inline_block" style="flex: 1;">
327
+                      预透时间:
328
+                      <div class="under_line"
329
+                        style=" width: 50%; text-align: center; white-space: normal; "
330
+                      >
331
+                        {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0"}}h
332
+                        {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0"}}min
333
+                      </div>
334
+                    </div>
335
+                    <div class="inline_block" style="flex: 1">
336
+                      干体重:
337
+                      <div class="under_line" style="width: 100px; text-align: center">
338
+                        {{
339
+                          predialysis.dry_weight ? predialysis.dry_weight : "/"
340
+                        }}
341
+                      </div>
342
+                      kg
343
+                    </div>
344
+                    <!-- <div class="inline_block" style="flex: 1.3">
336 345
                       可复用透析器使用次数:
337 346
                       <div class="under_line"
338 347
                         style="width: 20%;text-align: center;white-space: normal;"
@@ -357,19 +366,11 @@
357 366
                         <span>
358 367
                         </span>
359 368
                       </div>
360
-                    </div>
369
+                    </div> -->
361 370
                   </div>
362 371
 
363 372
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
364
-                    <div class="inline_block" style="flex: 1">
365
-                      干体重:
366
-                      <div class="under_line" style="width: 100px; text-align: center">
367
-                        {{
368
-                          predialysis.dry_weight ? predialysis.dry_weight : "/"
369
-                        }}
370
-                      </div>
371
-                      kg
372
-                    </div>
373
+                    
373 374
                     <div class="inline_block" style="flex: 1">
374 375
                       上次透后体重:
375 376
                       <div class="under_line" style="width: 50px; text-align: center">
@@ -2056,6 +2057,7 @@ export default {
2056 2057
           this.patientInfo.first_dialysis_date = "";
2057 2058
         }
2058 2059
         this.number_list = response.data.data.numberList
2060
+        console.log('11111',response.data.data);
2059 2061
         this.check = response.data.data.check;
2060 2062
         this.xtdate = response.data.data.xtdate;
2061 2063
         this.predialysis = response.data.data.PredialysisEvaluation;

+ 21 - 20
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -22,7 +22,7 @@
22 22
           org_id == 10028 ||
23 23
           org_id == 10278 ||
24 24
           org_id == 10610 ||
25
-          org_id==10537 || org_id == 0
25
+          org_id==10537 
26 26
         "
27 27
       >
28 28
         <printTwo :info="info" v-if="org_id == 9990"></printTwo>
@@ -68,19 +68,20 @@
68 68
       <printfivetheen :info="info" v-if="org_id == 10633"></printfivetheen>
69 69
       <!-- 顺有好 -->
70 70
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
71
-
71
+      <!-- 杏康 -->
72
+      <printSeventheen  :info="info" v-if=" org_id == 10721 || org_id == 0"></printSeventheen>
72 73
       <printOne :info="info" v-if=" org_id != 9990 &&
73 74
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
74 75
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
75 76
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
76 77
             org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
77
-            org_id != 10510 &&org_id != 10088 &&org_id != 10633 && this.paramsObj.balance_accounts_type == 1">
78
+            org_id != 10510 &&org_id != 10088 &&org_id != 10633 &&org_id != 0 && this.paramsObj.balance_accounts_type == 1">
78 79
       </printOne>
79 80
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
80 81
             org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
81 82
             org_id != 10278 && org_id != 10610 && org_id !=10537 && org_id != 10387 &&
82 83
             org_id != 10191 &&org_id != 10210 &&org_id != 10485  &&org_id != 10480 &&
83
-            org_id != 10510 &&org_id != 10633 && this.paramsObj.balance_accounts_type == 2">
84
+            org_id != 10510 &&org_id != 10633 &&org_id != 0  && this.paramsObj.balance_accounts_type == 2">
84 85
       </privateChargePrint>
85 86
 
86 87
     </div>
@@ -109,6 +110,7 @@ import printthirteen from './statementTemplate/printthirteen'
109 110
 import printfourteen from './statementTemplate/printfourteen'
110 111
 import printfivetheen from './statementTemplate/printfivetheen'
111 112
 import printSixtheen from './statementTemplate/printSixtheen'
113
+import printSeventheen from './statementTemplate/printSeventheen'
112 114
 export default {
113 115
   name: 'dialysisPrintOrder',
114 116
   components: {
@@ -128,7 +130,8 @@ export default {
128 130
     printthirteen,
129 131
     printfourteen,
130 132
     printfivetheen,
131
-    printSixtheen
133
+    printSixtheen,
134
+    printSeventheen
132 135
   },
133 136
   props: {
134 137
     paramsObj: Object
@@ -894,9 +897,6 @@ export default {
894 897
               // that.info["department"] = response.data.data.department;
895 898
               // that.info["health_card_no"] = response.data.data.health_card_no;
896 899
 
897
-
898
-
899
-
900 900
               that.info['bed_cost_total'] = response.data.data.bedCostTotal
901 901
               that.info['bed_cost_self_total'] =
902 902
                 response.data.data.bedCostSelfTotal
@@ -956,9 +956,6 @@ export default {
956 956
               that.info['treat_cost_part_self_total'] =
957 957
                 response.data.data.treatCostPartSelfTotal
958 958
 
959
-
960
-
961
-
962 959
               that.info['date'] = response.data.data.date
963 960
               that.info['number'] = response.data.data.number
964 961
               that.info['order_infos'] = response.data.data.order_infos
@@ -1033,7 +1030,7 @@ export default {
1033 1030
               that.info['R_list'] = R_list
1034 1031
 
1035 1032
               console.log(response.data.data.order_infos)
1036
-              console.log('that.info',that.info)
1033
+              console.log('that.info10721',that.info)
1037 1034
               var list = []
1038 1035
               //获取所有项目类型进行去重
1039 1036
               let med_chrgitm_types = []
@@ -1160,6 +1157,8 @@ export default {
1160 1157
 
1161 1158
               return false
1162 1159
             } else {
1160
+              console.log('response.data.data',response.data.data);
1161
+              
1163 1162
               var that = this
1164 1163
               that.info = response.data.data.info
1165 1164
               that.p_admin = response.data.data.printor_admin
@@ -1254,7 +1253,8 @@ export default {
1254 1253
                   name: '',
1255 1254
                   spec: '',
1256 1255
                   cnt: '',
1257
-                  det_item_fee_sumamt: ''
1256
+                  det_item_fee_sumamt: '',
1257
+                  price:'',
1258 1258
                 }
1259 1259
 
1260 1260
                 if (order.advice_id > 0 && order.project_id == 0) {
@@ -1263,6 +1263,7 @@ export default {
1263 1263
                   obj.spec = spec
1264 1264
                   obj.cnt = order.cnt
1265 1265
                   obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1266
+                  obj.price = order.pric
1266 1267
                   list.push(obj)
1267 1268
 
1268 1269
                 } else if (order.advice_id == 0 && order.project_id > 0) {
@@ -1271,19 +1272,20 @@ export default {
1271 1272
                     obj.spec = ''
1272 1273
                     obj.cnt = order.cnt
1273 1274
                     obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1274
-
1275
+                    obj.price = order.pric
1275 1276
                   } else {
1276 1277
                     obj.name = order.project.good_info.good_name
1277 1278
                     obj.spec = order.project.good_info.specification_name
1278 1279
                     obj.cnt = order.cnt
1279 1280
                     obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1281
+                    obj.price = order.pric
1280 1282
                   }
1281 1283
                   list.push(obj)
1282 1284
                 }
1283 1285
 
1284 1286
               }
1285
-
1286
-              console.log(list)
1287
+              that.info['Z_list'] = list
1288
+              console.log('1213121',list)
1287 1289
               let len = list.length / 2
1288 1290
               let L_list = []
1289 1291
               let R_list = []
@@ -1293,15 +1295,14 @@ export default {
1293 1295
               }
1294 1296
               console.log(len)
1295 1297
               for (let i = len; i < list.length; i++) {
1296
-                console.log(list[i])
1297 1298
                 R_list.push(list[i])
1298 1299
               }
1299
-              console.log(L_list)
1300
-              console.log(R_list)
1300
+              
1301 1301
 
1302 1302
               that.info['L_list'] = L_list
1303 1303
               that.info['R_list'] = R_list
1304
-
1304
+              console.log('that.info10721',this.info);
1305
+              
1305 1306
             }
1306 1307
           })
1307 1308
         } else {

+ 356 - 0
src/xt_pages/outpatientCharges/statementTemplate/printSeventheen.vue View File

@@ -0,0 +1,356 @@
1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+     <div class="statementTitle">濉溪杏康血液透析中结算单</div>
4
+     <!-- <div style="text-align: center;font-size: 17px;">门 &nbsp;诊 &nbsp;结 &nbsp;帐 &nbsp;票 &nbsp;据</div> -->
5
+      <div style="width: 100%;border-bottom: 1px dashed black;padding-bottom: 5px;">
6
+        <div style="width: 100%;display: flex;padding: 5px;">
7
+          <div style="flex: 1;">患者姓名:{{info.patient.name}}</div>
8
+          <div style="flex: 1;text-align: right;">票据号:{{ info.id }}</div>
9
+        </div>
10
+        <div style="padding: 5px;">门诊日期:{{getTime(info.date)}}</div>
11
+        <div style="padding: 5px;">个人编码:{{ info.patient.dialysis_no }}</div>
12
+      </div>
13
+      <div style="border-bottom: 1px dashed black;margin-bottom: 10px;">
14
+        <div style="display: flex;padding: 5px;text-align: center;">
15
+          <div style="flex: 2;">项目名称</div>
16
+          <div style="flex: 1;">数量</div>
17
+          <div style="flex: 1;">单价</div>
18
+          <div style="flex: 1;">金额</div>
19
+        </div>
20
+        <div style="display: flex;text-align: center;" v-for="(item,index) in info.Z_list">
21
+          <div style="flex: 2;">{{ item.name }}</div>
22
+          <div style="flex: 1;">{{item.cnt}}</div>
23
+          <div style="flex: 1;">{{ item.price }}</div>
24
+          <div style="flex: 1;">{{ item.det_item_fee_sumamt}}</div>
25
+        </div>
26
+      </div>
27
+      <div style="width: 100%;display: flex;">
28
+        <div style="flex: 1;">合计:{{info.medfee_sumamt}}</div>
29
+        <div style="flex: 1;text-align: right;">收费员:{{info.charge_admin.user_name}}</div>
30
+      </div>
31
+      <div style="width: 100%;display: flex;padding: 5px 0;">
32
+        <div style="flex: 1;">帐户支付总额:{{ }}</div>
33
+        <div style="flex: 1;text-align: right;">现金支付:{{info.psn_cash_pay}}</div>
34
+      </div>
35
+      <div style="width: 100%;display: flex;">
36
+        <div style="flex: 1;">其中共济账户支付:{{ }}</div>
37
+        <div style="flex: 1;text-align: right;">统筹支付:{{info.hifp_pay}}</div>
38
+      </div>
39
+      <div style="width: 100%;display: flex;padding: 5px 0;">
40
+        <div style="flex: 1;">公务员补助:{{info.cvlserv_pay }}</div>
41
+        <div style="flex: 1;text-align: right;">医疗救助支付:{{info.maf_pay }}</div>
42
+      </div>
43
+      <div style="width: 100%;display: flex;">
44
+        <div style="flex: 1;">大病保险支付:{{info.hifmi_pay}}</div>
45
+        <div style="flex: 1;text-align: right;">账户余额:{{ }}</div>
46
+      </div>
47
+
48
+     <!-- <div style="border: 1px solid black;width: 100%;">
49
+        <div style="border-bottom:1px solid black;display: flex;padding: 5px;">
50
+            <div style="flex: 1;">姓名:{{info.patient.name}}</div>
51
+            <div style="flex: 1;">门诊日期:{{getTime(info.date)}}</div>
52
+            <div style="flex: 1;">医疗类型:{{getmed_type(info.med_type) }}</div>
53
+            <div style="flex: 1;">健康ID:{{ info.patient.dialysis_no }}</div>
54
+            <div style="flex: 1;">门诊单据号:{{info.id}}</div>
55
+        </div>
56
+        <div style="border-bottom:1px solid black;display: flex;padding: 5px;">
57
+            <div style="flex: 1;">医保编码:</div>
58
+            <div style="flex: 1;">刷卡前余额:</div>
59
+            <div style="flex: 1;">刷卡后余额:</div>
60
+        </div>
61
+        <div style="border-bottom:1px solid black;display: flex;text-align: center;">
62
+          <div style="width: 30%;border-right:1px solid black;padding: 5px 0;">项目/规格</div>
63
+          <div style="width: 10%;border-right:1px solid black;padding: 5px 0;">数量</div>
64
+          <div style="width: 10%;border-right:1px solid black;padding: 5px 0;">金额</div>
65
+          <div style="width: 30%;border-right:1px solid black;padding: 5px 0;">项目/规格</div>
66
+          <div style="width: 10%;border-right:1px solid black;padding: 5px 0;">数量</div>
67
+          <div style="width: 10%;padding: 5px 0;">金额</div>
68
+        </div>
69
+        <div style="border-bottom:1px solid black;text-align: center;min-height: 100px;" >
70
+          <div style="display: flex;">
71
+            <div style="flex: 1;">
72
+              <div style="display: flex;width: 100%;line-height: 20px;" v-for="(item,index) in info.L_list" :key="index">
73
+                <div style="width: 60%;">{{ item.name }}</div>
74
+                <div style="width: 20%;">{{item.cnt}}</div>
75
+                <div style="width: 20%;">{{ item.det_item_fee_sumamt }}</div>
76
+              </div>
77
+            </div>
78
+            <div style="flex: 1;" >
79
+              <div style="display: flex;width: 100%;line-height: 20px;" v-for="(item,index) in info.R_list" :key="index">
80
+                <div style="width: 60%;">{{ item.name }}</div>
81
+                <div style="width: 20%;">{{item.cnt}}</div>
82
+                <div style="width: 20%;">{{ item.det_item_fee_sumamt }}</div>
83
+              </div>
84
+            </div>
85
+          </div>
86
+        </div>
87
+        <div style="">
88
+          <div style="display: flex;padding: 5px;line-height: 30px;">
89
+            <div style="flex: 1;">基本统筹:{{info.hifp_pay}}</div>
90
+            <div style="flex: 1;">公务员补助:</div>
91
+            <div style="flex: 1;">大病基金支付:{{info.hifmi_pay}}</div>
92
+            <div style="flex: 1;">个人账户支付:{{info.acct_pay}}</div>
93
+            <div style="flex: 1;">医保个人现金:{{info.fund_pay_sumamt}}</div>
94
+          </div>
95
+          <div style="display: flex;padding: 5px;line-height: 30px;">
96
+            <div style="flex: 2;">费用总额(大写):{{getmoney(info.medfee_sumamt)}}</div>
97
+            <div style="flex: 1;">小写:{{info.medfee_sumamt}}</div>
98
+            <div style="flex: 1;">现金支付:{{info.psn_cash_pay}}</div>
99
+          </div>
100
+        </div>
101
+     </div>
102
+     <div style="display: flex;margin: 5px 0;">
103
+        <div style="flex: 1;">收款单位:南昌顺友好血液透析中心</div>
104
+        <div style="flex: 1;">开单科室:血透室</div>
105
+        <div style="flex: 1;">收款人:{{info.charge_admin.user_name}}</div>
106
+        <div style="flex: 1;">结账日期:{{info.setl_time}}</div>
107
+     </div> -->
108
+    <!--<div style="margin: 10px 0;">医疗机构名称:
109
+      {{info.fixmedins_name}}
110
+    </div>
111
+    <div style="display: flex;margin-bottom: 10px;">
112
+      <div style="flex: 1;">结算ID:
113
+        {{info.setl_id}}
114
+      </div>
115
+      <div style="flex: 1;">参保险种:
116
+        <span v-if="info.insutype == '310'">职工基本医疗保险</span>
117
+        <span v-if="info.insutype == '320'">公务员医疗补助</span>
118
+        <span v-if="info.insutype == '330'">大额医疗费用补助</span>
119
+        <span v-if="info.insutype == '340'">离休人员医疗保障</span>
120
+        <span v-if="info.insutype == '390'">城乡居民基本医疗保险</span>
121
+        <span v-if="info.insutype == '392'">城乡居民大病医疗保险</span>
122
+        <span v-if="info.insutype == '510'">生育保险</span>
123
+      </div>
124
+    </div>
125
+  
126
+    <table class="statementTable" border="1" style="text-align: left;">
127
+      <tr>
128
+        <td>患者姓名:{{info.patient.name}}</td>
129
+        <td>性别:{{ info.gend == '1' ? '男':'女' }}</td>
130
+        <td>年龄:{{info.patient.age}}</td>
131
+        <td>身份证号:{{info.certno}}</td>
132
+        <td>医保区划:</td>
133
+      </tr>
134
+      <tr>
135
+        <td colspan="3">个人编号:{{info.patient.id_card_no}}</td>
136
+        <td colspan="2">单位或地址:{{info.patient.home_address}}</td>
137
+      </tr>
138
+      <tr>
139
+        <td colspan="2">联系电话:{{info.patient.phone}}</td>
140
+        <td colspan="2">人员类别:
141
+          <span  v-if="info.psn_type == '11'">在职</span>
142
+          <span  v-else-if="info.psn_type == '1101'">职工在职</span>
143
+          <span  v-else-if="info.psn_type == '1102'">公务员在职</span>
144
+          <span  v-else-if="info.psn_type == '1103'">灵活就业人员在职</span>
145
+          <span  v-else-if="info.psn_type == '1160'">地方其他扩展人员</span>
146
+
147
+
148
+          <span  v-else-if="info.psn_type == '12'">退休人员</span>
149
+          <span  v-else-if="info.psn_type == '1201'">职工退休</span>
150
+          <span  v-else-if="info.psn_type == '1202'">公务员退休</span>
151
+          <span  v-else-if="info.psn_type == '1203'">灵活就业人员退休</span>
152
+          <span  v-else-if="info.psn_type == '1260'">地方其他扩展人员</span>
153
+
154
+
155
+          <span  v-else-if="info.psn_type == '13'">离休</span>
156
+          <span  v-else-if="info.psn_type == '1300'">离休人员</span>
157
+          <span  v-else-if="info.psn_type == '1360'">地方其他扩展人员</span>
158
+
159
+          <span  v-else-if="info.psn_type == '14'">居民(未成年)</span>
160
+          <span  v-else-if="info.psn_type == '1401'">新生儿</span>
161
+          <span  v-else-if="info.psn_type == '1402'">学龄前儿童</span>
162
+          <span  v-else-if="info.psn_type == '1403'">中小学生</span>
163
+          <span  v-else-if="info.psn_type == '1404'">大学生</span>
164
+          <span  v-else-if="info.psn_type == '1405'">未成年(未入学)</span>
165
+
166
+
167
+          <span  v-else-if="info.psn_type == '15'">居民(成年)</span>
168
+          <span  v-else-if="info.psn_type == '1501'">普通居民(成年)</span>
169
+          <span  v-else-if="info.psn_type == '1560'">地方其他扩展身份</span>
170
+
171
+          <span  v-else-if="info.psn_type == '16'">居民(老年)</span>
172
+          <span v-else></span>
173
+
174
+        </td>
175
+        <td colspan="1">门诊号:{{info.number}}</td>
176
+      </tr>
177
+      <tr>
178
+        <td colspan="2">医疗类别:门诊特殊病</td>
179
+        <td >就诊ID:</td>
180
+        <td >离院方式:</td>
181
+        <td>科室:医生组</td>
182
+      </tr>
183
+      <tr>
184
+        <td colspan="2">病种名称:</td>
185
+        <td colspan="2">就诊时间:{{getTime(info.new_order.settle_accounts_date)}}</td>
186
+        <td colspan="1">就诊天数:0</td>
187
+      </tr>
188
+      <tr>
189
+        <td colspan="5">诊断:{{info.diagnosis}}</td>
190
+      </tr>
191
+      <tr>
192
+        <td colspan="2">总费用:{{info.medfee_sumamt}}</td>
193
+        <td>全自费:</td>
194
+        <td>先行自付:{{info.preselfpay_amt}}</td>
195
+        <td>政策范围金额:
196
+          <span v-for="item in info.funds">
197
+            {{item.insp_pay}}
198
+          </span>
199
+        </td>
200
+      </tr>
201
+      <tr>
202
+        <td colspan="4">报销合计:</td>
203
+        <td>起付线:{{info.act_pay_dedc}}</td>
204
+      </tr>
205
+      <tr>
206
+        <td colspan="2">基本医疗:</td>
207
+        <td>大病保险:{{info.new_order.hifmi_pay}}</td>
208
+        <td>大病补充:</td>
209
+        <td>医疗救助支付额:{{info.order.maf_pay}}</td>
210
+      </tr>
211
+      <tr>
212
+        <td colspan="3">健康扶贫:</td>
213
+        <td>医院承担金额:</td>
214
+        <td>其他基金:{{info.oth_pay}}</td>
215
+      </tr>
216
+      <tr>
217
+        <td colspan="3">个人支付总额:{{ info.order.psn_cash_pay}}</td>
218
+        <td>帐户支付:</td>
219
+        <td>个人现金:{{info.new_order.psn_cash_pay}}</td>
220
+      </tr>
221
+      <tr>
222
+        <td width="10%">报销说明</td>
223
+        <td colspan="4"></td>
224
+      </tr>
225
+    </table>
226
+    <div style="display: flex;margin-top: 10px;">
227
+      <div style="flex: 1;">打印人:{{ info.printor_admin.user_name }} </div>
228
+      <div style="flex: 1;">打印日期:{{getNowTime()}}</div>
229
+    </div> -->
230
+
231
+  </div>
232
+</template>
233
+<script>
234
+ import { uParseTime,numToCny } from '@/utils/tools'
235
+  export default {
236
+    props: {
237
+      info: {
238
+        type: Object,
239
+        default: function() {
240
+          return {}
241
+        }
242
+      }, p_admin: {
243
+        type: Object,
244
+        default: function() {
245
+          return {}
246
+        }
247
+      }, charge_admin: {
248
+        type: Object,
249
+        default: function() {
250
+          return {}
251
+        }
252
+      }
253
+    },
254
+    data(){
255
+      return{
256
+        med_typearr:[{id:11,name:'普通门诊'},{id:12,name:'门诊挂号'},{id:13,name:'急诊'},{id:14,name:'门诊特殊病'},
257
+                    {id:15,name:'门诊统筹'},{id:16,name:'门诊慢性病'},{id:17,name:'普通住院'}],
258
+      }
259
+      
260
+    },
261
+    methods:{
262
+      getBirth(idNo){
263
+        var year = idNo.substring(6, 10);
264
+        var month = idNo.substring(10, 12);
265
+        var day = idNo.substring(12, 14);
266
+        return  year + '-' + month + '-' + day;
267
+      },
268
+      getDay(dateString1,dateString2){
269
+          var  startDate = Date.parse(dateString1);
270
+          var  endDate = Date.parse(dateString2);
271
+          if (startDate>endDate){
272
+            return 0;
273
+          }
274
+          if (startDate==endDate){
275
+            return 1;
276
+          }
277
+          var days=(endDate - startDate)/(1*24*60*60*1000);
278
+          return  days;
279
+
280
+        },
281
+      getNowTime: function () {
282
+        let dateTime;
283
+        let yy = new Date().getFullYear();
284
+        let mm = new Date().getMonth() + 1;
285
+        let dd = new Date().getDate();
286
+        let hh = new Date().getHours();
287
+        let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
288
+          :
289
+          new Date().getMinutes();
290
+        let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
291
+          :
292
+          new Date().getSeconds();
293
+        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
294
+        return dateTime
295
+      },
296
+      getTime(val) {
297
+        if (val < 0) {
298
+          return ""
299
+        }
300
+        if (val == "") {
301
+          return ""
302
+        } else {
303
+          return uParseTime(val, '{y}-{m}-{d} {h}:{m}:{s}')
304
+        }
305
+      },
306
+      getmoney(value){
307
+        // if(vlaue == ''){
308
+
309
+        // }else{
310
+          return numToCny(value)
311
+        // }
312
+        
313
+      },
314
+      getmed_type(ids){
315
+        const options = this.med_typearr
316
+        for(let i in options){
317
+          if(options[i].id == ids){
318
+            return options[i].name
319
+          }
320
+        }
321
+      }
322
+    },
323
+    created(){
324
+      console.log('bbbbbbb',this.info);
325
+    }
326
+  }
327
+
328
+
329
+</script>
330
+
331
+
332
+<style lang="scss" scoped>
333
+  .statement-print {
334
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
335
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
336
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
337
+    margin-bottom: 20px;
338
+    padding: 20px 10px;
339
+  }
340
+
341
+  .statementTitle {
342
+    font-size: 28px;
343
+    text-align: center;
344
+    font-weight: bold;
345
+    margin-bottom: 10px;
346
+  }
347
+
348
+  .statementTable {
349
+    width: 100%;
350
+    // text-align: center;
351
+    border-collapse: collapse;
352
+    line-height: 40px;
353
+    font-size: 14px;
354
+    border-color: #000;
355
+  }
356
+</style>