浏览代码

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

陈少旭 6 个月前
父节点
当前提交
a5b7e3ddbe

+ 20 - 1
src/api/patient.js 查看文件

@@ -1295,4 +1295,23 @@ export function createNewCourseOfDiseaseRecord(data){
1295 1295
     method:"post",
1296 1296
     data:data,
1297 1297
   })
1298
-}
1298
+}
1299
+
1300
+export function getPatientCourseOfDiseaseList(params){
1301
+  
1302
+  return request({
1303
+    url:"/api/patient/getpatientcourseofdiseaseslist",
1304
+    method:"get",
1305
+    params:params,
1306
+  })
1307
+}
1308
+
1309
+export function deleteNewCouseOfDisease(id,params){
1310
+
1311
+  return request({
1312
+    url:"/api/patient/deletenewcourseofdisease?id="+id,
1313
+    method:"Get",
1314
+    params:params,
1315
+  })
1316
+}
1317
+

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyTwo.vue 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

+ 3 - 0
src/xt_pages/stock/stockInventoryModePrint.vue 查看文件

@@ -433,6 +433,9 @@ export default {
433 433
             obj.month_out_total_price += parseFloat(this.tableList[i].month_out_total_price)
434 434
             obj.month_over_total_price += parseFloat(this.tableList[i].month_over_total_price)
435 435
           }
436
+          obj.month_over_total_price = obj.month_over_total_price.toFixed(2)
437
+          obj.month_out_total_price =  obj.month_out_total_price.toFixed(2)
438
+          obj.month_in_total_price = obj.month_in_total_price.toFixed(2)
436 439
           this.tableList.push(obj)
437 440
         }
438 441
       })

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue 查看文件

@@ -167,10 +167,10 @@ export default {
167 167
               name: '3-1',
168 168
               label: '病史'
169 169
             },
170
-            {
171
-              name: '3-4',
172
-              label: '病史新'
173
-            },
170
+            // {
171
+            //   name: '3-4',
172
+            //   label: '病史新'
173
+            // },
174 174
             {
175 175
               name: '3-2',
176 176
               label: '体格检查'

+ 123 - 289
src/xt_pages/user/courseOfDisease_new.vue 查看文件

@@ -1,11 +1,8 @@
1 1
 <template>
2
-  <!-- <div class="main-contain">
3
-      <div class="position">
4
-         <bread-crumb></bread-crumb>
5
-      </div> -->
2
+ 
6 3
   <div class="patient-container">
7 4
     <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
8
-    <!-- <div class="app-container"> -->
5
+   
9 6
     <div v-loading="loading">
10 7
       <div class="patient-app-container advice-container app-container" style="">
11 8
         <div style="display: flex;">
@@ -25,23 +22,21 @@
25 22
                 :highlight-current-row="true"
26 23
                 @row-click="rowclick"
27 24
                 style="width: 100%">
28
-                <el-table-column
29
-                  type="selection"
30
-                  width="55">
25
+                
26
+                <el-table-column prop="index" label="序号" width="50">
27
+                  <template slot-scope="scope">
28
+                     {{ scope.$index + 1 }}
29
+                  </template>
31 30
                 </el-table-column>
32
-                <el-table-column
33
-                  prop="index"
34
-                  label="序号"
35
-                  width="50">
31
+                <el-table-column prop="date" label="时间" width="">
32
+                  <template slot-scope="scope">
33
+                      {{ getTime(scope.row.record_time) }}
34
+                    </template>
36 35
                 </el-table-column>
37
-                <el-table-column
38
-                  prop="date"
39
-                  label="时间"
40
-                  width="">
41
-                </el-table-column>
42
-                <el-table-column
43
-                  prop="doctor"
44
-                  label="医生">
36
+                <el-table-column prop="doctor" label="医生">
37
+                  <template slot-scope="scope">
38
+                    {{ getDocName(scope.row.doctor_id) }}
39
+                  </template>
45 40
                 </el-table-column>
46 41
               </el-table>
47 42
             </div>
@@ -58,7 +53,7 @@
58 53
                   <el-button type="primary" size="small" @click="prints">打印</el-button>
59 54
                 </div>
60 55
                 <div v-if="add_index == 1">
61
-                  <el-button type="primary" size="small" @click="showSave">保存</el-button>
56
+                  <el-button type="primary" size="small" @click="showSave">保存2</el-button>
62 57
                   <el-button size="small" @click="showCancel">取消</el-button>
63 58
                 </div>
64 59
               </div>
@@ -66,15 +61,10 @@
66 61
             <div style="display: flex;margin: 10px 0;">
67 62
               <div style="flex: 1;">
68 63
                 记录时间:
69
-                <el-date-picker
70
-                  v-model="record_date"
71
-                  type="date"
72
-                  format="yyyy-MM-dd"
73
-                  :disabled="disabled"
74
-                  style="width: 150px;"
75
-                   value-format="yyyy-MM-dd"
76
-                  placeholder="选择日期">
77
-                </el-date-picker>
64
+                <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
65
+                              style="width: 250px;"
66
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
67
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
78 68
               </div>
79 69
               <div style="flex: 1;">
80 70
                 病程医生:
@@ -100,7 +90,8 @@
100 90
                   自动生成
101 91
                 </el-button>
102 92
               </div>
103
-              <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
93
+             
94
+              <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
104 95
             </div>
105 96
           </div>
106 97
         </div>
@@ -210,111 +201,18 @@
210 201
             </div>
211 202
           </div>
212 203
         </div>
213
-        <!-- <span slot="footer" class="dialog-footer">
214
-          <el-button @click="auto_dialog = false">取 消</el-button>
215
-          <el-button type="primary" @click="auto_dialog = false">确 定</el-button>
216
-        </span> -->
217
-      </el-dialog>
218
-
219
-
220
-
221
-
222
-      <!-- </div> -->
223
-      <el-dialog title="新增病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_dialog">
224
-        <div>
225
-          <div class="new_record_form">
226
-            <div class="cell clearfix">
227
-              <label class="title"><span class="name">病程日期</span> : </label>
228
-              <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
229
-                              style="width: 250px;"
230
-                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
231
-                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
232
-
233
-              <label class="title"><span class="name">日常病程</span> : </label>
234
-              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
235
-                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
236
-                           :value="option.content"></el-option>
237
-              </el-select>
238
-            </div>
239
-
240
-            <div class="cell clearfix" style="margin-top: 10px">
241
-              <label class="title"><span class="name">病程标题</span> : </label>
242
-              <el-input v-model="title" style="width: 420px"></el-input>
243
-            </div>
244
-
245
-            <div style="margin-top: 10px;">
246
-              <el-button type="primary" size="small" @click="toAuto" v-if="org_id == 3877 || org_id == 10440" >自动生成</el-button>
247
-            </div>
248
-            <div class="textarea_panel">
249
-              <keep-alive>
250
-                <editor ref="editor"
251
-                        id="editors"
252
-                        style="width: 80%"
253
-                        :content="new_content"
254
-                        >
255
-                </editor>
256
-              </keep-alive>
257
-            </div>
258
-
259
-            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
260
-              <el-button @click="show_dialog = false">取消</el-button>
261
-              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
262
-                         @click="createAction" :loading="uploading_new_record">保存
263
-              </el-button>
264
-            </div>
265
-          </div>
266
-        </div>
204
+       
267 205
       </el-dialog>
268 206
 
269 207
 
270
-      <el-dialog title="修改病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_edit_dialog" style="">
271
-        <div>
272
-          <div class="new_record_form">
273
-            <div class="cell clearfix">
274
-              <label class="title"><span class="name">病程日期</span> : </label>
275
-              <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
276
-                              style="width: 200px;"
277
-                              type="datetime"
278
-                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
279
-                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
280
-
281
-              <label class="title"><span class="name">日常病程</span> : </label>
282
-              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
283
-                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
284
-                           :value="option.content"></el-option>
285
-              </el-select>
286
-            </div>
287 208
 
288 209
 
289
-            <div class="cell clearfix" style="margin-top: 10px">
290
-              <label class="title"><span class="name">病程标题</span> : </label>
291
-              <el-input v-model="edit_title" style="width: 420px"></el-input>
292
-            </div>
293
-
294
-            <div class="textarea_panel">
295
-              <!--<el-input v-model="edit_new_content" type="textarea" rows="6" resize="none"></el-input>-->
296
-              <keep-alive>
297
-                <editor ref="edit_neditor"
298
-                        id="edit_editor"
299
-                        style="width: 80%"
300
-                        v-bind:r_content="edit_new_content">
301
-                </editor>
302
-              </keep-alive>
303
-            </div>
304
-
305
-            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
306
-              <el-button @click="show_edit_dialog = false">取消</el-button>
307
-              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
308
-                         @click="modifyAction" :loading="uploading_new_record">保存
309
-              </el-button>
310
-            </div>
311
-          </div>
312
-        </div>
313
-      </el-dialog>
210
+    
211
+ 
314 212
     </div>
315 213
   </div>
316 214
 
317
-  <!-- </div> -->
215
+
318 216
 </template>
319 217
 
320 218
 <script>
@@ -326,10 +224,9 @@
326 224
   import { getDataConfig } from "@/utils/data";
327 225
   import {
328 226
     createNewCourseOfDiseaseRecord,
329
-    deleteCourseOfDiseaseRecords,
330
-    getCourseOfDiseaseRecords,
227
+    deleteNewCouseOfDisease,
331 228
     modifyCourseOfDiseaseRecord,
332
-    getPatientDialysisInfor
229
+    getPatientCourseOfDiseaseList
333 230
   } from '@/api/patient'
334 231
   import { fetchAllDoctorAndNurse } from "@/api/doctor";
335 232
   import { parseTime } from '@/utils'
@@ -380,31 +277,16 @@
380 277
         start_date:'',
381 278
         end_date:'',
382 279
         quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
383
-        tableData:[{index:1,date:'2024-11-12',doctor:'王启年'}],
280
+        tableData:[],
384 281
         admin_user_id:0,
385
-        record_date:""
282
+        record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
283
+        template_name:"",
284
+        id:0
386 285
       }
387 286
     },
388 287
     created() {
389 288
       this.admin_user_id = this.$store.getters.xt_user.user.id
390
-      var now = new Date()
391
-      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
392
-
393
-      var nowDate = new Date()
394
-      var nowYear = nowDate.getFullYear()
395
-      var nowMonth = nowDate.getMonth() + 1
396
-      var nowDay = nowDate.getDate()
397
-      this.end_time =
398
-        nowYear +
399
-        '-' +
400
-        (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
401
-        '-' +
402
-        (nowDay < 10 ? '0' + nowDay : nowDay)
403
-      nowDate.setMonth(nowDate.getMonth() - 1)
404
-      nowYear = nowDate.getFullYear()
405
-      nowMonth = nowDate.getMonth() + 1
406
-      nowDay = nowDate.getDate()
407
-      this.record_date = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
289
+    
408 290
       this.patient_id = parseInt(this.$route.query.id)
409 291
       this.org_id = this.$store.getters.xt_user.template_info.org_id;
410 292
       if (isNaN(this.patient_id) || this.patient_id <= 0) {
@@ -415,17 +297,47 @@
415 297
         this.$router.push('/patients/patients')
416 298
         return
417 299
       }
418
-     
419
-      // this.start_time = moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD');
420
-      // console.log("start_time",this.start_time)
421
-      // this.end_time = moment().endOf('month').format('YYYY-MM-DD');
422
-      // console.log("end_time",this.end_time)
300
+
423 301
       this.fetchAllDoctorAndNurse()
424
-      this.requestCourseRecords()
302
+      this.getlist()
425 303
      
426 304
 
427 305
     },
428 306
     methods: {
307
+      template_dele(){
308
+
309
+      },
310
+      rowclick(){
311
+
312
+      },
313
+      prints(){
314
+
315
+      },
316
+      template_save(){
317
+
318
+      },
319
+      getDocName(admin_user_id){
320
+        var user_name = ""
321
+        for(let i=0;i<this.doctorOptions.length;i++){
322
+          if(admin_user_id == this.doctorOptions[i].id){
323
+              user_name = this.doctorOptions[i].name
324
+          }
325
+        }
326
+       return user_name
327
+     },
328
+      getlist(){
329
+          var params = {
330
+            patient_id:this.patient_id
331
+          }
332
+        getPatientCourseOfDiseaseList(params).then(response=>{
333
+            if(response.data.state == 1){
334
+               var list = response.data.data.list
335
+              this.tableData = []
336
+              this.tableData = list
337
+             
338
+            }
339
+        })
340
+     },
429 341
      fetchAllDoctorAndNurse() {
430 342
        fetchAllDoctorAndNurse().then(response => {
431 343
         if (response.data.state == 1) {
@@ -445,8 +357,29 @@
445 357
       showSave(){
446 358
         this.add_index = 0
447 359
         this.disabled = true
448
-        saveNewCousreOfDisease().then(response=>{
360
+        console.log("haaaaaaaaaaaaaaa",this.$refs)
361
+        this.new_content = this.$refs.editor.contents
362
+        if (this.new_content.length == 0) {
363
+          this.$message.error('请填写病程内容')
364
+          return
365
+        }
366
+        var params = {
367
+          id:this.id,
368
+          patient_id:this.patient_id,
369
+          record_date:this.record_date,
370
+          content:this.new_content,
371
+          admin_user_id:this.admin_user_id,
372
+        }
373
+        console.log("params",params)
374
+        createNewCourseOfDiseaseRecord(params).then(response => {
375
+         if(response.data.state == 1){
376
+           var msg = response.data.data.msg
377
+           this.$message.success("保存成功!")
378
+           this.getlist()
379
+         }
449 380
 
381
+        }).catch(error => {
382
+         
450 383
         })
451 384
       },
452 385
       template_click(){
@@ -464,12 +397,6 @@
464 397
       autotext_click(){
465 398
         this.auto_dialog = false
466 399
       },
467
-
468
-
469
-
470
-
471
-
472
-
473 400
       requestCourseRecords: function() {
474 401
         this.loading = true
475 402
         getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
@@ -540,22 +467,26 @@
540 467
 
541 468
       },
542 469
 
543
-      createAction: function() {
470
+      createAction() {
471
+        console.log("haaaaaaaaaaaaaaa",this.$refs)
544 472
         this.new_content = this.$refs.editor.contents
545
-        console.log("hhhhh2h3h232323232",this.new_content)
473
+        
546 474
         if (this.new_content.length == 0) {
547 475
           this.$message.error('请填写病程内容')
548 476
           return
549 477
         }
550 478
         var params = {
479
+          id:this.id,
551 480
           patient_id:this.patient_id,
552 481
           record_date:this.record_date,
553 482
           content:this.new_content,
554 483
           admin_user_id:this.admin_user_id,
555 484
         }
485
+        console.log("params",params)
556 486
         createNewCourseOfDiseaseRecord(params).then(response => {
557 487
          if(response.data.state == 1){
558
-
488
+           var msg = response.data.data.msg
489
+           this.$message.success("保存成功!")
559 490
          }
560 491
 
561 492
         }).catch(error => {
@@ -580,44 +511,30 @@
580 511
         console.log("select23322332",this.ids)
581 512
         this.selectingRows = selectRows
582 513
       },
583
-      deleteAction: function() {
584
-        if (this.selectingRows.length == 0) {
585
-          return
586
-        }
587
-        var ids = []
588
-        for (let index = 0; index < this.selectingRows.length; index++) {
589
-          const row = this.selectingRows[index]
590
-          ids.push(row.id)
591
-        }
592
-        var ids_str = ids.join(',')
593
-        this.loading = true
594
-        deleteCourseOfDiseaseRecords(this.patient_id, ids_str).then(rs => {
595
-          var resp = rs.data
596
-          if (resp.state == 1) {
597
-            for (let id_index = 0; id_index < ids.length; id_index++) {
598
-              for (let record_index = 0; record_index < this.records.length; record_index++) {
599
-                if (ids[id_index] == this.records[record_index].id) {
600
-                  this.records.splice(record_index, 1)
601
-                  break
602
-                }
603
-              }
514
+      deleteAction(){
515
+        if(this.id == 0){
516
+          this.$message.error("请选择要删除的信息!")
517
+          return false
518
+        }
519
+        this.$confirm('确定要取消吗?', '提示', {
520
+          confirmButtonText: '确定',
521
+          cancelButtonText: '取消',
522
+          type: 'warning'
523
+        }).then(() => {
524
+          deleteNewCouseOfDisease(this.id).then(response=>{
525
+            if (response.data.state==1) {
526
+              var msg = response.data.data.msg
527
+              this.$message.success("保存成功!")
528
+              this.getlist()
604 529
             }
605
-            this.selectingRows = []
606
-            this.$message.success('已删除')
530
+          });
531
+        }).catch(() => {
607 532
 
608
-          } else {
609
-            this.$message.error(resp.msg)
610
-          }
611
-          this.loading = false
612
-        }).catch(err => {
613
-          this.loading = false
614
-          this.$message.error(err)
615
-        })
616
-      }, startTimeChange(val) {
617
-        this.requestCourseRecords()
618
-      }, endTimeChange(val) {
619
-        this.requestCourseRecords()
620
-      }, showEdit() {
533
+        });
534
+
535
+
536
+      },
537
+      showEdit() {
621 538
         if (this.table_current_index == -1) {
622 539
           this.$message.error('请选择要修改的病程内容')
623 540
           return
@@ -643,92 +560,6 @@
643 560
         this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
644 561
 
645 562
       },
646
-      toAuto(){
647
-
648
-         var params=  {
649
-           patient_id:parseInt(this.$route.query.id),
650
-           record_date:this.course_of_disease_time.slice(0,10),
651
-         }
652
-         console.log("param2222owoowwow",params)
653
-        getPatientDialysisInfor(params).then(response=>{
654
-          if(response.data.state== 1){
655
-            var patient = response.data.data.patient
656
-            var prescription = response.data.data.prescription
657
-            var predialysis_evaluation =  response.data.data.assessmentBefor
658
-            var dialysis_order =  response.data.data.order
659
-            var monitors = response.data.data.monitor
660
-            var doctor_advices = response.data.data.advice
661
-            var assessment_after_dislysis =  response.data.data.afterDislysis
662
-
663
-           var str_one = ""
664
-          if(dialysis_order!=null){
665
-            if(dialysis_order.puncture_nurse_id >0){
666
-              str_one = "护士穿刺成功!"
667
-            }
668
-          }
669
-
670
-          var total =0
671
-          if(predialysis_evaluation!=null){
672
-            total = (predialysis_evaluation.weight_before - predialysis_evaluation.dry_weight).toFixed(1)
673
-          }
674
-
675
-
676
-        var monitor_one =[]
677
-        var monitor_two = []
678
-        var monitor_three = []
679
-
680
-        if(monitors!=null && monitors.length > 0){
681
-          var monitor_one =  monitors.sort(function (a,b) {
682
-            return b.systolic_bp - a.systolic_bp
683
-          })
684
-          var monitor_two =  monitors.sort(function (a,b) {
685
-            return b.diastolic_bp - a.diastolic_bp
686
-          })
687
-
688
-          var monitor_three = monitors.sort(function (a,b) {
689
-            return b.pulse_frequency - a.pulse_frequency
690
-          })
691
-
692
-        }
693
-
694
-        var doc_str = ""
695
-
696
-        if(doctor_advices!=null && doctor_advices.length > 0){
697
-
698
-
699
-          for(let i=0;i<doctor_advices.length;i++){
700
-            doc_str +=doctor_advices[i].advice_name +" "+doctor_advices[i].prescribing_number+doctor_advices[i].prescribing_number_unit+" "+doctor_advices[i].delivery_way
701
-          }
702
-        }
703
-
704
-        if(predialysis_evaluation.blood_access_part_id == -2){
705
-          predialysis_evaluation.blood_access_part_id = ""
706
-        }
707
-
708
-        var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(prescription.mode_id)+
709
-        ",透前检查:"+predialysis_evaluation.internal_fistula +predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(prescription.anticoagulant) +",总量:"+prescription.anticoagulant_zongliang+"iu"+
710
-        ",透前体重:"+predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+prescription.target_ultrafiltration +"ml" +",血流量:"+prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
711
-        +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(dialysis_order.end_time) +
712
-        ",实际治疗时长:"+ assessment_after_dislysis.actual_treatment_hour +"时"+assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
713
-        +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+assessment_after_dislysis.pulse_frequency +"次/分"
714
-
715
-        console.log("str000000000000000000222o2o2",str)
716
-           this.new_content =str
717
-          }
718
-        })
719
-
720
-      },
721
-
722
-      QueryOperaById(val){
723
-        var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
724
-        var name = ""
725
-        for(let i=0;i<blood_access_part_opera.length;i++){
726
-          if(val == blood_access_part_opera[i].id){
727
-              name = blood_access_part_opera[i].name
728
-          }
729
-        }
730
-        return name
731
-      },
732 563
       getModeId(mode_id){
733 564
         var mode_name = ""
734 565
         if(mode_id == 1){
@@ -874,6 +705,9 @@
874 705
       getTime (time) {
875 706
       return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
876 707
       },
708
+      getTimeOne (time) {
709
+      return uParseTime(time, '{y}-{m}-{d}')
710
+      },
877 711
     }
878 712
   }
879 713
 </script>

+ 22 - 22
src/xt_pages/workforce/scheduleTablePrintThree.vue 查看文件

@@ -44,35 +44,35 @@
44 44
                 <td style="width:50px;" v-if="first_day == 1">
45 45
                     <span v-if="item.Mon_M.patient_id">
46 46
                         <span>{{ item.Mon_M.patient }} </span><br/>
47
-                        <span >{{ item.Mon_M.mode_name }}</span><br/>
47
+                        <span v-if="item.Mon_M.mode_id !=1">{{ item.Mon_M.mode_name }}</span><br/>
48 48
                         <span v-show="showflag">{{item.Mon_M.dialysis_machine_name}}</span>
49 49
                     </span>
50 50
                 </td>
51 51
                 <td style="width:50px;" v-if="first_day == 1">
52 52
                     <span v-if="item.Mon_A.patient_id">
53 53
                         <span>{{ item.Mon_A.patient }} </span><br/>
54
-                        <span >{{ item.Mon_A.mode_name }}</span><br/>
54
+                        <span v-if="item.Mon_A.mode_id !=1">{{ item.Mon_A.mode_name }}</span><br/>
55 55
                        <span v-show="showflag">{{item.Mon_A.dialysis_machine_name}}</span>
56 56
                     </span>
57 57
                 </td>
58 58
                 <td style="width:50px;" v-if="first_day == 1">
59 59
                     <span v-if="item.Mon_N.patient_id">
60 60
                         <span>{{ item.Mon_N.patient }} </span><br/>
61
-                        <span >{{ item.Mon_N.mode_name }}</span><br/>
61
+                        <span v-if="item.Mon_N.mode_id !=1">{{ item.Mon_N.mode_name }}</span><br/>
62 62
                         <span v-show="showflag">{{item.Mon_N.dialysis_machine_name}}</span>
63 63
                     </span>
64 64
                 </td>
65 65
                 <td style="width:50px;"  v-if="second_day == 2">
66 66
                     <span v-if="item.Tue_M.patient_id">
67 67
                         <span>{{ item.Tue_M.patient }} </span><br/>
68
-                        <span >{{ item.Tue_M.mode_name }}</span><br/>
68
+                        <span v-if="item.Tue_M.mode_id !=1">{{ item.Tue_M.mode_name }}</span><br/>
69 69
                         <span v-show="showflag">{{item.Tue_M.dialysis_machine_name}}</span>
70 70
                     </span>
71 71
                 </td>
72 72
                 <td style="width:50px;"  v-if="second_day == 2">
73 73
                     <span v-if="item.Tue_A.patient_id">
74 74
                       <span>{{ item.Tue_A.patient }} </span><br/>
75
-                        <span >{{ item.Tue_A.mode_name }}</span><br/>
75
+                        <span v-if="item.Tue_A.mode_id !=1">{{ item.Tue_A.mode_name }}</span><br/>
76 76
                         <span v-show="showflag">{{item.Tue_A.dialysis_machine_name}}</span>
77 77
 
78 78
                     </span>
@@ -80,105 +80,105 @@
80 80
                 <td style="width:50px;"  v-if="second_day == 2">
81 81
                     <span v-if="item.Tue_N.patient_id">
82 82
                       <span>{{ item.Tue_N.patient }} </span><br/>
83
-                        <span >{{ item.Tue_N.mode_name }}</span><br/>
83
+                        <span v-if="item.Tue_N.mode_id !=1">{{ item.Tue_N.mode_name }}</span><br/>
84 84
                         <span v-show="showflag">{{item.Tue_N.dialysis_machine_name}}</span>
85 85
                     </span>
86 86
                 </td>
87 87
                 <td style="width:50px;" v-if="three_day == 3">
88 88
                     <span v-if="item.Wed_M.patient_id">
89 89
                       <span>{{ item.Wed_M.patient }} </span><br/>
90
-                        <span >{{ item.Wed_M.mode_name }}</span><br/>
90
+                        <span v-if="item.Wed_M.mode_id !=1">{{ item.Wed_M.mode_name }}</span><br/>
91 91
                         <span v-show="showflag">{{item.Wed_M.dialysis_machine_name}}</span>
92 92
                     </span>
93 93
                 </td>
94 94
                 <td style="width:50px;" v-if="three_day == 3">
95 95
                     <span v-if="item.Wed_A.patient_id">
96 96
                       <span>{{ item.Wed_A.patient }} </span><br/>
97
-                        <span >{{ item.Wed_A.mode_name }}</span><br/>
97
+                        <span v-if="item.Wed_A.mode_id !=1">{{ item.Wed_A.mode_name }}</span><br/>
98 98
                         <span v-show="showflag">{{item.Wed_A.dialysis_machine_name}}</span>
99 99
                     </span>
100 100
                 </td>
101 101
                 <td style="width:50px;" v-if="three_day == 3">
102 102
                     <span v-if="item.Wed_N.patient_id">
103 103
                       <span>{{ item.Wed_N.patient }} </span><br/>
104
-                        <span >{{ item.Wed_N.mode_name }}</span><br/>
104
+                        <span v-if="item.Wed_N.mode_id !=1">{{ item.Wed_N.mode_name }}</span><br/>
105 105
                         <span v-show="showflag">{{item.Wed_N.dialysis_machine_name}}</span>
106 106
                     </span>
107 107
                 </td>
108 108
                 <td style="width:50px;" v-if="four_day == 4">
109 109
                     <span v-if="item.Thurs_M.patient_id">
110 110
                       <span>{{ item.Thurs_M.patient }} </span><br/>
111
-                        <span >{{ item.Thurs_M.mode_name }}</span><br/>
111
+                        <span v-if="item.Thurs_M.mode_id !=1">{{ item.Thurs_M.mode_name }}</span><br/>
112 112
                         <span v-show="showflag">{{item.Thurs_M.dialysis_machine_name}}</span>
113 113
                     </span>
114 114
                 </td>
115 115
                 <td style="width:50px;" v-if="four_day == 4">
116 116
                     <span v-if="item.Thurs_A.patient_id">
117 117
                       <span>{{ item.Thurs_A.patient }} </span><br/>
118
-                        <span >{{ item.Thurs_A.mode_name }}</span><br/>
118
+                        <span v-if="item.Thurs_A.mode_id !=1">{{ item.Thurs_A.mode_name }}</span><br/>
119 119
                         <span v-show="showflag">{{item.Thurs_A.dialysis_machine_name}}</span>
120 120
                     </span>
121 121
                 </td>
122 122
                 <td style="width:50px;" v-if="four_day == 4">
123 123
                     <span v-if="item.Thurs_N.patient_id">
124 124
                       <span>{{ item.Thurs_N.patient }} </span><br/>
125
-                        <span >{{ item.Thurs_N.mode_name }}</span><br/>
125
+                        <span v-if="item.Thurs_N.mode_id !=1">{{ item.Thurs_N.mode_name }}</span><br/>
126 126
                         <span v-show="showflag">{{item.Thurs_N.dialysis_machine_name}}</span>
127 127
                     </span>
128 128
                 </td>
129 129
                 <td style="width:50px;" v-if="five_day == 5">
130 130
                     <span v-if="item.Fri_M.patient_id">
131 131
                       <span>{{ item.Fri_M.patient }} </span><br/>
132
-                        <span >{{ item.Fri_M.mode_name }}</span><br/>
132
+                        <span v-if="item.Fri_M.mode_id !=1">{{ item.Fri_M.mode_name }}</span><br/>
133 133
                         <span v-show="showflag">{{item.Fri_M.dialysis_machine_name}}</span>
134 134
                     </span>
135 135
                 </td>
136 136
                 <td style="width:50px;" v-if="five_day == 5">
137 137
                     <span v-if="item.Fri_A.patient_id">
138 138
                       <span>{{ item.Fri_A.patient }} </span><br/>
139
-                        <span >{{ item.Fri_A.mode_name }}</span><br/>
139
+                        <span v-if="item.Fri_A.mode_id !=1">{{ item.Fri_A.mode_name }}</span><br/>
140 140
                         <span v-show="showflag">{{item.Fri_A.dialysis_machine_name}}</span>
141 141
                     </span>
142 142
                 </td>
143 143
                 <td style="width:50px;" v-if="five_day == 5">
144 144
                     <span v-if="item.Fri_N.patient_id">
145 145
                       <span>{{ item.Fri_N.patient }} </span><br/>
146
-                        <span >{{ item.Fri_N.mode_name }}</span><br/>
146
+                        <span v-if="item.Fri_N.mode_id !=1">{{ item.Fri_N.mode_name }}</span><br/>
147 147
                         <span v-show="showflag">{{item.Fri_N.dialysis_machine_name}}</span>
148 148
                     </span>
149 149
                 </td>
150 150
                 <td style="width:50px;" v-if="six_day == 6">
151 151
                     <span v-if="item.Sat_M.patient_id">
152 152
                       <span>{{ item.Sat_M.patient }} </span><br/>
153
-                        <span >{{ item.Sat_M.mode_name }}</span><br/>
153
+                        <span v-if="item.Sat_M.mode_id !=1">{{ item.Sat_M.mode_name }}</span><br/>
154 154
                         <span v-show="showflag">{{item.Sat_M.dialysis_machine_name}}</span>
155 155
                     </span>
156 156
                 </td>
157 157
                 <td style="width:50px;" v-if="six_day == 6">
158 158
                     <span v-if="item.Sat_A.patient_id">
159 159
                       <span>{{ item.Sat_A.patient }} </span><br/>
160
-                        <span >{{ item.Sat_A.mode_name }}</span><br/>
160
+                        <span v-if="item.Sat_A.mode_id !=1">{{ item.Sat_A.mode_name }}</span><br/>
161 161
                         <span v-show="showflag">{{item.Sat_A.dialysis_machine_name}}</span>
162 162
                     </span>
163 163
                 </td>
164 164
                 <td style="width:50px;" v-if="six_day == 6">
165 165
                     <span v-if="item.Sat_N.patient_id">
166 166
                       <span>{{ item.Sat_N.patient }} </span><br/>
167
-                        <span >{{ item.Sat_N.mode_name }}</span><br/>
167
+                        <span v-if="item.Sat_N.mode_id !=1">{{ item.Sat_N.mode_name }}</span><br/>
168 168
                         <span v-show="showflag">{{item.Sat_N.dialysis_machine_name}}</span>
169 169
                     </span>
170 170
                 </td>
171 171
                 <td style="width:50px;" v-if="seven_day == 7">
172 172
                     <span v-if="item.Sun_M.patient_id">
173 173
                       <span>{{ item.Sun_M.patient }} </span><br/>
174
-                        <span >{{ item.Sun_M.mode_name }}</span><br/>
174
+                        <span v-if="item.Sun_M.mode_id !=1">{{ item.Sun_M.mode_name }}</span><br/>
175 175
                         <span v-show="showflag">{{item.Sun_M.dialysis_machine_name}}</span>
176 176
                     </span>
177 177
                 </td>
178 178
                 <td style="width:50px;" v-if="seven_day == 7">
179 179
                     <span v-if="item.Sun_A.patient_id">
180 180
                       <span>{{ item.Sun_A.patient }} </span><br/>
181
-                        <span >{{ item.Sun_A.mode_name }}</span><br/>
181
+                        <span v-if="item.Sun_A.mode_id !=1">{{ item.Sun_A.mode_name }}</span><br/>
182 182
                         <span v-show="showflag">{{item.Sun_A.dialysis_machine_name}}</span>
183 183
 
184 184
                     </span>
@@ -186,7 +186,7 @@
186 186
                 <td style="width:50px;" v-if="seven_day == 7">
187 187
                     <span v-if="item.Sun_N.patient_id">
188 188
                       <span>{{ item.Sun_N.patient }} </span><br/>
189
-                        <span >{{ item.Sun_N.mode_name }}</span><br/>
189
+                        <span v-if="item.Sun_N.mode_id !=1">{{ item.Sun_N.mode_name }}</span><br/>
190 190
                         <span v-show="showflag">{{item.Sun_N.dialysis_machine_name}}</span>
191 191
                     </span>
192 192
                 </td>
@@ -880,7 +880,7 @@ export default {
880 880
             });
881 881
 
882 882
             this.source_scheduleZone = this.scheduleZone
883
-            // console.log("历史aaaa", this.scheduleZone)
883
+            console.log("历史aaaa", this.scheduleZone)
884 884
             } else {
885 885
             this.$message.error("网络错误");
886 886
             return false;