Browse Source

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 years ago
parent
commit
1880c01d0c

+ 28 - 0
src/api/common/common.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 import url from 'postcss-url'
2
 import url from 'postcss-url'
3
+import { data } from 'autoprefixer'
3
 
4
 
4
 export function getInspectionMajor(params) {
5
 export function getInspectionMajor(params) {
5
   return request({
6
   return request({
510
     data: data
511
     data: data
511
   })
512
   })
512
 }
513
 }
514
+
515
+
516
+export function getTreatModeList(params){
517
+  console.log("params",params)
518
+  return request({
519
+    url:"/com/api/getreatmodelist",
520
+    method:"get",
521
+    params:params,
522
+  })
523
+}
524
+
525
+export function getCountModeId(params){
526
+  return request({
527
+    url:'/com/api/getcountmodeid',
528
+    method:"Get",
529
+    params:params
530
+  })
531
+}
532
+
533
+export function getRolloutCount(params){
534
+  
535
+  return request({
536
+    url:"/com/api/getrolloutcount",
537
+    method:"Get",
538
+    params:params
539
+  })
540
+}

+ 1 - 1
src/store/modules/data.js View File

27
           // console.log('请求返回的数据:', list)
27
           // console.log('请求返回的数据:', list)
28
           if (list) { // 验证返回的configlist是否是一个非空数组
28
           if (list) { // 验证返回的configlist是否是一个非空数组
29
             // console.log('转换的configlist为:', list.configlist)
29
             // console.log('转换的configlist为:', list.configlist)
30
-            console.log('转换的configlist为:', list.configlist)
30
+            // console.log('转换的configlist为:', list.configlist)
31
             commit('SET_CONFIGLIST', list.configlist)
31
             commit('SET_CONFIGLIST', list.configlist)
32
             setDataConfigList(JSON.stringify(list.configlist))
32
             setDataConfigList(JSON.stringify(list.configlist))
33
             resolve()
33
             resolve()

+ 2 - 1
src/xt_pages/dialysis/PatientBox.vue View File

365
         query: {
365
         query: {
366
           patient_id: patient_id,
366
           patient_id: patient_id,
367
           date: date,
367
           date: date,
368
-          patient_name: schedual.patient.name
368
+          patient_name: schedual.patient.name,
369
+          mode_id:schedual.mode_id
369
         }
370
         }
370
       });
371
       });
371
     },
372
     },

+ 19 - 41
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

19
         ref="dialysisPrescription"
19
         ref="dialysisPrescription"
20
         :model="dialysisPrescription"
20
         :model="dialysisPrescription"
21
         label-width="148px"
21
         label-width="148px"
22
-      >
22
+      > 
23
         <el-row :gutter="24">
23
         <el-row :gutter="24">
24
           <el-col :span="8" v-if="isShows('透析模式')">
24
           <el-col :span="8" v-if="isShows('透析模式')">
25
             <el-form-item label="透析模式">
25
             <el-form-item label="透析模式">
1138
         default: () => {
1138
         default: () => {
1139
           return { id: 0 }
1139
           return { id: 0 }
1140
         }
1140
         }
1141
-      }
1141
+      },
1142
+      scheudle_mode:Number
1142
     },
1143
     },
1143
     computed: {
1144
     computed: {
1144
       dialysis_date: function() {
1145
       dialysis_date: function() {
1367
           }
1368
           }
1368
         }
1369
         }
1369
       },
1370
       },
1370
-      setLastRecord: function(
1371
-        schedual,
1372
-        lastAssessmentAfterDislysis,
1373
-        lastPredialysisEvaluation,
1374
-        lastDialysisPrescribe,
1375
-        lastDryWeightDislysis,
1376
-        system_prescribe
1377
-      ) {
1378
-
1371
+      setLastRecord: function(schedual,lastAssessmentAfterDislysis,lastPredialysisEvaluation,lastDialysisPrescribe,lastDryWeightDislysis,system_prescribe) {
1372
+        
1373
+        console.log("德玛西亚22222",schedual)
1379
         this.treatment_mode = this.$store.getters.treatment_mode
1374
         this.treatment_mode = this.$store.getters.treatment_mode
1375
+        console.log("99999",this.treatment_mode)
1380
         this.perfusion_apparatus = getDataConfig(
1376
         this.perfusion_apparatus = getDataConfig(
1381
           'hemodialysis',
1377
           'hemodialysis',
1382
           'perfusion_apparatus'
1378
           'perfusion_apparatus'
1421
           'vascular_access_desc'
1417
           'vascular_access_desc'
1422
         )
1418
         )
1423
 
1419
 
1424
-         console.log('血管通路', this.blood_access_option)
1420
+        //  console.log('血管通路', this.blood_access_option)
1425
          this.dialyzerPerfusionApparatus = getDataConfig(
1421
          this.dialyzerPerfusionApparatus = getDataConfig(
1426
           'hemodialysis',
1422
           'hemodialysis',
1427
           'dialyzer_perfusion_apparatus'
1423
           'dialyzer_perfusion_apparatus'
1443
           this.record_date = uParseTime(date, '{y}-{m}-{d}')
1439
           this.record_date = uParseTime(date, '{y}-{m}-{d}')
1444
         }
1440
         }
1445
 
1441
 
1446
-        if (
1447
-          this.prescription != null &&
1448
-          typeof this.prescription.id !== 'undefined' &&
1449
-          this.prescription.id > 0
1450
-        ) {
1442
+        if (this.prescription != null && typeof this.prescription.id !== 'undefined' &&this.prescription.id > 0) {
1451
           for (const key in this.prescription) {
1443
           for (const key in this.prescription) {
1452
             this.dialysisPrescription[key] = this.prescription[key]
1444
             this.dialysisPrescription[key] = this.prescription[key]
1453
           }
1445
           }
1454
-        } else if (
1455
-          this.solution != null &&
1456
-          typeof this.solution.id !== 'undefined' &&
1457
-          this.solution.id > 0
1458
-        ) {
1446
+        } else if (this.solution != null &&typeof this.solution.id !== 'undefined' &&this.solution.id > 0) {
1459
           for (const key in this.solution) {
1447
           for (const key in this.solution) {
1460
             if (key != 'target_ultrafiltration') {
1448
             if (key != 'target_ultrafiltration') {
1461
               this.dialysisPrescription[key] = this.solution[key]
1449
               this.dialysisPrescription[key] = this.solution[key]
1462
             }
1450
             }
1463
           }
1451
           }
1464
-        } else if (
1465
-          lastDialysisPrescribe != null &&
1466
-          typeof lastDialysisPrescribe.id !== 'undefined' &&
1467
-          lastDialysisPrescribe.id > 0
1468
-        ) {
1452
+        } else if (lastDialysisPrescribe != null &&typeof lastDialysisPrescribe.id !== 'undefined' &&lastDialysisPrescribe.id > 0) {
1469
           for (const key in lastDialysisPrescribe) {
1453
           for (const key in lastDialysisPrescribe) {
1470
             if (key != 'target_ultrafiltration') {
1454
             if (key != 'target_ultrafiltration') {
1471
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
1455
               this.dialysisPrescription[key] = lastDialysisPrescribe[key]
1472
             }
1456
             }
1473
           }
1457
           }
1474
-        } else if (
1475
-          system_prescribe != null &&
1476
-          typeof system_prescribe.id !== 'undefined' &&
1477
-          system_prescribe.id > 0
1478
-        ) {
1458
+        } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' &&system_prescribe.id > 0) {
1479
           for (const key in system_prescribe) {
1459
           for (const key in system_prescribe) {
1480
             if (key != 'target_ultrafiltration') {
1460
             if (key != 'target_ultrafiltration') {
1481
               this.dialysisPrescription[key] = system_prescribe[key]
1461
               this.dialysisPrescription[key] = system_prescribe[key]
1482
             }
1462
             }
1483
           }
1463
           }
1484
         } else {
1464
         } else {
1485
-          if (
1486
-            schedual.mode_id == 2 ||
1487
-            schedual.mode_id == 5 ||
1488
-            schedual.mode_id == 12
1489
-          ) {
1465
+           
1466
+          if (schedual.mode_id == 2 ||schedual.mode_id == 5 ||schedual.mode_id == 12) {
1490
             this.zhiShow = true
1467
             this.zhiShow = true
1491
             this.huShow = true
1468
             this.huShow = true
1492
             this.totalShow = true
1469
             this.totalShow = true
1581
                 })
1558
                 })
1582
                 var date = new Date()
1559
                 var date = new Date()
1583
 
1560
 
1584
-                console.log(this.start_time)
1561
+                // console.log(this.start_time)
1585
 
1562
 
1586
                 const params = {
1563
                 const params = {
1587
                   advices: results,
1564
                   advices: results,
1711
               mode = 2
1688
               mode = 2
1712
             }
1689
             }
1713
             ParamsQuery['mode'] = mode
1690
             ParamsQuery['mode'] = mode
1714
-             console.log("paramsquery",ParamsQuery)
1691
+            //  console.log("paramsquery",ParamsQuery)
1715
             postPrescription(ParamsQuery).then(response => {
1692
             postPrescription(ParamsQuery).then(response => {
1716
               if (response.data.state == 0) {
1693
               if (response.data.state == 0) {
1717
                 this.$message.error(response.data.msg)
1694
                 this.$message.error(response.data.msg)
1823
         }
1800
         }
1824
         // 入口
1801
         // 入口
1825
         var pre = pre
1802
         var pre = pre
1826
-        //  console.log("pre是----", pre);
1803
+        this.dialysisPrescription.mode_id = this.$route.query.mode_id
1827
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1804
         if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
1828
           this.zhiShow = true
1805
           this.zhiShow = true
1829
           this.huShow = true
1806
           this.huShow = true
3662
             }
3639
             }
3663
           }
3640
           }
3664
         }
3641
         }
3665
-      }
3642
+      },
3643
+    
3666
     }
3644
     }
3667
   }
3645
   }
3668
 </script>
3646
 </script>

+ 3 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

946
         this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
946
         this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation ? resp.monitor.blood_oxygen_saturation : ''
947
         this.form.urr = resp.monitor.urr?resp.monitor.urr:''
947
         this.form.urr = resp.monitor.urr?resp.monitor.urr:''
948
         this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:''
948
         this.form.blood_sugar = resp.monitor.blood_sugar?resp.monitor.blood_sugar:''
949
+        this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:''
950
+        this.form.conductivity = resp.monitor.conductivity?resp.monitor.conductivity:''
949
       })
951
       })
950
     },
952
     },
951
 
953
 
1087
         }
1089
         }
1088
       }
1090
       }
1089
       editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
1091
       editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
1092
+        
1090
         rs => {
1093
         rs => {
1091
           var resp = rs.data
1094
           var resp = rs.data
1092
           if (resp.state == 1) {
1095
           if (resp.state == 1) {

+ 14 - 15
src/xt_pages/dialysis/details/index.vue View File

642
       tableData1: [],
642
       tableData1: [],
643
       arr: [],
643
       arr: [],
644
       newName: '',
644
       newName: '',
645
-      newTime: ''
645
+      newTime: '',
646
+      scheudle_mode:""
646
     }
647
     }
647
   },
648
   },
648
   created() {
649
   created() {
878
         if (resp.state == 1) {
879
         if (resp.state == 1) {
879
           var patient = resp.data.patient // 患者信息
880
           var patient = resp.data.patient // 患者信息
880
           var schedual = resp.data.schedual // 患者排班信息
881
           var schedual = resp.data.schedual // 患者排班信息
882
+          // console.log("患者排班信息99999999",schedual)
881
           var prescription = resp.data.prescription // 透析处方
883
           var prescription = resp.data.prescription // 透析处方
882
           if (prescription != null) {
884
           if (prescription != null) {
883
             if (prescription.body_fluid == -2) {
885
             if (prescription.body_fluid == -2) {
884
               prescription.body_fluid = 0
886
               prescription.body_fluid = 0
885
             }
887
             }
886
           }
888
           }
887
-          console.log('透析处方', prescription)
889
+          // console.log('透析处方', prescription)
888
           var solution = resp.data.solution // 透析方案
890
           var solution = resp.data.solution // 透析方案
889
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
891
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
890
-          console.log('receiver_treatment_access', receiver_treatment_access)
892
+          // console.log('receiver_treatment_access', receiver_treatment_access)
891
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
893
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
892
-          console.log('透前评估22222', predialysis_evaluation)
894
+          // console.log('透前评估22222', predialysis_evaluation)
893
 
895
 
894
           if (predialysis_evaluation != null) {
896
           if (predialysis_evaluation != null) {
895
             if (predialysis_evaluation.blood_access_part_id == -2) {
897
             if (predialysis_evaluation.blood_access_part_id == -2) {
920
           var aliquid_info = resp.data.aliquid_info
922
           var aliquid_info = resp.data.aliquid_info
921
 
923
 
922
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
924
           var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
923
-          console.log('上次透前评估', lastPredialysisEvaluation)
925
+          // console.log('上次透前评估', lastPredialysisEvaluation)
924
           if (lastPredialysisEvaluation != null) {
926
           if (lastPredialysisEvaluation != null) {
925
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
927
             if (lastPredialysisEvaluation.blood_access_part_id == -2) {
926
               lastPredialysisEvaluation.blood_access_part_id = 0
928
               lastPredialysisEvaluation.blood_access_part_id = 0
931
             resp.data.lastAssessmentAfterDislysis
933
             resp.data.lastAssessmentAfterDislysis
932
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
934
           var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
933
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
935
           var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
934
-          console.log("最后一次干体重",lastDryWeightDislysis)
936
+          // console.log("最后一次干体重",lastDryWeightDislysis)
935
           var system_prescribe = resp.data.system_prescribe
937
           var system_prescribe = resp.data.system_prescribe
936
 
938
 
937
           this.$refs.nav.setLastRecord(
939
           this.$refs.nav.setLastRecord(
953
           this.lastDialysisPrescribe = lastDialysisPrescribe
955
           this.lastDialysisPrescribe = lastDialysisPrescribe
954
           this.lastDryWeightDislysis = lastDryWeightDislysis
956
           this.lastDryWeightDislysis = lastDryWeightDislysis
955
           this.headNurses = headNurses
957
           this.headNurses = headNurses
956
-          this.system_prescribe = system_prescribe
957
-
958
-
958
+          this.system_prescribe = system_prescribe 
959
+          
959
 
960
 
960
 
961
 
961
           this.niprocart_info = []
962
           this.niprocart_info = []
1214
       })
1215
       })
1215
     },
1216
     },
1216
     changePatient(schedual) {
1217
     changePatient(schedual) {
1217
-      console.log(schedual)
1218
       this.patient_id = schedual.patient_id
1218
       this.patient_id = schedual.patient_id
1219
       this.date = schedual.schedule_date
1219
       this.date = schedual.schedule_date
1220
       // this.getScheduleDetail();
1220
       // this.getScheduleDetail();
1232
       })
1232
       })
1233
     },
1233
     },
1234
     handleClick(type) {
1234
     handleClick(type) {
1235
-      console.log(99999999999,type)
1236
       sessionStorage.setItem('nameActive', type.name);
1235
       sessionStorage.setItem('nameActive', type.name);
1237
       this.getData()
1236
       this.getData()
1238
     },
1237
     },
1246
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
1245
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
1247
               // 删除元素后改变i的值
1246
               // 删除元素后改变i的值
1248
 
1247
 
1249
-              console.log('候诊区', patientArr[i].schedules[j])
1248
+              // console.log('候诊区', patientArr[i].schedules[j])
1250
               patientArr[i].schedules.splice(j--, 1)
1249
               patientArr[i].schedules.splice(j--, 1)
1251
             }
1250
             }
1252
           }
1251
           }
1265
               }
1264
               }
1266
             }
1265
             }
1267
           }
1266
           }
1268
-          console.log('执行1', arr)
1267
+          // console.log('执行1', arr)
1269
           arr1 = arr
1268
           arr1 = arr
1270
         } else if (this.patientStateVal == 2) {
1269
         } else if (this.patientStateVal == 2) {
1271
           let arr = []
1270
           let arr = []
1278
               }
1277
               }
1279
             }
1278
             }
1280
           }
1279
           }
1281
-          console.log('执行2', arr)
1280
+          // console.log('执行2', arr)
1282
           arr1 = arr
1281
           arr1 = arr
1283
         }
1282
         }
1284
 
1283
 
1362
           })
1361
           })
1363
           newArr.sort(this.compare('created_time'))
1362
           newArr.sort(this.compare('created_time'))
1364
         }
1363
         }
1365
-        console.log('排序',newArr)
1364
+        // console.log('排序',newArr)
1366
         this.tableData = newArr
1365
         this.tableData = newArr
1367
         const name = this.$route.query.patient_name
1366
         const name = this.$route.query.patient_name
1368
         this.tableData.map((item, index) => {
1367
         this.tableData.map((item, index) => {

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

2009
             }
2009
             }
2010
 
2010
 
2011
             this.advices = response.data.data.advices
2011
             this.advices = response.data.data.advices
2012
-            console.log('hhhhhhhhhhhh', this.advices)
2012
+            // console.log('hhhhhhhhhhhh', this.advices)
2013
             this.monitors = response.data.data.monitors
2013
             this.monitors = response.data.data.monitors
2014
-            console.log('哈哈哈哈哈哈哈', this.monitors)
2014
+            // console.log('哈哈哈哈哈哈哈', this.monitors)
2015
             console.log(response.data.data)
2015
             console.log(response.data.data)
2016
             this.summary = response.data.data.summary
2016
             this.summary = response.data.data.summary
2017
             this.org_template_info = response.data.data.org_template_info
2017
             this.org_template_info = response.data.data.org_template_info

+ 187 - 150
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue View File

1
 <template>
1
 <template>
2
   <div id="dialysis-print-box">
2
   <div id="dialysis-print-box">
3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
-      <div class="order-yy-name">{{ orgname }}</div>
5
-      <div class="order-title">血液净化治疗记录单</div>
4
+      <!-- <div class="order-yy-name">{{ orgname }}</div> -->
5
+      <div class="order-title">{{ orgname }}&nbsp;&nbsp;血液净化治疗记录单</div>
6
       <table class="table-box" style="margin-top: 10px;">
6
       <table class="table-box" style="margin-top: 10px;">
7
         <tbody>
7
         <tbody>
8
         <tr>
8
         <tr>
139
                     <!--showValue='模糊'></label-box>-->
139
                     <!--showValue='模糊'></label-box>-->
140
                   </div>
140
                   </div>
141
                 </td>
141
                 </td>
142
+                <td width="50">感染:</td>
143
+                <td width='100'>
144
+                  <label-box :isChecked="predialysis.is_infect == 2 ? true : false" showValue="有"></label-box>
145
+                  &nbsp;
146
+                  <label-box :isChecked="predialysis.is_infect == 1 ? true : false" showValue="无"></label-box>
147
+                  &nbsp;
148
+                </td>
142
                 <td></td>
149
                 <td></td>
143
               </tr>
150
               </tr>
144
               </tbody>
151
               </tbody>
190
             <table class="table-box">
197
             <table class="table-box">
191
               <tbody>
198
               <tbody>
192
               <tr>
199
               <tr>
193
-                <td width="86">导管穿刺口:</td>
200
+                <td width="70">导管口:</td>
194
                 <td width="240">
201
                 <td width="240">
195
                   <div style="display:flex;justify-content:space-between;">
202
                   <div style="display:flex;justify-content:space-between;">
196
                     <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-干洁') > -1 ? true : false" showValue="干洁"></label-box>
203
                     <label-box :isChecked="predialysis.catheter.indexOf('穿刺口-干洁') > -1 ? true : false" showValue="干洁"></label-box>
226
                 <td></td> -->
233
                 <td></td> -->
227
 
234
 
228
                 <!-- 体位 -->
235
                 <!-- 体位 -->
229
-                <td width="40">体位:</td>
230
-                <td width="400">
231
-                  <div style="display:flex;justify-content:space-between;">
232
-                    <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked="receiverTreatmentAccess.posture == item.id ? true : false" :showValue="item.name"></label-box>
233
-
234
-                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'-->
235
-                    <!--showValue='自动体位'></label-box>-->
236
-                    <!--&nbsp;-->
237
-                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'-->
238
-                    <!--showValue='平卧位'></label-box>-->
239
-                    <!--&nbsp;-->
240
-                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'-->
241
-                    <!--showValue='半卧位'></label-box>-->
242
-                    <!--&nbsp;-->
243
-                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'-->
244
-                    <!--showValue='端坐位'></label-box>-->
245
-                    <!--&nbsp;-->
246
-                    <!--<label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'-->
247
-                    <!--showValue='躁动不安'></label-box>-->
248
-                    <!--&nbsp;-->
236
+                <td width="40">打折:</td>
237
+                <td width="100">
238
+                  <label-box :isChecked="predialysis.catheter_bend == 1?true:false" showValue='有'></label-box>
239
+                  &nbsp;
240
+                  <label-box :isChecked="predialysis.catheter_bend ==2?true:false" showValue='无'></label-box>
241
+                </td>
242
+                <td width='30'></td>
243
+                <td width="40">尿量:</td>
244
+                <td width='50'>
245
+                  <div class="under-line">
246
+                    &nbsp;{{ predialysis.urine_volume ? predialysis.urine_volume : '' }}
249
                   </div>
247
                   </div>
250
                 </td>
248
                 </td>
249
+                <td width='10'>ml</td>
251
                 <td></td>
250
                 <td></td>
252
               </tr>
251
               </tr>
253
               </tbody>
252
               </tbody>
267
                     <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
266
                     <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
268
                   </div>
267
                   </div>
269
                 </td>
268
                 </td>
270
-                <td width="50"></td>
269
+                <td width="30"></td>
270
+                <td width="40">外露:</td>
271
+                <td width='50'>
272
+                  <div class="under-line">
273
+                    &nbsp;{{ predialysis.exposed ? predialysis.exposed : '' }}
274
+                  </div>
275
+                </td>
276
+                <td width='10'>cm</td>
277
+                <td width="30"></td>
271
 
278
 
272
                 <td width="95">内瘘皮肤情况:</td>
279
                 <td width="95">内瘘皮肤情况:</td>
273
                 <td width="220">
280
                 <td width="220">
286
               </tbody>
293
               </tbody>
287
             </table>
294
             </table>
288
 
295
 
289
-            <table class="table-box">
296
+            <!-- <table class="table-box">
290
               <tbody>
297
               <tbody>
291
                 <tr>
298
                 <tr>
292
                   <td width="40">皮肤:</td>
299
                   <td width="40">皮肤:</td>
311
                       &nbsp;
318
                       &nbsp;
312
                     </div>
319
                     </div>
313
                   </td>
320
                   </td>
314
-                  <!-- <td width="10">)</td> -->
315
                 </tr>
321
                 </tr>
316
               </tbody>
322
               </tbody>
317
-            </table>
323
+            </table> -->
318
 
324
 
319
             <table class="table-box">
325
             <table class="table-box">
320
               <tbody>
326
               <tbody>
321
               <tr>
327
               <tr>
322
-                <td width="86">活动性出血:</td>
328
+                <td width="80">活动性出血:</td>
323
                 <td width="40">
329
                 <td width="40">
324
                   <div>
330
                   <div>
325
                     <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
331
                     <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
326
                   </div>
332
                   </div>
327
                 </td>
333
                 </td>
328
-                <td width="380">
334
+                <td width="420">
329
                   <div>
335
                   <div>
330
                     <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
336
                     <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
331
                     &nbsp;
337
                     &nbsp;
332
                     <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('消化道出血') > -1 ? true : false" showValue="消化道出血"></label-box>
338
                     <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('消化道出血') > -1 ? true : false" showValue="消化道出血"></label-box>
333
                     &nbsp;
339
                     &nbsp;
334
-                    <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('穿刺点渗血') > -1 ? true : false" showValue="穿刺点渗血"></label-box>
340
+                    <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('皮下瘀斑') > -1 ? true : false" showValue="皮下瘀斑"></label-box>
335
                     &nbsp;
341
                     &nbsp;
336
-
337
                     <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('女性经期') > -1 ? true : false" showValue="女性经期"></label-box>
342
                     <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('女性经期') > -1 ? true : false" showValue="女性经期"></label-box>
343
+                    &nbsp;
344
+                    <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('血尿') > -1 ? true : false" showValue="血尿"></label-box>
338
                   </div>
345
                   </div>
339
                 </td>
346
                 </td>
340
 
347
 
353
               <tbody>
360
               <tbody>
354
               <tr>
361
               <tr>
355
                 <td width="70">血管通路:</td>
362
                 <td width="70">血管通路:</td>
356
-                <td width="480">
363
+                <td width="620">
357
                   <div>
364
                   <div>
358
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
365
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
359
                     &nbsp;
366
                     &nbsp;
361
                     &nbsp;
368
                     &nbsp;
362
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>
369
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>
363
                     &nbsp;
370
                     &nbsp;
371
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
372
+                    &nbsp;
364
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1 ? true : false" showValue="颈内静脉"></label-box>
373
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1 ? true : false" showValue="颈内静脉"></label-box>
365
                     &nbsp;
374
                     &nbsp;
375
+                    (&nbsp;<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-长期') > -1 ? true : false" showValue="长期"></label-box>&nbsp;
376
+                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉-临时') > -1 ? true : false" showValue="临时"></label-box>&nbsp;)
366
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="股静脉"></label-box>
377
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="股静脉"></label-box>
367
                     &nbsp;
378
                     &nbsp;
368
-                    <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
369
-                    &nbsp;
379
+                    
370
                   </div>
380
                   </div>
371
                 </td>
381
                 </td>
372
 
382
 
382
       <table class="print-table" border="1">
392
       <table class="print-table" border="1">
383
         <tbody>
393
         <tbody>
384
         <tr>
394
         <tr>
385
-          <td width="30px" class="title-box">专科记录</td>
395
+          <td width="30px" style="line-height:25px;" class="title-box">专科记录</td>
386
           <td>
396
           <td>
387
             <table class="table-box">
397
             <table class="table-box">
388
               <tbody>
398
               <tbody>
402
                   </div>
412
                   </div>
403
                 </td>
413
                 </td>
404
                 <td width="20">Kg</td>
414
                 <td width="20">Kg</td>
415
+                <td></td>
416
+                <td width="60">衣物重:</td>
417
+                <td width="50">
418
+                  <div class="under-line">
419
+                    &nbsp;{{ predialysis.additional_weight ? predialysis.additional_weight : 0 }}
420
+                  </div>
421
+                </td>
422
+                <td width="20">Kg</td>
405
 
423
 
406
                 <td></td>
424
                 <td></td>
407
                 <td width="100">计划治疗时间:</td>
425
                 <td width="100">计划治疗时间:</td>
418
                 </td>
436
                 </td>
419
                 <td width="35">min</td>
437
                 <td width="35">min</td>
420
                 <td></td>
438
                 <td></td>
439
+                <td width="70">血流量:</td>
440
+                <td width="50">
441
+                  <div class="under-line">
442
+                    &nbsp;{{prescription.blood_flow_volume?prescription.blood_flow_volume:''}}
443
+                  </div>
444
+                </td>
445
+                <td width="20">ml/min</td>
421
                 <td width=""></td>
446
                 <td width=""></td>
422
               </tr>
447
               </tr>
423
               </tbody>
448
               </tbody>
426
             <table class="table-box">
451
             <table class="table-box">
427
               <tbody>
452
               <tbody>
428
               <tr>
453
               <tr>
429
-                <td width="120">计划超滤总量:</td>
454
+                <td width="100">计划超滤总量:</td>
430
                 <td width="50">
455
                 <td width="50">
431
                   <div class="under-line">
456
                   <div class="under-line">
432
-                    &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "" }}
457
+                    &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : 0 }}
433
                   </div>
458
                   </div>
434
                 </td>
459
                 </td>
435
-                <td width="10">ml</td>
460
+                <td width="10">L</td>
461
+                <td width='70'>置换方式:</td>
462
+                <td width='130'>
463
+                  <label-box :isChecked="prescription.displace_liqui_part == 1 ? true : false" showValue="前置换"></label-box>&nbsp;
464
+                  <label-box :isChecked="prescription.displace_liqui_part == 2 ? true : false" showValue="后置换"></label-box>
465
+                </td>
436
                 <td width="60">置换量:</td>
466
                 <td width="60">置换量:</td>
437
                 <td width="40">
467
                 <td width="40">
438
                   <div class="under-line">
468
                   <div class="under-line">
439
                     &nbsp;{{ prescription.replacement_total ? prescription.replacement_total : "/" }}
469
                     &nbsp;{{ prescription.replacement_total ? prescription.replacement_total : "/" }}
440
                   </div>
470
                   </div>
441
                 </td>
471
                 </td>
442
-                <td width="20">ml</td>
443
-
472
+                <td width="20">L</td>
473
+                
444
                 <td width="80">透析方式:</td>
474
                 <td width="80">透析方式:</td>
445
                 <td width="50">
475
                 <td width="50">
446
                   <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
476
                   <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
448
                 <td width="60">
478
                 <td width="60">
449
                   <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
479
                   <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
450
                 </td>
480
                 </td>
451
-                <td width="50">
452
-                  <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>
453
-                </td>
454
                 <td width="50">
481
                 <td width="50">
455
                   <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>
482
                   <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>
456
                 </td>
483
                 </td>
457
                 <td width="80">
484
                 <td width="80">
458
                   <label-box :isChecked="prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>
485
                   <label-box :isChecked="prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>
459
                 </td>
486
                 </td>
460
-                <td width="90">透析器型号:</td>
461
-                <td width="100">
462
-                  <div class="under-line">
463
-                    &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
464
-                  </div>
465
-                </td>
466
               </tr>
487
               </tr>
467
               </tbody>
488
               </tbody>
468
             </table>
489
             </table>
474
                 <td width="75">
495
                 <td width="75">
475
                   <label-box :isChecked="(prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7)  ? true : false" showValue="低分子:"></label-box>
496
                   <label-box :isChecked="(prescription.anticoagulant == 3 || prescription.anticoagulant == 6 || prescription.anticoagulant == 7)  ? true : false" showValue="低分子:"></label-box>
476
                 </td>
497
                 </td>
477
-
498
+                <td width="10">(</td>
499
+                <td width="80">
500
+                  <label-box :isChecked="prescription.anticoagulant == 6 ? true : false" showValue="钙"></label-box>
501
+                  <label-box :isChecked="prescription.anticoagulant == 7 ? true : false" showValue="钠"></label-box>
502
+                </td>
503
+                <td width="10">)</td>
478
                 <td width="60">
504
                 <td width="60">
479
                   <div class="under-line">
505
                   <div class="under-line">
480
                     &nbsp;
506
                     &nbsp;
504
                   </div>
530
                   </div>
505
                 </td>
531
                 </td>
506
                 <td width="20">
532
                 <td width="20">
533
+                  <span v-if="prescription.anticoagulant == 6">iu</span>
534
+                  <span v-if="prescription.anticoagulant == 7">iu</span>
535
+                  <span v-if="prescription.anticoagulant == 5">mg</span>
507
                   <span v-if="prescription.anticoagulant == 4">mg</span>
536
                   <span v-if="prescription.anticoagulant == 4">mg</span>
508
                   <span v-if="prescription.anticoagulant == 3">iu</span>
537
                   <span v-if="prescription.anticoagulant == 3">iu</span>
509
                   <span v-if="prescription.anticoagulant == 2">iu</span>
538
                   <span v-if="prescription.anticoagulant == 2">iu</span>
519
                   </div>
548
                   </div>
520
                 </td>
549
                 </td>
521
                 <td width="40">
550
                 <td width="40">
551
+                   <span v-if="prescription.anticoagulant == 7">iu/h</span>
552
+                   <span v-if="prescription.anticoagulant == 6">iu/h</span>
522
                   <span v-if="prescription.anticoagulant == 5">ml/h</span>
553
                   <span v-if="prescription.anticoagulant == 5">ml/h</span>
523
                   <span v-if="prescription.anticoagulant == 4">mg/h</span>
554
                   <span v-if="prescription.anticoagulant == 4">mg/h</span>
524
                   <span v-if="prescription.anticoagulant == 3">iu/h</span>
555
                   <span v-if="prescription.anticoagulant == 3">iu/h</span>
534
                   </div>
565
                   </div>
535
                 </td>
566
                 </td>
536
                 <td width="20">
567
                 <td width="20">
568
+                  <span v-if="prescription.anticoagulant == 5">mg</span>
569
+                  <span v-if="prescription.anticoagulant == 6">iu</span>
570
+                  <span v-if="prescription.anticoagulant == 7">iu</span>
537
                   <span v-if="prescription.anticoagulant == 4">mg</span>
571
                   <span v-if="prescription.anticoagulant == 4">mg</span>
538
                   <span v-if="prescription.anticoagulant == 3">iu</span>
572
                   <span v-if="prescription.anticoagulant == 3">iu</span>
539
                   <span v-if="prescription.anticoagulant == 2">iu</span>
573
                   <span v-if="prescription.anticoagulant == 2">iu</span>
548
               <tbody>
582
               <tbody>
549
               <tr>
583
               <tr>
550
                 <td width="85">透析液配方:</td>
584
                 <td width="85">透析液配方:</td>
551
-                <td width="100">
552
-                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : false" showValue="普通透析液"></label-box>
553
-                </td>
554
-                <td width="10"></td>
555
-                <td width="50">
556
-                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : false" showValue="低钙"></label-box>
557
-                </td>
558
-                <td width="120">
559
-                  (
560
-                  <label class="radio-lebel-box">
561
-                    <span> 1.25mmol/L</span>
562
-                  </label>
563
-                  )
564
-                </td>
565
                 <td width="50">
585
                 <td width="50">
566
-                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钙') > -1 ? true : false" showValue="高钙"></label-box>
586
+                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : prescription.dialysate_formulation_name.indexOf('高钾') > -1 ? true : false" showValue="钙"></label-box>
567
                 </td>
587
                 </td>
568
-                <td width="120">
569
-                  ( 1.75mmol/L )
588
+                <td width="10">(</td>
589
+                <td width="100">
590
+                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : false" showValue="1.25"></label-box>
591
+                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : prescription.dialysate_formulation_name.indexOf('高钾') > -1 ? true : false" showValue="1.5"></label-box>
570
                 </td>
592
                 </td>
593
+                <td width="10">)</td>
594
+                <td width="10">mmol/L</td>
571
                 <td width="50">
595
                 <td width="50">
572
-                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钾') > -1 ? true : false" showValue="高钾"></label-box>
596
+                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : prescription.dialysate_formulation_name.indexOf('高钾') > -1 ? true : false" showValue="钾"></label-box>
573
                 </td>
597
                 </td>
574
                 <td width="10">(</td>
598
                 <td width="10">(</td>
575
-                <td width="50">
576
-                  <div class="under-line">&nbsp;</div>
599
+                <td width="100">
600
+                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('常规') > -1 ? true : prescription.dialysate_formulation_name.indexOf('低钙') > -1 ? true : false" showValue="2.0"></label-box>
601
+                  <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('高钾') > -1 ? true : false" showValue="2.5"></label-box>
577
                 </td>
602
                 </td>
578
-                <td width="10">mmol/L</td>
579
                 <td width="10">)</td>
603
                 <td width="10">)</td>
580
-                <td></td>
581
-              </tr>
582
-              </tbody>
583
-            </table>
584
-
585
-            <table class="table-box">
586
-              <tbody>
587
-              <tr>
588
-                <td width="40">其他:</td>
589
-                <td width="">
590
-                  <div class="under-line">&nbsp;</div>
604
+                <td width="10">mmol/L</td>
605
+                <td width="90">透析器型号:</td>
606
+                <td width="100">
607
+                  <div class="under-line">
608
+                    &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
609
+                  </div>
591
                 </td>
610
                 </td>
611
+                <td></td>
592
               </tr>
612
               </tr>
593
               </tbody>
613
               </tbody>
594
             </table>
614
             </table>
604
             透析监测
624
             透析监测
605
           </td>
625
           </td>
606
 
626
 
607
-          <td width="100">时间</td>
608
-          <td width="40" style="line-height:20px">T<br />℃</td>
609
-          <td width="80" style="line-height:20px">Bp<br />mmHg</td>
610
-          <td width="40" style="line-height:20px">P<br />次/分</td>
611
-          <td width="60" style="line-height:20px">R<br />次/分</td>
612
-          <td width="80" style="line-height:20px">静脉压<br />{{monitors[0] && monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
613
-          <td width="80" style="line-height:20px">TMP<br />{{monitors[0] && monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
627
+          <td width="60">时间</td>
628
+          <td width="80" style="line-height:20px">血压<br />mmHg</td>
629
+          <td width="40" style="line-height:20px">脉搏<br />次/分</td>
630
+          <td width="40" style="line-height:20px">体温<br />℃</td>
631
+          <td width="60" style="line-height:20px">呼吸<br />次/分</td>
614
           <td width="60" style="line-height:20px">血流量<br />ml/min</td>
632
           <td width="60" style="line-height:20px">血流量<br />ml/min</td>
633
+          <td width="80" style="line-height:20px">静脉压<br />{{monitors[0] && monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
634
+          <td width="80" style="line-height:20px">跨膜压<br />{{monitors[0] && monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}}</td>
635
+          <td width="60" style="line-height:20px">超滤量<br />L</td>
636
+          <td width="60" style="line-height:20px">钠浓度<br />mmol/L</td>
615
           <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
637
           <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
616
-
638
+          <td width="40" style="line-height:20px">机温<br />℃</td>
617
           <td width="" style="line-height:20px">病情变化及处理</td>
639
           <td width="" style="line-height:20px">病情变化及处理</td>
640
+          <td width="60" style="line-height:20px">护士签名</td>
618
         </tr>
641
         </tr>
619
 
642
 
620
         <tr v-for="monitor in monitors" :key="monitor.id">
643
         <tr v-for="monitor in monitors" :key="monitor.id">
622
             &nbsp;
645
             &nbsp;
623
             {{ getTime(monitor.operate_time, "{h}:{i}") }}
646
             {{ getTime(monitor.operate_time, "{h}:{i}") }}
624
           </td>
647
           </td>
625
-          <td>&nbsp;{{ monitor.temperature ? monitor.temperature : "" }}</td>
626
           <td>
648
           <td>
627
             &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
649
             &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
628
             {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
650
             {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
630
           <td>
652
           <td>
631
             &nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
653
             &nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
632
           </td>
654
           </td>
655
+          <td>&nbsp;{{ monitor.temperature ? monitor.temperature : "" }}</td>
633
           <td>
656
           <td>
634
             &nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
657
             &nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
635
           </td>
658
           </td>
636
-
637
-          <td v-if="isShowZero && monitor.operate_time">
638
-            &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : 0 }}
659
+          <td>
660
+            &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
639
           </td>
661
           </td>
640
-          <td v-else>
662
+          <td>
641
             &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
663
             &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
642
           </td>
664
           </td>
643
-          <td v-if="isShowZero && monitor.operate_time">
665
+          <td>
644
             &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
666
             &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
645
           </td>
667
           </td>
646
-          <td v-else>
647
-            &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
668
+          <td>
669
+            &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
648
           </td>
670
           </td>
649
           <td>
671
           <td>
650
-            &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
651
-            <!-- {{ monitor.venous_pressure ? monitor.venous_pressure : "" }} -->
672
+            &nbsp;{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}
652
           </td>
673
           </td>
653
           <td>
674
           <td>
654
             &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
675
             &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
655
           </td>
676
           </td>
677
+          <td>
678
+            &nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
679
+          </td>
656
      
680
      
657
           <td>
681
           <td>
658
             &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
682
             &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
659
           </td>
683
           </td>
684
+          <td>
685
+            <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
686
+              {{ getAdminUser(monitor.monitoring_nurse) }}
687
+            </span>
688
+            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
689
+              <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
690
+            </span>
691
+          </td>
660
         </tr>
692
         </tr>
661
         </tbody>
693
         </tbody>
662
       </table>
694
       </table>
671
           <td style="font-size: 16px" colspan="2">医嘱内容</td>
703
           <td style="font-size: 16px" colspan="2">医嘱内容</td>
672
           <td style="font-size: 16px" width="10%">医生签名</td>
704
           <td style="font-size: 16px" width="10%">医生签名</td>
673
           <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
705
           <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
674
-          <td style="font-size: 16px" width="10%">执行人签名</td>
706
+          <td style="font-size: 16px" width="14%">执行人/核对人</td>
675
           <td style="font-size: 16px" width="10%">时间</td>
707
           <td style="font-size: 16px" width="10%">时间</td>
676
         </tr>
708
         </tr>
677
         <!-- <template v-for="group in doctor_advices" > -->
709
         <!-- <template v-for="group in doctor_advices" > -->
700
           <td height="40px">
732
           <td height="40px">
701
             <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
733
             <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
702
             <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
734
             <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset v-else />
735
+            /
736
+            <span v-if="setAdminUserES(advice.checker) == ''">
737
+              {{ getAdminUser(advice.checker) }}
738
+            </span>
739
+            <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
740
+              <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
741
+            </span>
703
           </td>
742
           </td>
704
           <td height="40px">
743
           <td height="40px">
705
             <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
744
             <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
716
               <table class="table-box">
755
               <table class="table-box">
717
                 <tbody>
756
                 <tbody>
718
                 <tr>
757
                 <tr>
719
-                  <td width="70">拔针压迫:</td>
720
-                  <td width="350">
721
-                    <div style="display:flex;justify-content:space-between;">
722
-                      <label-box showValue="自己压迫" :isChecked="afterdialysis.hemostasis_opera == 3 ? true : false"></label-box>
723
-                      &nbsp;
724
-                      <label-box showValue="他人协助" :isChecked="afterdialysis.hemostasis_opera == 2 ? true : false"></label-box>
725
-                      &nbsp;
726
-                      <label-box showValue="需要护士" :isChecked="afterdialysis.hemostasis_opera == 1 ? true : false"></label-box>
727
-                      <label-box showValue="内瘘止血带" :isChecked="afterdialysis.hemostasis_opera == 4 ? true : false"></label-box>
728
-                    </div>
729
-                  </td>
730
-                  <td width="50"></td>
731
                   <td width="70">内瘘震颤:</td>
758
                   <td width="70">内瘘震颤:</td>
732
                   <td width="200">
759
                   <td width="200">
733
                     <div style="display:flex;justify-content:space-between;">
760
                     <div style="display:flex;justify-content:space-between;">
736
                       <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
763
                       <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="不存在"></label-box>
737
                     </div>
764
                     </div>
738
                   </td>
765
                   </td>
766
+                  <td width='30'></td>
767
+                  <td width="40">导管:</td>
768
+                  <td width='200'>
769
+                    <label-box showValue="通畅" :isChecked="afterdialysis.catheter.indexOf('通畅') > -1 ? true : false"></label-box>&nbsp;
770
+                    <label-box showValue="A堵塞" :isChecked="afterdialysis.catheter.indexOf('A堵塞') > -1 ? true : false"></label-box>&nbsp;
771
+                    <label-box showValue="V堵塞" :isChecked="afterdialysis.catheter.indexOf('V堵塞') > -1 ? true : false"></label-box>&nbsp;
772
+                  </td>
739
                   <td></td>
773
                   <td></td>
740
                 </tr>
774
                 </tr>
741
                 </tbody>
775
                 </tbody>
861
                   </td>
895
                   </td>
862
                   <td width="20">Kg</td>
896
                   <td width="20">Kg</td>
863
                   <td width="20"></td>
897
                   <td width="20"></td>
864
-                  <td width="70">体重下降:</td>
865
-                  <td width="50">
866
-                    <div class="under-line">
867
-                      &nbsp;{{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/" }}
868
-                    </div>
869
-                  </td>
870
-                  <td width="20">Kg</td>
871
-                  <td width="20"></td>
872
                   <td width="90">实际超滤总量</td>
898
                   <td width="90">实际超滤总量</td>
873
                   <td width="40">
899
                   <td width="40">
874
                     <div class="under-line">
900
                     <div class="under-line">
875
-                      &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "" }}
901
+                      &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : 0 }}
876
                     </div>
902
                     </div>
877
                   </td>
903
                   </td>
878
-                  <td width="10">ml</td>
904
+                  <td width="10">L</td>
879
                   <td width="20"></td>
905
                   <td width="20"></td>
880
                   <td width="90">实际治疗时间</td>
906
                   <td width="90">实际治疗时间</td>
881
                   <td width="40">
907
                   <td width="40">
894
                 </tr>
920
                 </tr>
895
                 </tbody>
921
                 </tbody>
896
               </table>
922
               </table>
897
-
898
-              <table class="table-box">
923
+              <table class="table-box" style="padding-bottom:20px;">
899
                 <tbody>
924
                 <tbody>
900
-                  <tr>
901
-                    <td width="40">去向:</td>
902
-                    <td width="160">
903
-                      <div style="display:flex;justify-content:space-between;">
904
-                        <label-box :isChecked="afterdialysis.patient_gose == 1 ? true : false" showValue="回家"></label-box>
905
-                        <label-box :isChecked="afterdialysis.patient_gose == 2 ? true : false" showValue="留观"></label-box>
906
-                        <label-box :isChecked="afterdialysis.patient_gose == 3 ? true : false" showValue="住院"></label-box>
907
-                      </div>
908
-                    </td>
909
-                    <td>
910
-                      <div class="under-line">&nbsp;</div>
911
-                    </td>
912
-                  </tr>
925
+                <tr>
926
+                  <td width="70">透析小结:</td>
927
+                  <td style="text-align:left;">
928
+                    <span>&nbsp;{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}</span>
929
+                  </td>
930
+                </tr>
913
                 </tbody>
931
                 </tbody>
914
               </table>
932
               </table>
915
             </td>
933
             </td>
920
       <table class="table-box" style="margin-top: 10px;">
938
       <table class="table-box" style="margin-top: 10px;">
921
         <tbody>
939
         <tbody>
922
         <tr>
940
         <tr>
923
-          <td width="300"></td>
941
+          <td width="150"></td>
924
           <td width="30">医生</td>
942
           <td width="30">医生</td>
925
           <td width="80">
943
           <td width="80">
926
             <div class="under-line">
944
             <div class="under-line">
929
               <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else  />
947
               <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else  />
930
             </div>
948
             </div>
931
           </td>
949
           </td>
932
-          <td width="50">治疗护士</td>
950
+          <td width="50">穿刺护士</td>
933
           <td width="80">
951
           <td width="80">
934
             <div class="under-line">
952
             <div class="under-line">
935
               &nbsp;
953
               &nbsp;
936
-              <span v-if="doctor_advices.length > 0">
937
-                <span v-if="setAdminUserES(doctor_advices[0].execution_staff) == ''">{{ getAdminUser(doctor_advices[0].execution_staff) }}</span>
938
-                <img class="es-img" style="height:30px;" :src="setAdminUserES(doctor_advices[0].execution_staff)" alt="" srcset="" v-else />
939
-              </span>
954
+              <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
955
+              <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
940
             </div>
956
             </div>
941
           </td>
957
           </td>
942
           <td width="50">核对护士</td>
958
           <td width="50">核对护士</td>
943
           <td width="80">
959
           <td width="80">
944
             <div class="under-line">
960
             <div class="under-line">
945
               &nbsp;
961
               &nbsp;
946
-              <span v-if="doctor_advices[0].execution_staff != check.modifier">
962
+              <span v-if="(dialysisOrder==null?0:dialysisOrder.start_nurse) != check.modifier">
947
                 <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
963
                 <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
948
                 {{ getAdminUser(check == null ? 0 : check.modifier) }}
964
                 {{ getAdminUser(check == null ? 0 : check.modifier) }}
949
                 </span>
965
                 </span>
957
               </span>
973
               </span>
958
             </div>
974
             </div>
959
           </td>
975
           </td>
976
+          <td width="50">看机护士</td>
977
+          <td width="80">
978
+            <div class="under-line">
979
+              &nbsp;
980
+              <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
981
+              <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
982
+            </div>
983
+          </td>
984
+          <td width="50">下机护士</td>
985
+          <td width="80">
986
+            <div class="under-line">
987
+              &nbsp;
988
+              <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
989
+              <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
990
+            </div>
991
+          </td>
960
         </tr>
992
         </tr>
961
         </tbody>
993
         </tbody>
962
       </table>
994
       </table>
1445
               this.doctor_advices.push(obj3)
1477
               this.doctor_advices.push(obj3)
1446
               this.doctor_advices.push(obj3)
1478
               this.doctor_advices.push(obj3)
1447
               this.doctor_advices.push(obj3)
1479
               this.doctor_advices.push(obj3)
1480
+              this.doctor_advices.push(obj3)
1448
             }
1481
             }
1449
             if (this.doctor_advices.length === 1) {
1482
             if (this.doctor_advices.length === 1) {
1450
               var obj = { advice_name: '', start_time: '' }
1483
               var obj = { advice_name: '', start_time: '' }
1455
               this.doctor_advices.push(obj2)
1488
               this.doctor_advices.push(obj2)
1456
               this.doctor_advices.push(obj2)
1489
               this.doctor_advices.push(obj2)
1457
               this.doctor_advices.push(obj2)
1490
               this.doctor_advices.push(obj2)
1491
+              this.doctor_advices.push(obj2)
1458
             }
1492
             }
1459
             if (this.doctor_advices.length === 2) {
1493
             if (this.doctor_advices.length === 2) {
1460
               var obj = { advice_name: '', start_time: '' }
1494
               var obj = { advice_name: '', start_time: '' }
1463
               this.doctor_advices.push(obj1)
1497
               this.doctor_advices.push(obj1)
1464
               this.doctor_advices.push(obj1)
1498
               this.doctor_advices.push(obj1)
1465
               this.doctor_advices.push(obj1)
1499
               this.doctor_advices.push(obj1)
1500
+              this.doctor_advices.push(obj1)
1466
             }
1501
             }
1467
             if (this.doctor_advices.length === 3) {
1502
             if (this.doctor_advices.length === 3) {
1468
               // eslint-disable-next-line no-redeclare
1503
               // eslint-disable-next-line no-redeclare
1470
               this.doctor_advices.push(obj)
1505
               this.doctor_advices.push(obj)
1471
               this.doctor_advices.push(obj)
1506
               this.doctor_advices.push(obj)
1472
               this.doctor_advices.push(obj)
1507
               this.doctor_advices.push(obj)
1508
+              this.doctor_advices.push(obj)
1473
             }
1509
             }
1474
-            if (this.doctor_advices.length === 2) {
1510
+            if (this.doctor_advices.length === 4) {
1475
               // eslint-disable-next-line no-redeclare
1511
               // eslint-disable-next-line no-redeclare
1476
               var obj = { advice_name: '', start_time: '' }
1512
               var obj = { advice_name: '', start_time: '' }
1477
               this.doctor_advices.push(obj)
1513
               this.doctor_advices.push(obj)
1478
               this.doctor_advices.push(obj)
1514
               this.doctor_advices.push(obj)
1479
               this.doctor_advices.push(obj)
1515
               this.doctor_advices.push(obj)
1480
-              this.doctor_advices.push(obj)
1481
             }
1516
             }
1482
-            if (this.doctor_advices.length === 1) {
1517
+            if (this.doctor_advices.length === 5) {
1483
               // eslint-disable-next-line no-redeclare
1518
               // eslint-disable-next-line no-redeclare
1484
               var obj = { advice_name: '', start_time: '' }
1519
               var obj = { advice_name: '', start_time: '' }
1485
               this.doctor_advices.push(obj)
1520
               this.doctor_advices.push(obj)
1486
               this.doctor_advices.push(obj)
1521
               this.doctor_advices.push(obj)
1487
-              this.doctor_advices.push(obj)
1488
-              this.doctor_advices.push(obj)
1522
+            }
1523
+            if (this.doctor_advices.length === 6) {
1524
+              // eslint-disable-next-line no-redeclare
1525
+              var obj = { advice_name: '', start_time: '' }
1489
               this.doctor_advices.push(obj)
1526
               this.doctor_advices.push(obj)
1490
             }
1527
             }
1491
 
1528
 

+ 292 - 51
src/xt_pages/qcd/basicInformationAnalysis.vue View File

34
         <label class="title">
34
         <label class="title">
35
              <span class="name">日期查询</span> :
35
              <span class="name">日期查询</span> :
36
         </label>
36
         </label>
37
+
37
         <el-date-picker
38
         <el-date-picker
38
           v-model="listQuery.start_time"
39
           v-model="listQuery.start_time"
39
           prefix-icon="el-icon-date"
40
           prefix-icon="el-icon-date"
62
           :picker-options="pickerOptions"
63
           :picker-options="pickerOptions"
63
         ></el-date-picker>
64
         ></el-date-picker>
64
       </div>
65
       </div>
66
+
67
+       <div class="cell clearfix" v-show="treatShow">
68
+        <label class="title">
69
+          <span class="name">透析模式</span> :
70
+        </label>
71
+        <div class="time">
72
+          <ul class>
73
+            <li
74
+             :class="item.state == stateMode ? 'active' : ''"
75
+              @click="selectTreatMode(item.state)"
76
+              v-for="item in treatmentMode"
77
+              :key="item.mode_id"
78
+            >{{ item.name }}</li>
79
+          </ul>
80
+        </div>
81
+       </div>
65
       <div v-if="way == 0" class="cell clearfix" style="align-items:normal">
82
       <div v-if="way == 0" class="cell clearfix" style="align-items:normal">
66
         <div style="float:left">
83
         <div style="float:left">
67
-          <div class="infoBox">
84
+          <div class="infoBox" style="width:370px;">
68
             <div class="infoOne">
85
             <div class="infoOne">
69
               <div class="titleBox">
86
               <div class="titleBox">
70
                 <span class="point"></span>
87
                 <span class="point"></span>
274
         </div>
291
         </div>
275
       </div>
292
       </div>
276
       <div v-else>
293
       <div v-else>
277
-        <div  style="margin-bottom:20px;">
294
+        <div style="margin-bottom:20px;">
295
+          <p style="font-size: 16px;font-weight: bold;color: #000;">透析总量</p>
278
           <line-chart :options="chart"></line-chart>
296
           <line-chart :options="chart"></line-chart>
279
         </div>
297
         </div>
280
-        <div >
298
+        <div>
299
+
300
+        <div class="cell clearfix" v-show="treatShow">
301
+        <label class="title">
302
+          <span class="name">转归状态</span> :
303
+        </label>
304
+        <div class="time">
305
+          <ul class>
306
+            <li
307
+             :class="item.state == lapseMode ? 'active' : ''"
308
+              @click="selectLapsetoMode(item.state)"
309
+              v-for="item in lapsetoMode"
310
+              :key="item.value"
311
+            >{{ item.label }}</li>
312
+          </ul>
313
+        </div>
314
+       </div>
315
+
316
+          <p style="font-size: 16px;font-weight: bold;color: #000;">转归统计</p>
281
           <line-chart :options="bar"></line-chart>
317
           <line-chart :options="bar"></line-chart>
282
         </div>
318
         </div>
283
       </div>
319
       </div>
295
 import { uParseTime } from "@/utils/tools";
331
 import { uParseTime } from "@/utils/tools";
296
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
332
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
297
 import LineChart from "../qcd/components/LineChart";
333
 import LineChart from "../qcd/components/LineChart";
298
-import {getDialysisModeType,getTotalLapseCount,getTotalSexCount,getTotalInfectiousCount,getTotalAgeCount,getTotalDialysisCount} from "@/api/common/common"
334
+import {getDialysisModeType,getTotalLapseCount,getTotalSexCount,getTotalInfectiousCount,getTotalAgeCount,getTotalDialysisCount,getTreatModeList,getCountModeId,getRolloutCount} from "@/api/common/common"
299
 export default {
335
 export default {
300
   name: "dialysisTotal",
336
   name: "dialysisTotal",
301
   components: {
337
   components: {
348
       rollOutTotal:0,
384
       rollOutTotal:0,
349
       outTotal:0,
385
       outTotal:0,
350
       dialysisAge:[],
386
       dialysisAge:[],
387
+      start:0,
388
+      end:0,
351
 
389
 
352
       way: 0,
390
       way: 0,
353
       wayArr: [
391
       wayArr: [
354
-        { value: 0, label: "统计", state: 0 },
355
-        { value: 1, label: "统计图", state: 1 }
392
+        { value: 0, label: "统计", state: 0 },
393
+        { value: 1, label: "趋势图", state: 1 }
356
       ],
394
       ],
357
       modesData: {
395
       modesData: {
358
        xAxis: [],
396
        xAxis: [],
383
         series: [
421
         series: [
384
           {
422
           {
385
             name: "",
423
             name: "",
386
-            type: "bar",
424
+            type: "line",
387
             data: [],
425
             data: [],
388
             barWidth: 30,
426
             barWidth: 30,
389
             label: {
427
             label: {
390
               normal: {
428
               normal: {
391
                 show: true,
429
                 show: true,
392
                 position: "top",
430
                 position: "top",
393
-                formatter: "{c}%"
431
+                formatter: "{c}"
394
               }
432
               }
395
             },
433
             },
396
             //配置样式
434
             //配置样式
471
         series: [
509
         series: [
472
           {
510
           {
473
             name: "",
511
             name: "",
474
-            type: "bar",
512
+            type: "line",
475
             data: [],
513
             data: [],
476
             barWidth: 30,
514
             barWidth: 30,
477
             label: {
515
             label: {
478
               normal: {
516
               normal: {
479
                 show: true,
517
                 show: true,
480
                 position: "top",
518
                 position: "top",
481
-                formatter: "{c}%"
519
+                formatter: "{c}"
482
               }
520
               }
483
             },
521
             },
484
             //配置样式
522
             //配置样式
536
             zoomLock: true // 锁定区域禁止缩放
574
             zoomLock: true // 锁定区域禁止缩放
537
           }
575
           }
538
         ],
576
         ],
539
-      }
577
+      },
578
+      treatmentMode:[],
579
+      stateMode:1,
580
+      lapseMode:0,
581
+      treatShow:false,
582
+      mode_id:0,
583
+      lapsetoMode:[
584
+        { value: 0, label: "留治", state: 0 },
585
+        { value: 1, label: "转出", state: 1}
586
+      ],
587
+      lapseid:0,
540
     };
588
     };
541
 
589
 
542
-    
590
+
543
   },
591
   },
544
   methods: {
592
   methods: {
545
     getTimestamp(time) {
593
     getTimestamp(time) {
567
         this.getTotalAgeCount(timeStar,timeEnd)
615
         this.getTotalAgeCount(timeStar,timeEnd)
568
         //统计透析年龄
616
         //统计透析年龄
569
         this.getTotalDialysisCount(timeStar,timeEnd)
617
         this.getTotalDialysisCount(timeStar,timeEnd)
618
+        this.start = timeStar
619
+        this.end =timeEnd
620
+        this.getCountModeId()
621
+        this.getRolloutCount(timeStar,timeEnd)
570
       }
622
       }
571
     },
623
     },
572
     changeEndTime(val) {
624
     changeEndTime(val) {
591
         this.getTotalAgeCount(timeStar,timeEnd)
643
         this.getTotalAgeCount(timeStar,timeEnd)
592
         //统计透析年龄
644
         //统计透析年龄
593
         this.getTotalDialysisCount(timeStar,timeEnd)
645
         this.getTotalDialysisCount(timeStar,timeEnd)
646
+        this.start = timeStar
647
+        this.end =timeEnd
648
+        this.getCountModeId()
649
+        this.getRolloutCount(timeStar,timeEnd)
594
       }
650
       }
595
     },
651
     },
596
     selectLapseTo(state) {
652
     selectLapseTo(state) {
598
       this.listQuery.state = state;
654
       this.listQuery.state = state;
599
       //获取本月当前机构的透析模式
655
       //获取本月当前机构的透析模式
600
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
656
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
601
-      // console.log("开始时间",startDate)
602
       const endDate = moment(new Date()).format('YYYY-MM-DD')
657
       const endDate = moment(new Date()).format('YYYY-MM-DD')
603
-      // console.log("结束时间",endDate)
604
       var now = new Date()
658
       var now = new Date()
605
       var nowMonth = now.getMonth(); //当前月
659
       var nowMonth = now.getMonth(); //当前月
606
       var nowYear = now.getFullYear(); //当前年
660
       var nowYear = now.getFullYear(); //当前年
626
         this.getTotalAgeCount(timeStar,timeEnd)
680
         this.getTotalAgeCount(timeStar,timeEnd)
627
         //统计透析年龄
681
         //统计透析年龄
628
         this.getTotalDialysisCount(timeStar,timeEnd)
682
         this.getTotalDialysisCount(timeStar,timeEnd)
683
+        this.start = timeStar
684
+        this.end = timeEnd
685
+        this.getCountModeId()
686
+        this.getRolloutCount(timeStar,timeEnd)
629
       }
687
       }
630
       //近三月
688
       //近三月
631
       if(state == 1){
689
       if(state == 1){
651
         this.getTotalAgeCount(startunitx,endunitx)
709
         this.getTotalAgeCount(startunitx,endunitx)
652
         //统计透析年龄
710
         //统计透析年龄
653
         this.getTotalDialysisCount(startunitx,endunitx)
711
         this.getTotalDialysisCount(startunitx,endunitx)
712
+        this.start = startunitx
713
+        this.end = endunitx
714
+        this.getCountModeId()
715
+        this.getRolloutCount(startunitx,endunitx)
654
       }
716
       }
655
 
717
 
656
      //近半年
718
      //近半年
677
         this.getTotalAgeCount(startunitx,endunitx)
739
         this.getTotalAgeCount(startunitx,endunitx)
678
         //统计透析年龄
740
         //统计透析年龄
679
         this.getTotalDialysisCount(startunitx,endunitx)
741
         this.getTotalDialysisCount(startunitx,endunitx)
742
+
743
+        this.start = startunitx
744
+        this.end = endunitx
745
+        this.getCountModeId()
746
+        this.getRolloutCount(startunitx,endunitx)
680
      }
747
      }
681
 
748
 
682
      //近一年
749
      //近一年
703
         this.getTotalAgeCount(startunitx,endunitx)
770
         this.getTotalAgeCount(startunitx,endunitx)
704
         //统计透析年龄
771
         //统计透析年龄
705
         this.getTotalDialysisCount(startunitx,endunitx)
772
         this.getTotalDialysisCount(startunitx,endunitx)
773
+
774
+        this.start = startunitx
775
+        this.end = endunitx
776
+        this.getCountModeId()
777
+        this.getRolloutCount(startunitx,endunitx)
706
      }
778
      }
707
 
779
 
708
 
780
 
709
 
781
 
782
+    },
783
+    selectTreatMode(state){
784
+      this.mode_id = state
785
+      this.stateMode = state;
786
+      this.getCountModeId()
787
+    },
788
+    selectLapsetoMode(state){
789
+      this.lapseid  = state
790
+      this.lapseMode = state
791
+      this.getRolloutCount(this.start,this.end)
710
     },
792
     },
711
     getDialysisModeType(startDate,endDate){
793
     getDialysisModeType(startDate,endDate){
712
        this.modesData.series = []
794
        this.modesData.series = []
713
        this.modesData.xAxis = []
795
        this.modesData.xAxis = []
714
       getDialysisModeType(startDate,endDate).then(response=>{
796
       getDialysisModeType(startDate,endDate).then(response=>{
715
          if(response.data.state == 1){
797
          if(response.data.state == 1){
716
-         
798
+
717
           var modetype =  response.data.data.modetype
799
           var modetype =  response.data.data.modetype
718
           this.modetype = modetype
800
           this.modetype = modetype
719
           var total =  response.data.data.total
801
           var total =  response.data.data.total
778
            if(modedate[i].mode_id == 19){
860
            if(modedate[i].mode_id == 19){
779
                modedate[i].mode_id = "IUF+HD"
861
                modedate[i].mode_id = "IUF+HD"
780
             }
862
             }
781
-            this.modesData.xAxis.push(modedate[i].mode_id)
782
-            this.modesData.series.push(((modedate[i].count/total)*100).toFixed(1))
863
+            // this.modesData.xAxis.push(modedate[i].mode_id)
864
+            // this.modesData.series.push(((modedate[i].count/total)*100).toFixed(1))
783
           }
865
           }
784
-          this.chart.series[0].data = this.modesData.series
785
-          this.chart.xAxis.data = this.modesData.xAxis
786
-          this.getArrLength1(this.chart.xAxis.data)
787
-           
866
+          // this.chart.series[0].data = this.modesData.series
867
+          // this.chart.xAxis.data = this.modesData.xAxis
868
+          // this.getArrLength1(this.chart.xAxis.data)
869
+
788
          }
870
          }
789
       })
871
       })
790
     },
872
     },
799
              {name:"转出",count:0}
881
              {name:"转出",count:0}
800
            ]
882
            ]
801
           var patients =  response.data.data.patients
883
           var patients =  response.data.data.patients
884
+
802
           this.rollOutTotal = patients.length
885
           this.rollOutTotal = patients.length
803
           var patienttwo = response.data.data.patienttwo
886
           var patienttwo = response.data.data.patienttwo
804
           this.outTotal = patienttwo.length
887
           this.outTotal = patienttwo.length
805
           var count = response.data.data.count
888
           var count = response.data.data.count
806
-          console.log("count",count)
807
           this.patientCount = count
889
           this.patientCount = count
808
 
890
 
891
+          var rollout = response.data.data.rollout
892
+          console.log("rollout",rollout)
893
+
809
           for(let i=0;i<arr.length;i++){
894
           for(let i=0;i<arr.length;i++){
810
             arr[0].count = this.rollOutTotal
895
             arr[0].count = this.rollOutTotal
811
             arr[1].count = this.outTotal
896
             arr[1].count = this.outTotal
812
           }
897
           }
813
 
898
 
814
-          for(let j=0;j<arr.length;j++){
815
-            this.modesDataTwo.xAxis.push(arr[j].name)
816
-            this.modesDataTwo.series.push(((arr[j].count/count)*100).toFixed(1))
817
-          }
818
-          this.bar.series[0].data = this.modesDataTwo.series
819
-          this.bar.xAxis.data = this.modesDataTwo.xAxis
820
-          this.getArrLength(this.bar.xAxis.data)
821
-        
899
+          // for(let j=0;j<arr.length;j++){
900
+          //   this.modesDataTwo.xAxis.push(arr[j].name)
901
+          //   this.modesDataTwo.series.push(((arr[j].count/count)*100).toFixed(1))
902
+          // }
903
+          // this.bar.series[0].data = this.modesDataTwo.series
904
+          // this.bar.xAxis.data = this.modesDataTwo.xAxis
905
+          // this.getArrLength(this.bar.xAxis.data)
906
+
822
          }
907
          }
823
       })
908
       })
824
     },
909
     },
842
        getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
927
        getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
843
            if(response.data.state === 1){
928
            if(response.data.state === 1){
844
              this.InfectiousTotal = response.data.data.total
929
              this.InfectiousTotal = response.data.data.total
845
-            //  console.log("===",this.InfectiousTotal)
846
              var infectious = response.data.data.count
930
              var infectious = response.data.data.count
847
-          //  console.log("infectious",infectious)
848
              var otherTotal = response.data.data.otherTotal
931
              var otherTotal = response.data.data.otherTotal
849
-            //  console.log("otherTotal",otherTotal)
850
              this.otherTotal = otherTotal
932
              this.otherTotal = otherTotal
851
               var arr = [
933
               var arr = [
852
                 {count:0,disease_id:2},
934
                 {count:0,disease_id:2},
888
       },
970
       },
889
     //统计透析年龄
971
     //统计透析年龄
890
     getTotalDialysisCount(timeStar,timeEnd){
972
     getTotalDialysisCount(timeStar,timeEnd){
891
-      //  const endDate = moment(new Date()).format('YYYY-MM-DD')
892
-      //  console.log("结束时间",endDate)
893
-      //  var end = Date.parse(endDate)/1000
894
-      //  console.log("end",end)
895
-      //  const startDate = moment().subtract('month', 144).format('YYYY-MM-DD')
896
-      //  var twStart = Date.parse(startDate)/1000
897
-      //  console.log("12年前",twStart)
898
-      // const start = moment().subtract('month', 432).format('YYYY-MM-DD')
899
-      // console.log("start",start)
900
-      //  var sixStart = Date.parse(start)/1000
901
-      //  console.log("36年前",sixStart)
902
-      //  const sevnstart = moment().subtract('month', 720).format('YYYY-MM-DD')
903
-      //  var sevenStart = Date.parse(sevnstart)/1000
904
-      //  console.log("60年前",sevenStart)
905
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{
973
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{
906
          if(response.data.state == 1){
974
          if(response.data.state == 1){
907
            var dataage =  response.data.data.dataage
975
            var dataage =  response.data.data.dataage
911
          }
979
          }
912
       })
980
       })
913
     },
981
     },
982
+    getTreatModeList(timeStar,timeEnd){
983
+         const params = {
984
+           start_time:timeStar,
985
+           end_time:timeEnd
986
+         }
987
+      getTreatModeList(params).then(response=>{
988
+         if(response.data.state == 1){
989
+           var list =  response.data.data.list
990
+           this.mode_id = list[0].mode_id
991
+           for(let i=0;i<list.length;i++){
992
+             if(list[i].mode_id == 1){
993
+               list[i].name = "HD"
994
+               list[i].state = 1
995
+             }
996
+             if(list[i].mode_id == 2){
997
+               list[i].name = "HDF"
998
+               list[i].state = 2
999
+             }
1000
+             if(list[i].mode_id == 3){
1001
+               list[i].name = "HD+HP"
1002
+               list[i].state = 3
1003
+             }
1004
+             if(list[i].mode_id == 4){
1005
+               list[i].name = "HP"
1006
+               list[i].state = 4
1007
+             }
1008
+             if(list[i].mode_id == 5){
1009
+               list[i].name = "HF"
1010
+               list[i].state = 5
1011
+             }
1012
+             if(list[i].mode_id == 6){
1013
+               list[i].name = "SCUF"
1014
+               list[i].state = 6
1015
+             }
1016
+             if(list[i].mode_id == 7){
1017
+               list[i].name = "IUF"
1018
+               list[i].state = 7
1019
+             }
1020
+             if(list[i].mode_id == 8){
1021
+               list[i].name="HFHD"
1022
+               list[i].state = 8
1023
+             }
1024
+             if(list[i].mode_id == 9){
1025
+               list[i].name ="HFHD+HP"
1026
+               list[i].state = 9
1027
+             }
1028
+             if(list[i].mode_id == 10){
1029
+               list[i].name = "PHF"
1030
+               list[i].state = 10
1031
+             }
1032
+             if(list[i].mode_id == 11){
1033
+               list[i].name = "HFR"
1034
+               list[i].state = 11
1035
+             }
1036
+             if(list[i].mode_id == 12){
1037
+               list[i].name = "HDF+HP"
1038
+               list[i].state = 12
1039
+             }
1040
+             if(list[i].mode_id == 13){
1041
+               list[i].name = "CRRT"
1042
+               list[i].state = 13
1043
+             }
1044
+             if(list[i].mode_id == 14){
1045
+               list[i].name = "腹水回输"
1046
+               list[i].state = 14
1047
+             }
1048
+             if(list[i].mode_id == 15){
1049
+               list[i].name = "HD前置换"
1050
+               list[i].state = 15
1051
+             }
1052
+             if(list[i].mode_id == 16){
1053
+               list[i].name = "HD后置换"
1054
+               list[i].state = 16
1055
+             }
1056
+             if(list[i].mode_id == 17){
1057
+               list[i].name = "HDF前置换"
1058
+               list[i].state = 17
1059
+             }
1060
+             if(list[i].mode_id == 18){
1061
+               list[i].name = "HDF后置换"
1062
+               list[i].state = 18
1063
+             }
1064
+             if(list[i].mode_id == 19) {
1065
+               list[i].name = "IUF+HD"
1066
+               list[i].state = 19
1067
+             }
1068
+           }
1069
+           this.treatmentMode = list
1070
+         }
1071
+      })
1072
+    },
914
     selectWay(index){
1073
     selectWay(index){
915
       this.way = index
1074
       this.way = index
1075
+      if(index == 0){
1076
+        this.treatShow = false
1077
+      }
1078
+      if(index == 1){
1079
+        this.treatShow = true
1080
+        this.getCountModeId()
1081
+      }
1082
+
916
     },
1083
     },
917
     getArrLength(result){
1084
     getArrLength(result){
918
       if(result.length > 10){
1085
       if(result.length > 10){
931
         var dataZoom_end = 100;
1098
         var dataZoom_end = 100;
932
         this.chart.dataZoom[0].end = dataZoom_end
1099
         this.chart.dataZoom[0].end = dataZoom_end
933
       }
1100
       }
1101
+    },
1102
+    getCountModeId(){
1103
+        const params = {
1104
+          start_time:this.start,
1105
+          end_time:this.end,
1106
+          mode_id:this.mode_id
1107
+        }
1108
+        this.modesData.series = []
1109
+        this.modesData.xAxis = []
1110
+      getCountModeId(params).then(response=>{
1111
+         if(response.data.state == 1){
1112
+           var modeCount = response.data.data.modeCount
1113
+           for(let i=0;i<modeCount.length;i++){
1114
+
1115
+             this.modesData.xAxis.push(moment(new Date(modeCount[i].dialysis_date*1000)).format('YYYY-MM-DD'))
1116
+             this.modesData.series.push(modeCount[i].Count)
1117
+
1118
+             this.chart.series[0].data = this.modesData.series
1119
+             this.chart.xAxis.data = this.modesData.xAxis
1120
+             this.getArrLength1(this.chart.xAxis.data)
1121
+           }
1122
+         }
1123
+      })
1124
+    },
1125
+    getRolloutCount(){
1126
+       this.modesDataTwo.series = []
1127
+       this.modesDataTwo.xAxis = []
1128
+        const params = {
1129
+          start_time:this.start,
1130
+          end_time:this.end
1131
+        }
1132
+      getRolloutCount(params).then(response=>{
1133
+         if(response.data.state == 1){
1134
+           var rollout =  response.data.data.rollout
1135
+          var arr = []
1136
+          var arrOne = []
1137
+           for(let i=0;i<rollout.length;i++){
1138
+              if(rollout[i].lapseto_type == 1){
1139
+                arr.push(rollout[i])
1140
+              }
1141
+              if(rollout[i].lapseto_type == 2){
1142
+                 arrOne.push(rollout[i])
1143
+              }
1144
+            }
1145
+          if(this.lapseid == 0){
1146
+            this.modesDataTwo.xAxis = []
1147
+            this.modesDataTwo.series = []
1148
+             for(let i=0;i<arr.length;i++){
1149
+              this.modesDataTwo.xAxis.push(moment(new Date(arr[i]. lapseto_time*1000)).format('YYYY-MM-DD'))
1150
+              this.modesDataTwo.series.push(arr[i].Count)
1151
+             }
1152
+            this.bar.series[0].data = this.modesDataTwo.series
1153
+            this.bar.xAxis.data = this.modesDataTwo.xAxis
1154
+            this.getArrLength(this.bar.xAxis.data)
1155
+           }
1156
+           if(this.lapseid == 1){
1157
+             this.modesDataTwo.xAxis = []
1158
+             this.modesDataTwo.series = []
1159
+             for(let i=0;i<arrOne.length;i++){
1160
+              this.modesDataTwo.xAxis.push(moment(new Date(arrOne[i].lapseto_time*1000)).format('YYYY-MM-DD'))
1161
+              this.modesDataTwo.series.push(arrOne[i].Count)
1162
+             }
1163
+            this.bar.series[0].data = this.modesDataTwo.series
1164
+            this.bar.xAxis.data = this.modesDataTwo.xAxis
1165
+            this.getArrLength(this.bar.xAxis.data)
1166
+           }
1167
+
1168
+         }
1169
+      })
934
     }
1170
     }
935
   },
1171
   },
936
   created() {
1172
   created() {
937
         //获取本月当前机构的透析模式
1173
         //获取本月当前机构的透析模式
938
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
1174
       const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
939
-       console.log("开始时间",startDate)
940
       const endDate = moment(new Date()).format('YYYY-MM-DD')
1175
       const endDate = moment(new Date()).format('YYYY-MM-DD')
941
-     console.log("结束时间",endDate)
942
       var now = new Date()
1176
       var now = new Date()
943
       var nowMonth = now.getMonth(); //当前月
1177
       var nowMonth = now.getMonth(); //当前月
944
       var nowYear = now.getFullYear(); //当前年
1178
       var nowYear = now.getFullYear(); //当前年
945
       //本月的开始时间
1179
       //本月的开始时间
946
       var monthStartDate = new Date(nowYear, nowMonth, 1);
1180
       var monthStartDate = new Date(nowYear, nowMonth, 1);
947
       var timeStar=Date.parse(monthStartDate)/1000;//s
1181
       var timeStar=Date.parse(monthStartDate)/1000;//s
948
-      console.log("本月第一天",timeStar)
949
       //本月的结束时间
1182
       //本月的结束时间
950
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
1183
       var monthEndDate = new Date(nowYear, nowMonth+1, 0);
951
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
1184
       var timeEnd=Date.parse(monthEndDate)/1000-1;//s
952
-      console.log("本月最后一天",timeEnd)
953
       //统计透析总量
1185
       //统计透析总量
954
       this.getDialysisModeType(startDate,endDate)
1186
       this.getDialysisModeType(startDate,endDate)
955
       //统计转归状态
1187
       //统计转归状态
962
       this.getTotalAgeCount(timeStar,timeEnd)
1194
       this.getTotalAgeCount(timeStar,timeEnd)
963
       //统计透析年龄
1195
       //统计透析年龄
964
       this.getTotalDialysisCount(timeStar,timeEnd)
1196
       this.getTotalDialysisCount(timeStar,timeEnd)
1197
+
1198
+      //获取当前选中时间所有的透析模式
1199
+      this.getTreatModeList(timeStar,timeEnd)
1200
+      this.start = timeStar
1201
+      this.end = timeEnd
1202
+
1203
+     this.getRolloutCount(timeStar,timeEnd)
1204
+
1205
+
965
   },
1206
   },
966
 };
1207
 };
967
 </script>
1208
 </script>