xiaoming_global преди 5 години
родител
ревизия
aba32fefea
променени са 1 файла, в които са добавени 19 реда и са изтрити 56 реда
  1. 19 56
      src/pages/main/dialog/new_order/AddNewOrders.vue

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

@@ -9,54 +9,17 @@
9 9
         <span class="success" @click="comfirmAction">完成</span>
10 10
       </div>
11 11
       <div class="yzNav" style="width:100%;">
12
-<<<<<<< .mine
13
-            <span @click="addOrderByTemplateAction">选择医嘱模板</span>
14
-            <span @click="addNewOrderAction">新增医嘱内容</span>
15
-            <span @click="modifyOrderAction">修改医嘱内容</span>
16
-            <span @click="deleteOrderAction">删除医嘱内容</span>
17
-=======
18 12
         <span class="newSpan" @click="addOrderByTemplateAction">选择模板</span>
19 13
         <span class="newSpan" @click="addNewOrderAction">新增内容</span>
20 14
         <span class="newSpan" @click="modifyOrderAction">修改内容</span>
21 15
         <span class="newSpan" @click="deleteOrderAction">删除内容</span>
22
->>>>>>> .theirs
23 16
       </div>
24
-<<<<<<< .mine
25
-      <div class="DialogContent choose" style="height: 6.2rem;" >
26
-        <div class="content clearfix">
27
-          <div style="overflow: hidden;">
28
-            <div class="cell" style="margin-top: 0;">
29
-              <label>医嘱类型</label>
30
-              <el-input ref="advice_type" value="临时" disabled></el-input>
31
-            </div>
32
-            <div class="cell" style="margin-top: 0;">
33
-              <label>开始时间</label>
34
-              <el-input :value="start_time_str" readonly @focus="selectStartTimeAction"></el-input>
35
-            </div>
36
-=======
37 17
       <div class="content clearfix backgroundColor">
38 18
         <div style="overflow: hidden;">
39 19
           <div class="cell" style="margin-top: 0;">
40 20
             <label>医嘱类型</label>
41
-            <el-input
42
-              class="typeInput"
43
-              ref="advice_type"
44
-              value="临时"
45
-              disabled
46
-            ></el-input>
47
-
48
->>>>>>> .theirs
21
+            <el-input class="typeInput" ref="advice_type" value="临时" disabled></el-input>
49 22
           </div>
50
-<<<<<<< .mine
51
-          <div style="overflow: hidden;margin-top: 15px" >
52
-            <div class="cell" style="margin-top: 0;">
53
-              <label>开嘱医生: {{$store.getters.user.user.user_name}}</label>
54
-            </div>
55
-            <div class="cell" style="margin-top: 0;">
56
-              <label>开嘱时间 {{record_date_str}}</label>
57
-            </div>
58
-
59
-=======
60 23
           <div class="cell" style="margin-top: 0;">
61 24
             <label>开始时间</label>
62 25
             <el-input
@@ -65,7 +28,6 @@
65 28
               readonly
66 29
               @focus="selectStartTimeAction"
67 30
             ></el-input>
68
->>>>>>> .theirs
69 31
           </div>
70 32
           <table class="table">
71 33
             <tr>
@@ -86,7 +48,9 @@
86 48
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
87 49
                 >{{ advice.title }}</td>
88 50
                 <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</td>
89
-                <td v-if="advice.prescribing_number">{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
51
+                <td
52
+                  v-if="advice.prescribing_number"
53
+                >{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
90 54
                 <td v-else></td>
91 55
                 <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
92 56
                 <td v-else></td>
@@ -103,8 +67,16 @@
103 67
                   style="text-align: left; padding-right: 5px; padding-left: 25px;"
104 68
                 >{{ subdrug.title }}</td>
105 69
                 <td>{{ subdrug.advice_desc }} {{subdrug.drug_spec_unit}}</td>
106
-                <td><span v-if="subdrug.prescribing_number">{{ subdrug.prescribing_number }}{{ subdrug.prescribing_number_unit }}</span></td>
107
-                <td><span v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span></td>
70
+                <td>
71
+                  <span
72
+                    v-if="subdrug.prescribing_number"
73
+                  >{{ subdrug.prescribing_number }}{{ subdrug.prescribing_number_unit }}</span>
74
+                </td>
75
+                <td>
76
+                  <span
77
+                    v-if="subdrug.single_dose"
78
+                  >{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span>
79
+                </td>
108 80
                 <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
109 81
                 <td></td>
110 82
                 <td></td>
@@ -187,7 +159,7 @@ export default {
187 159
     },
188 160
     drug_spec_unit_options: {
189 161
       type: Array,
190
-      default: function () {
162
+      default: function() {
191 163
         return [];
192 164
       }
193 165
     },
@@ -317,7 +289,7 @@ export default {
317 289
           prescribing_number_unit: advice.prescribing_number_unit,
318 290
           delivery_way: advice.delivery_way,
319 291
           execution_frequency: advice.execution_frequency,
320
-          remark : advice.remark,
292
+          remark: advice.remark,
321 293
           subdrugs: []
322 294
         };
323 295
         for (let s_i = 0; s_i < advice.subdrugs.length; s_i++) {
@@ -369,7 +341,7 @@ export default {
369 341
     },
370 342
     didSelectTemplateAdvice: function(resp_advices) {
371 343
       this.show_dialog_key = 0;
372
-      var advices = []
344
+      var advices = [];
373 345
       for (let index = 0; index < resp_advices.length; index++) {
374 346
         const adv = resp_advices[index];
375 347
         if (adv.parent_id == 0) {
@@ -386,7 +358,7 @@ export default {
386 358
             prescribing_number: adv.prescribing_number,
387 359
             prescribing_number_unit: adv.prescribing_number_unit,
388 360
             subdrugs: []
389
-          })
361
+          });
390 362
         }
391 363
       }
392 364
       for (let r_a_i = 0; r_a_i < resp_advices.length; r_a_i++) {
@@ -499,7 +471,6 @@ export default {
499 471
           advice.prescribing_number = order.prescribing_number;
500 472
           advice.prescribing_number_unit = order.prescribing_number_unit;
501 473
           advice.remark = order.remark;
502
-
503 474
         } else {
504 475
           var subdrug = advice.subdrugs[this.selecting_subdrug_index];
505 476
           subdrug.title = order.title;
@@ -520,19 +491,11 @@ export default {
520 491
 <style style="stylesheet/scss" lang="scss" scoped>
521 492
 .table {
522 493
   width: 100%;
523
-<<<<<<< .mine
524
-
525
-
526
-
527
-
528
-
529
-=======
530 494
   // overflow: auto;
531 495
 }
532 496
 .table {
533 497
   width: 1200px;
534 498
   overflow-x: scroll;
535
->>>>>>> .theirs
536 499
   // margin-top: 0rem;
537 500
   @media only screen and (max-width: 767px) {
538 501
     width: 1000px;
@@ -593,7 +556,7 @@ export default {
593 556
   }
594 557
 
595 558
   .row-class-active > td {
596
-    background: #badcff!important;
559
+    background: #badcff !important;
597 560
   }
598 561
 }
599 562
 .newSpan {