Browse Source

修改样式

See999 5 years ago
parent
commit
32161a8fb4

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

@@ -180,10 +180,10 @@ export default {
180 180
     right: 0;
181 181
     z-index: 100;
182 182
     background: #258ffc;
183
-    -webkit-transform:translateZ(1px);
184
--moz-transform:translateZ(1px);
185
--o-transform:translateZ(1px);
186
-transform:translateZ(1px);
183
+    -webkit-transform: translateZ(1px);
184
+    -moz-transform: translateZ(1px);
185
+    -o-transform: translateZ(1px);
186
+    transform: translateZ(1px);
187 187
     @media only screen and (max-width: 320px) {
188 188
       display: -webkit-box;
189 189
     }
@@ -192,6 +192,9 @@ transform:translateZ(1px);
192 192
     }
193 193
     .nav {
194 194
       margin-right: 2.4rem;
195
+      @media only screen and (min-width: 416px) {
196
+        margin-right: 4rem;
197
+      }
195 198
       @media only screen and (min-width: 768px) {
196 199
         margin-right: 4rem;
197 200
       }

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

@@ -456,7 +456,7 @@ export default {
456 456
   background-color: #f56c6c;
457 457
   color: #fff;
458 458
   border-radius: 15px;
459
-  font-size: 14px;
459
+  font-size: 0.32rem;
460 460
   @media only screen and (max-width: 415px) {
461 461
     font-size: 0.34rem !important;
462 462
   }

+ 71 - 48
src/pages/main/dialog/modify_order/ModifyAdviceGroup.vue View File

@@ -10,23 +10,20 @@
10 10
       </div>
11 11
       <div class="DialogContent choose">
12 12
         <div class="content clearfix">
13
-          <div class="yzNav" style="width:90%;">
14
-            <span @click="newAdviceAction">新增医嘱</span>
13
+          <div class="yzNav newYzNav" style="width:100%;overflow-x:hidden">
14
+            <span @click="newAdviceAction">新增内容</span>
15 15
             <span
16 16
               @click="modifyAction"
17 17
               :class="{ forbid: current_advice_index < 0 }"
18
-              >修改医嘱</span
18
+              >修改内容</span
19 19
             >
20 20
           </div>
21
-          <div style="overflow: hidden;">
21
+          <div class="newBox" style="overflow: hidden;">
22 22
             <div class="cell" style="margin-top: 0;">
23 23
               <label>医嘱类型</label>
24 24
               <el-input ref="advice_type" value="临时" disabled></el-input>
25 25
             </div>
26
-            <div class="cell" style="margin-top: 0;">
27
-              <label>开嘱时间</label>
28
-              <el-input readonly :value="record_date_str"></el-input>
29
-            </div>
26
+
30 27
             <div class="cell" style="margin-top: 0;">
31 28
               <label>开始时间</label>
32 29
               <el-input
@@ -35,6 +32,11 @@
35 32
                 @focus="selectStartTimeAction"
36 33
               ></el-input>
37 34
             </div>
35
+            <div class="cell" style="margin-top: 0;">
36
+              <label>开嘱时间</label>
37
+              <!-- <el-input readonly :value="record_date_str"></el-input> -->
38
+              <span class="newSpan">{{ record_date_str }}</span>
39
+            </div>
38 40
             <div class="cell" style="margin-top: 0;">
39 41
               <label>开嘱医生</label>
40 42
               <span class="newdoctorName">{{
@@ -42,41 +44,43 @@
42 44
               }}</span>
43 45
             </div>
44 46
           </div>
45
-          <table class="table">
46
-            <tr @click="cancelSelectAdvice">
47
-              <th width="30%">医嘱内容</th>
48
-              <th width="20%">药品规格</th>
49
-              <th width="10%">开药数量</th>
50
-              <th width="10%">单次用量</th>
51
-              <th width="15%">给药途径</th>
52
-              <th width="15%">执行频率</th>
53
-            </tr>
54
-            <tr
55
-              v-for="(advice, index) in advices"
56
-              :key="index"
57
-              :class="{ 'row-class-active': index == current_advice_index }"
58
-              @click="selectAdviceAction(index, advice)"
59
-            >
60
-              <td
61
-                :class="{
62
-                  advice_name: advice.parent_id == 0,
63
-                  subdrug_name: advice.parent_id > 0
64
-                }"
47
+          <div class="newModifyTable">
48
+            <table class="table">
49
+              <tr @click="cancelSelectAdvice">
50
+                <th width="30%">医嘱内容</th>
51
+                <th width="20%">药品规格</th>
52
+                <th width="10%">开药数量</th>
53
+                <th width="10%">单次用量</th>
54
+                <th width="15%">给药途径</th>
55
+                <th width="15%">执行频率</th>
56
+              </tr>
57
+              <tr
58
+                v-for="(advice, index) in advices"
59
+                :key="index"
60
+                :class="{ 'row-class-active': index == current_advice_index }"
61
+                @click="selectAdviceAction(index, advice)"
65 62
               >
66
-                {{ advice.advice_name }}
67
-              </td>
68
-              <td>{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</td>
69
-              <td>
70
-                {{ advice.prescribing_number
71
-                }}{{ advice.prescribing_number_unit }}
72
-              </td>
73
-              <td>{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
74
-              <td>{{ advice.parent_id == 0 ? advice.delivery_way : "" }}</td>
75
-              <td>
76
-                {{ advice.parent_id == 0 ? advice.execution_frequency : "" }}
77
-              </td>
78
-            </tr>
79
-          </table>
63
+                <td
64
+                  :class="{
65
+                    advice_name: advice.parent_id == 0,
66
+                    subdrug_name: advice.parent_id > 0
67
+                  }"
68
+                >
69
+                  {{ advice.advice_name }}
70
+                </td>
71
+                <td>{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</td>
72
+                <td>
73
+                  {{ advice.prescribing_number
74
+                  }}{{ advice.prescribing_number_unit }}
75
+                </td>
76
+                <td>{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
77
+                <td>{{ advice.parent_id == 0 ? advice.delivery_way : "" }}</td>
78
+                <td>
79
+                  {{ advice.parent_id == 0 ? advice.execution_frequency : "" }}
80
+                </td>
81
+              </tr>
82
+            </table>
83
+          </div>
80 84
         </div>
81 85
       </div>
82 86
     </div>
@@ -344,18 +348,36 @@ export default {
344 348
 </script>
345 349
 
346 350
 <style style="stylesheet/scss" lang="scss" scoped>
347
-.table {
351
+.newYzNav {
352
+  position: fixed;
353
+  top: 1.5rem;
354
+}
355
+.newBox {
356
+  position: fixed;
357
+  top: 3.2rem;
358
+}
359
+.newModifyTable {
348 360
   width: 100%;
361
+  margin-top: 5.2rem;
362
+  @media only screen and (max-width: 767px) {
363
+    margin-top: 5.8rem;
364
+  }
365
+}
366
+.newSpan {
367
+  font-size: 0.45rem;
368
+}
369
+.table {
370
+  width: 1000px;
349 371
   margin-top: 0.2rem;
350 372
   tr {
351 373
     th {
352 374
       background: $main-color;
353 375
       color: #fff;
354
-      height: 0.88rem;
355
-      line-height: 0.88rem;
376
+      height: 1.2rem;
377
+      line-height: 1.2rem;
356 378
     }
357 379
     td {
358
-      line-height: 0.4rem;
380
+      line-height: 0.8rem;
359 381
     }
360 382
 
361 383
     .advice_name {
@@ -373,14 +395,15 @@ export default {
373 395
 .content {
374 396
   .cell {
375 397
     float: left;
376
-    width: 3.5rem;
377
-    margin: 0.35rem 0.3rem 0 0.4rem;
398
+    width: 5rem;
399
+    margin: 0.35rem 0.3rem 0.2rem 0.4rem;
378 400
     label {
379 401
       display: block;
380 402
       height: 0.6rem;
381 403
       line-height: 0.6rem;
382 404
       color: $pgh-color;
383 405
       font-size: 0.45rem;
406
+      margin-bottom: 0.2rem;
384 407
     }
385 408
     .newdoctorName {
386 409
       font-size: 0.45rem;

+ 6 - 1
src/pages/main/dialog/modify_order/modify_order_form.vue View File

@@ -396,7 +396,7 @@ export default {
396 396
   .cell {
397 397
     float: left;
398 398
     width: 4.5rem;
399
-    margin: 0.35rem 0.3rem 0rem 0.4rem;
399
+    margin: 0.35rem 0.3rem 0.1rem 0.4rem;
400 400
     overflow: hidden;
401 401
     label {
402 402
       display: block;
@@ -455,6 +455,11 @@ export default {
455 455
     .el-input__inner {
456 456
       font-size: 0.42rem;
457 457
     }
458
+    .is-disabled {
459
+      .el-input__inner {
460
+        color: #999;
461
+      }
462
+    }
458 463
   }
459 464
 }
460 465
 </style>

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

@@ -442,7 +442,7 @@ export default {
442 442
   .cell {
443 443
     float: left;
444 444
     width: 4.5rem;
445
-    margin: 0.35rem 0.3rem 0 0.4rem;
445
+    margin: 0.35rem 0.3rem 0.1rem 0.4rem;
446 446
     label {
447 447
       display: block;
448 448
       height: 0.9rem;