Browse Source

11月29 打印单一键核对

yq1 4 months ago
parent
commit
9c856a2fe5

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyTwo.vue View File

@@ -3382,10 +3382,12 @@ export default {
3382 3382
     },
3383 3383
     getcheckData(val){
3384 3384
       if(val.length >0){
3385
-        const a = val.join(',')
3386
-        console.log('a',a);
3387
-        this.$message.error(a +" 未填");
3388
-        return a
3385
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
3386
+        this.$alert(message, '提示', {
3387
+          confirmButtonText: '确定',
3388
+          type: 'warning',
3389
+          dangerouslyUseHTMLString: true,
3390
+        });
3389 3391
       }else{
3390 3392
         this.$message.success('核对完成')
3391 3393
       }

+ 284 - 189
src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue View File

@@ -302,7 +302,7 @@
302 302
                       <div
303 303
                         style="width: 50%; text-align: left;display: inline-block;border-bottom: 1px solid #999;"
304 304
                       >
305
-                        {{ predialysis.weight_before ? 
305
+                        {{ predialysis.weight_before ?
306 306
                           parseFloat( predialysis.weight_before - predialysis.additional_weight ).toFixed(1) : "/"
307 307
                         }}
308 308
                       </div>kg
@@ -315,7 +315,7 @@
315 315
                         class="under_line"
316 316
                         style=" width: 50%;text-align: center;white-space: normal;"
317 317
                       >
318
-                      {{ predialysis.weight_before > 0 && predialysis.dry_weight > 0 ? 
318
+                      {{ predialysis.weight_before > 0 && predialysis.dry_weight > 0 ?
319 319
                       parseFloat(predialysis.weight_before - predialysis.dry_weight - predialysis.additional_weight).toFixed(2): "/" }}
320 320
                       </div>kg
321 321
                     </div>
@@ -416,7 +416,7 @@
416 416
                         {{ afterdialysis.symptom_after_dialysis ? afterdialysis.symptom_after_dialysis : "/" }}
417 417
                       </div>
418 418
                     </div>
419
-                    
419
+
420 420
                   </div>
421 421
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"
422 422
                   >
@@ -625,7 +625,7 @@
625 625
                         {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
626 626
                       </div>ml/min
627 627
                     </div>
628
-                    
628
+
629 629
                   </div>
630 630
 
631 631
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
@@ -642,13 +642,13 @@
642 642
                      <div class="inline_block" style="flex: 1">
643 643
                       膜面积:
644 644
                       <div class="under_line" style="width: 50px; text-align: center">
645
-                      
645
+
646 646
                       </div>㎡
647 647
                     </div>
648 648
                     <div class="inline_block" style="flex: 1">
649 649
                       膜材质:
650 650
                       <div class="under_line" style="width: 80px; text-align: center">
651
-                        
651
+
652 652
                       </div>
653 653
                     </div>
654 654
                     <div class="inline_block" style="flex: 1">
@@ -663,7 +663,7 @@
663 663
                         {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
664 664
                         ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
665 665
                       </div>
666
-                      
666
+
667 667
                     </div>
668 668
                   </div>
669 669
 
@@ -741,7 +741,7 @@
741 741
                             : "/"
742 742
                         }}
743 743
                         </span>
744
-                        
744
+
745 745
                       </div>
746 746
                     </div>
747 747
                     <div
@@ -761,7 +761,7 @@
761 761
                         }}
762 762
                       </div>
763 763
 
764
-                     
764
+
765 765
                       <span v-if="prescription.anticoagulant == 4">mg</span>
766 766
                       <span v-if="prescription.anticoagulant == 3">iu</span>
767 767
                       <span v-if="prescription.anticoagulant == 2">iu</span>
@@ -775,7 +775,7 @@
775 775
                      <span v-if="prescription.anticoagulant == 11">iu</span>
776 776
                      <span v-if="prescription.anticoagulant == 13">iu</span>
777 777
 
778
-                  
778
+
779 779
                     </div>
780 780
                     <div class="inline_block" style="margin-left: 20px">
781 781
                       维持:
@@ -879,9 +879,9 @@
879 879
                        <span v-if="prescription.anticoagulant == 10">iu</span>
880 880
                       <span v-if="prescription.anticoagulant == 11">iu</span>
881 881
                       <span v-if="prescription.anticoagulant == 13">iu</span>
882
-                   
882
+
883 883
                     </div>
884
-                    
884
+
885 885
                   </div>
886 886
                 </td>
887 887
               </tr>
@@ -951,7 +951,7 @@
951 951
                             >({{ advice.remark }})</span
952 952
                           >
953 953
                         </td>
954
-                       
954
+
955 955
                         <td height="32px">
956 956
                           <span v-if="advice!=null && advice.advice_doctor>0">
957 957
                               <span
@@ -990,7 +990,7 @@
990 990
                         </td>
991 991
 
992 992
                       </tr>
993
-                  
993
+
994 994
                     </tbody>
995 995
                   </table>
996 996
                 </td>
@@ -1054,15 +1054,15 @@
1054 1054
                         </td>
1055 1055
                         <td>
1056 1056
                           {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '0'  }} /
1057
-                          {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '0' }} 
1057
+                          {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '0' }}
1058 1058
                         </td>
1059 1059
                         <td>
1060
-                          {{ monitor.replacement_rate ? monitor.replacement_rate : '0' }} / 
1060
+                          {{ monitor.replacement_rate ? monitor.replacement_rate : '0' }} /
1061 1061
                           {{ monitor.displacement_quantity ? monitor.displacement_quantity : '0'  }}
1062 1062
                         </td>
1063 1063
                         <!-- 钠浓度(mmol/L)/温度°C -->
1064 1064
                         <td>
1065
-                          {{ monitor.sodium_concentration ? monitor.sodium_concentration : "0" }} / 
1065
+                          {{ monitor.sodium_concentration ? monitor.sodium_concentration : "0" }} /
1066 1066
                           {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : '0' }}
1067 1067
                         </td>
1068 1068
 
@@ -1087,7 +1087,7 @@
1087 1087
                                 "
1088 1088
                                 >【开始透析】引血{{ dialysisOrder.blood_drawing }} ml/min
1089 1089
                                 </template>
1090
-                
1090
+
1091 1091
                                 {{ monitor.dispose }} {{ monitor.end }}  &nbsp;
1092 1092
                               &nbsp;
1093 1093
                             </span>
@@ -1320,7 +1320,7 @@
1320 1320
                       透后宣教:
1321 1321
                       <div class="under_line" style="width: 70%; text-align: center">
1322 1322
                         {{ summary.mission ? summary.mission : '/' }}
1323
-                      </div>                     
1323
+                      </div>
1324 1324
                     </div>
1325 1325
                   </div>
1326 1326
 
@@ -2109,219 +2109,301 @@ export default {
2109 2109
     },
2110 2110
 
2111 2111
     checkData() {
2112
-      if (this.receiverTreatmentAccess.way == 0) {
2113
-        this.$message.error("入科方式未填");
2114
-      } else if (this.predialysis.symptom_before_dialysis == "") {
2115
-        this.$message.error("透前症状未填");
2116
-      } else if (this.predialysis.temperature == "") {
2117
-        this.$message.error("透前体温未填");
2118
-      } else if (this.predialysis.pulse_frequency == "") {
2119
-        this.$message.error("透前脉搏未填");
2120
-      } else if (this.predialysis.breathing_rate == "") {
2121
-        this.$message.error("透前呼吸频率未填");
2122
-      } else if (
2112
+      console.log('new_date',this.new_date);
2113
+
2114
+      var checkDate =[]
2115
+      var monearr = []
2116
+      // if(this.dialysisOrder != undefined && this.dialysisOrder.end_time > this.new_date){
2117
+      if (this.predialysis.temperature == '') {
2118
+        const obj = "透前体温"
2119
+        checkDate.push(obj)
2120
+      } if (this.predialysis.pulse_frequency == "") {
2121
+        const obj1 = "透前脉搏"
2122
+        checkDate.push(obj1)
2123
+      } if (this.predialysis.breathing_rate == "") {
2124
+        const obj2 = "透前呼吸频率"
2125
+        checkDate.push(obj2)
2126
+      } if (
2123 2127
         this.predialysis.systolic_blood_pressure == 0 ||
2124 2128
         this.predialysis.diastolic_blood_pressure == 0
2125 2129
       ) {
2126
-        this.$message.error("透前血压未填完整");
2127
-      } else if (this.predialysis.puncture_way == "") {
2128
-        this.$message.error("穿刺方式未填");
2129
-      } else if (this.predialysis.puncture_needle == "") {
2130
-        this.$message.error("穿刺针未填");
2131
-      } else if (
2132
-        this.predialysis.blood_access_part_id == "" &&
2133
-        this.predialysis.blood_access_part_opera_name == ""
2134
-      ) {
2135
-        this.$message.error("血管通路未填");
2136
-      } else if (this.predialysis.internal_fistula == "") {
2137
-        this.$message.error("透前内瘘未填");
2138
-      } else if (this.predialysis.catheter == "") {
2139
-        this.$message.error("透前导管未填");
2140
-      } else if (this.prescription.mode_id == "") {
2141
-        this.$message.error("透析方式未填");
2142
-      } else if (
2143
-        this.prescription.displace_liqui_part == 0 &&
2144
-        this.prescription.mode_id == 2
2145
-      ) {
2146
-        this.$message.error("置换方式未填");
2147
-      } else if (
2148
-        this.prescription.displace_liqui_value == 0 &&
2149
-        this.prescription.mode_id == 2
2150
-      ) {
2151
-        this.$message.error("置换量未填");
2152
-      } else if (this.prescription.blood_flow_volume == 0) {
2153
-        this.$message.error("血流量未填");
2154
-      } else if (
2155
-        this.prescription.dialysis_duration_hour == 0 &&
2156
-        this.prescription.dialysis_duration_minute == 0
2157
-      ) {
2158
-        this.$message.error("透析时间未填");
2159
-      } else if (
2160
-        this.prescription.dialyzer_perfusion_apparatus == "" &&
2161
-        this.prescription.dialysis_dialyszers == ""
2130
+        const obj3 = "透前血压"
2131
+        checkDate.push(obj3)
2132
+      } if (this.predialysis.symptom_before_dialysis == "") {
2133
+        const obj5 = "透前症状"
2134
+        checkDate.push(obj5)
2135
+      } if (this.predialysis.internal_fistula == "" && this.predialysis.catheter == "") {
2136
+        const obj6 = "透前内瘘,"
2137
+        checkDate.push(obj6)
2138
+      } if (this.predialysis.catheter == "" &&  this.predialysis.internal_fistula == "") {
2139
+        const obj7 = "导管"
2140
+        checkDate.push(obj7)
2141
+      }
2142
+      if (this.predialysis.dry_weight == '' ) {
2143
+        const obj8 = "干体重"
2144
+        checkDate.push(obj8)
2145
+      } if ( this.predialysis.weight_before == '') {
2146
+        const obj9 = "透前体重"
2147
+        checkDate.push(obj9)
2148
+      } if (this.afterdialysis.temperature == '') {
2149
+        const obj10 = "透后体温"
2150
+        checkDate.push(obj10)
2151
+      } if (this.afterdialysis.pulse_frequency == "") {
2152
+        const obj11 = "透后脉搏"
2153
+        checkDate.push(obj11)
2154
+      } if (this.afterdialysis.breathing_rate == "") {
2155
+        const obj12 = "透后呼吸频率"
2156
+        checkDate.push(obj12)
2157
+      } if (
2158
+        this.afterdialysis.systolic_blood_pressure == 0 ||
2159
+        this.afterdialysis.diastolic_blood_pressure == 0
2162 2160
       ) {
2163
-        this.$message.error("透析器未填");
2164
-      } else if (this.prescription.dialysis_irrigation == "") {
2165
-        this.$message.error("灌流器未填");
2166
-      } else if (
2167
-        this.prescription.plasma_separator == "" &&
2168
-        this.org_id == 9538
2161
+        const obj13 = "透后血压"
2162
+        checkDate.push(obj13)
2163
+      } if (this.afterdialysis.cruor == "") {
2164
+        const obj14 = "凝血程度"
2165
+        checkDate.push(obj14)
2166
+      } if (this.afterdialysis.symptom_after_dialysis == "") {
2167
+        const obj15 = "透后症状"
2168
+        checkDate.push(obj15)
2169
+      } if (this.afterdialysis.internal_fistula == "" && this.afterdialysis.catheter == "") {
2170
+        const obj16 = "透后内瘘,导管"
2171
+        checkDate.push(obj16)
2172
+      }  if (this.afterdialysis.complication == 0) {
2173
+        const obj17 = "并发症"
2174
+        checkDate.push(obj17)
2175
+      } if (this.afterdialysis.actual_displacement == 0 &&
2176
+        (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)) {
2177
+        const obj18 = "实际置换量"
2178
+        checkDate.push(obj18)
2179
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
2180
+        const obj19 = "实际超滤量"
2181
+        checkDate.push(obj19)
2182
+      } if (this.afterdialysis.weight_after == 0) {
2183
+        const obj20 = "透后体重"
2184
+        checkDate.push(obj20)
2185
+      } if(this.afterdialysis.dialysis_intakes ==0){
2186
+        const obj21 = "透析中入量"
2187
+        checkDate.push(obj21)
2188
+      }
2189
+      // if (this.afterdialysis.weight_loss == '' &&
2190
+      //     this.predialysis.weight_before =='' &&
2191
+      //     this.afterdialysis.weight_after == ''
2192
+      // ) {
2193
+      //   const obj21 = "体重减少"
2194
+      //   checkDate.push(obj21)
2195
+      // }
2196
+      if (this.prescription.target_ultrafiltration == 0) {
2197
+        const obj22 = "处方脱水量"
2198
+        checkDate.push(obj22)
2199
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
2200
+        const obj23 = "超滤总量"
2201
+        checkDate.push(obj23)
2202
+      } if (this.prescription.dialysis_duration_hour == 0) {
2203
+        const obj24 = "透析时长"
2204
+        checkDate.push(obj24)
2205
+      } if (this.prescription.mode == '') {
2206
+        const obj25 = "透析方式"
2207
+        checkDate.push(obj25)
2208
+      } if (this.prescription.displace_liqui_part == '' &&
2209
+      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
2210
+        const obj26 = "置换方式"
2211
+        checkDate.push(obj26)
2212
+      } if (this.prescription.displace_liqui_value == 0 &&
2213
+      (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
2214
+        const obj27 = "置换总量"
2215
+        checkDate.push(obj27)
2216
+      } if (this.predialysis.blood_access_part_opera_name == ''){
2217
+        const obj28 = "血管通路"
2218
+        checkDate.push(obj28)
2219
+      } if (this.prescription.blood_flow_volume == 0) {
2220
+        const obj29 = "血流量"
2221
+        checkDate.push(obj29)
2222
+      } if (
2223
+        this.prescription.dialyzer_perfusion_apparatus == '' 
2224
+      ){
2225
+        const obj30 = "人工肾装置"
2226
+        checkDate.push(obj30)
2227
+      }
2228
+      // if (this.predialysis.machine_type == 0) {
2229
+      //   const obj31 = "透析机型"
2230
+      //   checkDate.push(obj31)
2231
+      // }
2232
+      if ( this.dialysisOrder !=undefined && this.dialysisOrder.DeviceNumber.number == 0) {
2233
+        const obj32 = "机号"
2234
+        checkDate.push(obj32)
2235
+      } if (this.prescription.anticoagulant_name == 0) {
2236
+        const obj33 = "抗凝剂"
2237
+        checkDate.push(obj33)
2238
+      } if (this.prescription.anticoagulant_shouji == 0 &&
2239
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
2169 2240
       ) {
2170
-        this.$message.error("血浆分离器未填");
2171
-      } else if (
2172
-        this.prescription.bilirubin_adsorption_column == "" &&
2173
-        this.org_id == 9538
2241
+        const obj34 = "首剂"
2242
+        checkDate.push(obj34)
2243
+      }
2244
+
2245
+      if (this.prescription.anticoagulant_zongliang == 0 &&
2246
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
2174 2247
       ) {
2175
-        this.$message.error("胆红素吸附柱未填");
2176
-      } else if (this.predialysis.weight_before == 0) {
2177
-        this.$message.error("透前体重未填");
2178
-      } else if (this.predialysis.dry_weight == 0) {
2179
-        this.$message.error("干体重未填");
2180
-      } else if (this.prescription.target_ultrafiltration == 0) {
2181
-        this.$message.error("计划超滤量未填");
2182
-      } else if (this.prescription.calcium == 0) {
2183
-        this.$message.error("钙未填");
2184
-      } else if (this.prescription.sodium == 0) {
2185
-        this.$message.error("钠未填");
2186
-      } else if (this.prescription.kalium == 0) {
2187
-        this.$message.error("钾未填");
2188
-      } else if (this.prescription.bicarbonate == 0) {
2189
-        this.$message.error("碳酸氢根未填");
2190
-      } else if (this.prescription.dialysate_flow == 0) {
2191
-        this.$message.error("透析液流量未填");
2192
-      } else if (this.prescription.anticoagulant == 0) {
2193
-        this.$message.error("抗凝剂未填");
2194
-      } else if (
2248
+        const obj36 = "总量"
2249
+        checkDate.push(obj36)
2250
+      } if (this.prescription.calcium == 0) {
2251
+        const obj37 = "钙"
2252
+        checkDate.push(obj37)
2253
+      } if (this.prescription.sodium == 0) {
2254
+        const obj38 = "钠"
2255
+        checkDate.push(obj38)
2256
+      } if (this.prescription.kalium == 0) {
2257
+        const obj39 = "钾"
2258
+        checkDate.push(obj39)
2259
+      } if (this.prescription.bicarbonate == 0) {
2260
+        const obj40 = "碳酸氢根"
2261
+        checkDate.push(obj40)
2262
+      } if (this.prescription.dialysate_flow == 0) {
2263
+        const obj41 = "透析液流量"
2264
+        checkDate.push(obj41)
2265
+      } if (
2195 2266
         this.prescription.anticoagulant_gaimingcheng == "" &&
2196 2267
         this.prescription.anticoagulant == 5
2197 2268
       ) {
2198
-        this.$message.error("钙名称未填");
2199
-      } else if (
2269
+        const obj42 = "钙名称"
2270
+        checkDate.push(obj42)
2271
+      } if (
2200 2272
         this.prescription.anticoagulant_gaijiliang == "" &&
2201 2273
         this.prescription.anticoagulant == 5
2202 2274
       ) {
2203
-        this.$message.error("钙剂量未填");
2204
-      } else if (this.afterdialysis.temperature == 0) {
2205
-        this.$message.error("透后体温未填");
2206
-      } else if (this.afterdialysis.pulse_frequency == 0) {
2207
-        this.$message.error("透后脉搏未填");
2208
-      } else if (this.afterdialysis.breathing_rate == 0) {
2209
-        this.$message.error("透后呼吸频率未填");
2210
-      } else if (
2211
-        this.afterdialysis.systolic_blood_pressure == 0 ||
2212
-        this.afterdialysis.diastolic_blood_pressure == 0
2213
-      ) {
2214
-        this.$message.error("透后血压未填完整");
2215
-      } else if (
2275
+        const obj43 = "钙剂量"
2276
+        checkDate.push(obj43)
2277
+      } if (
2216 2278
         this.afterdialysis.actual_treatment_hour == 0 &&
2217 2279
         this.afterdialysis.actual_treatment_minute == 0
2218 2280
       ) {
2219
-        this.$message.error("实际治疗时间未填");
2220
-      } else if (this.afterdialysis.cruor == "") {
2221
-        this.$message.error("透析器凝血未填");
2222
-      } else if (this.afterdialysis.internal_fistula == "") {
2223
-        this.$message.error("透后内瘘未填");
2224
-      } else if (this.afterdialysis.catheter == "") {
2225
-        this.$message.error("透后导管未填");
2226
-      } else if (this.afterdialysis.weight_after == 0) {
2227
-        this.$message.error("透后体重未填");
2228
-      } else if (this.afterdialysis.weight_loss == 0) {
2229
-        this.$message.error("透后体重减少未填");
2230
-      } else if (this.afterdialysis.dialysis_intakes == 0) {
2231
-        this.$message.error("透析中入量未填");
2232
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
2233
-        this.$message.error("实际超滤量未填");
2234
-      } else if (this.summary.dialysis_summary == "") {
2235
-        this.$message.error("透析小结未填");
2236
-      } else if (
2281
+        const obj44 = "实际治疗时间"
2282
+        checkDate.push(obj44)
2283
+      } if (this.summary.mission == 0) {
2284
+        const obj45 = "透后宣教"
2285
+        checkDate.push(obj45)
2286
+      } if (this.summary.dialysis_summary == "") {
2287
+        const obj46 = "治疗小结"
2288
+        checkDate.push(obj46)
2289
+      } if (
2237 2290
         this.dialysisOrder == null ||
2238 2291
         this.dialysisOrder.puncture_nurse == 0
2239 2292
       ) {
2240
-        this.$message.error("穿刺护士未填");
2241
-      } else if (
2293
+        const obj47 = "穿刺护士"
2294
+        checkDate.push(obj47)
2295
+      } if (
2242 2296
         this.dialysisOrder == null ||
2243 2297
         this.dialysisOrder.start_nurse == 0
2244 2298
       ) {
2245
-        this.$message.error("治疗护士未填");
2246
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
2247
-        this.$message.error("核对人员未填");
2299
+        const obj48 = "治疗护士"
2300
+        checkDate.push(obj48)
2301
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
2302
+        const obj49 = "核对人员"
2303
+        checkDate.push(obj49)
2248 2304
       } else if (
2249 2305
         this.dialysisOrder != null &&
2250 2306
         this.dialysisOrder.start_nurse == this.check.modifier &&
2251 2307
         this.check.creater == 0
2252 2308
       ) {
2253
-        this.$message.error("核对人员未填");
2309
+        const obj49 = "核对人员"
2310
+        checkDate.push(obj49)
2254 2311
       } else if (
2255 2312
         this.dialysisOrder != null &&
2256 2313
         this.dialysisOrder.start_nurse == this.check.creater &&
2257 2314
         this.check.modifier == 0
2258 2315
       ) {
2259
-        this.$message.error("核对人员未填");
2316
+        const obj49 = "核对人员"
2317
+        checkDate.push(obj49)
2260 2318
       } else if (
2261 2319
         this.dialysisOrder != null &&
2262 2320
         this.dialysisOrder.start_nurse != this.check.creater &&
2263 2321
         this.dialysisOrder.start_nurse != this.check.modifier &&
2264 2322
         this.check.creater == 0
2265 2323
       ) {
2266
-        this.$message.error("核对人员未填");
2267
-      } else if (
2324
+        const obj49 = "核对人员"
2325
+        checkDate.push(obj49)
2326
+      } if (
2268 2327
         this.dialysisOrder == null ||
2269 2328
         this.dialysisOrder.finish_nurse == 0
2270 2329
       ) {
2271
-        this.$message.error("下机护士未填");
2272
-      } else if (this.prescription.creater == 0) {
2273
-        this.$message.error("医生签名未填");
2274
-      } else if (this.tableAdvice.length > 0) {
2275
-        let num = 0;
2276
-        this.tableAdvice.map((item) => {
2277
-          if (item.id > 0 && (item.created_time || item.start_time)) {
2278
-            this.users.map((it) => {
2279
-              if (it.id == item.advice_doctor) {
2280
-                if (it.user_type == 3) {
2281
-                  num++;
2282
-                  this.$message.closeAll();
2283
-                  this.$message.error("存在不是医生保存的医嘱");
2284
-                } else if (
2285
-                  it.id == item.execution_staff &&
2286
-                  item.execution_staff > 0
2287
-                ) {
2288
-                  if (it.user_type == 2) {
2289
-                    num++;
2290
-                    this.$message.closeAll();
2291
-                    this.$message.error("存在不是护士执行的医嘱");
2292
-                  }
2293
-                } else if (it.id == item.checker && item.checker > 0) {
2294
-                  if (it.user_type == 2) {
2295
-                    num++;
2296
-                    this.$message.closeAll();
2297
-                    this.$message.error("存在不是护士核对的医嘱");
2298
-                  }
2299
-                }
2300
-              } else if (
2301
-                it.id == item.execution_staff &&
2302
-                item.execution_staff > 0
2303
-              ) {
2304
-                if (it.user_type == 2) {
2305
-                  num++;
2306
-                  this.$message.closeAll();
2307
-                  this.$message.error("存在不是护士执行的医嘱");
2308
-                }
2309
-              } else if (it.id == item.checker && item.checker > 0) {
2310
-                if (it.user_type == 2) {
2311
-                  num++;
2312
-                  this.$message.closeAll();
2313
-                  this.$message.error("存在不是护士核对的医嘱");
2314
-                }
2330
+        const obj50 = "下机护士"
2331
+        checkDate.push(obj50)
2332
+      } if (this.prescription.creater == 0) {
2333
+        const obj51 = "治疗医生"
2334
+        checkDate.push(obj51)
2335
+      }
2336
+      if(this.tableAdvice.length > 0){
2337
+        this.tableAdvice.map((item) =>{
2338
+          if(item.id > 0 && (item.created_time || item.start_time)){
2339
+            if(item.execution_staff ==0 || item.checker ==0){
2340
+              const obj52 = '执行人员,核对人员'
2341
+              checkDate.push(obj52)
2342
+            }
2343
+          }
2344
+        })
2345
+      }
2346
+      if(this.dialysisOrder !=undefined && this.dialysisOrder.end_time != 0){
2347
+        if(this.monitors.length >0){
2348
+          for(let i in this.monitors){
2349
+            if(this.dialysisOrder.end_time >= this.monitors[i].operate_time &&
2350
+              this.monitors[i].dispose.indexOf('停') <=-1 && this.monitors[i].ultrafiltration_rate!=0
2351
+            ){
2352
+
2353
+              if(this.monitors[i].ktv ==0){
2354
+                const obj531= '监测第'+((i*1)+1)+'行ktv'
2355
+                checkDate.push(obj531)
2356
+              }if(this.monitors[i].arterial_pressure ==0){
2357
+                const obj541 = '监测第'+((i*1)+1)+'行动脉压'
2358
+                checkDate.push(obj541)
2359
+              }
2360
+              if(this.monitors[i].blood_flow_volume ==0 ){
2361
+                const obj55 = '监测第'+((i*1)+1)+'行血流量'
2362
+                checkDate.push(obj55)
2363
+              } if((this.monitors[i].venous_pressure ==0 ||
2364
+                  this.monitors[i].transmembrane_pressure ==0 ) ){
2365
+                const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
2366
+                checkDate.push(obj56)
2367
+              } if(this.monitors[i].ultrafiltration_rate ==0 || this.monitors[i].ultrafiltration_volume == 0){
2368
+                const obj57 = '监测第'+((i*1)+1)+'行超滤量/超滤率'
2369
+                checkDate.push(obj57)
2370
+              } 
2371
+              // if(this.monitors[i].ultrafiltration_volume == 0 && i !=0 ){
2372
+              //   const obj53 = '监测第'+((i*1)+1)+'行超滤量'
2373
+              //   checkDate.push(obj53)
2374
+              // } 
2375
+              if((this.monitors[i].replacement_rate ==0 || this.monitors[i].displacement_quantity == 0) && this.prescription.mode =='HDF'){
2376
+                const obj58 = '监测第'+((i*1)+1)+'行置换率/置换量'
2377
+                checkDate.push(obj58)
2378
+              } 
2379
+              // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
2380
+              //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
2381
+              //   checkDate.push(obj54)
2382
+              // } 
2383
+              if(this.monitors[i].sodium_concentration ==0 || this.monitors[i].dialysate_temperature == 0 ){
2384
+                // this.monitors[i].temperature == 0
2385
+                const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
2386
+                checkDate.push(obj59)
2387
+              } if(this.monitors[i].pulse_frequency ==0  ){
2388
+                const obj60 = '监测第'+((i*1)+1)+'行脉搏'
2389
+                checkDate.push(obj60)
2390
+              } if(this.monitors[i].breathing_rate ==0 ){
2391
+                const obj61 = '监测第'+((i*1)+1)+'行呼吸'
2392
+                checkDate.push(obj61)
2393
+              } if((this.monitors[i].systolic_blood_pressure ==0 ||
2394
+                    this.monitors.diastolic_blood_pressure==0) ){
2395
+                const obj62 = '监测第'+((i*1)+1)+'行血压'
2396
+                checkDate.push(obj62)
2315 2397
               }
2316
-            });
2398
+            }
2399
+
2400
+
2317 2401
           }
2318
-        });
2319
-        if (num == 0) {
2320
-          this.$message.success("核对完成");
2321 2402
         }
2322
-      } else {
2323
-        this.$message.success("核对完成");
2324 2403
       }
2404
+      console.log('monearr监测',checkDate,monearr);
2405
+
2406
+      this.getcheckData(checkDate)
2325 2407
     },
2326 2408
     getDisplaceLiquiPart: function (val) {
2327 2409
       let displace_liqui_part_name = "/";
@@ -2641,6 +2723,8 @@ export default {
2641 2723
           const monitor = this.monitors[index];
2642 2724
           this.monitors[index].end = "";
2643 2725
           if (Object.keys(monitor).length > 0 && index > 1) {
2726
+              console.log('monitor.operate_time',monitor.operate_time,this.dialysisOrder.end_time);
2727
+
2644 2728
             if (
2645 2729
               (this.dialysisOrder &&
2646 2730
               monitor.operate_time == this.dialysisOrder.end_time)
@@ -3035,7 +3119,18 @@ export default {
3035 3119
         return "0.0";
3036 3120
       }
3037 3121
     },
3038
-
3122
+    getcheckData(val){
3123
+      if(val.length >0){
3124
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
3125
+        this.$alert(message, '提示', {
3126
+          confirmButtonText: '确定',
3127
+          type: 'warning',
3128
+          dangerouslyUseHTMLString: true,
3129
+        });
3130
+      }else{
3131
+        this.$message.success('核对完成')
3132
+      }
3133
+    }
3039 3134
   },
3040 3135
   watch: {
3041 3136
     "patientInfo.gender": function () {

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

@@ -1548,10 +1548,12 @@ export default {
1548 1548
     },
1549 1549
     getcheckData(val){
1550 1550
       if(val.length >0){
1551
-        const a = val.join(',')
1552
-        console.log('a',a);
1553
-        this.$message.error(a +" 未填");
1554
-        return a
1551
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
1552
+        this.$alert(message, '提示', {
1553
+          confirmButtonText: '确定',
1554
+          type: 'warning',
1555
+          dangerouslyUseHTMLString: true,
1556
+        });
1555 1557
       }else{
1556 1558
         this.$message.success('核对完成')
1557 1559
       }