xiaoming_global преди 5 години
родител
ревизия
9834cc7fa5

+ 10 - 0
src/pages/advice/AdvicePage.vue Целия файл

@@ -174,10 +174,20 @@ export default {
174 174
     border-radius: 30px;
175 175
     border: none;
176 176
     font-size: 0.45rem;
177
+    @media only screen and (min-width: 768px) {
178
+      padding-left: 0.9rem;
179
+    }
177 180
   }
178 181
   .el-input__icon {
179 182
     line-height: 1rem;
180 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 193
 </style>

+ 127 - 122
src/pages/advice/DialysisAdviceTable.vue Целия файл

@@ -71,7 +71,7 @@
71 71
 
72 72
     <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
73 73
       <div class="blueBorder"></div>
74
-<!--
74
+      <!--
75 75
       <table class="table">
76 76
       <tr>
77 77
         <th width="50px">姓名</th>
@@ -156,16 +156,22 @@
156 156
           </template>
157 157
         </template>
158 158
       </template>
159
-      </table> -->
159
+      </table>-->
160 160
 
161 161
       <div class="NoData" v-show="zones.length <= 1">
162 162
         <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
163 163
       </div>
164 164
       <el-table :data="date" border style="width: 100%">
165 165
         <el-table-column fixed prop="date" label="姓名" width="100" align="center">
166
+<<<<<<< .mine
166 167
             <template slot-scope="scope">
167 168
                {{ scope.row.advice_name }}
168 169
             </template>
170
+=======
171
+          <template slot-scope="scope"></template>
172
+
173
+
174
+>>>>>>> .theirs
169 175
         </el-table-column>
170 176
         <el-table-column prop="name" label="透析号" width="100" align="center"></el-table-column>
171 177
         <el-table-column prop="province" label="期效" width="100" align="center"></el-table-column>
@@ -193,16 +199,16 @@
193 199
 </template>
194 200
 
195 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 206
 export default {
201
-  name: 'DialysisAdviceTable',
207
+  name: "DialysisAdviceTable",
202 208
   components: {
203 209
     SideBar
204 210
   },
205
-  data () {
211
+  data() {
206 212
     return {
207 213
       selected_date: new Date(),
208 214
       admin_user: [],
@@ -210,154 +216,153 @@ export default {
210 216
       show_sch_type_selector: false,
211 217
       schedule_type_selected: 0,
212 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 225
       show_zone_selector: false,
220 226
       zone_selected: 0,
221 227
       show_patient_type_selector: false,
222
-      zones: [{ value: 0, text: '全部分区', select: true }],
228
+      zones: [{ value: 0, text: "全部分区", select: true }],
223 229
 
224 230
       show_advice_type_selector: false,
225 231
       advice_type_selected: 0,
226 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 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 243
       patient_selected: 0,
238 244
 
239 245
       scheduleMap: {},
240 246
       tableData: []
241
-
242
-    }
247
+    };
243 248
   },
244 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 255
       if (this.zone_selected == 0) {
251 256
         for (const key in this.scheduleMap) {
252
-          scheduleMap[key] = this.scheduleMap[key]
257
+          scheduleMap[key] = this.scheduleMap[key];
253 258
         }
254 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 264
       if (this.schedule_type_selected != 0) {
260
-        var _scheduleMap = {}
265
+        var _scheduleMap = {};
261 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 269
           for (let index = 0; index < origin_schedules.length; index++) {
265
-            const schedule = origin_schedules[index]
270
+            const schedule = origin_schedules[index];
266 271
             if (schedule.schedule_type == this.schedule_type_selected) {
267
-              schedules.push(schedule)
272
+              schedules.push(schedule);
268 273
             }
269 274
           }
270 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 282
       for (var key in scheduleMap) {
278
-        let mapArr = scheduleMap[key]
283
+        let mapArr = scheduleMap[key];
279 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 289
       for (var key in scheduleMap) {
285
-        let mapArr = scheduleMap[key]
290
+        let mapArr = scheduleMap[key];
286 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 294
           if (resp_advices.length > 0) {
290
-            var newGroupObject = function () {
295
+            var newGroupObject = function() {
291 296
               return Object.assign(
292 297
                 {},
293 298
                 {
294 299
                   group_no: 0,
295 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 310
             for (let index = 0; index < resp_advices.length; index++) {
306
-              const advice = resp_advices[index]
311
+              const advice = resp_advices[index];
307 312
               if (advice.groupno == 0) {
308 313
                 // 老版本的医嘱
309 314
                 if (advice.parent_id > 0) {
310 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 317
                     if (parent_group.advices.length > 0) {
313 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 324
                 } else {
320 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 336
               } else {
332 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 341
                 if (group.group_no == 0) {
337
-                  initGroupBlock(group, advice)
342
+                  initGroupBlock(group, advice);
338 343
                 }
339 344
                 if (group.group_no == advice.groupno) {
340
-                  group.advices.push(advice)
345
+                  group.advices.push(advice);
341 346
                 }
342 347
               }
343 348
             }
344 349
             if (group.group_no > 0) {
345 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 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 367
   methods: {
363 368
     // getNumber: function (advice,schedule) {
@@ -371,115 +376,115 @@ export default {
371 376
     //   }
372 377
     //
373 378
     // },
374
-    clickfunction: function (val) {
379
+    clickfunction: function(val) {
375 380
       // console.log(val);
376 381
       this.$router.push({
377
-        path: '/details',
382
+        path: "/details",
378 383
         query: {
379 384
           patient_id: val.patient.id,
380 385
           date: this.selected_date.getTime() / 1000,
381 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 399
       if (parent_id == 0) {
395 400
         if (type == 1) {
396
-          return '长嘱'
401
+          return "长嘱";
397 402
         } else if (type == 2) {
398
-          return '临嘱'
403
+          return "临嘱";
399 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 412
       for (let i = 0; i < this.admin_user.length; i++) {
408 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 432
       // console.log(time);
428 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 439
       getSchedualDoctors({
435 440
         date: this.selected_date_str,
436 441
         patient_type: this.patient_selected,
437 442
         advice_type: 2
438 443
       }).then(rs => {
439
-        var resp = rs.data
444
+        var resp = rs.data;
440 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 451
           for (let index = 0; index < schedules.length; index++) {
447
-            const schedule = schedules[index]
452
+            const schedule = schedules[index];
448 453
             if (schedule.doctor_advice.length == 0) {
449
-              continue
454
+              continue;
450 455
             }
451 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 460
             if (zoneMap[schedule.device_number.zone.name] == null) {
456 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 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 478
         } else {
474 479
           this.$toast({
475 480
             message: resp.msg
476
-          })
481
+          });
477 482
         }
478
-      })
483
+      });
479 484
     },
480
-    adviceDesc (advice) {}
485
+    adviceDesc(advice) {}
481 486
   }
482
-}
487
+};
483 488
 </script>
484 489
 
485 490
 <style style="stylesheet/scss" lang="scss" scoped>

+ 13 - 10
src/pages/layout/SideBar.vue Целия файл

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

+ 8 - 4
src/pages/main/DetailsPage.vue Целия файл

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

+ 6 - 6
src/pages/main/DialysisArea.vue Целия файл

@@ -475,19 +475,19 @@ export default {
475 475
     @include align-items-center;
476 476
     @include text-align;
477 477
     @include justify-content-between;
478
-    width: 80%;
478
+    width: 90%;
479 479
     margin: 0 auto;
480 480
     li {
481
-      font-size: 0.32rem;
481
+      font-size: 0.45rem;
482 482
       padding: 0.3rem 0;
483 483
       cursor: pointer;
484 484
       .iconfont {
485
-        font-size: 0.32rem;
485
+        font-size: 0.45rem;
486 486
         color: #a8b3ba;
487 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 Целия файл

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

+ 12 - 32
src/pages/main/RecordPage.vue Целия файл

@@ -8,6 +8,9 @@
8 8
       </div>-->
9 9
       <div class="floatLeft">
10 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 14
       </div>
12 15
       <!-- </van-col> -->
13 16
       <!-- <van-col :span="6">
@@ -123,11 +126,6 @@
123 126
         @clear_search_keyword="clearKeyword"
124 127
       ></dialysis-area>
125 128
     </div>
126
-    <router-link to="/add_urgent_schedule">
127
-      <div class="add">
128
-        <p>临时排班</p>
129
-      </div>
130
-    </router-link>
131 129
   </div>
132 130
 </template>
133 131
 
@@ -206,6 +204,12 @@ export default {
206 204
   .floatLeft {
207 205
     line-height: 1rem;
208 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 214
   .search {
211 215
     float: right;
@@ -274,7 +278,7 @@ export default {
274 278
   @media only screen and (max-width: 767px) {
275 279
     height: 16px;
276 280
     width: 16px;
277
-    line-height: 14px;
281
+    line-height: 15px;
278 282
   }
279 283
 }
280 284
 .box {
@@ -311,32 +315,6 @@ export default {
311 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 318
 </style>
341 319
 <style lang="scss">
342 320
 .newInput {
@@ -357,6 +335,8 @@ export default {
357 335
   .el-input__icon {
358 336
     line-height: 1rem;
359 337
     font-size: 0.45rem;
338
+    margin-top: 0.02rem;
339
+    padding-left: 0.1rem;
360 340
     @media only screen and (min-width: 768px) {
361 341
       margin-top: 1px;
362 342
     }

+ 3 - 3
src/pages/main/WaitingArea.vue Целия файл

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

+ 387 - 316
src/pages/main/dialog/ComputerDialog.vue Целия файл

@@ -1,15 +1,21 @@
1 1
 <template>
2 2
   <div>
3
-
4 3
     <div class="Dialog" v-show="!selecting">
5 4
       <div class="DialogTit">
6 5
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7 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 16
       </div>
11 17
 
12
-      <div class="DialogContent ">
18
+      <div class="DialogContent">
13 19
         <div class="item" @click="select_bed">
14 20
           <h2 class="name">上机床位</h2>
15 21
           <div class="content">
@@ -28,7 +34,11 @@
28 34
         <div class="item" @click="select_puncture_nurse">
29 35
           <h2 class="name">穿刺者</h2>
30 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 42
             <span class="iconfont">&#xe6f9;</span>
33 43
           </div>
34 44
         </div>
@@ -36,21 +46,22 @@
36 46
         <div class="item" v-if="template_id == 6">
37 47
           <label class="name" for="xll">引血(ml/min)</label>
38 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 50
           </div>
41 51
         </div>
42 52
 
43 53
         <div class="item">
44 54
           <h2 class="name">上机时间</h2>
45 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 61
             <span class="iconfont">&#xe6f9;</span>
48 62
           </div>
49 63
         </div>
50 64
 
51
-        
52
-
53
-
54 65
         <div class="perform">
55 66
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
56 67
           <button :disabled="true" style="background-color:lightgray;" v-else>已上机</button>
@@ -69,350 +80,410 @@
69 80
 </template>
70 81
 
71 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 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 262
         if (this.record.creator == 0) {
186
-          this.creator = this.record.start_nurse
263
+          creator = this.record.start_nurse;
187 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 466
 </script>
395 467
 
396 468
 <style style="stylesheet/scss" lang="scss" scoped>
397
-
398
-  .perform{
469
+.perform {
399 470
   text-align: center;
400 471
   font-size: 0.3rem;
401 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 488
 </style>
418 489
 

+ 213 - 160
src/pages/main/dialog/PlaneDialog.vue Целия файл

@@ -1,58 +1,79 @@
1 1
 <template>
2
- <div>
2
+  <div>
3 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 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 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 57
         </div>
58
+      </div>
36 59
     </div>
37 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 67
   </div>
45 68
 </template>
46 69
 
47 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 77
   name: "PlaneDialog",
57 78
   components: {
58 79
     TwoMenu
@@ -61,39 +82,45 @@
61 82
     return {
62 83
       selecting: false,
63 84
       end_time_str: "",
64
-      end_time:new Date(),
85
+      end_time: new Date(),
65 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 92
     patient_prop: {
72
-      type: Object,
93
+      type: Object
73 94
     },
74 95
     record: {
75
-      type: Object,
96
+      type: Object
76 97
     },
77 98
     admins: {
78
-      type: Array,
99
+      type: Array
79 100
     },
80 101
     admin_map: {
81
-      type: Object,
102
+      type: Object
82 103
     },
83 104
     special_premission: {
84
-      type: Array,
105
+      type: Array
85 106
     },
86 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 124
     var date = this.$route.query && this.$route.query.date;
98 125
     date *= 1000;
99 126
     var newDate = new Date(date);
@@ -106,92 +133,100 @@
106 133
       m = newDate.getMonth() + 1;
107 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 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 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 149
     if (this.record.id > 0) {
122 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 160
     if (this.record.id > 0) {
130 161
       if (this.record.finish_creator == 0) {
131
-        this.creator = this.record.finish_nurse
162
+        this.creator = this.record.finish_nurse;
132 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 168
   methods: {
140 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 182
       PostModifyEndDialysis(ParamsQuery).then(response => {
150 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 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 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 196
     didSelectStartTime: function(time) {
164 197
       this.end_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
165 198
     },
166 199
     selectStartTimeAction: function() {
167 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 203
           if (this.record.finish_creator == 0) {
171
-            creator = this.record.finish_nurse
204
+            creator = this.record.finish_nurse;
172 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 213
           } else {
178
-            return
214
+            return;
179 215
           }
180
-        }else{
216
+        } else {
181 217
           this.$refs.start_time_picker.open();
182 218
         }
183
-      }else{
219
+      } else {
184 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 231
       finish(ParamsQuery).then(response => {
197 232
         if (response.data.state == 0) {
@@ -199,10 +234,10 @@
199 234
           return false;
200 235
         } else {
201 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 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 241
             // record[key] = response.data.data.dialysisOrder[key]
207 242
           }
208 243
           // console.log(this.record)
@@ -210,90 +245,108 @@
210 245
       });
211 246
     },
212 247
     close: function() {
213
-      this.$emit('close')
248
+      this.$emit("close");
214 249
     },
215 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 271
           if (this.record.finish_creator == 0) {
229
-            creator = this.record.finish_nurse
272
+            creator = this.record.finish_nurse;
230 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 296
           } else {
243
-            return
297
+            return;
244 298
           }
245 299
         }
246
-
247 300
       }
248 301
     },
249
-    open:function(){
302
+    open: function() {
250 303
       this.selecting = false;
251 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 330
 </script>
277 331
 
278 332
 <style style="stylesheet/scss" lang="scss" scoped>
279
-
280
-.perform{
333
+.perform {
281 334
   text-align: center;
282 335
   font-size: 0.3rem;
283 336
   padding-top: 2rem;
284
-  .crew{
337
+  .crew {
285 338
     color: $pgh-color;
286 339
   }
287
-  button{
288
-    background:$main-color;
340
+  button {
341
+    background: $main-color;
289 342
     color: #fff;
290
-    font-size: 0.3rem;
291
-    text-align:center;
343
+    font-size: 0.45rem;
344
+    text-align: center;
292 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 352
 </style>

+ 1 - 1
src/pages/main/dialog/PrescriptionDialog.vue Целия файл

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

+ 51 - 4
src/pages/main/dialog/new_order/AddNewOrders.vue Целия файл

@@ -34,7 +34,7 @@
34 34
               <label>开嘱时间 {{record_date_str}}</label>
35 35
             </div>
36 36
           </div>
37
-          <table class="table">
37
+          <!-- <table class="table">
38 38
             <tr>
39 39
               <th width="26%">医嘱内容</th>
40 40
               <th width="20%">药品规格</th>
@@ -82,12 +82,20 @@
82 82
                     v-if="subdrug.single_dose"
83 83
                   >{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span>
84 84
                 </td>
85
-                <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
85
+                
86 86
                 <td></td>
87 87
                 <td></td>
88 88
               </tr>
89 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 99
         </div>
92 100
       </div>
93 101
     </div>
@@ -204,7 +212,41 @@ export default {
204 212
 
205 213
       selecting_advice_index: -1,
206 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 252
   mounted() {
@@ -213,6 +255,11 @@ export default {
213 255
       parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
214 256
   },
215 257
   methods: {
258
+    click(row, column, event) {
259
+      console.log(row);
260
+      console.log(column);
261
+      console.log(event);
262
+    },
216 263
     backAction: function() {
217 264
       this.$emit("back-action");
218 265
     },

Файловите разлики са ограничени, защото са твърде много
+ 469 - 479
src/pages/main/dialysis/AdviceTable.vue


+ 4 - 5
src/pages/main/dialysis/DialysisTab.vue Целия файл

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

+ 1 - 1
src/pages/main/dialysis/InspectionItemTable.vue Целия файл

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

+ 2 - 2
src/pages/main/dialysis/MissionTable.vue Целия файл

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

+ 172 - 186
src/pages/main/dialysis/RecordTable.vue Целия файл

@@ -91,74 +91,60 @@
91 91
       </div>-->
92 92
       <el-table :data="tableDate" border style="width: 100%">
93 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 95
         </el-table-column>
98 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 98
         </el-table-column>
103 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 101
         </el-table-column>
108 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 104
         </el-table-column>
113 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 109
         </el-table-column>
118 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 114
         </el-table-column>
123 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 119
         </el-table-column>
128 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 124
         </el-table-column>
133 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 129
         </el-table-column>
138 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 134
         </el-table-column>
143 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 139
         </el-table-column>
148 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 142
         </el-table-column>
153 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 145
         </el-table-column>
158 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 148
         </el-table-column>
163 149
       </el-table>
164 150
     </van-list>
@@ -182,69 +168,69 @@
182 168
 </template>
183 169
 
184 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 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 183
     if (month < 10) {
198
-      month = '0' + month
184
+      month = "0" + month;
199 185
     }
200 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 196
       id: 0,
211
-      name: '全部'
212
-    }
197
+      name: "全部"
198
+    };
213 199
 
214 200
     // console.log(this.modeOptions);
215
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
201
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
216 202
     this.queryParams.start_time = this.parseTime(
217 203
       this.startTime.getTime() / 1000,
218
-      '{y}-{m}-{d}'
219
-    )
204
+      "{y}-{m}-{d}"
205
+    );
220 206
     this.queryParams.end_time = this.parseTime(
221 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 214
     // console.log(this.queryParams);
229 215
 
230 216
     getRecordList(this.queryParams).then(response => {
231 217
       if (response.data.state == 0) {
232
-        return false
218
+        return false;
233 219
       } else {
234 220
         if (response.data.data.records.length == 0) {
235 221
         } else {
236 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 232
     return {
247
-      mode_id: '',
233
+      mode_id: "",
248 234
       loading: false,
249 235
       finished: false,
250 236
       startTime: new Date(),
@@ -257,230 +243,230 @@ export default {
257 243
       adminUserOptions: null,
258 244
 
259 245
       queryParams: {
260
-        mode_id: '',
261
-        start_time: '',
262
-        end_time: '',
246
+        mode_id: "",
247
+        start_time: "",
248
+        end_time: "",
263 249
         page: 0,
264 250
         patient_id: 0,
265 251
         limit: 15
266 252
       },
267 253
 
268 254
       tableDate: []
269
-    }
255
+    };
270 256
   },
271 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 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 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 281
       this.queryParams.start_time = this.parseTime(
296 282
         this.startTime / 1000,
297
-        '{y}-{m}-{d}'
298
-      )
283
+        "{y}-{m}-{d}"
284
+      );
299 285
       this.queryParams.end_time = this.parseTime(
300 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 295
       this.queryParams.start_time = this.parseTime(
310 296
         this.startTime / 1000,
311
-        '{y}-{m}-{d}'
312
-      )
297
+        "{y}-{m}-{d}"
298
+      );
313 299
       this.queryParams.end_time = this.parseTime(
314 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 309
       getRecordList(val).then(response => {
324 310
         if (response.data.state == 0) {
325
-          return false
311
+          return false;
326 312
         } else {
327 313
           if (response.data.data.records.length == 0) {
328 314
           } else {
329 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 323
       this.queryParams.start_time = this.parseTime(
338 324
         this.startTime.getTime() / 1000,
339
-        '{y}-{m}-{d}'
340
-      )
325
+        "{y}-{m}-{d}"
326
+      );
341 327
       this.queryParams.end_time = this.parseTime(
342 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 335
       getRecordList(this.queryParams).then(response => {
350 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 340
         } else {
355 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 344
           } else {
359 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 355
       switch (scheduleType) {
370 356
         case 1:
371
-          typeName = '上午'
372
-          break
357
+          typeName = "上午";
358
+          break;
373 359
         case 2:
374
-          typeName = '下午'
375
-          break
360
+          typeName = "下午";
361
+          break;
376 362
         case 3:
377
-          typeName = '晚上'
378
-          break
363
+          typeName = "晚上";
364
+          break;
379 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 371
       if (
386 372
         typeof this.anticoagulantsConfit[prescription.anticoagulant] ===
387
-        'undefined'
373
+        "undefined"
388 374
       ) {
389
-        return ''
375
+        return "";
390 376
       } else {
391 377
         if (this.anticoagulantsConfit[prescription.anticoagulant].shouji != 1) {
392
-          return this.anticoagulantsConfit[prescription.anticoagulant].name
378
+          return this.anticoagulantsConfit[prescription.anticoagulant].name;
393 379
         } else {
394 380
           return (
395 381
             this.anticoagulantsConfit[prescription.anticoagulant].name +
396
-            '/' +
382
+            "/" +
397 383
             prescription.anticoagulant_shouji +
398
-            '/' +
384
+            "/" +
399 385
             prescription.anticoagulant_weichi +
400
-            '/' +
386
+            "/" +
401 387
             prescription.anticoagulant_zongliang
402
-          )
388
+          );
403 389
         }
404 390
       }
405 391
     },
406
-    getName: function (id) {
392
+    getName: function(id) {
407 393
       if (id <= 0) {
408
-        return ''
394
+        return "";
409 395
       }
410
-      var name = ''
396
+      var name = "";
411 397
       if (
412 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 404
       if (leng == 0) {
419
-        return name
405
+        return name;
420 406
       }
421 407
       for (let index = 0; index < leng; index++) {
422 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 416
       fetchAllAdminUsers().then(response => {
431 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 420
           for (let index = 0; index < alen; index++) {
435 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 429
       fetchAllDoctorAndNurse().then(response => {
444 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 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 442
       this.queryParams.start_time = this.parseTime(
457 443
         this.startTime / 1000,
458
-        '{y}-{m}-{d}'
459
-      )
444
+        "{y}-{m}-{d}"
445
+      );
460 446
       this.queryParams.end_time = this.parseTime(
461 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 457
       this.$router.push({
472
-        path: '/details',
458
+        path: "/details",
473 459
         query: {
474 460
           patient_id: val.patient_id,
475 461
           date: val.dialysis_date
476 462
         }
477
-      })
463
+      });
478 464
     }
479 465
   },
480 466
   components: {
481 467
     Popover
482 468
   }
483
-}
469
+};
484 470
 </script>
485 471
 
486 472
 <style style="stylesheet/scss" lang="scss" scoped>
@@ -491,9 +477,9 @@ export default {
491 477
     @include align-items-center;
492 478
     @include text-align;
493 479
     @include justify-content-between;
494
-    width: 88%;
480
+    width: 98%;
495 481
     margin: 0 auto;
496
-    font-size: 0.32rem;
482
+    font-size: 0.4rem;
497 483
     color: $pgh-color;
498 484
     li {
499 485
       @include display-flex;

+ 2 - 2
src/pages/main/records/CaseHistory.vue Целия файл

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

+ 2 - 2
src/pages/main/today/TodayTab.vue Целия файл

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

+ 7 - 0
src/pages/monitoring/index.vue Целия файл

@@ -633,6 +633,13 @@ export default {
633 633
   .el-input__icon {
634 634
     line-height: 1rem;
635 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 Целия файл

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

+ 10 - 9
src/styles/style.scss Целия файл

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