Преглед на файлове

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

xiaoming_global преди 4 години
родител
ревизия
c2f1ab043a

+ 1 - 1
build/cdn.json Целия файл

1
 {
1
 {
2
-  "version": "1.1.2"
2
+  "version": "1.1.68"
3
 }
3
 }

+ 2 - 2
config/prod.env.js Целия файл

1
 "use strict";
1
 "use strict";
2
 module.exports = {
2
 module.exports = {
3
   NODE_ENV: '"production"',
3
   NODE_ENV: '"production"',
4
-  // BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  BASE_API: '"https://api.xt.kuyicloud.com"'
5
 
5
 
6
-  BASE_API: '"http://api.xt.test.sgjyun.com"'
6
+  // BASE_API: '"http://api.xt.test.sgjyun.com"'
7
   // http://api.xt.test.sgjyun.com
7
   // http://api.xt.test.sgjyun.com
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
9
 };
9
 };

+ 13 - 17
src/pages/home/login.vue Целия файл

37
             :disabled="loginDisable"
37
             :disabled="loginDisable"
38
           >登录</button>
38
           >登录</button>
39
 
39
 
40
-          <!-- <router-link to="/forgetPassword"> -->
41
-          <div class="newForget" style="display:none">忘记密码</div>
42
-          <!-- </router-link> -->
40
+          <!-- <router-link to="/forgetPassword">
41
+            <div class="newForget">忘记密码</div>
42
+          </router-link>-->
43
           <!-- </router-link> -->
43
           <!-- </router-link> -->
44
           <!-- <div class="forget">
44
           <!-- <div class="forget">
45
           <a href="">免密码登录</a>
45
           <a href="">免密码登录</a>
46
           <a href="">忘记密码?</a>
46
           <a href="">忘记密码?</a>
47
           </div>-->
47
           </div>-->
48
-          <!--<div class="agree">-->
49
-            <!--<el-checkbox v-model="agreement">-->
50
-              <!--我已阅读并同意-->
51
-              <!--&lt;!&ndash; <router-link to="/privacyPolicy"> &ndash;&gt;-->
52
-
53
-              <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
54
-            <!--</el-checkbox>-->
55
-            <!--&lt;!&ndash; <router-link to="/privacyPolicy"> &ndash;&gt;-->
56
-            <!--<span class="agreeText" @click="agree">《隐私服务协议》</span>-->
57
-            <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
58
-          <!--</div>-->
48
+          <div class="agree">
49
+            <el-checkbox v-model="agreement">我已阅读并同意</el-checkbox>
50
+            <span class="agreeText" @click="agree()">《隐私服务协议》</span>
51
+          </div>
59
         </div>
52
         </div>
60
       </div>
53
       </div>
61
     </div>
54
     </div>
131
       });
124
       });
132
     },
125
     },
133
     to: function() {
126
     to: function() {
134
-      this.$router.push({ path: "/forgetPassword" });
127
+      this.$router.push({ path: "/privacy" });
135
     },
128
     },
136
     submitForm() {
129
     submitForm() {
137
       const self = this;
130
       const self = this;
150
 
143
 
151
       loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
144
       loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
152
         var resp = rs.data;
145
         var resp = rs.data;
146
+        if (this.agreement != true) {
147
+          Toast("请同意隐私服务协议");
148
+        }
153
 
149
 
154
-        if (resp.state == 1) {
150
+        if (resp.state == 1 && this.agreement == true) {
155
           cacheLoginInfo(this.form.mobile, this.form.pwd);
151
           cacheLoginInfo(this.form.mobile, this.form.pwd);
156
           console.log(resp);
152
           console.log(resp);
157
 
153
 
217
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
213
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
218
     },
214
     },
219
     agree() {
215
     agree() {
220
-      this.$router.push({ path: "/privacyPolicy" });
216
+      this.$router.push({ path: "/privacy" });
221
     }
217
     }
222
   }
218
   }
223
 };
219
 };

+ 12 - 8
src/pages/layout/SideBar.vue Целия файл

3
     <div class="column">
3
     <div class="column">
4
       <!-- <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div> -->
4
       <!-- <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div> -->
5
       <ul class="sidebar">
5
       <ul class="sidebar">
6
-        <li
7
-          style="position: relative;"
8
-          :class="active_index == 0 ? 'active' : ''"
9
-        >
6
+        <li style="position: relative;" :class="active_index == 0 ? 'active' : ''">
10
           <router-link to="/main">
7
           <router-link to="/main">
11
             <span class="iconfont">&#xe6e6;</span>
8
             <span class="iconfont">&#xe6e6;</span>
12
             <p>记录</p>
9
             <p>记录</p>
13
           </router-link>
10
           </router-link>
14
-          <span class="redpoint" v-if="total_read_dot">
15
-            {{ total_read_dot > 99 ? total_read_dot + "+" : total_read_dot }}
16
-          </span>
11
+          <span
12
+            class="redpoint"
13
+            v-if="total_read_dot"
14
+          >{{ total_read_dot > 99 ? total_read_dot + "+" : total_read_dot }}</span>
17
         </li>
15
         </li>
18
         <li :class="active_index == 1 ? 'active' : ''">
16
         <li :class="active_index == 1 ? 'active' : ''">
19
           <router-link to="/monitoring">
17
           <router-link to="/monitoring">
68
   position: absolute;
66
   position: absolute;
69
   top: 3px;
67
   top: 3px;
70
   right: -16px;
68
   right: -16px;
71
-  @media only screen and (max-width: 767px) {
69
+  @media only screen and (max-width: 415px) {
72
     height: 16px;
70
     height: 16px;
73
     width: 16px;
71
     width: 16px;
74
     line-height: 16px;
72
     line-height: 16px;
75
     top: 1px;
73
     top: 1px;
76
     right: -8px;
74
     right: -8px;
77
   }
75
   }
76
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
77
+    height: 20px;
78
+    width: 20px;
79
+    line-height: 21px;
80
+    font-size: 0.36rem;
81
+  }
78
 }
82
 }
79
 .sideColumn {
83
 .sideColumn {
80
   // float: left;
84
   // float: left;

+ 16 - 13
src/pages/main/DetailsPage.vue Целия файл

2
   <div class="mainBox">
2
   <div class="mainBox">
3
     <div class="mainContent">
3
     <div class="mainContent">
4
       <div class="navigation">
4
       <div class="navigation">
5
-        <div class="goBack">
5
+        <div class="goBack newGoBack">
6
           <span class="back" @click="backAction()">
6
           <span class="back" @click="backAction()">
7
             <span class="iconfont">&#xe720;</span>返回
7
             <span class="iconfont">&#xe720;</span>返回
8
           </span>
8
           </span>
10
             <li slot="reference" class="name">{{ patient_name }}</li>
10
             <li slot="reference" class="name">{{ patient_name }}</li>
11
           </el-popover>
11
           </el-popover>
12
         </div>
12
         </div>
13
-        <div class="nav">
13
+        <div class="nav newNav1">
14
           <ul>
14
           <ul>
15
             <li
15
             <li
16
               v-for="(item, i) in ['病历', '透析', '今日']"
16
               v-for="(item, i) in ['病历', '透析', '今日']"
155
 .mainContent {
155
 .mainContent {
156
   position: relative;
156
   position: relative;
157
   .navigation {
157
   .navigation {
158
-    @include display-flex;
159
-    @include align-items-center;
160
-    @include text-align;
161
-    @include box-sizing;
162
-    @include justify-content-between;
158
+    // @include display-flex;
159
+    // @include align-items-center;
160
+    // @include text-align;
161
+    // @include box-sizing;
162
+    // @include justify-content-between;
163
     padding: 0.3rem 0.36rem;
163
     padding: 0.3rem 0.36rem;
164
     // border-bottom: 1px #e5e5e5 solid;
164
     // border-bottom: 1px #e5e5e5 solid;
165
     position: fixed;
165
     position: fixed;
168
     right: 0;
168
     right: 0;
169
     z-index: 100;
169
     z-index: 100;
170
     background: #258ffc;
170
     background: #258ffc;
171
-    @media only screen and (max-width: 320px) {
172
-      display: -webkit-box;
171
+    .newGoBack {
172
+      float: left;
173
+    }
174
+    .newNav1 {
175
+      float: left;
173
     }
176
     }
174
     .name {
177
     .name {
175
       color: #fff;
178
       color: #fff;
176
     }
179
     }
177
     .nav {
180
     .nav {
178
-      margin-right: 2.4rem;
181
+      margin-left: 0.4rem;
179
       @media only screen and (min-width: 376px) and (max-width: 415px) {
182
       @media only screen and (min-width: 376px) and (max-width: 415px) {
180
-        margin-right: 3.6rem;
183
+        margin-left: 1rem;
181
       }
184
       }
182
       @media only screen and (min-width: 415px) and (max-width: 767px) {
185
       @media only screen and (min-width: 415px) and (max-width: 767px) {
183
-        margin-right: 3.6rem;
186
+        margin-left: 1.6rem;
184
       }
187
       }
185
       @media only screen and (min-width: 768px) {
188
       @media only screen and (min-width: 768px) {
186
-        margin-right: 4rem;
189
+        margin-left: 2rem;
187
       }
190
       }
188
       ul {
191
       ul {
189
         li {
192
         li {

+ 41 - 18
src/pages/main/PatientBox.vue Целия файл

18
             "
18
             "
19
             alt
19
             alt
20
           />
20
           />
21
-          <span class="redpoint" v-if="getStatus(patient)">{{
21
+          <span class="redpoint" v-if="getStatus(patient)">
22
+            {{
22
             getUnReadNum(patient) > 99
23
             getUnReadNum(patient) > 99
23
-              ? getUnReadNum(patient) + "+"
24
-              : getUnReadNum(patient)
25
-          }}</span>
24
+            ? getUnReadNum(patient) + "+"
25
+            : getUnReadNum(patient)
26
+            }}
27
+          </span>
26
           <div class="right">
28
           <div class="right">
27
             <h3 class="name">
29
             <h3 class="name">
28
               {{ patient.patient.name }}
30
               {{ patient.patient.name }}
29
               <span class="yztx" v-if="getStatus(patient)">医嘱</span>
31
               <span class="yztx" v-if="getStatus(patient)">医嘱</span>
30
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
32
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
31
             </h3>
33
             </h3>
32
-            <span class="num"
33
-              >{{ genderText(patient) }} | {{ age(patient) }}岁</span
34
-            >
34
+            <span class="num">{{ genderText(patient) }} | {{ age(patient) }}岁</span>
35
             <!-- 性别、年龄 -->
35
             <!-- 性别、年龄 -->
36
           </div>
36
           </div>
37
         </div>
37
         </div>
38
-        <div
39
-          class="online"
40
-          style="flex:1.1;"
41
-          v-show="computeState(patient) != 4"
42
-        >
38
+        <div class="online" style="flex:1;" v-show="computeState(patient) != 4">
43
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
39
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
44
           <!-- <span class="time">剩余时间 : 90:08</span>     -->
40
           <!-- <span class="time">剩余时间 : 90:08</span>     -->
45
         </div>
41
         </div>
55
             <span class="iconfont">&#xe6de;</span>
51
             <span class="iconfont">&#xe6de;</span>
56
             床位号 :
52
             床位号 :
57
             {{
53
             {{
58
-              patient.dialysis_order &&
59
-              patient.dialysis_order.device_number &&
60
-              patient.dialysis_order.device_number.number.length > 0
61
-                ? patient.dialysis_order.device_number.number
62
-                : patient.device_number.number
54
+            patient.dialysis_order &&
55
+            patient.dialysis_order.device_number &&
56
+            patient.dialysis_order.device_number.number.length > 0
57
+            ? patient.dialysis_order.device_number.number
58
+            : patient.device_number.number
63
             }}
59
             }}
64
           </li>
60
           </li>
65
           <li>
61
           <li>
298
   @media only screen and (max-width: 415px) {
294
   @media only screen and (max-width: 415px) {
299
     width: 96% !important;
295
     width: 96% !important;
300
   }
296
   }
297
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
298
+    width: 48%;
299
+    margin: 0 1% 0.5rem 0;
300
+  }
301
   .function {
301
   .function {
302
     padding: 0.3rem 0.32rem 0 0.32rem;
302
     padding: 0.3rem 0.32rem 0 0.32rem;
303
     color: #7b8a97;
303
     color: #7b8a97;
304
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
305
+      margin: 0;
306
+      padding: 0.3rem 0.1rem 0 0.1rem;
307
+    }
304
     ul {
308
     ul {
305
       @include display-flex;
309
       @include display-flex;
306
       @include align-items-center;
310
       @include align-items-center;
334
     @include justify-content-between;
338
     @include justify-content-between;
335
     border-bottom: 1px #e5e5e5 solid;
339
     border-bottom: 1px #e5e5e5 solid;
336
     padding: 0 0 0.3rem 0.32rem;
340
     padding: 0 0 0.3rem 0.32rem;
341
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
342
+      padding: 0 0 0.3rem 0.1rem;
343
+    }
337
     .tx {
344
     .tx {
338
       @include display-flex;
345
       @include display-flex;
339
       @include align-items-center;
346
       @include align-items-center;
397
           font-size: 0.36rem;
404
           font-size: 0.36rem;
398
           width: 1.7rem;
405
           width: 1.7rem;
399
         }
406
         }
407
+        @media only screen and (min-width: 415px) and (max-width: 767px) {
408
+          width: 1.3rem;
409
+          font-size: 0.36rem;
410
+        }
400
       }
411
       }
401
       .blue {
412
       .blue {
402
         background: $main-color;
413
         background: $main-color;
443
   top: -6px;
454
   top: -6px;
444
   left: 0.6rem;
455
   left: 0.6rem;
445
   border: 1px solid #fff;
456
   border: 1px solid #fff;
446
-  @media only screen and (max-width: 767px) {
457
+  @media only screen and (max-width: 415px) {
447
     height: 16px;
458
     height: 16px;
448
     width: 16px;
459
     width: 16px;
449
     line-height: 15px;
460
     line-height: 15px;
450
     top: -6px;
461
     top: -6px;
451
     left: 0.6rem;
462
     left: 0.6rem;
452
   }
463
   }
464
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
465
+    height: 20px;
466
+    width: 20px;
467
+    line-height: 19px;
468
+    top: -6px;
469
+    left: 0.6rem;
470
+    font-size: 0.36rem;
471
+  }
453
 }
472
 }
454
 .yztx {
473
 .yztx {
455
   margin: 0 5px;
474
   margin: 0 5px;
461
   @media only screen and (max-width: 415px) {
480
   @media only screen and (max-width: 415px) {
462
     font-size: 0.34rem !important;
481
     font-size: 0.34rem !important;
463
   }
482
   }
483
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
484
+    margin: 0;
485
+    padding: 3px 3px;
486
+  }
464
 }
487
 }
465
 </style>
488
 </style>

+ 14 - 11
src/pages/main/RecordPage.vue Целия файл

76
               {{ "候诊区" }}
76
               {{ "候诊区" }}
77
               <span class="redpoint" v-if="un_read_wait_num">
77
               <span class="redpoint" v-if="un_read_wait_num">
78
                 {{
78
                 {{
79
-                  un_read_wait_num > 99
80
-                    ? un_read_wait_num + "+"
81
-                    : un_read_wait_num
79
+                un_read_wait_num > 99
80
+                ? un_read_wait_num + "+"
81
+                : un_read_wait_num
82
                 }}
82
                 }}
83
               </span>
83
               </span>
84
             </li>
84
             </li>
90
               {{ "透析区" }}
90
               {{ "透析区" }}
91
               <span class="redpoint" v-if="un_read_dialysis_num">
91
               <span class="redpoint" v-if="un_read_dialysis_num">
92
                 {{
92
                 {{
93
-                  un_read_dialysis_num > 99
94
-                    ? un_read_dialysis_num + "+"
95
-                    : un_read_dialysis_num
93
+                un_read_dialysis_num > 99
94
+                ? un_read_dialysis_num + "+"
95
+                : un_read_dialysis_num
96
                 }}
96
                 }}
97
               </span>
97
               </span>
98
             </li>
98
             </li>
118
         <van-button size="small" type="info">临时排班</van-button>
118
         <van-button size="small" type="info">临时排班</van-button>
119
     </div>-->
119
     </div>-->
120
     <div class="area">
120
     <div class="area">
121
-      <waiting-area
122
-        v-show="index == 0"
123
-        title="候诊区"
124
-        :search_keyword="search_keyword"
125
-      ></waiting-area>
121
+      <waiting-area v-show="index == 0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
126
       <dialysis-area
122
       <dialysis-area
127
         v-show="index == 1"
123
         v-show="index == 1"
128
         title="透析区"
124
         title="透析区"
284
     width: 16px;
280
     width: 16px;
285
     line-height: 15px;
281
     line-height: 15px;
286
   }
282
   }
283
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
284
+    height: 20px;
285
+    width: 20px;
286
+    line-height: 20px;
287
+    font-size: 0.36rem;
288
+  }
287
 }
289
 }
288
 .box {
290
 .box {
289
   height: 1rem;
291
   height: 1rem;
350
     }
352
     }
351
   }
353
   }
352
   .el-input__prefix {
354
   .el-input__prefix {
355
+    // left:1px;
353
     @media only screen and (min-width: 768px) {
356
     @media only screen and (min-width: 768px) {
354
       left: 10px;
357
       left: 10px;
355
     }
358
     }

+ 9 - 5
src/pages/main/add_urgent_schedule.vue Целия файл

239
 
239
 
240
       var today = new Date();
240
       var today = new Date();
241
       this.date = parseTime(today, "{y}-{m}-{d}");
241
       this.date = parseTime(today, "{y}-{m}-{d}");
242
-
243
       var hour = today.getHours();
242
       var hour = today.getHours();
244
       if (hour > 3 && hour < 11) {
243
       if (hour > 3 && hour < 11) {
245
         this.schedule_type = 1;
244
         this.schedule_type = 1;
248
       } else {
247
       } else {
249
         this.schedule_type = 3;
248
         this.schedule_type = 3;
250
       }
249
       }
251
-
252
-
253
-
254
     },
250
     },
255
     mounted() {
251
     mounted() {
256
 
252
 
353
       selectSchTypeAction: function() {
349
       selectSchTypeAction: function() {
354
         this.$refs.sch_type_field.blur();
350
         this.$refs.sch_type_field.blur();
355
         this.show_sch_type_picker = true;
351
         this.show_sch_type_picker = true;
356
-
352
+        //
353
+        // this.$nextTick(() => {
354
+        //   // this.$refs.schedule.setColumnIndex(2)
355
+        //   // .setIndexes(this.schedule_type)
356
+        //   console.log(this.$refs.schedule)
357
+        //   console.log(this.$refs.schedule.getColumnIndex)
358
+        //   console.log(this.$refs.schedule.getColumnValue)
359
+        //
360
+        // })
357
       },
361
       },
358
 
362
 
359
       didChangePatient: function(picker, patient, index) {
363
       didChangePatient: function(picker, patient, index) {

+ 44 - 35
src/pages/main/dialog/ComputerDialog.vue Целия файл

100
         zone_beds: [], // 该排班的区里的床位
100
         zone_beds: [], // 该排班的区里的床位
101
         creator: 0,
101
         creator: 0,
102
         template_id: 0,
102
         template_id: 0,
103
+        temp_device_numbers:[],
103
         blood_drawing:100,
104
         blood_drawing:100,
104
         schedual_type:0,
105
         schedual_type:0,
105
         schedules_type: [
106
         schedules_type: [
136
       },
137
       },
137
     }, mounted () {
138
     }, mounted () {
138
 
139
 
140
+
141
+    },
142
+    created () {
143
+      this.temp_device_numbers = this.device_numbers
144
+
145
+
146
+
139
       if (this.record.id == 0) {
147
       if (this.record.id == 0) {
140
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
148
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
149
+        let now = new Date()
150
+        let hour = now.getHours()
151
+
152
+        if (hour >= 6 && hour < 12){
153
+          this.schedual_type = 1
154
+
155
+        }else if(hour >= 12 && hour < 18){
156
+
157
+          this.schedual_type = 2
158
+
159
+
160
+        }else if(hour >= 18){
161
+          this.schedual_type = 3
162
+        }
141
       } else {
163
       } else {
142
         if (this.record.start_time == 0) {
164
         if (this.record.start_time == 0) {
143
           this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
165
           this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
166
+          this.schedual_type = this.record.schedual_type
144
 
167
 
145
         } else {
168
         } else {
146
           this.start_time_str = parseTime(this.record.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
169
           this.start_time_str = parseTime(this.record.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
147
-        }
148
-      }
149
-    },
150
-    created () {
151
-      let now = new Date()
152
-      let hour = now.getHours()
170
+          this.schedual_type = this.record.schedual_type
153
 
171
 
154
-      if (hour >= 6 && hour < 12){
155
-        this.schedual_type = 1
156
-
157
-      }else if(hour >= 12 && hour < 18){
158
-
159
-        this.schedual_type = 2
160
-
161
-
162
-      }else if(hour >= 18){
163
-        this.schedual_type = 3
172
+        }
164
       }
173
       }
165
 
174
 
166
 
175
 
198
       // }
207
       // }
199
       // this.zone_beds = beds
208
       // this.zone_beds = beds
200
 
209
 
201
-      for (let index = 0; index < this.device_numbers.length; index++) {
202
-        const device_number = this.device_numbers[index]
203
-        this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
210
+      for (let index = 0; index < this.temp_device_numbers.length; index++) {
211
+        const device_number = this.temp_device_numbers[index]
212
+        this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
204
       }
213
       }
205
-      this.zone_beds = this.device_numbers
214
+      this.zone_beds = this.temp_device_numbers
206
 
215
 
207
       if (this.record.id > 0) {
216
       if (this.record.id > 0) {
208
         for (let i = 0; i < this.special_premission.length; i++) {
217
         for (let i = 0; i < this.special_premission.length; i++) {
253
                   Toast.fail(response.data.msg)
262
                   Toast.fail(response.data.msg)
254
                   return false
263
                   return false
255
                 } else {
264
                 } else {
256
-                  t.device_numbers = response.data.data.number
257
-                  for (let index = 0; index < t.device_numbers.length; index++) {
258
-                    const device_number = t.device_numbers[index]
259
-                    t.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
265
+                  t.temp_device_numbers = response.data.data.number
266
+                  for (let index = 0; index < t.temp_device_numbers.length; index++) {
267
+                    const device_number = t.temp_device_numbers[index]
268
+                    t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
260
                   }
269
                   }
261
-                  t.zone_beds = t.device_numbers
270
+                  t.zone_beds = t.temp_device_numbers
262
                   t.bed_id = t.zone_beds[0].id
271
                   t.bed_id = t.zone_beds[0].id
263
                 }
272
                 }
264
               })
273
               })
281
               return false
290
               return false
282
             } else {
291
             } else {
283
               t.zone_beds = []
292
               t.zone_beds = []
284
-              t.device_numbers = response.data.data.number
285
-              for (let index = 0; index < t.device_numbers.length; index++) {
286
-                const device_number = t.device_numbers[index]
287
-                t.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
293
+              t.temp_device_numbers = response.data.data.number
294
+              for (let index = 0; index < t.temp_device_numbers.length; index++) {
295
+                const device_number = t.temp_device_numbers[index]
296
+                t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
288
               }
297
               }
289
-              t.zone_beds = t.device_numbers
298
+              t.zone_beds = t.temp_device_numbers
290
               t.bed_id = t.zone_beds[0].id
299
               t.bed_id = t.zone_beds[0].id
291
 
300
 
292
 
301
 
305
             Toast.fail(response.data.msg)
314
             Toast.fail(response.data.msg)
306
             return false
315
             return false
307
           } else {
316
           } else {
308
-            this.device_numbers = response.data.data.number
309
-            for (let index = 0; index < this.device_numbers.length; index++) {
310
-              const device_number = this.device_numbers[index]
311
-              this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
317
+            this.temp_device_numbers = response.data.data.number
318
+            for (let index = 0; index < this.temp_device_numbers.length; index++) {
319
+              const device_number = this.temp_device_numbers[index]
320
+              this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
312
             }
321
             }
313
-            this.zone_beds = this.device_numbers
322
+            this.zone_beds = this.temp_device_numbers
314
           }
323
           }
315
         })
324
         })
316
       },
325
       },

Файловите разлики са ограничени, защото са твърде много
+ 445 - 441
src/pages/main/dialog/MonitDialog.vue


+ 28 - 25
src/pages/main/dialog/TreatmentDialog.vue Целия файл

241
     },
241
     },
242
 
242
 
243
     dialysisSummarySelectChange: function(values) {
243
     dialysisSummarySelectChange: function(values) {
244
-      if (this.dialysisSummary.summaryContent == null) {
245
-        this.dialysisSummary.summaryContent == "";
244
+      if(this.dialysisSummary.summaryContent == null){
245
+        this.dialysisSummary.summaryContent == ""
246
       }
246
       }
247
+
247
       if (this.dialysisSummary.summaryContent == "") {
248
       if (this.dialysisSummary.summaryContent == "") {
248
         this.dialysisSummary.summaryContent = values;
249
         this.dialysisSummary.summaryContent = values;
249
       } else {
250
       } else {
250
-        this.dialysisSummary.summaryContent =
251
-          this.dialysisSummary.summaryContent + values;
251
+        if (this.dialysisSummary.summaryContent.indexOf(values) == -1) {
252
+          if (
253
+            this.dialysisSummary.summaryContent
254
+              .charAt(this.dialysisSummary.summaryContent.length - 1)
255
+              .indexOf("。") == -1
256
+          ) {
257
+            this.dialysisSummary.summaryContent =
258
+              this.dialysisSummary.summaryContent + "," + values;
259
+          } else {
260
+            this.dialysisSummary.summaryContent =
261
+              this.dialysisSummary.summaryContent  + values;
262
+          }
263
+        }
252
       }
264
       }
253
     },
265
     },
254
     dialysisAfterTeachSelectChange: function(values) {
266
     dialysisAfterTeachSelectChange: function(values) {
255
-      if (this.dialysisSummary.propagandaAndEducationContent == null) {
256
-        this.dialysisSummary.propagandaAndEducationContent == "";
267
+      if(this.dialysisSummary.propagandaAndEducationContent == null){
268
+        this.dialysisSummary.propagandaAndEducationContent == ""
257
       }
269
       }
258
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
270
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
259
         this.dialysisSummary.propagandaAndEducationContent = values;
271
         this.dialysisSummary.propagandaAndEducationContent = values;
260
       } else {
272
       } else {
261
-        this.dialysisSummary.propagandaAndEducationContent =
262
-          this.dialysisSummary.propagandaAndEducationContent + values;
263
-        // if (
264
-        //   this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
265
-        //   -1
266
-        // ) {
267
-        //   if (
268
-        //     this.dialysisSummary.propagandaAndEducationContent
269
-        //       .charAt(
270
-        //         this.dialysisSummary.propagandaAndEducationContent.length - 1
271
-        //       )
272
-        //       .indexOf("。") == -1
273
-        //   ) {
274
-        //     this.dialysisSummary.propagandaAndEducationContent =
275
-        //       this.dialysisSummary.propagandaAndEducationContent + "," + values;
276
-        //   } else {
277
-        //
278
-        //   }
279
-        // }
273
+        if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
274
+          if (
275
+            this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf("。") == -1) {
276
+            this.dialysisSummary.propagandaAndEducationContent =
277
+              this.dialysisSummary.propagandaAndEducationContent + "," + values;
278
+          } else {
279
+            this.dialysisSummary.propagandaAndEducationContent =
280
+              this.dialysisSummary.propagandaAndEducationContent + values;
281
+          }
282
+        }
280
       }
283
       }
281
     },
284
     },
282
     commitInfo: function() {
285
     commitInfo: function() {

+ 36 - 72
src/pages/main/today/TodayTab.vue Целия файл

227
       :overlay="true"
227
       :overlay="true"
228
       :close-on-click-overlay="false"
228
       :close-on-click-overlay="false"
229
     >
229
     >
230
-      <monit-dialog
230
+      <monit-dialog v-if="monit_dialog_reset"
231
         :monitor_records="monitor_records"
231
         :monitor_records="monitor_records"
232
         :last_monitor_record="last_monitor_record"
232
         :last_monitor_record="last_monitor_record"
233
         :patient="patient"
233
         :patient="patient"
371
         last_prescription:{},
371
         last_prescription:{},
372
         thoroug_dialog_reset: true,
372
         thoroug_dialog_reset: true,
373
         prescription_dialog_reset: true,
373
         prescription_dialog_reset: true,
374
+        monit_dialog_reset: true,
374
         receiver_treatment_access: {}, // 接诊评估
375
         receiver_treatment_access: {}, // 接诊评估
375
         predialysis_evaluation: {}, // 透前评估
376
         predialysis_evaluation: {}, // 透前评估
376
         last_predialysis_evaluation: {}, // 上次透前评估
377
         last_predialysis_evaluation: {}, // 上次透前评估
847
           var waitscheduals = waitstoredata.waitscheduals
848
           var waitscheduals = waitstoredata.waitscheduals
848
           var storedata = this.$store.getters.scheduals
849
           var storedata = this.$store.getters.scheduals
849
           var scheduals = storedata.scheduals
850
           var scheduals = storedata.scheduals
850
-
851
-
852
-
853
-
854
-
855
           var patient = resp.data.patient // 患者信息
851
           var patient = resp.data.patient // 患者信息
856
           var schedual = resp.data.schedual // 患者排班信息
852
           var schedual = resp.data.schedual // 患者排班信息
857
           var prescription = resp.data.prescription // 透析处方
853
           var prescription = resp.data.prescription // 透析处方
882
           var monitor_records = resp.data.monitor_records // 透析监测
878
           var monitor_records = resp.data.monitor_records // 透析监测
883
           var dialysis_order = resp.data.dialysis_order // 透析记录
879
           var dialysis_order = resp.data.dialysis_order // 透析记录
884
           var operators = resp.data.operators // 操作人
880
           var operators = resp.data.operators // 操作人
885
-
886
           var special_premission = resp.data.special_premission // 特殊权限
881
           var special_premission = resp.data.special_premission // 特殊权限
887
-
888
           var config = resp.data.config // 库存自动扣减配置
882
           var config = resp.data.config // 库存自动扣减配置
889
-
890
           var types = resp.data.types // 所有系统库存商品类型
883
           var types = resp.data.types // 所有系统库存商品类型
891
-
892
           var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
884
           var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
893
           var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
885
           var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
894
           var last_monitor_record = resp.data.last_monitor_record
886
           var last_monitor_record = resp.data.last_monitor_record
922
           this.patient = patient
914
           this.patient = patient
923
           this.schedual = schedual == null ? {} : schedual
915
           this.schedual = schedual == null ? {} : schedual
924
           this.prescription = prescription == null ? {id: ''} : prescription
916
           this.prescription = prescription == null ? {id: ''} : prescription
925
-          this.prescription_dialog_reset = false
926
-          this.$nextTick(() => {
927
-            this.prescription_dialog_reset = true
928
-          })
929
           this.solution = solution == null ? {id: ''} : solution
917
           this.solution = solution == null ? {id: ''} : solution
930
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
918
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
931
-
932
-
933
-
934
-          this.receiver_treatment_access =
935
-              receiver_treatment_access == null
936
-                ? {id: ''}
937
-                : receiver_treatment_access
938
-          this.predialysis_evaluation =
939
-              predialysis_evaluation == null ? {} : predialysis_evaluation
940
-          this.last_predialysis_evaluation =
941
-              last_predialysis_evaluation == null
942
-                ? {}
943
-                : last_predialysis_evaluation
944
-
919
+          this.receiver_treatment_access = receiver_treatment_access == null ? {id: ''} : receiver_treatment_access
920
+          this.predialysis_evaluation = predialysis_evaluation == null ? {} : predialysis_evaluation
921
+          this.last_predialysis_evaluation = last_predialysis_evaluation == null ? {} : last_predialysis_evaluation
945
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
922
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
946
           this.special_premission = special_premission
923
           this.special_premission = special_premission
947
           this.config = config
924
           this.config = config
948
           this.goodTypes = types
925
           this.goodTypes = types
949
-
950
-
951
           if (this.doctor_advices.length > 0) {
926
           if (this.doctor_advices.length > 0) {
952
             var group = this.newAdviceGroupObject()
927
             var group = this.newAdviceGroupObject()
953
             var initGroupBlock = function (group, advice) {
928
             var initGroupBlock = function (group, advice) {
1009
 
984
 
1010
           this.double_check = double_check == null ? {id: ''} : double_check
985
           this.double_check = double_check == null ? {id: ''} : double_check
1011
           this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
986
           this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
1012
-          this.thoroug_dialog_reset = false
1013
-          this.$nextTick(() => {
1014
-            this.thoroug_dialog_reset = true
1015
-          })
1016
-          this.last_assessment_after_dislysis =
1017
-              last_assessment_after_dislysis == null
1018
-                ? {id: ''}
1019
-                : last_assessment_after_dislysis
1020
-          this.treatment_summary =
1021
-              treatment_summary == null ? {id: ''} : treatment_summary
987
+          this.last_assessment_after_dislysis = last_assessment_after_dislysis == null ? {id: ''} : last_assessment_after_dislysis
988
+          this.treatment_summary = treatment_summary == null ? {id: ''} : treatment_summary
1022
           this.monitor_records = monitor_records == null ? [] : monitor_records
989
           this.monitor_records = monitor_records == null ? [] : monitor_records
1023
-          this.last_monitor_record =
1024
-              last_monitor_record == null
1025
-                ? this.last_monitor_record
1026
-                : last_monitor_record
1027
-          this.dialysis_order =
1028
-              dialysis_order == null ? {id: ''} : dialysis_order
990
+          this.last_monitor_record = last_monitor_record == null ? this.last_monitor_record : last_monitor_record
991
+          this.dialysis_order =  dialysis_order == null ? {id: ''} : dialysis_order
1029
           this.operators = operators
992
           this.operators = operators
1030
           this.$refs.stat_order.setAdvices(this.doctor_advices)
993
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1031
           this.$refs.monitoring.setRecords(this.monitor_records)
994
           this.$refs.monitoring.setRecords(this.monitor_records)
1032
 
995
 
996
+          // 强制刷新子组件
997
+          this.thoroug_dialog_reset = false
998
+          this.$nextTick(() => { this.thoroug_dialog_reset = true })
999
+          this.prescription_dialog_reset = false
1000
+          this.$nextTick(() => { this.prescription_dialog_reset = true })
1001
+          this.monit_dialog_reset = false;
1002
+          this.$nextTick(() => { this.monit_dialog_reset = true })
1003
+
1033
           this.title = patient.name
1004
           this.title = patient.name
1034
 
1005
 
1035
           dialysisGlobalConfig().then(rs => {
1006
           dialysisGlobalConfig().then(rs => {
1534
           this.patient = patient
1505
           this.patient = patient
1535
           this.schedual = schedual == null ? {} : schedual
1506
           this.schedual = schedual == null ? {} : schedual
1536
           this.prescription = prescription == null ? {id: ''} : prescription
1507
           this.prescription = prescription == null ? {id: ''} : prescription
1508
+
1509
+
1537
           this.solution = solution == null ? {id: ''} : solution
1510
           this.solution = solution == null ? {id: ''} : solution
1538
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
1511
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
1539
 
1512
 
1540
 
1513
 
1541
 
1514
 
1542
-          this.receiver_treatment_access =
1543
-            receiver_treatment_access == null
1544
-              ? {id: ''}
1545
-              : receiver_treatment_access
1546
-          this.predialysis_evaluation =
1547
-            predialysis_evaluation == null ? {} : predialysis_evaluation
1548
-          this.last_predialysis_evaluation =
1549
-            last_predialysis_evaluation == null
1550
-              ? {}
1551
-              : last_predialysis_evaluation
1515
+          this.receiver_treatment_access = receiver_treatment_access == null ? {id: ''} : receiver_treatment_access
1516
+          this.predialysis_evaluation = predialysis_evaluation == null ? {} : predialysis_evaluation
1517
+          this.last_predialysis_evaluation = last_predialysis_evaluation == null ? {} : last_predialysis_evaluation
1552
 
1518
 
1553
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
1519
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
1554
           this.special_premission = special_premission
1520
           this.special_premission = special_premission
1616
           }
1582
           }
1617
 
1583
 
1618
           this.double_check = double_check == null ? {id: ''} : double_check
1584
           this.double_check = double_check == null ? {id: ''} : double_check
1619
-          this.assessment_after_dislysis =
1620
-            assessment_after_dislysis == null
1621
-              ? {id: ''}
1622
-              : assessment_after_dislysis
1623
-          this.last_assessment_after_dislysis =
1624
-            last_assessment_after_dislysis == null
1625
-              ? {id: ''}
1626
-              : last_assessment_after_dislysis
1627
-          this.treatment_summary =
1628
-            treatment_summary == null ? {id: ''} : treatment_summary
1585
+          this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
1586
+          this.last_assessment_after_dislysis = last_assessment_after_dislysis == null ? {id: ''} : last_assessment_after_dislysis
1587
+          this.treatment_summary =  treatment_summary == null ? {id: ''} : treatment_summary
1629
           this.monitor_records = monitor_records == null ? [] : monitor_records
1588
           this.monitor_records = monitor_records == null ? [] : monitor_records
1630
-          this.last_monitor_record =
1631
-            last_monitor_record == null
1632
-              ? this.last_monitor_record
1633
-              : last_monitor_record
1634
-          this.dialysis_order =
1635
-            dialysis_order == null ? {id: ''} : dialysis_order
1589
+          this.last_monitor_record = last_monitor_record == null  ? this.last_monitor_record : last_monitor_record
1590
+          this.dialysis_order = dialysis_order == null ? {id: ''} : dialysis_order
1636
           this.operators = operators
1591
           this.operators = operators
1637
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1592
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1638
           this.$refs.monitoring.setRecords(this.monitor_records)
1593
           this.$refs.monitoring.setRecords(this.monitor_records)
1639
 
1594
 
1640
           this.title = patient.name
1595
           this.title = patient.name
1596
+          // 强制刷新子组件
1597
+
1598
+          this.thoroug_dialog_reset = false
1599
+          this.$nextTick(() => { this.thoroug_dialog_reset = true })
1600
+          this.prescription_dialog_reset = false
1601
+          this.$nextTick(() => { this.prescription_dialog_reset = true })
1602
+          this.monit_dialog_reset = false;
1603
+          this.$nextTick(() => { this.monit_dialog_reset = true })
1604
+
1641
         } else {
1605
         } else {
1642
           this.$toast({
1606
           this.$toast({
1643
             message: resp.msg
1607
             message: resp.msg

+ 28 - 29
src/pages/privacy/index.vue Целия файл

35
 
35
 
36
 
36
 
37
 <script>
37
 <script>
38
-    export default {
39
-        name: "privacyPolicy"
40
-
41
-    }
38
+export default {
39
+  name: "privacy"
40
+};
42
 </script>
41
 </script>
43
 
42
 
44
 <style lang="scss" scoped>
43
 <style lang="scss" scoped>
45
-  .page_privacy {
46
-    width: 100%;
47
-    margin: 0 auto;
48
-    height: 100%;
49
-    overflow-y: auto;
50
-    display: flex;
51
-    flex-direction: column;
44
+.page_privacy {
45
+  width: 100%;
46
+  margin: 0 auto;
47
+  height: 100%;
48
+  overflow-y: auto;
49
+  display: flex;
50
+  flex-direction: column;
52
   > div:last-child {
51
   > div:last-child {
53
     flex: 1;
52
     flex: 1;
54
     overflow-y: auto;
53
     overflow-y: auto;
57
     font-size: 0.45rem;
56
     font-size: 0.45rem;
58
     padding: 0.3rem 0.37rem;
57
     padding: 0.3rem 0.37rem;
59
     color: $title-color;
58
     color: $title-color;
60
-  @include align-items-center;
61
-  @include display-flex;
62
-  @include justify-content-between;
63
-  @include text-align;
59
+    @include align-items-center;
60
+    @include display-flex;
61
+    @include justify-content-between;
62
+    @include text-align;
64
     background: #fff;
63
     background: #fff;
65
-  .GoBack {
66
-    color: $main-color;
67
-    font-size: 0.45rem;
68
-  @include display-flex;
69
-  .iconfont {
70
-    color: $main-color;
71
-    font-size: 0.5rem;
72
-    margin-top: 1px;
73
-  @media only screen and (min-width: 768px) {
74
-    margin-top: 3px;
75
-  }
76
-  }
77
-  }
64
+    .GoBack {
65
+      color: $main-color;
66
+      font-size: 0.45rem;
67
+      @include display-flex;
68
+      .iconfont {
69
+        color: $main-color;
70
+        font-size: 0.5rem;
71
+        margin-top: 1px;
72
+        @media only screen and (min-width: 768px) {
73
+          margin-top: 3px;
74
+        }
75
+      }
76
+    }
78
   }
77
   }
79
   .name {
78
   .name {
80
     margin-right: 1.3rem;
79
     margin-right: 1.3rem;
90
     width: 90%;
89
     width: 90%;
91
     margin: 0 auto;
90
     margin: 0 auto;
92
   }
91
   }
93
-  }
92
+}
94
 </style>
93
 </style>

+ 9 - 9
src/permission.js Целия файл

1
-import router from './router'
2
-import store from './store'
1
+import router from "./router";
2
+import store from "./store";
3
 
3
 
4
-const loginWhiteList = ['/'] // 登录验证白名单
4
+const loginWhiteList = ["/", "/privacy", "/forgetPassword"]; // 登录验证白名单
5
 
5
 
6
 router.beforeEach((to, from, next) => {
6
 router.beforeEach((to, from, next) => {
7
   // 线上注释
7
   // 线上注释
8
-//   next()
9
-//   return
8
+  //   next()
9
+  //   return
10
 
10
 
11
   if (store.getters.user.user.id == 0) {
11
   if (store.getters.user.user.id == 0) {
12
     if (loginWhiteList.indexOf(to.path) !== -1) {
12
     if (loginWhiteList.indexOf(to.path) !== -1) {
13
-      next()
13
+      next();
14
     } else {
14
     } else {
15
-      next({ path: '/'})
15
+      next({ path: "/" });
16
     }
16
     }
17
   } else {
17
   } else {
18
-    next()
18
+    next();
19
   }
19
   }
20
-})
20
+});

+ 1 - 1
src/router/index.js Целия файл

77
     },
77
     },
78
     {
78
     {
79
       path: "/privacy",
79
       path: "/privacy",
80
-      name: "privacyPolicy",
80
+      name: "privacy",
81
       component: () => import("@/pages/privacy/index")
81
       component: () => import("@/pages/privacy/index")
82
     }
82
     }
83
   ]
83
   ]

+ 1 - 0
src/styles/style.scss Целия файл

922
   }
922
   }
923
   @media only screen and (min-width: 415px) and (max-width: 767px) {
923
   @media only screen and (min-width: 415px) and (max-width: 767px) {
924
     padding-top: 186px;
924
     padding-top: 186px;
925
+    padding-left: 0.3rem;
925
   }
926
   }
926
 }
927
 }
927
 #app {
928
 #app {