Browse Source

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

xiaoming_global 5 years ago
parent
commit
b41eb3f811

BIN
src/assets/login/newLogo.png View File


+ 48 - 4
src/pages/advice/AdvicePage.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <van-row class="top_row">
4
-      <van-col :span="9">
4
+      <!-- <van-col :span="9">
5 5
         <div style="visibility: hidden">
6 6
           <span class="title"></span>
7 7
         </div>
@@ -33,7 +33,16 @@
33 33
             >搜索</van-button>
34 34
           </van-field>
35 35
         </div>
36
-      </van-col>
36
+      </van-col>-->
37
+      <div class="newSearch">
38
+        <el-input
39
+          prefix-icon="el-icon-search"
40
+          v-model="advice_keyword"
41
+          ref="search_field"
42
+          placeholder="透析号/姓名"
43
+        ></el-input>
44
+        <p class="searchBtn" @click="searchWithKeyword(1)">搜索</p>
45
+      </div>
37 46
     </van-row>
38 47
 
39 48
     <div class="area">
@@ -52,7 +61,8 @@ export default {
52 61
     return {
53 62
       index: 0,
54 63
       search_input: "",
55
-      search_keyword: ""
64
+      search_keyword: "",
65
+      advice_keyword: ""
56 66
     };
57 67
   },
58 68
   components: {
@@ -79,7 +89,7 @@ export default {
79 89
 .top_row {
80 90
   font-size: 0.3rem;
81 91
   padding: 0.3rem 0.3rem;
82
-  border-bottom: 1px #e5e5e5 solid;
92
+  // border-bottom: 1px #e5e5e5 solid;
83 93
   display: flex;
84 94
   align-items: center;
85 95
 }
@@ -134,5 +144,39 @@ export default {
134 144
     min-width: 60px !important;
135 145
   }
136 146
 }
147
+.newSearch {
148
+  height: 1rem;
149
+  width: 100%;
150
+  background: #fff;
151
+  border-radius: 30px;
152
+  .searchBtn {
153
+    width: 15%;
154
+    float: left;
155
+    height: 1rem;
156
+    line-height: 1rem;
157
+    text-align: center;
158
+    font-size: 0.45rem;
159
+    color: #258ffc;
160
+  }
161
+}
137 162
 </style>
138 163
 
164
+<style lang="scss">
165
+.el-input {
166
+  height: 100%;
167
+  width: 85%;
168
+  float: left;
169
+}
170
+.el-input__inner {
171
+  height: 100%;
172
+  line-height: 1rem;
173
+  width: 100%;
174
+  border-radius: 30px;
175
+  border: none;
176
+  font-size: 0.45rem;
177
+}
178
+.el-input__icon {
179
+  line-height: 1rem;
180
+  font-size: 0.45rem;
181
+}
182
+</style>

+ 220 - 141
src/pages/advice/DialysisAdviceTable.vue View File

@@ -2,11 +2,7 @@
2 2
   <div class="mainBox">
3 3
     <div class="choice">
4 4
       <ul>
5
-        <el-popover
6
-          placement="bottom"
7
-          trigger="click"
8
-          v-model="show_patient_type_selector"
9
-        >
5
+        <el-popover placement="bottom" trigger="click" v-model="show_patient_type_selector">
10 6
           <li slot="reference">
11 7
             {{ patient_types[patient_selected].text }}
12 8
             <span class="iconfont">&#xe74a;</span>
@@ -18,18 +14,12 @@
18 14
                 :key="type.value"
19 15
                 @click="handlePaitentType(type.value)"
20 16
                 :class="advice_type_selected == type.value ? 'tick' : ''"
21
-              >
22
-                {{ type.text }}
23
-              </li>
17
+              >{{ type.text }}</li>
24 18
             </ul>
25 19
           </div>
26 20
         </el-popover>
27 21
 
28
-        <el-popover
29
-          placement="bottom"
30
-          trigger="click"
31
-          v-model="show_zone_selector"
32
-        >
22
+        <el-popover placement="bottom" trigger="click" v-model="show_zone_selector">
33 23
           <li slot="reference">
34 24
             {{ zones[zone_selected].text }}
35 25
             <span class="iconfont">&#xe74a;</span>
@@ -41,17 +31,11 @@
41 31
                 :key="zone.value"
42 32
                 @click="handleZoneChange(index)"
43 33
                 :class="zone_selected == index ? 'tick' : ''"
44
-              >
45
-                {{ zone.text }}
46
-              </li>
34
+              >{{ zone.text }}</li>
47 35
             </ul>
48 36
           </div>
49 37
         </el-popover>
50
-        <el-popover
51
-          placement="bottom"
52
-          trigger="click"
53
-          v-model="show_sch_type_selector"
54
-        >
38
+        <el-popover placement="bottom" trigger="click" v-model="show_sch_type_selector">
55 39
           <li slot="reference">
56 40
             {{ schedule_types[schedule_type_selected].text }}
57 41
             <span class="iconfont">&#xe74a;</span>
@@ -65,9 +49,7 @@
65 49
                 :class="
66 50
                   schedule_type_selected == scheduleType.value ? 'tick' : ''
67 51
                 "
68
-              >
69
-                {{ scheduleType.text }}
70
-              </li>
52
+              >{{ scheduleType.text }}</li>
71 53
             </ul>
72 54
           </div>
73 55
         </el-popover>
@@ -87,123 +69,110 @@
87 69
       </ul>
88 70
     </div>
89 71
 
90
-    <div
91
-      style="width:100%;overflow:hildden;overflow-x:auto;"
92
-      class="DialysisAdvice"
93
-    >
72
+    <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
94 73
       <div class="blueBorder"></div>
95
-      <table class="table">
96
-        <tr>
97
-          <!--<th width="50px">机号</th>-->
98
-          <th width="50px">姓名</th>
99
-          <th width="50px">透析号</th>
100
-          <th width="50px">期效</th>
101
-          <th width="100px">开始时间</th>
102
-          <th width="200px">医嘱内容</th>
103
-          <th width="50px">执行时间</th>
104
-          <th width="50px">执行护士</th>
105
-          <th width="50px">校对护士</th>
106
-          <th width="100px">校对时间</th>
107
-          <th width="50px">开嘱医生</th>
108
-          <th width="100px">开嘱时间</th>
74
+      <!-- <table class="table">
75
+      <tr>
76
+        <th width="50px">姓名</th>
77
+        <th width="50px">透析号</th>
78
+        <th width="50px">期效</th>
79
+        <th width="100px">开始时间</th>
80
+        <th width="200px">医嘱内容</th>
81
+        <th width="50px">执行时间</th>
82
+        <th width="50px">执行护士</th>
83
+        <th width="50px">校对护士</th>
84
+        <th width="100px">校对时间</th>
85
+        <th width="50px">开嘱医生</th>
86
+        <th width="100px">开嘱时间</th>
87
+      </tr>
88
+      <template v-for="(schedules, zone_name, index) in filtedScheduals">
89
+        <tr :key="index">
90
+          <td>{{ zone_name }}</td>
91
+          <td></td>
92
+          <td></td>
93
+          <td></td>
94
+          <td></td>
95
+          <td></td>
96
+          <td></td>
97
+          <td></td>
98
+          <td></td>
99
+          <td></td>
100
+          <td></td>
109 101
         </tr>
110
-        <template v-for="(schedules, zone_name, index) in filtedScheduals">
111
-          <tr :key="index">
112
-            <td>{{ zone_name }}</td>
113
-            <!--<td></td>-->
114
-            <td></td>
115
-            <td></td>
116
-            <td></td>
117
-            <td></td>
118
-            <td></td>
119
-            <td></td>
120
-            <td></td>
121
-            <td></td>
122
-            <td></td>
123
-            <td></td>
124
-          </tr>
125
-          <template v-for="schedule in schedules">
126
-            <template v-for="(group, group_index) in schedule.new_advice">
127
-              <tr
128
-                v-for="(advice, advice_index) in group.advices"
129
-                @click="clickfunction(schedule)"
130
-              >
131
-                <!--<td  v-if="advice_index == 0"-->
132
-                <!--:rowspan="group.advices.length">{{ advice.parent_id == 0 ? schedule.device_number.number : "" }}</td>-->
133
-
134
-                <!--<td  v-if="advice_index == 0" :rowspan="group.advices.length">{{ advice.parent_id == 0 && advice.dialysis_order&&advice.dialysis_order.device_number&& advice.dialysis_order.device_number.number.length > 0 ? advice.dialysis_order.device_number.number : schedule.device_number.number }}</td>-->
135
-                <!--<td v-if="advice_index == 0" :rowspan="group.advices.length">-->
136
-                <!--{{getNumber(advice,schedule)}}-->
137
-                <!--</td>-->
102
+        <template v-for="schedule in schedules">
103
+          <template v-for="(group, group_index) in schedule.new_advice">
104
+            <tr v-for="(advice, advice_index) in group.advices" @click="clickfunction(schedule)">
138 105
 
139
-                <td
140
-                  v-if="advice_index == 0"
141
-                  :rowspan="group.advices.length"
142
-                  style="color:#409eff;"
143
-                >
144
-                  {{ advice.parent_id == 0 ? schedule.patient.name : "" }}
145
-                </td>
146
-                <td v-if="advice_index == 0" :rowspan="group.advices.length">
147
-                  {{
148
-                    advice.parent_id == 0 ? schedule.patient.dialysis_no : ""
149
-                  }}
150
-                </td>
151
-                <td v-if="advice_index == 0" :rowspan="group.advices.length">
152
-                  {{ getAdaviceType(advice.advice_type, advice.parent_id) }}
153
-                </td>
154
-                <td v-if="advice_index == 0" :rowspan="group.advices.length">
155
-                  {{
156
-                    advice.parent_id == 0
157
-                      ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
158
-                      : ""
159
-                  }}
160
-                </td>
161
-                <td
162
-                  :class="
106
+              <td
107
+                v-if="advice_index == 0"
108
+                :rowspan="group.advices.length"
109
+                style="color:#409eff;"
110
+              >{{ advice.parent_id == 0 ? schedule.patient.name : "" }}</td>
111
+              <td v-if="advice_index == 0" :rowspan="group.advices.length">
112
+                {{
113
+                advice.parent_id == 0 ? schedule.patient.dialysis_no : ""
114
+                }}
115
+              </td>
116
+              <td
117
+                v-if="advice_index == 0"
118
+                :rowspan="group.advices.length"
119
+              >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>
120
+              <td v-if="advice_index == 0" :rowspan="group.advices.length">
121
+                {{
122
+                advice.parent_id == 0
123
+                ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
124
+                : ""
125
+                }}
126
+              </td>
127
+              <td
128
+                :class="
163 129
                     advice.parent_id == 0
164 130
                       ? 'advice_content'
165 131
                       : 'subadvice_content'
166 132
                   "
167
-                >
168
-                  <span>{{ advice.advice_name }}</span>
169
-                  <span
170
-                    >{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span
171
-                  >
172
-                  <span v-if="advice.prescribing_number">
173
-                    {{ advice.prescribing_number
174
-                    }}{{ advice.prescribing_number_unit }}
175
-                  </span>
176
-                  <span v-if="advice.single_dose">
177
-                    单次用量 {{ advice.single_dose
178
-                    }}{{ advice.single_dose_unit }}
179
-                  </span>
180
-                  <span>{{ advice.delivery_way }}</span>
181
-                  <span>{{ advice.execution_frequency }}</span>
182
-                  <span v-if="advice.parent_id == 0 && advice.remark.length > 0"
183
-                    >({{ advice.remark }})</span
184
-                  >
185
-                </td>
186
-                <td>
187
-                  {{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}
188
-                </td>
189
-                <td>{{ getName(advice.execution_staff) }}</td>
190
-                <td>{{ getName(advice.checker) }}</td>
191
-                <td>{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}</td>
192
-                <td>{{ getName(advice.advice_doctor) }}</td>
193
-                <td>{{ parseTime(advice.created_time, "{m}-{d} {h}:{i}") }}</td>
194
-              </tr>
195
-            </template>
133
+              >
134
+                <span>{{ advice.advice_name }}</span>
135
+                <span>{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span>
136
+                <span v-if="advice.prescribing_number">
137
+                  {{ advice.prescribing_number
138
+                  }}{{ advice.prescribing_number_unit }}
139
+                </span>
140
+                <span v-if="advice.single_dose">
141
+                  单次用量 {{ advice.single_dose
142
+                  }}{{ advice.single_dose_unit }}
143
+                </span>
144
+                <span>{{ advice.delivery_way }}</span>
145
+                <span>{{ advice.execution_frequency }}</span>
146
+                <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
147
+              </td>
148
+              <td>{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}</td>
149
+              <td>{{ getName(advice.execution_staff) }}</td>
150
+              <td>{{ getName(advice.checker) }}</td>
151
+              <td>{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}</td>
152
+              <td>{{ getName(advice.advice_doctor) }}</td>
153
+              <td>{{ parseTime(advice.created_time, "{m}-{d} {h}:{i}") }}</td>
154
+            </tr>
196 155
           </template>
197 156
         </template>
157
+      </template>
198 158
       </table>
199 159
 
200 160
       <div class="NoData" v-show="zones.length <= 1">
201
-        <img
202
-          style="margin-top: 50px; margin-bottom: 50px"
203
-          src="@/assets/login/data.jpg"
204
-          alt
205
-        />
206
-      </div>
161
+        <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
162
+      </div>-->
163
+      <el-table :data="tableData" border style="width: 100%">
164
+        <el-table-column fixed prop="date" label="姓名" width="100"></el-table-column>
165
+        <el-table-column prop="name" label="透析号" width="100"></el-table-column>
166
+        <el-table-column prop="province" label="期效" width="100"></el-table-column>
167
+        <el-table-column prop="city" label="开始时间" width="100"></el-table-column>
168
+        <el-table-column prop="address" label="医嘱内容" width="200"></el-table-column>
169
+        <el-table-column prop="zip" label="执行时间" width="100"></el-table-column>
170
+        <el-table-column prop="zip" label="执行护士" width="150"></el-table-column>
171
+        <el-table-column prop="zip" label="校对护士" width="200"></el-table-column>
172
+        <el-table-column prop="zip" label="校对时间" width="200"></el-table-column>
173
+        <el-table-column prop="zip" label="开嘱医生" width="200"></el-table-column>
174
+        <el-table-column prop="zip" label="开嘱时间" width="200"></el-table-column>
175
+      </el-table>
207 176
     </div>
208 177
 
209 178
     <mt-datetime-picker
@@ -262,7 +231,105 @@ export default {
262 231
       ],
263 232
       patient_selected: 0,
264 233
 
265
-      scheduleMap: {}
234
+      scheduleMap: {},
235
+      tableData: [
236
+        {
237
+          date: "2016-05-02",
238
+          name: "王小虎",
239
+          province: "上海",
240
+          city: "普陀区",
241
+          address: "上海市普陀区金沙江路 1518 弄",
242
+          zip: 200333
243
+        },
244
+        {
245
+          date: "2016-05-04",
246
+          name: "王小虎",
247
+          province: "上海",
248
+          city: "普陀区",
249
+          address: "上海市普陀区金沙江路 1517 弄",
250
+          zip: 200333
251
+        },
252
+        {
253
+          date: "2016-05-01",
254
+          name: "王小虎",
255
+          province: "上海",
256
+          city: "普陀区",
257
+          address: "上海市普陀区金沙江路 1519 弄",
258
+          zip: 200333
259
+        },
260
+        {
261
+          date: "2016-05-03",
262
+          name: "王小虎",
263
+          province: "上海",
264
+          city: "普陀区",
265
+          address: "上海市普陀区金沙江路 1516 弄",
266
+          zip: 200333
267
+        },
268
+        {
269
+          date: "2016-05-02",
270
+          name: "王小虎",
271
+          province: "上海",
272
+          city: "普陀区",
273
+          address: "上海市普陀区金沙江路 1518 弄",
274
+          zip: 200333
275
+        },
276
+        {
277
+          date: "2016-05-04",
278
+          name: "王小虎",
279
+          province: "上海",
280
+          city: "普陀区",
281
+          address: "上海市普陀区金沙江路 1517 弄",
282
+          zip: 200333
283
+        },
284
+        {
285
+          date: "2016-05-01",
286
+          name: "王小虎",
287
+          province: "上海",
288
+          city: "普陀区",
289
+          address: "上海市普陀区金沙江路 1519 弄",
290
+          zip: 200333
291
+        },
292
+        {
293
+          date: "2016-05-03",
294
+          name: "王小虎",
295
+          province: "上海",
296
+          city: "普陀区",
297
+          address: "上海市普陀区金沙江路 1516 弄",
298
+          zip: 200333
299
+        },
300
+        {
301
+          date: "2016-05-02",
302
+          name: "王小虎",
303
+          province: "上海",
304
+          city: "普陀区",
305
+          address: "上海市普陀区金沙江路 1518 弄",
306
+          zip: 200333
307
+        },
308
+        {
309
+          date: "2016-05-04",
310
+          name: "王小虎",
311
+          province: "上海",
312
+          city: "普陀区",
313
+          address: "上海市普陀区金沙江路 1517 弄",
314
+          zip: 200333
315
+        },
316
+        {
317
+          date: "2016-05-01",
318
+          name: "王小虎",
319
+          province: "上海",
320
+          city: "普陀区",
321
+          address: "上海市普陀区金沙江路 1519 弄",
322
+          zip: 200333
323
+        },
324
+        {
325
+          date: "2016-05-03",
326
+          name: "王小虎",
327
+          province: "上海",
328
+          city: "普陀区",
329
+          address: "上海市普陀区金沙江路 1516 弄",
330
+          zip: 200333
331
+        }
332
+      ]
266 333
     };
267 334
   },
268 335
   computed: {
@@ -555,14 +622,14 @@ export default {
555 622
 .choice {
556 623
   border-bottom: 1px #e5e5e5 solid;
557 624
   position: fixed;
558
-  top: 63px;
625
+  top: 48px;
559 626
   right: 0;
560 627
   z-index: 66;
561 628
   left: 0;
562
-  background: #fff;
563
-  @media only screen and (max-width: 415px) {
564
-    top: 38px !important;
565
-  }
629
+  background: #258ffc;
630
+  // @media only screen and (max-width: 415px) {
631
+  //   top: 38px !important;
632
+  // }
566 633
   @media only screen and (min-width: 376px) and (max-width: 812px) {
567 634
     top: 38px !important;
568 635
   }
@@ -574,14 +641,15 @@ export default {
574 641
     width: 90%;
575 642
     margin: 0 auto;
576 643
     font-size: 0.32rem;
577
-    color: $pgh-color;
644
+    // color: $pgh-color;
645
+    color: #fff;
578 646
     li {
579 647
       @include display-flex;
580 648
       @include align-items-center;
581 649
       @include text-align;
582 650
       @include justify-content-between;
583 651
       padding: 0.3rem 0;
584
-      font-size: 0.32rem;
652
+      font-size: 0.45rem;
585 653
       .iconfont {
586 654
         margin: 0 0.1rem;
587 655
       }
@@ -596,12 +664,12 @@ export default {
596 664
   }
597 665
 }
598 666
 .DialysisAdvice {
599
-  padding-top: 115px;
667
+  padding-top: 85px;
600 668
   background: #fff;
601 669
   min-height: calc(100vh - 2px);
602
-  @media only screen and (max-width: 812px) {
603
-    padding-top: 70px !important;
604
-  }
670
+  // @media only screen and (max-width: 812px) {
671
+  //   padding-top: 70px !important;
672
+  // }
605 673
   @media only screen and (min-width: 813px) and (max-width: 1024px) {
606 674
     padding-top: 118px !important;
607 675
   }
@@ -620,3 +688,14 @@ export default {
620 688
   // background: #fafcfe;
621 689
 }
622 690
 </style>
691
+<style lang="scss">
692
+.el-table {
693
+  margin-top: 64px;
694
+}
695
+.el-table td {
696
+  padding: 0;
697
+}
698
+.el-table th {
699
+  padding: 6px 0;
700
+}
701
+</style>

+ 103 - 58
src/pages/home/login.vue View File

@@ -1,36 +1,47 @@
1 1
 <template>
2 2
   <div class="container">
3
-    <div class="login">
4
-      <div class="logo"><img src="../../assets/login/logo.png" alt=""></div>
5
-      <div class="reg">
6
-        <div class="form">
7
-          <ul>
8
-            <li>
9
-              <span class="iconfont">&#xe78b;</span>
10
-              <input placeholder="请输入手机号" type="tel" class="tel" v-model="form.mobile">
11
-            </li>
12
-            <li>
13
-              <span class="iconfont">&#xe6c0;</span>
14
-              <input placeholder="请输入密码" type="password" class="tel" v-model="form.pwd">
15
-            </li>
16
-          </ul>
3
+    <div class="newLogin">
4
+      <div class="login">
5
+        <div class="logo">
6
+          <img src="../../assets/login/newLogo.png" alt />
17 7
         </div>
18
-        <!-- <router-link to="/product"> -->
19
-          <button class="loginBtn" @click="loginAction" :class="loginDisable ? 'disableLoginBtn' : ''" :disabled="loginDisable">登录</button>
20
-        <!-- </router-link> -->
21
-        <!-- <div class="forget">
8
+        <div class="reg">
9
+          <div class="welcome">欢迎登录</div>
10
+          <div class="form">
11
+            <ul>
12
+              <li>
13
+                <span class="iconfont">&#xe78b;</span>
14
+                <input placeholder="请输入手机号" type="tel" class="tel" v-model="form.mobile" />
15
+              </li>
16
+              <li>
17
+                <span class="iconfont">&#xe6c0;</span>
18
+                <input placeholder="请输入密码" type="password" class="tel" v-model="form.pwd" />
19
+              </li>
20
+            </ul>
21
+          </div>
22
+          <!-- <router-link to="/product"> -->
23
+          <button
24
+            class="loginBtn"
25
+            @click="loginAction"
26
+            :class="loginDisable ? 'disableLoginBtn' : ''"
27
+            :disabled="loginDisable"
28
+          >登录</button>
29
+          <div class="newForget">忘记密码</div>
30
+          <!-- </router-link> -->
31
+          <!-- <div class="forget">
22 32
           <a href="">免密码登录</a>
23 33
           <a href="">忘记密码?</a>
24
-        </div> -->
34
+          </div>-->
35
+        </div>
25 36
       </div>
26 37
     </div>
27 38
   </div>
28 39
 </template>
29 40
 
30 41
 <script>
31
-import {loginByPwd} from "@/api/login"
32
-import {hex_md5} from "@/utils/md5"
33
-import { getLoginInfoCache, cacheLoginInfo } from '@/utils/admin_info_cache'
42
+import { loginByPwd } from "@/api/login";
43
+import { hex_md5 } from "@/utils/md5";
44
+import { getLoginInfoCache, cacheLoginInfo } from "@/utils/admin_info_cache";
34 45
 
35 46
 export default {
36 47
   name: "Home",
@@ -38,53 +49,60 @@ export default {
38 49
     return {
39 50
       form: {
40 51
         mobile: "",
41
-        pwd: "",
42
-      },
43
-    }
52
+        pwd: ""
53
+      }
54
+    };
44 55
   },
45 56
   computed: {
46 57
     loginDisable() {
47 58
       // return false
48
-      return this.form.mobile.length == 0 || /^1[2345789]\d{9}$/.test(this.form.mobile) == false || this.form.pwd.length == 0
59
+      return (
60
+        this.form.mobile.length == 0 ||
61
+        /^1[2345789]\d{9}$/.test(this.form.mobile) == false ||
62
+        this.form.pwd.length == 0
63
+      );
49 64
     }
50 65
   },
51 66
   created() {
52
-    var loginInfo = getLoginInfoCache()
53
-    this.form.mobile = loginInfo.mobile
54
-    this.form.pwd = loginInfo.password
67
+    var loginInfo = getLoginInfoCache();
68
+    this.form.mobile = loginInfo.mobile;
69
+    this.form.pwd = loginInfo.password;
55 70
   },
56 71
   methods: {
57 72
     loginAction: function() {
58 73
       loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
59
-        var resp = rs.data
74
+        var resp = rs.data;
60 75
 
61 76
         if (resp.state == 1) {
62
-          cacheLoginInfo(this.form.mobile, this.form.pwd)
63
-          console.log(resp)
77
+          cacheLoginInfo(this.form.mobile, this.form.pwd);
78
+          console.log(resp);
64 79
 
65
-          var user = resp.data.user
66
-          var org = resp.data.org
67
-          var subscibe = resp.data.subscibe
68
-          var config_list = resp.data.config_list
69
-          var template_info = resp.data.template_info
70
-          var filed_list = resp.data.filed_list
71
-          console.log(resp.data.filed_list)
72
-          console.log(filed_list)
80
+          var user = resp.data.user;
81
+          var org = resp.data.org;
82
+          var subscibe = resp.data.subscibe;
83
+          var config_list = resp.data.config_list;
84
+          var template_info = resp.data.template_info;
85
+          var filed_list = resp.data.filed_list;
86
+          console.log(resp.data.filed_list);
87
+          console.log(filed_list);
73 88
 
74
-
75
-
76
-          this.$store.dispatch("InitUserInfo", {user: user, org: org, subscibe: subscibe,template_info:template_info,filed_list:filed_list})
77
-          this.$store.dispatch("SetConfigList", config_list)
89
+          this.$store.dispatch("InitUserInfo", {
90
+            user: user,
91
+            org: org,
92
+            subscibe: subscibe,
93
+            template_info: template_info,
94
+            filed_list: filed_list
95
+          });
96
+          this.$store.dispatch("SetConfigList", config_list);
78 97
 
79 98
           // this.$router.push({path: "/product"})
80
-          this.$router.push({path: "/main"})
81
-
99
+          this.$router.push({ path: "/main" });
82 100
         } else {
83 101
           this.$toast({
84
-            message: resp.msg,
85
-          })
102
+            message: resp.msg
103
+          });
86 104
         }
87
-      })
105
+      });
88 106
     }
89 107
   }
90 108
 };
@@ -92,29 +110,56 @@ export default {
92 110
 
93 111
 <style rel="stylesheet/scss" lang="scss" scoped >
94 112
 .container {
95
-  background: $white-bg;
113
+  // background: $white-bg;
114
+  background: #f5f5f5;
96 115
   @include box-sizing;
97 116
   position: fixed;
98 117
   width: 100%;
99 118
   height: 100%;
119
+  display: flex;
120
+  justify-content: space-between;
121
+
122
+  .newLogin {
123
+    width: 90%;
124
+    height: 90%;
125
+    margin: auto;
126
+    box-shadow: 0px 2px 25px 0px rgba(37, 143, 252, 0.1);
127
+    border-radius: 14px;
128
+    background: #fff;
129
+  }
100 130
   .login {
101 131
     // @include box-shadow;
102 132
     @include text-align;
103 133
     @include display-flex;
104 134
     @include align-items-center;
105
-    @include justify-content-center;
135
+    // @include justify-content-center;
106 136
     @include flex-direction;
107 137
     height: 100%;
108 138
     .logo {
109
-      padding: 0 0 1rem;
139
+      padding: 3rem 0 1rem;
110 140
       img {
111
-        width: 70%;
141
+        width: 40%;
112 142
         height: auto;
113 143
         display: inline-block;
114 144
       }
115 145
     }
116 146
     .reg {
117
-      width: 10.77rem;
147
+      width: 8.77rem;
148
+      .welcome {
149
+        text-align: left;
150
+        font-size: 0.55rem;
151
+        font-weight: 400;
152
+        color: rgba(37, 143, 252, 1);
153
+        margin-bottom: 0.5rem;
154
+        // line-height: 14px;
155
+      }
156
+      .newForget {
157
+        text-align: right;
158
+        font-size: 0.5rem;
159
+        font-weight: 400;
160
+        color: rgba(37, 143, 252, 1);
161
+        margin-top: 0.5rem;
162
+      }
118 163
       .form {
119 164
         border: 1px $border-color solid;
120 165
         border-radius: 4px;
@@ -129,7 +174,7 @@ export default {
129 174
             width: 90%;
130 175
             border: none;
131 176
             outline: none;
132
-            font-size: 0.34rem;
177
+            font-size: 0.45rem;
133 178
           }
134 179
           .mint-cell {
135 180
             width: 100%;
@@ -162,11 +207,11 @@ export default {
162 207
       }
163 208
       .loginBtn {
164 209
         width: 100%;
165
-        height: 1rem;
166
-        line-height: 1rem;
210
+        height: 1.3rem;
211
+        line-height: 1.3rem;
167 212
         background: $main-color;
168 213
         color: #fff;
169
-        font-size: 0.36rem;
214
+        font-size: 0.45rem;
170 215
         @include text-align;
171 216
         border-radius: 4px;
172 217
         margin: 40px 0 0 0;

+ 8 - 21
src/pages/main/DetailsPage.vue View File

@@ -17,9 +17,7 @@
17 17
               :key="i"
18 18
               :class="index == i ? 'active' : ''"
19 19
               @click="ClickTab(i)"
20
-            >
21
-              {{ item }}
22
-            </li>
20
+            >{{ item }}</li>
23 21
           </ul>
24 22
         </div>
25 23
 
@@ -30,23 +28,13 @@
30 28
                   <span class="iconfont">2018-01-01&#xe74a;</span>
31 29
         </div>-->
32 30
         <div class="print" style="float: right; visibility: hidden;">
33
-          <el-button
34
-            size="mini"
35
-            type="primary"
36
-            @click="print"
37
-            icon="el-icon-printer"
38
-            >打印</el-button
39
-          >
31
+          <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
40 32
         </div>
41 33
       </div>
42 34
       <div class="Tab">
43 35
         <CaseHistory v-show="index == 0" title="病历"></CaseHistory>
44 36
         <!--<check-tab v-show="index==1" title="化验单"></check-tab>-->
45
-        <dialysis-tab
46
-          v-show="index == 1"
47
-          title="透析"
48
-          v-on:records="jump(val)"
49
-        ></dialysis-tab>
37
+        <dialysis-tab v-show="index == 1" title="透析" v-on:records="jump(val)"></dialysis-tab>
50 38
         <today-tab ref="today" v-show="index == 2" title="今日"></today-tab>
51 39
       </div>
52 40
     </div>
@@ -222,21 +210,20 @@ export default {
222 210
   }
223 211
 }
224 212
 .add {
225
-  width: 1.5rem;
226
-  height: 1.5rem;
213
+  width: 1.8rem;
214
+  height: 1.8rem;
227 215
   background: #f18f68;
228 216
   // box-shadow: 0px 3px 9px 0px rgba(7, 30, 102, 0.15);
229 217
   border-radius: 50%;
230 218
   position: fixed;
231 219
   right: 0.6rem;
232 220
   bottom: 2.25rem;
233
-  font-size: 0.4rem;
221
+  font-size: 0.45rem;
234 222
   text-align: center;
235
-  z-index: 99;
236 223
   p {
237
-    width: 26px;
224
+    width: 30px;
238 225
     text-align: center;
239
-    margin: 6px auto 0;
226
+    margin: 9px auto 0;
240 227
     color: #fff;
241 228
     // @media only screen and (min-width: 768px) {
242 229
     //   width: 40px !important;

+ 16 - 40
src/pages/main/DialysisArea.vue View File

@@ -3,18 +3,16 @@
3 3
     <div v-loading="loading">
4 4
       <div class="screening">
5 5
         <ul>
6
-          <el-popover
7
-            v-model="zone_options_visible"
8
-            placement="bottom"
9
-            trigger="click"
10
-          >
6
+          <el-popover v-model="zone_options_visible" placement="bottom" trigger="click">
11 7
             <li slot="reference">
12 8
               {{
13
-                zones.length <= 1 && zone_selected > 0
14
-                  ? "全部分区"
15
-                  : zones[zone_selected].text
9
+              zones.length <= 1 && zone_selected > 0
10
+              ? "全部分区"
11
+              : zones[zone_selected].text
16 12
               }}
17
-              <span class="iconfont">&#xe74a;</span>
13
+              <span
14
+                class="iconfont"
15
+              >&#xe74a;</span>
18 16
             </li>
19 17
 
20 18
             <div class="popover-demo-content">
@@ -24,18 +22,12 @@
24 22
                   :key="zone.value"
25 23
                   @click="handleZoneChange(index)"
26 24
                   :class="zone_selected == index ? 'tick' : ''"
27
-                >
28
-                  {{ zone.text }}
29
-                </li>
25
+                >{{ zone.text }}</li>
30 26
               </ul>
31 27
             </div>
32 28
           </el-popover>
33 29
 
34
-          <el-popover
35
-            v-model="sch_type_options_visible"
36
-            placement="bottom"
37
-            trigger="click"
38
-          >
30
+          <el-popover v-model="sch_type_options_visible" placement="bottom" trigger="click">
39 31
             <li slot="reference">
40 32
               {{ schedual_types[schedual_type_selected].text }}
41 33
               <span class="iconfont">&#xe74a;</span>
@@ -49,9 +41,7 @@
49 41
                   :class="
50 42
                     schedual_type_selected == schedualType.value ? 'tick' : ''
51 43
                   "
52
-                >
53
-                  {{ schedualType.text }}
54
-                </li>
44
+                >{{ schedualType.text }}</li>
55 45
               </ul>
56 46
             </div>
57 47
           </el-popover>
@@ -71,26 +61,13 @@
71 61
       <div class="stateBox">
72 62
         <div v-for="(item, index) in filtedScheduals" :key="index">
73 63
           <h2 class="title">{{ item.zone_name }}</h2>
74
-          <patient-box
75
-            class="clearfix"
76
-            :patients="item.scheduals"
77
-          ></patient-box>
64
+          <patient-box class="clearfix" :patients="item.scheduals"></patient-box>
78 65
         </div>
79 66
         <div class="NoData" v-if="filtedScheduals.length == 0 && networkStates">
80
-          <img
81
-            style="margin-top: 50px; margin-bottom: 50px"
82
-            src="@/assets/login/data.jpg"
83
-            alt
84
-          />
67
+          <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
85 68
         </div>
86
-        <div
87
-          class="NoData"
88
-          v-if="!networkStates"
89
-          style="display: block;text-align: center"
90
-        >
91
-          <p style="margin-top: 100px;font-size: 18px">
92
-            网络异常,请点击重新加载
93
-          </p>
69
+        <div class="NoData" v-if="!networkStates" style="display: block;text-align: center">
70
+          <p style="margin-top: 100px;font-size: 18px">网络异常,请点击重新加载</p>
94 71
 
95 72
           <!--<img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/no_network.jpg" alt="">-->
96 73
           <van-button
@@ -99,8 +76,7 @@
99 76
             type="info"
100 77
             style="display:block;margin:0 auto"
101 78
             @click="reloads()"
102
-            >重新加载</van-button
103
-          >
79
+          >重新加载</van-button>
104 80
         </div>
105 81
       </div>
106 82
       <mt-datetime-picker
@@ -480,7 +456,7 @@ export default {
480 456
 .screening {
481 457
   border-bottom: 1px #e5e5e5 solid;
482 458
   position: fixed;
483
-  top: 89px;
459
+  top: 98px;
484 460
   @media only screen and (min-width: 813px) and (max-width: 1024px) {
485 461
     top: 130px;
486 462
   }

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

@@ -355,9 +355,9 @@ export default {
355 355
       p {
356 356
         background: #c6cdd2;
357 357
         color: #fff;
358
-        width: 1.35rem;
359
-        height: 0.56rem;
360
-        line-height: 0.56rem;
358
+        width: 1.45rem;
359
+        height: 0.65rem;
360
+        line-height: 0.65rem;
361 361
         border-radius: 4px;
362 362
         margin: 0 auto;
363 363
         font-size: 0.32rem;

+ 73 - 21
src/pages/main/RecordPage.vue View File

@@ -3,9 +3,9 @@
3 3
     <!-- <van-row class="top_row">
4 4
     <van-col :span="14">-->
5 5
     <div class="top_row">
6
-      <div class="head">
6
+      <!-- <div class="head">
7 7
         <img :src="$store.getters.user.org.org_logo" alt />
8
-      </div>
8
+      </div>-->
9 9
       <div class="floatLeft">
10 10
         <span class="title">{{ $store.getters.user.org.org_short_name }}</span>
11 11
       </div>
@@ -28,7 +28,7 @@
28 28
       <!-- <router-link to="/add_urgent_schedule">
29 29
           <van-button size="small" type="info" class="add_schedule_btn">临时排班</van-button>
30 30
       </router-link>-->
31
-      <div class="search">
31
+      <!-- <div class="search">
32 32
         <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" class="field">
33 33
           <i class="iconfont" slot="left-icon">&#xe741;</i>
34 34
           <van-button
@@ -39,11 +39,30 @@
39 39
             @click="searchWithKeyword"
40 40
           >搜索</van-button>
41 41
         </van-field>
42
-      </div>
42
+      </div>-->
43 43
       <!-- </van-col>
44 44
       </van-row>-->
45
+      <div class="newSearch">
46
+        <!-- <van-field v-model="search_input" ref="search_field" placeholder="透析号/姓名" class="field">
47
+          <i class="iconfont" slot="left-icon">&#xe741;</i>
48
+          <van-button
49
+            slot="button"
50
+            size="small"
51
+            type="info"
52
+            style="border: none;"
53
+            @click="searchWithKeyword"
54
+          >搜索</van-button>
55
+        </van-field>-->
56
+        <el-input
57
+          prefix-icon="el-icon-search"
58
+          v-model="search_input"
59
+          ref="search_field"
60
+          placeholder="透析号/姓名"
61
+        ></el-input>
62
+        <p class="searchBtn" @click="searchWithKeyword">搜索</p>
63
+      </div>
45 64
       <div class="box">
46
-        <div class="department">
65
+        <div class="newDepartment">
47 66
           <ul>
48 67
             <li
49 68
               style="position: relative;"
@@ -171,11 +190,11 @@ export default {
171 190
 };
172 191
 </script>
173 192
 
174
-<style style="stylesheet/scss" lang="scss" scoped>
193
+<style lang="scss">
175 194
 .top_row {
176 195
   // height: 50px;
177 196
   font-size: 0.3rem;
178
-  padding: 0.3rem 0.3rem 0;
197
+  padding: 0 0.3rem 0;
179 198
   @media only screen and (min-width: 813px) and (max-width: 1024px) {
180 199
     padding: 0.3rem 0.3rem;
181 200
   }
@@ -184,7 +203,8 @@ export default {
184 203
   // align-items: center;
185 204
   background: #258ffc;
186 205
   .floatLeft {
187
-    float: left;
206
+    line-height: 30px;
207
+    height: 30px;
188 208
   }
189 209
   .search {
190 210
     float: right;
@@ -192,15 +212,15 @@ export default {
192 212
   }
193 213
 }
194 214
 .title {
195
-  font-size: 0.34rem;
215
+  font-size: 0.45rem;
196 216
   font-weight: 600;
197 217
   height: 45px;
198
-  line-height: 50px;
218
+  // line-height: 50px;
199 219
   margin-left: 8px;
200 220
   // color: $title-color;
201 221
   color: #fff;
202 222
 }
203
-.department {
223
+.newDepartment {
204 224
   text-align: center;
205 225
   // height: 100%;
206 226
   width: 60%;
@@ -212,11 +232,11 @@ export default {
212 232
     align-items: center;
213 233
     li {
214 234
       float: left;
215
-      font-size: 0.36rem;
235
+      font-size: 0.45rem;
216 236
       margin: 0 0.2rem;
217
-      height: 0.64rem;
218
-      line-height: 0.64rem;
219
-      padding: 0 0.3rem;
237
+      height: 0.8rem;
238
+      line-height: 0.8rem;
239
+      padding: 0 0.4rem;
220 240
       // color: $title-color;
221 241
       color: #fff;
222 242
       &.active {
@@ -258,7 +278,7 @@ export default {
258 278
 }
259 279
 .box {
260 280
   height: 30px;
261
-  margin-top: 50px;
281
+  margin-top: 8px;
262 282
   background: #258ffc;
263 283
 }
264 284
 .head {
@@ -274,21 +294,53 @@ export default {
274 294
     border-radius: 50%;
275 295
   }
276 296
 }
297
+.newSearch {
298
+  height: 1rem;
299
+  width: 100%;
300
+  background: #fff;
301
+  border-radius: 30px;
302
+  .searchBtn {
303
+    width: 15%;
304
+    float: left;
305
+    height: 1rem;
306
+    line-height: 1rem;
307
+    text-align: center;
308
+    font-size: 0.45rem;
309
+    color: #258ffc;
310
+  }
311
+}
312
+.el-input {
313
+  height: 100%;
314
+  width: 85%;
315
+  float: left;
316
+}
317
+.el-input__inner {
318
+  height: 100%;
319
+  line-height: 1rem;
320
+  width: 100%;
321
+  border-radius: 30px;
322
+  border: none;
323
+  font-size: 0.45rem;
324
+}
325
+.el-input__icon {
326
+  line-height: 1rem;
327
+  font-size: 0.45rem;
328
+}
277 329
 .add {
278
-  width: 1.5rem;
279
-  height: 1.5rem;
330
+  width: 1.8rem;
331
+  height: 1.8rem;
280 332
   background: #f66c6c;
281 333
   // box-shadow: 0px 3px 9px 0px rgba(7, 30, 102, 0.15);
282 334
   border-radius: 50%;
283 335
   position: fixed;
284 336
   right: 0.6rem;
285 337
   bottom: 2.25rem;
286
-  font-size: 0.4rem;
338
+  font-size: 0.45rem;
287 339
   text-align: center;
288 340
   p {
289
-    width: 26px;
341
+    width: 30px;
290 342
     text-align: center;
291
-    margin: 6px auto 0;
343
+    margin: 9px auto 0;
292 344
     color: #fff;
293 345
     // @media only screen and (min-width: 415px) and (max-width: 668px) {
294 346
     //   width: 40px;

+ 12 - 40
src/pages/main/WaitingArea.vue View File

@@ -9,15 +9,9 @@
9 9
             :class="select_index == i ? 'active' : ''"
10 10
             @click="menuTabClick(i)"
11 11
             :key="i"
12
-          >
13
-            {{ item.label + (item.count > 0 ? "(" + item.count + ")" : "") }}
14
-          </li>
15
-
16
-          <el-popover
17
-            v-model="zone_options_visible"
18
-            placement="bottom"
19
-            trigger="click"
20
-          >
12
+          >{{ item.label + (item.count > 0 ? "(" + item.count + ")" : "") }}</li>
13
+
14
+          <el-popover v-model="zone_options_visible" placement="bottom" trigger="click">
21 15
             <li slot="reference">
22 16
               {{ zone_options[zone_selected].text }}
23 17
               <span class="iconfont">&#xe74a;</span>
@@ -29,18 +23,12 @@
29 23
                   :key="index"
30 24
                   @click="handleZoneChange(index, option)"
31 25
                   :class="zone_selected == index ? 'tick' : ''"
32
-                >
33
-                  {{ option.text }}
34
-                </li>
26
+                >{{ option.text }}</li>
35 27
               </ul>
36 28
             </div>
37 29
           </el-popover>
38 30
 
39
-          <el-popover
40
-            v-model="time_options_visible"
41
-            placement="bottom"
42
-            trigger="click"
43
-          >
31
+          <el-popover v-model="time_options_visible" placement="bottom" trigger="click">
44 32
             <li slot="reference">
45 33
               {{ time_options[time_selected].text }}
46 34
               <span class="iconfont">&#xe74a;</span>
@@ -52,9 +40,7 @@
52 40
                   :key="index"
53 41
                   @click="handleTimeChange(index)"
54 42
                   :class="time_selected == index ? 'tick' : ''"
55
-                >
56
-                  {{ option.text }}
57
-                </li>
43
+                >{{ option.text }}</li>
58 44
               </ul>
59 45
             </div>
60 46
           </el-popover>
@@ -64,36 +50,22 @@
64 50
         <!-- <patient-box class="clearfix" :patients="filtedScheduals "></patient-box> -->
65 51
         <div v-for="(item, index) in filtedScheduals" :key="index">
66 52
           <h2 class="title">{{ item.zone_name }}</h2>
67
-          <patient-box
68
-            class="clearfix"
69
-            :patients="item.scheduals"
70
-          ></patient-box>
53
+          <patient-box class="clearfix" :patients="item.scheduals"></patient-box>
71 54
         </div>
72 55
         <div class="NoData" v-if="filtedScheduals.length == 0 && networkStates">
73
-          <img
74
-            style="margin-top: 50px; margin-bottom: 50px"
75
-            src="@/assets/login/data.jpg"
76
-            alt
77
-          />
56
+          <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
78 57
         </div>
79 58
 
80
-        <div
81
-          class="NoData"
82
-          v-if="!networkStates"
83
-          style="display: block;text-align: center;"
84
-        >
59
+        <div class="NoData" v-if="!networkStates" style="display: block;text-align: center;">
85 60
           <!--<img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/no_network.jpg" alt="">-->
86
-          <p style="margin-top: 100px;font-size: 18px">
87
-            网络异常,请点击重新加载
88
-          </p>
61
+          <p style="margin-top: 100px;font-size: 18px">网络异常,请点击重新加载</p>
89 62
           <van-button
90 63
             slot="button"
91 64
             size="normal"
92 65
             type="info"
93 66
             style="display:block;margin:0 auto"
94 67
             @click="reloads()"
95
-            >重新加载</van-button
96
-          >
68
+          >重新加载</van-button>
97 69
         </div>
98 70
       </div>
99 71
     </div>
@@ -662,7 +634,7 @@ export default {
662 634
 .screening {
663 635
   border-bottom: 1px #e5e5e5 solid;
664 636
   position: fixed;
665
-  top: 89px;
637
+  top: 98px;
666 638
   @media only screen and (min-width: 813px) and (max-width: 1024px) {
667 639
     top: 130px;
668 640
   }

+ 131 - 62
src/pages/main/today/dialysisMonitoring.vue View File

@@ -1,7 +1,11 @@
1 1
 <template>
2
-  <div class="plate-box" >
3
-    <h2 class="title border"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
4
-    <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
2
+  <div class="plate-box">
3
+    <h2 class="title border">
4
+      <span class="line"></span>
5
+      <p>{{title}}</p>
6
+      <span class="line"></span>
7
+    </h2>
8
+    <!-- <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
5 9
       <table  class="table" style="">
6 10
         <tr>
7 11
           <th v-if="isShow('监测时间')" width="124px">时间</th>
@@ -49,91 +53,156 @@
49 53
       </table>
50 54
       <div class="NoData" v-show="tableDate.length == 0"><img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt=""></div>
51 55
 
52
-    </div>
56
+    </div>-->
57
+    <el-table :data="date" border style="width: 100%">
58
+      <el-table-column fixed prop="date" label="时间" width="100"></el-table-column>
59
+      <el-table-column prop="name" label="体温(℃)" width="100"></el-table-column>
60
+      <el-table-column prop="province" label="血压(mmHg)" width="100"></el-table-column>
61
+      <el-table-column prop="city" label="脉搏(次/分)" width="100"></el-table-column>
62
+      <el-table-column prop="address" label="呼吸频率(次/分)" width="200"></el-table-column>
63
+      <el-table-column prop="zip" label="静脉压/动脉压(mmHg)" width="100"></el-table-column>
64
+      <el-table-column prop="zip" label="血流量(ml/min)" width="150"></el-table-column>
65
+      <el-table-column prop="zip" label="跨膜压(mmHg)" width="200"></el-table-column>
66
+      <el-table-column prop="zip" label="超滤量(ml)" width="200"></el-table-column>
67
+      <el-table-column prop="zip" label="钠浓度(mmol/L)" width="200"></el-table-column>
68
+      <el-table-column prop="zip" label="透析液温度(℃)" width="200"></el-table-column>
69
+      <el-table-column prop="zip" label="置换率(L/h)" width="200"></el-table-column>
70
+      <el-table-column prop="zip" label="置换量(L)" width="200"></el-table-column>
71
+      <el-table-column prop="zip" label="电导度(mS/m)" width="200"></el-table-column>
72
+      <el-table-column prop="zip" label="置换液流量(ml/h)" width="200"></el-table-column>
73
+      <el-table-column prop="zip" label="病情变化" width="200"></el-table-column>
74
+      <el-table-column prop="zip" label="处理" width="200"></el-table-column>
75
+      <el-table-column prop="zip" label="结果" width="200"></el-table-column>
76
+    </el-table>
53 77
   </div>
54 78
 </template>
55 79
 
56 80
 <script>
57
-import { parseTime } from '@/utils';
81
+import { parseTime } from "@/utils";
58 82
 
59 83
 export default {
60
-  name: 'statOrder',
61
-  data () {
84
+  name: "statOrder",
85
+  data() {
62 86
     return {
63
-      title: '透析监测 ',
87
+      title: "透析监测 ",
64 88
       template_id: 0,
65
-      tableDate: []
66
-    }
89
+      tableDate: [],
90
+      date: [
91
+        {
92
+          date: "2016-05-02",
93
+          name: "王小虎",
94
+          province: "上海",
95
+          city: "普陀区",
96
+          address: "上海市普陀区金沙江路 1518 弄",
97
+          zip: 200333
98
+        },
99
+        {
100
+          date: "2016-05-04",
101
+          name: "王小虎",
102
+          province: "上海",
103
+          city: "普陀区",
104
+          address: "上海市普陀区金沙江路 1517 弄",
105
+          zip: 200333
106
+        },
107
+        {
108
+          date: "2016-05-01",
109
+          name: "王小虎",
110
+          province: "上海",
111
+          city: "普陀区",
112
+          address: "上海市普陀区金沙江路 1519 弄",
113
+          zip: 200333
114
+        },
115
+        {
116
+          date: "2016-05-03",
117
+          name: "王小虎",
118
+          province: "上海",
119
+          city: "普陀区",
120
+          address: "上海市普陀区金沙江路 1516 弄",
121
+          zip: 200333
122
+        }
123
+      ]
124
+    };
67 125
   },
68
-  created () {
69
-    this.template_id = this.$store.getters.user.template_info.template_id
126
+  created() {
127
+    this.template_id = this.$store.getters.user.template_info.template_id;
70 128
   },
71 129
   methods: {
72
-    isShow (name) {
73
-      var filedList = this.$store.getters.user.fileds
130
+    isShow(name) {
131
+      var filedList = this.$store.getters.user.fileds;
74 132
 
75 133
       for (let i = 0; i < filedList.length; i++) {
76
-        if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
77
-          return true
134
+        if (
135
+          filedList[i].module == 4 &&
136
+          filedList[i].filed_name_cn == name &&
137
+          filedList[i].is_show == 1
138
+        ) {
139
+          return true;
78 140
         }
79 141
       }
80
-      return false
142
+      return false;
81 143
     },
82
-    setRecords (records) {
144
+    setRecords(records) {
83 145
       if (records == null) {
84
-        records = []
146
+        records = [];
85 147
       }
86
-      this.tableDate.splice(0, this.tableDate.length)
87
-      this.tableDate.push(...records)
148
+      this.tableDate.splice(0, this.tableDate.length);
149
+      this.tableDate.push(...records);
88 150
     },
89
-    parseTime (time, layout) {
90
-      return parseTime(time, layout)
151
+    parseTime(time, layout) {
152
+      return parseTime(time, layout);
91 153
     },
92
-    addRecords (records) {
93
-      this.tableDate.push(...records)
154
+    addRecords(records) {
155
+      this.tableDate.push(...records);
94 156
     }
95 157
   }
96
-}
158
+};
97 159
 </script>
98 160
 
99 161
 <style rel="stylesheet/scss" lang="scss" scoped>
100 162
 .dm {
101 163
   /* 针对缺省样式 (必须的) */
102
-      &::-webkit-scrollbar {
103
-        width: 3px;
104
-        height: 5px;
105
-      }
106
-      /* 滚动条的滑轨背景颜色 */
107
-      &::-webkit-scrollbar-track {
108
-        background-color: #fff;
109
-        border-radius: 3px;
110
-        -moz-border-radius: 3px;
111
-        -webkit-border-radius: 3px;
112
-      }
113
-      /* 滑块颜色 */
114
-      &::-webkit-scrollbar-thumb {
115
-        background: #d7dce2;
116
-        border-radius: 3px;
117
-        -moz-border-radius: 3px;
118
-        -webkit-border-radius: 3px;
119
-      }
120
-      /*内层轨道的颜色*/
121
-      &::-webkit-scrollbar-track-piece {
122
-        background-color: #fff;
123
-        border-radius: 3px;
124
-        -moz-border-radius: 3px;
125
-        -webkit-border-radius: 3px;
126
-      }
127
-      /* 滑轨两头的监听按钮颜色 */
128
-      &::-webkit-scrollbar-button {
129
-        background-color: #eee;
130
-        width: 0;
131
-        height: 0;
132
-      }
133
-      /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
134
-      &::-webkit-scrollbar-corner {
135
-        background-color: #eee;
136
-      }
137
-
164
+  &::-webkit-scrollbar {
165
+    width: 3px;
166
+    height: 5px;
167
+  }
168
+  /* 滚动条的滑轨背景颜色 */
169
+  &::-webkit-scrollbar-track {
170
+    background-color: #fff;
171
+    border-radius: 3px;
172
+    -moz-border-radius: 3px;
173
+    -webkit-border-radius: 3px;
174
+  }
175
+  /* 滑块颜色 */
176
+  &::-webkit-scrollbar-thumb {
177
+    background: #d7dce2;
178
+    border-radius: 3px;
179
+    -moz-border-radius: 3px;
180
+    -webkit-border-radius: 3px;
181
+  }
182
+  /*内层轨道的颜色*/
183
+  &::-webkit-scrollbar-track-piece {
184
+    background-color: #fff;
185
+    border-radius: 3px;
186
+    -moz-border-radius: 3px;
187
+    -webkit-border-radius: 3px;
188
+  }
189
+  /* 滑轨两头的监听按钮颜色 */
190
+  &::-webkit-scrollbar-button {
191
+    background-color: #eee;
192
+    width: 0;
193
+    height: 0;
194
+  }
195
+  /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
196
+  &::-webkit-scrollbar-corner {
197
+    background-color: #eee;
198
+  }
199
+}
200
+</style>
201
+<style lang="scss">
202
+.el-table td {
203
+  padding: 0;
204
+}
205
+.el-table th {
206
+  padding: 6px 0;
138 207
 }
139 208
 </style>

+ 53 - 4
src/pages/main/today/statOrder.vue View File

@@ -5,7 +5,7 @@
5 5
       <p>{{title}}</p>
6 6
       <span class="line"></span>
7 7
     </h2>
8
-    <div class="newDiv">
8
+    <!-- <div class="newDiv">
9 9
       <table class="table">
10 10
         <tr>
11 11
           <th width="12%">开嘱医生</th>
@@ -29,7 +29,7 @@
29 29
 
30 30
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
31 31
               <span>{{advice.advice_name }}</span>
32
-              <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
32
+              <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
33 33
               <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
34 34
               <span
35 35
                 v-if="advice.prescribing_number"
@@ -53,7 +53,14 @@
53 53
     </div>
54 54
     <div class="NoData" v-show="advice_groups.length == 0">
55 55
       <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
56
-    </div>
56
+    </div>-->
57
+    <el-table :data="date" border style="width: 100%">
58
+      <el-table-column fixed prop="date" label="开嘱医生" width="100"></el-table-column>
59
+      <el-table-column prop="name" label="开始时间" width="100"></el-table-column>
60
+      <el-table-column prop="province" label="医嘱内容" width="100"></el-table-column>
61
+      <el-table-column prop="city" label="执行时间" width="100"></el-table-column>
62
+      <el-table-column prop="address" label="执行护士" width="200"></el-table-column>
63
+    </el-table>
57 64
   </div>
58 65
 </template>
59 66
 
@@ -66,7 +73,41 @@ export default {
66 73
     return {
67 74
       title: "临时医嘱 ",
68 75
       template_id: 0,
69
-      tableDate: []
76
+      tableDate: [],
77
+      date: [
78
+        {
79
+          date: "2016-05-02",
80
+          name: "王小虎",
81
+          province: "上海",
82
+          city: "普陀区",
83
+          address: "上海市普陀区金沙江路 1518 弄",
84
+          zip: 200333
85
+        },
86
+        {
87
+          date: "2016-05-04",
88
+          name: "王小虎",
89
+          province: "上海",
90
+          city: "普陀区",
91
+          address: "上海市普陀区金沙江路 1517 弄",
92
+          zip: 200333
93
+        },
94
+        {
95
+          date: "2016-05-01",
96
+          name: "王小虎",
97
+          province: "上海",
98
+          city: "普陀区",
99
+          address: "上海市普陀区金沙江路 1519 弄",
100
+          zip: 200333
101
+        },
102
+        {
103
+          date: "2016-05-03",
104
+          name: "王小虎",
105
+          province: "上海",
106
+          city: "普陀区",
107
+          address: "上海市普陀区金沙江路 1516 弄",
108
+          zip: 200333
109
+        }
110
+      ]
70 111
     };
71 112
   },
72 113
   props: {
@@ -204,3 +245,11 @@ export default {
204 245
   overflow-x: auto;
205 246
 }
206 247
 </style>
248
+<style lang="scss">
249
+.el-table td {
250
+  padding: 0;
251
+}
252
+.el-table th {
253
+  padding: 6px 0;
254
+}
255
+</style>

+ 182 - 20
src/pages/monitoring/index.vue View File

@@ -2,10 +2,10 @@
2 2
   <div class="mainBox">
3 3
     <div class="mainContent">
4 4
       <div class="top">
5
-        <div class="hospital" style="width:4.2rem;">
5
+        <div class="hospital" style="width:4.2rem;display:none">
6 6
           <span style="visibility:hidden"></span>
7 7
         </div>
8
-        <div class="department">
8
+        <!-- <div class="department">
9 9
           <ul>
10 10
             <li>透析监控</li>
11 11
           </ul>
@@ -24,9 +24,17 @@
24 24
               type="info"
25 25
               style="border: none;"
26 26
               @click="searchWithKeyword(1)"
27
-              >搜索</van-button
28
-            >
27
+            >搜索</van-button>
29 28
           </van-field>
29
+        </div>-->
30
+        <div class="newSearch">
31
+          <el-input
32
+            prefix-icon="el-icon-search"
33
+            v-model="patient_keyword"
34
+            ref="search_field"
35
+            placeholder="透析号/姓名"
36
+          ></el-input>
37
+          <p class="searchBtn" @click="searchWithKeyword(1)">搜索</p>
30 38
         </div>
31 39
       </div>
32 40
 
@@ -44,9 +52,7 @@
44 52
                   :key="item.id"
45 53
                   @click="itemClick(item.id)"
46 54
                   :class="partition == item.id ? 'tick' : ''"
47
-                >
48
-                  {{ item.name }}
49
-                </li>
55
+                >{{ item.name }}</li>
50 56
               </ul>
51 57
             </div>
52 58
           </el-popover>
@@ -56,7 +62,7 @@
56 62
           </li>
57 63
         </ul>
58 64
       </div>
59
-      <van-list
65
+      <!-- <van-list
60 66
         v-model="loading"
61 67
         :finished="finished"
62 68
         finished-text="  "
@@ -161,7 +167,17 @@
161 167
             alt
162 168
           />
163 169
         </div>
164
-      </van-list>
170
+      </van-list>-->
171
+      <el-table :data="tableData" border style="width: 100%" class="newTable">
172
+        <el-table-column fixed prop="date" label="姓名" width="100"></el-table-column>
173
+        <el-table-column prop="name" label="机号" width="100"></el-table-column>
174
+        <el-table-column prop="province" label="透析号" width="100"></el-table-column>
175
+        <el-table-column prop="city" label="排班时间" width="100"></el-table-column>
176
+        <el-table-column prop="address" label="透析模式" width="200"></el-table-column>
177
+        <el-table-column prop="zip" label="脱水量" width="100"></el-table-column>
178
+        <el-table-column prop="zip" label="体重(透前/透后)" width="150"></el-table-column>
179
+        <el-table-column prop="zip" label="监控预警(血压/心率)" width="200"></el-table-column>
180
+      </el-table>
165 181
     </div>
166 182
     <side-bar :active_index="1"></side-bar>
167 183
     <mt-datetime-picker
@@ -194,6 +210,104 @@ export default {
194 210
   },
195 211
   data () {
196 212
     return {
213
+      tableData: [
214
+        {
215
+          date: "2016-05-02",
216
+          name: "王小虎",
217
+          province: "上海",
218
+          city: "普陀区",
219
+          address: "上海市普陀区金沙江路 1518 弄",
220
+          zip: 200333
221
+        },
222
+        {
223
+          date: "2016-05-04",
224
+          name: "王小虎",
225
+          province: "上海",
226
+          city: "普陀区",
227
+          address: "上海市普陀区金沙江路 1517 弄",
228
+          zip: 200333
229
+        },
230
+        {
231
+          date: "2016-05-01",
232
+          name: "王小虎",
233
+          province: "上海",
234
+          city: "普陀区",
235
+          address: "上海市普陀区金沙江路 1519 弄",
236
+          zip: 200333
237
+        },
238
+        {
239
+          date: "2016-05-03",
240
+          name: "王小虎",
241
+          province: "上海",
242
+          city: "普陀区",
243
+          address: "上海市普陀区金沙江路 1516 弄",
244
+          zip: 200333
245
+        },
246
+        {
247
+          date: "2016-05-02",
248
+          name: "王小虎",
249
+          province: "上海",
250
+          city: "普陀区",
251
+          address: "上海市普陀区金沙江路 1518 弄",
252
+          zip: 200333
253
+        },
254
+        {
255
+          date: "2016-05-04",
256
+          name: "王小虎",
257
+          province: "上海",
258
+          city: "普陀区",
259
+          address: "上海市普陀区金沙江路 1517 弄",
260
+          zip: 200333
261
+        },
262
+        {
263
+          date: "2016-05-01",
264
+          name: "王小虎",
265
+          province: "上海",
266
+          city: "普陀区",
267
+          address: "上海市普陀区金沙江路 1519 弄",
268
+          zip: 200333
269
+        },
270
+        {
271
+          date: "2016-05-03",
272
+          name: "王小虎",
273
+          province: "上海",
274
+          city: "普陀区",
275
+          address: "上海市普陀区金沙江路 1516 弄",
276
+          zip: 200333
277
+        },
278
+        {
279
+          date: "2016-05-02",
280
+          name: "王小虎",
281
+          province: "上海",
282
+          city: "普陀区",
283
+          address: "上海市普陀区金沙江路 1518 弄",
284
+          zip: 200333
285
+        },
286
+        {
287
+          date: "2016-05-04",
288
+          name: "王小虎",
289
+          province: "上海",
290
+          city: "普陀区",
291
+          address: "上海市普陀区金沙江路 1517 弄",
292
+          zip: 200333
293
+        },
294
+        {
295
+          date: "2016-05-01",
296
+          name: "王小虎",
297
+          province: "上海",
298
+          city: "普陀区",
299
+          address: "上海市普陀区金沙江路 1519 弄",
300
+          zip: 200333
301
+        },
302
+        {
303
+          date: "2016-05-03",
304
+          name: "王小虎",
305
+          province: "上海",
306
+          city: "普陀区",
307
+          address: "上海市普陀区金沙江路 1516 弄",
308
+          zip: 200333
309
+        }
310
+      ],
197 311
       loading: false,
198 312
       finished: false,
199 313
 
@@ -421,17 +535,21 @@ export default {
421 535
 }
422 536
 </script>
423 537
 
424
-<style style="stylesheet/scss" lang="scss" scoped>
538
+<style lang="scss" scoped>
539
+.mainBox {
540
+  height: 100%;
541
+}
425 542
 .top {
426 543
   padding: 0.3rem 0.3rem;
427 544
   @include text-align;
428 545
   font-size: 0.36rem;
429
-  border-bottom: 1px #e5e5e5 solid;
546
+  // border-bottom: 1px #e5e5e5 solid;
430 547
   position: relative;
431 548
   color: $title-color;
432 549
   @include display-flex;
433 550
   @include align-items-center;
434 551
   @include justify-content-between;
552
+  background: #258ffc;
435 553
   .title {
436 554
     font-size: 0.3rem;
437 555
     font-weight: bold;
@@ -448,15 +566,15 @@ export default {
448 566
 .choice {
449 567
   border-bottom: 1px #e5e5e5 solid;
450 568
   position: fixed;
451
-  top: 63px;
569
+  top: 48px;
452 570
   right: 0;
453 571
   z-index: 66;
454 572
   left: 0;
455
-  background: #fff;
456
-  @media only screen and (max-width: 415px) {
457
-    top: 38px !important;
458
-  }
459
-  @media only screen and (min-width: 376px) and (max-width: 812px) {
573
+  background: #258ffc;
574
+  // @media only screen and (max-width: 415px) {
575
+  //   top: 38px !important;
576
+  // }
577
+  @media only screen and (min-width: 813px) and (max-width: 1024px) {
460 578
     top: 38px !important;
461 579
   }
462 580
   ul {
@@ -464,10 +582,11 @@ export default {
464 582
     @include align-items-center;
465 583
     @include text-align;
466 584
     @include justify-content-between;
467
-    width: 45%;
585
+    width: 55%;
468 586
     margin: 0 auto;
469
-    font-size: 0.32rem;
470
-    color: $pgh-color;
587
+    font-size: 0.45rem;
588
+    // color: $pgh-color;
589
+    color: #fff;
471 590
     li {
472 591
       @include display-flex;
473 592
       @include align-items-center;
@@ -513,3 +632,46 @@ export default {
513 632
   }
514 633
 }
515 634
 </style>
635
+<style lang="scss">
636
+.newSearch {
637
+  height: 1rem;
638
+  width: 100%;
639
+  background: #fff;
640
+  border-radius: 30px;
641
+  .searchBtn {
642
+    width: 15%;
643
+    float: left;
644
+    height: 1rem;
645
+    line-height: 1rem;
646
+    text-align: center;
647
+    font-size: 0.45rem;
648
+    color: #258ffc;
649
+  }
650
+}
651
+.el-input {
652
+  height: 100%;
653
+  width: 85%;
654
+  float: left;
655
+}
656
+.el-input__inner {
657
+  height: 100%;
658
+  line-height: 1rem;
659
+  width: 100%;
660
+  border-radius: 30px;
661
+  border: none;
662
+  font-size: 0.45rem;
663
+}
664
+.el-input__icon {
665
+  line-height: 1rem;
666
+  font-size: 0.45rem;
667
+}
668
+.newTable {
669
+  margin-top: 90px;
670
+}
671
+.el-table td {
672
+  padding: 0;
673
+}
674
+.el-table th {
675
+  padding: 6px 0;
676
+}
677
+</style>

+ 1 - 1
src/styles/media.scss View File

@@ -1,4 +1,4 @@
1
-@media only screen and (max-width: 812px) {
1
+@media only screen and (max-width: 767px) {
2 2
   html {
3 3
     font-size: 30px;
4 4
   }

+ 6 - 6
src/styles/style.scss View File

@@ -772,11 +772,11 @@ body {
772 772
   }
773 773
 }
774 774
 
775
-// .van-cell {
776
-//   @media only screen and (max-width: 812px) {
777
-//     font-size: 6px !important;
778
-//   }
779
-// }
775
+.van-cell {
776
+  @media only screen and (max-width: 812px) {
777
+    font-size: 12px !important;
778
+  }
779
+}
780 780
 .van-field__left-icon {
781 781
   // @media only screen and (max-width: 812px) {
782 782
   //   // margin-right: 0 !important;
@@ -870,7 +870,7 @@ body {
870 870
 //   background: #fff;
871 871
 // }
872 872
 .stateBox {
873
-  padding-top: 140px;
873
+  padding-top: 130px;
874 874
   background: #fff;
875 875
   min-height: calc(100vh - 2px);
876 876
   padding-left: 0.45rem;