Browse Source

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

See999 5 years ago
parent
commit
47841aef12
2 changed files with 31 additions and 115 deletions
  1. 25 113
      src/pages/main/dialog/new_order/AddNewOrders.vue
  2. 6 2
      src/pages/personal/index.vue

+ 25 - 113
src/pages/main/dialog/new_order/AddNewOrders.vue View File

@@ -1,12 +1,12 @@
1 1
 <template>
2 2
   <div v-loading="loading">
3
-    <div class="Dialog" style="width: 11.8rem;" v-show="show_dialog_key == 0">
3
+    <div class="Dialog" style="width: 16.8rem;" v-show="show_dialog_key == 0">
4 4
       <div class="DialogTit">
5 5
         <div class="back" @click="backAction">
6 6
           <span class="iconfont">&#xe720;</span>返回
7 7
         </div>
8 8
         <h1 class="name">新增医嘱</h1>
9
-        <span class="success" @click="comfirmAction">保存</span>
9
+        <span class="success" @click="comfirmAction">完成</span>
10 10
       </div>
11 11
       <div class="yzNav" style="width:100%;">
12 12
         <span class="newSpan" @click="addOrderByTemplateAction">选择模板</span>
@@ -18,12 +18,7 @@
18 18
         <div style="overflow: hidden;">
19 19
           <div class="cell" style="margin-top: 0;">
20 20
             <label>医嘱类型</label>
21
-            <el-input
22
-              class="typeInput"
23
-              ref="advice_type"
24
-              value="临时"
25
-              disabled
26
-            ></el-input>
21
+            <el-input class="typeInput" ref="advice_type" value="临时" disabled></el-input>
27 22
           </div>
28 23
           <div class="cell" style="margin-top: 0;">
29 24
             <label>开始时间</label>
@@ -34,61 +29,12 @@
34 29
               @focus="selectStartTimeAction"
35 30
             ></el-input>
36 31
           </div>
37
-        </div>
38
-        <div style="overflow: hidden;margin-top: 15px">
39
-          <div class="cell" style="margin-top: 0;">
40
-            <label>开嘱医生: {{ $store.getters.user.user.user_name }}</label>
41
-          </div>
42
-          <div class="cell" style="margin-top: 0;">
43
-            <label>开嘱时间 {{ record_date_str }}</label>
44
-          </div>
45
-        </div>
46
-
47
-        <!-- <el-table :data="advices" border style="width: 100%" :row-class-name="tableRowClassName" @row-click="clickAdviceAction">
48
-            <el-table-column fixed prop="date" label="医嘱内容" width="150">
49
-              <template slot-scope="scope">
50
-                   {{ scope.row.title }}
51
-              </template>
52
-            </el-table-column>
53
-            <el-table-column prop="name" label="药品规格" width="120">
54
-              <template slot-scope="scope">
55
-              {{ scope.row.prescribing_number }}{{ scope.row.prescribing_number_unit }}
56
-              </template>
57
-            </el-table-column>
58
-            <el-table-column prop="province" label="开药数量" width="120">
59
-              <template slot-scope="scope">
60
-              {{ scope.row.prescribing_number }}{{ scope.row.prescribing_number_unit }}
61
-              </template>
62
-            </el-table-column>
63
-            <el-table-column prop="city" label="单次用量" width="120">
64
-              <template slot-scope="scope">
65
-
66
-              </template>
67
-            </el-table-column>
68
-            <el-table-column prop="address" label="给药途径" width="300">
69
-               <template slot-scope="scope">
70
-                   {{ scope.row.delivery_way }}
71
-               </template>
72
-            </el-table-column>
73
-            <el-table-column prop="zip" label="执行频率" width="120">
74
-              <template slot-scope="scope">
75
-                  {{ scope.row.execution_frequency }}
76
-              </template>
77
-            </el-table-column>
78
-          </el-table>-->
79
-      </div>
80
-      <div
81
-        id="newDialogContent"
82
-        class="DialogContent choose"
83
-        style="height: 6.2rem;"
84
-      >
85
-        <div class="newAddTable">
86 32
           <table class="table">
87 33
             <tr>
88
-              <th width="26%">医嘱内容</th>
34
+              <th width="30%">医嘱内容</th>
89 35
               <th width="20%">药品规格</th>
90
-              <th width="12%">开药数量</th>
91
-              <th width="12%">单次用量</th>
36
+              <th width="10%">开药数量</th>
37
+              <th width="10%">单次用量</th>
92 38
               <th width="15%">给药途径</th>
93 39
               <th width="15%">执行频率</th>
94 40
             </tr>
@@ -96,65 +42,42 @@
96 42
               <tr
97 43
                 :key="advice_index"
98 44
                 @click="clickAdviceAction(advice_index)"
99
-                :class="{
100
-                  'row-class-active':
101
-                    advice_index == selecting_advice_index &&
102
-                    selecting_subdrug_index < 0
103
-                }"
45
+                :class="{ 'row-class-active': (advice_index == selecting_advice_index && selecting_subdrug_index < 0) }"
104 46
               >
105 47
                 <td
106 48
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
107
-                >
108
-                  {{ advice.title }}
109
-                </td>
110
-
111
-                <td v-if="advice.advice_desc">
112
-                  {{ advice.advice_desc }}{{ advice.drug_spec_unit }}
113
-                </td>
114
-
115
-                <td v-if="advice.prescribing_number">
116
-                  {{ advice.prescribing_number
117
-                  }}{{ advice.prescribing_number_unit }}
118
-                </td>
49
+                >{{ advice.title }}</td>
50
+                <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</td>
51
+                <td
52
+                  v-if="advice.prescribing_number"
53
+                >{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
119 54
                 <td v-else></td>
120
-                <td v-if="advice.single_dose">
121
-                  {{ advice.single_dose }} {{ advice.single_dose_unit }}
122
-                </td>
55
+                <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
123 56
                 <td v-else></td>
124
-
125 57
                 <td>{{ advice.delivery_way }}</td>
126
-
127 58
                 <td>{{ advice.execution_frequency }}</td>
128 59
               </tr>
129 60
               <tr
130 61
                 v-for="(subdrug, subdrug_index) in advice.subdrugs"
131 62
                 :key="advice_index + '_' + subdrug_index"
132 63
                 @click="clickSubdrugAction(advice_index, subdrug_index)"
133
-                :class="{
134
-                  'row-class-active':
135
-                    advice_index == selecting_advice_index &&
136
-                    subdrug_index == selecting_subdrug_index
137
-                }"
64
+                :class="{ 'row-class-active': (advice_index == selecting_advice_index && subdrug_index == selecting_subdrug_index) }"
138 65
               >
139 66
                 <td
140 67
                   style="text-align: left; padding-right: 5px; padding-left: 25px;"
141
-                >
142
-                  {{ subdrug.title }}
143
-                </td>
144
-                <td>{{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}</td>
68
+                >{{ subdrug.title }}</td>
69
+                <td>{{ subdrug.advice_desc }} {{subdrug.drug_spec_unit}}</td>
145 70
                 <td>
146
-                  <span v-if="subdrug.prescribing_number"
147
-                    >{{ subdrug.prescribing_number
148
-                    }}{{ subdrug.prescribing_number_unit }}</span
149
-                  >
71
+                  <span
72
+                    v-if="subdrug.prescribing_number"
73
+                  >{{ subdrug.prescribing_number }}{{ subdrug.prescribing_number_unit }}</span>
150 74
                 </td>
151 75
                 <td>
152
-                  <span v-if="subdrug.single_dose"
153
-                    >{{ subdrug.single_dose }}
154
-                    {{ subdrug.single_dose_unit }}</span
155
-                  >
76
+                  <span
77
+                    v-if="subdrug.single_dose"
78
+                  >{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span>
156 79
                 </td>
157
-
80
+                <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
158 81
                 <td></td>
159 82
                 <td></td>
160 83
               </tr>
@@ -566,18 +489,7 @@ export default {
566 489
 </script>
567 490
 
568 491
 <style style="stylesheet/scss" lang="scss" scoped>
569
-#newDialogContent {
570
-  @media only screen and (max-width: 415px) {
571
-    height: 10.8rem !important;
572
-  }
573
-  @media only screen and (min-width: 768px) {
574
-    height: 7.8rem !important;
575
-  }
576
-}
577
-.backgroundColor {
578
-  background: #fff;
579
-}
580
-.newAddTable {
492
+.table {
581 493
   width: 100%;
582 494
   // overflow: auto;
583 495
 }
@@ -610,7 +522,7 @@ export default {
610 522
       height: 0.6rem;
611 523
       line-height: 0.6rem;
612 524
       color: $pgh-color;
613
-      font-size: 0.45rem;
525
+      font-size: 0.32rem;
614 526
       margin-bottom: 0.2rem;
615 527
     }
616 528
     select {

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

@@ -72,7 +72,7 @@
72 72
         <img class="bannerOne" src="../../assets/my/myBanner.png" alt />
73 73
         <div class="avatar">
74 74
           <img src="../../assets/my/avatar.png" alt />
75
-          <p>用户姓名</p>
75
+          <p>{{user_name}}</p>
76 76
         </div>
77 77
       </div>
78 78
       <div class="list">
@@ -122,7 +122,8 @@ export default {
122 122
     return {
123 123
       electronicsignature: "",
124 124
       myinfo: {},
125
-      avatar: "@/assets/product/test.jpg"
125
+      avatar: "@/assets/product/test.jpg",
126
+      user_name: ""
126 127
     };
127 128
   },
128 129
   created() {
@@ -132,6 +133,9 @@ export default {
132 133
     GetMyInfo() {
133 134
       GetMyInfo().then(response => {
134 135
         if (response.data.state == 1) {
136
+          var roleInfo = response.data.data.roleInfo;
137
+          this.user_name = roleInfo.user_name;
138
+          console.log("hhhhhhhhhhhhh", response.data.data.roleInfo);
135 139
           this.electronicsignature =
136 140
             response.data.data.electronic_signature === null
137 141
               ? ""