Browse Source

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

xiaoming_global 5 years ago
parent
commit
3e9dc99a14

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

180
     right: 0;
180
     right: 0;
181
     z-index: 100;
181
     z-index: 100;
182
     background: #258ffc;
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
     @media only screen and (max-width: 320px) {
187
     @media only screen and (max-width: 320px) {
188
       display: -webkit-box;
188
       display: -webkit-box;
189
     }
189
     }
192
     }
192
     }
193
     .nav {
193
     .nav {
194
       margin-right: 2.4rem;
194
       margin-right: 2.4rem;
195
+      @media only screen and (min-width: 416px) {
196
+        margin-right: 4rem;
197
+      }
195
       @media only screen and (min-width: 768px) {
198
       @media only screen and (min-width: 768px) {
196
         margin-right: 4rem;
199
         margin-right: 4rem;
197
       }
200
       }

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

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

+ 4 - 2
src/pages/main/dialog/OrdersDialog.vue View File

34
         <span
34
         <span
35
           v-if="currentSubAdvices.length <= 0"
35
           v-if="currentSubAdvices.length <= 0"
36
           @click="modifyAdviceAction"
36
           @click="modifyAdviceAction"
37
-          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
37
+          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1  || current_select_object== 2 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
38
         >修改</span>
38
         >修改</span>
39
         <span
39
         <span
40
           v-if="currentSubAdvices.length <= 0"
40
           v-if="currentSubAdvices.length <= 0"
1223
 
1223
 
1224
       },
1224
       },
1225
       modifyAdviceAction: function () {
1225
       modifyAdviceAction: function () {
1226
+        if (this.currentAdvices.length != 1 || this.current_select_object == 2){
1227
+          return
1228
+        }
1226
         if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1229
         if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1227
           return
1230
           return
1228
         }
1231
         }
1345
       }, selectGroupAdviceAction: function (group_index, advice_index, advice, group) {
1348
       }, selectGroupAdviceAction: function (group_index, advice_index, advice, group) {
1346
 
1349
 
1347
         if (this.current_group_index != -1 && this.current_group_index != group_index) { //选择其他组,将原来的组选择状态清除
1350
         if (this.current_group_index != -1 && this.current_group_index != group_index) { //选择其他组,将原来的组选择状态清除
1348
-          console.log("111111111")
1349
           this.currentAdvices = []
1351
           this.currentAdvices = []
1350
           this.currentSubAdvices = []
1352
           this.currentSubAdvices = []
1351
           for (let i = 0; i < this.advice_groups.length; i++) {
1353
           for (let i = 0; i < this.advice_groups.length; i++) {

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

10
       </div>
10
       </div>
11
       <div class="DialogContent choose">
11
       <div class="DialogContent choose">
12
         <div class="content clearfix">
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
             <span
15
             <span
16
               @click="modifyAction"
16
               @click="modifyAction"
17
               :class="{ forbid: current_advice_index < 0 }"
17
               :class="{ forbid: current_advice_index < 0 }"
18
-              >修改医嘱</span
18
+              >修改内容</span
19
             >
19
             >
20
           </div>
20
           </div>
21
-          <div style="overflow: hidden;">
21
+          <div class="newBox" style="overflow: hidden;">
22
             <div class="cell" style="margin-top: 0;">
22
             <div class="cell" style="margin-top: 0;">
23
               <label>医嘱类型</label>
23
               <label>医嘱类型</label>
24
               <el-input ref="advice_type" value="临时" disabled></el-input>
24
               <el-input ref="advice_type" value="临时" disabled></el-input>
25
             </div>
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
             <div class="cell" style="margin-top: 0;">
27
             <div class="cell" style="margin-top: 0;">
31
               <label>开始时间</label>
28
               <label>开始时间</label>
32
               <el-input
29
               <el-input
35
                 @focus="selectStartTimeAction"
32
                 @focus="selectStartTimeAction"
36
               ></el-input>
33
               ></el-input>
37
             </div>
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
             <div class="cell" style="margin-top: 0;">
40
             <div class="cell" style="margin-top: 0;">
39
               <label>开嘱医生</label>
41
               <label>开嘱医生</label>
40
               <span class="newdoctorName">{{
42
               <span class="newdoctorName">{{
42
               }}</span>
44
               }}</span>
43
             </div>
45
             </div>
44
           </div>
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
         </div>
84
         </div>
81
       </div>
85
       </div>
82
     </div>
86
     </div>
344
 </script>
348
 </script>
345
 
349
 
346
 <style style="stylesheet/scss" lang="scss" scoped>
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
   width: 100%;
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
   margin-top: 0.2rem;
371
   margin-top: 0.2rem;
350
   tr {
372
   tr {
351
     th {
373
     th {
352
       background: $main-color;
374
       background: $main-color;
353
       color: #fff;
375
       color: #fff;
354
-      height: 0.88rem;
355
-      line-height: 0.88rem;
376
+      height: 1.2rem;
377
+      line-height: 1.2rem;
356
     }
378
     }
357
     td {
379
     td {
358
-      line-height: 0.4rem;
380
+      line-height: 0.8rem;
359
     }
381
     }
360
 
382
 
361
     .advice_name {
383
     .advice_name {
373
 .content {
395
 .content {
374
   .cell {
396
   .cell {
375
     float: left;
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
     label {
400
     label {
379
       display: block;
401
       display: block;
380
       height: 0.6rem;
402
       height: 0.6rem;
381
       line-height: 0.6rem;
403
       line-height: 0.6rem;
382
       color: $pgh-color;
404
       color: $pgh-color;
383
       font-size: 0.45rem;
405
       font-size: 0.45rem;
406
+      margin-bottom: 0.2rem;
384
     }
407
     }
385
     .newdoctorName {
408
     .newdoctorName {
386
       font-size: 0.45rem;
409
       font-size: 0.45rem;

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

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

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

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