Browse Source

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

xiaoming_global 5 years ago
parent
commit
6a2ff6cdbb

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

10
             <ul>
10
             <ul>
11
               <li>
11
               <li>
12
                 <span class="iconfont">&#xe78b;</span>
12
                 <span class="iconfont">&#xe78b;</span>
13
-                <input
14
-                  placeholder="请输入手机号"
15
-                  type="tel"
16
-                  class="tel"
17
-                  v-model="form.mobile"
18
-                />
13
+                <input placeholder="请输入手机号" type="tel" class="tel" v-model="form.mobile" />
19
               </li>
14
               </li>
20
               <li>
15
               <li>
21
                 <span class="iconfont">&#xe6c0;</span>
16
                 <span class="iconfont">&#xe6c0;</span>
22
-                <input
23
-                  placeholder="请输入密码"
24
-                  type="password"
25
-                  class="tel"
26
-                  v-model="form.pwd"
27
-                />
17
+                <input placeholder="请输入密码" type="password" class="tel" v-model="form.pwd" />
28
               </li>
18
               </li>
29
             </ul>
19
             </ul>
30
           </div>
20
           </div>
39
             :disabled="loginDisable"
29
             :disabled="loginDisable"
40
           >
30
           >
41
             登录
31
             登录
42
-          </button> -->
32
+          </button>-->
43
           <button
33
           <button
44
             class="loginBtn"
34
             class="loginBtn"
45
             @click="submitForm"
35
             @click="submitForm"
46
             :class="loginDisable ? 'disableLoginBtn' : ''"
36
             :class="loginDisable ? 'disableLoginBtn' : ''"
47
             :disabled="loginDisable"
37
             :disabled="loginDisable"
48
-          >
49
-            登录
50
-          </button>
38
+          >登录</button>
51
 
39
 
52
           <!-- <router-link to="/forgetPassword"> -->
40
           <!-- <router-link to="/forgetPassword"> -->
53
           <div class="newForget" style="display:none">忘记密码</div>
41
           <div class="newForget" style="display:none">忘记密码</div>
57
           <a href="">免密码登录</a>
45
           <a href="">免密码登录</a>
58
           <a href="">忘记密码?</a>
46
           <a href="">忘记密码?</a>
59
           </div>-->
47
           </div>-->
48
+          <div class="agree">
49
+            <el-checkbox v-model="agreement">
50
+              我已阅读并同意
51
+              <!-- <router-link to="/privacyPolicy"> -->
52
+
53
+              <!-- </router-link> -->
54
+            </el-checkbox>
55
+            <!-- <router-link to="/privacyPolicy"> -->
56
+            <span class="agreeText" @click="agree">《隐私服务协议》</span>
57
+            <!-- </router-link> -->
58
+          </div>
60
         </div>
59
         </div>
61
       </div>
60
       </div>
62
     </div>
61
     </div>
77
         mobile: "",
76
         mobile: "",
78
         pwd: ""
77
         pwd: ""
79
       },
78
       },
80
-      checked: false
79
+      checked: false,
80
+      agreement: true
81
     };
81
     };
82
   },
82
   },
83
   computed: {
83
   computed: {
215
     //清除cookie
215
     //清除cookie
216
     clearCookie: function() {
216
     clearCookie: function() {
217
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
217
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
218
+    },
219
+    agree() {
220
+      this.$router.push({ path: "/privacyPolicy" });
218
     }
221
     }
219
   }
222
   }
220
 };
223
 };
223
 <style rel="stylesheet/scss" lang="scss" scoped>
226
 <style rel="stylesheet/scss" lang="scss" scoped>
224
 .container {
227
 .container {
225
   // background: $white-bg;
228
   // background: $white-bg;
226
-  background: #f5f5f5;
229
+  background: #fff;
227
   @include box-sizing;
230
   @include box-sizing;
228
   position: fixed;
231
   position: fixed;
229
   width: 100%;
232
   width: 100%;
235
     width: 90%;
238
     width: 90%;
236
     height: 90%;
239
     height: 90%;
237
     margin: auto;
240
     margin: auto;
238
-    box-shadow: 0px 2px 25px 0px rgba(37, 143, 252, 0.1);
241
+    // box-shadow: 0px 2px 25px 0px rgba(37, 143, 252, 0.1);
239
     border-radius: 14px;
242
     border-radius: 14px;
240
     background: #fff;
243
     background: #fff;
241
   }
244
   }
336
   .remember {
339
   .remember {
337
     float: left;
340
     float: left;
338
   }
341
   }
342
+  .agreeText {
343
+    color: #409eff;
344
+    font-size: 14px;
345
+  }
346
+}
347
+</style>
348
+
349
+<style lang="scss">
350
+.remember {
351
+  .el-checkbox__inner {
352
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
353
+      width: 20px;
354
+      height: 20px;
355
+    }
356
+    @media only screen and (min-width: 768px) {
357
+      width: 20px;
358
+      height: 20px;
359
+    }
360
+  }
361
+  .el-checkbox__inner::after {
362
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
363
+      left: 7px;
364
+      height: 12px;
365
+      width: 4px;
366
+    }
367
+
368
+    @media only screen and (min-width: 768px) {
369
+      left: 7px;
370
+      height: 12px;
371
+      width: 4px;
372
+    }
373
+  }
374
+  .el-checkbox__label {
375
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
376
+      font-size: 0.45rem;
377
+    }
378
+    @media only screen and (min-width: 768px) {
379
+      font-size: 0.45rem;
380
+    }
381
+  }
382
+}
383
+.agree {
384
+  .el-checkbox__inner {
385
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
386
+      width: 20px;
387
+      height: 20px;
388
+    }
389
+    @media only screen and (min-width: 768px) {
390
+      width: 20px;
391
+      height: 20px;
392
+    }
393
+  }
394
+  .el-checkbox__inner::after {
395
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
396
+      left: 7px;
397
+      height: 12px;
398
+      width: 4px;
399
+    }
400
+
401
+    @media only screen and (min-width: 768px) {
402
+      left: 7px;
403
+      height: 12px;
404
+      width: 4px;
405
+    }
406
+  }
407
+  .el-checkbox__label {
408
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
409
+      font-size: 0.45rem;
410
+    }
411
+    @media only screen and (min-width: 768px) {
412
+      font-size: 0.45rem;
413
+    }
414
+  }
415
+  .agreeText {
416
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
417
+      font-size: 0.45rem;
418
+    }
419
+    @media only screen and (min-width: 768px) {
420
+      font-size: 0.45rem;
421
+    }
422
+  }
339
 }
423
 }
340
 </style>
424
 </style>

+ 7 - 6
src/pages/main/PatientBox.vue View File

26
           <div class="right">
26
           <div class="right">
27
             <h3 class="name">
27
             <h3 class="name">
28
               {{ patient.patient.name }}
28
               {{ patient.patient.name }}
29
-              <span class="el-icon-bell yztx" v-if="getStatus(patient)"
30
-                >医嘱</span
31
-              >
29
+              <span class="yztx" v-if="getStatus(patient)">医嘱</span>
32
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
30
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
33
             </h3>
31
             </h3>
34
             <span class="num"
32
             <span class="num"
39
         </div>
37
         </div>
40
         <div
38
         <div
41
           class="online"
39
           class="online"
42
-          style="flex:1.3;"
40
+          style="flex:1.1;"
43
           v-show="computeState(patient) != 4"
41
           v-show="computeState(patient) != 4"
44
         >
42
         >
45
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
43
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
344
         height: 1rem;
342
         height: 1rem;
345
         border-radius: 50%;
343
         border-radius: 50%;
346
         float: left;
344
         float: left;
347
-        margin: 0 0.3rem 0 0;
345
+        margin: 0 0.2rem 0 0;
348
       }
346
       }
349
       .right {
347
       .right {
350
         float: left;
348
         float: left;
357
           @media only screen and (max-width: 415px) {
355
           @media only screen and (max-width: 415px) {
358
             font-size: 0.45rem;
356
             font-size: 0.45rem;
359
           }
357
           }
358
+          @media only screen and (min-width: 416px) and (max-width: 767px) {
359
+            font-size: 0.4rem;
360
+          }
360
           .yc {
361
           .yc {
361
             background: #ff7979;
362
             background: #ff7979;
362
             color: #fff;
363
             color: #fff;
455
   padding: 3px 10px;
456
   padding: 3px 10px;
456
   background-color: #f56c6c;
457
   background-color: #f56c6c;
457
   color: #fff;
458
   color: #fff;
458
-  border-radius: 15px;
459
+  border-radius: 3px;
459
   font-size: 0.32rem;
460
   font-size: 0.32rem;
460
   @media only screen and (max-width: 415px) {
461
   @media only screen and (max-width: 415px) {
461
     font-size: 0.34rem !important;
462
     font-size: 0.34rem !important;

+ 4 - 1
src/pages/main/dialog/OrdersDialog.vue View File

1402
 }
1402
 }
1403
 .table {
1403
 .table {
1404
   width: 1200px;
1404
   width: 1200px;
1405
-  @media only screen and (max-width: 767px) {
1405
+  @media only screen and (max-width: 415px) {
1406
       width: 850px;
1406
       width: 850px;
1407
     }
1407
     }
1408
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
1409
+      width: 1000px;
1410
+    }
1408
   tr {
1411
   tr {
1409
     th {
1412
     th {
1410
       background: $main-color;
1413
       background: $main-color;

+ 1 - 1
src/pages/main/dialog/TwoMenu.vue View File

150
   @media only screen and (max-width: 812px) {
150
   @media only screen and (max-width: 812px) {
151
     min-height: 8rem !important;
151
     min-height: 8rem !important;
152
   }
152
   }
153
-  @media only screen and (min-width: 415px) and (max-width: 737px) {
153
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
154
     max-height: 12.6rem !important;
154
     max-height: 12.6rem !important;
155
   }
155
   }
156
   ul {
156
   ul {

+ 15 - 26
src/pages/main/dialog/new_order/AddNewOrders.vue View File

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>
43
             <label>开嘱时间 {{ record_date_str }}</label>
38
             <label>开嘱时间 {{ record_date_str }}</label>
44
           </div>
39
           </div>
45
         </div>
40
         </div>
46
-        <div
47
-          id="newDialogContent"
48
-          class="DialogContent choose"
49
-          style="height: 6.2rem;"
50
-        >
41
+        <div id="newDialogContent" class="DialogContent choose" style="height: 6.2rem;">
51
           <div class="newAddTable">
42
           <div class="newAddTable">
52
             <table class="table">
43
             <table class="table">
53
               <tr>
44
               <tr>
70
                 >
61
                 >
71
                   <td
62
                   <td
72
                     style="text-align: left; padding-left: 5px; padding-right: 5px;"
63
                     style="text-align: left; padding-left: 5px; padding-right: 5px;"
73
-                  >
74
-                    {{ advice.title }}
75
-                  </td>
76
-                  <td v-if="advice.advice_desc">
77
-                    {{ advice.advice_desc }}{{ advice.drug_spec_unit }}
78
-                  </td>
64
+                  >{{ advice.title }}</td>
65
+                  <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</td>
79
                   <td v-if="advice.prescribing_number">
66
                   <td v-if="advice.prescribing_number">
80
                     {{ advice.prescribing_number
67
                     {{ advice.prescribing_number
81
                     }}{{ advice.prescribing_number_unit }}
68
                     }}{{ advice.prescribing_number_unit }}
82
                   </td>
69
                   </td>
83
                   <td v-else></td>
70
                   <td v-else></td>
84
-                  <td v-if="advice.single_dose">
85
-                    {{ advice.single_dose }} {{ advice.single_dose_unit }}
86
-                  </td>
71
+                  <td
72
+                    v-if="advice.single_dose"
73
+                  >{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
87
                   <td v-else></td>
74
                   <td v-else></td>
88
                   <td>{{ advice.delivery_way }}</td>
75
                   <td>{{ advice.delivery_way }}</td>
89
                   <td>{{ advice.execution_frequency }}</td>
76
                   <td>{{ advice.execution_frequency }}</td>
100
                 >
87
                 >
101
                   <td
88
                   <td
102
                     style="text-align: left; padding-right: 5px; padding-left: 25px;"
89
                     style="text-align: left; padding-right: 5px; padding-left: 25px;"
103
-                  >
104
-                    {{ subdrug.title }}
105
-                  </td>
106
-                  <td>
107
-                    {{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}
108
-                  </td>
90
+                  >{{ subdrug.title }}</td>
91
+                  <td>{{ subdrug.advice_desc }} {{ subdrug.drug_spec_unit }}</td>
109
                   <td>
92
                   <td>
110
                     <span v-if="subdrug.prescribing_number">
93
                     <span v-if="subdrug.prescribing_number">
111
                       {{ subdrug.prescribing_number
94
                       {{ subdrug.prescribing_number
250
       parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
233
       parseTime(this.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
251
   },
234
   },
252
   methods: {
235
   methods: {
236
+    ok() {
237
+      // alert(1);
238
+      // this.$refs.start_time_picker.close();
239
+      console.log(this.$refs.start_time_picker);
240
+    },
253
     backAction: function() {
241
     backAction: function() {
254
       this.$emit("back-action");
242
       this.$emit("back-action");
255
     },
243
     },
386
     didSelectStartTime: function(time) {
374
     didSelectStartTime: function(time) {
387
       this.start_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
375
       this.start_time_str = parseTime(time, "{y}-{m}-{d} {h}:{i}") + ":00";
388
       console.log(".");
376
       console.log(".");
377
+      console.log(this.$refs.start_time_picker);
389
     },
378
     },
390
     didSelectTemplateAdvice: function(resp_advices) {
379
     didSelectTemplateAdvice: function(resp_advices) {
391
       this.show_dialog_key = 0;
380
       this.show_dialog_key = 0;

+ 5 - 1
src/router/index.js View File

1
 import Vue from "vue";
1
 import Vue from "vue";
2
 import Router from "vue-router";
2
 import Router from "vue-router";
3
 
3
 
4
-
5
 Vue.use(Router);
4
 Vue.use(Router);
6
 
5
 
7
 export default new Router({
6
 export default new Router({
75
       path: "/changePassword",
74
       path: "/changePassword",
76
       name: "changePassword",
75
       name: "changePassword",
77
       component: () => import("@/pages/personal/ChangePassword")
76
       component: () => import("@/pages/personal/ChangePassword")
77
+    },
78
+    {
79
+      path: "/privacyPolicy",
80
+      name: "privacyPolicy",
81
+      component: () => import("@/pages/home/privacyPolicy")
78
     }
82
     }
79
   ]
83
   ]
80
 });
84
 });