Browse Source

表格修改

xiaoming_global 5 years ago
parent
commit
9834cc7fa5

+ 10 - 0
src/pages/advice/AdvicePage.vue View File

174
     border-radius: 30px;
174
     border-radius: 30px;
175
     border: none;
175
     border: none;
176
     font-size: 0.45rem;
176
     font-size: 0.45rem;
177
+    @media only screen and (min-width: 768px) {
178
+      padding-left: 0.9rem;
179
+    }
177
   }
180
   }
178
   .el-input__icon {
181
   .el-input__icon {
179
     line-height: 1rem;
182
     line-height: 1rem;
180
     font-size: 0.45rem;
183
     font-size: 0.45rem;
184
+    margin-top: 0.02rem;
185
+    padding-left: 0.1rem;
186
+  }
187
+  .el-input__prefix {
188
+    @media only screen and (min-width: 768px) {
189
+      left: 10px;
190
+    }
181
   }
191
   }
182
 }
192
 }
183
 </style>
193
 </style>

+ 127 - 122
src/pages/advice/DialysisAdviceTable.vue View File

71
 
71
 
72
     <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
72
     <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
73
       <div class="blueBorder"></div>
73
       <div class="blueBorder"></div>
74
-<!--
74
+      <!--
75
       <table class="table">
75
       <table class="table">
76
       <tr>
76
       <tr>
77
         <th width="50px">姓名</th>
77
         <th width="50px">姓名</th>
156
           </template>
156
           </template>
157
         </template>
157
         </template>
158
       </template>
158
       </template>
159
-      </table> -->
159
+      </table>-->
160
 
160
 
161
       <div class="NoData" v-show="zones.length <= 1">
161
       <div class="NoData" v-show="zones.length <= 1">
162
         <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
162
         <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
163
       </div>
163
       </div>
164
       <el-table :data="date" border style="width: 100%">
164
       <el-table :data="date" border style="width: 100%">
165
         <el-table-column fixed prop="date" label="姓名" width="100" align="center">
165
         <el-table-column fixed prop="date" label="姓名" width="100" align="center">
166
+<<<<<<< .mine
166
             <template slot-scope="scope">
167
             <template slot-scope="scope">
167
                {{ scope.row.advice_name }}
168
                {{ scope.row.advice_name }}
168
             </template>
169
             </template>
170
+=======
171
+          <template slot-scope="scope"></template>
172
+
173
+
174
+>>>>>>> .theirs
169
         </el-table-column>
175
         </el-table-column>
170
         <el-table-column prop="name" label="透析号" width="100" align="center"></el-table-column>
176
         <el-table-column prop="name" label="透析号" width="100" align="center"></el-table-column>
171
         <el-table-column prop="province" label="期效" width="100" align="center"></el-table-column>
177
         <el-table-column prop="province" label="期效" width="100" align="center"></el-table-column>
193
 </template>
199
 </template>
194
 
200
 
195
 <script>
201
 <script>
196
-import SideBar from '@/pages/layout/SideBar'
197
-import { parseTime } from '@/utils'
198
-import { getSchedualDoctors } from '@/api/advice'
202
+import SideBar from "@/pages/layout/SideBar";
203
+import { parseTime } from "@/utils";
204
+import { getSchedualDoctors } from "@/api/advice";
199
 
205
 
200
 export default {
206
 export default {
201
-  name: 'DialysisAdviceTable',
207
+  name: "DialysisAdviceTable",
202
   components: {
208
   components: {
203
     SideBar
209
     SideBar
204
   },
210
   },
205
-  data () {
211
+  data() {
206
     return {
212
     return {
207
       selected_date: new Date(),
213
       selected_date: new Date(),
208
       admin_user: [],
214
       admin_user: [],
210
       show_sch_type_selector: false,
216
       show_sch_type_selector: false,
211
       schedule_type_selected: 0,
217
       schedule_type_selected: 0,
212
       schedule_types: [
218
       schedule_types: [
213
-        { value: 0, text: '全部班次' },
214
-        { value: 1, text: '上午' },
215
-        { value: 2, text: '下午' },
216
-        { value: 3, text: '晚上' }
219
+        { value: 0, text: "全部班次" },
220
+        { value: 1, text: "上午" },
221
+        { value: 2, text: "下午" },
222
+        { value: 3, text: "晚上" }
217
       ],
223
       ],
218
 
224
 
219
       show_zone_selector: false,
225
       show_zone_selector: false,
220
       zone_selected: 0,
226
       zone_selected: 0,
221
       show_patient_type_selector: false,
227
       show_patient_type_selector: false,
222
-      zones: [{ value: 0, text: '全部分区', select: true }],
228
+      zones: [{ value: 0, text: "全部分区", select: true }],
223
 
229
 
224
       show_advice_type_selector: false,
230
       show_advice_type_selector: false,
225
       advice_type_selected: 0,
231
       advice_type_selected: 0,
226
       advice_types: [
232
       advice_types: [
227
-        { value: 0, text: '全部医嘱' },
228
-        { value: 1, text: '长期医嘱' },
229
-        { value: 3, text: '临时医嘱' }
233
+        { value: 0, text: "全部医嘱" },
234
+        { value: 1, text: "长期医嘱" },
235
+        { value: 3, text: "临时医嘱" }
230
       ],
236
       ],
231
 
237
 
232
       patient_types: [
238
       patient_types: [
233
-        { value: 0, text: '全部病人' },
234
-        { value: 1, text: '我的病人' },
235
-        { value: 2, text: '未执行病人' }
239
+        { value: 0, text: "全部病人" },
240
+        { value: 1, text: "我的病人" },
241
+        { value: 2, text: "未执行病人" }
236
       ],
242
       ],
237
       patient_selected: 0,
243
       patient_selected: 0,
238
 
244
 
239
       scheduleMap: {},
245
       scheduleMap: {},
240
       tableData: []
246
       tableData: []
241
-
242
-    }
247
+    };
243
   },
248
   },
244
   computed: {
249
   computed: {
245
-    selected_date_str: function () {
246
-      return parseTime(this.selected_date, '{y}-{m}-{d}')
250
+    selected_date_str: function() {
251
+      return parseTime(this.selected_date, "{y}-{m}-{d}");
247
     },
252
     },
248
-    filtedScheduals: function () {
249
-      var scheduleMap = new Object()
253
+    filtedScheduals: function() {
254
+      var scheduleMap = new Object();
250
       if (this.zone_selected == 0) {
255
       if (this.zone_selected == 0) {
251
         for (const key in this.scheduleMap) {
256
         for (const key in this.scheduleMap) {
252
-          scheduleMap[key] = this.scheduleMap[key]
257
+          scheduleMap[key] = this.scheduleMap[key];
253
         }
258
         }
254
       } else {
259
       } else {
255
-        var zone_name = this.zones[this.zone_selected].text
256
-        scheduleMap[zone_name] = this.scheduleMap[zone_name]
260
+        var zone_name = this.zones[this.zone_selected].text;
261
+        scheduleMap[zone_name] = this.scheduleMap[zone_name];
257
       }
262
       }
258
 
263
 
259
       if (this.schedule_type_selected != 0) {
264
       if (this.schedule_type_selected != 0) {
260
-        var _scheduleMap = {}
265
+        var _scheduleMap = {};
261
         for (const key in scheduleMap) {
266
         for (const key in scheduleMap) {
262
-          var origin_schedules = scheduleMap[key]
263
-          var schedules = []
267
+          var origin_schedules = scheduleMap[key];
268
+          var schedules = [];
264
           for (let index = 0; index < origin_schedules.length; index++) {
269
           for (let index = 0; index < origin_schedules.length; index++) {
265
-            const schedule = origin_schedules[index]
270
+            const schedule = origin_schedules[index];
266
             if (schedule.schedule_type == this.schedule_type_selected) {
271
             if (schedule.schedule_type == this.schedule_type_selected) {
267
-              schedules.push(schedule)
272
+              schedules.push(schedule);
268
             }
273
             }
269
           }
274
           }
270
           if (schedules.length > 0) {
275
           if (schedules.length > 0) {
271
-            _scheduleMap[key] = schedules
276
+            _scheduleMap[key] = schedules;
272
           }
277
           }
273
         }
278
         }
274
 
279
 
275
-        scheduleMap = _scheduleMap
280
+        scheduleMap = _scheduleMap;
276
       }
281
       }
277
       for (var key in scheduleMap) {
282
       for (var key in scheduleMap) {
278
-        let mapArr = scheduleMap[key]
283
+        let mapArr = scheduleMap[key];
279
         for (let i = 0; i < mapArr.length; i++) {
284
         for (let i = 0; i < mapArr.length; i++) {
280
-          mapArr[i]['new_advice'] = []
285
+          mapArr[i]["new_advice"] = [];
281
         }
286
         }
282
       }
287
       }
283
 
288
 
284
       for (var key in scheduleMap) {
289
       for (var key in scheduleMap) {
285
-        let mapArr = scheduleMap[key]
290
+        let mapArr = scheduleMap[key];
286
         for (let i = 0; i < mapArr.length; i++) {
291
         for (let i = 0; i < mapArr.length; i++) {
287
-          var maps = mapArr[i]
288
-          var resp_advices = maps.doctor_advice
292
+          var maps = mapArr[i];
293
+          var resp_advices = maps.doctor_advice;
289
           if (resp_advices.length > 0) {
294
           if (resp_advices.length > 0) {
290
-            var newGroupObject = function () {
295
+            var newGroupObject = function() {
291
               return Object.assign(
296
               return Object.assign(
292
                 {},
297
                 {},
293
                 {
298
                 {
294
                   group_no: 0,
299
                   group_no: 0,
295
                   advices: []
300
                   advices: []
296
                 }
301
                 }
297
-              )
298
-            }
299
-            var initGroupBlock = function (group, advice) {
300
-              group.group_no = advice.groupno
301
-            }
302
+              );
303
+            };
304
+            var initGroupBlock = function(group, advice) {
305
+              group.group_no = advice.groupno;
306
+            };
302
 
307
 
303
-            var advice_groups = []
304
-            var group = newGroupObject()
308
+            var advice_groups = [];
309
+            var group = newGroupObject();
305
             for (let index = 0; index < resp_advices.length; index++) {
310
             for (let index = 0; index < resp_advices.length; index++) {
306
-              const advice = resp_advices[index]
311
+              const advice = resp_advices[index];
307
               if (advice.groupno == 0) {
312
               if (advice.groupno == 0) {
308
                 // 老版本的医嘱
313
                 // 老版本的医嘱
309
                 if (advice.parent_id > 0) {
314
                 if (advice.parent_id > 0) {
310
                   if (advice_groups.length > 0) {
315
                   if (advice_groups.length > 0) {
311
-                    var parent_group = advice_groups[advice_groups.length - 1]
316
+                    var parent_group = advice_groups[advice_groups.length - 1];
312
                     if (parent_group.advices.length > 0) {
317
                     if (parent_group.advices.length > 0) {
313
                       if (parent_group.advices[0].id == advice.parent_id) {
318
                       if (parent_group.advices[0].id == advice.parent_id) {
314
-                        parent_group.advices.push(advice)
319
+                        parent_group.advices.push(advice);
315
                       }
320
                       }
316
                     }
321
                     }
317
                   }
322
                   }
318
-                  continue
323
+                  continue;
319
                 } else {
324
                 } else {
320
                   if (group.group_no > 0) {
325
                   if (group.group_no > 0) {
321
-                    advice_groups.push(group)
322
-                    group = newGroupObject()
326
+                    advice_groups.push(group);
327
+                    group = newGroupObject();
323
                   }
328
                   }
324
 
329
 
325
-                  initGroupBlock(group, advice)
326
-                  group.advices.push(advice)
327
-                  advice_groups.push(group)
328
-                  group = newGroupObject()
329
-                  continue
330
+                  initGroupBlock(group, advice);
331
+                  group.advices.push(advice);
332
+                  advice_groups.push(group);
333
+                  group = newGroupObject();
334
+                  continue;
330
                 }
335
                 }
331
               } else {
336
               } else {
332
                 if (group.group_no > 0 && group.group_no != advice.groupno) {
337
                 if (group.group_no > 0 && group.group_no != advice.groupno) {
333
-                  advice_groups.push(group)
334
-                  group = newGroupObject()
338
+                  advice_groups.push(group);
339
+                  group = newGroupObject();
335
                 }
340
                 }
336
                 if (group.group_no == 0) {
341
                 if (group.group_no == 0) {
337
-                  initGroupBlock(group, advice)
342
+                  initGroupBlock(group, advice);
338
                 }
343
                 }
339
                 if (group.group_no == advice.groupno) {
344
                 if (group.group_no == advice.groupno) {
340
-                  group.advices.push(advice)
345
+                  group.advices.push(advice);
341
                 }
346
                 }
342
               }
347
               }
343
             }
348
             }
344
             if (group.group_no > 0) {
349
             if (group.group_no > 0) {
345
               // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
350
               // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
346
-              advice_groups.push(group)
351
+              advice_groups.push(group);
347
             }
352
             }
348
-            advice_groups = advice_groups
353
+            advice_groups = advice_groups;
349
           } else {
354
           } else {
350
-            advice_groups = []
355
+            advice_groups = [];
351
           }
356
           }
352
-          maps.new_advice = advice_groups
357
+          maps.new_advice = advice_groups;
353
         }
358
         }
354
       }
359
       }
355
 
360
 
356
-      return scheduleMap
361
+      return scheduleMap;
357
     }
362
     }
358
   },
363
   },
359
-  created () {
360
-    this.requestSchedualDoctors()
364
+  created() {
365
+    this.requestSchedualDoctors();
361
   },
366
   },
362
   methods: {
367
   methods: {
363
     // getNumber: function (advice,schedule) {
368
     // getNumber: function (advice,schedule) {
371
     //   }
376
     //   }
372
     //
377
     //
373
     // },
378
     // },
374
-    clickfunction: function (val) {
379
+    clickfunction: function(val) {
375
       // console.log(val);
380
       // console.log(val);
376
       this.$router.push({
381
       this.$router.push({
377
-        path: '/details',
382
+        path: "/details",
378
         query: {
383
         query: {
379
           patient_id: val.patient.id,
384
           patient_id: val.patient.id,
380
           date: this.selected_date.getTime() / 1000,
385
           date: this.selected_date.getTime() / 1000,
381
           patient_name: val.patient.name
386
           patient_name: val.patient.name
382
         }
387
         }
383
-      })
388
+      });
384
     },
389
     },
385
-    handlePaitentType: function (index) {
386
-      this.patient_selected = index
387
-      this.show_patient_type_selector = false
388
-      this.requestSchedualDoctors()
390
+    handlePaitentType: function(index) {
391
+      this.patient_selected = index;
392
+      this.show_patient_type_selector = false;
393
+      this.requestSchedualDoctors();
389
     },
394
     },
390
-    openPicker () {
391
-      this.$refs.picker.open()
395
+    openPicker() {
396
+      this.$refs.picker.open();
392
     },
397
     },
393
-    getAdaviceType (type, parent_id) {
398
+    getAdaviceType(type, parent_id) {
394
       if (parent_id == 0) {
399
       if (parent_id == 0) {
395
         if (type == 1) {
400
         if (type == 1) {
396
-          return '长嘱'
401
+          return "长嘱";
397
         } else if (type == 2) {
402
         } else if (type == 2) {
398
-          return '临嘱'
403
+          return "临嘱";
399
         } else if (type == 3) {
404
         } else if (type == 3) {
400
-          return '临嘱'
405
+          return "临嘱";
401
         }
406
         }
402
       }
407
       }
403
     },
408
     },
404
-    getName (val) {
405
-      console.log(this.admin_user)
409
+    getName(val) {
410
+      console.log(this.admin_user);
406
 
411
 
407
       for (let i = 0; i < this.admin_user.length; i++) {
412
       for (let i = 0; i < this.admin_user.length; i++) {
408
         if (this.admin_user[i].id == val) {
413
         if (this.admin_user[i].id == val) {
409
-          return this.admin_user[i].name
414
+          return this.admin_user[i].name;
410
         }
415
         }
411
       }
416
       }
412
     },
417
     },
413
-    handletimeType: function (index) {
414
-      this.schedule_type_selected = index
415
-      this.show_sch_type_selector = false
418
+    handletimeType: function(index) {
419
+      this.schedule_type_selected = index;
420
+      this.show_sch_type_selector = false;
416
     },
421
     },
417
-    handleAdviceType: function (index) {
418
-      this.advice_type_selected = index
419
-      this.show_advice_type_selector = false
420
-      this.requestSchedualDoctors()
422
+    handleAdviceType: function(index) {
423
+      this.advice_type_selected = index;
424
+      this.show_advice_type_selector = false;
425
+      this.requestSchedualDoctors();
421
     },
426
     },
422
-    handleZoneChange: function (index) {
423
-      this.zone_selected = index
424
-      this.show_zone_selector = false
427
+    handleZoneChange: function(index) {
428
+      this.zone_selected = index;
429
+      this.show_zone_selector = false;
425
     },
430
     },
426
-    parseTime: function (time, layout) {
431
+    parseTime: function(time, layout) {
427
       // console.log(time);
432
       // console.log(time);
428
       if (time == 0) {
433
       if (time == 0) {
429
-        return ''
434
+        return "";
430
       }
435
       }
431
-      return parseTime(time, layout)
436
+      return parseTime(time, layout);
432
     },
437
     },
433
-    requestSchedualDoctors () {
438
+    requestSchedualDoctors() {
434
       getSchedualDoctors({
439
       getSchedualDoctors({
435
         date: this.selected_date_str,
440
         date: this.selected_date_str,
436
         patient_type: this.patient_selected,
441
         patient_type: this.patient_selected,
437
         advice_type: 2
442
         advice_type: 2
438
       }).then(rs => {
443
       }).then(rs => {
439
-        var resp = rs.data
444
+        var resp = rs.data;
440
         if (resp.state == 1) {
445
         if (resp.state == 1) {
441
-          this.admin_user = resp.data.adminUser
442
-          var schedules = resp.data.scheduals
443
-          console.log('schedules', schedules)
444
-          var zoneMap = {}
445
-          var scheduleMap = {}
446
+          this.admin_user = resp.data.adminUser;
447
+          var schedules = resp.data.scheduals;
448
+          console.log("schedules", schedules);
449
+          var zoneMap = {};
450
+          var scheduleMap = {};
446
           for (let index = 0; index < schedules.length; index++) {
451
           for (let index = 0; index < schedules.length; index++) {
447
-            const schedule = schedules[index]
452
+            const schedule = schedules[index];
448
             if (schedule.doctor_advice.length == 0) {
453
             if (schedule.doctor_advice.length == 0) {
449
-              continue
454
+              continue;
450
             }
455
             }
451
             if (scheduleMap[schedule.device_number.zone.name] == null) {
456
             if (scheduleMap[schedule.device_number.zone.name] == null) {
452
-              scheduleMap[schedule.device_number.zone.name] = []
457
+              scheduleMap[schedule.device_number.zone.name] = [];
453
             }
458
             }
454
-            scheduleMap[schedule.device_number.zone.name].push(schedule)
459
+            scheduleMap[schedule.device_number.zone.name].push(schedule);
455
             if (zoneMap[schedule.device_number.zone.name] == null) {
460
             if (zoneMap[schedule.device_number.zone.name] == null) {
456
               zoneMap[schedule.device_number.zone.name] =
461
               zoneMap[schedule.device_number.zone.name] =
457
-                schedule.device_number.zone
462
+                schedule.device_number.zone;
458
             }
463
             }
459
           }
464
           }
460
 
465
 
461
-          var zones = []
462
-          zones.push({ value: 0, text: '全部分区' })
466
+          var zones = [];
467
+          zones.push({ value: 0, text: "全部分区" });
463
           for (var zoneName in zoneMap) {
468
           for (var zoneName in zoneMap) {
464
-            zones.push({ value: zoneMap[zoneName].id, text: zoneName })
469
+            zones.push({ value: zoneMap[zoneName].id, text: zoneName });
465
           }
470
           }
466
 
471
 
467
-          zones = zones.sort(function (a, b) {
468
-            return a.value > b.value
469
-          })
470
-          this.zones = zones
472
+          zones = zones.sort(function(a, b) {
473
+            return a.value > b.value;
474
+          });
475
+          this.zones = zones;
471
 
476
 
472
-          this.scheduleMap = scheduleMap
477
+          this.scheduleMap = scheduleMap;
473
         } else {
478
         } else {
474
           this.$toast({
479
           this.$toast({
475
             message: resp.msg
480
             message: resp.msg
476
-          })
481
+          });
477
         }
482
         }
478
-      })
483
+      });
479
     },
484
     },
480
-    adviceDesc (advice) {}
485
+    adviceDesc(advice) {}
481
   }
486
   }
482
-}
487
+};
483
 </script>
488
 </script>
484
 
489
 
485
 <style style="stylesheet/scss" lang="scss" scoped>
490
 <style style="stylesheet/scss" lang="scss" scoped>

+ 13 - 10
src/pages/layout/SideBar.vue View File

56
 <style style="stylesheet/scss" lang="scss" scoped>
56
 <style style="stylesheet/scss" lang="scss" scoped>
57
 .redpoint {
57
 .redpoint {
58
   display: inline-block;
58
   display: inline-block;
59
-  height: 30px;
60
-  width: 30px;
61
-  line-height: 30px;
59
+  height: 26px;
60
+  width: 26px;
61
+  line-height: 26px;
62
   text-align: center;
62
   text-align: center;
63
-  font-size: 0.8em;
63
+  font-size: 0.34rem;
64
   border-radius: 20px;
64
   border-radius: 20px;
65
   color: #fff;
65
   color: #fff;
66
   background: #f56c6c;
66
   background: #f56c6c;
67
   position: absolute;
67
   position: absolute;
68
-  top: -1px;
69
-  right: -24px;
68
+  top: 3px;
69
+  right: -16px;
70
   @media only screen and (max-width: 767px) {
70
   @media only screen and (max-width: 767px) {
71
     height: 16px;
71
     height: 16px;
72
     width: 16px;
72
     width: 16px;
110
       flex-direction: row;
110
       flex-direction: row;
111
       justify-content: space-around;
111
       justify-content: space-around;
112
       height: 50px;
112
       height: 50px;
113
-
114
       padding: 0;
113
       padding: 0;
114
+      @media only screen and (min-width: 768px) {
115
+        height: 70px;
116
+      }
115
       li {
117
       li {
116
         height: 100%;
118
         height: 100%;
117
         display: flex;
119
         display: flex;
125
           @media only screen and (min-width: 768px) {
127
           @media only screen and (min-width: 768px) {
126
             display: flex;
128
             display: flex;
127
             align-items: center;
129
             align-items: center;
130
+            margin-bottom: 20px;
128
           }
131
           }
129
           p {
132
           p {
130
             font-size: 0.32rem;
133
             font-size: 0.32rem;
131
             margin-top: 0.05rem;
134
             margin-top: 0.05rem;
132
             @media only screen and (max-width: 812px) {
135
             @media only screen and (max-width: 812px) {
133
-              font-size: 0.4rem;
136
+              font-size: 0.45rem;
134
             }
137
             }
135
           }
138
           }
136
           .iconfont {
139
           .iconfont {
137
             font-size: 0.52rem;
140
             font-size: 0.52rem;
138
-            @media only screen and (max-width: 812px) {
139
-              font-size: 0.7rem;
141
+            @media only screen and (max-width: 768px) {
142
+              font-size: 0.8rem;
140
             }
143
             }
141
             display: inline-block;
144
             display: inline-block;
142
           }
145
           }

+ 8 - 4
src/pages/main/DetailsPage.vue View File

27
         <!-- <div class="time" style="width:1.49rem;">
27
         <!-- <div class="time" style="width:1.49rem;">
28
                   <span class="iconfont">2018-01-01&#xe74a;</span>
28
                   <span class="iconfont">2018-01-01&#xe74a;</span>
29
         </div>-->
29
         </div>-->
30
-        <div class="print" style="float: right; visibility: hidden;">
30
+        <div class="print" style="float: right; display:none">
31
           <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
31
           <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
32
         </div>
32
         </div>
33
       </div>
33
       </div>
174
       color: #fff;
174
       color: #fff;
175
     }
175
     }
176
     .nav {
176
     .nav {
177
+      margin-right: 2.5rem;
178
+      @media only screen and (min-width: 768px) {
179
+        margin-right: 4rem;
180
+      }
177
       ul {
181
       ul {
178
         li {
182
         li {
179
           float: left;
183
           float: left;
180
-          font-size: 0.36rem;
184
+          font-size: 0.45rem;
181
           margin: 0 0.2rem;
185
           margin: 0 0.2rem;
182
-          height: 0.64rem;
183
-          line-height: 0.64rem;
186
+          height: 0.7rem;
187
+          line-height: 0.7rem;
184
           padding: 0 0.3rem;
188
           padding: 0 0.3rem;
185
           cursor: pointer;
189
           cursor: pointer;
186
           color: #fff;
190
           color: #fff;

+ 6 - 6
src/pages/main/DialysisArea.vue View File

475
     @include align-items-center;
475
     @include align-items-center;
476
     @include text-align;
476
     @include text-align;
477
     @include justify-content-between;
477
     @include justify-content-between;
478
-    width: 80%;
478
+    width: 90%;
479
     margin: 0 auto;
479
     margin: 0 auto;
480
     li {
480
     li {
481
-      font-size: 0.32rem;
481
+      font-size: 0.45rem;
482
       padding: 0.3rem 0;
482
       padding: 0.3rem 0;
483
       cursor: pointer;
483
       cursor: pointer;
484
       .iconfont {
484
       .iconfont {
485
-        font-size: 0.32rem;
485
+        font-size: 0.45rem;
486
         color: #a8b3ba;
486
         color: #a8b3ba;
487
         margin-left: 0.1rem;
487
         margin-left: 0.1rem;
488
-        @media only screen and (max-width: 812px) {
489
-          font-size: 12px !important;
490
-        }
488
+        // @media only screen and (max-width: 768px) {
489
+        //   font-size: 0.45 !important;
490
+        // }
491
       }
491
       }
492
     }
492
     }
493
   }
493
   }

+ 3 - 3
src/pages/main/PatientBox.vue View File

356
         background: #c6cdd2;
356
         background: #c6cdd2;
357
         color: #fff;
357
         color: #fff;
358
         width: 1.45rem;
358
         width: 1.45rem;
359
-        height: 0.65rem;
360
-        line-height: 0.65rem;
359
+        height: 0.8rem;
360
+        line-height: 0.8rem;
361
         border-radius: 4px;
361
         border-radius: 4px;
362
         margin: 0 auto;
362
         margin: 0 auto;
363
         font-size: 0.32rem;
363
         font-size: 0.32rem;
417
 }
417
 }
418
 .yztx {
418
 .yztx {
419
   margin: 0 5px;
419
   margin: 0 5px;
420
-  padding: 3px 10px;
420
+  padding: 5px 10px;
421
   background-color: #f56c6c;
421
   background-color: #f56c6c;
422
   color: #fff;
422
   color: #fff;
423
   border-radius: 15px;
423
   border-radius: 15px;

+ 12 - 32
src/pages/main/RecordPage.vue View File

8
       </div>-->
8
       </div>-->
9
       <div class="floatLeft">
9
       <div class="floatLeft">
10
         <span class="title">{{ $store.getters.user.org.org_short_name }}</span>
10
         <span class="title">{{ $store.getters.user.org.org_short_name }}</span>
11
+        <router-link to="/add_urgent_schedule">
12
+          <p class="order">临时排班</p>
13
+        </router-link>
11
       </div>
14
       </div>
12
       <!-- </van-col> -->
15
       <!-- </van-col> -->
13
       <!-- <van-col :span="6">
16
       <!-- <van-col :span="6">
123
         @clear_search_keyword="clearKeyword"
126
         @clear_search_keyword="clearKeyword"
124
       ></dialysis-area>
127
       ></dialysis-area>
125
     </div>
128
     </div>
126
-    <router-link to="/add_urgent_schedule">
127
-      <div class="add">
128
-        <p>临时排班</p>
129
-      </div>
130
-    </router-link>
131
   </div>
129
   </div>
132
 </template>
130
 </template>
133
 
131
 
206
   .floatLeft {
204
   .floatLeft {
207
     line-height: 1rem;
205
     line-height: 1rem;
208
     height: 1rem;
206
     height: 1rem;
207
+    margin-top: 0.1rem;
208
+    .order {
209
+      float: right;
210
+      font-size: 0.45rem;
211
+      color: #fff;
212
+    }
209
   }
213
   }
210
   .search {
214
   .search {
211
     float: right;
215
     float: right;
274
   @media only screen and (max-width: 767px) {
278
   @media only screen and (max-width: 767px) {
275
     height: 16px;
279
     height: 16px;
276
     width: 16px;
280
     width: 16px;
277
-    line-height: 14px;
281
+    line-height: 15px;
278
   }
282
   }
279
 }
283
 }
280
 .box {
284
 .box {
311
     color: #258ffc;
315
     color: #258ffc;
312
   }
316
   }
313
 }
317
 }
314
-
315
-.add {
316
-  width: 1.8rem;
317
-  height: 1.8rem;
318
-  background: #f66c6c;
319
-  // box-shadow: 0px 3px 9px 0px rgba(7, 30, 102, 0.15);
320
-  border-radius: 50%;
321
-  position: fixed;
322
-  right: 0.6rem;
323
-  bottom: 2.25rem;
324
-  font-size: 0.45rem;
325
-  text-align: center;
326
-  p {
327
-    width: 30px;
328
-    text-align: center;
329
-    margin: 9px auto 0;
330
-    color: #fff;
331
-    // @media only screen and (min-width: 415px) and (max-width: 668px) {
332
-    //   width: 40px;
333
-    // }
334
-    @media only screen and (min-width: 768px) {
335
-      width: 50px;
336
-      margin: 14px auto 0;
337
-    }
338
-  }
339
-}
340
 </style>
318
 </style>
341
 <style lang="scss">
319
 <style lang="scss">
342
 .newInput {
320
 .newInput {
357
   .el-input__icon {
335
   .el-input__icon {
358
     line-height: 1rem;
336
     line-height: 1rem;
359
     font-size: 0.45rem;
337
     font-size: 0.45rem;
338
+    margin-top: 0.02rem;
339
+    padding-left: 0.1rem;
360
     @media only screen and (min-width: 768px) {
340
     @media only screen and (min-width: 768px) {
361
       margin-top: 1px;
341
       margin-top: 1px;
362
     }
342
     }

+ 3 - 3
src/pages/main/WaitingArea.vue View File

650
     @include align-items-center;
650
     @include align-items-center;
651
     @include text-align;
651
     @include text-align;
652
     @include justify-content-between;
652
     @include justify-content-between;
653
-    width: 82%;
653
+    width: 96%;
654
     margin: 0 auto;
654
     margin: 0 auto;
655
-    font-size: 0.32rem;
655
+    font-size: 0.45rem;
656
     color: $title-color;
656
     color: $title-color;
657
     li {
657
     li {
658
       padding: 0.3rem 0;
658
       padding: 0.3rem 0;
659
       .iconfont {
659
       .iconfont {
660
-        font-size: 0.32rem;
660
+        font-size: 0.45rem;
661
         margin-left: 0.1rem;
661
         margin-left: 0.1rem;
662
       }
662
       }
663
     }
663
     }

+ 387 - 316
src/pages/main/dialog/ComputerDialog.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-
4
     <div class="Dialog" v-show="!selecting">
3
     <div class="Dialog" v-show="!selecting">
5
       <div class="DialogTit">
4
       <div class="DialogTit">
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
5
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
         <h1 class="name">透析上机</h1>
6
         <h1 class="name">透析上机</h1>
8
-        <span class="success" v-if="this.record.id == 0 || this.$store.getters.user.user.id != this.creator"></span>
9
-        <span class="success" @click="modify()" v-if="isPremission|| this.$store.getters.user.user.id == this.creator">修改</span>
7
+        <span
8
+          class="success"
9
+          v-if="this.record.id == 0 || this.$store.getters.user.user.id != this.creator"
10
+        ></span>
11
+        <span
12
+          class="success"
13
+          @click="modify()"
14
+          v-if="isPremission|| this.$store.getters.user.user.id == this.creator"
15
+        >修改</span>
10
       </div>
16
       </div>
11
 
17
 
12
-      <div class="DialogContent ">
18
+      <div class="DialogContent">
13
         <div class="item" @click="select_bed">
19
         <div class="item" @click="select_bed">
14
           <h2 class="name">上机床位</h2>
20
           <h2 class="name">上机床位</h2>
15
           <div class="content">
21
           <div class="content">
28
         <div class="item" @click="select_puncture_nurse">
34
         <div class="item" @click="select_puncture_nurse">
29
           <h2 class="name">穿刺者</h2>
35
           <h2 class="name">穿刺者</h2>
30
           <div class="content">
36
           <div class="content">
31
-            <span class="text" style="width: 100px" v-if="admin_map[puncture_nurse_id]">{{ admin_map[puncture_nurse_id].name}}</span>
37
+            <span
38
+              class="text"
39
+              style="width: 100px"
40
+              v-if="admin_map[puncture_nurse_id]"
41
+            >{{ admin_map[puncture_nurse_id].name}}</span>
32
             <span class="iconfont">&#xe6f9;</span>
42
             <span class="iconfont">&#xe6f9;</span>
33
           </div>
43
           </div>
34
         </div>
44
         </div>
36
         <div class="item" v-if="template_id == 6">
46
         <div class="item" v-if="template_id == 6">
37
           <label class="name" for="xll">引血(ml/min)</label>
47
           <label class="name" for="xll">引血(ml/min)</label>
38
           <div class="content">
48
           <div class="content">
39
-            <input type="tel" @focus="inputFocus"  id="xll" v-model="blood_drawing"/>
49
+            <input type="tel" @focus="inputFocus" id="xll" v-model="blood_drawing" />
40
           </div>
50
           </div>
41
         </div>
51
         </div>
42
 
52
 
43
         <div class="item">
53
         <div class="item">
44
           <h2 class="name">上机时间</h2>
54
           <h2 class="name">上机时间</h2>
45
           <div class="content">
55
           <div class="content">
46
-            <span class="text" style="width: 100px" @click="selectStartTimeAction">{{ start_time_str }}</span>
56
+            <span
57
+              class="text"
58
+              style="width: 100px"
59
+              @click="selectStartTimeAction"
60
+            >{{ start_time_str }}</span>
47
             <span class="iconfont">&#xe6f9;</span>
61
             <span class="iconfont">&#xe6f9;</span>
48
           </div>
62
           </div>
49
         </div>
63
         </div>
50
 
64
 
51
-        
52
-
53
-
54
         <div class="perform">
65
         <div class="perform">
55
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
66
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
56
           <button :disabled="true" style="background-color:lightgray;" v-else>已上机</button>
67
           <button :disabled="true" style="background-color:lightgray;" v-else>已上机</button>
69
 </template>
80
 </template>
70
 
81
 
71
 <script>
82
 <script>
72
-  import {startDialysis,PostModifyStartDialysis} from '@/api/dialysis'
73
-  import {Toast} from 'vant'
74
-  import {parseTime} from '@/utils'
75
-
76
-  import TwoMenu from './TwoMenu'
77
-
78
-  export default {
79
-    name: 'ComputerDialog',
80
-    components: {
81
-      TwoMenu
83
+import { startDialysis, PostModifyStartDialysis } from "@/api/dialysis";
84
+import { Toast } from "vant";
85
+import { parseTime } from "@/utils";
86
+
87
+import TwoMenu from "./TwoMenu";
88
+
89
+export default {
90
+  name: "ComputerDialog",
91
+  components: {
92
+    TwoMenu
93
+  },
94
+  data() {
95
+    return {
96
+      start_time: new Date(),
97
+      selecting: false,
98
+      start_time_str: "",
99
+      bed_id: 0,
100
+      nurse_id: 0,
101
+      puncture_nurse_id: 0,
102
+      isPremission: false,
103
+      zone_beds: [], // 该排班的区里的床位
104
+      creator: 0,
105
+      template_id: 0,
106
+      blood_drawing: 100
107
+    };
108
+  },
109
+  props: {
110
+    schedule: {
111
+      type: Object
82
     },
112
     },
83
-    data () {
84
-      return {
85
-        start_time: new Date(),
86
-        selecting: false,
87
-        start_time_str: '',
88
-        bed_id: 0,
89
-        nurse_id: 0,
90
-        puncture_nurse_id: 0,
91
-        isPremission: false,
92
-        zone_beds: [], // 该排班的区里的床位
93
-        creator: 0,
94
-        template_id: 0,
95
-        blood_drawing:100
96
-      }
113
+    patient_prop: {
114
+      type: Object
97
     },
115
     },
98
-    props: {
99
-      schedule: {
100
-        type: Object,
101
-      },
102
-      patient_prop: {
103
-        type: Object,
104
-      },
105
-      record: {
106
-        type: Object,
107
-      },
108
-      admins: {
109
-        type: Array,
110
-      },
111
-      device_numbers: {
112
-        type: Array,
113
-      },
114
-      admin_map: {
115
-        type: Object,
116
-      },
117
-      device_number_map: {
118
-        type: Object,
119
-      },
120
-      special_premission: {
121
-        type: Array,
122
-      },
123
-    }, mounted () {
124
-
125
-      if (this.record.id == 0) {
126
-        this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
116
+    record: {
117
+      type: Object
118
+    },
119
+    admins: {
120
+      type: Array
121
+    },
122
+    device_numbers: {
123
+      type: Array
124
+    },
125
+    admin_map: {
126
+      type: Object
127
+    },
128
+    device_number_map: {
129
+      type: Object
130
+    },
131
+    special_premission: {
132
+      type: Array
133
+    }
134
+  },
135
+  mounted() {
136
+    if (this.record.id == 0) {
137
+      this.start_time_str =
138
+        parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
139
+    } else {
140
+      if (this.record.start_time == 0) {
141
+        this.start_time_str =
142
+          parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
127
       } else {
143
       } else {
128
-        if (this.record.start_time == 0) {
129
-          this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
144
+        this.start_time_str =
145
+          parseTime(this.record.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
146
+      }
147
+    }
148
+  },
149
+  created() {
150
+    this.template_id = this.$store.getters.user.template_info.template_id;
151
+    var date = this.$route.query && this.$route.query.date;
152
+    date *= 1000;
153
+    var newDate = new Date(date);
154
+    var y = newDate.getFullYear();
155
+    var m = newDate.getMonth() + 1;
156
+    var d = newDate.getDate();
157
+    if (isNaN(y) || isNaN(m) || isNaN(d)) {
158
+      newDate = new Date();
159
+      y = newDate.getFullYear();
160
+      m = newDate.getMonth() + 1;
161
+      d = newDate.getDate();
162
+    }
163
+    this.record_date =
164
+      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
165
+
166
+    this.bed_id =
167
+      this.record == null || this.record.id == ""
168
+        ? this.schedule.bed_id
169
+        : this.record.bed_id;
170
+    this.nurse_id =
171
+      this.record == null || this.record.id == ""
172
+        ? this.$store.getters.user.user.id
173
+        : this.record.start_nurse;
174
+    this.puncture_nurse_id =
175
+      this.record == null || this.record.id == ""
176
+        ? this.$store.getters.user.user.id
177
+        : this.record.puncture_nurse;
178
+
179
+    if (this.puncture_nurse_id == 0) {
180
+      this.puncture_nurse_id = this.$store.getters.user.user.id;
181
+    }
130
 
182
 
131
-        } else {
132
-          this.start_time_str = parseTime(this.record.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
183
+    // var beds = []
184
+    // for (let index = 0; index < this.device_numbers.length; index++) {
185
+    //   const device_number = this.device_numbers[index]
186
+    //   if (device_number.zone_id == this.schedule.partition_id) {
187
+    //     beds.push(device_number)
188
+    //   }
189
+    // }
190
+    // this.zone_beds = beds
191
+
192
+    for (let index = 0; index < this.device_numbers.length; index++) {
193
+      const device_number = this.device_numbers[index];
194
+      this.device_numbers[index]["number"] =
195
+        device_number["zone_name"] + "-" + device_number["number"];
196
+    }
197
+    this.zone_beds = this.device_numbers;
198
+
199
+    if (this.record.id > 0) {
200
+      for (let i = 0; i < this.special_premission.length; i++) {
201
+        if (
202
+          this.$store.getters.user.user.id ==
203
+          this.special_premission[i].admin_user_id
204
+        ) {
205
+          this.isPremission = true;
133
         }
206
         }
134
       }
207
       }
135
-    },
136
-    created () {
137
-    
138
-      this.template_id = this.$store.getters.user.template_info.template_id;
139
-      var date = this.$route.query && this.$route.query.date
140
-      date *= 1000
141
-      var newDate = new Date(date)
142
-      var y = newDate.getFullYear()
143
-      var m = newDate.getMonth() + 1
144
-      var d = newDate.getDate()
145
-      if (isNaN(y) || isNaN(m) || isNaN(d)) {
146
-        newDate = new Date()
147
-        y = newDate.getFullYear()
148
-        m = newDate.getMonth() + 1
149
-        d = newDate.getDate()
150
-      }
151
-      this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
152
-
153
-      this.bed_id = (this.record == null || this.record.id == '') ? this.schedule.bed_id : this.record.bed_id
154
-      this.nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.user.id : this.record.start_nurse
155
-      this.puncture_nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.user.id : this.record.puncture_nurse
208
+    }
156
 
209
 
157
-      if (this.puncture_nurse_id == 0) {
158
-        this.puncture_nurse_id = this.$store.getters.user.user.id
210
+    if (this.record.id > 0) {
211
+      if (this.record.creator == 0) {
212
+        this.creator = this.record.start_nurse;
213
+      } else {
214
+        this.creator = this.record.creator;
159
       }
215
       }
160
-      
161
-      // var beds = []
162
-      // for (let index = 0; index < this.device_numbers.length; index++) {
163
-      //   const device_number = this.device_numbers[index]
164
-      //   if (device_number.zone_id == this.schedule.partition_id) {
165
-      //     beds.push(device_number)
166
-      //   }
167
-      // }
168
-      // this.zone_beds = beds
169
-
170
-      for (let index = 0; index < this.device_numbers.length; index++) {
171
-        const device_number = this.device_numbers[index]
172
-        this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
216
+    }
217
+  },
218
+  methods: {
219
+    inputFocus: function(event) {
220
+      var input = event.target;
221
+      setTimeout(function() {
222
+        input.scrollIntoView();
223
+      }, 0);
224
+
225
+      if (input.setSelectionRange) {
226
+        setTimeout(function() {
227
+          input.setSelectionRange(0, input.value.length);
228
+        }, 0);
229
+      } else if (input.createTextRange) {
230
+        var rng = input.createTextRange();
231
+        rng.move("character", input.value.length);
232
+        rng.select();
173
       }
233
       }
174
-      this.zone_beds = this.device_numbers
175
-
176
-      if (this.record.id > 0) {
177
-        for (let i = 0; i < this.special_premission.length; i++) {
178
-          if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
179
-            this.isPremission = true
234
+    },
235
+    modify() {
236
+      let ParamsQuery = {};
237
+      ParamsQuery["id"] = this.record.id;
238
+      ParamsQuery["nurse"] = this.nurse_id;
239
+      ParamsQuery["bed"] = this.bed_id;
240
+      ParamsQuery["start_time"] = this.start_time_str;
241
+      ParamsQuery["puncture_nurse"] = this.puncture_nurse_id;
242
+      PostModifyStartDialysis(ParamsQuery).then(response => {
243
+        if (response.data.state == 0) {
244
+          Toast.fail(response.data.msg);
245
+          return false;
246
+        } else {
247
+          Toast.success("修改成功");
248
+          this.$emit("did_start", response.data.data.dialysis_order);
249
+          var record = this.record;
250
+          for (const key in response.data.data.dialysis_order) {
251
+            this.$set(record, key, response.data.data.dialysis_order[key]);
180
           }
252
           }
181
         }
253
         }
182
-      }
183
-
184
-      if (this.record.id > 0) {
254
+      });
255
+    },
256
+    didSelectStartTime: function(time) {
257
+      this.start_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
258
+    },
259
+    selectStartTimeAction: function() {
260
+      if (this.record.id != 0) {
261
+        var creator = 0;
185
         if (this.record.creator == 0) {
262
         if (this.record.creator == 0) {
186
-          this.creator = this.record.start_nurse
263
+          creator = this.record.start_nurse;
187
         } else {
264
         } else {
188
-          this.creator = this.record.creator
265
+          creator = this.record.creator;
189
         }
266
         }
190
-      }
191
 
267
 
192
-
193
-
194
-    },
195
-    methods: {
196
-      inputFocus: function (event) {
197
-        var input = event.target
198
-        setTimeout(function () {
199
-          input.scrollIntoView()
200
-        }, 0)
201
-
202
-        if (input.setSelectionRange) {
203
-          setTimeout(function () {
204
-            input.setSelectionRange(0, input.value.length)
205
-          }, 0)
206
-        } else if (input.createTextRange) {
207
-          var rng = input.createTextRange()
208
-          rng.move('character', input.value.length)
209
-          rng.select()
268
+        if (this.$store.getters.user.user.id == creator || this.isPremission) {
269
+          this.$refs.start_time_picker.open();
270
+        } else {
271
+          return;
210
         }
272
         }
211
-      },
212
-      modify(){
213
-        let ParamsQuery = {}
214
-        ParamsQuery['id'] = this.record.id
215
-        ParamsQuery['nurse'] = this.nurse_id
216
-        ParamsQuery['bed'] = this.bed_id
217
-        ParamsQuery['start_time'] = this.start_time_str
218
-        ParamsQuery['puncture_nurse'] = this.puncture_nurse_id
219
-        PostModifyStartDialysis(ParamsQuery).then(response => {
220
-          if (response.data.state == 0) {
221
-            Toast.fail(response.data.msg)
222
-            return false
223
-          } else {
224
-            Toast.success('修改成功')
225
-            this.$emit('did_start', response.data.data.dialysis_order)
226
-            var record = this.record
227
-            for (const key in response.data.data.dialysis_order) {
228
-              this.$set(record, key, response.data.data.dialysis_order[key])
229
-            }
230
-          }
231
-        })
232
-      },
233
-      didSelectStartTime: function (time) {
234
-        this.start_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}') + ':00'
235
-      },
236
-      selectStartTimeAction: function () {
237
-        if (this.record.id != 0) {
238
-          var creator = 0
239
-          if (this.record.creator == 0) {
240
-            creator = this.record.start_nurse
241
-          } else {
242
-            creator = this.record.creator
243
-          }
244
-
245
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
246
-            this.$refs.start_time_picker.open()
247
-          } else {
248
-            return
273
+      }
274
+      this.$refs.start_time_picker.open();
275
+    },
276
+    commitInfo: function() {
277
+      Toast.loading({ forbidClick: true, duration: 0 });
278
+      let ParamsQuery = {};
279
+      ParamsQuery["patient_id"] = this.patient_prop.id;
280
+      ParamsQuery["record_date"] = this.record_date;
281
+      ParamsQuery["nurse"] = this.nurse_id;
282
+      ParamsQuery["bed"] = this.bed_id;
283
+      ParamsQuery["start_time"] = this.start_time_str;
284
+      ParamsQuery["puncture_nurse"] = this.puncture_nurse_id;
285
+      ParamsQuery["blood_drawing"] = this.blood_drawing;
286
+
287
+      startDialysis(ParamsQuery).then(response => {
288
+        if (response.data.state == 0) {
289
+          Toast.fail(response.data.msg);
290
+          return false;
291
+        } else {
292
+          Toast.success("上机成功");
293
+          var monitor = response.data.data.monitor;
294
+          this.$emit("did_add_monitor", monitor);
295
+          this.$emit("did_start", response.data.data.dialysis_order);
296
+          var record = this.record;
297
+          for (const key in response.data.data.dialysis_order) {
298
+            this.$set(record, key, response.data.data.dialysis_order[key]);
299
+            // this.record[key] = response.data.data.dialysis_order[key]
249
           }
300
           }
250
         }
301
         }
251
-        this.$refs.start_time_picker.open()
252
-      },
253
-      commitInfo: function () {
254
-        Toast.loading({forbidClick: true, duration: 0})
255
-        let ParamsQuery = {}
256
-        ParamsQuery['patient_id'] = this.patient_prop.id
257
-        ParamsQuery['record_date'] = this.record_date
258
-        ParamsQuery['nurse'] = this.nurse_id
259
-        ParamsQuery['bed'] = this.bed_id
260
-        ParamsQuery['start_time'] = this.start_time_str
261
-        ParamsQuery['puncture_nurse'] = this.puncture_nurse_id
262
-        ParamsQuery['blood_drawing'] = this.blood_drawing
302
+      });
303
+    },
304
+    close: function() {
305
+      this.$emit("close");
306
+    },
307
+    select_bed: function() {
308
+      if (this.record.id != 0) {
309
+        var creator = 0;
310
+        if (this.record.creator == 0) {
311
+          creator = this.record.start_nurse;
312
+        } else {
313
+          creator = this.record.creator;
314
+        }
263
 
315
 
264
-        startDialysis(ParamsQuery).then(response => {
265
-          if (response.data.state == 0) {
266
-            Toast.fail(response.data.msg)
267
-            return false
268
-          } else {
269
-            Toast.success('上机成功')
270
-            var monitor = response.data.data.monitor
271
-            this.$emit('did_add_monitor', monitor)
272
-            this.$emit('did_start', response.data.data.dialysis_order)
273
-            var record = this.record
274
-            for (const key in response.data.data.dialysis_order) {
275
-              this.$set(record, key, response.data.data.dialysis_order[key])
276
-              // this.record[key] = response.data.data.dialysis_order[key]
316
+        if (this.$store.getters.user.user.id == creator || this.isPremission) {
317
+          this.selecting = true;
318
+          var t = this;
319
+          this.$refs.selector.showSingleSelect(
320
+            this.zone_beds,
321
+            this.bed_id,
322
+            "选择床位号",
323
+            "number",
324
+            "id",
325
+            function(select_id) {
326
+              t.bed_id = select_id;
327
+            },
328
+            function() {
329
+              t.selecting = false;
277
             }
330
             }
278
-          }
279
-        })
280
-      },
281
-      close: function () {
282
-        this.$emit('close')
283
-      },
284
-      select_bed: function () {
285
-        if (this.record.id != 0) {
286
-          var creator = 0
287
-          if (this.record.creator == 0) {
288
-            creator = this.record.start_nurse
289
-          } else {
290
-            creator = this.record.creator
291
-          }
292
-
293
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
294
-            this.selecting = true
295
-            var t = this
296
-            this.$refs.selector.showSingleSelect(this.zone_beds, this.bed_id, '选择床位号', 'number', 'id', function (select_id) {
297
-              t.bed_id = select_id
298
-            }, function () {
299
-              t.selecting = false
300
-            })
301
-          } else {
302
-            return
303
-          }
331
+          );
332
+        } else {
333
+          return;
304
         }
334
         }
335
+      }
305
 
336
 
306
-        this.selecting = true
307
-        var t = this
308
-        this.$refs.selector.showSingleSelect(this.zone_beds, this.bed_id, '选择床位号', 'number', 'id', function (select_id) {
309
-          t.bed_id = select_id
310
-        }, function () {
311
-          t.selecting = false
312
-        })
313
-      },
314
-      select_nurse: function () {
315
-        if (this.record.id != 0) {
316
-          var creator = 0
317
-          if (this.record.creator == 0) {
318
-            creator = this.record.start_nurse
319
-          } else {
320
-            creator = this.record.creator
321
-          }
322
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
323
-            this.selecting = true
324
-            var t = this
325
-            this.$refs.selector.showSingleSelect(this.admins, this.nurse_id, '选择上机护士', 'name', 'id', function (select_id) {
326
-              t.nurse_id = select_id
327
-            }, function () {
328
-              t.selecting = false
329
-            })
330
-          } else {
331
-            return
332
-          }
337
+      this.selecting = true;
338
+      var t = this;
339
+      this.$refs.selector.showSingleSelect(
340
+        this.zone_beds,
341
+        this.bed_id,
342
+        "选择床位号",
343
+        "number",
344
+        "id",
345
+        function(select_id) {
346
+          t.bed_id = select_id;
347
+        },
348
+        function() {
349
+          t.selecting = false;
333
         }
350
         }
334
-        this.selecting = true
335
-        var t = this
336
-        this.$refs.selector.showSingleSelect(this.admins, this.nurse_id, '选择上机护士', 'name', 'id', function (select_id) {
337
-          t.nurse_id = select_id
338
-        }, function () {
339
-          t.selecting = false
340
-        })
341
-      }, select_puncture_nurse: function () {
342
-        if (this.record.id != 0) {
343
-          var creator = 0
344
-          if (this.record.creator == 0) {
345
-            creator = this.record.start_nurse
346
-          } else {
347
-            creator = this.record.creator
348
-          }
349
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
350
-            this.selecting = true
351
-            var t = this
352
-            this.$refs.selector.showSingleSelect(this.admins, this.puncture_nurse_id, '选择穿刺护士', 'name', 'id', function (select_id) {
353
-              t.puncture_nurse_id = select_id
354
-            }, function () {
355
-              t.selecting = false
356
-            })
357
-          } else {
358
-            return
359
-          }
351
+      );
352
+    },
353
+    select_nurse: function() {
354
+      if (this.record.id != 0) {
355
+        var creator = 0;
356
+        if (this.record.creator == 0) {
357
+          creator = this.record.start_nurse;
358
+        } else {
359
+          creator = this.record.creator;
360
+        }
361
+        if (this.$store.getters.user.user.id == creator || this.isPremission) {
362
+          this.selecting = true;
363
+          var t = this;
364
+          this.$refs.selector.showSingleSelect(
365
+            this.admins,
366
+            this.nurse_id,
367
+            "选择上机护士",
368
+            "name",
369
+            "id",
370
+            function(select_id) {
371
+              t.nurse_id = select_id;
372
+            },
373
+            function() {
374
+              t.selecting = false;
375
+            }
376
+          );
377
+        } else {
378
+          return;
360
         }
379
         }
361
-        this.selecting = true
362
-        var t = this
363
-        this.$refs.selector.showSingleSelect(this.admins, this.puncture_nurse_id, '选择穿刺护士', 'name', 'id', function (select_id) {
364
-          t.puncture_nurse_id = select_id
365
-        }, function () {
366
-          t.selecting = false
367
-        })
368
-      },
369
-      open: function () {
370
-        this.selecting = false
371
-        this.$refs.selector.hide()
372
       }
380
       }
373
-    }, watch: {
374
-      'record.id': function (val) {
375
-        if (val > 0) {
376
-          for (let i = 0; i < this.special_premission.length; i++) {
377
-            if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
378
-              this.isPremission = true
381
+      this.selecting = true;
382
+      var t = this;
383
+      this.$refs.selector.showSingleSelect(
384
+        this.admins,
385
+        this.nurse_id,
386
+        "选择上机护士",
387
+        "name",
388
+        "id",
389
+        function(select_id) {
390
+          t.nurse_id = select_id;
391
+        },
392
+        function() {
393
+          t.selecting = false;
394
+        }
395
+      );
396
+    },
397
+    select_puncture_nurse: function() {
398
+      if (this.record.id != 0) {
399
+        var creator = 0;
400
+        if (this.record.creator == 0) {
401
+          creator = this.record.start_nurse;
402
+        } else {
403
+          creator = this.record.creator;
404
+        }
405
+        if (this.$store.getters.user.user.id == creator || this.isPremission) {
406
+          this.selecting = true;
407
+          var t = this;
408
+          this.$refs.selector.showSingleSelect(
409
+            this.admins,
410
+            this.puncture_nurse_id,
411
+            "选择穿刺护士",
412
+            "name",
413
+            "id",
414
+            function(select_id) {
415
+              t.puncture_nurse_id = select_id;
416
+            },
417
+            function() {
418
+              t.selecting = false;
379
             }
419
             }
420
+          );
421
+        } else {
422
+          return;
423
+        }
424
+      }
425
+      this.selecting = true;
426
+      var t = this;
427
+      this.$refs.selector.showSingleSelect(
428
+        this.admins,
429
+        this.puncture_nurse_id,
430
+        "选择穿刺护士",
431
+        "name",
432
+        "id",
433
+        function(select_id) {
434
+          t.puncture_nurse_id = select_id;
435
+        },
436
+        function() {
437
+          t.selecting = false;
438
+        }
439
+      );
440
+    },
441
+    open: function() {
442
+      this.selecting = false;
443
+      this.$refs.selector.hide();
444
+    }
445
+  },
446
+  watch: {
447
+    "record.id": function(val) {
448
+      if (val > 0) {
449
+        for (let i = 0; i < this.special_premission.length; i++) {
450
+          if (
451
+            this.$store.getters.user.user.id ==
452
+            this.special_premission[i].admin_user_id
453
+          ) {
454
+            this.isPremission = true;
380
           }
455
           }
381
-          if (this.record.creator == 0) {
382
-            this.creator = this.record.start_nurse
383
-          } else {
384
-            this.creator = this.record.creator
385
-          }
386
-
387
-
456
+        }
457
+        if (this.record.creator == 0) {
458
+          this.creator = this.record.start_nurse;
459
+        } else {
460
+          this.creator = this.record.creator;
388
         }
461
         }
389
       }
462
       }
390
-
391
     }
463
     }
392
-
393
   }
464
   }
465
+};
394
 </script>
466
 </script>
395
 
467
 
396
 <style style="stylesheet/scss" lang="scss" scoped>
468
 <style style="stylesheet/scss" lang="scss" scoped>
397
-
398
-  .perform{
469
+.perform {
399
   text-align: center;
470
   text-align: center;
400
   font-size: 0.3rem;
471
   font-size: 0.3rem;
401
   padding-top: 2rem;
472
   padding-top: 2rem;
402
-  .crew{
403
-  color: $pgh-color;
404
-  }
405
-  button{
406
-  background:$main-color;
407
-  color: #fff;
408
-  font-size: 0.3rem;
409
-  text-align:center;
410
-  width: 3rem;
411
-  height: 0.7rem;
412
-  line-height: 0.7rem;
413
-  border-radius:4px;
414
-  margin-top:10px;
473
+  .crew {
474
+    color: $pgh-color;
415
   }
475
   }
476
+  button {
477
+    background: $main-color;
478
+    color: #fff;
479
+    font-size: 0.45rem;
480
+    text-align: center;
481
+    width: 3rem;
482
+    height: 1.2rem;
483
+    line-height: 1.2rem;
484
+    border-radius: 4px;
485
+    margin-top: 10px;
416
   }
486
   }
487
+}
417
 </style>
488
 </style>
418
 
489
 

+ 213 - 160
src/pages/main/dialog/PlaneDialog.vue View File

1
 <template>
1
 <template>
2
- <div>
2
+  <div>
3
     <div class="Dialog" v-show="!selecting">
3
     <div class="Dialog" v-show="!selecting">
4
-        <div class="DialogTit">
5
-            <span @click="close()" class="iconfont">&#xe6e9;</span>
6
-            <h1 class="name">透析下机</h1>
7
-            <span class="success" v-if="this.record.state == 1 || this.$store.getters.user.user.id != this.creator"></span>
8
-            <span class="success" @click="modify()" v-if="isPremission|| this.$store.getters.user.user.id == this.creator">修改</span>
4
+      <div class="DialogTit">
5
+        <span @click="close()" class="iconfont">&#xe6e9;</span>
6
+        <h1 class="name">透析下机</h1>
7
+        <span
8
+          class="success"
9
+          v-if="this.record.state == 1 || this.$store.getters.user.user.id != this.creator"
10
+        ></span>
11
+        <span
12
+          class="success"
13
+          @click="modify()"
14
+          v-if="isPremission|| this.$store.getters.user.user.id == this.creator"
15
+        >修改</span>
16
+      </div>
9
 
17
 
10
-        </div>
11
-
12
-        <div class="DialogContent ">
13
-          <div class="item" @click="select_nurse">
14
-            <h2 class="name">下机护士</h2>
15
-            <div class="content">
16
-              <span class="text" style="width: 100px">{{ nurse_id == 0 ? '' : admin_map[nurse_id].name }}</span>
17
-              <span class="iconfont">&#xe6f9;</span>
18
-            </div>
18
+      <div class="DialogContent">
19
+        <div class="item" @click="select_nurse">
20
+          <h2 class="name">下机护士</h2>
21
+          <div class="content">
22
+            <span
23
+              class="text"
24
+              style="width: 100px"
25
+            >{{ nurse_id == 0 ? '' : admin_map[nurse_id].name }}</span>
26
+            <span class="iconfont">&#xe6f9;</span>
19
           </div>
27
           </div>
28
+        </div>
20
 
29
 
21
-
22
-          <div class="item">
23
-            <h2 class="name">下机时间</h2>
24
-            <div class="content">
25
-              <span class="text" style="width: 100px"  @click="selectStartTimeAction">{{ end_time_str }}</span>
26
-              <span class="iconfont">&#xe6f9;</span>
27
-            </div>
30
+        <div class="item">
31
+          <h2 class="name">下机时间</h2>
32
+          <div class="content">
33
+            <span
34
+              class="text"
35
+              style="width: 100px"
36
+              @click="selectStartTimeAction"
37
+            >{{ end_time_str }}</span>
38
+            <span class="iconfont">&#xe6f9;</span>
28
           </div>
39
           </div>
40
+        </div>
29
 
41
 
30
-          <div class="perform">
31
-            <button @click="commitInfo" v-show="(record != null && record.id != '' && record.stage == 1)">执行下机</button>
32
-            <button :disabled="true" style="background-color:lightgray;" v-show="(record != null && record.id != '' && record.stage == 2)">已下机</button>
33
-            <button :disabled="true" style="background-color:lightgray;" v-show="record == null || record.id == ''">未上机</button>
34
-          </div>
42
+        <div class="perform">
43
+          <button
44
+            @click="commitInfo"
45
+            v-show="(record != null && record.id != '' && record.stage == 1)"
46
+          >执行下机</button>
47
+          <button
48
+            :disabled="true"
49
+            style="background-color:lightgray;"
50
+            v-show="(record != null && record.id != '' && record.stage == 2)"
51
+          >已下机</button>
52
+          <button
53
+            :disabled="true"
54
+            style="background-color:lightgray;"
55
+            v-show="record == null || record.id == ''"
56
+          >未上机</button>
35
         </div>
57
         </div>
58
+      </div>
36
     </div>
59
     </div>
37
     <two-menu ref="selector"></two-menu>
60
     <two-menu ref="selector"></two-menu>
38
-   <mt-datetime-picker
39
-     ref="start_time_picker"
40
-     type="datetime"
41
-     @confirm="didSelectStartTime"
42
-     v-model="end_time"
43
-   ></mt-datetime-picker>
61
+    <mt-datetime-picker
62
+      ref="start_time_picker"
63
+      type="datetime"
64
+      @confirm="didSelectStartTime"
65
+      v-model="end_time"
66
+    ></mt-datetime-picker>
44
   </div>
67
   </div>
45
 </template>
68
 </template>
46
 
69
 
47
 <script>
70
 <script>
48
-  import {
49
-    finish,PostModifyEndDialysis
50
-  } from "@/api/dialysis";
51
-  import { Toast } from 'vant';
52
-  import TwoMenu from './TwoMenu'
53
-  import { parseTime } from "@/utils";
71
+import { finish, PostModifyEndDialysis } from "@/api/dialysis";
72
+import { Toast } from "vant";
73
+import TwoMenu from "./TwoMenu";
74
+import { parseTime } from "@/utils";
54
 
75
 
55
-  export default {
76
+export default {
56
   name: "PlaneDialog",
77
   name: "PlaneDialog",
57
   components: {
78
   components: {
58
     TwoMenu
79
     TwoMenu
61
     return {
82
     return {
62
       selecting: false,
83
       selecting: false,
63
       end_time_str: "",
84
       end_time_str: "",
64
-      end_time:new Date(),
85
+      end_time: new Date(),
65
       nurse_id: 0,
86
       nurse_id: 0,
66
-      isPremission:false,
67
-      creator:0,
68
-    }
87
+      isPremission: false,
88
+      creator: 0
89
+    };
69
   },
90
   },
70
-  props:{
91
+  props: {
71
     patient_prop: {
92
     patient_prop: {
72
-      type: Object,
93
+      type: Object
73
     },
94
     },
74
     record: {
95
     record: {
75
-      type: Object,
96
+      type: Object
76
     },
97
     },
77
     admins: {
98
     admins: {
78
-      type: Array,
99
+      type: Array
79
     },
100
     },
80
     admin_map: {
101
     admin_map: {
81
-      type: Object,
102
+      type: Object
82
     },
103
     },
83
     special_premission: {
104
     special_premission: {
84
-      type: Array,
105
+      type: Array
85
     },
106
     },
86
     last_monitor_record: {
107
     last_monitor_record: {
87
-      type: Object,
108
+      type: Object
88
     }
109
     }
89
-  },mounted() {
90
-      if(this.last_monitor_record.id == 0){
91
-        this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
92
-      }else{
93
-        this.end_time_str = parseTime(this.last_monitor_record.operate_time, "{y}-{m}-{d} {h}:{i}") + ":00";
94
-      }
95
-    },
96
-  created(){
110
+  },
111
+  mounted() {
112
+    if (this.last_monitor_record.id == 0) {
113
+      this.end_time_str =
114
+        parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
115
+    } else {
116
+      this.end_time_str =
117
+        parseTime(
118
+          this.last_monitor_record.operate_time,
119
+          "{y}-{m}-{d} {h}:{i}"
120
+        ) + ":00";
121
+    }
122
+  },
123
+  created() {
97
     var date = this.$route.query && this.$route.query.date;
124
     var date = this.$route.query && this.$route.query.date;
98
     date *= 1000;
125
     date *= 1000;
99
     var newDate = new Date(date);
126
     var newDate = new Date(date);
106
       m = newDate.getMonth() + 1;
133
       m = newDate.getMonth() + 1;
107
       d = newDate.getDate();
134
       d = newDate.getDate();
108
     }
135
     }
109
-    this.record_date = y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
136
+    this.record_date =
137
+      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
110
 
138
 
111
-    if (this.record == null || this.record.id == '') {
112
-      this.nurse_id = 0
139
+    if (this.record == null || this.record.id == "") {
140
+      this.nurse_id = 0;
113
     } else if (this.record.stage == 1) {
141
     } else if (this.record.stage == 1) {
114
-      this.nurse_id = this.$store.getters.user.user.id
142
+      this.nurse_id = this.$store.getters.user.user.id;
115
     } else {
143
     } else {
116
-      this.nurse_id = this.record.finish_nurse
144
+      this.nurse_id = this.record.finish_nurse;
117
     }
145
     }
118
 
146
 
119
-    console.log("下机:"+this.nurse_id)
147
+    console.log("下机:" + this.nurse_id);
120
 
148
 
121
     if (this.record.id > 0) {
149
     if (this.record.id > 0) {
122
       for (let i = 0; i < this.special_premission.length; i++) {
150
       for (let i = 0; i < this.special_premission.length; i++) {
123
-        if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
124
-          this.isPremission = true
151
+        if (
152
+          this.$store.getters.user.user.id ==
153
+          this.special_premission[i].admin_user_id
154
+        ) {
155
+          this.isPremission = true;
125
         }
156
         }
126
       }
157
       }
127
     }
158
     }
128
 
159
 
129
     if (this.record.id > 0) {
160
     if (this.record.id > 0) {
130
       if (this.record.finish_creator == 0) {
161
       if (this.record.finish_creator == 0) {
131
-        this.creator = this.record.finish_nurse
162
+        this.creator = this.record.finish_nurse;
132
       } else {
163
       } else {
133
-        this.creator = this.record.finish_creator
164
+        this.creator = this.record.finish_creator;
134
       }
165
       }
135
     }
166
     }
136
-
137
-
138
   },
167
   },
139
   methods: {
168
   methods: {
140
     set_last_monitor_record(monitor) {
169
     set_last_monitor_record(monitor) {
141
-      this.last_monitor_record = monitor
142
-      this.end_time_str = parseTime(this.last_monitor_record.operate_time, "{y}-{m}-{d} {h}:{i}") + ":00";
170
+      this.last_monitor_record = monitor;
171
+      this.end_time_str =
172
+        parseTime(
173
+          this.last_monitor_record.operate_time,
174
+          "{y}-{m}-{d} {h}:{i}"
175
+        ) + ":00";
143
     },
176
     },
144
-    modify(){
145
-      let ParamsQuery = {}
146
-      ParamsQuery['id'] = this.record.id
147
-      ParamsQuery["nurse"] = this.nurse_id
148
-      ParamsQuery["end_time"] = this.end_time_str
177
+    modify() {
178
+      let ParamsQuery = {};
179
+      ParamsQuery["id"] = this.record.id;
180
+      ParamsQuery["nurse"] = this.nurse_id;
181
+      ParamsQuery["end_time"] = this.end_time_str;
149
       PostModifyEndDialysis(ParamsQuery).then(response => {
182
       PostModifyEndDialysis(ParamsQuery).then(response => {
150
         if (response.data.state == 0) {
183
         if (response.data.state == 0) {
151
-          Toast.fail(response.data.msg)
152
-          return false
184
+          Toast.fail(response.data.msg);
185
+          return false;
153
         } else {
186
         } else {
154
-          Toast.success('修改成功')
155
-          this.$emit('did_off', response.data.data.dialysis_order)
156
-          var record = this.record
187
+          Toast.success("修改成功");
188
+          this.$emit("did_off", response.data.data.dialysis_order);
189
+          var record = this.record;
157
           for (const key in response.data.data.dialysis_order) {
190
           for (const key in response.data.data.dialysis_order) {
158
-            this.$set(record, key, response.data.data.dialysis_order[key])
191
+            this.$set(record, key, response.data.data.dialysis_order[key]);
159
           }
192
           }
160
         }
193
         }
161
-      })
194
+      });
162
     },
195
     },
163
     didSelectStartTime: function(time) {
196
     didSelectStartTime: function(time) {
164
       this.end_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
197
       this.end_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
165
     },
198
     },
166
     selectStartTimeAction: function() {
199
     selectStartTimeAction: function() {
167
       if (this.record.id != 0) {
200
       if (this.record.id != 0) {
168
-        if(this.record.end_time > 0){
169
-          var creator = 0
201
+        if (this.record.end_time > 0) {
202
+          var creator = 0;
170
           if (this.record.finish_creator == 0) {
203
           if (this.record.finish_creator == 0) {
171
-            creator = this.record.finish_nurse
204
+            creator = this.record.finish_nurse;
172
           } else {
205
           } else {
173
-            creator = this.record.finish_creator
206
+            creator = this.record.finish_creator;
174
           }
207
           }
175
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
176
-            this.$refs.start_time_picker.open()
208
+          if (
209
+            this.$store.getters.user.user.id == creator ||
210
+            this.isPremission
211
+          ) {
212
+            this.$refs.start_time_picker.open();
177
           } else {
213
           } else {
178
-            return
214
+            return;
179
           }
215
           }
180
-        }else{
216
+        } else {
181
           this.$refs.start_time_picker.open();
217
           this.$refs.start_time_picker.open();
182
         }
218
         }
183
-      }else{
219
+      } else {
184
         this.$refs.start_time_picker.open();
220
         this.$refs.start_time_picker.open();
185
       }
221
       }
186
-
187
     },
222
     },
188
-    commitInfo: function () {
189
-      Toast.loading({forbidClick: true, duration: 0})
190
-      let ParamsQuery = {}
191
-      ParamsQuery['patient'] = this.patient_prop.id
192
-      ParamsQuery['record_date'] = this.record_date
193
-      ParamsQuery["nurse"] = this.nurse_id
194
-      ParamsQuery["end_time"] = this.end_time_str
223
+    commitInfo: function() {
224
+      Toast.loading({ forbidClick: true, duration: 0 });
225
+      let ParamsQuery = {};
226
+      ParamsQuery["patient"] = this.patient_prop.id;
227
+      ParamsQuery["record_date"] = this.record_date;
228
+      ParamsQuery["nurse"] = this.nurse_id;
229
+      ParamsQuery["end_time"] = this.end_time_str;
195
 
230
 
196
       finish(ParamsQuery).then(response => {
231
       finish(ParamsQuery).then(response => {
197
         if (response.data.state == 0) {
232
         if (response.data.state == 0) {
199
           return false;
234
           return false;
200
         } else {
235
         } else {
201
           Toast.success("下机成功");
236
           Toast.success("下机成功");
202
-          this.$emit('did_off', response.data.data.assessmentAfterDislysis);
203
-          var record = this.record
237
+          this.$emit("did_off", response.data.data.assessmentAfterDislysis);
238
+          var record = this.record;
204
           for (const key in response.data.data.dialysisOrder) {
239
           for (const key in response.data.data.dialysisOrder) {
205
-            this.$set(record, key, response.data.data.dialysisOrder[key])
240
+            this.$set(record, key, response.data.data.dialysisOrder[key]);
206
             // record[key] = response.data.data.dialysisOrder[key]
241
             // record[key] = response.data.data.dialysisOrder[key]
207
           }
242
           }
208
           // console.log(this.record)
243
           // console.log(this.record)
210
       });
245
       });
211
     },
246
     },
212
     close: function() {
247
     close: function() {
213
-      this.$emit('close')
248
+      this.$emit("close");
214
     },
249
     },
215
     select_nurse: function() {
250
     select_nurse: function() {
216
-      if (this.record != null && this.record.id != '') {
217
-        if(this.record.stage == 1){
218
-          this.selecting = true
219
-          var t = this
220
-          this.$refs.selector.showSingleSelect(this.admins, this.nurse_id, "选择下机护士", "name", "id", function(select_id) {
221
-            console.log("nurse id: ", select_id)
222
-            t.nurse_id = select_id
223
-          }, function() {
224
-            t.selecting = false
225
-          })
226
-        }else{
227
-          var creator = 0
251
+      if (this.record != null && this.record.id != "") {
252
+        if (this.record.stage == 1) {
253
+          this.selecting = true;
254
+          var t = this;
255
+          this.$refs.selector.showSingleSelect(
256
+            this.admins,
257
+            this.nurse_id,
258
+            "选择下机护士",
259
+            "name",
260
+            "id",
261
+            function(select_id) {
262
+              console.log("nurse id: ", select_id);
263
+              t.nurse_id = select_id;
264
+            },
265
+            function() {
266
+              t.selecting = false;
267
+            }
268
+          );
269
+        } else {
270
+          var creator = 0;
228
           if (this.record.finish_creator == 0) {
271
           if (this.record.finish_creator == 0) {
229
-            creator = this.record.finish_nurse
272
+            creator = this.record.finish_nurse;
230
           } else {
273
           } else {
231
-            creator = this.record.finish_creator
274
+            creator = this.record.finish_creator;
232
           }
275
           }
233
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
234
-            this.selecting = true
235
-            var t = this
236
-            this.$refs.selector.showSingleSelect(this.admins, this.nurse_id, "选择下机护士", "name", "id", function(select_id) {
237
-              console.log("nurse id: ", select_id)
238
-              t.nurse_id = select_id
239
-            }, function() {
240
-              t.selecting = false
241
-            })
276
+          if (
277
+            this.$store.getters.user.user.id == creator ||
278
+            this.isPremission
279
+          ) {
280
+            this.selecting = true;
281
+            var t = this;
282
+            this.$refs.selector.showSingleSelect(
283
+              this.admins,
284
+              this.nurse_id,
285
+              "选择下机护士",
286
+              "name",
287
+              "id",
288
+              function(select_id) {
289
+                console.log("nurse id: ", select_id);
290
+                t.nurse_id = select_id;
291
+              },
292
+              function() {
293
+                t.selecting = false;
294
+              }
295
+            );
242
           } else {
296
           } else {
243
-            return
297
+            return;
244
           }
298
           }
245
         }
299
         }
246
-
247
       }
300
       }
248
     },
301
     },
249
-    open:function(){
302
+    open: function() {
250
       this.selecting = false;
303
       this.selecting = false;
251
       this.$refs.selector.hide();
304
       this.$refs.selector.hide();
252
     }
305
     }
253
-  }, watch: {
254
-      'record.stage': function (val) {
255
-        if (val == 2) {
256
-          for (let i = 0; i < this.special_premission.length; i++) {
257
-            if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
258
-              this.isPremission = true
259
-            }
260
-          }
261
-          if (this.record.finish_nurse == 0) {
262
-            this.creator = this.record.finish_nurse
263
-          } else {
264
-            this.creator = this.record.finish_creator
306
+  },
307
+  watch: {
308
+    "record.stage": function(val) {
309
+      if (val == 2) {
310
+        for (let i = 0; i < this.special_premission.length; i++) {
311
+          if (
312
+            this.$store.getters.user.user.id ==
313
+            this.special_premission[i].admin_user_id
314
+          ) {
315
+            this.isPremission = true;
265
           }
316
           }
266
         }
317
         }
267
-
268
-        console.log(this.creator)
269
-        console.log(this.$store.getters.user.user.id)
270
-
271
-
318
+        if (this.record.finish_nurse == 0) {
319
+          this.creator = this.record.finish_nurse;
320
+        } else {
321
+          this.creator = this.record.finish_creator;
322
+        }
272
       }
323
       }
273
 
324
 
325
+      console.log(this.creator);
326
+      console.log(this.$store.getters.user.user.id);
274
     }
327
     }
328
+  }
275
 };
329
 };
276
 </script>
330
 </script>
277
 
331
 
278
 <style style="stylesheet/scss" lang="scss" scoped>
332
 <style style="stylesheet/scss" lang="scss" scoped>
279
-
280
-.perform{
333
+.perform {
281
   text-align: center;
334
   text-align: center;
282
   font-size: 0.3rem;
335
   font-size: 0.3rem;
283
   padding-top: 2rem;
336
   padding-top: 2rem;
284
-  .crew{
337
+  .crew {
285
     color: $pgh-color;
338
     color: $pgh-color;
286
   }
339
   }
287
-  button{
288
-    background:$main-color;
340
+  button {
341
+    background: $main-color;
289
     color: #fff;
342
     color: #fff;
290
-    font-size: 0.3rem;
291
-    text-align:center;
343
+    font-size: 0.45rem;
344
+    text-align: center;
292
     width: 3rem;
345
     width: 3rem;
293
-    height: 0.7rem;
294
-    line-height: 0.7rem;
295
-    border-radius:4px;
296
-    margin-top:10px;
346
+    height: 1.2rem;
347
+    line-height: 1.2rem;
348
+    border-radius: 4px;
349
+    margin-top: 10px;
297
   }
350
   }
298
 }
351
 }
299
 </style>
352
 </style>

+ 1 - 1
src/pages/main/dialog/PrescriptionDialog.vue View File

1897
     line-height: 0.85rem;
1897
     line-height: 0.85rem;
1898
     border-radius:5px; 
1898
     border-radius:5px; 
1899
     color: #fff;
1899
     color: #fff;
1900
-    margin-right: -3rem;
1900
+    margin-right: -3.5rem;
1901
   }
1901
   }
1902
   .newName{
1902
   .newName{
1903
     margin-right: -3rem;
1903
     margin-right: -3rem;

+ 51 - 4
src/pages/main/dialog/new_order/AddNewOrders.vue View File

34
               <label>开嘱时间 {{record_date_str}}</label>
34
               <label>开嘱时间 {{record_date_str}}</label>
35
             </div>
35
             </div>
36
           </div>
36
           </div>
37
-          <table class="table">
37
+          <!-- <table class="table">
38
             <tr>
38
             <tr>
39
               <th width="26%">医嘱内容</th>
39
               <th width="26%">医嘱内容</th>
40
               <th width="20%">药品规格</th>
40
               <th width="20%">药品规格</th>
82
                     v-if="subdrug.single_dose"
82
                     v-if="subdrug.single_dose"
83
                   >{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span>
83
                   >{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span>
84
                 </td>
84
                 </td>
85
-                <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
85
+                
86
                 <td></td>
86
                 <td></td>
87
                 <td></td>
87
                 <td></td>
88
               </tr>
88
               </tr>
89
             </template>
89
             </template>
90
-          </table>
90
+          </table>-->
91
+          <el-table :data="tableData" border style="width: 100%" @row-click="click">
92
+            <el-table-column fixed prop="date" label="医嘱内容" width="150"></el-table-column>
93
+            <el-table-column prop="name" label="药品规格" width="120"></el-table-column>
94
+            <el-table-column prop="province" label="开药数量" width="120"></el-table-column>
95
+            <el-table-column prop="city" label="单次用量" width="120"></el-table-column>
96
+            <el-table-column prop="address" label="给药途径" width="300"></el-table-column>
97
+            <el-table-column prop="zip" label="执行频率" width="120"></el-table-column>
98
+          </el-table>
91
         </div>
99
         </div>
92
       </div>
100
       </div>
93
     </div>
101
     </div>
204
 
212
 
205
       selecting_advice_index: -1,
213
       selecting_advice_index: -1,
206
       selecting_subdrug_index: -1,
214
       selecting_subdrug_index: -1,
207
-      advices: []
215
+      advices: [],
216
+      tableData: [
217
+        {
218
+          date: "2016-05-02",
219
+          name: "123",
220
+          province: "上海",
221
+          city: "普陀区",
222
+          address: "上海市普陀区金沙江路 1518 弄",
223
+          zip: 200333
224
+        },
225
+        {
226
+          date: "2016-05-04",
227
+          name: "456",
228
+          province: "上海",
229
+          city: "普陀区",
230
+          address: "上海市普陀区金沙江路 1517 弄",
231
+          zip: 200333
232
+        },
233
+        {
234
+          date: "2016-05-01",
235
+          name: "789",
236
+          province: "上海",
237
+          city: "普陀区",
238
+          address: "上海市普陀区金沙江路 1519 弄",
239
+          zip: 200333
240
+        },
241
+        {
242
+          date: "2016-05-03",
243
+          name: "565345",
244
+          province: "上海",
245
+          city: "普陀区",
246
+          address: "上海市普陀区金沙江路 1516 弄",
247
+          zip: 200333
248
+        }
249
+      ]
208
     };
250
     };
209
   },
251
   },
210
   mounted() {
252
   mounted() {
213
       parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
255
       parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
214
   },
256
   },
215
   methods: {
257
   methods: {
258
+    click(row, column, event) {
259
+      console.log(row);
260
+      console.log(column);
261
+      console.log(event);
262
+    },
216
     backAction: function() {
263
     backAction: function() {
217
       this.$emit("back-action");
264
       this.$emit("back-action");
218
     },
265
     },

File diff suppressed because it is too large
+ 469 - 479
src/pages/main/dialysis/AdviceTable.vue


+ 4 - 5
src/pages/main/dialysis/DialysisTab.vue View File

57
 <style style="stylesheet/scss" lang="scss" scoped>
57
 <style style="stylesheet/scss" lang="scss" scoped>
58
 .fixedBox {
58
 .fixedBox {
59
   padding-top: 38px;
59
   padding-top: 38px;
60
-  background: #fff;
60
+  // background: #fff;
61
   min-height: calc(100vh - 64px);
61
   min-height: calc(100vh - 64px);
62
   // @media only screen and (min-width: 376px) and (max-width: 737px) {
62
   // @media only screen and (min-width: 376px) and (max-width: 737px) {
63
   //   padding-top: 46px;
63
   //   padding-top: 46px;
71
   .nav {
71
   .nav {
72
     border-bottom: 1px #e5e5e5 solid;
72
     border-bottom: 1px #e5e5e5 solid;
73
     position: fixed;
73
     position: fixed;
74
-    top: 45px;
74
+    top: 40px;
75
     @media only screen and (min-width: 768px) {
75
     @media only screen and (min-width: 768px) {
76
       top: 63px;
76
       top: 63px;
77
     }
77
     }
85
     z-index: 66;
85
     z-index: 66;
86
     left: 0;
86
     left: 0;
87
     background: #fff;
87
     background: #fff;
88
-    background: #fff;
89
     ul {
88
     ul {
90
-      width: 60%;
89
+      width: 80%;
91
       margin: 0 auto;
90
       margin: 0 auto;
92
       @include box-sizing;
91
       @include box-sizing;
93
       @include display-flex;
92
       @include display-flex;
95
       @include text-align;
94
       @include text-align;
96
       @include justify-content-between;
95
       @include justify-content-between;
97
       li {
96
       li {
98
-        font-size: 0.32rem;
97
+        font-size: 0.45rem;
99
         float: left;
98
         float: left;
100
         color: $pgh-color;
99
         color: $pgh-color;
101
         padding: 0.3rem 0;
100
         padding: 0.3rem 0;

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

300
 .van-list {
300
 .van-list {
301
   background: #fff;
301
   background: #fff;
302
   min-height: calc(100vh - 178px);
302
   min-height: calc(100vh - 178px);
303
-  margin-top: 66px;
303
+  margin-top: 62px;
304
   // @media only screen and (min-width: 376px) and (max-width: 668px) {
304
   // @media only screen and (min-width: 376px) and (max-width: 668px) {
305
   //   margin-top: 84px;
305
   //   margin-top: 84px;
306
   // }
306
   // }

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

210
     @include align-items-center;
210
     @include align-items-center;
211
     @include text-align;
211
     @include text-align;
212
     @include justify-content-between;
212
     @include justify-content-between;
213
-    width: 58%;
213
+    width: 80%;
214
     margin: 0 auto;
214
     margin: 0 auto;
215
-    font-size: 0.32rem;
215
+    font-size: 0.45rem;
216
     color: $pgh-color;
216
     color: $pgh-color;
217
     li {
217
     li {
218
       @include display-flex;
218
       @include display-flex;

+ 172 - 186
src/pages/main/dialysis/RecordTable.vue View File

91
       </div>-->
91
       </div>-->
92
       <el-table :data="tableDate" border style="width: 100%">
92
       <el-table :data="tableDate" border style="width: 100%">
93
         <el-table-column fixed prop="date" label="透析日期" width="100" align="center">
93
         <el-table-column fixed prop="date" label="透析日期" width="100" align="center">
94
-             <template slot-scope="scope">
95
-                {{parseTime(scope.row.dialysis_date, "{y}-{m}-{d}")}}
96
-             </template>
94
+          <template slot-scope="scope">{{parseTime(scope.row.dialysis_date, "{y}-{m}-{d}")}}</template>
97
         </el-table-column>
95
         </el-table-column>
98
         <el-table-column prop="name" label="班次" width="100" align="center">
96
         <el-table-column prop="name" label="班次" width="100" align="center">
99
-          <template slot-scope="scope">
100
-            {{scheduleType(scope.row.schedule_type)}}
101
-          </template>
97
+          <template slot-scope="scope">{{scheduleType(scope.row.schedule_type)}}</template>
102
         </el-table-column>
98
         </el-table-column>
103
         <el-table-column prop="province" label="分区-机号" width="120" align="center">
99
         <el-table-column prop="province" label="分区-机号" width="120" align="center">
104
-            <template slot-scope="scope">
105
-               {{scope.row.partition_name}} - {{scope.row.device_number}}
106
-            </template>
100
+          <template slot-scope="scope">{{scope.row.partition_name}} - {{scope.row.device_number}}</template>
107
         </el-table-column>
101
         </el-table-column>
108
         <el-table-column prop="city" label="透析模式" width="120" align="center">
102
         <el-table-column prop="city" label="透析模式" width="120" align="center">
109
-            <template slot-scope="scope">
110
-              {{modeName(scope.row.prescription.mode_id)}}
111
-            </template>
103
+          <template slot-scope="scope">{{modeName(scope.row.prescription.mode_id)}}</template>
112
         </el-table-column>
104
         </el-table-column>
113
         <el-table-column prop="address" label="透析时长(h)" width="100" align="center">
105
         <el-table-column prop="address" label="透析时长(h)" width="100" align="center">
114
-            <template slot-scope="scope">
115
-                 {{scope.row.prescription.dialysis_duration?scope.row.prescription.dialysis_duration:""}}
116
-            </template>
106
+          <template
107
+            slot-scope="scope"
108
+          >{{scope.row.prescription.dialysis_duration?scope.row.prescription.dialysis_duration:""}}</template>
117
         </el-table-column>
109
         </el-table-column>
118
         <el-table-column prop="date" label="干体重(kg)" width="100" align="center">
110
         <el-table-column prop="date" label="干体重(kg)" width="100" align="center">
119
-          <template slot-scope="scope">
120
-              {{scope.row.prescription.dry_weight?scope.row.prescription.dry_weight:""}}
121
-          </template>
111
+          <template
112
+            slot-scope="scope"
113
+          >{{scope.row.prescription.dry_weight?scope.row.prescription.dry_weight:""}}</template>
122
         </el-table-column>
114
         </el-table-column>
123
         <el-table-column prop="name" label="透前体重(kg)" width="100" align="center">
115
         <el-table-column prop="name" label="透前体重(kg)" width="100" align="center">
124
-          <template slot-scope="scope">
125
-              {{scope.row.predialysis_evaluation.weight_before?scope.row.predialysis_evaluation.weight_before:""}}
126
-          </template>
116
+          <template
117
+            slot-scope="scope"
118
+          >{{scope.row.predialysis_evaluation.weight_before?scope.row.predialysis_evaluation.weight_before:""}}</template>
127
         </el-table-column>
119
         </el-table-column>
128
         <el-table-column prop="province" label="透后体重(kg)" width="120" align="center">
120
         <el-table-column prop="province" label="透后体重(kg)" width="120" align="center">
129
-          <template slot-scope="scope">
130
-               {{scope.row.assessment_after_dislysis.systolic_blood_pressure?scope.row.assessment_after_dislysis.systolic_blood_pressure:""}}
131
-          </template>
121
+          <template
122
+            slot-scope="scope"
123
+          >{{scope.row.assessment_after_dislysis.systolic_blood_pressure?scope.row.assessment_after_dislysis.systolic_blood_pressure:""}}</template>
132
         </el-table-column>
124
         </el-table-column>
133
         <el-table-column prop="city" label="透前血压(mmHg)" width="120" align="center">
125
         <el-table-column prop="city" label="透前血压(mmHg)" width="120" align="center">
134
-          <template slot-scope="scope">
135
-           {{scope.row.predialysis_evaluation.systolic_blood_pressure?scope.row.predialysis_evaluation.systolic_blood_pressure:""}}
136
-          </template>
126
+          <template
127
+            slot-scope="scope"
128
+          >{{scope.row.predialysis_evaluation.systolic_blood_pressure?scope.row.predialysis_evaluation.systolic_blood_pressure:""}}</template>
137
         </el-table-column>
129
         </el-table-column>
138
         <el-table-column prop="address" label="透后血压(mmHg)" width="100" align="center">
130
         <el-table-column prop="address" label="透后血压(mmHg)" width="100" align="center">
139
-            <template slot-scope="scope">
140
-              {{scope.row.assessment_after_dislysis.systolic_blood_pressure?scope.row.assessment_after_dislysis.systolic_blood_pressure:""}}
141
-            </template>
131
+          <template
132
+            slot-scope="scope"
133
+          >{{scope.row.assessment_after_dislysis.systolic_blood_pressure?scope.row.assessment_after_dislysis.systolic_blood_pressure:""}}</template>
142
         </el-table-column>
134
         </el-table-column>
143
         <el-table-column prop="date" label="超滤总量(L)" width="100" align="center">
135
         <el-table-column prop="date" label="超滤总量(L)" width="100" align="center">
144
-          <template slot-scope="scope">
145
-             {{scope.row.predialysis_evaluation.ultrafiltration_amount?scope.row.predialysis_evaluation.ultrafiltration_amount:""}}
146
-          </template>
136
+          <template
137
+            slot-scope="scope"
138
+          >{{scope.row.predialysis_evaluation.ultrafiltration_amount?scope.row.predialysis_evaluation.ultrafiltration_amount:""}}</template>
147
         </el-table-column>
139
         </el-table-column>
148
         <el-table-column prop="name" label="抗凝剂种类 首剂/维持/总量" width="100" align="center">
140
         <el-table-column prop="name" label="抗凝剂种类 首剂/维持/总量" width="100" align="center">
149
-           <template slot-scope="scope">
150
-              {{setAnticoagulantsConfit(scope.row.prescription)}}
151
-           </template>
141
+          <template slot-scope="scope">{{setAnticoagulantsConfit(scope.row.prescription)}}</template>
152
         </el-table-column>
142
         </el-table-column>
153
         <el-table-column prop="province" label="治疗护士" width="120" align="center">
143
         <el-table-column prop="province" label="治疗护士" width="120" align="center">
154
-             <template slot-scope="scope">
155
-               {{getName(scope.row.treatment_summary.zl_nurse)}}
156
-             </template>
144
+          <template slot-scope="scope">{{getName(scope.row.treatment_summary.zl_nurse)}}</template>
157
         </el-table-column>
145
         </el-table-column>
158
         <el-table-column prop="city" label="治疗医生" width="120" align="center">
146
         <el-table-column prop="city" label="治疗医生" width="120" align="center">
159
-            <template slot-scope="scope">
160
-              {{getName(scope.row.treatment_summary.zl_doctor)}}
161
-            </template>
147
+          <template slot-scope="scope">{{getName(scope.row.treatment_summary.zl_doctor)}}</template>
162
         </el-table-column>
148
         </el-table-column>
163
       </el-table>
149
       </el-table>
164
     </van-list>
150
     </van-list>
182
 </template>
168
 </template>
183
 
169
 
184
 <script>
170
 <script>
185
-import { Popover } from 'vux'
186
-import { parseTime } from '@/utils'
187
-import { getRecordList } from '@/api/patient'
188
-import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from '@/api/doctor'
171
+import { Popover } from "vux";
172
+import { parseTime } from "@/utils";
173
+import { getRecordList } from "@/api/patient";
174
+import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from "@/api/doctor";
189
 
175
 
190
 export default {
176
 export default {
191
-  name: 'LongTable',
192
-  created () {
193
-    var date = new Date()
194
-    var year = date.getFullYear()
195
-    var month = date.getMonth()
196
-    var day = date.getDate()
177
+  name: "LongTable",
178
+  created() {
179
+    var date = new Date();
180
+    var year = date.getFullYear();
181
+    var month = date.getMonth();
182
+    var day = date.getDate();
197
     if (month < 10) {
183
     if (month < 10) {
198
-      month = '0' + month
184
+      month = "0" + month;
199
     }
185
     }
200
     if (day < 10) {
186
     if (day < 10) {
201
-      day = '0' + day
187
+      day = "0" + day;
202
     }
188
     }
203
-    var nowDate = year + '-' + month + '-' + day
189
+    var nowDate = year + "-" + month + "-" + day;
204
 
190
 
205
-    this.startTime = new Date(nowDate)
191
+    this.startTime = new Date(nowDate);
206
 
192
 
207
-    this.modeOptions = this.$store.getters.treatment_mode
193
+    this.modeOptions = this.$store.getters.treatment_mode;
208
 
194
 
209
-    this.modeOptions['0'] = {
195
+    this.modeOptions["0"] = {
210
       id: 0,
196
       id: 0,
211
-      name: '全部'
212
-    }
197
+      name: "全部"
198
+    };
213
 
199
 
214
     // console.log(this.modeOptions);
200
     // console.log(this.modeOptions);
215
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
201
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
216
     this.queryParams.start_time = this.parseTime(
202
     this.queryParams.start_time = this.parseTime(
217
       this.startTime.getTime() / 1000,
203
       this.startTime.getTime() / 1000,
218
-      '{y}-{m}-{d}'
219
-    )
204
+      "{y}-{m}-{d}"
205
+    );
220
     this.queryParams.end_time = this.parseTime(
206
     this.queryParams.end_time = this.parseTime(
221
       new Date().getTime() / 1000,
207
       new Date().getTime() / 1000,
222
-      '{y}-{m}-{d}'
223
-    )
224
-    this.queryParams.patient_id = this.$route.query.patient_id
225
-    this.queryParams.page = this.queryParams.page + 1
226
-    this.queryParams.limit = 15
227
-    this.tableDate = []
208
+      "{y}-{m}-{d}"
209
+    );
210
+    this.queryParams.patient_id = this.$route.query.patient_id;
211
+    this.queryParams.page = this.queryParams.page + 1;
212
+    this.queryParams.limit = 15;
213
+    this.tableDate = [];
228
     // console.log(this.queryParams);
214
     // console.log(this.queryParams);
229
 
215
 
230
     getRecordList(this.queryParams).then(response => {
216
     getRecordList(this.queryParams).then(response => {
231
       if (response.data.state == 0) {
217
       if (response.data.state == 0) {
232
-        return false
218
+        return false;
233
       } else {
219
       } else {
234
         if (response.data.data.records.length == 0) {
220
         if (response.data.data.records.length == 0) {
235
         } else {
221
         } else {
236
           for (let i = 0; i < response.data.data.records.length; i++) {
222
           for (let i = 0; i < response.data.data.records.length; i++) {
237
-            this.tableDate.push(response.data.data.records[i])
223
+            this.tableDate.push(response.data.data.records[i]);
238
           }
224
           }
239
         }
225
         }
240
       }
226
       }
241
-    })
242
-    this.fetchAllAdminUsers()
243
-    this.fetchAllDoctorAndNurse()
227
+    });
228
+    this.fetchAllAdminUsers();
229
+    this.fetchAllDoctorAndNurse();
244
   },
230
   },
245
-  data () {
231
+  data() {
246
     return {
232
     return {
247
-      mode_id: '',
233
+      mode_id: "",
248
       loading: false,
234
       loading: false,
249
       finished: false,
235
       finished: false,
250
       startTime: new Date(),
236
       startTime: new Date(),
257
       adminUserOptions: null,
243
       adminUserOptions: null,
258
 
244
 
259
       queryParams: {
245
       queryParams: {
260
-        mode_id: '',
261
-        start_time: '',
262
-        end_time: '',
246
+        mode_id: "",
247
+        start_time: "",
248
+        end_time: "",
263
         page: 0,
249
         page: 0,
264
         patient_id: 0,
250
         patient_id: 0,
265
         limit: 15
251
         limit: 15
266
       },
252
       },
267
 
253
 
268
       tableDate: []
254
       tableDate: []
269
-    }
255
+    };
270
   },
256
   },
271
   methods: {
257
   methods: {
272
-    modeName (mode_id) {
273
-      return typeof this.modeOptions[mode_id] !== 'undefined' &&
274
-        typeof this.modeOptions[mode_id].name !== 'undefined'
258
+    modeName(mode_id) {
259
+      return typeof this.modeOptions[mode_id] !== "undefined" &&
260
+        typeof this.modeOptions[mode_id].name !== "undefined"
275
         ? this.modeOptions[mode_id].name
261
         ? this.modeOptions[mode_id].name
276
-        : ''
262
+        : "";
277
     },
263
     },
278
-    modeNameOther (mode_id) {
279
-      return typeof this.modeOptions[mode_id] !== 'undefined' &&
280
-        typeof this.modeOptions[mode_id].name !== 'undefined'
264
+    modeNameOther(mode_id) {
265
+      return typeof this.modeOptions[mode_id] !== "undefined" &&
266
+        typeof this.modeOptions[mode_id].name !== "undefined"
281
         ? this.modeOptions[mode_id].name
267
         ? this.modeOptions[mode_id].name
282
-        : '全部'
268
+        : "全部";
283
     },
269
     },
284
 
270
 
285
-    parseTime (time, layout) {
286
-      return parseTime(time, layout)
271
+    parseTime(time, layout) {
272
+      return parseTime(time, layout);
287
     },
273
     },
288
-    openStartPicker: function () {
289
-      this.$refs.start_date_picker.open()
274
+    openStartPicker: function() {
275
+      this.$refs.start_date_picker.open();
290
     },
276
     },
291
-    openEndPicker: function () {
292
-      this.$refs.end_date_picker.open()
277
+    openEndPicker: function() {
278
+      this.$refs.end_date_picker.open();
293
     },
279
     },
294
-    handleStartDateConfirm: function (val) {
280
+    handleStartDateConfirm: function(val) {
295
       this.queryParams.start_time = this.parseTime(
281
       this.queryParams.start_time = this.parseTime(
296
         this.startTime / 1000,
282
         this.startTime / 1000,
297
-        '{y}-{m}-{d}'
298
-      )
283
+        "{y}-{m}-{d}"
284
+      );
299
       this.queryParams.end_time = this.parseTime(
285
       this.queryParams.end_time = this.parseTime(
300
         this.endTime / 1000,
286
         this.endTime / 1000,
301
-        '{y}-{m}-{d}'
302
-      )
303
-      this.queryParams.page = 1
304
-      this.queryParams.limit = 15
287
+        "{y}-{m}-{d}"
288
+      );
289
+      this.queryParams.page = 1;
290
+      this.queryParams.limit = 15;
305
 
291
 
306
-      this.getRecordList(this.queryParams)
292
+      this.getRecordList(this.queryParams);
307
     },
293
     },
308
-    handleEndDateConfirm: function (val) {
294
+    handleEndDateConfirm: function(val) {
309
       this.queryParams.start_time = this.parseTime(
295
       this.queryParams.start_time = this.parseTime(
310
         this.startTime / 1000,
296
         this.startTime / 1000,
311
-        '{y}-{m}-{d}'
312
-      )
297
+        "{y}-{m}-{d}"
298
+      );
313
       this.queryParams.end_time = this.parseTime(
299
       this.queryParams.end_time = this.parseTime(
314
         this.endTime / 1000,
300
         this.endTime / 1000,
315
-        '{y}-{m}-{d}'
316
-      )
317
-      this.queryParams.page = 1
318
-      this.queryParams.limit = 15
319
-      this.getRecordList(this.queryParams)
301
+        "{y}-{m}-{d}"
302
+      );
303
+      this.queryParams.page = 1;
304
+      this.queryParams.limit = 15;
305
+      this.getRecordList(this.queryParams);
320
     },
306
     },
321
-    getRecordList: function (val) {
322
-      this.tableDate = []
307
+    getRecordList: function(val) {
308
+      this.tableDate = [];
323
       getRecordList(val).then(response => {
309
       getRecordList(val).then(response => {
324
         if (response.data.state == 0) {
310
         if (response.data.state == 0) {
325
-          return false
311
+          return false;
326
         } else {
312
         } else {
327
           if (response.data.data.records.length == 0) {
313
           if (response.data.data.records.length == 0) {
328
           } else {
314
           } else {
329
             for (let i = 0; i < response.data.data.records.length; i++) {
315
             for (let i = 0; i < response.data.data.records.length; i++) {
330
-              this.tableDate.push(response.data.data.records[i])
316
+              this.tableDate.push(response.data.data.records[i]);
331
             }
317
             }
332
           }
318
           }
333
         }
319
         }
334
-      })
320
+      });
335
     },
321
     },
336
-    onLoad () {
322
+    onLoad() {
337
       this.queryParams.start_time = this.parseTime(
323
       this.queryParams.start_time = this.parseTime(
338
         this.startTime.getTime() / 1000,
324
         this.startTime.getTime() / 1000,
339
-        '{y}-{m}-{d}'
340
-      )
325
+        "{y}-{m}-{d}"
326
+      );
341
       this.queryParams.end_time = this.parseTime(
327
       this.queryParams.end_time = this.parseTime(
342
         this.endTime.getTime() / 1000,
328
         this.endTime.getTime() / 1000,
343
-        '{y}-{m}-{d}'
344
-      )
345
-      this.queryParams.patient_id = this.$route.query.patient_id
346
-      this.queryParams.page = this.queryParams.page + 1
347
-      this.queryParams.limit = 15
329
+        "{y}-{m}-{d}"
330
+      );
331
+      this.queryParams.patient_id = this.$route.query.patient_id;
332
+      this.queryParams.page = this.queryParams.page + 1;
333
+      this.queryParams.limit = 15;
348
 
334
 
349
       getRecordList(this.queryParams).then(response => {
335
       getRecordList(this.queryParams).then(response => {
350
         if (response.data.state == 0) {
336
         if (response.data.state == 0) {
351
-          this.finished = true
352
-          this.loading = false
353
-          return false
337
+          this.finished = true;
338
+          this.loading = false;
339
+          return false;
354
         } else {
340
         } else {
355
           if (response.data.data.records.length == 0) {
341
           if (response.data.data.records.length == 0) {
356
-            this.finished = true
357
-            this.loading = false
342
+            this.finished = true;
343
+            this.loading = false;
358
           } else {
344
           } else {
359
             for (let i = 0; i < response.data.data.records.length; i++) {
345
             for (let i = 0; i < response.data.data.records.length; i++) {
360
-              this.tableDate.push(response.data.data.records[i])
346
+              this.tableDate.push(response.data.data.records[i]);
361
             }
347
             }
362
-            this.loading = false
348
+            this.loading = false;
363
           }
349
           }
364
         }
350
         }
365
-      })
351
+      });
366
     },
352
     },
367
-    scheduleType (scheduleType) {
368
-      var typeName = ''
353
+    scheduleType(scheduleType) {
354
+      var typeName = "";
369
       switch (scheduleType) {
355
       switch (scheduleType) {
370
         case 1:
356
         case 1:
371
-          typeName = '上午'
372
-          break
357
+          typeName = "上午";
358
+          break;
373
         case 2:
359
         case 2:
374
-          typeName = '下午'
375
-          break
360
+          typeName = "下午";
361
+          break;
376
         case 3:
362
         case 3:
377
-          typeName = '晚上'
378
-          break
363
+          typeName = "晚上";
364
+          break;
379
         default:
365
         default:
380
-          break
366
+          break;
381
       }
367
       }
382
-      return typeName
368
+      return typeName;
383
     },
369
     },
384
-    setAnticoagulantsConfit: function (prescription) {
370
+    setAnticoagulantsConfit: function(prescription) {
385
       if (
371
       if (
386
         typeof this.anticoagulantsConfit[prescription.anticoagulant] ===
372
         typeof this.anticoagulantsConfit[prescription.anticoagulant] ===
387
-        'undefined'
373
+        "undefined"
388
       ) {
374
       ) {
389
-        return ''
375
+        return "";
390
       } else {
376
       } else {
391
         if (this.anticoagulantsConfit[prescription.anticoagulant].shouji != 1) {
377
         if (this.anticoagulantsConfit[prescription.anticoagulant].shouji != 1) {
392
-          return this.anticoagulantsConfit[prescription.anticoagulant].name
378
+          return this.anticoagulantsConfit[prescription.anticoagulant].name;
393
         } else {
379
         } else {
394
           return (
380
           return (
395
             this.anticoagulantsConfit[prescription.anticoagulant].name +
381
             this.anticoagulantsConfit[prescription.anticoagulant].name +
396
-            '/' +
382
+            "/" +
397
             prescription.anticoagulant_shouji +
383
             prescription.anticoagulant_shouji +
398
-            '/' +
384
+            "/" +
399
             prescription.anticoagulant_weichi +
385
             prescription.anticoagulant_weichi +
400
-            '/' +
386
+            "/" +
401
             prescription.anticoagulant_zongliang
387
             prescription.anticoagulant_zongliang
402
-          )
388
+          );
403
         }
389
         }
404
       }
390
       }
405
     },
391
     },
406
-    getName: function (id) {
392
+    getName: function(id) {
407
       if (id <= 0) {
393
       if (id <= 0) {
408
-        return ''
394
+        return "";
409
       }
395
       }
410
-      var name = ''
396
+      var name = "";
411
       if (
397
       if (
412
         this.adminUserOptions == null ||
398
         this.adminUserOptions == null ||
413
-        typeof this.adminUserOptions.length === 'undefined'
399
+        typeof this.adminUserOptions.length === "undefined"
414
       ) {
400
       ) {
415
-        return name
401
+        return name;
416
       }
402
       }
417
-      var leng = this.adminUserOptions.length
403
+      var leng = this.adminUserOptions.length;
418
       if (leng == 0) {
404
       if (leng == 0) {
419
-        return name
405
+        return name;
420
       }
406
       }
421
       for (let index = 0; index < leng; index++) {
407
       for (let index = 0; index < leng; index++) {
422
         if (this.adminUserOptions[index].id == id) {
408
         if (this.adminUserOptions[index].id == id) {
423
-          name = this.adminUserOptions[index].name
424
-          break
409
+          name = this.adminUserOptions[index].name;
410
+          break;
425
         }
411
         }
426
       }
412
       }
427
-      return name
413
+      return name;
428
     },
414
     },
429
-    fetchAllAdminUsers () {
415
+    fetchAllAdminUsers() {
430
       fetchAllAdminUsers().then(response => {
416
       fetchAllAdminUsers().then(response => {
431
         if (response.data.state == 1) {
417
         if (response.data.state == 1) {
432
-          this.adminUserOptions = response.data.data.users
433
-          var alen = this.adminUserOptions.length
418
+          this.adminUserOptions = response.data.data.users;
419
+          var alen = this.adminUserOptions.length;
434
           for (let index = 0; index < alen; index++) {
420
           for (let index = 0; index < alen; index++) {
435
             if (this.adminUserOptions[index].user_type == 2) {
421
             if (this.adminUserOptions[index].user_type == 2) {
436
-              this.doctorOptions.push(this.adminUserOptions[index])
422
+              this.doctorOptions.push(this.adminUserOptions[index]);
437
             }
423
             }
438
           }
424
           }
439
         }
425
         }
440
-      })
426
+      });
441
     },
427
     },
442
-    fetchAllDoctorAndNurse () {
428
+    fetchAllDoctorAndNurse() {
443
       fetchAllDoctorAndNurse().then(response => {
429
       fetchAllDoctorAndNurse().then(response => {
444
         if (response.data.state == 1) {
430
         if (response.data.state == 1) {
445
-          this.doctorOptions = response.data.data.doctors
431
+          this.doctorOptions = response.data.data.doctors;
446
         }
432
         }
447
-      })
433
+      });
448
     },
434
     },
449
-    itemClick: function (val) {
450
-      if (val == '0') {
451
-        this.mode_id = '0'
435
+    itemClick: function(val) {
436
+      if (val == "0") {
437
+        this.mode_id = "0";
452
       } else {
438
       } else {
453
-        this.mode_id = val
439
+        this.mode_id = val;
454
       }
440
       }
455
-      this.queryParams.mode_id = val
441
+      this.queryParams.mode_id = val;
456
       this.queryParams.start_time = this.parseTime(
442
       this.queryParams.start_time = this.parseTime(
457
         this.startTime / 1000,
443
         this.startTime / 1000,
458
-        '{y}-{m}-{d}'
459
-      )
444
+        "{y}-{m}-{d}"
445
+      );
460
       this.queryParams.end_time = this.parseTime(
446
       this.queryParams.end_time = this.parseTime(
461
         this.endTime / 1000,
447
         this.endTime / 1000,
462
-        '{y}-{m}-{d}'
463
-      )
464
-      this.queryParams.page = 1
465
-      this.queryParams.limit = 15
466
-      this.getRecordList(this.queryParams)
448
+        "{y}-{m}-{d}"
449
+      );
450
+      this.queryParams.page = 1;
451
+      this.queryParams.limit = 15;
452
+      this.getRecordList(this.queryParams);
467
     },
453
     },
468
-    jump: function (val) {
469
-      this.$emit('record', val)
454
+    jump: function(val) {
455
+      this.$emit("record", val);
470
 
456
 
471
       this.$router.push({
457
       this.$router.push({
472
-        path: '/details',
458
+        path: "/details",
473
         query: {
459
         query: {
474
           patient_id: val.patient_id,
460
           patient_id: val.patient_id,
475
           date: val.dialysis_date
461
           date: val.dialysis_date
476
         }
462
         }
477
-      })
463
+      });
478
     }
464
     }
479
   },
465
   },
480
   components: {
466
   components: {
481
     Popover
467
     Popover
482
   }
468
   }
483
-}
469
+};
484
 </script>
470
 </script>
485
 
471
 
486
 <style style="stylesheet/scss" lang="scss" scoped>
472
 <style style="stylesheet/scss" lang="scss" scoped>
491
     @include align-items-center;
477
     @include align-items-center;
492
     @include text-align;
478
     @include text-align;
493
     @include justify-content-between;
479
     @include justify-content-between;
494
-    width: 88%;
480
+    width: 98%;
495
     margin: 0 auto;
481
     margin: 0 auto;
496
-    font-size: 0.32rem;
482
+    font-size: 0.4rem;
497
     color: $pgh-color;
483
     color: $pgh-color;
498
     li {
484
     li {
499
       @include display-flex;
485
       @include display-flex;

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

77
   background: #fff;
77
   background: #fff;
78
   background: #fff;
78
   background: #fff;
79
   @media only screen and (max-width: 767px) {
79
   @media only screen and (max-width: 767px) {
80
-    top: 45px !important;
80
+    top: 40px !important;
81
   }
81
   }
82
   // @media only screen and (min-width: 376px) and (max-width: 668px) {
82
   // @media only screen and (min-width: 376px) and (max-width: 668px) {
83
   //   top: 50px !important;
83
   //   top: 50px !important;
100
     @include text-align;
100
     @include text-align;
101
     @include justify-content-between;
101
     @include justify-content-between;
102
     li {
102
     li {
103
-      font-size: 0.32rem;
103
+      font-size: 0.45rem;
104
       float: left;
104
       float: left;
105
       color: $pgh-color;
105
       color: $pgh-color;
106
       padding: 0.3rem 0;
106
       padding: 0.3rem 0;

+ 2 - 2
src/pages/main/today/TodayTab.vue View File

1591
   width: 20px;
1591
   width: 20px;
1592
   line-height: 18px;
1592
   line-height: 18px;
1593
   text-align: center;
1593
   text-align: center;
1594
-  font-size: 0.8em;
1594
+  font-size: 0.45rem;
1595
   border-radius: 20px;
1595
   border-radius: 20px;
1596
   color: #fff;
1596
   color: #fff;
1597
   background: #f56c6c;
1597
   background: #f56c6c;
1605
 }
1605
 }
1606
 </style>
1606
 </style>
1607
 <style lang="scss">
1607
 <style lang="scss">
1608
-.el-table::before{
1608
+.el-table::before {
1609
   z-index: 0;
1609
   z-index: 0;
1610
 }
1610
 }
1611
 </style>
1611
 </style>

+ 7 - 0
src/pages/monitoring/index.vue View File

633
   .el-input__icon {
633
   .el-input__icon {
634
     line-height: 1rem;
634
     line-height: 1rem;
635
     font-size: 0.45rem;
635
     font-size: 0.45rem;
636
+    margin-top: 0.02rem;
637
+    padding-left: 0.1rem;
638
+  }
639
+  .el-input__prefix {
640
+    @media only screen and (min-width: 768px) {
641
+      left: 10px;
642
+    }
636
   }
643
   }
637
 }
644
 }
638
 
645
 

+ 1 - 2
src/pages/personal/index.vue View File

67
           <span class="out" @click="logout">退出登录</span>
67
           <span class="out" @click="logout">退出登录</span>
68
         </div>
68
         </div>
69
       </div>-->
69
       </div>-->
70
-      <div class="myTitle">我的</div>
70
+      <!-- <div class="myTitle">我的</div> -->
71
       <div class="mybanner">
71
       <div class="mybanner">
72
         <img class="bannerOne" src="../../assets/my/myBanner.png" alt />
72
         <img class="bannerOne" src="../../assets/my/myBanner.png" alt />
73
         <div class="avatar">
73
         <div class="avatar">
277
   }
277
   }
278
   .mybanner {
278
   .mybanner {
279
     height: 30%;
279
     height: 30%;
280
-    margin-top: -1px;
281
     position: relative;
280
     position: relative;
282
     .bannerOne {
281
     .bannerOne {
283
       position: absolute;
282
       position: absolute;

+ 10 - 9
src/styles/style.scss View File

86
         font-size: 0.34rem;
86
         font-size: 0.34rem;
87
         line-height: 0.62rem;
87
         line-height: 0.62rem;
88
         float: left;
88
         float: left;
89
-        width: 5.2rem;
89
+        width: 5rem;
90
         @media only screen and (min-width: 376px) and (max-width: 413px) {
90
         @media only screen and (min-width: 376px) and (max-width: 413px) {
91
           width: 4.2rem;
91
           width: 4.2rem;
92
         }
92
         }
208
   @include justify-content-around;
208
   @include justify-content-around;
209
   background: #fff;
209
   background: #fff;
210
   span {
210
   span {
211
-    height: 0.6rem;
212
-    line-height: 0.6rem;
211
+    height: 0.8rem;
212
+    line-height: 0.8rem;
213
     background: #fff;
213
     background: #fff;
214
-    border-radius: 50px;
214
+    border-radius: 5px;
215
     border: 1px $border-color solid;
215
     border: 1px $border-color solid;
216
     display: inline-block;
216
     display: inline-block;
217
     @include text-align;
217
     @include text-align;
218
     margin: 0.25rem 0;
218
     margin: 0.25rem 0;
219
     color: #34495e;
219
     color: #34495e;
220
-    font-size: 0.34rem;
220
+    font-size: 0.36rem;
221
     padding: 0 0.3rem;
221
     padding: 0 0.3rem;
222
   }
222
   }
223
   .forbid {
223
   .forbid {
432
         // }
432
         // }
433
       }
433
       }
434
       .back {
434
       .back {
435
-        font-size: 0.36rem;
435
+        font-size: 0.45rem;
436
         color: $main-color;
436
         color: $main-color;
437
         @include display-flex;
437
         @include display-flex;
438
         @include align-items-center;
438
         @include align-items-center;
441
           font-size: 0.5rem;
441
           font-size: 0.5rem;
442
           font-weight: 700;
442
           font-weight: 700;
443
           color: $main-color;
443
           color: $main-color;
444
+          margin-top: 0.06rem;
444
         }
445
         }
445
       }
446
       }
446
       .name {
447
       .name {
628
 }
629
 }
629
 
630
 
630
 .mint-datetime-action {
631
 .mint-datetime-action {
631
-  font-size: 0.36rem;
632
+  font-size: 0.45rem;
632
 }
633
 }
633
 
634
 
634
 .picker-item {
635
 .picker-item {
816
   @include display-flex;
817
   @include display-flex;
817
   @include align-items-center;
818
   @include align-items-center;
818
   @include text-align;
819
   @include text-align;
819
-  font-size: 0.36rem;
820
+  font-size: 0.45rem;
820
   .back {
821
   .back {
821
     // color: $main-color;
822
     // color: $main-color;
822
     color: #fff;
823
     color: #fff;
823
-    margin-right: 0.87rem;
824
+    margin-right: 0.4rem;
824
     .iconfont {
825
     .iconfont {
825
       // color: $main-color;
826
       // color: $main-color;
826
       color: #fff;
827
       color: #fff;