XMLWAN 3 years ago
parent
commit
843000df10

+ 1 - 0
src/api/patient.js View File

502
 }
502
 }
503
 
503
 
504
 export function saveCreation(params) {
504
 export function saveCreation(params) {
505
+  console.log('中国龚3223呃3额', params)
505
   return request({
506
   return request({
506
     url: '/api/patient/savecreationinspection',
507
     url: '/api/patient/savecreationinspection',
507
     method: 'get',
508
     method: 'get',

+ 58 - 43
src/store/modules/globalConfig.js View File

706
         zongliang_unit: 'mg',
706
         zongliang_unit: 'mg',
707
         gaimingcheng_unit: '',
707
         gaimingcheng_unit: '',
708
         gaijiliang_unit: ''
708
         gaijiliang_unit: ''
709
+      },
710
+      11: {
711
+        id: 11,
712
+        name: '那曲肝素',
713
+        type: 1,
714
+        shouji: 1,
715
+        weichi: 1,
716
+        zongliang: 1,
717
+        gaimingcheng: -1,
718
+        gaijiliang: -1,
719
+        shouji_unit: 'mg',
720
+        weichi_unit: 'mg/h',
721
+        zongliang_unit: 'mg',
722
+        gaimingcheng_unit: '',
723
+        gaijiliang_unit: ''
709
       }
724
       }
710
     },
725
     },
711
     anticoagulants_set: {
726
     anticoagulants_set: {
1866
       id: 27,
1881
       id: 27,
1867
       name: '万u'
1882
       name: '万u'
1868
     }, {
1883
     }, {
1869
-        id: 28,
1870
-        name: '片'
1871
-      },{
1872
-        id: 29,
1873
-        name: '只'
1874
-      },{
1875
-        id: 30,
1876
-        name: '次'
1877
-      },{
1878
-        id: 31,
1879
-        name: '米'
1880
-      },{
1881
-        id: 32,
1882
-        name: '对'
1883
-      },
1884
-      {
1885
-        id: 31,
1886
-        name: '米'
1887
-      },
1888
-      {
1889
-        id: 32,
1890
-        name: '对'
1891
-      },
1892
-      {
1893
-        id: 33,
1894
-        name: '万份'
1895
-      },
1896
-      {
1897
-        id: 34,
1898
-        name: '副'
1899
-      },
1900
-      {
1901
-        id: 35,
1902
-        name: '本'
1903
-      },
1904
-      {
1905
-        id: 36,
1906
-        name: '轴'
1907
-      },
1908
-      {
1909
-        id: 37,
1910
-        name: '辆'
1911
-      },
1884
+      id: 28,
1885
+      name: '片'
1886
+    }, {
1887
+      id: 29,
1888
+      name: '只'
1889
+    }, {
1890
+      id: 30,
1891
+      name: '次'
1892
+    }, {
1893
+      id: 31,
1894
+      name: '米'
1895
+    }, {
1896
+      id: 32,
1897
+      name: '对'
1898
+    },
1899
+    {
1900
+      id: 31,
1901
+      name: '米'
1902
+    },
1903
+    {
1904
+      id: 32,
1905
+      name: '对'
1906
+    },
1907
+    {
1908
+      id: 33,
1909
+      name: '万份'
1910
+    },
1911
+    {
1912
+      id: 34,
1913
+      name: '副'
1914
+    },
1915
+    {
1916
+      id: 35,
1917
+      name: '本'
1918
+    },
1919
+    {
1920
+      id: 36,
1921
+      name: '轴'
1922
+    },
1923
+    {
1924
+      id: 37,
1925
+      name: '辆'
1926
+    }
1912
     ],
1927
     ],
1913
     body_fluid: [{
1928
     body_fluid: [{
1914
       id: 1,
1929
       id: 1,

+ 4 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue View File

309
           <label>跌倒风险: </label>
309
           <label>跌倒风险: </label>
310
           <span class="content" >{{ getFallrisk(this.record.fallrisk)}}</span>
310
           <span class="content" >{{ getFallrisk(this.record.fallrisk)}}</span>
311
         </li>
311
         </li>
312
+        <li v-if="isShow('机器运行')">
313
+          <label>机器运行: </label>
314
+          <span class="content" >{{ this.record.machine_run}}</span>
315
+        </li>
312
       </ul>
316
       </ul>
313
     </div>
317
     </div>
314
     <div class="note">
318
     <div class="note">

+ 22 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

678
              </el-select>
678
              </el-select>
679
             </el-form-item>
679
             </el-form-item>
680
         </el-col>
680
         </el-col>
681
+
682
+      <el-col :span="8" v-if="isShow('机器运行')">
683
+            <el-form-item label="机器运行: ">
684
+              <el-select v-model="form.machine_run">
685
+                <el-option :key="0" label="请选择" :value="0"></el-option>
686
+
687
+                <el-option
688
+                  v-for="item in machineList"
689
+                  :label="item.name"
690
+                  :value="item.name"
691
+                  :key="item.value"
692
+                ></el-option>
693
+              </el-select>
694
+            </el-form-item>
695
+       </el-col>
681
         <el-col :span="24" v-if="isShow('KT/V')">
696
         <el-col :span="24" v-if="isShow('KT/V')">
682
             <el-form-item label="KT/V:">
697
             <el-form-item label="KT/V:">
683
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
698
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
853
         lapse:"",
868
         lapse:"",
854
         consciousness:"",
869
         consciousness:"",
855
         fallrisk:"",
870
         fallrisk:"",
871
+        machine_run:"",
856
       },
872
       },
857
       lapseList:[],
873
       lapseList:[],
858
       leaveOfficeMethod:[],
874
       leaveOfficeMethod:[],
859
       consciousnessList:[],
875
       consciousnessList:[],
860
-      fallriskList:[]
876
+      fallriskList:[],
877
+      machineList:[],
861
     }
878
     }
862
   },
879
   },
863
   watch: {
880
   watch: {
1068
       data["lapse"] = this.form.lapse
1085
       data["lapse"] = this.form.lapse
1069
       data["consciousness"] = this.form.consciousness
1086
       data["consciousness"] = this.form.consciousness
1070
       data["fallrisk"] = this.form.fallrisk
1087
       data["fallrisk"] = this.form.fallrisk
1088
+      data["machine_run"] = this.form.machine_run
1071
       console.log("Paramsquery",data)
1089
       console.log("Paramsquery",data)
1090
+     
1072
       postAssessmentAfterDislysis(ParamsQuery, data)
1091
       postAssessmentAfterDislysis(ParamsQuery, data)
1073
         .then(response => {
1092
         .then(response => {
1074
           this.loading = false
1093
           this.loading = false
1350
     this.leaveOfficeMethod = getDataConfig('hemodialysis','leave_office_method')
1369
     this.leaveOfficeMethod = getDataConfig('hemodialysis','leave_office_method')
1351
     this.consciousnessList = getDataConfig("hemodialysis","consciousness")
1370
     this.consciousnessList = getDataConfig("hemodialysis","consciousness")
1352
     this.fallriskList = getDataConfig("hemodialysis","fallrisk")
1371
     this.fallriskList = getDataConfig("hemodialysis","fallrisk")
1372
+     this.machineList = getDataConfig("hemodialysis","machine_run")
1373
+     console.log("机器运行",this.machineList)
1353
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1374
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1354
     this.patientGoseOptions = this.$store.getters.patient_gose
1375
     this.patientGoseOptions = this.$store.getters.patient_gose
1355
     this.observationContentOptions = this.$store.getters.observation_content
1376
     this.observationContentOptions = this.$store.getters.observation_content

+ 7 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

2072
         if (val > 2) {
2072
         if (val > 2) {
2073
           this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
2073
           this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
2074
         }
2074
         }
2075
-        if (this.$store.getters.xt_user.template_info.template_id == 13 && val == 2) {
2076
-          this.anticoagulant.shouji_unit = 'mg'
2075
+        if ((this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 41) && val == 2) {
2076
+           if(val == 2){
2077
+             this.anticoagulant.shouji_unit = 'mg'
2078
+           }else{
2079
+             this.anticoagulant.shouji_unit = 'iu'
2080
+           }
2081
+         
2077
           this.anticoagulant.weichi_unit = 'mg/h'
2082
           this.anticoagulant.weichi_unit = 'mg/h'
2078
           this.anticoagulant.zongliang_unit = 'mg'
2083
           this.anticoagulant.zongliang_unit = 'mg'
2079
         }
2084
         }

+ 8 - 6
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

168
                   template_id == 38 ||
168
                   template_id == 38 ||
169
                   template_id == 39 ||
169
                   template_id == 39 ||
170
                   template_id == 40 ||
170
                   template_id == 40 ||
171
+                  template_id == 41 ||
171
                   org_id == 9555)
172
                   org_id == 9555)
172
             "
173
             "
173
           >
174
           >
212
                 template_id != 38 &&
213
                 template_id != 38 &&
213
                 template_id != 39 &&
214
                 template_id != 39 &&
214
                 template_id != 40 &&
215
                 template_id != 40 &&
216
+                template_id != 41 &&
215
                 org_id!=9555
217
                 org_id!=9555
216
             "
218
             "
217
           >
219
           >
229
             align="center"
231
             align="center"
230
             label="超滤率(ml/h)"
232
             label="超滤率(ml/h)"
231
             width="100"
233
             width="100"
232
-            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38) "
234
+            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38  || template_id == 41) "
233
           >
235
           >
234
             <template slot-scope="scope">
236
             <template slot-scope="scope">
235
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
237
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
240
             align="center"
242
             align="center"
241
             label="超滤率(L/h)"
243
             label="超滤率(L/h)"
242
             width="100"
244
             width="100"
243
-            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38"
245
+            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38  && template_id != 41"
244
           >
246
           >
245
             <template slot-scope="scope">
247
             <template slot-scope="scope">
246
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
248
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
578
             </el-form-item>
580
             </el-form-item>
579
           </el-col>
581
           </el-col>
580
 
582
 
581
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38) ">
583
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41) ">
582
             <el-form-item label="超滤率(ml/h)">
584
             <el-form-item label="超滤率(ml/h)">
583
               <el-input v-model="form.ultrafiltration_rate"></el-input>
585
               <el-input v-model="form.ultrafiltration_rate"></el-input>
584
             </el-form-item>
586
             </el-form-item>
585
           </el-col>
587
           </el-col>
586
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38">
588
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38 && template_id != 41">
587
             <el-form-item label="超滤率(L/h)">
589
             <el-form-item label="超滤率(L/h)">
588
               <el-input v-model="form.ultrafiltration_rate"></el-input>
590
               <el-input v-model="form.ultrafiltration_rate"></el-input>
589
             </el-form-item>
591
             </el-form-item>
591
 
593
 
592
           <el-col
594
           <el-col
593
             :span="8"
595
             :span="8"
594
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || org_id == 9555) " >
596
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || org_id == 9555) " >
595
             <el-form-item label="超滤量(ml):">
597
             <el-form-item label="超滤量(ml):">
596
               <el-input v-model="form.ultrafiltration_volume"></el-input>
598
               <el-input v-model="form.ultrafiltration_volume"></el-input>
597
             </el-form-item>
599
             </el-form-item>
599
 
601
 
600
           <el-col
602
           <el-col
601
             :span="8"
603
             :span="8"
602
-            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && org_id !=9555" >
604
+            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38  && template_id!=41 && org_id !=9555" >
603
             <el-form-item label="超滤量(L):">
605
             <el-form-item label="超滤量(L):">
604
               <el-input v-model="form.ultrafiltration_volume"></el-input>
606
               <el-input v-model="form.ultrafiltration_volume"></el-input>
605
             </el-form-item>
607
             </el-form-item>

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41  && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41" width="50px"> 超滤率 <br />(L/h) </th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>
23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>

+ 387 - 119
src/xt_pages/user/templateSummary.vue View File

39
                         border highlight-current-row @current-change="changeCurrentRecordTwo"
39
                         border highlight-current-row @current-change="changeCurrentRecordTwo"
40
                         :row-class-name="tableRow"
40
                         :row-class-name="tableRow"
41
               >
41
               >
42
-                <el-table-column type="selection" width="40" align="center"></el-table-column>
43
-                <el-table-column label="检查项目" align="center">
42
+                <el-table-column type="selection" width="60" align="center"></el-table-column>
43
+                <el-table-column label="阶段小结名称" align="center">
44
                   <template slot-scope="scope">
44
                   <template slot-scope="scope">
45
                      {{scope.row.title}}
45
                      {{scope.row.title}}
46
                   </template>
46
                   </template>
47
                 </el-table-column>
47
                 </el-table-column>
48
+                <el-table-column label="记录时间" align="center">
49
+                  <template slot-scope="scope">
50
+                     {{getTime(scope.row.record_time)}}
51
+                  </template>
52
+                </el-table-column>
53
+                <el-table-column label="记录医生" align="center">
54
+                  <template slot-scope="scope">
55
+                     {{getDoctor(scope.row.admin_user_id)}}
56
+                  </template>
57
+                </el-table-column>
48
               </el-table>
58
               </el-table>
49
             </el-col>
59
             </el-col>
50
             <el-col :span="14">
60
             <el-col :span="14">
51
               <div class="record_content_panel">
61
               <div class="record_content_panel">
52
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
53
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
63
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
-                <!-- <el-divider></el-divider> -->
55
                 <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
64
                 <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
56
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
57
-                  <span style="margin-right:10px;line-height:20px;">干体重:{{editObj.drg_weight}}</span>
58
-                  <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
59
-                  <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
66
+                  <span style="margin-right:10px;line-height:20px;">干体重(kg):{{editObj.dry_weight}}</span>
67
+                  <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
68
+                  <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
60
                   <br>
69
                   <br>
61
-                  <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
62
-                  <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
63
-                  <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
70
+                  <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
71
+                  <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
72
+                  <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
64
                    <br>
73
                    <br>
65
                   <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
74
                   <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
66
-                  <span style="margin-right:10px;line-height:20px;">抗凝剂:{{editObj.anticoagulant}}</span>
75
+                  <span style="margin-right:10px;line-height:20px;">抗凝剂:
76
+                    <span> {{getAnticoagulant(editObj.anticoagulant)}}</span>
77
+                  </span>
67
                   <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
78
                   <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
68
                   <br>
79
                   <br>
69
-                  <span style="margin-right:10px;line-height:20px;">每次透析(小时):{{editObj.hour}}</span>
80
+                  <span style="margin-right:10px;line-height:20px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
81
+                   <span v-if="editObj.minute!=''">{{editObj.minute}}</span>分</span>
70
                   <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
82
                   <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
71
                   <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
83
                   <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
72
                   <br>
84
                   <br>
73
                   <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
85
                   <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
74
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
86
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
75
                 </div>
87
                 </div>
76
-                <!-- <el-divider></el-divider> -->
77
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
88
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
89
+                   {{editObj.template_summary_content}}
90
+                 </div>
91
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
78
                   <div>
92
                   <div>
79
                     <div v-for="item in editObj.template_inspection_content">
93
                     <div v-for="item in editObj.template_inspection_content">
80
                     <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
94
                     <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
81
                     <div style="display:flex;flex-wrap: wrap;">
95
                     <div style="display:flex;flex-wrap: wrap;">
82
                       <div v-for="it in item.arr" style="width:33%;">
96
                       <div v-for="it in item.arr" style="width:33%;">
83
-                        {{ it.item_name }} {{ it.inspect_value }}
97
+                        {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>
98
+                        <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
99
+                            {{it.inspect_value}}↓
100
+                          </span> 
101
+                          <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
102
+                            {{it.inspect_value}}↑
103
+                        </span> 
84
                       </div>
104
                       </div>
85
                     </div>
105
                     </div>
86
                   </div>
106
                   </div>
87
                   </div>
107
                   </div>
88
                 </div>  
108
                 </div>  
89
-                <!-- <el-divider></el-divider> -->
109
+               
90
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
110
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
91
               </div>
111
               </div>
92
             </el-col>
112
             </el-col>
110
                   <el-col :span="8">
130
                   <el-col :span="8">
111
                     <el-form-item label="阶段小结时间:">
131
                     <el-form-item label="阶段小结时间:">
112
                         <el-date-picker
132
                         <el-date-picker
133
+                            @change="changeStartYear"
113
                             v-model="form.start_year"
134
                             v-model="form.start_year"
114
                             type="year"
135
                             type="year"
115
-                            value-format="yyyy-MM-dd"
136
+                            value-format="yyyy"
116
                             placeholder="选择年">
137
                             placeholder="选择年">
117
                         </el-date-picker>
138
                         </el-date-picker>
118
                     </el-form-item> 
139
                     </el-form-item> 
128
                   
149
                   
129
                   <el-col :span="8" v-if="form.radio == 1">
150
                   <el-col :span="8" v-if="form.radio == 1">
130
                     <el-form-item>
151
                     <el-form-item>
152
+                       <!-- <el-select v-model="form.start_month" placeholder="请选择" @change="changeStartMonth">
153
+                        <el-option
154
+                          v-for="item in monthType"
155
+                          :key="item.id"
156
+                          :label="item.name"
157
+                          :value="item.id">
158
+                        </el-option>
159
+                      </el-select> -->
131
                       <el-date-picker
160
                       <el-date-picker
161
+                        @change="changeStartMonth"
132
                         value-format="MM"
162
                         value-format="MM"
133
                         v-model="form.start_month"
163
                         v-model="form.start_month"
134
                         type="month"
164
                         type="month"
138
                   </el-col>
168
                   </el-col>
139
                   <el-col :span="8" v-if="form.radio == 2">
169
                   <el-col :span="8" v-if="form.radio == 2">
140
                     <el-form-item>
170
                     <el-form-item>
141
-                       <el-select v-model="form.quarter" placeholder="请选择">
171
+                       <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
142
                         <el-option
172
                         <el-option
143
                           v-for="item in timeType"
173
                           v-for="item in timeType"
144
                           :key="item.id"
174
                           :key="item.id"
204
 
234
 
205
                     <el-col :span="8">
235
                     <el-col :span="8">
206
                      <el-form-item label="抗凝剂">
236
                      <el-form-item label="抗凝剂">
207
-                      <!-- <el-input v-model="form.anticoagulant"></el-input> -->
237
+                    
208
                        <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
238
                        <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
209
                           <el-option :key="0" label="请选择" :value="0"></el-option>
239
                           <el-option :key="0" label="请选择" :value="0"></el-option>
210
                           <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
240
                           <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
296
                   <el-row>
326
                   <el-row>
297
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
327
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
298
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
328
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
299
-                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
329
+                
300
                      <div class="borderBox">
330
                      <div class="borderBox">
301
                        <div v-for="item in form.template_inspection_content">
331
                        <div v-for="item in form.template_inspection_content">
302
                         <p>{{ item.project_name }}</p>
332
                         <p>{{ item.project_name }}</p>
303
                         <div style="display:flex;flex-wrap: wrap;">
333
                         <div style="display:flex;flex-wrap: wrap;">
304
                           <div v-for="it in item.arr" style="width:33%;">
334
                           <div v-for="it in item.arr" style="width:33%;">
305
-                            {{ it.item_name }} {{ it.inspect_value }}
335
+                           {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>
336
+                             <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
337
+                             {{it.inspect_value}}↓
338
+                           </span> 
339
+                           <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
340
+                             {{it.inspect_value}}↑
341
+                          </span> 
306
                           </div>
342
                           </div>
307
                         </div>
343
                         </div>
308
                       </div>
344
                       </div>
552
                         <p>{{ item.project_name }}</p>
588
                         <p>{{ item.project_name }}</p>
553
                         <div style="display:flex;flex-wrap: wrap;">
589
                         <div style="display:flex;flex-wrap: wrap;">
554
                           <div v-for="it in item.arr" style="width:33%;">
590
                           <div v-for="it in item.arr" style="width:33%;">
555
-                            {{ it.item_name }} {{ it.inspect_value }}
591
+                            {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>
592
+                             <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
593
+                             {{it.inspect_value}}↓
594
+                           </span> 
595
+                           <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
596
+                             {{it.inspect_value}}↑
597
+                          </span> 
556
                           </div>
598
                           </div>
557
                         </div>
599
                         </div>
558
                       </div>
600
                       </div>
604
                 <span>选择检验检查时间:</span>
646
                 <span>选择检验检查时间:</span>
605
                 <div>
647
                 <div>
606
                   <el-form-item
648
                   <el-form-item
607
-                   label="年份:"
649
+                   label="时间:"
608
                    prop="startYear"
650
                    prop="startYear"
609
                    style="width:100%;"
651
                    style="width:100%;"
610
                  >
652
                  >
611
                  <el-date-picker 
653
                  <el-date-picker 
654
+                    @change="changeYear"
612
                     v-model="startYear" 
655
                     v-model="startYear" 
613
                     class="timePicker" 
656
                     class="timePicker" 
614
                     type="month" 
657
                     type="month" 
640
                           backgroundColor: 'rgb(245, 247, 250)',
683
                           backgroundColor: 'rgb(245, 247, 250)',
641
                           color: '#606266'
684
                           color: '#606266'
642
                         }"
685
                         }"
643
-                        :row-style="{ color: '#303133' }" :data="tableList"
644
-                                border highlight-current-row @current-change="changeCurrentRecord"
645
-                                @selection-change="selectionChangeOne"
646
-                                :row-class-name="tableRow"
647
-                                @row-click="onRowClick"
648
-                                ref="single_table"
686
+                        :row-style="{ color: '#303133' }"
687
+                        ref="single_table"
688
+                        :data="tableList"
689
+                        border highlight-current-row 
690
+                        @current-change="changeCurrentRecord"
691
+                        @selection-change="selectionChangeOne"
692
+                        :row-class-name="tableRow"
693
+                        @row-click="onRowClick"
694
+                      
649
                       >
695
                       >
650
-                        <el-table-column type="selection" width="40" align="center"></el-table-column>
696
+                        <el-table-column type="selection" width="60" align="center"></el-table-column>
651
                         <el-table-column label="检验项目" align="center">
697
                         <el-table-column label="检验项目" align="center">
652
                           <template slot-scope="scope">
698
                           <template slot-scope="scope">
653
                             {{scope.row.project_name}}
699
                             {{scope.row.project_name}}
674
                         </el-table-column>
720
                         </el-table-column>
675
                         <el-table-column label="结果" align="center">
721
                         <el-table-column label="结果" align="center">
676
                           <template slot-scope="scope">
722
                           <template slot-scope="scope">
723
+                            {{scope.row.project_name}} <span v-if="scope.row.unit!=''">[{{scope.row.unit}}]</span>
677
                            <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
724
                            <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
678
                              {{scope.row.inspect_value}}↓
725
                              {{scope.row.inspect_value}}↓
679
                           </span> 
726
                           </span> 
733
   import { getDataConfig } from '@/utils/data'
780
   import { getDataConfig } from '@/utils/data'
734
   import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
781
   import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
735
  import MsgTip from '../dialysis/details/dialog/MsgTip'
782
  import MsgTip from '../dialysis/details/dialog/MsgTip'
783
+ 
736
   const moment = require('moment')
784
   const moment = require('moment')
737
   export default {
785
   export default {
738
     name: 'templateSummary',
786
     name: 'templateSummary',
795
           kalium:"",
843
           kalium:"",
796
           autunite:"",
844
           autunite:"",
797
           natrium:"",
845
           natrium:"",
798
-          houer:"",
846
+          hour:"",
799
           minute:"",
847
           minute:"",
800
           befor_weight:"",
848
           befor_weight:"",
801
           after_weight:"",
849
           after_weight:"",
819
           {id:3,name:"第三季度"},
867
           {id:3,name:"第三季度"},
820
           {id:4,name:"第四季度"},
868
           {id:4,name:"第四季度"},
821
         ],
869
         ],
870
+        monthType:[
871
+          {id:1,name:"一月"},
872
+          {id:2,name:"二月"},
873
+          {id:3,name:"三月"},
874
+          {id:4,name:"四月"},
875
+          {id:5,name:"五月"},
876
+          {id:6,name:"六月"},
877
+          {id:7,name:"七月"},
878
+          {id:8,name:"八月"},
879
+          {id:9,name:"九月"},
880
+          {id:10,name:"十月"},
881
+          {id:11,name:"十一月"},
882
+          {id:12,name:"十二月"},
883
+        ],
822
         options:[],
884
         options:[],
823
         dialogVisibleInspection:false,
885
         dialogVisibleInspection:false,
824
         editDialogVisible:false,
886
         editDialogVisible:false,
825
         edit_show_dialog:false,
887
         edit_show_dialog:false,
826
         InspectionMajor:[],
888
         InspectionMajor:[],
827
         other_start_time:"",
889
         other_start_time:"",
828
-        startYear:new Date(),
829
-        startMonth:(new Date().getMonth+1).toString(),
890
+        startYear:moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") ,
891
+        // startMonth:(new Date().getMonth - 1).toString(),
830
         tableList:[],
892
         tableList:[],
831
         tableData:[],
893
         tableData:[],
832
         inspectDataList:[],
894
         inspectDataList:[],
842
         stockType:[],
904
         stockType:[],
843
         summaryList:[],
905
         summaryList:[],
844
         planList:[],
906
         planList:[],
907
+        projectStr:"",
908
+        projectIndate:"",
909
+        start_year:"2021",
910
+        start_month:"",
911
+        start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
912
+        end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
845
       }
913
       }
846
     },
914
     },
847
     created() {
915
     created() {
852
       var nowDate = new Date()
920
       var nowDate = new Date()
853
       var nowYear = nowDate.getFullYear()
921
       var nowYear = nowDate.getFullYear()
854
       var nowMonth = nowDate.getMonth() + 1
922
       var nowMonth = nowDate.getMonth() + 1
923
+      
855
       var nowDay = nowDate.getDate()
924
       var nowDay = nowDate.getDate()
856
       this.end_time =
925
       this.end_time =
857
         nowYear +
926
         nowYear +
880
 
949
 
881
       this.anticoagulantList = arrFour
950
       this.anticoagulantList = arrFour
882
       console.log("抗凝剂量",this.anticoagulantList)
951
       console.log("抗凝剂量",this.anticoagulantList)
883
-  
952
+      var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") 
953
+      console.log("endtime",endtime)
884
       this.getlist()
954
       this.getlist()
885
       this.getInspectionMajor()
955
       this.getInspectionMajor()
886
       this.getTemplateSummaryList()
956
       this.getTemplateSummaryList()
897
           return uParseTime(val, '{y}-{m}-{d}')
967
           return uParseTime(val, '{y}-{m}-{d}')
898
          }
968
          }
899
       },
969
       },
970
+      getTimeOne(val) {
971
+         if(val < 0){
972
+           return ""
973
+         }
974
+         if(val == ""){
975
+          return ""
976
+         }else {
977
+          return uParseTime(val, '{m}')
978
+         }
979
+      },
900
       showEdit(){
980
       showEdit(){
901
        
981
        
902
         this.getCurrentRecordDetailOne()
982
         this.getCurrentRecordDetailOne()
911
 
991
 
912
       },
992
       },
913
       changeCurrentRecord(val){
993
       changeCurrentRecord(val){
994
+       
914
         this.getInspectionDetai(val)
995
         this.getInspectionDetai(val)
915
       },
996
       },
916
       selectionChangeOne(val){
997
       selectionChangeOne(val){
917
-        console.log("val23232323",val)
918
-       
998
+        // console.log("hhhhhhhhh",val)
919
         this.getInspectionItemList(val)
999
         this.getInspectionItemList(val)
920
       },
1000
       },
921
-      startTimeChange(){
922
-
1001
+      startTimeChange(val){
1002
+       console.log("val",val)
1003
+       this.start_time = val
1004
+       this.getTemplateSummaryList()
923
       },
1005
       },
924
-      endTimeChange(){
925
-
1006
+      endTimeChange(val){
1007
+       this.end_time = val
1008
+       this.getTemplateSummaryList()
926
       },
1009
       },
927
       print(){
1010
       print(){
928
         this.$router.push({path:"/patient/patient/templateSummary/print?id="+this.form.id})
1011
         this.$router.push({path:"/patient/patient/templateSummary/print?id="+this.form.id})
935
         if(quarter == 1){
1018
         if(quarter == 1){
936
            
1019
            
937
         }
1020
         }
938
-
939
-        // DateTime dt = new DateTime();
940
-        // switch (quarter)
941
-        // {
942
-        //     case "第一季度":
943
-        //         dt = new DateTime(year, 1, 1);
944
-        //         break;
945
-        //     case "第二季度":
946
-        //         dt = new DateTime(year, 4, 1);         
947
-        //         break;
948
-        //     case "第三季度":
949
-        //         dt = new DateTime(year, 7, 1);           
950
-        //         break;
951
-        //     case "第四季度":
952
-        //         dt = new DateTime(year, 10, 1);             
953
-        //         break;
954
-
955
-        // }
956
-
957
       },
1021
       },
958
       didSelectionChange(){
1022
       didSelectionChange(){
959
 
1023
 
971
           start_month:this.getTime(this.form.start_month),
1035
           start_month:this.getTime(this.form.start_month),
972
           quarter:this.form.quarter,
1036
           quarter:this.form.quarter,
973
           patient_id:this.patient_id,
1037
           patient_id:this.patient_id,
1038
+          start_time:this.start_date,
1039
+          end_time:this.end_date,
974
         }
1040
         }
975
-        console.log("param222222",params)
1041
+        console.log("世纪时间",params)
976
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1042
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
977
         getInitDataList(params).then(response=>{
1043
         getInitDataList(params).then(response=>{
978
           if(response.data.state == 1){
1044
           if(response.data.state == 1){
979
              var prescription_list =  response.data.data.prescription_list
1045
              var prescription_list =  response.data.data.prescription_list
980
-             console.log("prescription_list",prescription_list)
981
-           
982
              this.form.dialzer_apparatus = prescription_list.dialysis_dialyszers
1046
              this.form.dialzer_apparatus = prescription_list.dialysis_dialyszers
983
              this.form.perfusion_apparatus = prescription_list.dialysis_irrigation
1047
              this.form.perfusion_apparatus = prescription_list.dialysis_irrigation
984
              this.form.anticoagulant = prescription_list.anticoagulant
1048
              this.form.anticoagulant = prescription_list.anticoagulant
988
              this.form.natrium = prescription_list.sodium
1052
              this.form.natrium = prescription_list.sodium
989
              this.form.autunite = prescription_list.calcium
1053
              this.form.autunite = prescription_list.calcium
990
              var beforlist = response.data.data.beforlist
1054
              var beforlist = response.data.data.beforlist
991
-             console.log("beforlist",beforlist)
992
-             this.form.befor_weight = beforlist.befor_weight
1055
+             console.log("透前数据565665565656",beforlist)
1056
+             this.form.befor_weight = beforlist.weight_before
993
              this.form.dry_weight = beforlist.dry_weight
1057
              this.form.dry_weight = beforlist.dry_weight
994
              var afterlist =  response.data.data.after_list
1058
              var afterlist =  response.data.data.after_list
995
-             console.log("afterlist",afterlist)
1059
+             console.log("透后数据232332323232",afterlist)
996
              this.form.after_weight = afterlist.weight_after
1060
              this.form.after_weight = afterlist.weight_after
997
              this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
1061
              this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
998
              this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
1062
              this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
999
              var modelist = response.data.data.modelist
1063
              var modelist = response.data.data.modelist
1064
+             console.log("modelist",modelist)
1000
              var docList = response.data.data.docList
1065
              var docList = response.data.data.docList
1001
-             console.log("doctlist",docList)
1066
+            //  console.log("doctlist",docList)
1002
              this.docList = docList
1067
              this.docList = docList
1003
              var stockType = response.data.data.stockType
1068
              var stockType = response.data.data.stockType
1004
              var arr = []
1069
              var arr = []
1019
               }
1084
               }
1020
             }
1085
             }
1021
             this.dialyzerList = dialyzator
1086
             this.dialyzerList = dialyzator
1022
-            console.log("arrtt2323232332232323",arrTwo)
1087
+            // console.log("arrtt2323232332232323",arrTwo)
1023
             for(let i=0;i<arrTwo.length;i++){
1088
             for(let i=0;i<arrTwo.length;i++){
1024
               for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1089
               for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1025
                   irrigation.push(arrTwo[i].GoodInfo[j])
1090
                   irrigation.push(arrTwo[i].GoodInfo[j])
1026
               }
1091
               }
1027
             }
1092
             }
1028
             this.irrigationList = irrigation
1093
             this.irrigationList = irrigation
1029
-            console.log("透析器233223",this.dialyzerList)
1030
-            console.log("灌流器323323223",this.irrigationList)
1094
+            // console.log("透析器233223",this.dialyzerList)
1095
+            // console.log("灌流器323323223",this.irrigationList)
1031
              var count = ""
1096
              var count = ""
1032
              var total_count = 0
1097
              var total_count = 0
1033
              for(let i=0;i<modelist.length;i++){
1098
              for(let i=0;i<modelist.length;i++){
1048
 
1113
 
1049
              }
1114
              }
1050
              this.form.other_count = count
1115
              this.form.other_count = count
1116
+             
1051
              this.form.dialysis_count = total_count
1117
              this.form.dialysis_count = total_count
1052
-             console.log("modelist",modelist)
1118
+            //  console.log("modelist",modelist)
1053
              var summaryList = response.data.data.summaryList
1119
              var summaryList = response.data.data.summaryList
1054
-             console.log("summaryList",summaryList)
1120
+            //  console.log("summaryList",summaryList)
1055
              this.summaryList = summaryList
1121
              this.summaryList = summaryList
1056
              var planList = response.data.data.planList
1122
              var planList = response.data.data.planList
1057
-             console.log("planlist",planList)
1123
+            //  console.log("planlist",planList)
1058
              this.planList = planList
1124
              this.planList = planList
1059
           }
1125
           }
1060
        })
1126
        })
1066
 
1132
 
1067
       //获取大项数据来源
1133
       //获取大项数据来源
1068
       getInspectionMajor(){
1134
       getInspectionMajor(){
1135
+          console.log("start_year",this.startYear)
1069
           var params = {
1136
           var params = {
1070
-            other_start_time:this.getTime(this.startYear),
1137
+            other_start_time:this.startYear,
1071
             patient_id:this.patient_id,
1138
             patient_id:this.patient_id,
1072
           }
1139
           }
1073
-        console.log("params",params)
1140
+         console.log("开始数据",params)
1074
         getInspectionMajorItem(params).then(response=>{
1141
         getInspectionMajorItem(params).then(response=>{
1075
           if(response.data.state == 1){
1142
           if(response.data.state == 1){
1076
             var list = response.data.data.list
1143
             var list = response.data.data.list
1077
-            console.log("list23232323",list)
1144
+            console.log("列表23232232323",list)
1145
+            // this.$refs.single_table.setCurrentRow(list[0])
1078
             this.tableList = list
1146
             this.tableList = list
1079
-            // this.$refs.single_table.setCurrentRow(this.tableList[0])
1147
+           
1080
           }
1148
           }
1081
         })
1149
         })
1082
       },
1150
       },
1087
           patient_id:val.patient_id,
1155
           patient_id:val.patient_id,
1088
           inspect_date:val.inspect_date,
1156
           inspect_date:val.inspect_date,
1089
         }
1157
         }
1090
-        console.log("param2233233223",params)
1158
+        // console.log("param2233233223",params)
1091
        getInspectionDetail(params).then(response=>{
1159
        getInspectionDetail(params).then(response=>{
1092
           if(response.data.state ==1){
1160
           if(response.data.state ==1){
1093
             var list = response.data.data.list
1161
             var list = response.data.data.list
1094
-            console.log("详情222",list)
1162
+            // console.log("详情222",list)
1163
+           
1095
             this.tableData = list
1164
             this.tableData = list
1096
           }
1165
           }
1097
        })
1166
        })
1098
       },
1167
       },
1099
       selectionChange(val){
1168
       selectionChange(val){
1100
-        console.log("val233223",val)
1169
+        // console.log("val233223",val)
1101
         selectionChange().then(response=>{
1170
         selectionChange().then(response=>{
1102
 
1171
 
1103
         })
1172
         })
1104
       },
1173
       },
1105
       getInspectionItemList(val){
1174
       getInspectionItemList(val){
1106
-       
1175
+        // console.log("中国龚23232323232332",val)
1107
        for(let i=0;i<val.length;i++){
1176
        for(let i=0;i<val.length;i++){
1108
         this.projectList.push(val[i].project_id)
1177
         this.projectList.push(val[i].project_id)
1109
         this.inspectDataList.push(val[i].inspect_date)
1178
         this.inspectDataList.push(val[i].inspect_date)
1113
       toContent(){
1182
       toContent(){
1114
       
1183
       
1115
          var str = this.projectList.join(",")
1184
          var str = this.projectList.join(",")
1185
+         this.projectStr = str
1116
          var inspe_date = this.inspectDataList.join(",")
1186
          var inspe_date = this.inspectDataList.join(",")
1187
+         this.projectIndate = inspe_date
1117
          var params = {
1188
          var params = {
1118
            ids:str,
1189
            ids:str,
1119
            inspect_date:inspe_date,
1190
            inspect_date:inspe_date,
1120
            patient_id:this.patient_id,
1191
            patient_id:this.patient_id,
1121
          }
1192
          }
1122
-         console.log("params",params)
1193
+        //  console.log("params",params)
1123
         getInspectionItemList(params).then(response=>{
1194
         getInspectionItemList(params).then(response=>{
1124
            if(response.data.state == 1){
1195
            if(response.data.state == 1){
1125
              var list = response.data.data.list
1196
              var list = response.data.data.list
1126
-             
1127
-            //  var str = ""
1128
-            //  for(let i=0;i<list.length;i++){
1129
-            //    str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
1130
-            //  }
1131
             let arr = this.unique(list,'project_name')
1197
             let arr = this.unique(list,'project_name')
1132
-            console.log("选择检验检查",arr)
1198
+            // console.log("选择检验检查",arr)
1133
            
1199
            
1134
             this.form.template_inspection_content = arr
1200
             this.form.template_inspection_content = arr
1135
             this.dialogVisibleInspection = false
1201
             this.dialogVisibleInspection = false
1139
         })  
1205
         })  
1140
       },
1206
       },
1141
       saveCreation(){
1207
       saveCreation(){
1142
-        console.log("hh2h32232332",this.form.title)
1208
+   
1209
+        if (this.form.dry_weight == ""){
1210
+          this.form.dry_weight = 0
1211
+        }
1212
+        if (this.form.dialysis_count == ""){
1213
+          this.form.dialysis_count = 0
1214
+        }
1215
+        if (this.form.hd_count == ""){
1216
+          this.form.hd_count = 0
1217
+        }
1218
+        if (this.form.hdf_count == ""){
1219
+          this.form.hdf_count = 0
1220
+        }
1221
+       if (this.form.hp_count == ""){
1222
+          this.form.hp_count = 0
1223
+        }
1224
+        if (this.form.other_count == ""){
1225
+          this.form.other_count = 0
1226
+        }
1227
+        if (this.form.kalium == ""){
1228
+          this.form.kalium = 0
1229
+        }
1230
+        if (this.form.autunite == ""){
1231
+          this.form.autunite = 0
1232
+        }
1233
+       if (this.form.natrium == ""){
1234
+          this.form.natrium = 0
1235
+        }
1236
+        if (this.form.hour == ""){
1237
+          this.form.hour = 0
1238
+        }
1239
+        if (this.form.minute == ""){
1240
+          this.form.minute = 0
1241
+        }
1242
+        if(this.form.befor_weight == ""){
1243
+          this.form.befor_weight = 0
1244
+        }
1245
+        if(this.form.after_weight == ""){
1246
+          this.form.after_weight = 0
1247
+        }
1248
+        if(this.form.befor_pressure == ""){
1249
+          this.form.befor_pressure = 0
1250
+        }
1251
+        var year = this.form.start_year+"-"+"01"+"-"+"01"
1252
+        console.log("年",year)
1253
+        var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1254
+        console.log("月",month)
1143
          var params = {
1255
          var params = {
1144
             title:this.form.title,
1256
             title:this.form.title,
1145
-            dry_weight:parseInt(this.form.dry_weight),
1257
+            dry_weight:this.form.dry_weight.toString(),
1146
             dialysis_count:parseInt(this.form.dialysis_count),
1258
             dialysis_count:parseInt(this.form.dialysis_count),
1147
             hd_count:parseInt(this.form.hd_count),
1259
             hd_count:parseInt(this.form.hd_count),
1148
             hdf_count:parseInt(this.form.hdf_count),
1260
             hdf_count:parseInt(this.form.hdf_count),
1151
             dialzer_apparatus:this.form.dialzer_apparatus,
1263
             dialzer_apparatus:this.form.dialzer_apparatus,
1152
             perfusion_apparatus:this.form.perfusion_apparatus,
1264
             perfusion_apparatus:this.form.perfusion_apparatus,
1153
             anticoagulant:this.form.anticoagulant,
1265
             anticoagulant:this.form.anticoagulant,
1154
-            kalium:parseInt(this.form.kalium),
1155
-            autunite:parseInt(this.form.autunite),
1156
-            natrium:parseInt(this.form.natrium),
1266
+            kalium:this.form.kalium.toString(),
1267
+            autunite:this.form.autunite.toString(),
1268
+            natrium:this.form.natrium.toString(),
1157
             hour:parseInt(this.form.hour),
1269
             hour:parseInt(this.form.hour),
1158
             minute:parseInt(this.form.minute),
1270
             minute:parseInt(this.form.minute),
1159
-            befor_weight:parseInt(this.form.befor_weight),
1160
-            after_weight:parseInt(this.form.after_weight),
1161
-            befor_pressure:parseInt(this.form.befor_pressure),
1271
+            befor_weight:this.form.befor_weight.toString(),
1272
+            after_weight:this.form.after_weight.toString(),
1273
+            befor_pressure:this.form.befor_pressure,
1162
             template_summary_content:this.form.template_summary_content,
1274
             template_summary_content:this.form.template_summary_content,
1163
             template_plan_content:this.form.template_plan_content,
1275
             template_plan_content:this.form.template_plan_content,
1164
-            template_inspection_content:this.form.template_inspection_content,
1276
+            // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1165
             admin_user_id:this.form.admin_user_id,
1277
             admin_user_id:this.form.admin_user_id,
1166
-            record_time:this.form.record_time,
1278
+            record_time:this.getTime(this.form.record_time),
1167
             after_pressure:this.form.after_pressure,
1279
             after_pressure:this.form.after_pressure,
1168
             template_summary_id:this.form.template_summary_id,
1280
             template_summary_id:this.form.template_summary_id,
1169
             template_summary_content:this.form.template_summary_content,
1281
             template_summary_content:this.form.template_summary_content,
1170
             template_plan_id:this.form.template_plan_id,
1282
             template_plan_id:this.form.template_plan_id,
1171
             template_inspection_id:this.form.template_inspection_id,
1283
             template_inspection_id:this.form.template_inspection_id,
1172
-            patient_id:this.patient_id,
1284
+            patient_id:parseInt(this.patient_id),
1285
+            project_id:this.projectStr,
1286
+            inspect_date:this.projectIndate,
1287
+            start_year:year,
1288
+            start_month:month,
1289
+            radio:this.form.radio,
1173
          }
1290
          }
1174
-         console.log("parawm232323223",params)
1291
+          console.log("parawm232323223",params)
1292
+        
1175
         saveCreation(params).then(response=>{
1293
         saveCreation(params).then(response=>{
1176
            if(response.data.state ==1){
1294
            if(response.data.state ==1){
1177
              var summary =  response.data.data.summary
1295
              var summary =  response.data.data.summary
1178
-             console.log("summary",summary)
1296
+            //  console.log("summary",summary)
1297
+             this.getTemplateSummaryList()
1179
              this.$message.success("保存成功!");
1298
              this.$message.success("保存成功!");
1180
              this.show_dialog = false
1299
              this.show_dialog = false
1181
              this.form.title = ""
1300
              this.form.title = ""
1210
       },
1329
       },
1211
       getTemplateSummaryList(){
1330
       getTemplateSummaryList(){
1212
           var params = {
1331
           var params = {
1213
-            patient_id:this.patient_id
1332
+            patient_id:this.patient_id,
1333
+            start_time:this.start_time,
1334
+            end_time:this.end_time,
1214
           }
1335
           }
1336
+        console.log("param2222",params)
1215
         getTemplateSummaryList(params).then(response=>{
1337
         getTemplateSummaryList(params).then(response=>{
1216
            if(response.data.state ==1){
1338
            if(response.data.state ==1){
1217
               var list = response.data.data.list
1339
               var list = response.data.data.list
1228
          getTemplateSummaryDetail(params).then(response=>{
1350
          getTemplateSummaryDetail(params).then(response=>{
1229
            if(response.data.state == 1){
1351
            if(response.data.state == 1){
1230
               var list = response.data.data.list
1352
               var list = response.data.data.list
1231
-              console.log("🔎3232322323232332",list)
1232
-              let arr = list.template_inspection_content ? JSON.parse(list.template_inspection_content) : []
1353
+              var inspectlist = response.data.data.inspectlist
1354
+              console.log("inspectlist2322332",list)
1355
+              let arr = this.unique(inspectlist,'project_name')
1356
+              console.log("hhh23h2323223223232323",arr)
1233
               list.template_inspection_content = arr
1357
               list.template_inspection_content = arr
1234
               this.editObj = list
1358
               this.editObj = list
1235
 
1359
 
1293
          getTemplateSummaryDetail(params).then(response=>{
1417
          getTemplateSummaryDetail(params).then(response=>{
1294
            if(response.data.state == 1){
1418
            if(response.data.state == 1){
1295
               var list = response.data.data.list
1419
               var list = response.data.data.list
1296
-              console.log("详情22333223",list)
1420
+              var inspectlist =  response.data.data.inspectlist
1421
+              let arr = this.unique(inspectlist,'project_name')
1422
+              this.form.template_inspection_content = arr
1297
               this.edit_show_dialog = true
1423
               this.edit_show_dialog = true
1298
               this.form.title = list.title
1424
               this.form.title = list.title
1299
               this.form.id = list.id
1425
               this.form.id = list.id
1316
                this.form.natrium =list.natrium
1442
                this.form.natrium =list.natrium
1317
                this.form.perfusion_apparatus= list.perfusion_apparatus
1443
                this.form.perfusion_apparatus= list.perfusion_apparatus
1318
                this.form.record_time = this.getTime(list.record_time)
1444
                this.form.record_time = this.getTime(list.record_time)
1319
-               this.form.template_inspection_content = list.template_inspection_content
1320
                this.form.template_inspection_id = list.template_inspection_id
1445
                this.form.template_inspection_id = list.template_inspection_id
1321
                this.form.template_plan_content = list.template_plan_content
1446
                this.form.template_plan_content = list.template_plan_content
1322
                this.form.template_summary_content =list.template_summary_content
1447
                this.form.template_summary_content =list.template_summary_content
1323
                this.form.template_summary_id = list.template_summary_id
1448
                this.form.template_summary_id = list.template_summary_id
1449
+               this.projectIndate = list.inspect_date
1450
+               this.projectStr = list.project_id
1324
            }
1451
            }
1325
         })  
1452
         })  
1326
       },
1453
       },
1349
         var params = {
1476
         var params = {
1350
             id:this.form.id,
1477
             id:this.form.id,
1351
             title:this.form.title,
1478
             title:this.form.title,
1352
-            dry_weight:parseInt(this.form.dry_weight),
1479
+            dry_weight:this.form.dry_weight.toString(),
1353
             dialysis_count:parseInt(this.form.dialysis_count),
1480
             dialysis_count:parseInt(this.form.dialysis_count),
1354
             hd_count:parseInt(this.form.hd_count),
1481
             hd_count:parseInt(this.form.hd_count),
1355
             hdf_count:parseInt(this.form.hdf_count),
1482
             hdf_count:parseInt(this.form.hdf_count),
1358
             dialzer_apparatus:this.form.dialzer_apparatus,
1485
             dialzer_apparatus:this.form.dialzer_apparatus,
1359
             perfusion_apparatus:this.form.perfusion_apparatus,
1486
             perfusion_apparatus:this.form.perfusion_apparatus,
1360
             anticoagulant:this.form.anticoagulant,
1487
             anticoagulant:this.form.anticoagulant,
1361
-            kalium:parseInt(this.form.kalium),
1362
-            autunite:parseInt(this.form.autunite),
1363
-            natrium:parseInt(this.form.natrium),
1488
+            kalium:this.form.kalium.toString(),
1489
+            autunite:this.form.autunite.toString(),
1490
+            natrium:this.form.natrium.toString(),
1364
             hour:parseInt(this.form.hour),
1491
             hour:parseInt(this.form.hour),
1365
             minute:parseInt(this.form.minute),
1492
             minute:parseInt(this.form.minute),
1366
-            befor_weight:parseInt(this.form.befor_weight),
1367
-            after_weight:parseInt(this.form.after_weight),
1368
-            befor_pressure:parseInt(this.form.befor_pressure),
1493
+            befor_weight:this.form.befor_weight.toString(),
1494
+            after_weight:this.form.after_weight.toString(),
1495
+            befor_pressure:this.form.befor_pressure,
1369
             template_summary_content:this.form.template_summary_content,
1496
             template_summary_content:this.form.template_summary_content,
1370
             template_plan_content:this.form.template_plan_content,
1497
             template_plan_content:this.form.template_plan_content,
1371
-            template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1372
             admin_user_id:this.form.admin_user_id,
1498
             admin_user_id:this.form.admin_user_id,
1373
             record_time:this.form.record_time,
1499
             record_time:this.form.record_time,
1374
             after_pressure:this.form.after_pressure,
1500
             after_pressure:this.form.after_pressure,
1375
             template_summary_id:this.form.template_summary_id,
1501
             template_summary_id:this.form.template_summary_id,
1376
-            template_summary_content:this.form.template_summary_content,
1377
             template_plan_id:this.form.template_plan_id,
1502
             template_plan_id:this.form.template_plan_id,
1378
             template_inspection_id:this.form.template_inspection_id,
1503
             template_inspection_id:this.form.template_inspection_id,
1379
-            patient_id:this.patient_id,
1504
+            patient_id:parseInt(this.patient_id),
1505
+            project_id:this.projectStr,
1506
+            inspect_date:this.projectIndate,
1380
          }
1507
          }
1381
          console.log("parawm232323223",params)
1508
          console.log("parawm232323223",params)
1382
-
1509
+        
1383
         UpdateTemplateSummary(params).then(response=>{
1510
         UpdateTemplateSummary(params).then(response=>{
1384
           if(response.data.state == 1){
1511
           if(response.data.state == 1){
1385
             var list = response.data.data.list
1512
             var list = response.data.data.list
1392
         let lastData = [];
1519
         let lastData = [];
1393
         data.forEach(item => {
1520
         data.forEach(item => {
1394
           let status = lastData.some(project_name => project_name[key] == item[key]);
1521
           let status = lastData.some(project_name => project_name[key] == item[key]);
1395
-          console.log('status',status)
1396
           if (!status) {
1522
           if (!status) {
1397
-            // item.value0 = item.value;
1398
             let obj = {
1523
             let obj = {
1399
               project_name:'',
1524
               project_name:'',
1400
               arr:[]
1525
               arr:[]
1402
             obj.project_name = item.project_name
1527
             obj.project_name = item.project_name
1403
             obj.arr.push(item);
1528
             obj.arr.push(item);
1404
             lastData.push(obj);
1529
             lastData.push(obj);
1405
-            console.log('item',item)
1406
           } else {
1530
           } else {
1407
             lastData.forEach((project_name, index) => {
1531
             lastData.forEach((project_name, index) => {
1408
               if (project_name[key] === item[key]) {
1532
               if (project_name[key] === item[key]) {
1409
-                console.log('item222',item)
1410
                 project_name.arr.push(item);
1533
                 project_name.arr.push(item);
1411
               }
1534
               }
1412
             });
1535
             });
1413
           }
1536
           }
1414
         });
1537
         });
1415
         return lastData;
1538
         return lastData;
1539
+      },
1540
+      getDoctor(id){
1541
+        var user_name = ""
1542
+        for(let i=0;i<this.docList.length;i++){
1543
+          if(id == this.docList[i].admin_user_id){
1544
+             user_name = this.docList[i].user_name
1545
+          }
1546
+        }
1547
+        return user_name
1548
+      },
1549
+      changeStartYear(){
1550
+        this.form.title = ""
1551
+        this.form.dry_weight = ""
1552
+        this.form.dialysis_count =""
1553
+        this.form.hd_count= ""
1554
+        this.form.hdf_count = ""
1555
+        this.form.hp_count = ""
1556
+        this.form.other_count =""
1557
+        this.form.dialzer_apparatus = ""
1558
+        this.form.perfusion_apparatus = ""
1559
+        this.form.anticoagulant  = ""
1560
+        this.form.kalium = ""
1561
+        this.form.autunite = ""
1562
+        this.form.natrium = ""
1563
+        this.form.hour =""
1564
+        this.form.minute = ""
1565
+        this.form.befor_weight = ""
1566
+        this.form.after_weight = ""
1567
+        this.form.befor_pressure = ""
1568
+        this.form.template_summary_content = ""
1569
+        this.form.template_plan_content = ""
1570
+        this.form.template_inspection_content = ""
1571
+        this.form.admin_user_id = ""
1572
+        this.form.record_time = ""
1573
+        this.from.after_pressure = ""
1574
+        this.form.template_summary_id = ""
1575
+        this.form.template_plan_id = ""
1576
+        this.form.template_inspection_id = ""
1577
+        this.start_year = this.form.start_year
1578
+        console.log("年份",this.form.start_year)
1579
+        console.log("月份",this.getTimeOne(this.form.start_month))
1580
+        var start = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"01"
1581
+        var end = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"30"
1582
+        this.start_date = start
1583
+        this.end_date = end
1584
+        this.getlist()
1585
+      },
1586
+      changeStartMonth(){
1587
+        this.form.title = ""
1588
+        this.form.dry_weight = ""
1589
+        this.form.dialysis_count =""
1590
+        this.form.hd_count= ""
1591
+        this.form.hdf_count = ""
1592
+        this.form.hp_count = ""
1593
+        this.form.other_count =""
1594
+        this.form.dialzer_apparatus = ""
1595
+        this.form.perfusion_apparatus = ""
1596
+        this.form.anticoagulant  = ""
1597
+        this.form.kalium = ""
1598
+        this.form.autunite = ""
1599
+        this.form.natrium = ""
1600
+        this.form.hour =""
1601
+        this.form.minute = ""
1602
+        this.form.befor_weight = ""
1603
+        this.form.after_weight = ""
1604
+        this.form.befor_pressure = ""
1605
+        this.form.template_summary_content = ""
1606
+        this.form.template_plan_content = ""
1607
+        this.form.template_inspection_content = ""
1608
+        this.form.admin_user_id = ""
1609
+        this.form.record_time = ""
1610
+        this.from.after_pressure = ""
1611
+        this.form.template_summary_id = ""
1612
+        this.form.template_plan_id = ""
1613
+        this.form.template_inspection_id = ""
1614
+        var start = this.start_year +"-"+ this.form.start_month+"-"+"01"
1615
+        var end = this.start_year +"-"+ this.form.start_month + "-"+"30"
1616
+        this.start_date  = start
1617
+        this.end_date = end 
1618
+        console.log("开始时间",this.start_date)
1619
+        console.log("结束时间",this.end_date)
1620
+        this.getlist()
1621
+       
1622
+      },
1623
+      changeQuarter(val){
1624
+        this.form.title = ""
1625
+        this.form.dry_weight = ""
1626
+        this.form.dialysis_count =""
1627
+        this.form.hd_count= ""
1628
+        this.form.hdf_count = ""
1629
+        this.form.hp_count = ""
1630
+        this.form.other_count =""
1631
+        this.form.dialzer_apparatus = ""
1632
+        this.form.perfusion_apparatus = ""
1633
+        this.form.anticoagulant  = ""
1634
+        this.form.kalium = ""
1635
+        this.form.autunite = ""
1636
+        this.form.natrium = ""
1637
+        this.form.hour =""
1638
+        this.form.minute = ""
1639
+        this.form.befor_weight = ""
1640
+        this.form.after_weight = ""
1641
+        this.form.befor_pressure = ""
1642
+        this.form.template_summary_content = ""
1643
+        this.form.template_plan_content = ""
1644
+        this.form.template_inspection_content = ""
1645
+        this.form.admin_user_id = ""
1646
+        this.form.record_time = ""
1647
+        this.from.after_pressure = ""
1648
+        this.form.template_summary_id = ""
1649
+        this.form.template_plan_id = ""
1650
+        this.form.template_inspection_id = ""
1651
+        if(val == 1){
1652
+          this.start_date = this.start_year+"-"+"01"+"-"+"01"
1653
+          this.end_date = this.start_year +"-"+"03"+"-"+"31"
1654
+        }
1655
+        if(val == 2){
1656
+          this.start_date = this.start_year +"-"+ "04"+"-"+"01"
1657
+          this.end_date = this.start_year +"-"+ "06"+"-"+"30"
1658
+        }
1659
+        if(val == 3){
1660
+          this.start_date = this.start_year +"-"+ "07"+"-"+"01"
1661
+          this.end_date = this.start_year +"-"+ "09"+"-"+"30"
1662
+        }
1663
+        if(val == 4){
1664
+          this.start_date = this.start_year +"-"+ "09"+"-"+"01"
1665
+          this.end_date = this.start_year +"-"+ "12"+"-"+"31"
1666
+        }
1667
+        this.getlist()
1668
+      },
1669
+      getAnticoagulant(id){
1670
+        
1671
+        var name = ""
1672
+        for(let i=0;i<this.anticoagulantList.length;i++){
1673
+          if(id == this.anticoagulantList[i].id){
1674
+              name = this.anticoagulantList[i].name
1675
+          }
1676
+        }
1677
+        return name
1678
+      },
1679
+      changeYear(val){
1680
+        console.log("val2323323223",val)
1681
+        this.startYear = val+"-" + "30"
1682
+        this.getInspectionMajor()
1416
       }
1683
       }
1684
+
1417
     },
1685
     },
1418
   //  watch: {
1686
   //  watch: {
1419
   //   inspectionList: function() {
1687
   //   inspectionList: function() {

+ 62 - 13
src/xt_pages/user/templateSummaryPrint.vue View File

24
         <span style="font-weight:bold;">阶段小结概要:</span>  
24
         <span style="font-weight:bold;">阶段小结概要:</span>  
25
         <div style="margin-top:20px;">
25
         <div style="margin-top:20px;">
26
           <div style="display:flex;justify-content: space-between;">
26
           <div style="display:flex;justify-content: space-between;">
27
-            <span>干体重:{{patientList.patient.dry_weight}}(kg)</span>  
28
-            <span>共透析:{{patientList.patient.dialysis_count}}</span>  
29
-            <span>HD:{{patientList.hd_count}}</span>  
30
-            <span>HDF:{{patientList.hdf_count}}</span>  
31
-            <span>HP:{{patientList.hp_count}}</span>  
32
-            <span>其他:{{patientList.other_count}}</span> 
27
+            <span>干体重(kg):{{patientList.dry_weight}}</span>  
28
+            <span>共透析:{{patientList.dialysis_count}}</span>  
29
+            <span>HD:{{patientList.hd_count}}</span>  
30
+            <span>HDF:{{patientList.hdf_count}}</span>  
31
+            <span>HP:{{patientList.hp_count}}</span>  
32
+            <span>其他:{{patientList.other_count}}</span> 
33
           </div>
33
           </div>
34
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
34
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
35
             <span>透析器:{{patientList.dialzer_apparatus}}</span>  
35
             <span>透析器:{{patientList.dialzer_apparatus}}</span>  
36
-            <span>抗凝剂:{{patientList.anticoagulant}}</span>  
36
+            <span>抗凝剂:{{getAnticoagulant(patientList.anticoagulant)}}</span>  
37
             <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
37
             <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
38
             <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
38
             <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
39
           </div>
39
           </div>
40
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
40
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
41
-            <span>透前体重:{{patientList.befor_weight}}</span>
42
-            <span>透后体重:{{patientList.after_weight}}</span>
43
-            <span>透前血压:{{patientList.befor_pressure}}</span>
44
-            <span>透后血压:{{patientList.after_pressure}}</span>
41
+            <span>透前体重(kg):{{patientList.befor_weight}}</span>
42
+            <span>透后体重(kg):{{patientList.after_weight}}</span>
43
+            <span>透前血压(mmHg):{{patientList.befor_pressure}}</span>
44
+            <span>透后血压(mmHg):{{patientList.after_pressure}}</span>
45
           </div>
45
           </div>
46
         </div>
46
         </div>
47
       </div>
47
       </div>
253
       newTableAdvice: [],
253
       newTableAdvice: [],
254
       patientList:{},
254
       patientList:{},
255
       doctorList:[],
255
       doctorList:[],
256
+      anticoagulantList:[],
256
     }
257
     }
257
   },
258
   },
258
   methods: {
259
   methods: {
309
         if(response.data.state == 1){
310
         if(response.data.state == 1){
310
           var list = response.data.data.list
311
           var list = response.data.data.list
311
           console.log("listw23222323",list)
312
           console.log("listw23222323",list)
312
-          let arr = JSON.parse(list.template_inspection_content)
313
+          // let arr = JSON.parse(list.template_inspection_content)
314
+          // list.template_inspection_content = arr
315
+          var inspectlist = response.data.data.inspectlist
316
+          let arr = this.unique(inspectlist,'project_name')
313
           list.template_inspection_content = arr
317
           list.template_inspection_content = arr
314
           this.patientList = list
318
           this.patientList = list
315
           var doctorList = response.data.data.doctorList
319
           var doctorList = response.data.data.doctorList
350
       }
354
       }
351
       return name
355
       return name
352
     },
356
     },
353
-    
357
+   unique(data, key) {
358
+        let lastData = [];
359
+        data.forEach(item => {
360
+          let status = lastData.some(project_name => project_name[key] == item[key]);
361
+          console.log('status',status)
362
+          if (!status) {
363
+            // item.value0 = item.value;
364
+            let obj = {
365
+              project_name:'',
366
+              arr:[]
367
+            }
368
+            obj.project_name = item.project_name
369
+            obj.arr.push(item);
370
+            lastData.push(obj);
371
+            console.log('item',item)
372
+          } else {
373
+            lastData.forEach((project_name, index) => {
374
+              if (project_name[key] === item[key]) {
375
+                console.log('item222',item)
376
+                project_name.arr.push(item);
377
+              }
378
+            });
379
+          }
380
+        });
381
+        return lastData;
382
+      },
383
+      getAnticoagulant(id){
384
+        
385
+        var name = ""
386
+        for(let i=0;i<this.anticoagulantList.length;i++){
387
+          if(id == this.anticoagulantList[i].id){
388
+              name = this.anticoagulantList[i].name
389
+          }
390
+        }
391
+        return name
392
+      }
354
   },
393
   },
355
  
394
  
356
   created() {
395
   created() {
396
+     var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
397
+     const arrFour = []
398
+     Object.keys(anticoagulantsConfitOne).map((item, index) => {
399
+     if (index != 2) {
400
+        arrFour.push(anticoagulantsConfitOne[item])
401
+       }
402
+     })
403
+    this.anticoagulantList = arrFour
404
+    console.log("抗凝剂",this.anticoagulantList)
357
     var xtuser = this.$store.getters.xt_user
405
     var xtuser = this.$store.getters.xt_user
358
     this.orgname = xtuser.org.org_name
406
     this.orgname = xtuser.org.org_name
359
     var id = this.$route.query.id
407
     var id = this.$route.query.id
408
+    
360
     this.getTemplateSummaryPrintDetail(id)
409
     this.getTemplateSummaryPrintDetail(id)
361
     
410
     
362
   }
411
   }