Browse Source

5月23日杨青

杨青 1 year ago
parent
commit
e185105af9

+ 42 - 5
src/api/dialysis.js View File

182
 }
182
 }
183
 
183
 
184
 export function postAccepts(params) {
184
 export function postAccepts(params) {
185
- 
185
+
186
   return request({
186
   return request({
187
     url: '/api/dialysis/accepts',
187
     url: '/api/dialysis/accepts',
188
     method: 'Post',
188
     method: 'Post',
195
 }
195
 }
196
 
196
 
197
 export function postAssessmentBeforeDislysis(params) {
197
 export function postAssessmentBeforeDislysis(params) {
198
- 
198
+
199
   return request({
199
   return request({
200
     url: '/api/dialysis/assessmentbeforedislysis',
200
     url: '/api/dialysis/assessmentbeforedislysis',
201
     method: 'Post',
201
     method: 'Post',
208
 }
208
 }
209
 
209
 
210
 export function postTreatmentsummary(params) {
210
 export function postTreatmentsummary(params) {
211
- 
211
+
212
   return request({
212
   return request({
213
     url: '/api/dialysis/treatmentsummary',
213
     url: '/api/dialysis/treatmentsummary',
214
     method: 'Post',
214
     method: 'Post',
404
   })
404
   })
405
 }
405
 }
406
 
406
 
407
+
408
+export function SaveDialysisInformationSetting(params) {
409
+  return request({
410
+    url: '/api/patient/savedialysisInformationsetting',
411
+    method: 'get',
412
+    params: params
413
+  })
414
+}
415
+
416
+export function getDialysisInformationSetting(params){
417
+
418
+  return request({
419
+    url:"/api/patient/getdialyisinformationsetting",
420
+    method:"get",
421
+    params:params
422
+  })
423
+}
424
+
425
+export function checkDialysisInformation(params){
426
+
427
+  return request({
428
+    url:"/api/patient/checkdialysisinformation",
429
+    method:"Get",
430
+    params:params
431
+  })
432
+}
433
+
434
+
435
+
436
+export function getSchedualPatientFlow(params) {
437
+  return request({
438
+    url: '/api/dialysis/patientsflow',
439
+    method: 'get',
440
+    params: params
441
+  })
442
+}
443
+
407
 export function saveInformation(params){
444
 export function saveInformation(params){
408
-  
445
+
409
   return request({
446
   return request({
410
     url:"/api/patient/saveinformation",
447
     url:"/api/patient/saveinformation",
411
     method:"get",
448
     method:"get",
412
     params:params
449
     params:params
413
   })
450
   })
414
-}
451
+}

+ 5 - 5
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

633
                 </span>
633
                 </span>
634
              </el-row>
634
              </el-row>
635
            </el-form>
635
            </el-form>
636
-         
636
+
637
           </span>
637
           </span>
638
           <span slot="footer" class="dialog-footer">
638
           <span slot="footer" class="dialog-footer">
639
             <el-button @click="infoDialogVisible = false">取 消</el-button>
639
             <el-button @click="infoDialogVisible = false">取 消</el-button>
1340
               }
1340
               }
1341
 
1341
 
1342
               if(msg == 2){
1342
               if(msg == 2){
1343
-                this.$message.error("库存不足,请入库")
1343
+                this.$message.error("执行失败,库存不足,请入库")
1344
                 this.execTimeDialogVisible = false
1344
                 this.execTimeDialogVisible = false
1345
                 return false
1345
                 return false
1346
               }
1346
               }
1347
               if(msg == 3){
1347
               if(msg == 3){
1348
-                this.$message.error("无库存,请入库")
1348
+                this.$message.error("执行失败,无库存,请入库")
1349
                 this.execTimeDialogVisible = false
1349
                 this.execTimeDialogVisible = false
1350
                 return false
1350
                 return false
1351
               }
1351
               }
2675
            }
2675
            }
2676
         })
2676
         })
2677
       }
2677
       }
2678
-      
2678
+
2679
     },
2679
     },
2680
     created() {
2680
     created() {
2681
-    
2681
+
2682
       var date = this.$route.query && this.$route.query.date
2682
       var date = this.$route.query && this.$route.query.date
2683
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2683
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
2684
       this.form.advice_date = this.record_date
2684
       this.form.advice_date = this.record_date

+ 31 - 105
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

236
                 template_id == 56 ||
236
                 template_id == 56 ||
237
                 template_id == 60 ||
237
                 template_id == 60 ||
238
                 org_id == 10210 ||
238
                 org_id == 10210 ||
239
-                org_id == 9555 
239
+                org_id == 9555
240
                 || org_id == 10432
240
                 || org_id == 10432
241
                 || org_id == 10445
241
                 || org_id == 10445
242
                 || org_id == 10410 ||
242
                 || org_id == 10410 ||
252
                   ? scope.row.ultrafiltration_volume
252
                   ? scope.row.ultrafiltration_volume
253
                   : "0"
253
                   : "0"
254
               }}
254
               }}
255
-              </span> 
255
+              </span>
256
                <span v-if="org_id != 10440 && org_id!=9671">
256
                <span v-if="org_id != 10440 && org_id!=9671">
257
               {{
257
               {{
258
                 scope.row.ultrafiltration_volume
258
                 scope.row.ultrafiltration_volume
259
                   ? scope.row.ultrafiltration_volume
259
                   ? scope.row.ultrafiltration_volume
260
                   : ""
260
                   : ""
261
               }}
261
               }}
262
-              </span> 
262
+              </span>
263
             </template>
263
             </template>
264
           </el-table-column>
264
           </el-table-column>
265
           <el-table-column
265
           <el-table-column
307
               template_id != 56 &&
307
               template_id != 56 &&
308
               template_id != 60 &&
308
               template_id != 60 &&
309
               org_id!= 10210 &&
309
               org_id!= 10210 &&
310
-              org_id != 9555 
310
+              org_id != 9555
311
               && org_id!=10432 && org_id!=10445
311
               && org_id!=10432 && org_id!=10445
312
               && org_id!=10410 && org_id!=10495 &&
312
               && org_id!=10410 && org_id!=10495 &&
313
                org_id!=10485 )
313
                org_id!=10485 )
414
               template_id != 60 &&
414
               template_id != 60 &&
415
               org_id!=10432 &&
415
               org_id!=10432 &&
416
               org_id!=10445 &&
416
               org_id!=10445 &&
417
-              org_id!=10410 && org_id!=10495) || 
417
+              org_id!=10410 && org_id!=10495) ||
418
               org_id == 10387
418
               org_id == 10387
419
             "
419
             "
420
           >
420
           >
473
                 template_id == 53 ||
473
                 template_id == 53 ||
474
                 template_id == 54 ||
474
                 template_id == 54 ||
475
                 template_id == 56 ||
475
                 template_id == 56 ||
476
-                org_id ==10432 || 
477
-                org_id ==10445 || 
476
+                org_id ==10432 ||
477
+                org_id ==10445 ||
478
                 org_id ==10410
478
                 org_id ==10410
479
-              
479
+
480
                )
480
                )
481
             "
481
             "
482
           >
482
           >
502
               template_id != 53 &&
502
               template_id != 53 &&
503
               template_id != 54 &&
503
               template_id != 54 &&
504
               template_id != 56 &&
504
               template_id != 56 &&
505
-              org_id !=10432 && 
505
+              org_id !=10432 &&
506
               org_id !=10445 &&
506
               org_id !=10445 &&
507
               org_id !=10410
507
               org_id !=10410
508
             "
508
             "
907
           </el-table-column>
907
           </el-table-column>
908
 
908
 
909
           <el-table-column
909
           <el-table-column
910
-           
910
+
911
             align="center"
911
             align="center"
912
             label="病情变化"
912
             label="病情变化"
913
             width="130"
913
             width="130"
915
           >
915
           >
916
            <template slot-scope="scope">
916
            <template slot-scope="scope">
917
              {{scope.row.symptom}}
917
              {{scope.row.symptom}}
918
-            
919
-            
918
+
919
+
920
              <span v-if="(scope.$index == monitors.length - 1) && (org_id == 0 || org_id == 9671 || org_id == 10340)">累计血容量:{{scope.row.accumulated_blood_volume }}L</span>
920
              <span v-if="(scope.$index == monitors.length - 1) && (org_id == 0 || org_id == 9671 || org_id == 10340)">累计血容量:{{scope.row.accumulated_blood_volume }}L</span>
921
             </template>
921
             </template>
922
           </el-table-column>
922
           </el-table-column>
1130
                 template_id == 56 ||
1130
                 template_id == 56 ||
1131
                 template_id == 47 ||
1131
                 template_id == 47 ||
1132
                 template_id == 60 ||
1132
                 template_id == 60 ||
1133
-                org_id== 10432 || 
1133
+                org_id== 10432 ||
1134
                 org_id== 10445 ||
1134
                 org_id== 10445 ||
1135
                 org_id== 10410) &&
1135
                 org_id== 10410) &&
1136
                 org_id!=10387
1136
                 org_id!=10387
1175
               template_id != 56 &&
1175
               template_id != 56 &&
1176
               template_id != 47 &&
1176
               template_id != 47 &&
1177
               template_id != 60 &&
1177
               template_id != 60 &&
1178
-              org_id!=10432 && 
1178
+              org_id!=10432 &&
1179
               org_id!=10445 &&
1179
               org_id!=10445 &&
1180
               org_id!=10410)
1180
               org_id!=10410)
1181
               || org_id == 10387
1181
               || org_id == 10387
1233
                 org_id == 10445 ||
1233
                 org_id == 10445 ||
1234
                 org_id == 10410 ||
1234
                 org_id == 10410 ||
1235
                 org_id == 10495 ||
1235
                 org_id == 10495 ||
1236
-                org_id == 10485) 
1236
+                org_id == 10485)
1237
                 && org_id!=10387
1237
                 && org_id!=10387
1238
             "
1238
             "
1239
           >
1239
           >
1285
               org_id !=  10210 &&
1285
               org_id !=  10210 &&
1286
               org_id !=  10340 &&
1286
               org_id !=  10340 &&
1287
               org_id != 9555 &&
1287
               org_id != 9555 &&
1288
-              org_id!=10432 && 
1289
-              org_id!=10445 && 
1288
+              org_id!=10432 &&
1289
+              org_id!=10445 &&
1290
               org_id!=10410 &&
1290
               org_id!=10410 &&
1291
               org_id!=10495 &&
1291
               org_id!=10495 &&
1292
               org_id!=10485
1292
               org_id!=10485
1387
               template_id != 54 &&
1387
               template_id != 54 &&
1388
               template_id != 56 &&
1388
               template_id != 56 &&
1389
               template_id != 48 &&
1389
               template_id != 48 &&
1390
-              org_id!=10340 && 
1391
-              org_id!=10432 && 
1390
+              org_id!=10340 &&
1391
+              org_id!=10432 &&
1392
               org_id!=10445
1392
               org_id!=10445
1393
             "
1393
             "
1394
           >
1394
           >
1754
       </div>
1754
       </div>
1755
       <!--</div>-->
1755
       <!--</div>-->
1756
     </el-dialog>
1756
     </el-dialog>
1757
-
1758
-  
1759
-    <el-dialog
1760
-          title="提示"
1761
-          :visible.sync="infoDialogVisible"
1762
-          width="30%">
1763
-          <span>
1764
-           <el-form>
1765
-             <el-row>
1766
-               <span>申请日期:</span>
1767
-                <span>
1768
-                    <el-date-picker
1769
-                      type="datetime"
1770
-                      format="yyyy-MM-dd HH:mm"
1771
-                      value-format="yyyy-MM-dd HH:mm"
1772
-                      placeholder="选择时间"
1773
-                      v-model="selected_date"
1774
-                  ></el-date-picker>
1775
-                </span>
1776
-             </el-row>
1777
-             <el-row>
1778
-               <span>备注:</span>
1779
-                <span>
1780
-                   <el-input v-model="remark" style="width:200px"></el-input>
1781
-                </span>
1782
-             </el-row>
1783
-           </el-form>
1784
-         
1785
-          </span>
1786
-          <span slot="footer" class="dialog-footer">
1787
-            <el-button @click="infoDialogVisible = false">取 消</el-button>
1788
-            <el-button type="primary" @click="saveInformation">确 定</el-button>
1789
-          </span>
1790
-        </el-dialog>
1791
-
1792
   </div>
1757
   </div>
1793
 </template>
1758
 </template>
1794
 
1759
 
1799
   editMonitor,
1764
   editMonitor,
1800
   postDelMonitorInfo,
1765
   postDelMonitorInfo,
1801
   getTodayMonitor,
1766
   getTodayMonitor,
1802
-  
1803
 } from "@/api/dialysis_record";
1767
 } from "@/api/dialysis_record";
1804
- import { saveInformation } from '@/api/dialysis'
1805
 import store from "@/store";
1768
 import store from "@/store";
1806
 
1769
 
1807
 import request from "@/utils/request";
1770
 import request from "@/utils/request";
1891
       anticoagulantsConfit: {},
1854
       anticoagulantsConfit: {},
1892
       bloodPressureMmonitoringSite: [],
1855
       bloodPressureMmonitoringSite: [],
1893
       complicationList: [],
1856
       complicationList: [],
1894
-      infoDialogVisible:false,
1895
-      selected_date:"",
1896
-      remark:""
1897
     };
1857
     };
1898
   },
1858
   },
1899
   props: {
1859
   props: {
1935
     );
1895
     );
1936
     this.complicationList = getDataConfig("hemodialysis", "complication");
1896
     this.complicationList = getDataConfig("hemodialysis", "complication");
1937
 
1897
 
1938
-   
1898
+
1939
   },
1899
   },
1940
   methods: {
1900
   methods: {
1941
       isName(name) {
1901
       isName(name) {
1952
       for (let i = 0; i < filedList.length; i++) {
1912
       for (let i = 0; i < filedList.length; i++) {
1953
         if (
1913
         if (
1954
           filedList[i].module == 4
1914
           filedList[i].module == 4
1955
-          &&filedList[i].filed_name_cn == name 
1915
+          &&filedList[i].filed_name_cn == name
1956
           &&filedList[i].is_write == 1
1916
           &&filedList[i].is_write == 1
1957
         ) {
1917
         ) {
1958
           // console.log(filedList[i].is_write,'false')
1918
           // console.log(filedList[i].is_write,'false')
1959
           // console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1919
           // console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1960
           return [{ required: true ,message:`请输入${name}` }];
1920
           return [{ required: true ,message:`请输入${name}` }];
1961
-        } 
1921
+        }
1962
         // else {
1922
         // else {
1963
         //   console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1923
         //   console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1964
         //   // console.log(filedList[i].is_write,'true')
1924
         //   // console.log(filedList[i].is_write,'true')
2100
           ? (resp.monitor.operate_time + 3600) * 1000
2060
           ? (resp.monitor.operate_time + 3600) * 1000
2101
           : Date.parse(new Date());
2061
           : Date.parse(new Date());
2102
 
2062
 
2103
-      
2063
+
2104
         this.form.temperature = ""
2064
         this.form.temperature = ""
2105
 
2065
 
2106
         // this.last_monitor_record.pulse_frequency;
2066
         // this.last_monitor_record.pulse_frequency;
2165
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature
2125
         this.form.dialysate_temperature = resp.monitor.dialysate_temperature
2166
           ? resp.monitor.dialysate_temperature
2126
           ? resp.monitor.dialysate_temperature
2167
           : "";
2127
           : "";
2168
-        
2128
+
2169
          if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471){
2129
          if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471){
2170
             this.form.temperature = "36.5"
2130
             this.form.temperature = "36.5"
2171
 
2131
 
2208
         }else{
2168
         }else{
2209
            this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
2169
            this.form.conductivity = resp.monitor.conductivity? resp.monitor.conductivity: "";
2210
         }
2170
         }
2211
-      
2171
+
2212
         this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant
2172
         this.form.monitor_anticoagulant = resp.monitor.monitor_anticoagulant
2213
           ? resp.monitor.monitor_anticoagulant
2173
           ? resp.monitor.monitor_anticoagulant
2214
           : "";
2174
           : "";
2240
           : "";
2200
           : "";
2241
          if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2201
          if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
2242
             this.form.dialysate_temperature = 36.5
2202
             this.form.dialysate_temperature = 36.5
2243
-            
2203
+
2244
          }
2204
          }
2245
       });
2205
       });
2246
     },
2206
     },
2291
         if(this.org_id != 9671 && this.org_id != 10440){
2251
         if(this.org_id != 9671 && this.org_id != 10440){
2292
           this.form.ultrafiltration_volume = "";
2252
           this.form.ultrafiltration_volume = "";
2293
         }
2253
         }
2294
-       
2254
+
2295
         this.form.ultrafiltration_rate = "";
2255
         this.form.ultrafiltration_rate = "";
2296
         this.form.arterial_pressure = "";
2256
         this.form.arterial_pressure = "";
2297
         this.form.arterial_pressure_type = 1;
2257
         this.form.arterial_pressure_type = 1;
2366
             ? monitor.ultrafiltration_volume
2326
             ? monitor.ultrafiltration_volume
2367
             : "";
2327
             : "";
2368
         }
2328
         }
2369
-        
2329
+
2370
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2330
         this.form.ultrafiltration_rate = monitor.ultrafiltration_rate
2371
           ? monitor.ultrafiltration_rate
2331
           ? monitor.ultrafiltration_rate
2372
           : "";
2332
           : "";
2379
           ? monitor.arterial_pressure
2339
           ? monitor.arterial_pressure
2380
           : "";
2340
           : "";
2381
         }
2341
         }
2382
-       
2342
+
2383
         this.form.arterial_pressure_type = monitor.arterial_pressure_type
2343
         this.form.arterial_pressure_type = monitor.arterial_pressure_type
2384
           ? monitor.arterial_pressure_type
2344
           ? monitor.arterial_pressure_type
2385
           : "";
2345
           : "";
2442
           : "";
2402
           : "";
2443
         this.form.filter_pressure = monitor.filter_pressure
2403
         this.form.filter_pressure = monitor.filter_pressure
2444
         ? monitor.filter_pressure
2404
         ? monitor.filter_pressure
2445
-        : "";  
2405
+        : "";
2446
         // 设置三个下拉框的值,直接调用事件偷懒
2406
         // 设置三个下拉框的值,直接调用事件偷懒
2447
         this.symptomTextareaBlur();
2407
         this.symptomTextareaBlur();
2448
         this.disposeTextareaBlur();
2408
         this.disposeTextareaBlur();
2586
         parseFloat(this.form.dehydration) == NaN
2546
         parseFloat(this.form.dehydration) == NaN
2587
           ? 0
2547
           ? 0
2588
           : parseFloat(this.form.dehydration);
2548
           : parseFloat(this.form.dehydration);
2589
-        
2590
       this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
2549
       this.form.filter_pressure = this.form.filter_pressure?this.form.filter_pressure:""
2591
 
2550
 
2592
       this.form.replacement_speed =
2551
       this.form.replacement_speed =
2756
               parseFloat(this.form.heparin_amount) == NaN
2715
               parseFloat(this.form.heparin_amount) == NaN
2757
                 ? 0
2716
                 ? 0
2758
                 : parseFloat(this.form.heparin_amount);
2717
                 : parseFloat(this.form.heparin_amount);
2759
-
2760
-                this.form.replacement_speed =
2761
-            parseFloat(this.form.replacement_speed) == NaN
2762
-          ? 0
2763
-          : parseFloat(this.form.replacement_speed);
2764
-
2765
-          this.form.dicarbonate =
2766
-        parseFloat(this.form.dicarbonate) == NaN
2767
-          ? 0
2768
-          : parseFloat(this.form.dicarbonate);
2769
             this.$message.error(resp.msg);
2718
             this.$message.error(resp.msg);
2770
-            if(response.data.code == 600000008){
2771
-              this.infoDialogVisible = true
2772
-             }
2773
           }
2719
           }
2774
         }
2720
         }
2775
       );
2721
       );
2780
           }
2726
           }
2781
         });
2727
         });
2782
 
2728
 
2783
-      
2729
+
2784
     },
2730
     },
2785
 
2731
 
2786
     symptomTextareaBlur: function () {
2732
     symptomTextareaBlur: function () {
2858
           postDelMonitorInfo(params).then((response) => {
2804
           postDelMonitorInfo(params).then((response) => {
2859
             if (response.data.state == 0) {
2805
             if (response.data.state == 0) {
2860
               this.$message.error(response.data.msg);
2806
               this.$message.error(response.data.msg);
2861
-              if(response.data.code == 600000008){
2862
-                 this.infoDialogVisible = true
2863
-              }
2864
               return false;
2807
               return false;
2865
             } else {
2808
             } else {
2866
               const record_id = response.data.data.record_id;
2809
               const record_id = response.data.data.record_id;
2921
       }
2864
       }
2922
       return name;
2865
       return name;
2923
     },
2866
     },
2924
-
2925
-    saveInformation(){
2926
-        var params = {
2927
-          selected_date:this.selected_date,
2928
-          patient_id:this.$route.query.patient_id,
2929
-          record_date:this.$route.query.date,
2930
-          module:2,
2931
-          remark:this.remark,
2932
-        }
2933
-        saveInformation(params).then(response=>{
2934
-           if(response.data.state == 1){
2935
-             var information = response.data.data.information
2936
-             this.$message.success("审核成功!")
2937
-             this.infoDialogVisible = false
2938
-           }
2939
-        })
2940
-      }
2941
   },
2867
   },
2942
   watch: {
2868
   watch: {
2943
     patient: {
2869
     patient: {