Browse Source

龙岗二院需求

XMLWAN 4 years ago
parent
commit
ed7fada36d

+ 47 - 48
src/pages/main/all/scheduling.vue View File

20
   </div>
20
   </div>
21
 </template>
21
 </template>
22
 <script>
22
 <script>
23
-import { getSchedulingDetail } from "@/api/patient/patient";
24
-import { uParseTime } from "@/utils/tools";
25
-import { setRem, setHeight } from "@/libs/functionRem";
26
-import "../../../styles/resetStyle.scss";
23
+import { getSchedulingDetail } from '@/api/patient/patient'
24
+import { uParseTime } from '@/utils/tools'
25
+import { setRem, setHeight } from '@/libs/functionRem'
26
+import '../../../styles/resetStyle.scss'
27
 export default {
27
 export default {
28
-  data() {
28
+  data () {
29
     return {
29
     return {
30
-      name: "",
30
+      name: '',
31
       schedulingDetail: {},
31
       schedulingDetail: {},
32
       patientid: 0,
32
       patientid: 0,
33
       active: 0
33
       active: 0
34
-    };
34
+    }
35
   },
35
   },
36
   methods: {
36
   methods: {
37
-    getSchedulingDetail(id) {
37
+    getSchedulingDetail (id) {
38
       getSchedulingDetail(id).then(response => {
38
       getSchedulingDetail(id).then(response => {
39
         if (response.data.state === 1) {
39
         if (response.data.state === 1) {
40
-          var schedulingDetail = response.data.data.schedulingDetail;
40
+          var schedulingDetail = response.data.data.schedulingDetail
41
           if (schedulingDetail.mode_id == 1) {
41
           if (schedulingDetail.mode_id == 1) {
42
-            schedulingDetail.mode_id = "HD";
42
+            schedulingDetail.mode_id = 'HD'
43
           }
43
           }
44
           if (schedulingDetail.mode_id == 2) {
44
           if (schedulingDetail.mode_id == 2) {
45
-            schedulingDetail.mode_id = "HDF";
45
+            schedulingDetail.mode_id = 'HDF'
46
           }
46
           }
47
           if (schedulingDetail.mode_id == 3) {
47
           if (schedulingDetail.mode_id == 3) {
48
-            schedulingDetail.mode_id = "HD+HP";
48
+            schedulingDetail.mode_id = 'HD+HP'
49
           }
49
           }
50
           if (schedulingDetail.mode_id == 4) {
50
           if (schedulingDetail.mode_id == 4) {
51
-            schedulingDetail.mode_id = "HP";
51
+            schedulingDetail.mode_id = 'HP'
52
           }
52
           }
53
           if (schedulingDetail.mode_id == 5) {
53
           if (schedulingDetail.mode_id == 5) {
54
-            schedulingDetail.mode_id = "HF";
54
+            schedulingDetail.mode_id = 'HF'
55
           }
55
           }
56
           if (schedulingDetail.mode_id == 6) {
56
           if (schedulingDetail.mode_id == 6) {
57
-            schedulingDetail.mode_id = "SCUF";
57
+            schedulingDetail.mode_id = 'SCUF'
58
           }
58
           }
59
           if (schedulingDetail.mode_id == 7) {
59
           if (schedulingDetail.mode_id == 7) {
60
-            schedulingDetail.mode_id = "IUF";
60
+            schedulingDetail.mode_id = 'IUF'
61
           }
61
           }
62
           if (schedulingDetail.mode_id == 8) {
62
           if (schedulingDetail.mode_id == 8) {
63
-            schedulingDetail.mode_id = "HFHD";
63
+            schedulingDetail.mode_id = 'HFHD'
64
           }
64
           }
65
           if (schedulingDetail.mode_id == 9) {
65
           if (schedulingDetail.mode_id == 9) {
66
-            schedulingDetail.mode_id = "HFHD+HP";
66
+            schedulingDetail.mode_id = 'HFHD+HP'
67
           }
67
           }
68
           if (schedulingDetail.mode_id == 10) {
68
           if (schedulingDetail.mode_id == 10) {
69
-            schedulingDetail.mode_id = "PHF";
69
+            schedulingDetail.mode_id = 'PHF'
70
           }
70
           }
71
           if (schedulingDetail.mode_id == 11) {
71
           if (schedulingDetail.mode_id == 11) {
72
-            schedulingDetail.mode_id = "HFR";
72
+            schedulingDetail.mode_id = 'HFR'
73
           }
73
           }
74
           if (schedulingDetail.mode_id == 12) {
74
           if (schedulingDetail.mode_id == 12) {
75
-            schedulingDetail.mode_id = "HDF+HP";
75
+            schedulingDetail.mode_id = 'HDF+HP'
76
           }
76
           }
77
           if (schedulingDetail.mode_id == 13) {
77
           if (schedulingDetail.mode_id == 13) {
78
-            schedulingDetail.mode_id = "CRRT";
78
+            schedulingDetail.mode_id = 'CRRT'
79
           }
79
           }
80
           if (schedulingDetail.mode_id == 14) {
80
           if (schedulingDetail.mode_id == 14) {
81
-            schedulingDetail.mode_id = "腹水回输";
81
+            schedulingDetail.mode_id = '腹水回输'
82
           }
82
           }
83
           if (schedulingDetail.schedule_type == 1) {
83
           if (schedulingDetail.schedule_type == 1) {
84
-            schedulingDetail.schedule_type = "上午";
84
+            schedulingDetail.schedule_type = '上午'
85
           }
85
           }
86
           if (schedulingDetail.schedule_type == 2) {
86
           if (schedulingDetail.schedule_type == 2) {
87
-            schedulingDetail.schedule_type = "中午";
87
+            schedulingDetail.schedule_type = '中午'
88
           }
88
           }
89
           if (schedulingDetail.schedule_type == 3) {
89
           if (schedulingDetail.schedule_type == 3) {
90
-            schedulingDetail.schedule_type = "下午";
90
+            schedulingDetail.schedule_type = '下午'
91
           }
91
           }
92
-          this.schedulingDetail = schedulingDetail;
93
-          console.log("排班详情", schedulingDetail);
94
-          var patient = response.data.data.patient;
95
-          this.name = patient.name;
96
-          console.log("patient", patient);
92
+          this.schedulingDetail = schedulingDetail
93
+          console.log('排班详情', schedulingDetail)
94
+          var patient = response.data.data.patient
95
+          this.name = patient.name
96
+          console.log('patient', patient)
97
         }
97
         }
98
-      });
98
+      })
99
     },
99
     },
100
-    getTime(time) {
100
+    getTime (time) {
101
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
101
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
102
-      return uParseTime(time, "{y}-{m}-{d}");
102
+      return uParseTime(time, '{y}-{m}-{d}')
103
     },
103
     },
104
-    toReturn() {
104
+    toReturn () {
105
       this.$router.push(
105
       this.$router.push(
106
-        "/details?patient_id=" + 1064 + "&date=" + 1590508800 + "&patient_name=" + "黄晓" + "&active1=" + 1 + "&active2=" + 2
107
-      );
106
+        '/details?patient_id=' + 1064 + '&date=' + 1590508800 + '&patient_name=' + '黄晓' + '&active1=' + 1 + '&active2=' + 2
107
+      )
108
     }
108
     }
109
   },
109
   },
110
-  created() {
111
-    this.active = parseInt(this.$route.query.active);
112
-    setRem();
113
-    setHeight();
114
-    var id = this.$route.query.id;
115
-    var patientid = this.$route.query.patientid;
116
-    this.patientid = patientid;
117
-    this.getSchedulingDetail(id);
118
-  },
119
-};
110
+  created () {
111
+    setRem()
112
+    setHeight()
113
+    var id = this.$route.query.id
114
+    var patientid = this.$route.query.patientid
115
+    this.patientid = patientid
116
+    this.getSchedulingDetail(id)
117
+  }
118
+}
120
 </script>
119
 </script>
121
 <style lang="scss" scoped>
120
 <style lang="scss" scoped>
122
 .page_allScheduling {
121
 .page_allScheduling {
145
       border: none;
144
       border: none;
146
     }
145
     }
147
   }
146
   }
148
-  
147
+
149
   .dialysisBoxOne {
148
   .dialysisBoxOne {
150
     // box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
149
     // box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
151
     border-bottom: 1px solid #e5e5e5;
150
     border-bottom: 1px solid #e5e5e5;

+ 14 - 10
src/pages/main/dialysis/AdviceTable.vue View File

1475
 
1475
 
1476
 <script>
1476
 <script>
1477
 import {
1477
 import {
1478
+ getNewPatientId,
1478
   getDoctorAdvices,
1479
   getDoctorAdvices,
1479
   getPatientDetail,
1480
   getPatientDetail,
1480
   DeleteManagement
1481
   DeleteManagement
1802
           }
1803
           }
1803
         });
1804
         });
1804
       });
1805
       });
1806
+    },
1807
+     getNewPatientId(id){
1808
+      getNewPatientId(id).then(response=>{
1809
+         if(response.data.state == 1){
1810
+          var patient =  response.data.data.patient
1811
+          this.getDoctorAdvices(patient.id);
1812
+          this.getPatientDetail(patient.id);
1813
+          this.patient_id = patient.id;
1814
+         }
1815
+      })
1805
     }
1816
     }
1806
   },
1817
   },
1807
   created() {
1818
   created() {
1808
-    var patientid = this.$route.query.patientid;
1809
-    this.getDoctorAdvices(patientid);
1810
-    this.getPatientDetail(patientid);
1811
-    this.patient_id = patientid;
1819
+    var patientid = this.$route.query.patient_id
1820
+    this.getNewPatientId(patientid)
1812
     localStorage.setItem("docActive", this.active);
1821
     localStorage.setItem("docActive", this.active);
1813
   },
1822
   },
1814
   watch: {
1823
   watch: {
1938
     transform: translate3d(0, 0, 0);
1947
     transform: translate3d(0, 0, 0);
1939
     top: initial;
1948
     top: initial;
1940
   }
1949
   }
1941
-  
1950
+
1942
 }
1951
 }
1943
 ::-webkit-scrollbar {
1952
 ::-webkit-scrollbar {
1944
   width: 0;
1953
   width: 0;
1963
 }
1972
 }
1964
 </style>
1973
 </style>
1965
 
1974
 
1966
-
1967
-
1968
-
1969
-
1970
-
1971
 <style style="stylesheet/scss" lang="scss" scoped>
1975
 <style style="stylesheet/scss" lang="scss" scoped>
1972
 // .fixedTop {
1976
 // .fixedTop {
1973
 //   padding-top: 32px;
1977
 //   padding-top: 32px;

+ 106 - 98
src/pages/main/dialysis/CourseManagement.vue View File

116
 
116
 
117
 <script>
117
 <script>
118
 import {
118
 import {
119
+  getNewPatientId,
119
   getCourseManagement,
120
   getCourseManagement,
120
   DeleteCouseManage,
121
   DeleteCouseManage,
121
   getPatientDetail
122
   getPatientDetail
122
-} from "@/api/patient/patient";
123
-import { uParseTime } from "@/utils/tools";
124
-import { clearStyle } from "@/libs/clearStyle";
125
-import Vue from "vue";
126
-import { Dialog } from "vant";
127
-const moment = require("moment");
123
+} from '@/api/patient/patient'
124
+import { uParseTime } from '@/utils/tools'
125
+import { clearStyle } from '@/libs/clearStyle'
126
+import Vue from 'vue'
127
+import { Dialog } from 'vant'
128
+const moment = require('moment')
128
 export default {
129
 export default {
129
   props: {
130
   props: {
130
     active: Number
131
     active: Number
131
   },
132
   },
132
-  data() {
133
+  data () {
133
     return {
134
     return {
134
       newShow: false,
135
       newShow: false,
135
       startShow: false,
136
       startShow: false,
136
       endShow: false,
137
       endShow: false,
137
-      startTime: "请选择",
138
-      endTime: "请选择",
139
-      endTimes: "",
138
+      startTime: '请选择',
139
+      endTime: '请选择',
140
+      endTimes: '',
140
       minDate: new Date(1970, 0, 1),
141
       minDate: new Date(1970, 0, 1),
141
       maxDate: new Date(2025, 10, 1),
142
       maxDate: new Date(2025, 10, 1),
142
       currentDate: new Date(),
143
       currentDate: new Date(),
143
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
144
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
144
       limit: 10,
145
       limit: 10,
145
       page: 1,
146
       page: 1,
146
       total: 0,
147
       total: 0,
155
       patient_index: 0,
156
       patient_index: 0,
156
       showOne: true,
157
       showOne: true,
157
       showTwo: false
158
       showTwo: false
158
-    };
159
+    }
159
   },
160
   },
160
   methods: {
161
   methods: {
161
-    onCancel() {
162
-      this.typeShow = false;
162
+    onCancel () {
163
+      this.typeShow = false
163
     },
164
     },
164
-    onConfirm(value) {
165
-      this.type = value;
166
-      this.typeShow = false;
165
+    onConfirm (value) {
166
+      this.type = value
167
+      this.typeShow = false
167
     },
168
     },
168
-    getstartTime(value) {
169
-      this.page = 1;
170
-      let year = value.getFullYear();
171
-      let month = value.getMonth() + 1;
172
-      let day = value.getDate();
169
+    getstartTime (value) {
170
+      this.page = 1
171
+      let year = value.getFullYear()
172
+      let month = value.getMonth() + 1
173
+      let day = value.getDate()
173
       if (month >= 1 && month <= 9) {
174
       if (month >= 1 && month <= 9) {
174
-        month = `0${month}`;
175
+        month = `0${month}`
175
       }
176
       }
176
       if (day >= 1 && day <= 9) {
177
       if (day >= 1 && day <= 9) {
177
-        day = `0${day}`;
178
+        day = `0${day}`
178
       }
179
       }
179
 
180
 
180
-      this.startTime = `${year}-${month}-${day}`;
181
-      this.courseManagement = [];
181
+      this.startTime = `${year}-${month}-${day}`
182
+      this.courseManagement = []
182
       this.getCourseManagement(
183
       this.getCourseManagement(
183
         this.patientid,
184
         this.patientid,
184
         this.limit,
185
         this.limit,
185
         this.page,
186
         this.page,
186
         this.startTime,
187
         this.startTime,
187
         this.endTime
188
         this.endTime
188
-      );
189
-      this.startShow = false;
189
+      )
190
+      this.startShow = false
190
     },
191
     },
191
-    getstartTime2(value) {
192
-      this.page = 1;
193
-      let year = value.getFullYear();
194
-      let month = value.getMonth() + 1;
195
-      let day = value.getDate();
192
+    getstartTime2 (value) {
193
+      this.page = 1
194
+      let year = value.getFullYear()
195
+      let month = value.getMonth() + 1
196
+      let day = value.getDate()
196
       if (month >= 1 && month <= 9) {
197
       if (month >= 1 && month <= 9) {
197
-        month = `0${month}`;
198
+        month = `0${month}`
198
       }
199
       }
199
       if (day >= 1 && day <= 9) {
200
       if (day >= 1 && day <= 9) {
200
-        day = `0${day}`;
201
+        day = `0${day}`
201
       }
202
       }
202
 
203
 
203
-      this.endTime = `${year}-${month}-${day}`;
204
+      this.endTime = `${year}-${month}-${day}`
204
 
205
 
205
-      this.courseManagement = [];
206
+      this.courseManagement = []
206
       this.getCourseManagement(
207
       this.getCourseManagement(
207
         this.patientid,
208
         this.patientid,
208
         this.limit,
209
         this.limit,
209
         this.page,
210
         this.page,
210
         this.startTime,
211
         this.startTime,
211
         this.endTime
212
         this.endTime
212
-      );
213
-      this.endShow = false;
213
+      )
214
+      this.endShow = false
214
     },
215
     },
215
-    getTime(time) {
216
+    getTime (time) {
216
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
217
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
217
-      return uParseTime(time, "{y}-{m}-{d}");
218
+      return uParseTime(time, '{y}-{m}-{d}')
218
     },
219
     },
219
-    getCourseManagement(patientid) {
220
+    getCourseManagement (patientid) {
220
       getCourseManagement(
221
       getCourseManagement(
221
         patientid,
222
         patientid,
222
         this.limit,
223
         this.limit,
225
         this.endTime
226
         this.endTime
226
       ).then(response => {
227
       ).then(response => {
227
         if (response.data.state == 1) {
228
         if (response.data.state == 1) {
228
-          var coursemanagement = response.data.data.coursemanagement;
229
-          this.courseManagement = clearStyle(coursemanagement);
230
-          var total = response.data.data.total;
231
-          this.total = total;
232
-          this.loading = false;
229
+          var coursemanagement = response.data.data.coursemanagement
230
+          this.courseManagement = clearStyle(coursemanagement)
231
+          var total = response.data.data.total
232
+          this.total = total
233
+          this.loading = false
233
         }
234
         }
234
-      });
235
+      })
235
     },
236
     },
236
-    onLoad() {
237
+    onLoad () {
237
       setTimeout(() => {
238
       setTimeout(() => {
238
-        this.page++;
239
+        this.page++
239
         // console.log(this.page)
240
         // console.log(this.page)
240
         if (this.page <= Math.ceil(this.total / 10)) {
241
         if (this.page <= Math.ceil(this.total / 10)) {
241
-          this.getCourseManagement(this.patientid);
242
+          this.getCourseManagement(this.patientid)
242
         } else {
243
         } else {
243
-          this.loading = false;
244
-          this.finished = true;
244
+          this.loading = false
245
+          this.finished = true
245
         }
246
         }
246
-      }, 1000);
247
+      }, 1000)
247
     },
248
     },
248
-    toDeleteCourseManagement(id, index) {
249
-      this.patient_id = id;
250
-      this.patient_index = index;
251
-      this.newShow = true;
249
+    toDeleteCourseManagement (id, index) {
250
+      this.patient_id = id
251
+      this.patient_index = index
252
+      this.newShow = true
252
     },
253
     },
253
-    onDeleteConfirm(value) {
254
-      if (value.name == "查看全部") {
255
-        var patientid = this.$route.query.patientid;
254
+    onDeleteConfirm (value) {
255
+      if (value.name == '查看全部') {
256
+        var patientid = this.$route.query.patientid
256
         this.$router.push(
257
         this.$router.push(
257
-          "/coursedetail?id=" +
258
+          '/coursedetail?id=' +
258
             this.patient_id +
259
             this.patient_id +
259
-            "&patientid=" +
260
+            '&patientid=' +
260
             patientid +
261
             patientid +
261
-            "&active=" +
262
+            '&active=' +
262
             this.active
263
             this.active
263
-        );
264
+        )
264
       }
265
       }
265
-      if (value.name == "全部删除") {
266
-        this.DeleteCouseManage(this.patient_id);
266
+      if (value.name == '全部删除') {
267
+        this.DeleteCouseManage(this.patient_id)
267
       }
268
       }
268
     },
269
     },
269
-    DeleteCouseManage(id, index) {
270
+    DeleteCouseManage (id, index) {
270
       Dialog.confirm({
271
       Dialog.confirm({
271
-        title: "删除提示!",
272
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
272
+        title: '删除提示!',
273
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
273
       }).then(() => {
274
       }).then(() => {
274
         DeleteCouseManage(id).then(response => {
275
         DeleteCouseManage(id).then(response => {
275
           if (response.data.state === 1) {
276
           if (response.data.state === 1) {
276
-            var msg = response.data.data.msg;
277
-            console.log("msg", msg);
278
-            this.courseManagement.splice(index, 1);
279
-            this.newShow = false;
277
+            var msg = response.data.data.msg
278
+            console.log('msg', msg)
279
+            this.courseManagement.splice(index, 1)
280
+            this.newShow = false
280
           }
281
           }
281
-        });
282
-      });
282
+        })
283
+      })
283
     },
284
     },
284
-    toCourseDetail(id) {
285
-      var patientid = this.$route.query.patientid;
285
+    toCourseDetail (id) {
286
+      var patientid = this.$route.query.patientid
286
       this.$router.push(
287
       this.$router.push(
287
-        "/coursedetail?id=" +
288
+        '/coursedetail?id=' +
288
           id +
289
           id +
289
-          "&patientid=" +
290
+          '&patientid=' +
290
           patientid +
291
           patientid +
291
-          "&active=" +
292
+          '&active=' +
292
           this.active
293
           this.active
293
-      );
294
+      )
294
     },
295
     },
295
-    getPatientDetail(patientid) {
296
+    getPatientDetail (patientid) {
296
       getPatientDetail(patientid).then(response => {
297
       getPatientDetail(patientid).then(response => {
297
         if (response.data.state === 1) {
298
         if (response.data.state === 1) {
298
-          var patientDetail = response.data.data.patientDetail;
299
+          var patientDetail = response.data.data.patientDetail
299
           if (patientDetail.blood_patients == 0) {
300
           if (patientDetail.blood_patients == 0) {
300
-            this.courseManagement = [];
301
-            this.showOne = false;
302
-            this.showTwo = true;
301
+            this.courseManagement = []
302
+            this.showOne = false
303
+            this.showTwo = true
303
           }
304
           }
304
           if (patientDetail.blood_patients == 1) {
305
           if (patientDetail.blood_patients == 1) {
305
-            this.showOne = true;
306
-            this.showTwo = false;
306
+            this.showOne = true
307
+            this.showTwo = false
307
           }
308
           }
308
-          this.patientName = patientDetail.name;
309
+          this.patientName = patientDetail.name
310
+        }
311
+      })
312
+    },
313
+    getNewPatientId (id) {
314
+      getNewPatientId(id).then(response => {
315
+        if (response.data.state == 1) {
316
+          var patient = response.data.data.patient
317
+          this.getCourseManagement(patient.id)
318
+          this.getPatientDetail(patient.id)
309
         }
319
         }
310
-      });
320
+      })
311
     }
321
     }
312
   },
322
   },
313
-  created() {
314
-    var patientid = this.$route.query.patientid;
315
-    this.patientid = patientid;
323
+  created () {
324
+    var patientid = this.$route.query.patient_id
325
+    this.getNewPatientId(patientid)
316
     // console.log("干体重id", patientid);
326
     // console.log("干体重id", patientid);
317
-    this.getCourseManagement(patientid);
318
-    this.getPatientDetail(patientid);
319
   }
327
   }
320
-};
328
+}
321
 </script>
329
 </script>
322
 
330
 
323
 <style lang="scss" scoped>
331
 <style lang="scss" scoped>
436
     transform: translate3d(0, 0, 0);
444
     transform: translate3d(0, 0, 0);
437
     top: initial;
445
     top: initial;
438
   }
446
   }
439
-  
447
+
440
 }
448
 }
441
 ::-webkit-scrollbar {
449
 ::-webkit-scrollbar {
442
   width: 0;
450
   width: 0;

+ 114 - 107
src/pages/main/dialysis/DryWeight.vue View File

97
 
97
 
98
 <script>
98
 <script>
99
 import {
99
 import {
100
+  getNewPatientId,
100
   getDryWeight,
101
   getDryWeight,
101
   DeleteDryWeight,
102
   DeleteDryWeight,
102
   getPatientDetail
103
   getPatientDetail
103
-} from "@/api/patient/patient";
104
-import { uParseTime } from "@/utils/tools";
105
-import { Dialog } from "vant";
106
-const moment = require("moment");
104
+} from '@/api/patient/patient'
105
+import { uParseTime } from '@/utils/tools'
106
+import { Dialog } from 'vant'
107
+const moment = require('moment')
107
 export default {
108
 export default {
108
   props: {
109
   props: {
109
     active: Number,
110
     active: Number,
110
     dryId: String
111
     dryId: String
111
   },
112
   },
112
-  data() {
113
+  data () {
113
     return {
114
     return {
114
       newShow: false,
115
       newShow: false,
115
       startShow: false,
116
       startShow: false,
116
       endShow: false,
117
       endShow: false,
117
-      startTime: "请选择",
118
-      endTime: "请选择",
118
+      startTime: '请选择',
119
+      endTime: '请选择',
119
       minDate: new Date(1970, 0, 1),
120
       minDate: new Date(1970, 0, 1),
120
       maxDate: new Date(2025, 10, 1),
121
       maxDate: new Date(2025, 10, 1),
121
-      endTimes: "",
122
+      endTimes: '',
122
       currentDate: new Date(),
123
       currentDate: new Date(),
123
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
124
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
124
       page: 1,
125
       page: 1,
125
       limit: 10,
126
       limit: 10,
126
       dryweight: [],
127
       dryweight: [],
127
-      patient_id: "",
128
+      patient_id: '',
128
       total: 0,
129
       total: 0,
129
       list: [],
130
       list: [],
130
       loading: false,
131
       loading: false,
134
       dry_index: 0,
135
       dry_index: 0,
135
       showOne: true,
136
       showOne: true,
136
       showTwo: false
137
       showTwo: false
137
-    };
138
+    }
138
   },
139
   },
139
   methods: {
140
   methods: {
140
-    onCancel() {
141
-      this.typeShow = false;
141
+    onCancel () {
142
+      this.typeShow = false
142
     },
143
     },
143
-    onConfirm(value) {
144
-      this.type = value;
145
-      this.typeShow = false;
144
+    onConfirm (value) {
145
+      this.type = value
146
+      this.typeShow = false
146
     },
147
     },
147
-    getstartTime(value) {
148
-      this.page = 1;
149
-      let year = value.getFullYear();
150
-      let month = value.getMonth() + 1;
151
-      let day = value.getDate();
148
+    getstartTime (value) {
149
+      this.page = 1
150
+      let year = value.getFullYear()
151
+      let month = value.getMonth() + 1
152
+      let day = value.getDate()
152
       if (month >= 1 && month <= 9) {
153
       if (month >= 1 && month <= 9) {
153
-        month = `0${month}`;
154
+        month = `0${month}`
154
       }
155
       }
155
       if (day >= 1 && day <= 9) {
156
       if (day >= 1 && day <= 9) {
156
-        day = `0${day}`;
157
+        day = `0${day}`
157
       }
158
       }
158
 
159
 
159
-      this.startTime = `${year}-${month}-${day}`;
160
-      this.dryweight = [];
160
+      this.startTime = `${year}-${month}-${day}`
161
+      this.dryweight = []
161
       this.getDryWeight(
162
       this.getDryWeight(
162
         this.patient_id,
163
         this.patient_id,
163
         this.startTime,
164
         this.startTime,
164
         this.endTime,
165
         this.endTime,
165
         this.limit,
166
         this.limit,
166
         this.page
167
         this.page
167
-      );
168
+      )
168
 
169
 
169
-      this.startShow = false;
170
+      this.startShow = false
170
     },
171
     },
171
-    getstartTime2(value) {
172
-      this.page = 1;
173
-      let year = value.getFullYear();
174
-      let month = value.getMonth() + 1;
175
-      let day = value.getDate();
172
+    getstartTime2 (value) {
173
+      this.page = 1
174
+      let year = value.getFullYear()
175
+      let month = value.getMonth() + 1
176
+      let day = value.getDate()
176
       if (month >= 1 && month <= 9) {
177
       if (month >= 1 && month <= 9) {
177
-        month = `0${month}`;
178
+        month = `0${month}`
178
       }
179
       }
179
       if (day >= 1 && day <= 9) {
180
       if (day >= 1 && day <= 9) {
180
-        day = `0${day}`;
181
+        day = `0${day}`
181
       }
182
       }
182
 
183
 
183
-      this.endTime = `${year}-${month}-${day}`;
184
-      this.dryweight = [];
184
+      this.endTime = `${year}-${month}-${day}`
185
+      this.dryweight = []
185
       this.getDryWeight(
186
       this.getDryWeight(
186
         this.patient_id,
187
         this.patient_id,
187
         this.startTime,
188
         this.startTime,
188
         this.endTime,
189
         this.endTime,
189
         this.limit,
190
         this.limit,
190
         this.page
191
         this.page
191
-      );
192
-      this.endShow = false;
192
+      )
193
+      this.endShow = false
193
     },
194
     },
194
-    getDryWeight(patientid) {
195
+    getDryWeight (patientid) {
195
       getDryWeight(
196
       getDryWeight(
196
         patientid,
197
         patientid,
197
         this.startTime,
198
         this.startTime,
200
         this.page
201
         this.page
201
       ).then(response => {
202
       ).then(response => {
202
         if (response.data.state === 1) {
203
         if (response.data.state === 1) {
203
-          var dryweight = response.data.data.dryweight;
204
-          let arr = this.dryweight;
205
-          arr.push(...dryweight);
206
-          this.dryweight = arr;
207
-          var total = response.data.data.total;
208
-          this.total = total;
209
-          this.loading = false;
204
+          var dryweight = response.data.data.dryweight
205
+          let arr = this.dryweight
206
+          arr.push(...dryweight)
207
+          this.dryweight = arr
208
+          var total = response.data.data.total
209
+          this.total = total
210
+          this.loading = false
210
         }
211
         }
211
-      });
212
+      })
212
     },
213
     },
213
-    getDryWeight1(patientid) {
214
+    getDryWeight1 (patientid) {
214
       getDryWeight(
215
       getDryWeight(
215
         patientid,
216
         patientid,
216
         this.startTime,
217
         this.startTime,
219
         this.page
220
         this.page
220
       ).then(response => {
221
       ).then(response => {
221
         if (response.data.state === 1) {
222
         if (response.data.state === 1) {
222
-          var dryweight = response.data.data.dryweight;
223
-          this.dryweight = dryweight;
223
+          var dryweight = response.data.data.dryweight
224
+          this.dryweight = dryweight
224
 
225
 
225
-          var total = response.data.data.total;
226
+          var total = response.data.data.total
226
 
227
 
227
-          this.total = total;
228
-          this.loading = false;
228
+          this.total = total
229
+          this.loading = false
229
         }
230
         }
230
-      });
231
+      })
231
     },
232
     },
232
-    onLoad() {
233
+    onLoad () {
233
       setTimeout(() => {
234
       setTimeout(() => {
234
-        this.page++;
235
+        this.page++
235
         if (this.page <= Math.ceil(this.total / 10)) {
236
         if (this.page <= Math.ceil(this.total / 10)) {
236
           this.getDryWeight(
237
           this.getDryWeight(
237
             this.patient_id,
238
             this.patient_id,
239
             this.endTimes,
240
             this.endTimes,
240
             this.limit,
241
             this.limit,
241
             this.page
242
             this.page
242
-          );
243
+          )
243
         } else {
244
         } else {
244
-          this.loading = false;
245
-          this.finished = true;
245
+          this.loading = false
246
+          this.finished = true
246
         }
247
         }
247
-      }, 1000);
248
+      }, 1000)
248
     },
249
     },
249
-    getTime(time) {
250
+    getTime (time) {
250
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
251
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
251
-      return uParseTime(time, "{y}-{m}-{d}");
252
+      return uParseTime(time, '{y}-{m}-{d}')
252
     },
253
     },
253
-    DeleteDryWeightOne(id, index) {
254
-      this.newShow = true;
255
-      this.dry_id = id;
256
-      this.dry_index = index;
254
+    DeleteDryWeightOne (id, index) {
255
+      this.newShow = true
256
+      this.dry_id = id
257
+      this.dry_index = index
257
     },
258
     },
258
-    onDeleteConfirm(value) {
259
-      if (value.name == "查看全部") {
260
-        var patientid = this.$route.query.patientid;
259
+    onDeleteConfirm (value) {
260
+      if (value.name == '查看全部') {
261
+        var patientid = this.$route.query.patientid
261
         this.$router.push(
262
         this.$router.push(
262
-          "/dryweight?id=" +
263
+          '/dryweight?id=' +
263
             this.dry_id +
264
             this.dry_id +
264
-            "&patientid=" +
265
+            '&patientid=' +
265
             patientid +
266
             patientid +
266
-            "&active=" +
267
+            '&active=' +
267
             this.active
268
             this.active
268
-        );
269
+        )
269
       }
270
       }
270
-      if (value.name == "全部删除") {
271
-        this.DeleteDryWeight(this.dry_id, this.dry_index);
271
+      if (value.name == '全部删除') {
272
+        this.DeleteDryWeight(this.dry_id, this.dry_index)
272
       }
273
       }
273
     },
274
     },
274
-    DeleteDryWeight(id, index) {
275
+    DeleteDryWeight (id, index) {
275
       Dialog.confirm({
276
       Dialog.confirm({
276
-        title: "删除提示!",
277
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
277
+        title: '删除提示!',
278
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
278
       }).then(() => {
279
       }).then(() => {
279
         DeleteDryWeight(id).then(response => {
280
         DeleteDryWeight(id).then(response => {
280
           if (response.data.state === 1) {
281
           if (response.data.state === 1) {
281
-            var msg = response.data.data.msg;
282
+            var msg = response.data.data.msg
282
             // console.log("msg", msg);
283
             // console.log("msg", msg);
283
-            this.dryweight.splice(index, 1);
284
-            this.newShow = false;
284
+            this.dryweight.splice(index, 1)
285
+            this.newShow = false
285
           }
286
           }
286
-        });
287
-      });
287
+        })
288
+      })
288
     },
289
     },
289
-    getDryWeightDetail(id) {
290
-      var patientid = this.$route.query.patientid;
290
+    getDryWeightDetail (id) {
291
+      var patientid = this.$route.query.patientid
291
       this.$router.push(
292
       this.$router.push(
292
-        "/dryweight?id=" +
293
+        '/dryweight?id=' +
293
           id +
294
           id +
294
-          "&patientid=" +
295
+          '&patientid=' +
295
           patientid +
296
           patientid +
296
-          "&active=" +
297
+          '&active=' +
297
           this.active
298
           this.active
298
-      );
299
+      )
299
     },
300
     },
300
-    getPatientDetail(patientid) {
301
+    getPatientDetail (patientid) {
301
       getPatientDetail(patientid).then(response => {
302
       getPatientDetail(patientid).then(response => {
302
         if (response.data.state === 1) {
303
         if (response.data.state === 1) {
303
-          var patientDetail = response.data.data.patientDetail;
304
+          var patientDetail = response.data.data.patientDetail
304
           if (patientDetail.blood_patients == 0) {
305
           if (patientDetail.blood_patients == 0) {
305
-            this.dryweight = [];
306
-            this.showOne = false;
307
-            this.showTwo = true;
306
+            this.dryweight = []
307
+            this.showOne = false
308
+            this.showTwo = true
308
           }
309
           }
309
           if (patientDetail.blood_patients == 1) {
310
           if (patientDetail.blood_patients == 1) {
310
-            this.showOne = true;
311
-            this.showTwo = false;
311
+            this.showOne = true
312
+            this.showTwo = false
312
           }
313
           }
313
           // console.log("病人详情", patientDetail);
314
           // console.log("病人详情", patientDetail);
314
-          this.patientName = patientDetail.name;
315
+          this.patientName = patientDetail.name
316
+        }
317
+      })
318
+    },
319
+    getNewPatientId (id) {
320
+      getNewPatientId(id).then(response => {
321
+        if (response.data.state == 1) {
322
+          var patient = response.data.data.patient
323
+          this.getDryWeight(patient.id)
324
+          this.patient_id = patient.id
325
+          this.getPatientDetail(patient.id)
315
         }
326
         }
316
-      });
327
+      })
317
     }
328
     }
318
   },
329
   },
319
-  created() {
320
-    // console.log("created");
321
-    // this.loading = true;
322
-    var patientid = this.$route.query.patientid;
330
+  created () {
331
+    var patientid = this.$route.query.patient_id
332
+    this.getNewPatientId(patientid)
323
     // console.log("干体重id", patientid);
333
     // console.log("干体重id", patientid);
324
-    this.getDryWeight(patientid);
325
-    this.patient_id = patientid;
326
-    this.getPatientDetail(patientid);
327
   }
334
   }
328
-};
335
+}
329
 </script>
336
 </script>
330
 
337
 
331
 <style lang="scss" scoped>
338
 <style lang="scss" scoped>
448
     transform: translate3d(0, 0, 0);
455
     transform: translate3d(0, 0, 0);
449
     top: initial;
456
     top: initial;
450
   }
457
   }
451
-  
458
+
452
 }
459
 }
453
 ::-webkit-scrollbar {
460
 ::-webkit-scrollbar {
454
   width: 0;
461
   width: 0;

+ 1 - 1
src/pages/main/dialysis/LongTable.vue View File

1243
           "/alllongdialysis?id=" +
1243
           "/alllongdialysis?id=" +
1244
             this.id +
1244
             this.id +
1245
             "&patientid=" +
1245
             "&patientid=" +
1246
-            newpatientid +
1246
+            this.newpatientid +
1247
             "&active=" +
1247
             "&active=" +
1248
             this.active
1248
             this.active
1249
         );
1249
         );

+ 14 - 7
src/pages/main/dialysis/MissionTable.vue View File

306
 
306
 
307
 <script>
307
 <script>
308
 import {
308
 import {
309
+  getNewPatientId,
309
   getPatientDetail,
310
   getPatientDetail,
310
   getEducation,
311
   getEducation,
311
   DeleteEducationOne
312
   DeleteEducationOne
501
           }
502
           }
502
         });
503
         });
503
       });
504
       });
505
+    },
506
+    getNewPatientId(id){
507
+      getNewPatientId(id).then(response=>{
508
+         if(response.data.state == 1){
509
+          var patient =  response.data.data.patient
510
+          this.getPatientDetail(patient.id);
511
+          this.getEducation(patient.id);
512
+          this.patient_id = patient.id;
513
+         }
514
+      })
504
     }
515
     }
505
   },
516
   },
506
   created() {
517
   created() {
507
-    var patientid = this.$route.query.patientid;
508
-    this.getPatientDetail(patientid);
509
-    this.getEducation(patientid);
510
-    this.patient_id = patientid;
518
+    var patientid = this.$route.query.patient_id;
519
+    this.getNewPatientId(patientid)
520
+
511
   }
521
   }
512
 };
522
 };
513
 </script>
523
 </script>
514
 
524
 
515
-
516
 <style lang="scss" scoped>
525
 <style lang="scss" scoped>
517
 .newEducation {
526
 .newEducation {
518
   height: 100%;
527
   height: 100%;
644
 }
653
 }
645
 </style>
654
 </style>
646
 
655
 
647
-
648
-
649
 <style style="stylesheet/scss" lang="scss" scoped>
656
 <style style="stylesheet/scss" lang="scss" scoped>
650
 // .choice {
657
 // .choice {
651
 //   border-bottom: 1px #e5e5e5 solid;
658
 //   border-bottom: 1px #e5e5e5 solid;

+ 13 - 4
src/pages/main/dialysis/RescueRecord.vue View File

99
 
99
 
100
 <script>
100
 <script>
101
 import {
101
 import {
102
+  getNewPatientId,
102
   getPatientDetail,
103
   getPatientDetail,
103
   getRescueRecord,
104
   getRescueRecord,
104
   DeleteRescueRecord
105
   DeleteRescueRecord
297
           }
298
           }
298
         })
299
         })
299
       })
300
       })
301
+    },
302
+    getNewPatientId (id) {
303
+      getNewPatientId(id).then(response => {
304
+        if (response.data.state == 1) {
305
+          var patient = response.data.data.patient
306
+          this.patient_id = patient.id
307
+          this.getPatientDetail(patient.id)
308
+          this.getRescueRecord(patient.id)
309
+        }
310
+      })
300
     }
311
     }
301
   },
312
   },
302
   created () {
313
   created () {
303
-    var patientid = this.$route.query.patientid
314
+    var patientid = this.$route.query.patient_id
315
+    this.getNewPatientId(patientid)
304
     // console.log("病人id能否获取", patientid);
316
     // console.log("病人id能否获取", patientid);
305
-    this.patient_id = patientid
306
-    this.getPatientDetail(patientid)
307
-    this.getRescueRecord(patientid)
308
   }
317
   }
309
 }
318
 }
310
 </script>
319
 </script>

+ 17 - 16
src/pages/main/dialysis/SchedulTable.vue View File

233
 
233
 
234
 <script>
234
 <script>
235
 import {
235
 import {
236
+  getNewPatientId,
236
   getPatientDetail,
237
   getPatientDetail,
237
   getScheduling,
238
   getScheduling,
238
-  DeleteScheduling
239
+  DeleteScheduling,
239
 } from "@/api/patient/patient";
240
 } from "@/api/patient/patient";
240
 import { uParseTime } from "@/utils/tools";
241
 import { uParseTime } from "@/utils/tools";
241
 import Vue from "vue";
242
 import Vue from "vue";
597
       }, 3000);
598
       }, 3000);
598
     },
599
     },
599
     toEditSchduling(id) {
600
     toEditSchduling(id) {
600
-      var patientid = this.$route.query.patientid;
601
       this.$router.push(
601
       this.$router.push(
602
         "/newScheduling?id=" +
602
         "/newScheduling?id=" +
603
           id +
603
           id +
604
           "&patientid=" +
604
           "&patientid=" +
605
-          patientid +
606
-          "&active=" +
607
-          this.active
605
+          this.patient_id
608
       );
606
       );
609
     },
607
     },
610
     toDelete(id, index) {
608
     toDelete(id, index) {
616
       if (value.name == "查看全部") {
614
       if (value.name == "查看全部") {
617
         var patientid = this.$route.query.patientid;
615
         var patientid = this.$route.query.patientid;
618
         this.$router.push(
616
         this.$router.push(
619
-          "/editScheduling?id=" +
617
+          "/newScheduling?id=" +
620
             this.id +
618
             this.id +
621
             "&patientid=" +
619
             "&patientid=" +
622
-            patientid +
623
-            "&active=" +
624
-            this.active
620
+            this.patient_id
625
         );
621
         );
626
       }
622
       }
627
       if (value.name == "全部删除") {
623
       if (value.name == "全部删除") {
642
           }
638
           }
643
         });
639
         });
644
       });
640
       });
641
+    },
642
+    getNewPatientId(id){
643
+      getNewPatientId(id).then(response=>{
644
+         if(response.data.state == 1){
645
+          var patient =  response.data.data.patient
646
+          this.patient_id = patient.id
647
+          this.getPatientDetail(patient.id);
648
+          this.getScheduling(patient.id);
649
+         }
650
+      })
645
     }
651
     }
646
   },
652
   },
647
   created() {
653
   created() {
648
-    var patientid = this.$route.query.patientid;
649
-    this.getPatientDetail(patientid);
650
-    this.getScheduling(patientid);
651
-    this.patient_id = patientid;
654
+    var patientid = this.$route.query.patient_id
655
+    this.getNewPatientId(patientid)
652
   }
656
   }
653
 };
657
 };
654
 </script>
658
 </script>
655
 
659
 
656
-
657
 <style lang="scss" scoped>
660
 <style lang="scss" scoped>
658
 .newScheduling {
661
 .newScheduling {
659
   height: 100%;
662
   height: 100%;
788
 }
791
 }
789
 </style>
792
 </style>
790
 
793
 
791
-
792
-
793
 <style style="stylesheet/scss" lang="scss" scoped>
794
 <style style="stylesheet/scss" lang="scss" scoped>
794
 // .schedulTable {
795
 // .schedulTable {
795
 //   width: 100%;
796
 //   width: 100%;

+ 23 - 23
src/pages/main/records/CaseHistory.vue View File

24
 </template>
24
 </template>
25
 
25
 
26
 <script>
26
 <script>
27
-import { GetInspection } from "@/api/check";
28
-import RecordsTab from "./RecordsTab";
29
-import AdviceTable from "../dialysis/AdviceTable";
30
-import CheckTab from "../dialysis/CheckTab";
31
-import DryWeight from "../dialysis/DryWeight";
32
-import CourseManagement from "../dialysis/CourseManagement";
33
-import RescueRecord from "../dialysis/RescueRecord";
27
+import { GetInspection } from '@/api/check'
28
+import RecordsTab from './RecordsTab'
29
+import AdviceTable from '../dialysis/AdviceTable'
30
+import CheckTab from '../dialysis/CheckTab'
31
+import DryWeight from '../dialysis/DryWeight'
32
+import CourseManagement from '../dialysis/CourseManagement'
33
+import RescueRecord from '../dialysis/RescueRecord'
34
 
34
 
35
 export default {
35
 export default {
36
-  name: "CaseHistory",
37
-  created() {
38
-    this.patient = this.$route.query.patient_id;
39
-    this.GetList();
36
+  name: 'CaseHistory',
37
+  created () {
38
+    this.patient = this.$route.query.patient_id
39
+    this.GetList()
40
   },
40
   },
41
-  data() {
41
+  data () {
42
     return {
42
     return {
43
       index: 0,
43
       index: 0,
44
       inspectionDate: [],
44
       inspectionDate: [],
45
       patient: 0
45
       patient: 0
46
-    };
46
+    }
47
   },
47
   },
48
 
48
 
49
   components: {
49
   components: {
55
     RescueRecord
55
     RescueRecord
56
   },
56
   },
57
   methods: {
57
   methods: {
58
-    ClickTab: function(tabIndex, row) {
59
-      this.index = tabIndex;
58
+    ClickTab: function (tabIndex, row) {
59
+      this.index = tabIndex
60
       if (this.index == 1) {
60
       if (this.index == 1) {
61
-        this.$refs.item.GetList(row.project_id, row);
61
+        this.$refs.item.GetList(row.project_id, row)
62
       }
62
       }
63
     },
63
     },
64
-    GetList: function() {
64
+    GetList: function () {
65
       let params = {
65
       let params = {
66
         patient: this.patient
66
         patient: this.patient
67
-      };
67
+      }
68
       GetInspection(params).then(response => {
68
       GetInspection(params).then(response => {
69
-        this.inspectionDate = [];
69
+        this.inspectionDate = []
70
         if (response.data.state == 1) {
70
         if (response.data.state == 1) {
71
-          this.inspectionDate = response.data.data.reference;
72
-          this.$refs.item.GetList(1, this.inspectionDate[0]);
71
+          this.inspectionDate = response.data.data.reference
72
+          this.$refs.item.GetList(1, this.inspectionDate[0])
73
         }
73
         }
74
-      });
74
+      })
75
     }
75
     }
76
   }
76
   }
77
-};
77
+}
78
 </script>
78
 </script>
79
 
79
 
80
 <style style="stylesheet/scss" lang="scss" scoped>
80
 <style style="stylesheet/scss" lang="scss" scoped>