XMLWAN преди 5 години
родител
ревизия
609a57931c

+ 57 - 5
src/api/manage.js Целия файл

@@ -368,7 +368,11 @@ export function SaveRepair(id, data) {
368 368
   })
369 369
 }
370 370
 
371
-export function getAllRepair(params) {
371
+export function getAllRepair(limit, page) {
372
+  const params = {
373
+    limit: limit,
374
+    page: page
375
+  }
372 376
   return request({
373 377
     url: '/api/manage/getallrepair',
374 378
     method: 'Get',
@@ -561,7 +565,7 @@ export function getPatientDetail(id, params) {
561 565
   })
562 566
 }
563 567
 
564
-export function changeRun(id,data) {
568
+export function changeRun(id, data) {
565 569
   return request({
566 570
     url: '/api/manage/changrun?id=' + id,
567 571
     method: 'post',
@@ -571,8 +575,56 @@ export function changeRun(id,data) {
571 575
 
572 576
 export function getRemanderData(params) {
573 577
   return request({
574
-    url:'/api/manage/getremanderdata',
575
-    method:'get',
576
-    params:params
578
+    url: '/api/manage/getremanderdata',
579
+    method: 'get',
580
+    params: params
581
+  })
582
+}
583
+
584
+export function openDelete(id, params) {
585
+  return request({
586
+    url: '/api/manage/opendelete?id=' + id,
587
+    method: 'delete',
588
+    params: params
589
+  })
590
+}
591
+
592
+export function DeleteUserLogin(id, params) {
593
+  return request({
594
+    url: '/api/manage/deleteuserlogin?id=' + id,
595
+    method: 'delete',
596
+    params: params
597
+  })
598
+}
599
+
600
+export function DeleteCultrues(id, params) {
601
+  return request({
602
+    url: '/api/manage/deletecultrues?id=' + id,
603
+    method: 'delete',
604
+    params: params
605
+  })
606
+}
607
+
608
+export function DeleteDialystates(id, params) {
609
+  return request({
610
+    url: '/api/manage/deletedialystates?id=' + id,
611
+    method: 'delete',
612
+    params: params
613
+  })
614
+}
615
+
616
+export function DeleteIons(id, params) {
617
+  return request({
618
+    url: '/api/manage/deleteions?id=' + id,
619
+    method: 'delete',
620
+    params: params
621
+  })
622
+}
623
+
624
+export function DeleteRepairs(id, params) {
625
+  return request({
626
+    url: '/api/manage/deleterepairs?id=' + id,
627
+    method: 'delete',
628
+    params: params
577 629
   })
578 630
 }

+ 0 - 9
src/xt_pages/dialysis/details/DialysisPrescription.vue Целия файл

@@ -67,15 +67,6 @@
67 67
           <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>
68 68
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{'ml'}}</span>
69 69
         </li>
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79 70
       </ul>
80 71
 
81 72
 

+ 7 - 36
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

@@ -863,22 +863,14 @@
863 863
     methods: {
864 864
       getDryWeight() {
865 865
         if (this.dry_weight != null && this.dry_weight.id > 0) {
866
-
867 866
           return this.dry_weight.dry_weight
868
-
869 867
         } else {
870
-
871 868
           if (this.last_predialysis != null && this.last_predialysis.id > 0) {
872
-
873 869
             return this.last_predialysis.dry_weight
874
-
875 870
           } else {
876
-
877 871
             return ''
878 872
           }
879
-
880 873
         }
881
-
882 874
       },
883 875
       getLastAfterWeight(record) {
884 876
         if (record != null && record.id > 0) {
@@ -918,7 +910,6 @@
918 910
         }
919 911
       },
920 912
       setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis) {
921
-
922 913
         this.treatment_mode = this.$store.getters.treatment_mode
923 914
         this.perfusion_apparatus = getDataConfig('hemodialysis', 'perfusion_apparatus')
924 915
         this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
@@ -934,21 +925,19 @@
934 925
         var date = this.$route.query && this.$route.query.date
935 926
         this.record_date = uParseTime(date, '{y}-{m}-{d}')
936 927
 
937
-        if (this.prescription != null && typeof (this.prescription.id) != 'undefined' && this.prescription.id > 0) {
928
+        if (this.prescription != null && typeof (this.prescription.id) !== 'undefined' && this.prescription.id > 0) {
938 929
           for (const key in this.prescription) {
939 930
             this.dialysisPrescription[key] = this.prescription[key]
940 931
           }
941
-        } else if (this.solution != null && typeof this.solution.id != 'undefined' && this.solution.id > 0) {
932
+        } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
942 933
           for (const key in this.solution) {
943 934
             this.dialysisPrescription[key] = this.solution[key]
944 935
           }
945
-        } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id != 'undefined' && lastDialysisPrescribe.id > 0) {
946
-
936
+        } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
947 937
           for (const key in lastDialysisPrescribe) {
948 938
             this.dialysisPrescription[key] = lastDialysisPrescribe[key]
949 939
           }
950 940
         } else {
951
-
952 941
           this.dialysisPrescription.mode_id = schedual.mode_id
953 942
         }
954 943
 
@@ -962,7 +951,6 @@
962 951
           return false
963 952
         }
964 953
         this.anticoagulant = this.anticoagulantsConfit[thismode]
965
-
966 954
       },
967 955
       menuMsgTip: function() {
968 956
         this.msgtip_visibility = false
@@ -2045,8 +2033,7 @@
2045 2033
         }
2046 2034
       },
2047 2035
       changePrescription(id) {
2048
-
2049
-        let ParamsQuery = {}
2036
+        const ParamsQuery = {}
2050 2037
         ParamsQuery['patient_id'] = this.$route.query.patient_id
2051 2038
         ParamsQuery['mode_id'] = id
2052 2039
         GetSolution(ParamsQuery).then(response => {
@@ -2056,20 +2043,20 @@
2056 2043
           } else {
2057 2044
             this.$message.success('切换成功')
2058 2045
             if (response.data.data.solution != null) {
2059
-              for (const key in response.data.data.solution) { //长期处方不为空
2046
+              for (const key in response.data.data.solution) { // 长期处方不为空
2060 2047
                 if (key != 'target_ultrafiltration') {
2061 2048
                   this.dialysisPrescription[key] = response.data.data.solution[key]
2062 2049
                 }
2063 2050
               }
2064 2051
             } else {
2065
-              if (response.data.data.prescription != null) {  //临时处方不为空
2052
+              if (response.data.data.prescription != null) { // 临时处方不为空
2066 2053
                 for (const key in response.data.data.prescription) {
2067 2054
                   if (key != 'target_ultrafiltration') {
2068 2055
                     this.dialysisPrescription[key] = response.data.data.prescription[key]
2069 2056
                   }
2070 2057
                 }
2071 2058
               } else {
2072
-                for (const key in this.dialysisPrescription) { //临时处方为空
2059
+                for (const key in this.dialysisPrescription) { // 临时处方为空
2073 2060
                   if (key != 'target_ultrafiltration') {
2074 2061
                     this.dialysisPrescription[key] = ''
2075 2062
                   }
@@ -2082,9 +2069,7 @@
2082 2069
           if (this.dialysisPrescription.dialysis_duration_hour === '' || this.dialysisPrescription.dialysis_duration_minute === '') {
2083 2070
             this.timeValue = ''
2084 2071
             this.time = '03:00'
2085
-
2086 2072
           } else {
2087
-
2088 2073
             this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
2089 2074
             this.time = (this.dialysisPrescription.dialysis_duration_hour > 10 ? this.dialysisPrescription.dialysis_duration_hour : '0' + this.dialysisPrescription.dialysis_duration_hour) + ':' + (this.dialysisPrescription.dialysis_duration_minute > 10 ? this.dialysisPrescription.dialysis_duration_minute : '0' + this.dialysisPrescription.dialysis_duration_minute)
2090 2075
           }
@@ -2103,7 +2088,6 @@
2103 2088
         this.isVisibility = false
2104 2089
         this.msgtip_visibility = true
2105 2090
       }, cancleMsg() {
2106
-
2107 2091
         this.isVisibility = true
2108 2092
         this.msgtip_visibility = false
2109 2093
       }
@@ -2123,11 +2107,8 @@
2123 2107
 
2124 2108
         if (this.dialysisPrescription.dialysis_duration_hour == '') {
2125 2109
           dialysis_duration_hour = 0
2126
-
2127 2110
         } else {
2128
-
2129 2111
           dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2130
-
2131 2112
         }
2132 2113
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
2133 2114
 
@@ -2153,11 +2134,8 @@
2153 2134
 
2154 2135
         if (this.dialysisPrescription.dialysis_duration_hour == '') {
2155 2136
           dialysis_duration_hour = 0
2156
-
2157 2137
         } else {
2158
-
2159 2138
           dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2160
-
2161 2139
         }
2162 2140
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
2163 2141
 
@@ -2171,7 +2149,6 @@
2171 2149
         }
2172 2150
       },
2173 2151
       'dialysisPrescription.anticoagulant_shouji': function() {
2174
-
2175 2152
         let dialysis_duration_minute = 0
2176 2153
         let dialysis_duration_hour = 0
2177 2154
         let duration = 0
@@ -2182,11 +2159,8 @@
2182 2159
         }
2183 2160
         if (this.dialysisPrescription.dialysis_duration_hour == '') {
2184 2161
           dialysis_duration_hour = 0
2185
-
2186 2162
         } else {
2187
-
2188 2163
           dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2189
-
2190 2164
         }
2191 2165
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
2192 2166
         this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
@@ -2211,11 +2185,8 @@
2211 2185
 
2212 2186
         if (this.dialysisPrescription.dialysis_duration_hour == '') {
2213 2187
           dialysis_duration_hour = 0
2214
-
2215 2188
         } else {
2216
-
2217 2189
           dialysis_duration_hour = this.dialysisPrescription.dialysis_duration_hour
2218
-
2219 2190
         }
2220 2191
         duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
2221 2192
 

+ 167 - 36
src/xt_pages/management/components/QualityForm.vue Целия файл

@@ -119,7 +119,7 @@
119 119
                 size="mini"
120 120
                 type="primary"
121 121
                 icon="el-icon-delete"
122
-                @click="BatchDelete(scope.row, scope.$index)"
122
+                @click="DeleteCultrues(scope.row.id, scope.$index)"
123 123
               ></el-button>
124 124
             </el-tooltip>
125 125
           </template>
@@ -185,7 +185,7 @@
185 185
                 size="mini"
186 186
                 type="primary"
187 187
                 icon="el-icon-delete"
188
-                @click="BatchDeleteOne(scope.row, scope.$index)"
188
+                @click="DeleteDialystates(scope.row.id, scope.$index)"
189 189
               ></el-button>
190 190
             </el-tooltip>
191 191
           </template>
@@ -227,25 +227,25 @@
227 227
           <template slot-scope="scope">{{getTime(scope.row.date_reportc)}}</template>
228 228
         </el-table-column>
229 229
         <el-table-column prop="address" label="检测结果" width="80" align="center">
230
-          <el-table-column prop="address" label="实际Na+(mmol/L)" width="80" align="center">
230
+          <el-table-column prop="address" label="实际Na(mmol/L)" width="80" align="center">
231 231
             <template slot-scope="scope">{{scope.row.actual_na}}</template>
232 232
           </el-table-column>
233
-          <el-table-column prop="address" label="配方Na+(mmol/L)" width="80" align="center">
233
+          <el-table-column prop="address" label="配方Na⁺(mmol/L)" width="90" align="center">
234 234
             <template slot-scope="scope">{{scope.row.actual_pna}}</template>
235 235
           </el-table-column>
236
-          <el-table-column prop="address" label="K+(mmol/L)" width="80" align="center">
236
+          <el-table-column prop="address" label="K(mmol/L)" width="80" align="center">
237 237
             <template slot-scope="scope">{{scope.row.actual_k}}</template>
238 238
           </el-table-column>
239
-          <el-table-column prop="address" label="Ca2+(mmol/L)" width="80" align="center">
239
+          <el-table-column prop="address" label="Ca2(mmol/L)" width="80" align="center">
240 240
             <template slot-scope="scope">{{scope.row.actual_ca}}</template>
241 241
           </el-table-column>
242
-          <el-table-column prop="address" label="Cl-(mmol/L)" width="80" align="center">
242
+          <el-table-column prop="address" label="Cl¯(mmol/L)" width="80" align="center">
243 243
             <template slot-scope="scope">{{scope.row.actual_ci}}</template>
244 244
           </el-table-column>
245
-          <el-table-column prop="address" label="HCO3-(mmol/L)" width="80" align="center">
245
+          <el-table-column prop="address" label="HCO3¯(mmol/L)" width="80" align="center">
246 246
             <template slot-scope="scope">{{scope.row.actual_hco}}</template>
247 247
           </el-table-column>
248
-          <el-table-column prop="address" label="Mg2+(mmol/L)" width="80" align="center">
248
+          <el-table-column prop="address" label="Mg2(mmol/L)" width="80" align="center">
249 249
             <template slot-scope="scope">{{scope.row.actual_mg}}</template>
250 250
           </el-table-column>
251 251
           <el-table-column prop="address" label="PH(mmol/L)" width="80" align="center">
@@ -271,7 +271,7 @@
271 271
                 size="mini"
272 272
                 type="primary"
273 273
                 icon="el-icon-delete"
274
-                @click="BatchDeleteTwo(scope.row, scope.$index)"
274
+                @click="DeleteIons(scope.row.id, scope.$index)"
275 275
               ></el-button>
276 276
             </el-tooltip>
277 277
           </template>
@@ -558,41 +558,41 @@
558 558
           </el-row>
559 559
           <el-row>
560 560
             <el-col :span="8">
561
-              <el-form-item label="实际Na+(mmol/L):">
561
+              <el-form-item label="实际Na(mmol/L):">
562 562
                 <el-input style="width:100px" v-model="ionForm.actual_na"></el-input>
563 563
               </el-form-item>
564 564
             </el-col>
565 565
             <el-col :span="8">
566
-              <el-form-item label="配方Na+(mmol/L):">
566
+              <el-form-item label="配方Na(mmol/L):">
567 567
                 <el-input style="width:100px" v-model="ionForm.actual_pna"></el-input>
568 568
               </el-form-item>
569 569
             </el-col>
570 570
             <el-col :span="8">
571
-              <el-form-item label="K+ (mmol/L):">
571
+              <el-form-item label="K (mmol/L):">
572 572
                 <el-input style="width:100px" v-model="ionForm.actual_k"></el-input>
573 573
               </el-form-item>
574 574
             </el-col>
575 575
           </el-row>
576 576
           <el-row>
577 577
             <el-col :span="8">
578
-              <el-form-item label="Ca2+(mmol/L):">
578
+              <el-form-item label="Ca2(mmol/L):">
579 579
                 <el-input style="width:100px" v-model="ionForm.actual_ca"></el-input>
580 580
               </el-form-item>
581 581
             </el-col>
582 582
             <el-col :span="8">
583
-              <el-form-item label="CI-(mmol/L):">
583
+              <el-form-item label="CI¯(mmol/L):">
584 584
                 <el-input style="width:100px" v-model="ionForm.actual_ci"></el-input>
585 585
               </el-form-item>
586 586
             </el-col>
587 587
             <el-col :span="8">
588
-              <el-form-item label="HCO3-(mmol/L):">
588
+              <el-form-item label="HCO3¯(mmol/L):">
589 589
                 <el-input style="width:100px" v-model="ionForm.actual_hco"></el-input>
590 590
               </el-form-item>
591 591
             </el-col>
592 592
           </el-row>
593 593
           <el-row>
594 594
             <el-col :span="8">
595
-              <el-form-item label="Mg2+(mmol/L):">
595
+              <el-form-item label="Mg2(mmol/L):">
596 596
                 <el-input style="width:100px" v-model="ionForm.actual_mg"></el-input>
597 597
               </el-form-item>
598 598
             </el-col>
@@ -639,7 +639,10 @@ import {
639 639
   EditIon,
640 640
   UpdateIon,
641 641
   DeleteIon,
642
-  queryTable
642
+  queryTable,
643
+  DeleteCultrues,
644
+  DeleteDialystates,
645
+  DeleteIons
643 646
 } from '@/api/manage'
644 647
 import { uParseTime } from '@/utils/tools'
645 648
 export default {
@@ -941,6 +944,9 @@ export default {
941 944
       }
942 945
     },
943 946
     getTime(time) {
947
+      if (time < 0) {
948
+        return ''
949
+      }
944 950
       return uParseTime(time, '{y}-{m}-{d}')
945 951
     },
946 952
     getAllOrganization() {
@@ -970,11 +976,13 @@ export default {
970 976
       EditCulture(id, userid).then(response => {
971 977
         if (response.data.state === 1) {
972 978
           var culture = response.data.data.culture
979
+
973 980
           console.log('禁用', culture)
974 981
           var role = response.data.data.role
975 982
           console.log('role', role)
976 983
           this.form.id = culture.id
977
-          this.form.date = uParseTime(culture.speling_date, '{y}-{m}-{d}')
984
+          // eslint-disable-next-line no-undef
985
+          this.form.date = this.getTime(culture.speling_date)
978 986
           this.form.specimen = culture.specimen
979 987
 
980 988
           if (this.form.specimen === 0) {
@@ -1010,10 +1018,7 @@ export default {
1010 1018
           this.form.sampling_locationa = culture.sampling_locationa
1011 1019
           this.form.detection_unit = culture.detection_unit
1012 1020
           this.form.sampler = culture.sampler
1013
-          this.form.reporting_date = uParseTime(
1014
-            culture.reporting_date,
1015
-            '{y}-{m}-{d}'
1016
-          )
1021
+          this.form.reporting_date = this.getTime(culture.reporting_date)
1017 1022
           this.form.detection_result = culture.detection_result
1018 1023
         }
1019 1024
       })
@@ -1068,6 +1073,25 @@ export default {
1068 1073
         })
1069 1074
       })
1070 1075
     },
1076
+    DeleteCultrues(id, index) {
1077
+      this.$confirm(
1078
+        '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
1079
+        '删除提示',
1080
+        {
1081
+          dangerouslyUseHTMLString: true,
1082
+          confirmButtonText: '确定',
1083
+          cancelButtonText: '取消',
1084
+          type: 'warning'
1085
+        }
1086
+      ).then(() => {
1087
+        DeleteCultrues(id, index).then(response => {
1088
+          if (response.data.state === 1) {
1089
+            var msg = response.data.data.msg
1090
+            this.tableData.splice(index, 1)
1091
+          }
1092
+        })
1093
+      })
1094
+    },
1071 1095
     EditDialyState(id) {
1072 1096
       this.dialogVisibleTwo = true
1073 1097
       EditDialyState(id).then(response => {
@@ -1075,10 +1099,8 @@ export default {
1075 1099
           var dialysate = response.data.data.dialysate
1076 1100
           console.log('dialysate', dialysate)
1077 1101
           this.diaForm.id = dialysate.id
1078
-          this.diaForm.sampling_date = uParseTime(
1079
-            dialysate.sampling_date,
1080
-            '{y}-{m}-{d}'
1081
-          )
1102
+          // eslint-disable-next-line no-undef
1103
+          this.diaForm.sampling_date = this.getTime(dialysate.sampling_date)
1082 1104
           this.diaForm.specimenb = dialysate.specimenb
1083 1105
           if (this.diaForm.specimenb === 0) {
1084 1106
             this.disable = false
@@ -1112,10 +1134,7 @@ export default {
1112 1134
           this.diaForm.sampling_locationb = dialysate.sampling_locationb
1113 1135
           this.diaForm.detection_unit = dialysate.detection_unit
1114 1136
           this.diaForm.samplerb = dialysate.samplerb
1115
-          this.diaForm.reporting_dateb = uParseTime(
1116
-            dialysate.reporting_dateb,
1117
-            '{y}-{m}-{d}'
1118
-          )
1137
+          this.diaForm.reporting_dateb = this.getTime(dialysate.reporting_dateb)
1119 1138
           this.diaForm.detection_resultb = dialysate.detection_resultb
1120 1139
         }
1121 1140
       })
@@ -1170,22 +1189,41 @@ export default {
1170 1189
         })
1171 1190
       })
1172 1191
     },
1192
+    DeleteDialystates(id, index) {
1193
+      this.$confirm(
1194
+        '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
1195
+        '删除提示',
1196
+        {
1197
+          dangerouslyUseHTMLString: true,
1198
+          confirmButtonText: '确定',
1199
+          cancelButtonText: '取消',
1200
+          type: 'warning'
1201
+        }
1202
+      ).then(() => {
1203
+        DeleteDialystates(id, index).then(response => {
1204
+          if (response.data.state === 1) {
1205
+            var msg = response.data.data.msg
1206
+            this.table.splice(index, 1)
1207
+          }
1208
+        })
1209
+      })
1210
+    },
1211
+
1173 1212
     EditIon(id) {
1174 1213
       this.dialogVisibleThree = true
1175 1214
       EditIon(id).then(response => {
1176 1215
         if (response.data.state === 1) {
1177 1216
           var ion = response.data.data.ion
1178 1217
           console.log('ion', ion)
1179
-          this.ionForm.dateb = uParseTime(ion.sampling_date, '{y}-{m}-{d}')
1218
+          // eslint-disable-next-line no-undef
1219
+          this.ionForm.dateb = this.getTime(ion.sampling_date)
1180 1220
           this.ionForm.samplerc = ion.samplerc
1181 1221
           this.ionForm.detection_unit = ion.detection_unit
1182 1222
           this.ionForm.samplerc = ion.samplerc
1183 1223
           this.ionForm.concentrate_nof = ion.concentrate_nof
1184 1224
           this.ionForm.concentrate_nog = ion.concentrate_nog
1185
-          this.ionForm.date_reportc = uParseTime(
1186
-            ion.date_reportc,
1187
-            '{y}-{m}-{d}'
1188
-          )
1225
+          // eslint-disable-next-line no-undef
1226
+          this.ionForm.date_reportc = this.getTime(ion.date_reportc)
1189 1227
           this.ionForm.id = ion.id
1190 1228
           this.ionForm.actual_na = ion.actual_na
1191 1229
           this.ionForm.actual_pna = ion.actual_pna
@@ -1249,6 +1287,25 @@ export default {
1249 1287
         })
1250 1288
       })
1251 1289
     },
1290
+    DeleteIons(id, index) {
1291
+      this.$confirm(
1292
+        '确认要删除所选的吗? <br>删除后,信息将无法恢复',
1293
+        '删除提示',
1294
+        {
1295
+          dangerouslyUseHTMLString: true,
1296
+          confirmButtonText: '确定',
1297
+          cancelButtonText: '取消',
1298
+          type: 'warning'
1299
+        }
1300
+      ).then(() => {
1301
+        DeleteIons(id, index).then(response => {
1302
+          if (response.data.state === 1) {
1303
+            var msg = response.data.data.msg
1304
+            this.tableDatas.splice(index, 1)
1305
+          }
1306
+        })
1307
+      })
1308
+    },
1252 1309
     queryTable() {
1253 1310
       queryTable(
1254 1311
         this.forms.bed,
@@ -1257,8 +1314,82 @@ export default {
1257 1314
       ).then(response => {
1258 1315
         if (response.data.state === 1) {
1259 1316
           var cultures = response.data.data.cultures
1317
+          for (let index = 0; index < cultures.length; index++) {
1318
+            if (cultures[index].specimen === 0) {
1319
+              cultures[index].specimen = ''
1320
+            }
1321
+            if (cultures[index].specimen === 1) {
1322
+              cultures[index].specimen = '透析液'
1323
+            }
1324
+            if (cultures[index].specimen === 2) {
1325
+              cultures[index].specimen = 'A浓缩液'
1326
+            }
1327
+            if (cultures[index].specimen === 3) {
1328
+              cultures[index].specimen = 'B浓缩液'
1329
+            }
1330
+            if (cultures[index].specimen === 4) {
1331
+              cultures[index].specimen = '置换液'
1332
+            }
1333
+            if (cultures[index].specimen === 5) {
1334
+              cultures[index].specimen = '透析用水'
1335
+            }
1336
+
1337
+            if (cultures[index].sampling_locationa === 0) {
1338
+              cultures[index].sampling_locationa = ''
1339
+            }
1340
+
1341
+            if (cultures[index].sampling_locationa === 1) {
1342
+              cultures[index].sampling_locationa = '透析液入口'
1343
+            }
1344
+            if (cultures[index].sampling_locationa === 2) {
1345
+              cultures[index].sampling_locationa = '透析液取样口'
1346
+            }
1347
+            if (cultures[index].sampling_locationa === 3) {
1348
+              cultures[index].sampling_locationa = '置换液出口'
1349
+            }
1350
+            if (cultures[index].sampling_locationa === 4) {
1351
+              cultures[index].sampling_locationa = '透析机反渗水入口'
1352
+            }
1353
+          }
1260 1354
           this.tableData = cultures
1261 1355
           var dialysate = response.data.data.dialysate
1356
+          for (let index = 0; index < dialyste.length; index++) {
1357
+            if (dialyste[index].specimenb === 0) {
1358
+              dialyste[index].specimenb = ''
1359
+            }
1360
+            if (dialyste[index].specimenb === 1) {
1361
+              dialyste[index].specimenb = '透析液'
1362
+            }
1363
+            if (dialyste[index].specimenb === 2) {
1364
+              dialyste[index].specimenb = 'A浓缩液'
1365
+            }
1366
+            if (dialyste[index].specimenb === 3) {
1367
+              dialyste[index].specimenb = 'B浓缩液'
1368
+            }
1369
+            if (dialyste[index].specimenb === 4) {
1370
+              dialyste[index].specimenb = '置换液'
1371
+            }
1372
+            if (dialyste[index].specimenb === 5) {
1373
+              dialyste[index].specimenb = '透析用水'
1374
+            }
1375
+
1376
+            if (dialyste[index].sampling_locationb === 0) {
1377
+              dialyste[index].sampling_locationb = ''
1378
+            }
1379
+
1380
+            if (dialyste[index].sampling_locationb === 1) {
1381
+              dialyste[index].sampling_locationb = '透析液入口'
1382
+            }
1383
+            if (dialyste[index].sampling_locationb === 2) {
1384
+              dialyste[index].sampling_locationb = '透析液取样口'
1385
+            }
1386
+            if (dialyste[index].sampling_locationb === 3) {
1387
+              dialyste[index].sampling_locationb = '置换液出口'
1388
+            }
1389
+            if (dialyste[index].sampling_locationb === 4) {
1390
+              dialyste[index].sampling_locationb = '透析机反渗水入口'
1391
+            }
1392
+          }
1262 1393
           this.table = dialysate
1263 1394
           var ions = response.data.data.ions
1264 1395
           this.tableDatas = ions

+ 3 - 2
src/xt_pages/management/components/RemanderForm.vue Целия файл

@@ -40,7 +40,7 @@ export default {
40 40
       randerform: {
41 41
         run: 2
42 42
       }
43
-    }
43
+    };
44 44
   },
45 45
   methods: {
46 46
     open: function() {
@@ -67,9 +67,10 @@ export default {
67 67
         // eslint-disable-next-line eqeqeq
68 68
         if (response.data.state == 1) {
69 69
           var remander = response.data.data.remander
70
+          console.log('remander=================小夏', remander)
70 71
           this.randerform.run = remander.is_run
71 72
         }
72
-      })
73
+      });
73 74
     }
74 75
   },
75 76
   created() {

+ 50 - 4
src/xt_pages/management/components/RepairForm.vue Целия файл

@@ -198,12 +198,22 @@
198 198
                 size="mini"
199 199
                 type="primary"
200 200
                 icon="el-icon-delete"
201
-                @click="BatchDelete(scope.row, scope.$index)"
201
+                @click="DeleteRepairs(scope.row.id, scope.$index)"
202 202
               ></el-button>
203 203
             </el-tooltip>
204 204
           </template>
205 205
         </el-table-column>
206 206
       </el-table>
207
+      <el-pagination
208
+        @size-change="handleSizeChange"
209
+        @current-change="handleCurrentChange"
210
+        :page-sizes="[10, 20, 50, 100]"
211
+        :page-size="10"
212
+        background
213
+        style="margin-top:20px;float: right"
214
+        layout="total, sizes, prev, pager, next, jumper"
215
+        :total="total"
216
+      ></el-pagination>
207 217
     </el-row>
208 218
 
209 219
     <!-- 编辑维修记录 -->
@@ -404,7 +414,8 @@ import {
404 414
   EditRepair,
405 415
   UpdateRepair,
406 416
   DeleteRepair,
407
-  queryRepair
417
+  queryRepair,
418
+  DeleteRepairs
408 419
 } from '@/api/manage'
409 420
 import { uParseTime } from '@/utils/tools'
410 421
 import { getFileExtension } from '@/utils/tools'
@@ -458,7 +469,10 @@ export default {
458 469
         guarantee_date: [{ required: true, message: '请填写保修日期' }],
459 470
         fault_description: [{ required: true, message: '请填写故障描述' }]
460 471
       },
461
-      filename: ''
472
+      filename: '',
473
+      limit: 10,
474
+      page: 1,
475
+      total: ''
462 476
     }
463 477
   },
464 478
   methods: {
@@ -484,10 +498,13 @@ export default {
484 498
       this.selectCulture = val
485 499
     },
486 500
     getAllRepair() {
487
-      getAllRepair().then(response => {
501
+      getAllRepair(this.limit, this.page).then(response => {
488 502
         if (response.data.state === 1) {
489 503
           var repair = response.data.data.repair
490 504
           console.log('repair是', repair)
505
+          // eslint-disable-next-line no-unused-vars
506
+          var total = response.data.data.total
507
+          this.total = total
491 508
           for (let index = 0; index < repair.length; index++) {
492 509
             if (repair[index].failure_stage === 0) {
493 510
               repair[index].failure_stage = ''
@@ -602,6 +619,7 @@ export default {
602 619
         ext
603 620
       const _self = this
604 621
       return new Promise((resolve, reject) => {
622
+        // eslint-disable-next-line no-undef
605 623
         getToken()
606 624
           .then(response => {
607 625
             const token = response.data.data.uptoken
@@ -610,6 +628,7 @@ export default {
610 628
             _self._data.uploadFileData.key = key
611 629
             resolve(true)
612 630
           })
631
+          // eslint-disable-next-line handle-callback-err
613 632
           .catch(err => {
614 633
             reject(false)
615 634
           })
@@ -692,6 +711,33 @@ export default {
692 711
           this.tableData = repair
693 712
         }
694 713
       })
714
+    },
715
+    handleSizeChange(limit) {
716
+      this.limit = limit
717
+      this.getAllRepair()
718
+    },
719
+    handleCurrentChange(page) {
720
+      this.page = page
721
+      this.getAllRepair()
722
+    },
723
+    DeleteRepairs(id, index) {
724
+      this.$confirm(
725
+        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
726
+        '删除提示',
727
+        {
728
+          dangerouslyUseHTMLString: true,
729
+          confirmButtonText: '确定',
730
+          cancelButtonText: '取消',
731
+          type: 'warning'
732
+        }
733
+      ).then(() => {
734
+        DeleteRepairs(id, index).then(response => {
735
+          if (response.data.state === 1) {
736
+            var msg = response.data.data.msg
737
+            this.tableData.splice(index, 1)
738
+          }
739
+        })
740
+      })
695 741
     }
696 742
   },
697 743
   created() {

+ 25 - 4
src/xt_pages/management/components/UserForm.vue Целия файл

@@ -182,7 +182,7 @@
182 182
                 size="mini"
183 183
                 type="primary"
184 184
                 icon="el-icon-delete"
185
-                @click="BatchDelete(scope.row, scope.$index)"
185
+                @click="DeleteUserLogin(scope.row.id, scope.$index)"
186 186
               ></el-button>
187 187
             </el-tooltip>
188 188
           </template>
@@ -728,7 +728,8 @@ import {
728 728
   queryInfo,
729 729
   getUserForm,
730 730
   getBedForm,
731
-  getPatientDetail
731
+  getPatientDetail,
732
+  DeleteUserLogin
732 733
 } from '@/api/manage'
733 734
 import { uParseTime } from '@/utils/tools'
734 735
 import { PostSearch } from '@/api/patient'
@@ -944,6 +945,7 @@ export default {
944 945
       getInformationData(this.limit, this.page).then(response => {
945 946
         if (response.data.state === 1) {
946 947
           var information = response.data.data.information
948
+          // console.log('information是什么', information)
947 949
           for (let index = 0; index < information.length; index++) {
948 950
             if (information[index].class === 1) {
949 951
               information[index].class = '上午'
@@ -1223,7 +1225,6 @@ export default {
1223 1225
           // '{y}-{m}-{d} {h}:{i}'
1224 1226
           // )
1225 1227
 
1226
-
1227 1228
           this.userform.dialysis_hour = device.dialysis_hour
1228 1229
           this.userform.hyperfiltratio = device.hyperfiltratio
1229 1230
           this.userform.weight_loss = device.weight_loss
@@ -1277,7 +1278,6 @@ export default {
1277 1278
             this.userform.clean = false
1278 1279
           }
1279 1280
           this.userform.sign_name = device.sign_name
1280
-           
1281 1281
         }
1282 1282
       })
1283 1283
     },
@@ -1666,6 +1666,7 @@ export default {
1666 1666
       getUserForm(id, this.limit, this.page).then(response => {
1667 1667
         if (response.data.state === 1) {
1668 1668
           var information = response.data.data.information
1669
+          console.log('information====================', information)
1669 1670
           // eslint-disable-next-line no-unused-vars
1670 1671
           var addmacher = response.data.data.addmacher
1671 1672
           // console.log('addmacher', addmacher)
@@ -1993,6 +1994,26 @@ export default {
1993 1994
       if (val == 2) {
1994 1995
         this.four = false
1995 1996
       }
1997
+    },
1998
+    DeleteUserLogin(id, index) {
1999
+      this.$confirm(
2000
+        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
2001
+        '删除提示',
2002
+        {
2003
+          dangerouslyUseHTMLString: true,
2004
+          confirmButtonText: '确定',
2005
+          cancelButtonText: '取消',
2006
+          type: 'warning'
2007
+        }
2008
+      ).then(() => {
2009
+        // eslint-disable-next-line no-undef
2010
+        DeleteUserLogin(id, index).then(response => {
2011
+          if (response.data.state === 1) {
2012
+            var msg = response.data.data.msg
2013
+            this.tableData.splice(index, 1)
2014
+          }
2015
+        })
2016
+      })
1996 2017
     }
1997 2018
   },
1998 2019
   created() {

+ 33 - 12
src/xt_pages/management/home.vue Целия файл

@@ -794,7 +794,7 @@
794 794
                                                    size="mini"
795 795
                                                    type="primary"
796 796
                                                    icon="el-icon-delete"
797
-                                                    @click="openDeleteMahcine(scope.row, scope.$index)"
797
+                                                    @click="openDelete(scope.row.id, scope.$index)"
798 798
                                                     ></el-button>
799 799
                                                 </el-tooltip>
800 800
                                              </template>
@@ -880,7 +880,7 @@
880 880
                                                    size="mini"
881 881
                                                    type="primary"
882 882
                                                    icon="el-icon-delete"
883
-                                                    @click="openDeleteMahcineOne(scope.row, scope.$index)"
883
+                                                    @click="openDelete(scope.row.id, scope.$index)"
884 884
                                                     ></el-button>
885 885
                                                 </el-tooltip>
886 886
                                              </template>
@@ -1592,17 +1592,17 @@
1592 1592
                               <el-row>
1593 1593
                                 <el-col :span="8">
1594 1594
                                   <!-- <span>Na<sup>+</sup></span> -->
1595
-                                   <el-form-item label="实际Na(mmol/L):">
1595
+                                   <el-form-item label="实际Na(mmol/L):">
1596 1596
                                         <el-input style="width:100px" v-model="qualityFormThree.actual_na"></el-input>
1597 1597
                                     </el-form-item>
1598 1598
                                 </el-col>
1599 1599
                                  <el-col :span="8">
1600
-                                    <el-form-item label="配方Na(mmol/L):">
1600
+                                    <el-form-item label="配方Na(mmol/L):">
1601 1601
                                         <el-input style="width:100px" v-model="qualityFormThree.actual_pna"></el-input>
1602 1602
                                     </el-form-item>
1603 1603
                                 </el-col>
1604 1604
                                  <el-col :span="8">
1605
-                                    <el-form-item label="K(mmol/L):">
1605
+                                    <el-form-item label="K(mmol/L):">
1606 1606
                                         <el-input style="width:100px" v-model="qualityFormThree.actual_k"></el-input>
1607 1607
                                     </el-form-item>
1608 1608
                                 </el-col>
@@ -1610,7 +1610,7 @@
1610 1610
                               </el-row>
1611 1611
                                <el-row>
1612 1612
                                 <el-col :span="8">
1613
-                                    <el-form-item label="Ca2(mmol/L):">
1613
+                                    <el-form-item label="Ca2(mmol/L):">
1614 1614
                                         <el-input style="width:100px" v-model="qualityFormThree.actual_ca"></el-input>
1615 1615
                                     </el-form-item>
1616 1616
                                 </el-col>
@@ -1627,7 +1627,7 @@
1627 1627
                               </el-row>
1628 1628
                               <el-row>
1629 1629
                                  <el-col :span="8">
1630
-                                    <el-form-item label="Mg2(mmol/L):">
1630
+                                    <el-form-item label="Mg2(mmol/L):">
1631 1631
                                         <el-input style="width:100px" v-model="qualityFormThree.actual_mg"></el-input>
1632 1632
                                     </el-form-item>
1633 1633
                                 </el-col>
@@ -2030,7 +2030,7 @@
2030 2030
   import { getAllSubregion, getAllMachine, getMachineDetailById,
2031 2031
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
2032 2032
     getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
2033
-    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail } from '@/api/manage'
2033
+    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete } from '@/api/manage'
2034 2034
   import { uParseTime } from '@/utils/tools'
2035 2035
   import { getToken } from '@/api/qiniu'
2036 2036
   import PlanForm from './components/PlanForm'
@@ -3373,6 +3373,27 @@ export default {
3373 3373
             return false
3374 3374
           })
3375 3375
       },
3376
+      openDelete(id, index) {
3377
+        // eslint-disable-next-line no-undef
3378
+        this.$confirm(
3379
+          '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
3380
+          '删除提示',
3381
+          {
3382
+            dangerouslyUseHTMLString: true,
3383
+            confirmButtonText: '确定',
3384
+            cancelButtonText: '取消',
3385
+            type: 'warning'
3386
+          }
3387
+        ).then(() => {
3388
+          openDelete(id, index).then(response => {
3389
+            if (response.data.state === 1) {
3390
+              var msg = response.data.data.msg
3391
+              this.tableData.splice(index, 1)
3392
+              this.planData.splice(index, 1)
3393
+            }
3394
+          })
3395
+        })
3396
+      },
3376 3397
       openDeleteMahcineOne() {
3377 3398
         if (this.selectMachinesOne.length == 0) {
3378 3399
           this.$message.error('请选择要删除的信息')
@@ -3918,10 +3939,6 @@ export default {
3918 3939
           this.diableTwo = false
3919 3940
         }
3920 3941
       },
3921
-      handleSuccess(res, file, fileList) {
3922
-        this.guaForm.images = this.qiniuDomain + res.url
3923
-        console.log('图片上传成功', this.qiniuDomain + res.url)
3924
-      },
3925 3942
       beforeUploadFile(file) {
3926 3943
         const isLt2M = file.size / 1024 / 1024 <= 2048
3927 3944
         console.log('视频大小', file.size / 1024 / 1024)
@@ -3947,6 +3964,10 @@ export default {
3947 3964
           })
3948 3965
         })
3949 3966
       },
3967
+      handleSuccess(res, file, fileList) {
3968
+        this.guaForm.images = this.qiniuDomain + res.url
3969
+        console.log('图片上传成功', this.qiniuDomain + res.url)
3970
+      },
3950 3971
       // eslint-disable-next-line no-dupe-keys
3951 3972
       getTime(value, temp) {
3952 3973
         // eslint-disable-next-line eqeqeq