Bläddra i källkod

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

See999 5 år sedan
förälder
incheckning
47841aef12
2 ändrade filer med 31 tillägg och 115 borttagningar
  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 Visa fil

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 class="newSpan" @click="addOrderByTemplateAction">选择模板</span>
12
         <span class="newSpan" @click="addOrderByTemplateAction">选择模板</span>
18
         <div style="overflow: hidden;">
18
         <div style="overflow: hidden;">
19
           <div class="cell" style="margin-top: 0;">
19
           <div class="cell" style="margin-top: 0;">
20
             <label>医嘱类型</label>
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
           </div>
22
           </div>
28
           <div class="cell" style="margin-top: 0;">
23
           <div class="cell" style="margin-top: 0;">
29
             <label>开始时间</label>
24
             <label>开始时间</label>
34
               @focus="selectStartTimeAction"
29
               @focus="selectStartTimeAction"
35
             ></el-input>
30
             ></el-input>
36
           </div>
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
           <table class="table">
32
           <table class="table">
87
             <tr>
33
             <tr>
88
-              <th width="26%">医嘱内容</th>
34
+              <th width="30%">医嘱内容</th>
89
               <th width="20%">药品规格</th>
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
               <th width="15%">给药途径</th>
38
               <th width="15%">给药途径</th>
93
               <th width="15%">执行频率</th>
39
               <th width="15%">执行频率</th>
94
             </tr>
40
             </tr>
96
               <tr
42
               <tr
97
                 :key="advice_index"
43
                 :key="advice_index"
98
                 @click="clickAdviceAction(advice_index)"
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
                 <td
47
                 <td
106
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
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
                 <td v-else></td>
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
                 <td v-else></td>
56
                 <td v-else></td>
124
-
125
                 <td>{{ advice.delivery_way }}</td>
57
                 <td>{{ advice.delivery_way }}</td>
126
-
127
                 <td>{{ advice.execution_frequency }}</td>
58
                 <td>{{ advice.execution_frequency }}</td>
128
               </tr>
59
               </tr>
129
               <tr
60
               <tr
130
                 v-for="(subdrug, subdrug_index) in advice.subdrugs"
61
                 v-for="(subdrug, subdrug_index) in advice.subdrugs"
131
                 :key="advice_index + '_' + subdrug_index"
62
                 :key="advice_index + '_' + subdrug_index"
132
                 @click="clickSubdrugAction(advice_index, subdrug_index)"
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
                 <td
66
                 <td
140
                   style="text-align: left; padding-right: 5px; padding-left: 25px;"
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
                 <td>
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
                 </td>
74
                 </td>
151
                 <td>
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
                 </td>
79
                 </td>
157
-
80
+                <!--<td v-if="subdrug.single_dose">{{ subdrug.single_dose }} {{ subdrug.single_dose_unit }}</td>-->
158
                 <td></td>
81
                 <td></td>
159
                 <td></td>
82
                 <td></td>
160
               </tr>
83
               </tr>
566
 </script>
489
 </script>
567
 
490
 
568
 <style style="stylesheet/scss" lang="scss" scoped>
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
   width: 100%;
493
   width: 100%;
582
   // overflow: auto;
494
   // overflow: auto;
583
 }
495
 }
610
       height: 0.6rem;
522
       height: 0.6rem;
611
       line-height: 0.6rem;
523
       line-height: 0.6rem;
612
       color: $pgh-color;
524
       color: $pgh-color;
613
-      font-size: 0.45rem;
525
+      font-size: 0.32rem;
614
       margin-bottom: 0.2rem;
526
       margin-bottom: 0.2rem;
615
     }
527
     }
616
     select {
528
     select {

+ 6 - 2
src/pages/personal/index.vue Visa fil

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
               ? ""