Browse Source

代码更新

xiaoming_global 5 years ago
parent
commit
0f13a86653
2 changed files with 52 additions and 139 deletions
  1. 46 137
      src/pages/main/dialog/new_order/AddNewOrders.vue
  2. 6 2
      src/pages/personal/index.vue

+ 46 - 137
src/pages/main/dialog/new_order/AddNewOrders.vue View File

1
 <template>
1
 <template>
2
   <div v-loading="loading">
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
       <div class="DialogTit">
4
       <div class="DialogTit">
5
         <div class="back" @click="backAction">
5
         <div class="back" @click="backAction">
6
           <span class="iconfont">&#xe720;</span>返回
6
           <span class="iconfont">&#xe720;</span>返回
7
         </div>
7
         </div>
8
         <h1 class="name">新增医嘱</h1>
8
         <h1 class="name">新增医嘱</h1>
9
-        <span class="success" @click="comfirmAction">保存</span>
9
+        <span class="success" @click="comfirmAction">完成</span>
10
       </div>
10
       </div>
11
       <div class="yzNav" style="width:100%;">
11
       <div class="yzNav" style="width:100%;">
12
-        <span @click="addOrderByTemplateAction">选择医嘱模板</span>
13
-        <span @click="addNewOrderAction">新增医嘱内容</span>
14
-        <span @click="modifyOrderAction">修改医嘱内容</span>
15
-        <span @click="deleteOrderAction">删除医嘱内容</span>
12
+            <span @click="addOrderByTemplateAction">选择医嘱模板</span>
13
+            <span @click="addNewOrderAction">新增医嘱内容</span>
14
+            <span @click="modifyOrderAction">修改医嘱内容</span>
15
+            <span @click="deleteOrderAction">删除医嘱内容</span>
16
       </div>
16
       </div>
17
-      <div class="content clearfix backgroundColor">
18
-        <div style="overflow: hidden;">
19
-          <div class="cell" style="margin-top: 0;">
20
-            <label>医嘱类型</label>
21
-            <el-input ref="advice_type" value="临时" disabled></el-input>
17
+      <div class="DialogContent choose" style="height: 6.2rem;" >
18
+        <div class="content clearfix">
19
+          <div style="overflow: hidden;">
20
+            <div class="cell" style="margin-top: 0;">
21
+              <label>医嘱类型</label>
22
+              <el-input ref="advice_type" value="临时" disabled></el-input>
23
+            </div>
24
+            <div class="cell" style="margin-top: 0;">
25
+              <label>开始时间</label>
26
+              <el-input :value="start_time_str" readonly @focus="selectStartTimeAction"></el-input>
27
+            </div>
22
           </div>
28
           </div>
23
-          <div class="cell" style="margin-top: 0;">
24
-            <label>开始时间</label>
25
-            <el-input
26
-              :value="start_time_str"
27
-              readonly
28
-              @focus="selectStartTimeAction"
29
-            ></el-input>
29
+          <div style="overflow: hidden;margin-top: 15px" >
30
+            <div class="cell" style="margin-top: 0;">
31
+              <label>开嘱医生: {{$store.getters.user.user.user_name}}</label>
32
+            </div>
33
+            <div class="cell" style="margin-top: 0;">
34
+              <label>开嘱时间 {{record_date_str}}</label>
35
+            </div>
30
           </div>
36
           </div>
31
-        </div>
32
-        <div style="overflow: hidden;margin-top: 15px">
33
-          <div class="cell" style="margin-top: 0;">
34
-            <label>开嘱医生: {{ $store.getters.user.user.user_name }}</label>
35
-          </div>
36
-          <div class="cell" style="margin-top: 0;">
37
-            <label>开嘱时间 {{ record_date_str }}</label>
38
-          </div>
39
-        </div>
40
-
41
-        <!-- <el-table :data="advices" border style="width: 100%" :row-class-name="tableRowClassName" @row-click="clickAdviceAction">
42
-            <el-table-column fixed prop="date" label="医嘱内容" width="150">
43
-              <template slot-scope="scope">
44
-                   {{ scope.row.title }}
45
-              </template>
46
-            </el-table-column>
47
-            <el-table-column prop="name" label="药品规格" width="120">
48
-              <template slot-scope="scope">
49
-              {{ scope.row.prescribing_number }}{{ scope.row.prescribing_number_unit }}
50
-              </template>
51
-            </el-table-column>
52
-            <el-table-column prop="province" label="开药数量" width="120">
53
-              <template slot-scope="scope">
54
-              {{ scope.row.prescribing_number }}{{ scope.row.prescribing_number_unit }}
55
-              </template>
56
-            </el-table-column>
57
-            <el-table-column prop="city" label="单次用量" width="120">
58
-              <template slot-scope="scope">
59
-
60
-              </template>
61
-            </el-table-column>
62
-            <el-table-column prop="address" label="给药途径" width="300">
63
-               <template slot-scope="scope">
64
-                   {{ scope.row.delivery_way }}
65
-               </template>
66
-            </el-table-column>
67
-            <el-table-column prop="zip" label="执行频率" width="120">
68
-              <template slot-scope="scope">
69
-                  {{ scope.row.execution_frequency }}
70
-              </template>
71
-            </el-table-column>
72
-          </el-table>-->
73
-      </div>
74
-      <div
75
-        id="newDialogContent"
76
-        class="DialogContent choose"
77
-        style="height: 6.2rem;"
78
-      >
79
-        <div class="newAddTable">
80
           <table class="table">
37
           <table class="table">
81
             <tr>
38
             <tr>
82
-              <th width="26%">医嘱内容</th>
39
+              <th width="30%">医嘱内容</th>
83
               <th width="20%">药品规格</th>
40
               <th width="20%">药品规格</th>
84
-              <th width="12%">开药数量</th>
85
-              <th width="12%">单次用量</th>
41
+              <th width="10%">开药数量</th>
42
+              <th width="10%">单次用量</th>
86
               <th width="15%">给药途径</th>
43
               <th width="15%">给药途径</th>
87
               <th width="15%">执行频率</th>
44
               <th width="15%">执行频率</th>
88
             </tr>
45
             </tr>
90
               <tr
47
               <tr
91
                 :key="advice_index"
48
                 :key="advice_index"
92
                 @click="clickAdviceAction(advice_index)"
49
                 @click="clickAdviceAction(advice_index)"
93
-                :class="{
94
-                  'row-class-active':
95
-                    advice_index == selecting_advice_index &&
96
-                    selecting_subdrug_index < 0
97
-                }"
50
+                :class="{ 'row-class-active': (advice_index == selecting_advice_index && selecting_subdrug_index < 0) }"
98
               >
51
               >
99
                 <td
52
                 <td
100
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
53
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
101
-                >
102
-                  {{ advice.title }}
103
-                </td>
104
-
105
-                <td v-if="advice.advice_desc">
106
-                  {{ advice.advice_desc }}{{ advice.drug_spec_unit }}
107
-                </td>
108
-
109
-                <td v-if="advice.prescribing_number">
110
-                  {{ advice.prescribing_number
111
-                  }}{{ advice.prescribing_number_unit }}
112
-                </td>
54
+                >{{ advice.title }}</td>
55
+                <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</td>
56
+                <td v-if="advice.prescribing_number">{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
113
                 <td v-else></td>
57
                 <td v-else></td>
114
-                <td v-if="advice.single_dose">
115
-                  {{ advice.single_dose }} {{ advice.single_dose_unit }}
116
-                </td>
58
+                <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
117
                 <td v-else></td>
59
                 <td v-else></td>
118
-
119
                 <td>{{ advice.delivery_way }}</td>
60
                 <td>{{ advice.delivery_way }}</td>
120
-
121
                 <td>{{ advice.execution_frequency }}</td>
61
                 <td>{{ advice.execution_frequency }}</td>
122
               </tr>
62
               </tr>
123
               <tr
63
               <tr
124
                 v-for="(subdrug, subdrug_index) in advice.subdrugs"
64
                 v-for="(subdrug, subdrug_index) in advice.subdrugs"
125
                 :key="advice_index + '_' + subdrug_index"
65
                 :key="advice_index + '_' + subdrug_index"
126
                 @click="clickSubdrugAction(advice_index, subdrug_index)"
66
                 @click="clickSubdrugAction(advice_index, subdrug_index)"
127
-                :class="{
128
-                  'row-class-active':
129
-                    advice_index == selecting_advice_index &&
130
-                    subdrug_index == selecting_subdrug_index
131
-                }"
67
+                :class="{ 'row-class-active': (advice_index == selecting_advice_index && subdrug_index == selecting_subdrug_index) }"
132
               >
68
               >
133
                 <td
69
                 <td
134
                   style="text-align: left; padding-right: 5px; padding-left: 25px;"
70
                   style="text-align: left; padding-right: 5px; padding-left: 25px;"
135
-                >
136
-                  {{ subdrug.title }}
137
-                </td>
138
-                <td>{{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}</td>
139
-                <td>
140
-                  <span v-if="subdrug.prescribing_number"
141
-                    >{{ subdrug.prescribing_number
142
-                    }}{{ subdrug.prescribing_number_unit }}</span
143
-                  >
144
-                </td>
145
-                <td>
146
-                  <span v-if="subdrug.single_dose"
147
-                    >{{ subdrug.single_dose }}
148
-                    {{ subdrug.single_dose_unit }}</span
149
-                  >
150
-                </td>
151
-
71
+                >{{ subdrug.title }}</td>
72
+                <td>{{ subdrug.advice_desc }} {{subdrug.drug_spec_unit}}</td>
73
+                <td><span v-if="subdrug.prescribing_number">{{ subdrug.prescribing_number }}{{ subdrug.prescribing_number_unit }}</span></td>
74
+                <td><span v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</span></td>
75
+                <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
152
                 <td></td>
76
                 <td></td>
153
                 <td></td>
77
                 <td></td>
154
               </tr>
78
               </tr>
230
     },
154
     },
231
     drug_spec_unit_options: {
155
     drug_spec_unit_options: {
232
       type: Array,
156
       type: Array,
233
-      default: function() {
157
+      default: function () {
234
         return [];
158
         return [];
235
       }
159
       }
236
     },
160
     },
360
           prescribing_number_unit: advice.prescribing_number_unit,
284
           prescribing_number_unit: advice.prescribing_number_unit,
361
           delivery_way: advice.delivery_way,
285
           delivery_way: advice.delivery_way,
362
           execution_frequency: advice.execution_frequency,
286
           execution_frequency: advice.execution_frequency,
363
-          remark: advice.remark,
287
+          remark : advice.remark,
364
           subdrugs: []
288
           subdrugs: []
365
         };
289
         };
366
         for (let s_i = 0; s_i < advice.subdrugs.length; s_i++) {
290
         for (let s_i = 0; s_i < advice.subdrugs.length; s_i++) {
412
     },
336
     },
413
     didSelectTemplateAdvice: function(resp_advices) {
337
     didSelectTemplateAdvice: function(resp_advices) {
414
       this.show_dialog_key = 0;
338
       this.show_dialog_key = 0;
415
-      var advices = [];
339
+      var advices = []
416
       for (let index = 0; index < resp_advices.length; index++) {
340
       for (let index = 0; index < resp_advices.length; index++) {
417
         const adv = resp_advices[index];
341
         const adv = resp_advices[index];
418
         if (adv.parent_id == 0) {
342
         if (adv.parent_id == 0) {
429
             prescribing_number: adv.prescribing_number,
353
             prescribing_number: adv.prescribing_number,
430
             prescribing_number_unit: adv.prescribing_number_unit,
354
             prescribing_number_unit: adv.prescribing_number_unit,
431
             subdrugs: []
355
             subdrugs: []
432
-          });
356
+          })
433
         }
357
         }
434
       }
358
       }
435
       for (let r_a_i = 0; r_a_i < resp_advices.length; r_a_i++) {
359
       for (let r_a_i = 0; r_a_i < resp_advices.length; r_a_i++) {
542
           advice.prescribing_number = order.prescribing_number;
466
           advice.prescribing_number = order.prescribing_number;
543
           advice.prescribing_number_unit = order.prescribing_number_unit;
467
           advice.prescribing_number_unit = order.prescribing_number_unit;
544
           advice.remark = order.remark;
468
           advice.remark = order.remark;
469
+
545
         } else {
470
         } else {
546
           var subdrug = advice.subdrugs[this.selecting_subdrug_index];
471
           var subdrug = advice.subdrugs[this.selecting_subdrug_index];
547
           subdrug.title = order.title;
472
           subdrug.title = order.title;
560
 </script>
485
 </script>
561
 
486
 
562
 <style style="stylesheet/scss" lang="scss" scoped>
487
 <style style="stylesheet/scss" lang="scss" scoped>
563
-#newDialogContent {
564
-  @media only screen and (max-width: 415px) {
565
-    height: 10.8rem !important;
566
-  }
567
-  @media only screen and (min-width: 768px) {
568
-    height: 7.8rem !important;
569
-  }
570
-}
571
-.backgroundColor {
572
-  background: #fff;
573
-}
574
-.newAddTable {
575
-  width: 100%;
576
-  // overflow: auto;
577
-}
578
 .table {
488
 .table {
579
-  width: 768px;
580
-  overflow-x: scroll;
489
+  width: 100%;
581
   // margin-top: 0rem;
490
   // margin-top: 0rem;
582
   tr {
491
   tr {
583
     th {
492
     th {
601
       height: 0.6rem;
510
       height: 0.6rem;
602
       line-height: 0.6rem;
511
       line-height: 0.6rem;
603
       color: $pgh-color;
512
       color: $pgh-color;
604
-      font-size: 0.45rem;
513
+      font-size: 0.32rem;
605
     }
514
     }
606
     select {
515
     select {
607
       width: 100%;
516
       width: 100%;
634
   }
543
   }
635
 
544
 
636
   .row-class-active > td {
545
   .row-class-active > td {
637
-    background: #badcff !important;
546
+    background: #badcff!important;
638
   }
547
   }
639
 }
548
 }
640
 </style>
549
 </style>

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

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