XMLWAN 3 anni fa
parent
commit
843000df10

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

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

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

@@ -706,6 +706,21 @@ const global_config = {
706 706
         zongliang_unit: 'mg',
707 707
         gaimingcheng_unit: '',
708 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 726
     anticoagulants_set: {
@@ -1866,49 +1881,49 @@ const global_config = {
1866 1881
       id: 27,
1867 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 1928
     body_fluid: [{
1914 1929
       id: 1,

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

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

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

@@ -678,6 +678,21 @@
678 678
              </el-select>
679 679
             </el-form-item>
680 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 696
         <el-col :span="24" v-if="isShow('KT/V')">
682 697
             <el-form-item label="KT/V:">
683 698
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
@@ -853,11 +868,13 @@ export default {
853 868
         lapse:"",
854 869
         consciousness:"",
855 870
         fallrisk:"",
871
+        machine_run:"",
856 872
       },
857 873
       lapseList:[],
858 874
       leaveOfficeMethod:[],
859 875
       consciousnessList:[],
860
-      fallriskList:[]
876
+      fallriskList:[],
877
+      machineList:[],
861 878
     }
862 879
   },
863 880
   watch: {
@@ -1068,7 +1085,9 @@ export default {
1068 1085
       data["lapse"] = this.form.lapse
1069 1086
       data["consciousness"] = this.form.consciousness
1070 1087
       data["fallrisk"] = this.form.fallrisk
1088
+      data["machine_run"] = this.form.machine_run
1071 1089
       console.log("Paramsquery",data)
1090
+     
1072 1091
       postAssessmentAfterDislysis(ParamsQuery, data)
1073 1092
         .then(response => {
1074 1093
           this.loading = false
@@ -1350,6 +1369,8 @@ export default {
1350 1369
     this.leaveOfficeMethod = getDataConfig('hemodialysis','leave_office_method')
1351 1370
     this.consciousnessList = getDataConfig("hemodialysis","consciousness")
1352 1371
     this.fallriskList = getDataConfig("hemodialysis","fallrisk")
1372
+     this.machineList = getDataConfig("hemodialysis","machine_run")
1373
+     console.log("机器运行",this.machineList)
1353 1374
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1354 1375
     this.patientGoseOptions = this.$store.getters.patient_gose
1355 1376
     this.observationContentOptions = this.$store.getters.observation_content

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

@@ -2072,8 +2072,13 @@
2072 2072
         if (val > 2) {
2073 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 2082
           this.anticoagulant.weichi_unit = 'mg/h'
2078 2083
           this.anticoagulant.zongliang_unit = 'mg'
2079 2084
         }

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

@@ -168,6 +168,7 @@
168 168
                   template_id == 38 ||
169 169
                   template_id == 39 ||
170 170
                   template_id == 40 ||
171
+                  template_id == 41 ||
171 172
                   org_id == 9555)
172 173
             "
173 174
           >
@@ -212,6 +213,7 @@
212 213
                 template_id != 38 &&
213 214
                 template_id != 39 &&
214 215
                 template_id != 40 &&
216
+                template_id != 41 &&
215 217
                 org_id!=9555
216 218
             "
217 219
           >
@@ -229,7 +231,7 @@
229 231
             align="center"
230 232
             label="超滤率(ml/h)"
231 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 236
             <template slot-scope="scope">
235 237
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -240,7 +242,7 @@
240 242
             align="center"
241 243
             label="超滤率(L/h)"
242 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 247
             <template slot-scope="scope">
246 248
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -578,12 +580,12 @@
578 580
             </el-form-item>
579 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 584
             <el-form-item label="超滤率(ml/h)">
583 585
               <el-input v-model="form.ultrafiltration_rate"></el-input>
584 586
             </el-form-item>
585 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 589
             <el-form-item label="超滤率(L/h)">
588 590
               <el-input v-model="form.ultrafiltration_rate"></el-input>
589 591
             </el-form-item>
@@ -591,7 +593,7 @@
591 593
 
592 594
           <el-col
593 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 597
             <el-form-item label="超滤量(ml):">
596 598
               <el-input v-model="form.ultrafiltration_volume"></el-input>
597 599
             </el-form-item>
@@ -599,7 +601,7 @@
599 601
 
600 602
           <el-col
601 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 605
             <el-form-item label="超滤量(L):">
604 606
               <el-input v-model="form.ultrafiltration_volume"></el-input>
605 607
             </el-form-item>

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

@@ -14,10 +14,10 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 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 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 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 Vedi File

@@ -39,54 +39,74 @@
39 39
                         border highlight-current-row @current-change="changeCurrentRecordTwo"
40 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 44
                   <template slot-scope="scope">
45 45
                      {{scope.row.title}}
46 46
                   </template>
47 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 58
               </el-table>
49 59
             </el-col>
50 60
             <el-col :span="14">
51 61
               <div class="record_content_panel">
52 62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
53 63
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
-                <!-- <el-divider></el-divider> -->
55 64
                 <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
56 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 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 73
                    <br>
65 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 78
                   <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
68 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 82
                   <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
71 83
                   <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
72 84
                   <br>
73 85
                   <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
74 86
                   <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
75 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 92
                   <div>
79 93
                     <div v-for="item in editObj.template_inspection_content">
80 94
                     <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
81 95
                     <div style="display:flex;flex-wrap: wrap;">
82 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 104
                       </div>
85 105
                     </div>
86 106
                   </div>
87 107
                   </div>
88 108
                 </div>  
89
-                <!-- <el-divider></el-divider> -->
109
+               
90 110
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
91 111
               </div>
92 112
             </el-col>
@@ -110,9 +130,10 @@
110 130
                   <el-col :span="8">
111 131
                     <el-form-item label="阶段小结时间:">
112 132
                         <el-date-picker
133
+                            @change="changeStartYear"
113 134
                             v-model="form.start_year"
114 135
                             type="year"
115
-                            value-format="yyyy-MM-dd"
136
+                            value-format="yyyy"
116 137
                             placeholder="选择年">
117 138
                         </el-date-picker>
118 139
                     </el-form-item> 
@@ -128,7 +149,16 @@
128 149
                   
129 150
                   <el-col :span="8" v-if="form.radio == 1">
130 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 160
                       <el-date-picker
161
+                        @change="changeStartMonth"
132 162
                         value-format="MM"
133 163
                         v-model="form.start_month"
134 164
                         type="month"
@@ -138,7 +168,7 @@
138 168
                   </el-col>
139 169
                   <el-col :span="8" v-if="form.radio == 2">
140 170
                     <el-form-item>
141
-                       <el-select v-model="form.quarter" placeholder="请选择">
171
+                       <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
142 172
                         <el-option
143 173
                           v-for="item in timeType"
144 174
                           :key="item.id"
@@ -204,7 +234,7 @@
204 234
 
205 235
                     <el-col :span="8">
206 236
                      <el-form-item label="抗凝剂">
207
-                      <!-- <el-input v-model="form.anticoagulant"></el-input> -->
237
+                    
208 238
                        <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
209 239
                           <el-option :key="0" label="请选择" :value="0"></el-option>
210 240
                           <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
@@ -296,13 +326,19 @@
296 326
                   <el-row>
297 327
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
298 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 330
                      <div class="borderBox">
301 331
                        <div v-for="item in form.template_inspection_content">
302 332
                         <p>{{ item.project_name }}</p>
303 333
                         <div style="display:flex;flex-wrap: wrap;">
304 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 342
                           </div>
307 343
                         </div>
308 344
                       </div>
@@ -552,7 +588,13 @@
552 588
                         <p>{{ item.project_name }}</p>
553 589
                         <div style="display:flex;flex-wrap: wrap;">
554 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 598
                           </div>
557 599
                         </div>
558 600
                       </div>
@@ -604,11 +646,12 @@
604 646
                 <span>选择检验检查时间:</span>
605 647
                 <div>
606 648
                   <el-form-item
607
-                   label="年份:"
649
+                   label="时间:"
608 650
                    prop="startYear"
609 651
                    style="width:100%;"
610 652
                  >
611 653
                  <el-date-picker 
654
+                    @change="changeYear"
612 655
                     v-model="startYear" 
613 656
                     class="timePicker" 
614 657
                     type="month" 
@@ -640,14 +683,17 @@
640 683
                           backgroundColor: 'rgb(245, 247, 250)',
641 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 697
                         <el-table-column label="检验项目" align="center">
652 698
                           <template slot-scope="scope">
653 699
                             {{scope.row.project_name}}
@@ -674,6 +720,7 @@
674 720
                         </el-table-column>
675 721
                         <el-table-column label="结果" align="center">
676 722
                           <template slot-scope="scope">
723
+                            {{scope.row.project_name}} <span v-if="scope.row.unit!=''">[{{scope.row.unit}}]</span>
677 724
                            <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
678 725
                              {{scope.row.inspect_value}}↓
679 726
                           </span> 
@@ -733,6 +780,7 @@
733 780
   import { getDataConfig } from '@/utils/data'
734 781
   import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
735 782
  import MsgTip from '../dialysis/details/dialog/MsgTip'
783
+ 
736 784
   const moment = require('moment')
737 785
   export default {
738 786
     name: 'templateSummary',
@@ -795,7 +843,7 @@
795 843
           kalium:"",
796 844
           autunite:"",
797 845
           natrium:"",
798
-          houer:"",
846
+          hour:"",
799 847
           minute:"",
800 848
           befor_weight:"",
801 849
           after_weight:"",
@@ -819,14 +867,28 @@
819 867
           {id:3,name:"第三季度"},
820 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 884
         options:[],
823 885
         dialogVisibleInspection:false,
824 886
         editDialogVisible:false,
825 887
         edit_show_dialog:false,
826 888
         InspectionMajor:[],
827 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 892
         tableList:[],
831 893
         tableData:[],
832 894
         inspectDataList:[],
@@ -842,6 +904,12 @@
842 904
         stockType:[],
843 905
         summaryList:[],
844 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 915
     created() {
@@ -852,6 +920,7 @@
852 920
       var nowDate = new Date()
853 921
       var nowYear = nowDate.getFullYear()
854 922
       var nowMonth = nowDate.getMonth() + 1
923
+      
855 924
       var nowDay = nowDate.getDate()
856 925
       this.end_time =
857 926
         nowYear +
@@ -880,7 +949,8 @@
880 949
 
881 950
       this.anticoagulantList = arrFour
882 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 954
       this.getlist()
885 955
       this.getInspectionMajor()
886 956
       this.getTemplateSummaryList()
@@ -897,6 +967,16 @@
897 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 980
       showEdit(){
901 981
        
902 982
         this.getCurrentRecordDetailOne()
@@ -911,18 +991,21 @@
911 991
 
912 992
       },
913 993
       changeCurrentRecord(val){
994
+       
914 995
         this.getInspectionDetai(val)
915 996
       },
916 997
       selectionChangeOne(val){
917
-        console.log("val23232323",val)
918
-       
998
+        // console.log("hhhhhhhhh",val)
919 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 1010
       print(){
928 1011
         this.$router.push({path:"/patient/patient/templateSummary/print?id="+this.form.id})
@@ -935,25 +1018,6 @@
935 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 1022
       didSelectionChange(){
959 1023
 
@@ -971,14 +1035,14 @@
971 1035
           start_month:this.getTime(this.form.start_month),
972 1036
           quarter:this.form.quarter,
973 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 1042
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
977 1043
         getInitDataList(params).then(response=>{
978 1044
           if(response.data.state == 1){
979 1045
              var prescription_list =  response.data.data.prescription_list
980
-             console.log("prescription_list",prescription_list)
981
-           
982 1046
              this.form.dialzer_apparatus = prescription_list.dialysis_dialyszers
983 1047
              this.form.perfusion_apparatus = prescription_list.dialysis_irrigation
984 1048
              this.form.anticoagulant = prescription_list.anticoagulant
@@ -988,17 +1052,18 @@
988 1052
              this.form.natrium = prescription_list.sodium
989 1053
              this.form.autunite = prescription_list.calcium
990 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 1057
              this.form.dry_weight = beforlist.dry_weight
994 1058
              var afterlist =  response.data.data.after_list
995
-             console.log("afterlist",afterlist)
1059
+             console.log("透后数据232332323232",afterlist)
996 1060
              this.form.after_weight = afterlist.weight_after
997 1061
              this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
998 1062
              this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
999 1063
              var modelist = response.data.data.modelist
1064
+             console.log("modelist",modelist)
1000 1065
              var docList = response.data.data.docList
1001
-             console.log("doctlist",docList)
1066
+            //  console.log("doctlist",docList)
1002 1067
              this.docList = docList
1003 1068
              var stockType = response.data.data.stockType
1004 1069
              var arr = []
@@ -1019,15 +1084,15 @@
1019 1084
               }
1020 1085
             }
1021 1086
             this.dialyzerList = dialyzator
1022
-            console.log("arrtt2323232332232323",arrTwo)
1087
+            // console.log("arrtt2323232332232323",arrTwo)
1023 1088
             for(let i=0;i<arrTwo.length;i++){
1024 1089
               for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1025 1090
                   irrigation.push(arrTwo[i].GoodInfo[j])
1026 1091
               }
1027 1092
             }
1028 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 1096
              var count = ""
1032 1097
              var total_count = 0
1033 1098
              for(let i=0;i<modelist.length;i++){
@@ -1048,13 +1113,14 @@
1048 1113
 
1049 1114
              }
1050 1115
              this.form.other_count = count
1116
+             
1051 1117
              this.form.dialysis_count = total_count
1052
-             console.log("modelist",modelist)
1118
+            //  console.log("modelist",modelist)
1053 1119
              var summaryList = response.data.data.summaryList
1054
-             console.log("summaryList",summaryList)
1120
+            //  console.log("summaryList",summaryList)
1055 1121
              this.summaryList = summaryList
1056 1122
              var planList = response.data.data.planList
1057
-             console.log("planlist",planList)
1123
+            //  console.log("planlist",planList)
1058 1124
              this.planList = planList
1059 1125
           }
1060 1126
        })
@@ -1066,17 +1132,19 @@
1066 1132
 
1067 1133
       //获取大项数据来源
1068 1134
       getInspectionMajor(){
1135
+          console.log("start_year",this.startYear)
1069 1136
           var params = {
1070
-            other_start_time:this.getTime(this.startYear),
1137
+            other_start_time:this.startYear,
1071 1138
             patient_id:this.patient_id,
1072 1139
           }
1073
-        console.log("params",params)
1140
+         console.log("开始数据",params)
1074 1141
         getInspectionMajorItem(params).then(response=>{
1075 1142
           if(response.data.state == 1){
1076 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 1146
             this.tableList = list
1079
-            // this.$refs.single_table.setCurrentRow(this.tableList[0])
1147
+           
1080 1148
           }
1081 1149
         })
1082 1150
       },
@@ -1087,23 +1155,24 @@
1087 1155
           patient_id:val.patient_id,
1088 1156
           inspect_date:val.inspect_date,
1089 1157
         }
1090
-        console.log("param2233233223",params)
1158
+        // console.log("param2233233223",params)
1091 1159
        getInspectionDetail(params).then(response=>{
1092 1160
           if(response.data.state ==1){
1093 1161
             var list = response.data.data.list
1094
-            console.log("详情222",list)
1162
+            // console.log("详情222",list)
1163
+           
1095 1164
             this.tableData = list
1096 1165
           }
1097 1166
        })
1098 1167
       },
1099 1168
       selectionChange(val){
1100
-        console.log("val233223",val)
1169
+        // console.log("val233223",val)
1101 1170
         selectionChange().then(response=>{
1102 1171
 
1103 1172
         })
1104 1173
       },
1105 1174
       getInspectionItemList(val){
1106
-       
1175
+        // console.log("中国龚23232323232332",val)
1107 1176
        for(let i=0;i<val.length;i++){
1108 1177
         this.projectList.push(val[i].project_id)
1109 1178
         this.inspectDataList.push(val[i].inspect_date)
@@ -1113,23 +1182,20 @@
1113 1182
       toContent(){
1114 1183
       
1115 1184
          var str = this.projectList.join(",")
1185
+         this.projectStr = str
1116 1186
          var inspe_date = this.inspectDataList.join(",")
1187
+         this.projectIndate = inspe_date
1117 1188
          var params = {
1118 1189
            ids:str,
1119 1190
            inspect_date:inspe_date,
1120 1191
            patient_id:this.patient_id,
1121 1192
          }
1122
-         console.log("params",params)
1193
+        //  console.log("params",params)
1123 1194
         getInspectionItemList(params).then(response=>{
1124 1195
            if(response.data.state == 1){
1125 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 1197
             let arr = this.unique(list,'project_name')
1132
-            console.log("选择检验检查",arr)
1198
+            // console.log("选择检验检查",arr)
1133 1199
            
1134 1200
             this.form.template_inspection_content = arr
1135 1201
             this.dialogVisibleInspection = false
@@ -1139,10 +1205,56 @@
1139 1205
         })  
1140 1206
       },
1141 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 1255
          var params = {
1144 1256
             title:this.form.title,
1145
-            dry_weight:parseInt(this.form.dry_weight),
1257
+            dry_weight:this.form.dry_weight.toString(),
1146 1258
             dialysis_count:parseInt(this.form.dialysis_count),
1147 1259
             hd_count:parseInt(this.form.hd_count),
1148 1260
             hdf_count:parseInt(this.form.hdf_count),
@@ -1151,31 +1263,38 @@
1151 1263
             dialzer_apparatus:this.form.dialzer_apparatus,
1152 1264
             perfusion_apparatus:this.form.perfusion_apparatus,
1153 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 1269
             hour:parseInt(this.form.hour),
1158 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 1274
             template_summary_content:this.form.template_summary_content,
1163 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 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 1279
             after_pressure:this.form.after_pressure,
1168 1280
             template_summary_id:this.form.template_summary_id,
1169 1281
             template_summary_content:this.form.template_summary_content,
1170 1282
             template_plan_id:this.form.template_plan_id,
1171 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 1293
         saveCreation(params).then(response=>{
1176 1294
            if(response.data.state ==1){
1177 1295
              var summary =  response.data.data.summary
1178
-             console.log("summary",summary)
1296
+            //  console.log("summary",summary)
1297
+             this.getTemplateSummaryList()
1179 1298
              this.$message.success("保存成功!");
1180 1299
              this.show_dialog = false
1181 1300
              this.form.title = ""
@@ -1210,8 +1329,11 @@
1210 1329
       },
1211 1330
       getTemplateSummaryList(){
1212 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 1337
         getTemplateSummaryList(params).then(response=>{
1216 1338
            if(response.data.state ==1){
1217 1339
               var list = response.data.data.list
@@ -1228,8 +1350,10 @@
1228 1350
          getTemplateSummaryDetail(params).then(response=>{
1229 1351
            if(response.data.state == 1){
1230 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 1357
               list.template_inspection_content = arr
1234 1358
               this.editObj = list
1235 1359
 
@@ -1293,7 +1417,9 @@
1293 1417
          getTemplateSummaryDetail(params).then(response=>{
1294 1418
            if(response.data.state == 1){
1295 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 1423
               this.edit_show_dialog = true
1298 1424
               this.form.title = list.title
1299 1425
               this.form.id = list.id
@@ -1316,11 +1442,12 @@
1316 1442
                this.form.natrium =list.natrium
1317 1443
                this.form.perfusion_apparatus= list.perfusion_apparatus
1318 1444
                this.form.record_time = this.getTime(list.record_time)
1319
-               this.form.template_inspection_content = list.template_inspection_content
1320 1445
                this.form.template_inspection_id = list.template_inspection_id
1321 1446
                this.form.template_plan_content = list.template_plan_content
1322 1447
                this.form.template_summary_content =list.template_summary_content
1323 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,7 +1476,7 @@
1349 1476
         var params = {
1350 1477
             id:this.form.id,
1351 1478
             title:this.form.title,
1352
-            dry_weight:parseInt(this.form.dry_weight),
1479
+            dry_weight:this.form.dry_weight.toString(),
1353 1480
             dialysis_count:parseInt(this.form.dialysis_count),
1354 1481
             hd_count:parseInt(this.form.hd_count),
1355 1482
             hdf_count:parseInt(this.form.hdf_count),
@@ -1358,28 +1485,28 @@
1358 1485
             dialzer_apparatus:this.form.dialzer_apparatus,
1359 1486
             perfusion_apparatus:this.form.perfusion_apparatus,
1360 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 1491
             hour:parseInt(this.form.hour),
1365 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 1496
             template_summary_content:this.form.template_summary_content,
1370 1497
             template_plan_content:this.form.template_plan_content,
1371
-            template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1372 1498
             admin_user_id:this.form.admin_user_id,
1373 1499
             record_time:this.form.record_time,
1374 1500
             after_pressure:this.form.after_pressure,
1375 1501
             template_summary_id:this.form.template_summary_id,
1376
-            template_summary_content:this.form.template_summary_content,
1377 1502
             template_plan_id:this.form.template_plan_id,
1378 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 1508
          console.log("parawm232323223",params)
1382
-
1509
+        
1383 1510
         UpdateTemplateSummary(params).then(response=>{
1384 1511
           if(response.data.state == 1){
1385 1512
             var list = response.data.data.list
@@ -1392,9 +1519,7 @@
1392 1519
         let lastData = [];
1393 1520
         data.forEach(item => {
1394 1521
           let status = lastData.some(project_name => project_name[key] == item[key]);
1395
-          console.log('status',status)
1396 1522
           if (!status) {
1397
-            // item.value0 = item.value;
1398 1523
             let obj = {
1399 1524
               project_name:'',
1400 1525
               arr:[]
@@ -1402,18 +1527,161 @@
1402 1527
             obj.project_name = item.project_name
1403 1528
             obj.arr.push(item);
1404 1529
             lastData.push(obj);
1405
-            console.log('item',item)
1406 1530
           } else {
1407 1531
             lastData.forEach((project_name, index) => {
1408 1532
               if (project_name[key] === item[key]) {
1409
-                console.log('item222',item)
1410 1533
                 project_name.arr.push(item);
1411 1534
               }
1412 1535
             });
1413 1536
           }
1414 1537
         });
1415 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 1686
   //  watch: {
1419 1687
   //   inspectionList: function() {

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

@@ -24,24 +24,24 @@
24 24
         <span style="font-weight:bold;">阶段小结概要:</span>  
25 25
         <div style="margin-top:20px;">
26 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 33
           </div>
34 34
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
35 35
             <span>透析器:{{patientList.dialzer_apparatus}}</span>  
36
-            <span>抗凝剂:{{patientList.anticoagulant}}</span>  
36
+            <span>抗凝剂:{{getAnticoagulant(patientList.anticoagulant)}}</span>  
37 37
             <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
38 38
             <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
39 39
           </div>
40 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 45
           </div>
46 46
         </div>
47 47
       </div>
@@ -253,6 +253,7 @@ export default {
253 253
       newTableAdvice: [],
254 254
       patientList:{},
255 255
       doctorList:[],
256
+      anticoagulantList:[],
256 257
     }
257 258
   },
258 259
   methods: {
@@ -309,7 +310,10 @@ export default {
309 310
         if(response.data.state == 1){
310 311
           var list = response.data.data.list
311 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 317
           list.template_inspection_content = arr
314 318
           this.patientList = list
315 319
           var doctorList = response.data.data.doctorList
@@ -350,13 +354,58 @@ export default {
350 354
       }
351 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 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 405
     var xtuser = this.$store.getters.xt_user
358 406
     this.orgname = xtuser.org.org_name
359 407
     var id = this.$route.query.id
408
+    
360 409
     this.getTemplateSummaryPrintDetail(id)
361 410
     
362 411
   }