Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx 5 years ago
parent
commit
015d2b2b69
37 changed files with 1935 additions and 1385 deletions
  1. 8 0
      src/api/login.js
  2. 8 5
      src/api/patient/patient.js
  3. 36 38
      src/kya_pages/login/login.vue
  4. 28 0
      src/libs/functionRem.js
  5. 11 2
      src/pages/allCourseManagement/index.vue
  6. 10 2
      src/pages/allDryWeight/index.vue
  7. 66 9
      src/pages/doctorAdvice/components/CourseManagement.vue
  8. 73 9
      src/pages/doctorAdvice/components/DialysisRecord.vue
  9. 60 9
      src/pages/doctorAdvice/components/DoctorManagement.vue
  10. 49 76
      src/pages/doctorAdvice/components/DryWeight.vue
  11. 75 10
      src/pages/doctorAdvice/components/Education.vue
  12. 73 9
      src/pages/doctorAdvice/components/Inspection.vue
  13. 39 5
      src/pages/doctorAdvice/components/LongDialysis.vue
  14. 75 10
      src/pages/doctorAdvice/components/RescueRecord.vue
  15. 111 48
      src/pages/doctorAdvice/components/Scheduling.vue
  16. 23 5
      src/pages/doctorAdvice/components/deviceManagement.vue
  17. 23 5
      src/pages/doctorAdvice/components/medicationPlan.vue
  18. 23 5
      src/pages/doctorAdvice/components/recoverNotes.vue
  19. 23 5
      src/pages/doctorAdvice/components/signsRecord.vue
  20. 185 187
      src/pages/doctorAdvice/index.vue
  21. 30 1
      src/pages/home/createOrg/index.vue
  22. 34 36
      src/pages/home/forgetPassword/index.vue
  23. 3 0
      src/pages/home/index.vue
  24. 73 72
      src/pages/home/login.vue
  25. 38 38
      src/pages/home/noJoinedGroup/index.vue
  26. 53 59
      src/pages/home/noPassword/index.vue
  27. 38 36
      src/pages/home/register/name.vue
  28. 26 23
      src/pages/home/register/register.vue
  29. 41 35
      src/pages/home/verifyToken.vue
  30. 17 33
      src/pages/homeIndex/index.vue
  31. 11 23
      src/pages/patientManagement/index.vue
  32. 5 20
      src/pages/patientManagement/patientManagement.vue
  33. 1 3
      src/pages/patients/addPatient.vue
  34. 552 558
      src/pages/patients/editPatient.vue
  35. 2 2
      src/permission.js
  36. 10 7
      src/router/index.js
  37. 2 0
      src/styles/newStyle.scss

+ 8 - 0
src/api/login.js View File

@@ -87,3 +87,11 @@ export function login() {
87 87
 
88 88
 
89 89
 
90
+
91
+export function createOrg(params) {
92
+  return request({
93
+    url: '/m/api/org/create',
94
+    method: 'post',
95
+    params:params,
96
+  })
97
+}

+ 8 - 5
src/api/patient/patient.js View File

@@ -229,11 +229,6 @@ export function getDryWeightDetail(id, params) {
229 229
 }
230 230
 
231 231
 export function GetLongDialysisRecord(id, limit, page, startime, endtime) {
232
-  console.log('id', id)
233
-  console.log('limit', limit)
234
-  console.log('page', page)
235
-  console.log('startime', startime)
236
-  console.log('endtime', endtime)
237 232
   const params = {
238 233
     id: id,
239 234
     limit: limit,
@@ -247,3 +242,11 @@ export function GetLongDialysisRecord(id, limit, page, startime, endtime) {
247 242
     params: params
248 243
   })
249 244
 }
245
+
246
+export function GetPatientDetail(id, params) {
247
+  return request({
248
+    url: '/m/api/patient/getpatientdetail?id=' + id,
249
+    method: 'get',
250
+    params: params
251
+  })
252
+}

+ 36 - 38
src/kya_pages/login/login.vue View File

@@ -31,7 +31,7 @@
31 31
       </div>
32 32
       <p class="forget" @click="toForgetPassword()">忘记密码?</p>
33 33
       <div class="login" @click="ToLogin()" v-show="loginshow">登录</div>
34
-      <div class="login3"  @click="ToLogin()" v-show="loginshowtwo">登录</div>
34
+      <div class="login3" @click="ToLogin()" v-show="loginshowtwo">登录</div>
35 35
       <div class="login2">
36 36
         <p @click="noPassword()">免密码登录</p>
37 37
         <p class="register" @click="ToRegister()">快速注册</p>
@@ -42,33 +42,33 @@
42 42
 
43 43
 <script>
44 44
 // import { ToLogin } from "@/api/micro/micro";
45
-import { hex_md5 } from '@/utils/md5'
46
-import { checkMobile } from '@/utils/tools'
45
+import { hex_md5 } from "@/utils/md5";
46
+import { checkMobile } from "@/utils/tools";
47 47
 export default {
48
-  data () {
48
+  data() {
49 49
     var checkMobileRule = (rule, value, callback) => {
50 50
       if (!checkMobile(value)) {
51
-        callback(new Error('请填写正确的手机号'))
51
+        callback(new Error("请填写正确的手机号"));
52 52
       } else {
53
-        callback()
53
+        callback();
54 54
       }
55
-    }
55
+    };
56 56
     return {
57
-      tel: '',
58
-      psd: '',
57
+      tel: "",
58
+      psd: "",
59 59
       LoginForm: {
60
-        tel: '',
61
-        psd: ''
60
+        tel: "",
61
+        psd: ""
62 62
       },
63 63
       loginshow: false,
64 64
       loginshowtwo: true,
65 65
       rules: {
66 66
         tel: [
67
-          { required: true, message: '手机号码不能为空' },
67
+          { required: true, message: "手机号码不能为空" },
68 68
           { validator: checkMobileRule }
69 69
         ]
70 70
       }
71
-    }
71
+    };
72 72
   },
73 73
   methods: {
74 74
     // ToLogin() {
@@ -90,45 +90,43 @@ export default {
90 90
     //     this.$message.error("账号或密码错误");
91 91
     //   }
92 92
     // });
93
-  //  },
94
-    watchNum () {
95
-      if (this.LoginForm.tel === '' || this.LoginForm.psd === '') {
96
-        this.loginshow = false
97
-        this.loginshowtwo = true
93
+    //  },
94
+    watchNum() {
95
+      if (this.LoginForm.tel === "" || this.LoginForm.psd === "") {
96
+        this.loginshow = false;
97
+        this.loginshowtwo = true;
98 98
       } else {
99
-        this.loginshow = true
100
-        this.loginshowtwo = false
99
+        this.loginshow = true;
100
+        this.loginshowtwo = false;
101 101
       }
102 102
       if (this.LoginForm.psd.length < 6) {
103
-        this.loginshow = false
104
-        this.loginshowtwo = true
103
+        this.loginshow = false;
104
+        this.loginshowtwo = true;
105 105
       }
106 106
       if (this.LoginForm.psd.length > 6) {
107
-        this.loginshow = true
108
-        this.loginshowtwo = false
107
+        this.loginshow = true;
108
+        this.loginshowtwo = false;
109 109
       }
110 110
     },
111
-    ToLogin () {
112
-
113
-      this.$router.push({ path: '/myIndex'})
114
-
111
+    ToLogin() {
112
+      this.$router.push({ path: "/homeIndex" });
115 113
     },
116
-    ToRegister () {
117
-      this.$router.push('/register')
114
+    ToRegister() {
115
+      this.$router.push("/register");
118 116
     },
119
-    toForgetPassword () {
120
-      this.$router.push('/forgetpassword')
117
+    toForgetPassword() {
118
+      this.$router.push("/forgetpassword");
121 119
     },
122
-    noPassword () {
123
-      this.$router.push('/nopassword')
120
+    noPassword() {
121
+      this.$router.push("/nopassword");
124 122
     },
125 123
 
126
-    change (val) {
127
-      this.LoginForm.tel = val.replace(/[^0-9]+/g, '')
124
+    change(val) {
125
+      this.LoginForm.tel = val.replace(/[^0-9]+/g, "");
128 126
     }
129 127
   },
130
-  created () {}
131
-}
128
+  created() {}
129
+};
132 130
 </script>
133 131
 
134 132
 <style lang="scss" scoped>

+ 28 - 0
src/libs/functionRem.js View File

@@ -0,0 +1,28 @@
1
+export function setRem() {
2
+  const baseSize = 32;
3
+  // 设置 rem 函数
4
+  function setRem() {
5
+    const scale = document.documentElement.clientWidth / 750;
6
+    document.documentElement.style.fontSize =
7
+      baseSize * Math.min(scale, 2) + "px";
8
+    //   // 320 默认大小16px; 320px = 20rem ;每个元素px基础上/16
9
+    //   let htmlWidth =
10
+    //     document.documentElement.clientWidth || document.body.clientWidth;
11
+    //   //得到html的Dom元素
12
+    //   let htmlDom = document.getElementsByTagName("html")[0];
13
+    //   //设置根元素字体大小
14
+    //   htmlDom.style.fontSize = htmlWidth / 23.4375 + "px";
15
+  }
16
+  // 初始化
17
+  setRem();
18
+  // 改变窗口大小时重新设置 rem
19
+  window.onresize = function() {
20
+    setRem();
21
+  };
22
+}
23
+
24
+export function setHeight() {
25
+  document.documentElement.style.height = 100 + "%";
26
+  document.body.style.height = 100 + "%";
27
+  document.body.style.color = "#000";
28
+}

+ 11 - 2
src/pages/allCourseManagement/index.vue View File

@@ -27,8 +27,10 @@
27 27
   </div>
28 28
 </template>
29 29
 <script>
30
+import "../../styles/resetStyle.scss";
30 31
 import { getCouseManagementDetail } from "@/api/patient/patient";
31 32
 import { uParseTime } from "@/utils/tools";
33
+import { setRem, setHeight } from "@/libs/functionRem";
32 34
 export default {
33 35
   data() {
34 36
     return {
@@ -39,7 +41,8 @@ export default {
39 41
         title: "",
40 42
         user_name: ""
41 43
       },
42
-      id: 0
44
+      id: 0,
45
+      active: 0
43 46
     };
44 47
   },
45 48
   methods: {
@@ -61,10 +64,16 @@ export default {
61 64
       return uParseTime(time, "{y}-{m}-{d}");
62 65
     },
63 66
     toReturn() {
64
-      this.$router.push("/patientdetail?patientid=" + this.id);
67
+      this.$router.push(
68
+        "/patientdetail?patientid=" + this.id + "&active=" + this.active
69
+      );
65 70
     }
66 71
   },
67 72
   created() {
73
+    console.log(this.$route.query);
74
+    this.active = parseInt(this.$route.query.active);
75
+    setRem();
76
+    setHeight();
68 77
     var id = this.$route.query.id;
69 78
     this.getCouseManagementDetail(id);
70 79
     var patientid = this.$route.query.patientid;

+ 10 - 2
src/pages/allDryWeight/index.vue View File

@@ -21,13 +21,16 @@
21 21
   </div>
22 22
 </template>
23 23
 <script>
24
+import "../../styles/resetStyle.scss";
24 25
 import { getDryWeightDetail } from "@/api/patient/patient";
25 26
 import { uParseTime } from "@/utils/tools";
27
+import { setRem, setHeight } from "@/libs/functionRem";
26 28
 export default {
27 29
   data() {
28 30
     return {
29 31
       drydetail: {},
30
-      patientid: 0
32
+      patientid: 0,
33
+      active: 0
31 34
     };
32 35
   },
33 36
   methods: {
@@ -45,10 +48,15 @@ export default {
45 48
       return uParseTime(time, "{y}-{m}-{d}");
46 49
     },
47 50
     toReturn() {
48
-      this.$router.push("/patientdetail?patientid=" + this.patientid);
51
+      this.$router.push(
52
+        "/patientdetail?patientid=" + this.patientid + "&active=" + this.active
53
+      );
49 54
     }
50 55
   },
51 56
   created() {
57
+    this.active = parseInt(this.$route.query.active);
58
+    setRem();
59
+    setHeight();
52 60
     var id = this.$route.query.id;
53 61
     console.log("id", id);
54 62
     var patientid = this.$route.query.patientid;

+ 66 - 9
src/pages/doctorAdvice/components/CourseManagement.vue View File

@@ -15,9 +15,18 @@
15 15
           </div>
16 16
         </div>
17 17
       </div>
18
-      <div class="adviceBox">
19
-        <van-list v-model="loading" finished-text="没有更多了" @load="onLoad" :finished="finished">
20
-          <div class="adviceOne" v-for="(item, index) in this.courseManagement" :key="item.id">
18
+      <div class="adviceBox" v-show="showOne">
19
+        <van-list
20
+          v-model="loading"
21
+          finished-text="没有更多了"
22
+          @load="onLoad"
23
+          :finished="finished"
24
+        >
25
+          <div
26
+            class="adviceOne"
27
+            v-for="(item, index) in this.courseManagement"
28
+            :key="item.id"
29
+          >
21 30
             <div class="adviceTitle">
22 31
               <p>{{ getTime(item.record_time) }}</p>
23 32
               <van-icon
@@ -43,6 +52,9 @@
43 52
           </div>
44 53
         </van-list>
45 54
       </div>
55
+      <div class="noimgBox" v-show="showTwo">
56
+        <img src="../../../assets/images/none.png" alt />
57
+      </div>
46 58
     </div>
47 59
     <div class="add">
48 60
       <div style="display: flex;align-items: center;">
@@ -52,10 +64,23 @@
52 64
 
53 65
     <!-- 弹出层 -->
54 66
     <div>
55
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
56
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
67
+      <van-popup
68
+        v-model="typeShow"
69
+        position="bottom"
70
+        :style="{ height: '40%' }"
71
+      >
72
+        <van-picker
73
+          show-toolbar
74
+          :columns="columns"
75
+          @cancel="onCancel"
76
+          @confirm="onConfirm"
77
+        />
57 78
       </van-popup>
58
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
79
+      <van-popup
80
+        v-model="startShow"
81
+        position="bottom"
82
+        :style="{ height: '40%' }"
83
+      >
59 84
         <van-datetime-picker
60 85
           v-model="currentDate"
61 86
           type="date"
@@ -88,7 +113,11 @@
88 113
 </template>
89 114
 
90 115
 <script>
91
-import { getCourseManagement, DeleteCouseManage } from "@/api/patient/patient";
116
+import {
117
+  getCourseManagement,
118
+  DeleteCouseManage,
119
+  getPatientDetail
120
+} from "@/api/patient/patient";
92 121
 import { uParseTime } from "@/utils/tools";
93 122
 import Vue from "vue";
94 123
 import { Dialog } from "vant";
@@ -118,7 +147,9 @@ export default {
118 147
       patientid: 0,
119 148
       list: [],
120 149
       patient_id: 0,
121
-      patient_index: 0
150
+      patient_index: 0,
151
+      showOne: true,
152
+      showTwo: false
122 153
     };
123 154
   },
124 155
   methods: {
@@ -226,6 +257,23 @@ export default {
226 257
     },
227 258
     toCourseDetail(id) {
228 259
       this.$router.push("/coursedetail?id=" + id);
260
+    },
261
+    getPatientDetail(patientid) {
262
+      getPatientDetail(patientid).then(response => {
263
+        if (response.data.state === 1) {
264
+          var patientDetail = response.data.data.patientDetail;
265
+          if (patientDetail.blood_patients == 0) {
266
+            this.showOne = false;
267
+            this.showTwo = true;
268
+          }
269
+          if (patientDetail.blood_patients == 1) {
270
+            this.showOne = true;
271
+            this.showTwo = false;
272
+          }
273
+          console.log("病人详情", patientDetail);
274
+          this.patientName = patientDetail.name;
275
+        }
276
+      });
229 277
     }
230 278
   },
231 279
   created() {
@@ -233,6 +281,7 @@ export default {
233 281
     this.patientid = patientid;
234 282
     console.log("干体重id", patientid);
235 283
     this.getCourseManagement(patientid);
284
+    this.getPatientDetail(patientid);
236 285
   }
237 286
 };
238 287
 </script>
@@ -241,7 +290,6 @@ export default {
241 290
 .courseManagement {
242 291
   height: 100%;
243 292
   overflow-y: auto;
244
-  background: #fff;
245 293
   .toolBox {
246 294
     display: flex;
247 295
     height: 3.125rem;
@@ -316,6 +364,15 @@ export default {
316 364
     color: #5b98ff;
317 365
     margin-top: 0.625rem;
318 366
   }
367
+  .noimgBox {
368
+    margin-top: 40%;
369
+    img {
370
+      width: 6.25rem;
371
+      height: 6.25rem;
372
+      margin: 0 auto;
373
+      display: block;
374
+    }
375
+  }
319 376
   .add {
320 377
     position: fixed;
321 378
     bottom: 0;

+ 73 - 9
src/pages/doctorAdvice/components/DialysisRecord.vue View File

@@ -21,12 +21,22 @@
21 21
           </div>
22 22
         </div>
23 23
       </div>
24
-      <div class="adviceBox">
25
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
24
+
25
+      <div class="adviceBox" v-show="showOne">
26
+        <van-list
27
+          v-model="loading"
28
+          :finished="finished"
29
+          finished-text="没有更多了"
30
+          @load="onLoad"
31
+        >
26 32
           <div class="adviceOne" v-for="item in 3" :key="index">
27 33
             <div class="adviceTitle">
28 34
               <p>2019.09.01</p>
29
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
35
+              <van-icon
36
+                class="ellipsis"
37
+                name="ellipsis"
38
+                @click="newShow = true"
39
+              />
30 40
             </div>
31 41
             <div class="orderContent">
32 42
               <p>透析模式:HD</p>
@@ -42,6 +52,10 @@
42 52
           </div>
43 53
         </van-list>
44 54
       </div>
55
+
56
+      <div class="noimgBox" v-show="showTwo">
57
+        <img src="../../../assets/images/none.png" alt />
58
+      </div>
45 59
     </div>
46 60
     <div class="add">
47 61
       <div style="display: flex;align-items: center;">
@@ -51,10 +65,23 @@
51 65
 
52 66
     <!-- 弹出层 -->
53 67
     <div>
54
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
55
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
68
+      <van-popup
69
+        v-model="typeShow"
70
+        position="bottom"
71
+        :style="{ height: '40%' }"
72
+      >
73
+        <van-picker
74
+          show-toolbar
75
+          :columns="columns"
76
+          @cancel="onCancel"
77
+          @confirm="onConfirm"
78
+        />
56 79
       </van-popup>
57
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
80
+      <van-popup
81
+        v-model="startShow"
82
+        position="bottom"
83
+        :style="{ height: '40%' }"
84
+      >
58 85
         <van-datetime-picker
59 86
           v-model="currentDate"
60 87
           type="date"
@@ -74,12 +101,18 @@
74 101
           @cancel="endShow = false"
75 102
         />
76 103
       </van-popup>
77
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
104
+      <van-action-sheet
105
+        v-model="newShow"
106
+        :actions="actions"
107
+        cancel-text="取消"
108
+        @cancel="onCancel"
109
+      />
78 110
     </div>
79 111
   </div>
80 112
 </template>
81 113
 
82 114
 <script>
115
+import { getPatientDetail } from "@/api/patient/patient";
83 116
 export default {
84 117
   data() {
85 118
     return {
@@ -105,7 +138,9 @@ export default {
105 138
       minDate: new Date(1970, 0, 1),
106 139
       maxDate: new Date(2025, 10, 1),
107 140
       currentDate: new Date(),
108
-      actions: [{ name: "编辑" }, { name: "删除" }]
141
+      actions: [{ name: "编辑" }, { name: "删除" }],
142
+      showOne: true,
143
+      showTwo: false
109 144
     };
110 145
   },
111 146
   methods: {
@@ -145,7 +180,28 @@ export default {
145 180
 
146 181
       this.endTime = `${year}-${month}-${day}`;
147 182
       this.endShow = false;
183
+    },
184
+    getPatientDetail(patientid) {
185
+      getPatientDetail(patientid).then(response => {
186
+        if (response.data.state === 1) {
187
+          var patientDetail = response.data.data.patientDetail;
188
+          if (patientDetail.blood_patients == 0) {
189
+            this.showOne = false;
190
+            this.showTwo = true;
191
+          }
192
+          if (patientDetail.blood_patients == 1) {
193
+            this.showOne = true;
194
+            this.showTwo = false;
195
+          }
196
+          console.log("病人详情", patientDetail);
197
+          this.patientName = patientDetail.name;
198
+        }
199
+      });
148 200
     }
201
+  },
202
+  created() {
203
+    var patientid = this.$route.query.patientid;
204
+    this.getPatientDetail(patientid);
149 205
   }
150 206
 };
151 207
 </script>
@@ -154,7 +210,6 @@ export default {
154 210
 .DialysisRecord {
155 211
   height: 100%;
156 212
   overflow-y: auto;
157
-  background: #fff;
158 213
   .toolBox {
159 214
     display: flex;
160 215
     height: 3.125rem;
@@ -221,6 +276,15 @@ export default {
221 276
     color: #5b98ff;
222 277
     margin-top: 0.625rem;
223 278
   }
279
+  .noimgBox {
280
+    margin-top: 40%;
281
+    img {
282
+      width: 6.25rem;
283
+      height: 6.25rem;
284
+      margin: 0 auto;
285
+      display: block;
286
+    }
287
+  }
224 288
   .add {
225 289
     position: fixed;
226 290
     bottom: 0;

+ 60 - 9
src/pages/doctorAdvice/components/DoctorManagement.vue View File

@@ -21,12 +21,22 @@
21 21
           </div>
22 22
         </div>
23 23
       </div>
24
-      <div class="adviceBox">
25
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
24
+
25
+      <div class="adviceBox" v-show="showOne">
26
+        <van-list
27
+          v-model="loading"
28
+          :finished="finished"
29
+          finished-text="没有更多了"
30
+          @load="onLoad"
31
+        >
26 32
           <div class="adviceOne" v-for="item in 3" :key="item">
27 33
             <div class="adviceTitle">
28 34
               <p>2019.09.01</p>
29
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
35
+              <van-icon
36
+                class="ellipsis"
37
+                name="ellipsis"
38
+                @click="newShow = true"
39
+              />
30 40
             </div>
31 41
             <div class="statOrder">
32 42
               <div class="statOrderTitle">
@@ -62,6 +72,10 @@
62 72
           </div>
63 73
         </van-list>
64 74
       </div>
75
+
76
+      <div class="noimgBox" v-show="showTwo">
77
+        <img src="../../../assets/images/none.png" alt />
78
+      </div>
65 79
     </div>
66 80
     <div class="add">
67 81
       <div style="display: flex;align-items: center;">
@@ -71,11 +85,24 @@
71 85
 
72 86
     <!-- 弹出层 -->
73 87
     <div>
74
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
75
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
88
+      <van-popup
89
+        v-model="typeShow"
90
+        position="bottom"
91
+        :style="{ height: '40%' }"
92
+      >
93
+        <van-picker
94
+          show-toolbar
95
+          :columns="columns"
96
+          @cancel="onCancel"
97
+          @confirm="onConfirm"
98
+        />
76 99
       </van-popup>
77 100
 
78
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
101
+      <van-popup
102
+        v-model="startShow"
103
+        position="bottom"
104
+        :style="{ height: '40%' }"
105
+      >
79 106
         <van-datetime-picker
80 107
           v-model="currentDate"
81 108
           type="date"
@@ -95,7 +122,12 @@
95 122
           @cancel="endShow = false"
96 123
         />
97 124
       </van-popup>
98
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
125
+      <van-action-sheet
126
+        v-model="newShow"
127
+        :actions="actions"
128
+        cancel-text="取消"
129
+        @cancel="onCancel"
130
+      />
99 131
     </div>
100 132
   </div>
101 133
 </template>
@@ -128,7 +160,9 @@ export default {
128 160
         limit: 10,
129 161
         page: 1
130 162
       },
131
-      total: ""
163
+      total: "",
164
+      showOne: true,
165
+      showTwo: false
132 166
     };
133 167
   },
134 168
   methods: {
@@ -204,6 +238,14 @@ export default {
204 238
       getPatientDetail(patientid).then(response => {
205 239
         if (response.data.state === 1) {
206 240
           var patientDetail = response.data.data.patientDetail;
241
+          if (patientDetail.blood_patients == 0) {
242
+            this.showOne = false;
243
+            this.showTwo = true;
244
+          }
245
+          if (patientDetail.blood_patients == 1) {
246
+            this.showOne = true;
247
+            this.showTwo = false;
248
+          }
207 249
           console.log("病人详情", patientDetail);
208 250
           this.patientName = patientDetail.name;
209 251
         }
@@ -236,7 +278,7 @@ export default {
236 278
     justify-content: space-around;
237 279
     align-items: center;
238 280
     .toolOne {
239
-      width: 5.625rem;
281
+      width: 6.25rem;
240 282
       height: 1.875rem;
241 283
       background: rgba(246, 246, 246, 1);
242 284
       border-radius: 5px;
@@ -304,6 +346,15 @@ export default {
304 346
     color: #5b98ff;
305 347
     margin-top: 0.625rem;
306 348
   }
349
+  .noimgBox {
350
+    margin-top: 40%;
351
+    img {
352
+      width: 6.25rem;
353
+      height: 6.25rem;
354
+      margin: 0 auto;
355
+      display: block;
356
+    }
357
+  }
307 358
   .add {
308 359
     position: fixed;
309 360
     bottom: 0;

+ 49 - 76
src/pages/doctorAdvice/components/DryWeight.vue View File

@@ -15,8 +15,14 @@
15 15
           </div>
16 16
         </div>
17 17
       </div>
18
-      <div class="adviceBox">
19
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
18
+
19
+      <div class="adviceBox" v-show="showOne">
20
+        <van-list
21
+          v-model="loading"
22
+          :finished="finished"
23
+          finished-text="没有更多了"
24
+          @load="onLoad"
25
+        >
20 26
           <div
21 27
             class="adviceOne"
22 28
             v-for="(item, index) in dryweight"
@@ -24,19 +30,11 @@
24 30
           >
25 31
             <div class="adviceTitle">
26 32
               <p>{{ getTime(item.ctime) }}</p>
27
-<<<<<<< .mine
28
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
29
-
30
-
31
-
32
-
33
-=======
34 33
               <van-icon
35 34
                 class="ellipsis"
36 35
                 name="ellipsis"
37
-                @click="DeleteDryWeight(item.id, index)"
36
+                @click="DeleteDryWeightOne(item.id, index)"
38 37
               />
39
->>>>>>> .theirs
40 38
             </div>
41 39
             <div class="statOrder">
42 40
               <div class="weightContent">
@@ -51,6 +49,10 @@
51 49
           </div>
52 50
         </van-list>
53 51
       </div>
52
+
53
+      <div class="noimgBox" v-show="showTwo">
54
+        <img src="../../../assets/images/none.png" alt />
55
+      </div>
54 56
     </div>
55 57
     <div class="add">
56 58
       <div style="display: flex;align-items: center;">
@@ -60,64 +62,6 @@
60 62
 
61 63
     <!-- 弹出层 -->
62 64
     <div>
63
-<<<<<<< .mine
64
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
65
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
66
-      </van-popup>
67
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
68
-        <van-datetime-picker
69
-          v-model="currentDate"
70
-          type="date"
71
-          :min-date="minDate"
72
-          :max-date="maxDate"
73
-          @confirm="getstartTime"
74
-          @cancel="startShow = false"
75
-        />
76
-      </van-popup>
77
-      <van-popup v-model="endShow" position="bottom" :style="{ height: '40%' }">
78
-        <van-datetime-picker
79
-          v-model="currentDate"
80
-          type="date"
81
-          :min-date="minDate"
82
-          :max-date="maxDate"
83
-          @confirm="getstartTime2"
84
-          @cancel="endShow = false"
85
-        />
86
-      </van-popup>
87
-=======
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
->>>>>>> .theirs
112
-<<<<<<< .mine
113
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
114
-
115
-
116
-
117
-
118
-
119
-
120
-=======
121 65
       <van-action-sheet
122 66
         v-model="newShow"
123 67
         :actions="actions"
@@ -125,13 +69,16 @@
125 69
         @cancel="onCancel"
126 70
         @select="onDeleteConfirm"
127 71
       />
128
->>>>>>> .theirs
129 72
     </div>
130 73
   </div>
131 74
 </template>
132 75
 
133 76
 <script>
134
-import { getDryWeight, DeleteDryWeight } from "@/api/patient/patient";
77
+import {
78
+  getDryWeight,
79
+  DeleteDryWeight,
80
+  getPatientDetail
81
+} from "@/api/patient/patient";
135 82
 import { uParseTime } from "@/utils/tools";
136 83
 import { Dialog } from "vant";
137 84
 const moment = require("moment");
@@ -162,7 +109,9 @@ export default {
162 109
       finished: false,
163 110
       typeShow: false,
164 111
       dry_id: 0,
165
-      dry_index: 0
112
+      dry_index: 0,
113
+      showOne: true,
114
+      showTwo: false
166 115
     };
167 116
   },
168 117
   methods: {
@@ -253,12 +202,10 @@ export default {
253 202
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
254 203
       return uParseTime(time, "{y}-{m}-{d}");
255 204
     },
256
-    DeleteDryWeight(id, index) {
205
+    DeleteDryWeightOne(id, index) {
257 206
       this.newShow = true;
258 207
       this.dry_id = id;
259 208
       this.dry_index = index;
260
-      console.log("id", this.dry_id);
261
-      console.log("下标", this.dry_index);
262 209
     },
263 210
     onDeleteConfirm(value) {
264 211
       console.log("value是多少", value);
@@ -284,6 +231,23 @@ export default {
284 231
     getDryWeightDetail(id) {
285 232
       var patientid = this.$route.query.patientid;
286 233
       this.$router.push("/dryweight?id=" + id + "&patientid=" + patientid);
234
+    },
235
+    getPatientDetail(patientid) {
236
+      getPatientDetail(patientid).then(response => {
237
+        if (response.data.state === 1) {
238
+          var patientDetail = response.data.data.patientDetail;
239
+          if (patientDetail.blood_patients == 0) {
240
+            this.showOne = false;
241
+            this.showTwo = true;
242
+          }
243
+          if (patientDetail.blood_patients == 1) {
244
+            this.showOne = true;
245
+            this.showTwo = false;
246
+          }
247
+          console.log("病人详情", patientDetail);
248
+          this.patientName = patientDetail.name;
249
+        }
250
+      });
287 251
     }
288 252
   },
289 253
   created() {
@@ -291,6 +255,7 @@ export default {
291 255
     console.log("干体重id", patientid);
292 256
     this.getDryWeight(patientid);
293 257
     this.patient_id = patientid;
258
+    this.getPatientDetail(patientid);
294 259
   }
295 260
 };
296 261
 </script>
@@ -299,7 +264,6 @@ export default {
299 264
 .DryWeight {
300 265
   height: 100%;
301 266
   overflow-y: auto;
302
-  background: #fff;
303 267
   .toolBox {
304 268
     display: flex;
305 269
     height: 3.125rem;
@@ -377,6 +341,15 @@ export default {
377 341
     color: #5b98ff;
378 342
     margin-top: 0.625rem;
379 343
   }
344
+  .noimgBox {
345
+    margin-top: 40%;
346
+    img {
347
+      width: 6.25rem;
348
+      height: 6.25rem;
349
+      margin: 0 auto;
350
+      display: block;
351
+    }
352
+  }
380 353
   .add {
381 354
     position: fixed;
382 355
     bottom: 0;

+ 75 - 10
src/pages/doctorAdvice/components/Education.vue View File

@@ -15,14 +15,26 @@
15 15
           </div>
16 16
         </div>
17 17
       </div>
18
-      <div class="adviceBox">
19
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
18
+      <div class="adviceBox" v-show="showOne">
19
+        <van-list
20
+          v-model="loading"
21
+          :finished="finished"
22
+          finished-text="没有更多了"
23
+          @load="onLoad"
24
+        >
20 25
           <div class="adviceOne" v-for="item in 3" :key="index">
21 26
             <div class="adviceTitle">
22 27
               <p>2019.09.01</p>
23
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
28
+              <van-icon
29
+                class="ellipsis"
30
+                name="ellipsis"
31
+                @click="newShow = true"
32
+              />
24 33
             </div>
25 34
             <div class="statOrder">
35
+              <div class="statOrderTitle">
36
+                <span>宣教标题</span>
37
+              </div>
26 38
               <div class="orderContent">
27 39
                 <p>
28 40
                   病历书写基本规范2010》第二十二条规定:“病程记录
@@ -40,6 +52,10 @@
40 52
           </div>
41 53
         </van-list>
42 54
       </div>
55
+
56
+      <div class="noimgBox" v-show="showTwo">
57
+        <img src="../../../assets/images/none.png" alt />
58
+      </div>
43 59
     </div>
44 60
     <div class="add">
45 61
       <div style="display: flex;align-items: center;">
@@ -49,10 +65,23 @@
49 65
 
50 66
     <!-- 弹出层 -->
51 67
     <div>
52
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
53
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
68
+      <van-popup
69
+        v-model="typeShow"
70
+        position="bottom"
71
+        :style="{ height: '40%' }"
72
+      >
73
+        <van-picker
74
+          show-toolbar
75
+          :columns="columns"
76
+          @cancel="onCancel"
77
+          @confirm="onConfirm"
78
+        />
54 79
       </van-popup>
55
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
80
+      <van-popup
81
+        v-model="startShow"
82
+        position="bottom"
83
+        :style="{ height: '40%' }"
84
+      >
56 85
         <van-datetime-picker
57 86
           v-model="currentDate"
58 87
           type="date"
@@ -72,12 +101,18 @@
72 101
           @cancel="endShow = false"
73 102
         />
74 103
       </van-popup>
75
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
104
+      <van-action-sheet
105
+        v-model="newShow"
106
+        :actions="actions"
107
+        cancel-text="取消"
108
+        @cancel="onCancel"
109
+      />
76 110
     </div>
77 111
   </div>
78 112
 </template>
79 113
 
80 114
 <script>
115
+import { getPatientDetail } from "@/api/patient/patient";
81 116
 export default {
82 117
   data() {
83 118
     return {
@@ -89,7 +124,9 @@ export default {
89 124
       minDate: new Date(1970, 0, 1),
90 125
       maxDate: new Date(2025, 10, 1),
91 126
       currentDate: new Date(),
92
-      actions: [{ name: "编辑" }, { name: "删除" }]
127
+      actions: [{ name: "编辑" }, { name: "删除" }],
128
+      showOne: true,
129
+      showTwo: false
93 130
     };
94 131
   },
95 132
   methods: {
@@ -129,7 +166,28 @@ export default {
129 166
 
130 167
       this.endTime = `${year}-${month}-${day}`;
131 168
       this.endShow = false;
169
+    },
170
+    getPatientDetail(patientid) {
171
+      getPatientDetail(patientid).then(response => {
172
+        if (response.data.state === 1) {
173
+          var patientDetail = response.data.data.patientDetail;
174
+          if (patientDetail.blood_patients == 0) {
175
+            this.showOne = false;
176
+            this.showTwo = true;
177
+          }
178
+          if (patientDetail.blood_patients == 1) {
179
+            this.showOne = true;
180
+            this.showTwo = false;
181
+          }
182
+          console.log("病人详情", patientDetail);
183
+          this.patientName = patientDetail.name;
184
+        }
185
+      });
132 186
     }
187
+  },
188
+  created() {
189
+    var patientid = this.$route.query.patientid;
190
+    this.getPatientDetail(patientid);
133 191
   }
134 192
 };
135 193
 </script>
@@ -138,7 +196,6 @@ export default {
138 196
 .education {
139 197
   height: 100%;
140 198
   overflow-y: auto;
141
-  background: #fff;
142 199
   .toolBox {
143 200
     display: flex;
144 201
     height: 3.125rem;
@@ -195,7 +252,6 @@ export default {
195 252
   .orderContent {
196 253
     font-size: 0.875rem;
197 254
     color: rgba(49, 50, 52, 1);
198
-    margin-top: 0.625rem;
199 255
     p {
200 256
       line-height: 1.125rem;
201 257
     }
@@ -214,6 +270,15 @@ export default {
214 270
     color: #5b98ff;
215 271
     margin-top: 0.625rem;
216 272
   }
273
+  .noimgBox {
274
+    margin-top: 40%;
275
+    img {
276
+      width: 6.25rem;
277
+      height: 6.25rem;
278
+      margin: 0 auto;
279
+      display: block;
280
+    }
281
+  }
217 282
   .add {
218 283
     position: fixed;
219 284
     bottom: 0;

+ 73 - 9
src/pages/doctorAdvice/components/Inspection.vue View File

@@ -21,12 +21,22 @@
21 21
           </div>
22 22
         </div>
23 23
       </div>
24
-      <div class="adviceBox">
25
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
24
+
25
+      <div class="adviceBox" v-show="showOne">
26
+        <van-list
27
+          v-model="loading"
28
+          :finished="finished"
29
+          finished-text="没有更多了"
30
+          @load="onLoad"
31
+        >
26 32
           <div class="adviceOne" v-for="item in 3" :key="index">
27 33
             <div class="adviceTitle">
28 34
               <p>2019.09.01</p>
29
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
35
+              <van-icon
36
+                class="ellipsis"
37
+                name="ellipsis"
38
+                @click="newShow = true"
39
+              />
30 40
             </div>
31 41
             <div class="orderContent">
32 42
               <p>血常规</p>
@@ -38,6 +48,10 @@
38 48
           </div>
39 49
         </van-list>
40 50
       </div>
51
+
52
+      <div class="noimgBox" v-show="showTwo">
53
+        <img src="../../../assets/images/none.png" alt />
54
+      </div>
41 55
     </div>
42 56
     <div class="add">
43 57
       <div style="display: flex;align-items: center;">
@@ -47,10 +61,23 @@
47 61
 
48 62
     <!-- 弹出层 -->
49 63
     <div>
50
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
51
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
64
+      <van-popup
65
+        v-model="typeShow"
66
+        position="bottom"
67
+        :style="{ height: '40%' }"
68
+      >
69
+        <van-picker
70
+          show-toolbar
71
+          :columns="columns"
72
+          @cancel="onCancel"
73
+          @confirm="onConfirm"
74
+        />
52 75
       </van-popup>
53
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
76
+      <van-popup
77
+        v-model="startShow"
78
+        position="bottom"
79
+        :style="{ height: '40%' }"
80
+      >
54 81
         <van-datetime-picker
55 82
           v-model="currentDate"
56 83
           type="date"
@@ -70,12 +97,18 @@
70 97
           @cancel="endShow = false"
71 98
         />
72 99
       </van-popup>
73
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
100
+      <van-action-sheet
101
+        v-model="newShow"
102
+        :actions="actions"
103
+        cancel-text="取消"
104
+        @cancel="onCancel"
105
+      />
74 106
     </div>
75 107
   </div>
76 108
 </template>
77 109
 
78 110
 <script>
111
+import { getPatientDetail } from "@/api/patient/patient";
79 112
 export default {
80 113
   data() {
81 114
     return {
@@ -101,7 +134,9 @@ export default {
101 134
       minDate: new Date(1970, 0, 1),
102 135
       maxDate: new Date(2025, 10, 1),
103 136
       currentDate: new Date(),
104
-      actions: [{ name: "编辑" }, { name: "删除" }]
137
+      actions: [{ name: "编辑" }, { name: "删除" }],
138
+      showOne: true,
139
+      showTwo: false
105 140
     };
106 141
   },
107 142
   methods: {
@@ -141,7 +176,28 @@ export default {
141 176
 
142 177
       this.endTime = `${year}-${month}-${day}`;
143 178
       this.endShow = false;
179
+    },
180
+    getPatientDetail(patientid) {
181
+      getPatientDetail(patientid).then(response => {
182
+        if (response.data.state === 1) {
183
+          var patientDetail = response.data.data.patientDetail;
184
+          if (patientDetail.blood_patients == 0) {
185
+            this.showOne = false;
186
+            this.showTwo = true;
187
+          }
188
+          if (patientDetail.blood_patients == 1) {
189
+            this.showOne = true;
190
+            this.showTwo = false;
191
+          }
192
+          console.log("病人详情", patientDetail);
193
+          this.patientName = patientDetail.name;
194
+        }
195
+      });
144 196
     }
197
+  },
198
+  created() {
199
+    var patientid = this.$route.query.patientid;
200
+    this.getPatientDetail(patientid);
145 201
   }
146 202
 };
147 203
 </script>
@@ -150,7 +206,6 @@ export default {
150 206
 .inspection {
151 207
   height: 100%;
152 208
   overflow-y: auto;
153
-  background: #fff;
154 209
   .toolBox {
155 210
     display: flex;
156 211
     height: 3.125rem;
@@ -214,6 +269,15 @@ export default {
214 269
     color: #5b98ff;
215 270
     margin-top: 0.625rem;
216 271
   }
272
+  .noimgBox {
273
+    margin-top: 40%;
274
+    img {
275
+      width: 6.25rem;
276
+      height: 6.25rem;
277
+      margin: 0 auto;
278
+      display: block;
279
+    }
280
+  }
217 281
   .add {
218 282
     position: fixed;
219 283
     bottom: 0;

+ 39 - 5
src/pages/doctorAdvice/components/LongDialysis.vue View File

@@ -15,7 +15,8 @@
15 15
           </div>
16 16
         </div>
17 17
       </div>
18
-      <div class="adviceBox">
18
+
19
+      <div class="adviceBox" v-show="showOne">
19 20
         <van-list
20 21
           v-model="loading"
21 22
           :finished="finished"
@@ -113,6 +114,10 @@
113 114
           </div>
114 115
         </van-list>
115 116
       </div>
117
+
118
+      <div class="noimgBox" v-show="showTwo">
119
+        <img src="../../../assets/images/none.png" alt />
120
+      </div>
116 121
     </div>
117 122
     <div class="add">
118 123
       <div style="display: flex;align-items: center;">
@@ -169,7 +174,7 @@
169 174
 </template>
170 175
 
171 176
 <script>
172
-import { GetLongDialysisRecord } from "@/api/patient/patient";
177
+import { GetLongDialysisRecord, getPatientDetail } from "@/api/patient/patient";
173 178
 import { uParseTime } from "@/utils/tools";
174 179
 import Vue from "vue";
175 180
 import { Dialog } from "vant";
@@ -222,7 +227,9 @@ export default {
222 227
       blood_access_option: [],
223 228
       dialysisrecord: [],
224 229
       list: [],
225
-      patient_id: ""
230
+      patient_id: "",
231
+      showOne: true,
232
+      showTwo: false
226 233
     };
227 234
   },
228 235
   methods: {
@@ -396,6 +403,23 @@ export default {
396 403
           return this.blood_access_option[i].name;
397 404
         }
398 405
       }
406
+    },
407
+    getPatientDetail(patientid) {
408
+      getPatientDetail(patientid).then(response => {
409
+        if (response.data.state === 1) {
410
+          var patientDetail = response.data.data.patientDetail;
411
+          if (patientDetail.blood_patients == 0) {
412
+            this.showOne = false;
413
+            this.showTwo = true;
414
+          }
415
+          if (patientDetail.blood_patients == 1) {
416
+            this.showOne = true;
417
+            this.showTwo = false;
418
+          }
419
+          console.log("病人详情", patientDetail);
420
+          this.patientName = patientDetail.name;
421
+        }
422
+      });
399 423
     }
400 424
   },
401 425
   created() {
@@ -403,6 +427,7 @@ export default {
403 427
     this.patient_id = patientid;
404 428
     console.log("长期透析处方", patientid);
405 429
     this.GetLongDialysisRecord(patientid);
430
+    this.getPatientDetail(patientid);
406 431
     this.blood_access_option = this.$store.getters.blood_access;
407 432
     console.log("血管通路", this.blood_access_option);
408 433
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set;
@@ -426,10 +451,9 @@ export default {
426 451
   .toolBox {
427 452
     display: flex;
428 453
     height: 3.125rem;
429
-    justify-content: space-around;
430 454
     align-items: center;
431 455
     .toolOne {
432
-      width: 5.625rem;
456
+      width: 6.25rem;
433 457
       height: 1.875rem;
434 458
       background: rgba(246, 246, 246, 1);
435 459
       border-radius: 5px;
@@ -439,6 +463,7 @@ export default {
439 463
       display: flex;
440 464
       align-items: center;
441 465
       justify-content: space-around;
466
+      margin-left: 0.8125rem;
442 467
     }
443 468
   }
444 469
   .adviceBox {
@@ -489,6 +514,15 @@ export default {
489 514
     color: #5b98ff;
490 515
     margin-top: 0.625rem;
491 516
   }
517
+  .noimgBox {
518
+    margin-top: 40%;
519
+    img {
520
+      width: 6.25rem;
521
+      height: 6.25rem;
522
+      margin: 0 auto;
523
+      display: block;
524
+    }
525
+  }
492 526
   .add {
493 527
     position: fixed;
494 528
     bottom: 0;

+ 75 - 10
src/pages/doctorAdvice/components/RescueRecord.vue View File

@@ -15,14 +15,26 @@
15 15
           </div>
16 16
         </div>
17 17
       </div>
18
-      <div class="adviceBox">
19
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
18
+      <div class="adviceBox" v-show="showOne">
19
+        <van-list
20
+          v-model="loading"
21
+          :finished="finished"
22
+          finished-text="没有更多了"
23
+          @load="onLoad"
24
+        >
20 25
           <div class="adviceOne" v-for="item in 3" :key="index">
21 26
             <div class="adviceTitle">
22 27
               <p>2019.09.01</p>
23
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
28
+              <van-icon
29
+                class="ellipsis"
30
+                name="ellipsis"
31
+                @click="newShow = true"
32
+              />
24 33
             </div>
25 34
             <div class="statOrder">
35
+              <div class="statOrderTitle">
36
+                <span>抢救标题</span>
37
+              </div>
26 38
               <div class="orderContent">
27 39
                 <p>
28 40
                   病历书写基本规范2010》第二十二条规定:“病程记录
@@ -40,6 +52,9 @@
40 52
           </div>
41 53
         </van-list>
42 54
       </div>
55
+      <div class="noimgBox" v-show="showTwo">
56
+        <img src="../../../assets/images/none.png" alt />
57
+      </div>
43 58
     </div>
44 59
     <div class="add">
45 60
       <div style="display: flex;align-items: center;">
@@ -49,10 +64,23 @@
49 64
 
50 65
     <!-- 弹出层 -->
51 66
     <div>
52
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
53
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
67
+      <van-popup
68
+        v-model="typeShow"
69
+        position="bottom"
70
+        :style="{ height: '40%' }"
71
+      >
72
+        <van-picker
73
+          show-toolbar
74
+          :columns="columns"
75
+          @cancel="onCancel"
76
+          @confirm="onConfirm"
77
+        />
54 78
       </van-popup>
55
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
79
+      <van-popup
80
+        v-model="startShow"
81
+        position="bottom"
82
+        :style="{ height: '40%' }"
83
+      >
56 84
         <van-datetime-picker
57 85
           v-model="currentDate"
58 86
           type="date"
@@ -72,12 +100,18 @@
72 100
           @cancel="endShow = false"
73 101
         />
74 102
       </van-popup>
75
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
103
+      <van-action-sheet
104
+        v-model="newShow"
105
+        :actions="actions"
106
+        cancel-text="取消"
107
+        @cancel="onCancel"
108
+      />
76 109
     </div>
77 110
   </div>
78 111
 </template>
79 112
 
80 113
 <script>
114
+import { getPatientDetail } from "@/api/patient/patient";
81 115
 export default {
82 116
   data() {
83 117
     return {
@@ -89,7 +123,9 @@ export default {
89 123
       minDate: new Date(1970, 0, 1),
90 124
       maxDate: new Date(2025, 10, 1),
91 125
       currentDate: new Date(),
92
-      actions: [{ name: "编辑" }, { name: "删除" }]
126
+      actions: [{ name: "编辑" }, { name: "删除" }],
127
+      showOne: true,
128
+      showTwo: false
93 129
     };
94 130
   },
95 131
   methods: {
@@ -129,7 +165,29 @@ export default {
129 165
 
130 166
       this.endTime = `${year}-${month}-${day}`;
131 167
       this.endShow = false;
168
+    },
169
+    getPatientDetail(patientid) {
170
+      getPatientDetail(patientid).then(response => {
171
+        if (response.data.state === 1) {
172
+          var patientDetail = response.data.data.patientDetail;
173
+          if (patientDetail.blood_patients == 0) {
174
+            this.showOne = false;
175
+            this.showTwo = true;
176
+          }
177
+          if (patientDetail.blood_patients == 1) {
178
+            this.showOne = true;
179
+            this.showTwo = false;
180
+          }
181
+          console.log("病人详情", patientDetail);
182
+          this.patientName = patientDetail.name;
183
+        }
184
+      });
132 185
     }
186
+  },
187
+  created() {
188
+    var patientid = this.$route.query.patientid;
189
+    console.log("病人id能否获取", patientid);
190
+    this.getPatientDetail(patientid);
133 191
   }
134 192
 };
135 193
 </script>
@@ -138,7 +196,6 @@ export default {
138 196
 .rescueRecord {
139 197
   height: 100%;
140 198
   overflow-y: auto;
141
-  background: #fff;
142 199
   .toolBox {
143 200
     display: flex;
144 201
     height: 3.125rem;
@@ -193,7 +250,6 @@ export default {
193 250
     margin: 0.625rem 0;
194 251
   }
195 252
   .orderContent {
196
-    margin-top: 0.625rem;
197 253
     font-size: 0.875rem;
198 254
     color: rgba(49, 50, 52, 1);
199 255
     p {
@@ -214,6 +270,15 @@ export default {
214 270
     color: #5b98ff;
215 271
     margin-top: 0.625rem;
216 272
   }
273
+  .noimgBox {
274
+    margin-top: 40%;
275
+    img {
276
+      width: 6.25rem;
277
+      height: 6.25rem;
278
+      margin: 0 auto;
279
+      display: block;
280
+    }
281
+  }
217 282
   .add {
218 283
     position: fixed;
219 284
     bottom: 0;

+ 111 - 48
src/pages/doctorAdvice/components/Scheduling.vue View File

@@ -21,12 +21,21 @@
21 21
           </div>
22 22
         </div>
23 23
       </div>
24
-      <div class="adviceBox">
25
-        <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
24
+      <div class="adviceBox" v-show="showOne">
25
+        <van-list
26
+          v-model="loading"
27
+          :finished="finished"
28
+          finished-text="没有更多了"
29
+          @load="onLoad"
30
+        >
26 31
           <div class="adviceOne" v-for="item in 3" :key="index">
27 32
             <div class="adviceTitle">
28 33
               <p>2019.09.01</p>
29
-              <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
34
+              <van-icon
35
+                class="ellipsis"
36
+                name="ellipsis"
37
+                @click="newShow = true"
38
+              />
30 39
             </div>
31 40
             <div class="orderContent">
32 41
               <p>班次:HD</p>
@@ -38,6 +47,9 @@
38 47
           </div>
39 48
         </van-list>
40 49
       </div>
50
+      <div class="noimgBox" v-show="showTwo">
51
+        <img src="../../../assets/images/none.png" alt />
52
+      </div>
41 53
     </div>
42 54
     <div class="add">
43 55
       <div style="display: flex;align-items: center;">
@@ -47,10 +59,23 @@
47 59
 
48 60
     <!-- 弹出层 -->
49 61
     <div>
50
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
51
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
62
+      <van-popup
63
+        v-model="typeShow"
64
+        position="bottom"
65
+        :style="{ height: '40%' }"
66
+      >
67
+        <van-picker
68
+          show-toolbar
69
+          :columns="columns"
70
+          @cancel="onCancel"
71
+          @confirm="onConfirm"
72
+        />
52 73
       </van-popup>
53
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
74
+      <van-popup
75
+        v-model="startShow"
76
+        position="bottom"
77
+        :style="{ height: '40%' }"
78
+      >
54 79
         <van-datetime-picker
55 80
           v-model="currentDate"
56 81
           type="date"
@@ -70,87 +95,116 @@
70 95
           @cancel="endShow = false"
71 96
         />
72 97
       </van-popup>
73
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
98
+      <van-action-sheet
99
+        v-model="newShow"
100
+        :actions="actions"
101
+        cancel-text="取消"
102
+        @cancel="onCancel"
103
+      />
104
+      </div>
74 105
     </div>
75 106
   </div>
76 107
 </template>
77 108
 
78 109
 <script>
110
+import { getPatientDetail } from '@/api/patient/patient'
79 111
 export default {
80
-  data() {
112
+  data () {
81 113
     return {
82 114
       newShow: false,
83 115
       typeShow: false,
84 116
       startShow: false,
85 117
       endShow: false,
86
-      type: "请选择",
118
+      type: '请选择',
87 119
       columns: [
88
-        "杭州",
89
-        "宁波",
90
-        "温州",
91
-        "嘉兴",
92
-        "湖州",
93
-        "杭州",
94
-        "宁波",
95
-        "温州",
96
-        "嘉兴",
97
-        "湖州"
120
+        '杭州',
121
+        '宁波',
122
+        '温州',
123
+        '嘉兴',
124
+        '湖州',
125
+        '杭州',
126
+        '宁波',
127
+        '温州',
128
+        '嘉兴',
129
+        '湖州'
98 130
       ],
99
-      startTime: "请选择",
100
-      endTime: "请选择",
131
+      startTime: '请选择',
132
+      endTime: '请选择',
101 133
       minDate: new Date(1970, 0, 1),
102 134
       maxDate: new Date(2025, 10, 1),
103 135
       currentDate: new Date(),
104
-      actions: [{ name: "编辑" }, { name: "删除" }]
105
-    };
136
+      actions: [{ name: '编辑' }, { name: '删除' }],
137
+      showOne: true,
138
+      showTwo: false
139
+    }
106 140
   },
107 141
   methods: {
108
-    onCancel() {
109
-      this.typeShow = false;
142
+    onCancel () {
143
+      this.typeShow = false
110 144
     },
111
-    onConfirm(value) {
112
-      this.type = value;
113
-      this.typeShow = false;
145
+    onConfirm (value) {
146
+      this.type = value
147
+      this.typeShow = false
114 148
     },
115
-    getstartTime(value) {
116
-      console.log(value);
117
-      let year = value.getFullYear();
118
-      let month = value.getMonth() + 1;
119
-      let day = value.getDate();
149
+    getstartTime (value) {
150
+      console.log(value)
151
+      let year = value.getFullYear()
152
+      let month = value.getMonth() + 1
153
+      let day = value.getDate()
120 154
       if (month >= 1 && month <= 9) {
121
-        month = `0${month}`;
155
+        month = `0${month}`
122 156
       }
123 157
       if (day >= 1 && day <= 9) {
124
-        day = `0${day}`;
158
+        day = `0${day}`
125 159
       }
126 160
 
127
-      this.startTime = `${year}-${month}-${day}`;
128
-      this.startShow = false;
161
+      this.startTime = `${year}-${month}-${day}`
162
+      this.startShow = false
129 163
     },
130
-    getstartTime2(value) {
131
-      console.log(value);
132
-      let year = value.getFullYear();
133
-      let month = value.getMonth() + 1;
134
-      let day = value.getDate();
164
+    getstartTime2 (value) {
165
+      console.log(value)
166
+      let year = value.getFullYear()
167
+      let month = value.getMonth() + 1
168
+      let day = value.getDate()
135 169
       if (month >= 1 && month <= 9) {
136
-        month = `0${month}`;
170
+        month = `0${month}`
137 171
       }
138 172
       if (day >= 1 && day <= 9) {
139
-        day = `0${day}`;
173
+        day = `0${day}`
140 174
       }
141 175
 
142
-      this.endTime = `${year}-${month}-${day}`;
143
-      this.endShow = false;
176
+      this.endTime = `${year}-${month}-${day}`
177
+      this.endShow = false
178
+    },
179
+    getPatientDetail (patientid) {
180
+      getPatientDetail(patientid).then(response => {
181
+        if (response.data.state === 1) {
182
+          var patientDetail = response.data.data.patientDetail
183
+          if (patientDetail.blood_patients == 0) {
184
+            this.showOne = false
185
+            this.showTwo = true
186
+          }
187
+          if (patientDetail.blood_patients == 1) {
188
+            this.showOne = true
189
+            this.showTwo = false
190
+          }
191
+          console.log('病人详情', patientDetail)
192
+          this.patientName = patientDetail.name
193
+        }
194
+      })
144 195
     }
196
+  },
197
+  created () {
198
+    var patientid = this.$route.query.patientid
199
+    this.getPatientDetail(patientid)
145 200
   }
146
-};
201
+}
147 202
 </script>
148 203
 
149 204
 <style lang="scss" scoped>
150 205
 .scheduling {
151 206
   height: 100%;
152 207
   overflow-y: auto;
153
-  background: #fff;
154 208
   .toolBox {
155 209
     display: flex;
156 210
     height: 3.125rem;
@@ -217,6 +271,15 @@ export default {
217 271
     color: #5b98ff;
218 272
     margin-top: 0.625rem;
219 273
   }
274
+  .noimgBox {
275
+    margin-top: 40%;
276
+    img {
277
+      width: 6.25rem;
278
+      height: 6.25rem;
279
+      margin: 0 auto;
280
+      display: block;
281
+    }
282
+  }
220 283
   .add {
221 284
     position: fixed;
222 285
     bottom: 0;

+ 23 - 5
src/pages/doctorAdvice/components/deviceManagement.vue View File

@@ -45,10 +45,23 @@
45 45
 
46 46
     <!-- 弹出层 -->
47 47
     <div>
48
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
49
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
48
+      <van-popup
49
+        v-model="typeShow"
50
+        position="bottom"
51
+        :style="{ height: '40%' }"
52
+      >
53
+        <van-picker
54
+          show-toolbar
55
+          :columns="columns"
56
+          @cancel="onCancel"
57
+          @confirm="onConfirm"
58
+        />
50 59
       </van-popup>
51
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
60
+      <van-popup
61
+        v-model="startShow"
62
+        position="bottom"
63
+        :style="{ height: '40%' }"
64
+      >
52 65
         <van-datetime-picker
53 66
           v-model="currentDate"
54 67
           type="date"
@@ -68,7 +81,12 @@
68 81
           @cancel="endShow = false"
69 82
         />
70 83
       </van-popup>
71
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
84
+      <van-action-sheet
85
+        v-model="newShow"
86
+        :actions="actions"
87
+        cancel-text="取消"
88
+        @cancel="onCancel"
89
+      />
72 90
     </div>
73 91
   </div>
74 92
 </template>
@@ -154,7 +172,7 @@ export default {
154 172
     height: 3.125rem;
155 173
     align-items: center;
156 174
     .toolOne {
157
-      width: 5.625rem;
175
+      width: 6.25rem;
158 176
       height: 1.875rem;
159 177
       background: rgba(246, 246, 246, 1);
160 178
       border-radius: 5px;

+ 23 - 5
src/pages/doctorAdvice/components/medicationPlan.vue View File

@@ -45,10 +45,23 @@
45 45
 
46 46
     <!-- 弹出层 -->
47 47
     <div>
48
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
49
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
48
+      <van-popup
49
+        v-model="typeShow"
50
+        position="bottom"
51
+        :style="{ height: '40%' }"
52
+      >
53
+        <van-picker
54
+          show-toolbar
55
+          :columns="columns"
56
+          @cancel="onCancel"
57
+          @confirm="onConfirm"
58
+        />
50 59
       </van-popup>
51
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
60
+      <van-popup
61
+        v-model="startShow"
62
+        position="bottom"
63
+        :style="{ height: '40%' }"
64
+      >
52 65
         <van-datetime-picker
53 66
           v-model="currentDate"
54 67
           type="date"
@@ -68,7 +81,12 @@
68 81
           @cancel="endShow = false"
69 82
         />
70 83
       </van-popup>
71
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
84
+      <van-action-sheet
85
+        v-model="newShow"
86
+        :actions="actions"
87
+        cancel-text="取消"
88
+        @cancel="onCancel"
89
+      />
72 90
     </div>
73 91
   </div>
74 92
 </template>
@@ -154,7 +172,7 @@ export default {
154 172
     height: 3.125rem;
155 173
     align-items: center;
156 174
     .toolOne {
157
-      width: 5.625rem;
175
+      width: 6.25rem;
158 176
       height: 1.875rem;
159 177
       background: rgba(246, 246, 246, 1);
160 178
       border-radius: 5px;

+ 23 - 5
src/pages/doctorAdvice/components/recoverNotes.vue View File

@@ -45,10 +45,23 @@
45 45
 
46 46
     <!-- 弹出层 -->
47 47
     <div>
48
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
49
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
48
+      <van-popup
49
+        v-model="typeShow"
50
+        position="bottom"
51
+        :style="{ height: '40%' }"
52
+      >
53
+        <van-picker
54
+          show-toolbar
55
+          :columns="columns"
56
+          @cancel="onCancel"
57
+          @confirm="onConfirm"
58
+        />
50 59
       </van-popup>
51
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
60
+      <van-popup
61
+        v-model="startShow"
62
+        position="bottom"
63
+        :style="{ height: '40%' }"
64
+      >
52 65
         <van-datetime-picker
53 66
           v-model="currentDate"
54 67
           type="date"
@@ -68,7 +81,12 @@
68 81
           @cancel="endShow = false"
69 82
         />
70 83
       </van-popup>
71
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
84
+      <van-action-sheet
85
+        v-model="newShow"
86
+        :actions="actions"
87
+        cancel-text="取消"
88
+        @cancel="onCancel"
89
+      />
72 90
     </div>
73 91
   </div>
74 92
 </template>
@@ -154,7 +172,7 @@ export default {
154 172
     height: 3.125rem;
155 173
     align-items: center;
156 174
     .toolOne {
157
-      width: 5.625rem;
175
+      width: 6.25rem;
158 176
       height: 1.875rem;
159 177
       background: rgba(246, 246, 246, 1);
160 178
       border-radius: 5px;

+ 23 - 5
src/pages/doctorAdvice/components/signsRecord.vue View File

@@ -51,10 +51,23 @@
51 51
 
52 52
     <!-- 弹出层 -->
53 53
     <div>
54
-      <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
55
-        <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
54
+      <van-popup
55
+        v-model="typeShow"
56
+        position="bottom"
57
+        :style="{ height: '40%' }"
58
+      >
59
+        <van-picker
60
+          show-toolbar
61
+          :columns="columns"
62
+          @cancel="onCancel"
63
+          @confirm="onConfirm"
64
+        />
56 65
       </van-popup>
57
-      <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
66
+      <van-popup
67
+        v-model="startShow"
68
+        position="bottom"
69
+        :style="{ height: '40%' }"
70
+      >
58 71
         <van-datetime-picker
59 72
           v-model="currentDate"
60 73
           type="date"
@@ -74,7 +87,12 @@
74 87
           @cancel="endShow = false"
75 88
         />
76 89
       </van-popup>
77
-      <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
90
+      <van-action-sheet
91
+        v-model="newShow"
92
+        :actions="actions"
93
+        cancel-text="取消"
94
+        @cancel="onCancel"
95
+      />
78 96
     </div>
79 97
   </div>
80 98
 </template>
@@ -161,7 +179,7 @@ export default {
161 179
     justify-content: space-around;
162 180
     align-items: center;
163 181
     .toolOne {
164
-      width: 5.625rem;
182
+      width: 6.25rem;
165 183
       height: 1.875rem;
166 184
       background: rgba(246, 246, 246, 1);
167 185
       border-radius: 5px;

+ 185 - 187
src/pages/doctorAdvice/index.vue View File

@@ -6,7 +6,7 @@
6 6
         {{ patientName }}
7 7
         <van-icon name="arrow-down" />
8 8
       </div>
9
-      <p>基本信息</p>
9
+      <p @click="toEditPatient">基本信息</p>
10 10
     </div>
11 11
     <van-tabs v-model="active" sticky>
12 12
       <van-sticky>
@@ -83,29 +83,29 @@
83 83
 </template>
84 84
 
85 85
 <script>
86
-import '../../styles/resetStyle.scss'
87
-import DoctorManagement from '@/pages/doctorAdvice/components/DoctorManagement'
88
-import DryWeight from '@/pages/doctorAdvice/components/DryWeight'
89
-import CourseManagement from '@/pages/doctorAdvice/components/CourseManagement'
90
-import RescueRecord from '@/pages/doctorAdvice/components/RescueRecord'
91
-import Inspection from '@/pages/doctorAdvice/components/Inspection'
92
-import LongDialysis from '@/pages/doctorAdvice/components/LongDialysis'
93
-import DialysisRecord from '@/pages/doctorAdvice/components/DialysisRecord'
94
-import Scheduling from '@/pages/doctorAdvice/components/Scheduling'
95
-import Education from '@/pages/doctorAdvice/components/Education'
96
-import signsRecord from '@/pages/doctorAdvice/components/signsRecord'
97
-import recoverNotes from '@/pages/doctorAdvice/components/recoverNotes'
98
-import medicationPlan from '@/pages/doctorAdvice/components/medicationPlan'
99
-import deviceManagement from '@/pages/doctorAdvice/components/deviceManagement'
100
-import { uParseTime } from '@/utils/tools'
86
+import "../../styles/resetStyle.scss";
87
+import DoctorManagement from "@/pages/doctorAdvice/components/DoctorManagement";
88
+import DryWeight from "@/pages/doctorAdvice/components/DryWeight";
89
+import CourseManagement from "@/pages/doctorAdvice/components/CourseManagement";
90
+import RescueRecord from "@/pages/doctorAdvice/components/RescueRecord";
91
+import Inspection from "@/pages/doctorAdvice/components/Inspection";
92
+import LongDialysis from "@/pages/doctorAdvice/components/LongDialysis";
93
+import DialysisRecord from "@/pages/doctorAdvice/components/DialysisRecord";
94
+import Scheduling from "@/pages/doctorAdvice/components/Scheduling";
95
+import Education from "@/pages/doctorAdvice/components/Education";
96
+import signsRecord from "@/pages/doctorAdvice/components/signsRecord";
97
+import recoverNotes from "@/pages/doctorAdvice/components/recoverNotes";
98
+import medicationPlan from "@/pages/doctorAdvice/components/medicationPlan";
99
+import deviceManagement from "@/pages/doctorAdvice/components/deviceManagement";
100
+import { uParseTime } from "@/utils/tools";
101 101
 import {
102 102
   getPatientDetail,
103 103
   getBloodDialysisPatientTwo,
104 104
   ToSearch
105
-} from '@/api/patient/patient'
106
-const moment = require('moment')
107
-let pinyin = require('js-pinyin')
108
-pinyin.setOptions({ checkPolyphone: false, charCase: 0 })
105
+} from "@/api/patient/patient";
106
+const moment = require("moment");
107
+let pinyin = require("js-pinyin");
108
+pinyin.setOptions({ checkPolyphone: false, charCase: 0 });
109 109
 export default {
110 110
   components: {
111 111
     DoctorManagement,
@@ -122,142 +122,143 @@ export default {
122 122
     medicationPlan,
123 123
     deviceManagement
124 124
   },
125
-  data () {
125
+  data() {
126 126
     return {
127 127
       show: false,
128 128
       show1: false,
129 129
       active: 0,
130 130
       title: [
131
-        '医嘱',
132
-        '长期透析处方',
133
-        '透析记录',
134
-        '干体重',
135
-        '检验检查',
136
-        '病程记录',
137
-        '抢救记录',
138
-        '排班信息',
139
-        '宣教信息',
140
-        '体征记录',
141
-        '康复笔记',
142
-        '用药管理',
143
-        '设备管理'
131
+        "医嘱",
132
+        "长期透析处方",
133
+        "透析记录",
134
+        "干体重",
135
+        "检验检查",
136
+        "病程记录",
137
+        "抢救记录",
138
+        "排班信息",
139
+        "宣教信息",
140
+        "体征记录",
141
+        "康复笔记",
142
+        "用药管理",
143
+        "设备管理"
144 144
       ],
145 145
 
146
-      searchVal: '',
147
-      startTime: moment(new Date()).format('YYYY-MM-DD'),
148
-      endTime: moment(new Date()).format('YYYY-MM-DD'),
146
+      searchVal: "",
147
+      startTime: moment(new Date()).format("YYYY-MM-DD"),
148
+      endTime: moment(new Date()).format("YYYY-MM-DD"),
149 149
       show1: false,
150 150
       show2: false,
151 151
       currentDate1: new Date(),
152 152
       currentDate2: new Date(),
153 153
       show3: false,
154
-      actions: [{ name: '编辑' }, { name: '删除' }],
155
-      time: '2016-10-2',
154
+      actions: [{ name: "编辑" }, { name: "删除" }],
155
+      time: "2016-10-2",
156 156
       patientForm: {
157
-        name: '',
158
-        sex: '',
159
-        age: '',
160
-        dialysis_no: '',
161
-        avatar: ''
157
+        name: "",
158
+        sex: "",
159
+        age: "",
160
+        dialysis_no: "",
161
+        avatar: ""
162 162
       },
163 163
       doctorAdvice: [],
164 164
       yiShow: false,
165 165
       meiShow: false,
166 166
       bingShow: false,
167 167
       aiShow: false,
168
-      doctor_name: '',
169
-      value: '',
170
-      patientName: '',
168
+      doctor_name: "",
169
+      value: "",
170
+      patientName: "",
171 171
       cityNameList: [
172 172
         {
173 173
           id: 101,
174
-          name: '北京市',
174
+          name: "北京市",
175 175
           pid: 1,
176 176
           code: 0
177 177
         },
178 178
         {
179 179
           id: 10101,
180
-          name: '天津市',
180
+          name: "天津市",
181 181
           pid: 10001,
182 182
           code: 0
183 183
         },
184 184
         {
185 185
           id: 20101,
186
-          name: '石家庄市',
186
+          name: "石家庄市",
187 187
           pid: 20001,
188 188
           code: 130100
189 189
         }
190 190
       ],
191 191
       FirstPin: [
192
-        'A',
193
-        'B',
194
-        'C',
195
-        'D',
196
-        'E',
197
-        'F',
198
-        'G',
199
-        'H',
200
-        'J',
201
-        'K',
202
-        'L',
203
-        'M',
204
-        'N',
205
-        'P',
206
-        'Q',
207
-        'R',
208
-        'S',
209
-        'T',
210
-        'W',
211
-        'X',
212
-        'Y',
213
-        'Z'
192
+        "A",
193
+        "B",
194
+        "C",
195
+        "D",
196
+        "E",
197
+        "F",
198
+        "G",
199
+        "H",
200
+        "J",
201
+        "K",
202
+        "L",
203
+        "M",
204
+        "N",
205
+        "P",
206
+        "Q",
207
+        "R",
208
+        "S",
209
+        "T",
210
+        "W",
211
+        "X",
212
+        "Y",
213
+        "Z"
214 214
       ],
215 215
       firstNameTwo: {},
216 216
       limit: 10,
217 217
       page: 1,
218
-      patient: []
219
-    }
218
+      patient: [],
219
+      patient_id: ""
220
+    };
220 221
   },
221 222
   methods: {
222
-    changeActive (index) {
223
-      this.active = index
224
-      this.show1 = false
223
+    changeActive(index) {
224
+      this.active = index;
225
+      this.show1 = false;
225 226
     },
226 227
 
227 228
     // sadas
228
-    showPopup (index) {
229
+    showPopup(index) {
229 230
       if (index === 1) {
230
-        this.show1 = true
231
+        this.show1 = true;
231 232
       } else if (index === 2) {
232
-        this.show2 = true
233
+        this.show2 = true;
233 234
       }
234 235
     },
235
-    chooseStartTime (value) {
236
-      this.startTime = moment(value).format('YYYY-MM-DD')
237
-      var patientid = this.$route.query.patientid
238
-      var orgid = this.$route.query.orgid
239
-      this.GetDoctroAdvice(patientid, orgid, this.startTime)
240
-      this.show1 = false
236
+    chooseStartTime(value) {
237
+      this.startTime = moment(value).format("YYYY-MM-DD");
238
+      var patientid = this.$route.query.patientid;
239
+      var orgid = this.$route.query.orgid;
240
+      this.GetDoctroAdvice(patientid, orgid, this.startTime);
241
+      this.show1 = false;
241 242
     },
242
-    chooseEndTime (value) {
243
-      this.endTime = moment(value).format('YYYY-MM-DD')
244
-      var patientid = this.$route.query.patientid
245
-      var orgid = this.$route.query.orgid
246
-      this.GetDoctroAdvice(patientid, orgid, this.endTime)
247
-      this.show2 = false
243
+    chooseEndTime(value) {
244
+      this.endTime = moment(value).format("YYYY-MM-DD");
245
+      var patientid = this.$route.query.patientid;
246
+      var orgid = this.$route.query.orgid;
247
+      this.GetDoctroAdvice(patientid, orgid, this.endTime);
248
+      this.show2 = false;
248 249
     },
249
-    onClick (index) {
250
+    onClick(index) {
250 251
       if (index === 1) {
251
-        this.show3 = true
252
+        this.show3 = true;
252 253
       } else if (index === 2) {
253
-        this.show3 = true
254
+        this.show3 = true;
254 255
       }
255 256
     },
256
-    RecordTime (time) {
257
+    RecordTime(time) {
257 258
       // return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
258
-      return uParseTime(time, '{y}-{m}-{d}')
259
+      return uParseTime(time, "{y}-{m}-{d}");
259 260
     },
260
-    GetDoctroAdvice (patientid, orgid) {
261
+    GetDoctroAdvice(patientid, orgid) {
261 262
       GetDoctroAdvice(
262 263
         patientid,
263 264
         orgid,
@@ -266,150 +267,154 @@ export default {
266 267
         this.searchVal
267 268
       ).then(response => {
268 269
         if (response.data.state === 1) {
269
-          var doctoradvice = response.data.data.doctoradvice
270
-          this.doctorAdvice = doctoradvice
271
-          var patients = response.data.data.patients
272
-          this.patientForm.name = patients.name
273
-          this.patientForm.age = patients.age
274
-          this.patientForm.avatar = patients.avatar
275
-          var diseases = response.data.data.diseases
270
+          var doctoradvice = response.data.data.doctoradvice;
271
+          this.doctorAdvice = doctoradvice;
272
+          var patients = response.data.data.patients;
273
+          this.patientForm.name = patients.name;
274
+          this.patientForm.age = patients.age;
275
+          this.patientForm.avatar = patients.avatar;
276
+          var diseases = response.data.data.diseases;
276 277
           for (let index = 0; index < diseases.length; index++) {
277 278
             if (diseases[index].disease_id === 2) {
278
-              this.yiShow = true
279
+              this.yiShow = true;
279 280
             }
280 281
             if (diseases[index].disease_id === 3) {
281
-              this.bingShow = true
282
+              this.bingShow = true;
282 283
             }
283 284
             if (diseases[index].disease_id === 4) {
284
-              this.aiShow = true
285
+              this.aiShow = true;
285 286
             }
286 287
 
287 288
             if (diseases[index].disease_id === 6) {
288
-              this.meiShow = true
289
+              this.meiShow = true;
289 290
             }
290 291
           }
291 292
           if (patients.gender === 1) {
292
-            this.patientForm.sex = '男'
293
+            this.patientForm.sex = "男";
293 294
           }
294 295
           if (patients.gender === 2) {
295
-            this.patientForm.sex = '女'
296
+            this.patientForm.sex = "女";
296 297
           }
297
-          this.patientForm.dialysis_no = patients.dialysis_no
298
-          var role = response.data.data.role
299
-          this.doctor_name = role.user_name
298
+          this.patientForm.dialysis_no = patients.dialysis_no;
299
+          var role = response.data.data.role;
300
+          this.doctor_name = role.user_name;
300 301
         }
301
-      })
302
+      });
302 303
     },
303
-    watchNum () {
304
-      var patientid = this.$route.query.patientid
305
-      var orgid = this.$route.query.orgid
304
+    watchNum() {
305
+      var patientid = this.$route.query.patientid;
306
+      var orgid = this.$route.query.orgid;
306 307
       toSeacherDoctorAdvice(patientid, orgid, this.searchVal).then(response => {
307 308
         if (response.data.state === 1) {
308
-          var doctorAdvice = response.data.data.doctoradvice
309
-          this.doctorAdvice = doctoradvice
309
+          var doctorAdvice = response.data.data.doctoradvice;
310
+          this.doctorAdvice = doctoradvice;
310 311
         }
311
-      })
312
+      });
312 313
     },
313
-    deleteDoctorAdvice (id, index) {
314
+    deleteDoctorAdvice(id, index) {
314 315
       deleteDoctorAdvice(id, index).then(response => {
315 316
         if (response.data.state === 1) {
316
-          var msg = response.data.data.msg
317
-          this.doctorAdvice.splice(index, 1)
317
+          var msg = response.data.data.msg;
318
+          this.doctorAdvice.splice(index, 1);
318 319
         }
319
-      })
320
+      });
320 321
     },
321
-    toReturn () {
322
-      this.$router.push('/patients')
322
+    toReturn() {
323
+      this.$router.push("/patients");
323 324
     },
324
-    getPatientDetail (patientid) {
325
+    getPatientDetail(patientid) {
325 326
       getPatientDetail(patientid).then(response => {
326 327
         if (response.data.state === 1) {
327
-          var patientDetail = response.data.data.patientDetail
328
-          console.log('病人详情', patientDetail)
329
-          this.patientName = patientDetail.name
328
+          var patientDetail = response.data.data.patientDetail;
329
+          console.log("病人详情", patientDetail);
330
+          this.patientName = patientDetail.name;
330 331
         }
331
-      })
332
+      });
332 333
     },
333
-    getBloodDialysisPatientTwo () {
334
+    getBloodDialysisPatientTwo() {
334 335
       getBloodDialysisPatientTwo(this.page, this.limit).then(response => {
335
-        var patient = response.data.data.patient
336
-        this.patient = patient
337
-        let cityNameList = []
336
+        var patient = response.data.data.patient;
337
+        this.patient = patient;
338
+        let cityNameList = [];
338 339
         for (let p in patient) {
339
-          cityNameList.push(patient[p].name)
340
+          cityNameList.push(patient[p].name);
340 341
         }
341
-        let firstName = {}
342
+        let firstName = {};
342 343
         this.FirstPin.forEach(item => {
343
-          firstName[item] = []
344
+          firstName[item] = [];
344 345
           cityNameList.forEach(el => {
345
-            let first = pinyin.getFullChars(el).substring(0, 1)
346
+            let first = pinyin.getFullChars(el).substring(0, 1);
346 347
             if (first == item) {
347
-              firstName[item].push(el)
348
+              firstName[item].push(el);
348 349
             }
349
-          })
350
-          this.firstNameTwo = firstName
350
+          });
351
+          this.firstNameTwo = firstName;
351 352
           // 判断非空
352
-          let newObj = {}
353
+          let newObj = {};
353 354
           Object.keys(this.firstNameTwo).map((item, index) => {
354 355
             if (this.firstNameTwo[item].length != 0) {
355
-              newObj[item] = this.firstNameTwo[item]
356
+              newObj[item] = this.firstNameTwo[item];
356 357
             }
357
-          })
358
-          this.firstNameTwo = newObj
359
-        })
360
-      })
358
+          });
359
+          this.firstNameTwo = newObj;
360
+        });
361
+      });
361 362
     },
362
-    onSearch (val) {
363
+    onSearch(val) {
363 364
       ToSearch(val).then(response => {
364 365
         if (response.data.state === 1) {
365
-          var search = response.data.data.search
366
-          console.log('search', search)
367
-          let cityNameList = []
366
+          var search = response.data.data.search;
367
+          console.log("search", search);
368
+          let cityNameList = [];
368 369
           for (let p in search) {
369
-            cityNameList.push(search[p].name)
370
+            cityNameList.push(search[p].name);
370 371
           }
371
-          let firstName = {}
372
+          let firstName = {};
372 373
           this.FirstPin.forEach(item => {
373
-            firstName[item] = []
374
+            firstName[item] = [];
374 375
             cityNameList.forEach(el => {
375
-              let first = pinyin.getFullChars(el).substring(0, 1)
376
+              let first = pinyin.getFullChars(el).substring(0, 1);
376 377
               if (first == item) {
377
-                firstName[item].push(el)
378
+                firstName[item].push(el);
378 379
               }
379
-            })
380
-            this.firstNameTwo = firstName
380
+            });
381
+            this.firstNameTwo = firstName;
381 382
             // 判断非空
382
-            let newObj = {}
383
+            let newObj = {};
383 384
             Object.keys(this.firstNameTwo).map((item, index) => {
384 385
               if (this.firstNameTwo[item].length != 0) {
385
-                newObj[item] = this.firstNameTwo[item]
386
+                newObj[item] = this.firstNameTwo[item];
386 387
               }
387
-            })
388
-            this.firstNameTwo = newObj
389
-          })
388
+            });
389
+            this.firstNameTwo = newObj;
390
+          });
390 391
         }
391
-      })
392
+      });
392 393
     },
393
-    onCancel () {},
394
-    chooseCity (val) {
395
-      this.value = val
394
+    onCancel() {},
395
+    chooseCity(val) {
396
+      this.value = val;
396 397
       for (let i = 0; i < this.patient.length; i++) {
397 398
         if (this.value === this.patient[i].name) {
398
-          var id = this.patient[i].id
399
-          this.show = false
400
-          this.$router.push('/patientdetail?patientid=' + id)
401
-          this.patientName = this.value
399
+          var id = this.patient[i].id;
400
+          this.show = false;
401
+          this.$router.push("/patientdetail?patientid=" + id);
402
+          this.patientName = this.value;
402 403
         }
403 404
       }
405
+    },
406
+    toEditPatient() {
407
+      this.$router.push("/editPatient?patientid=" + this.patient_id);
404 408
     }
405 409
   },
406
-  created () {
407
-    var patientid = this.$route.query.patientid
408
-    console.log('patientid', patientid)
409
-    this.getPatientDetail(patientid)
410
-    this.getBloodDialysisPatientTwo()
410
+  created() {
411
+    var patientid = this.$route.query.patientid;
412
+    console.log("patientid", patientid);
413
+    this.patient_id = patientid;
414
+    this.getPatientDetail(patientid);
415
+    this.getBloodDialysisPatientTwo();
411 416
   }
412
-}
417
+};
413 418
 </script>
414 419
 
415 420
 <style lang="scss" scoped>
@@ -448,7 +453,7 @@ export default {
448 453
   .wap {
449 454
     font-size: 1.875rem;
450 455
     line-height: 44px;
451
-    color: #cccccc;
456
+    color: #5b5b5b;
452 457
   }
453 458
   .titleBox {
454 459
     padding: 0 1.25rem 1.25rem;
@@ -476,12 +481,5 @@ export default {
476 481
     display: flex;
477 482
     align-items: center;
478 483
   }
479
-  .van-tabs__line {
480
-    background: #5b98ff;
481
-  }
482
-  .van-tabs {
483
-    background: #fff;
484
-    height: 100%;
485
-  }
486 484
 }
487 485
 </style>

+ 30 - 1
src/pages/home/createOrg/index.vue View File

@@ -74,6 +74,8 @@
74 74
 </template>
75 75
 
76 76
 <script>
77
+  import {createOrg} from "@/api/login";
78
+  import {Toast} from 'vant'
77 79
 
78 80
   export default {
79 81
     components: {},
@@ -4263,7 +4265,34 @@
4263 4265
         window.location.href = "tel://075586526342";
4264 4266
       },createOrg(){
4265 4267
         this.orgForm.org_type = this.type_name.split("-")[1]
4266
-        console.log( this.orgForm)
4268
+        Toast.loading({forbidClick: true, duration: 0})
4269
+        createOrg(this.orgForm).then(response => {
4270
+          if (response.data.state === 1) {
4271
+            Toast.success("创建成功")
4272
+
4273
+            var user = response.data.data.user;
4274
+            var admin = response.data.data.admin;
4275
+            var org = response.data.data.org;
4276
+            var subscibe = response.data.data.subscibe;
4277
+            var config_list = response.data.data.config_list;
4278
+            var template_info = response.data.data.template_info;
4279
+            var filed_list = response.data.data.filed_list;
4280
+            this.$store.dispatch("InitUserInfo", {
4281
+              admin: admin,
4282
+              user: user,
4283
+              org: org,
4284
+              subscibe: subscibe,
4285
+              template_info: template_info,
4286
+              filed_list: filed_list
4287
+            });
4288
+            this.$store.dispatch("SetConfigList", config_list);
4289
+            this.$router.replace({ path: "/homeIndex" });
4290
+          }else{
4291
+            Toast.fail(response.data.msg)
4292
+          }
4293
+        });
4294
+
4295
+
4267 4296
 
4268 4297
       }
4269 4298
     },

+ 34 - 36
src/pages/home/forgetPassword/index.vue View File

@@ -11,7 +11,7 @@
11 11
             <i class="el-icon-mobile mobile"></i>
12 12
             <el-input
13 13
               class="phoneInput"
14
-              placeholder="请输入手机号码"
14
+              placeholder="请填写手机号码"
15 15
               v-model="forgetForm.phone"
16 16
               v-on:input="watchNum"
17 17
               maxlength="11"
@@ -24,11 +24,12 @@
24 24
             <i class="iconfont icon-dunpai dunpai"></i>
25 25
             <el-input
26 26
               v-model="forgetForm.code"
27
-              placeholder="请输入验证码"
27
+              placeholder="请填写验证码"
28 28
               v-on:input="watchNum"
29 29
             ></el-input>
30
-            <div class="getCode" @click="getVerifyCode()">{{code_btn_title}}</div>
31
-
30
+            <div class="getCode" @click="getVerifyCode()">
31
+              {{ code_btn_title }}
32
+            </div>
32 33
           </div>
33 34
         </el-form-item>
34 35
         <el-form-item>
@@ -37,7 +38,7 @@
37 38
             <el-input
38 39
               class="phoneInput"
39 40
               v-model="psd"
40
-              placeholder="请输入密码"
41
+              placeholder="请填写新密码"
41 42
               show-password
42 43
               clearable
43 44
             ></el-input>
@@ -72,9 +73,8 @@
72 73
 
73 74
 <script>
74 75
 // import { getCode, NextStep } from "@/api/login/login";
75
-import {
76
-  getCodeInit,getVerifyCode,forgetPassWord
77
-} from '@/api/login'
76
+import "@/styles/newStyle.scss";
77
+import { getCodeInit, getVerifyCode, forgetPassWord } from "@/api/login";
78 78
 import { checkMobile } from "@/utils/tools";
79 79
 import { hex_md5 } from "@/utils/md5";
80 80
 
@@ -94,7 +94,7 @@ export default {
94 94
       contact: false,
95 95
       count_downing: false,
96 96
       count_down: 0,
97
-      aespass:"",
97
+      aespass: "",
98 98
       forgetForm: {
99 99
         phone: "",
100 100
         code: ""
@@ -112,35 +112,35 @@ export default {
112 112
       codeshowtwo: true
113 113
     };
114 114
   },
115
-  created(){
116
-    this.GetCodeInit()
115
+  created() {
116
+    this.GetCodeInit();
117 117
   },
118 118
   methods: {
119
-    modifyAndLogin(){
119
+    modifyAndLogin() {
120 120
       if (this.forgetForm.phone.trim().length == 0) {
121 121
         this.$toast({
122
-          message:"手机号码不能为空!"
122
+          message: "手机号码不能为空!"
123 123
         });
124
-        return
124
+        return;
125 125
       }
126 126
       if (!checkMobile(this.forgetForm.phone)) {
127 127
         this.$toast({
128
-          message:"请填写正确的手机号码!"
128
+          message: "请填写正确的手机号码!"
129 129
         });
130
-        return
130
+        return;
131 131
       }
132 132
       if (this.forgetForm.code.trim().length == 0) {
133 133
         this.$toast({
134
-          message:"验证码不能为空!"
134
+          message: "验证码不能为空!"
135 135
         });
136
-        return
136
+        return;
137 137
       }
138 138
 
139 139
       let params = {
140 140
         mobile: this.forgetForm.phone,
141 141
         code: this.forgetForm.code,
142
-        password: hex_md5(this.psd),
143
-      }
142
+        password: hex_md5(this.psd)
143
+      };
144 144
       forgetPassWord(params).then(response => {
145 145
         if (response.data.state === 1) {
146 146
           var user = response.data.data.user;
@@ -152,7 +152,7 @@ export default {
152 152
           var filed_list = response.data.data.filed_list;
153 153
 
154 154
           this.$store.dispatch("InitUserInfo", {
155
-            admin:admin,
155
+            admin: admin,
156 156
             user: user,
157 157
             org: org,
158 158
             subscibe: subscibe,
@@ -160,45 +160,43 @@ export default {
160 160
             filed_list: filed_list
161 161
           });
162 162
           this.$store.dispatch("SetConfigList", config_list);
163
-          this.$router.replace("/myIndex")
164
-
165
-          }
166
-      })
163
+          this.$router.replace("/homeIndex");
164
+        }
165
+      });
167 166
     },
168
-    GetCodeInit(){
167
+    GetCodeInit() {
169 168
       getCodeInit().then(response => {
170 169
         if (response.data.state === 1) {
171
-          this.aespass = response.data.data.aespass
172
-
170
+          this.aespass = response.data.data.aespass;
173 171
         }
174
-      })
172
+      });
175 173
     },
176 174
     getVerifyCode() {
177 175
       if (this.forgetForm.phone.length == 0) {
178 176
         this.$toast({
179
-          message:"手机号码不能为空!"
177
+          message: "手机号码不能为空!"
180 178
         });
181
-        return
179
+        return;
182 180
       }
183 181
       if (!checkMobile(this.forgetForm.phone)) {
184 182
         this.$toast({
185
-          message:"请填写正确的手机号码!"
183
+          message: "请填写正确的手机号码!"
186 184
         });
187
-        return
185
+        return;
188 186
       }
189 187
 
190 188
       if (!this.count_downing) {
191 189
         let parms = {
192 190
           phone: this.forgetForm.phone,
193
-          aespass: this.aespass,
194
-        }
191
+          aespass: this.aespass
192
+        };
195 193
         getVerifyCode(parms).then(response => {
196 194
           if (response.data.state === 1) {
197 195
             this.count_downing = true;
198 196
             this.count_down = 61;
199 197
             this.countDown();
200 198
           }
201
-        })
199
+        });
202 200
       }
203 201
     },
204 202
 

+ 3 - 0
src/pages/home/index.vue View File

@@ -112,6 +112,8 @@
112 112
 </template>
113 113
 
114 114
 <script>
115
+import "../../styles/newStyle.scss";
116
+import { setRem } from "@/libs/functionRem";
115 117
 export default {
116 118
   data() {
117 119
     return {
@@ -138,6 +140,7 @@ export default {
138 140
   created() {
139 141
     const id = this.$route.query.id;
140 142
     // this.getAllOrgName(id);
143
+    setRem();
141 144
   }
142 145
 };
143 146
 </script>

+ 73 - 72
src/pages/home/login.vue View File

@@ -8,7 +8,7 @@
8 8
         <el-form ref="LoginForm" :model="LoginForm" :rules="rules">
9 9
           <el-form-item required prop="tel">
10 10
             <el-input
11
-              placeholder="请输入手机号码"
11
+              placeholder="请填写手机号码"
12 12
               prefix-icon="el-icon-mobile"
13 13
               v-model="LoginForm.tel"
14 14
               clearable
@@ -19,7 +19,7 @@
19 19
           </el-form-item>
20 20
           <el-form-item>
21 21
             <el-input
22
-              placeholder="请输入密码"
22
+              placeholder="请填写密码"
23 23
               prefix-icon="el-icon-lock"
24 24
               v-model="LoginForm.psd"
25 25
               show-password
@@ -38,22 +38,21 @@
38 38
       </div>
39 39
     </div>
40 40
     <div class="agreeBox">
41
-      <van-checkbox v-model="checked" shape="square"
42
-      >我已阅读并同意</van-checkbox
41
+      <van-checkbox v-model="checked" shape="square" icon-size="14px"
42
+        >我已阅读并同意</van-checkbox
43 43
       ><span class="newColor" @click="agree()">《隐私服务协议》</span
44
-    ><span class="newColor" @click="agree1()">《用户协议》</span>
44
+      ><span class="newColor" @click="agree1()">《用户协议》</span>
45 45
     </div>
46 46
   </div>
47 47
 </template>
48 48
 
49
-
50
-
51
-
52 49
 <script>
50
+import "../../styles/newStyle.scss";
53 51
 import { loginByPwd } from "@/api/login";
54 52
 import { hex_md5 } from "@/utils/md5";
55 53
 import { Toast } from "vant";
56 54
 import { checkMobile } from "@/utils/tools";
55
+import { setRem } from "@/libs/functionRem";
57 56
 
58 57
 export default {
59 58
   name: "Home",
@@ -90,6 +89,8 @@ export default {
90 89
   },
91 90
 
92 91
   created() {
92
+    setRem();
93
+    window.callJsFunction = this.callJsFunction
93 94
   },
94 95
 
95 96
   methods: {
@@ -123,7 +124,6 @@ export default {
123 124
       }
124 125
     },
125 126
 
126
-
127 127
     submitForm() {
128 128
       loginByPwd(this.LoginForm.tel, hex_md5(this.LoginForm.psd)).then(rs => {
129 129
         var resp = rs.data;
@@ -141,7 +141,7 @@ export default {
141 141
           var filed_list = resp.data.filed_list;
142 142
 
143 143
           this.$store.dispatch("InitUserInfo", {
144
-            admin:admin,
144
+            admin: admin,
145 145
             user: user,
146 146
             org: org,
147 147
             subscibe: subscibe,
@@ -149,37 +149,38 @@ export default {
149 149
             filed_list: filed_list
150 150
           });
151 151
           this.$store.dispatch("SetConfigList", config_list);
152
-          this.$router.replace({ path: "/myIndex" });
152
+          this.$router.replace({ path: "/homeIndex" });
153
+
153 154
         } else {
154 155
           this.$toast({
155 156
             message: resp.msg
156 157
           });
157 158
         }
158 159
       });
159
-    }, agree() {
160
+    },
161
+    agree() {
160 162
       this.$router.push({ path: "/privacy" });
161 163
     },
162 164
     agree1() {
163 165
       this.$router.push({ path: "/userAgreement" });
164 166
     }
165
-
166 167
   }
167 168
 };
168 169
 </script>
169 170
 
170 171
 <style lang="scss" scoped>
171
-  .page_login {
172
-    overflow: hidden;
173
-    height: 100%;
172
+.page_login {
173
+  overflow: hidden;
174
+  height: 100%;
174 175
   .loginTop {
175 176
     width: 100%;
176
-  img {
177
-    width: 7.75rem;
178
-    height: 2.5rem;
179
-    border: none;
180
-    margin: 6.25rem auto 3.75rem;
181
-    display: block;
182
-  }
177
+    img {
178
+      width: 7.75rem;
179
+      height: 2.5rem;
180
+      border: none;
181
+      margin: 6.25rem auto 3.75rem;
182
+      display: block;
183
+    }
183 184
   }
184 185
   .loginBottom {
185 186
     width: 23.4375rem;
@@ -198,9 +199,9 @@ export default {
198 199
     font-size: 0.8125rem;
199 200
     margin: 3.75rem auto 0;
200 201
 
201
-  .newColor {
202
-    color: #338afb;
203
-  }
202
+    .newColor {
203
+      color: #338afb;
204
+    }
204 205
   }
205 206
   .login {
206 207
     width: 19.25rem;
@@ -215,15 +216,15 @@ export default {
215 216
   .login2 {
216 217
     margin-top: 1.75rem;
217 218
     font-size: 0.8125rem;
218
-    color: rgba(81, 119, 238, 1);
219
-  > p:first-child {
220
-    float: left;
221
-    margin-left: 3rem;
222
-  }
223
-  .register {
224
-    margin-left: 17.4375rem;
225 219
     color: #1a8cff;
226
-  }
220
+    > p:first-child {
221
+      float: left;
222
+      margin-left: 3rem;
223
+    }
224
+    .register {
225
+      margin-left: 17.4375rem;
226
+      color: #1a8cff;
227
+    }
227 228
   }
228 229
   .login3 {
229 230
     width: 19.25rem;
@@ -235,51 +236,51 @@ export default {
235 236
     color: #fff;
236 237
     text-align: center;
237 238
   }
238
-  }
239
+}
239 240
 
240
-  .el-form-item__error {
241
-    margin-left: 2.5rem;
242
-  }
243
-  .el-button--medium {
244
-    padding: 0;
245
-  }
241
+.el-form-item__error {
242
+  margin-left: 2.5rem;
243
+}
244
+.el-button--medium {
245
+  padding: 0;
246
+}
246 247
 
247
-  .el-message {
248
-    min-width: 20rem;
249
-  }
248
+.el-message {
249
+  min-width: 20rem;
250
+}
250 251
 </style>
251 252
 <style lang="scss">
252
-  .loginBottom {
253
+.loginBottom {
253 254
   .el-form-item {
254 255
     margin-bottom: 0;
255 256
   }
256 257
   .ipts {
257
-  .el-icon-circle-close {
258
-    margin-right: 0.625rem;
259
-  }
260
-  .el-input {
261
-    display: block;
262
-    margin: 0 auto;
263
-    width: 19.0625rem;
264
-    border-bottom: 1px solid #e6e6e6;
265
-    color: rgba(155, 155, 155, 1);
266
-    padding-left: 0.75rem;
267
-    box-sizing: border-box;
268
-    height: 3.375rem;
269
-    line-height: 3.375rem;
270
-    font-size: 1rem;
271
-  }
272
-  .el-input__inner {
273
-    border: none;
274
-    font-size: 1rem;
275
-  }
276
-  .el-input__prefix {
277
-    font-size: 1.5rem;
278
-  }
279
-  .el-input__icon {
280
-    font-size: 1.5rem;
281
-    line-height: 3.375rem;
282
-  }
283
-  }
258
+    .el-icon-circle-close {
259
+      margin-right: 0.625rem;
260
+    }
261
+    .el-input {
262
+      display: block;
263
+      margin: 0 auto;
264
+      width: 19.0625rem;
265
+      border-bottom: 1px solid #e6e6e6;
266
+      color: rgba(155, 155, 155, 1);
267
+      padding-left: 0.75rem;
268
+      box-sizing: border-box;
269
+      height: 3.375rem;
270
+      line-height: 3.375rem;
271
+      font-size: 1rem;
272
+    }
273
+    .el-input__inner {
274
+      border: none;
275
+      font-size: 1rem;
276
+    }
277
+    .el-input__prefix {
278
+      font-size: 1.5rem;
279
+    }
280
+    .el-input__icon {
281
+      font-size: 1.5rem;
282
+      line-height: 3.375rem;
283
+    }
284 284
   }
285
+}
285 286
 </style>

+ 38 - 38
src/pages/home/noJoinedGroup/index.vue View File

@@ -18,48 +18,48 @@
18 18
   </div>
19 19
 </template>
20 20
 <script>
21
-  import {login} from '@/api/login';
21
+import "@/styles/newStyle.scss";
22
+import { login } from "@/api/login";
22 23
 
23
-  export default {
24
-    data() {
25
-      return {
26
-      };
24
+export default {
25
+  data() {
26
+    return {};
27
+  },
28
+  methods: {
29
+    goCreateOrg() {
30
+      this.$router.push("/createorg");
27 31
     },
28
-    methods: {
29
-      goCreateOrg(){
30
-        this.$router.push("/createorg")
31
-      },goHome(){
32
-        login().then(response => {
33
-          if (response.data.state === 1) {
34
-            var user = response.data.data.user;
35
-            var admin = response.data.data.admin;
36
-            var org = response.data.data.org;
37
-            var subscibe = response.data.data.subscibe;
38
-            var config_list = response.data.data.config_list;
39
-            var template_info = response.data.data.template_info;
40
-            var filed_list = response.data.data.filed_list;
41
-            this.$store.dispatch("InitUserInfo", {
42
-              admin:admin,
43
-              user: user,
44
-              org: org,
45
-              subscibe: subscibe,
46
-              template_info: template_info,
47
-              filed_list: filed_list
48
-            });
49
-            this.$store.dispatch("SetConfigList", config_list);
50
-            this.$router.replace("/myIndex")
51
-          }else{
52
-            this.$toast({
53
-              message:response.data.msg
54
-            });
55
-          }
56
-        })
57
-      }
58
-    },
59
-  };
32
+    goHome() {
33
+      login().then(response => {
34
+        if (response.data.state === 1) {
35
+          var user = response.data.data.user;
36
+          var admin = response.data.data.admin;
37
+          var org = response.data.data.org;
38
+          var subscibe = response.data.data.subscibe;
39
+          var config_list = response.data.data.config_list;
40
+          var template_info = response.data.data.template_info;
41
+          var filed_list = response.data.data.filed_list;
42
+          this.$store.dispatch("InitUserInfo", {
43
+            admin: admin,
44
+            user: user,
45
+            org: org,
46
+            subscibe: subscibe,
47
+            template_info: template_info,
48
+            filed_list: filed_list
49
+          });
50
+          this.$store.dispatch("SetConfigList", config_list);
51
+          this.$router.replace("/homeIndex");
52
+        } else {
53
+          this.$toast({
54
+            message: response.data.msg
55
+          });
56
+        }
57
+      });
58
+    }
59
+  }
60
+};
60 61
 </script>
61 62
 
62
-
63 63
 <style lang="scss" scoped>
64 64
 .page_noJoinedGroup {
65 65
   height: 100%;

+ 53 - 59
src/pages/home/noPassword/index.vue View File

@@ -11,7 +11,7 @@
11 11
             <i class="el-icon-mobile mobile"></i>
12 12
             <el-input
13 13
               class="phoneInput"
14
-              placeholder="请输入手机号码"
14
+              placeholder="请填写手机号码"
15 15
               v-model="NoPassForm.phone"
16 16
               v-on:input="watchNum"
17 17
               :maxlength="11"
@@ -25,13 +25,14 @@
25 25
             <el-input
26 26
               class="yzm"
27 27
               v-model="NoPassForm.code"
28
-              placeholder="请输入验证码"
28
+              placeholder="请填写验证码"
29 29
               v-on:input="watchNum"
30 30
             ></el-input>
31 31
             <div>
32
-              <div class="getCode" @click="getVerifyCode()">{{code_btn_title}}</div>
32
+              <div class="getCode" @click="getVerifyCode()">
33
+                {{ code_btn_title }}
34
+              </div>
33 35
             </div>
34
-
35 36
           </div>
36 37
         </el-form-item>
37 38
       </el-form>
@@ -41,7 +42,7 @@
41 42
     </div>
42 43
     <div class="logintwo" v-show="loginshowtwo">登录</div>
43 44
     <div class="agreeBox">
44
-      <van-checkbox v-model="checked" shape="square"
45
+      <van-checkbox v-model="checked" shape="square" icon-size="14px"
45 46
         >我已阅读并同意</van-checkbox
46 47
       ><span class="newColor" @click="agree()">《隐私服务协议》</span
47 48
       ><span class="newColor" @click="agree1()">《用户协议》</span>
@@ -71,10 +72,9 @@
71 72
 </template>
72 73
 
73 74
 <script>
75
+import "@/styles/newStyle.scss";
74 76
 import { checkMobile } from "@/utils/tools";
75
-import {
76
-  getCodeInit,getVerifyCode,loginByCode
77
-} from '@/api/login'
77
+import { getCodeInit, getVerifyCode, loginByCode } from "@/api/login";
78 78
 export default {
79 79
   data() {
80 80
     var checkMobileRule = (rule, value, callback) => {
@@ -109,46 +109,43 @@ export default {
109 109
       codeshowtwo: true
110 110
     };
111 111
   },
112
-  created(){
113
-    this.GetCodeInit()
112
+  created() {
113
+    this.GetCodeInit();
114 114
   },
115 115
   methods: {
116
-    GetCodeInit(){
116
+    GetCodeInit() {
117 117
       getCodeInit().then(response => {
118 118
         if (response.data.state === 1) {
119
-          this.aespass = response.data.data.aespass
120
-
119
+          this.aespass = response.data.data.aespass;
121 120
         }
122
-      })
121
+      });
123 122
     },
124 123
     getVerifyCode() {
125 124
       if (this.NoPassForm.phone.length == 0) {
126 125
         this.$toast({
127
-          message:"手机号码不能为空!"
126
+          message: "手机号码不能为空!"
128 127
         });
129
-        return
128
+        return;
130 129
       }
131 130
       if (!checkMobile(this.NoPassForm.phone)) {
132 131
         this.$toast({
133
-          message:"请填写正确的手机号码!"
132
+          message: "请填写正确的手机号码!"
134 133
         });
135
-        return
134
+        return;
136 135
       }
137 136
 
138
-
139
-
140 137
       if (!this.count_downing) {
141 138
         let parms = {
142 139
           phone: this.NoPassForm.phone,
143
-          aespass: this.aespass,
144
-        }
140
+          aespass: this.aespass
141
+        };
145 142
         getVerifyCode(parms).then(response => {
146 143
           if (response.data.state === 1) {
147 144
             this.count_downing = true;
148 145
             this.count_down = 61;
149 146
             this.countDown();
150 147
           }
151
-        })
148
+        });
152 149
       }
153 150
     },
154 151
     countDown: function() {
@@ -167,61 +164,57 @@ export default {
167 164
       window.location.href = "tel://075586526342";
168 165
     },
169 166
     NoPassToLogin(formName) {
170
-
171 167
       this.$refs[formName].validate(valid => {
172 168
         if (valid) {
173 169
           if (this.NoPassForm.phone.length == 0) {
174 170
             this.$toast({
175
-              message:"手机号码不能为空!"
171
+              message: "手机号码不能为空!"
176 172
             });
177
-            return
173
+            return;
178 174
           }
179 175
           if (!checkMobile(this.NoPassForm.phone)) {
180 176
             this.$toast({
181
-              message:"请填写正确的手机号码!"
177
+              message: "请填写正确的手机号码!"
182 178
             });
183
-            return
179
+            return;
184 180
           }
185 181
           if (this.NoPassForm.code.length == 0) {
186 182
             this.$toast({
187
-              message:"验证码不能为空!"
183
+              message: "验证码不能为空!"
188 184
             });
189
-            return
185
+            return;
190 186
           }
191 187
 
192
-
193 188
           let params = {
194 189
             mobile: this.NoPassForm.phone,
195 190
             code: this.NoPassForm.code
196
-          }
197
-          loginByCode(params).then(
198
-            response => {
199
-              if (response.data.state === 1) {
200
-                var user = response.data.data.user;
201
-                var admin = response.data.data.admin;
202
-                var org = response.data.data.org;
203
-                var subscibe = response.data.data.subscibe;
204
-                var config_list = response.data.data.config_list;
205
-                var template_info = response.data.data.template_info;
206
-                var filed_list = response.data.data.filed_list;
191
+          };
192
+          loginByCode(params).then(response => {
193
+            if (response.data.state === 1) {
194
+              var user = response.data.data.user;
195
+              var admin = response.data.data.admin;
196
+              var org = response.data.data.org;
197
+              var subscibe = response.data.data.subscibe;
198
+              var config_list = response.data.data.config_list;
199
+              var template_info = response.data.data.template_info;
200
+              var filed_list = response.data.data.filed_list;
207 201
 
208
-                this.$store.dispatch("InitUserInfo", {
209
-                  admin:admin,
210
-                  user: user,
211
-                  org: org,
212
-                  subscibe: subscibe,
213
-                  template_info: template_info,
214
-                  filed_list: filed_list
215
-                });
216
-                this.$store.dispatch("SetConfigList", config_list);
217
-                this.$router.replace("/myIndex")
218
-              } else {
219
-                this.$toast({
220
-                  message: resp.data.msg
221
-                });
222
-              }
202
+              this.$store.dispatch("InitUserInfo", {
203
+                admin: admin,
204
+                user: user,
205
+                org: org,
206
+                subscibe: subscibe,
207
+                template_info: template_info,
208
+                filed_list: filed_list
209
+              });
210
+              this.$store.dispatch("SetConfigList", config_list);
211
+              this.$router.replace("/homeIndex");
212
+            } else {
213
+              this.$toast({
214
+                message: resp.data.msg
215
+              });
223 216
             }
224
-          );
217
+          });
225 218
         }
226 219
       });
227 220
     },
@@ -244,7 +237,8 @@ export default {
244 237
     },
245 238
     change(val) {
246 239
       this.NoPassForm.phone = val.replace(/[^0-9]+/g, "");
247
-    },agree() {
240
+    },
241
+    agree() {
248 242
       this.$router.push({ path: "/privacy" });
249 243
     },
250 244
     agree1() {

+ 38 - 36
src/pages/home/register/name.vue View File

@@ -11,7 +11,7 @@
11 11
         <span class="problem">请问你的姓名是?</span>
12 12
       </div>
13 13
       <div class="inputBox">
14
-        <van-field v-model="name" placeholder="请输入用户名"/>
14
+        <van-field v-model="name" placeholder="请输入用户名" />
15 15
       </div>
16 16
       <div class="next" @click="setName()">下一步</div>
17 17
     </div>
@@ -19,44 +19,44 @@
19 19
 </template>
20 20
 
21 21
 <script>
22
-  import {setName} from '@/api/login';
23
-
24
-  export default {
25
-    data() {
26
-      return {
27
-        name: '',
22
+import "../../../styles/newStyle.scss";
23
+import { setName } from "@/api/login";
24
+import { setRem } from "@/libs/functionRem";
25
+
26
+export default {
27
+  data() {
28
+    return {
29
+      name: ""
30
+    };
31
+  },
32
+  created() {
33
+    setRem();
34
+  },
35
+  methods: {
36
+    setName() {
37
+      if (this.name.trim().length == 0) {
38
+        this.$message.error("名字不能为空!");
39
+        return;
40
+      }
41
+      let params = {
42
+        name: this.name
28 43
       };
29
-    },
30
-    methods: {
31
-        setName(){
32
-          if(this.name.trim().length == 0){
33
-            this.$message.error("名字不能为空!");
34
-            return
35
-          }
36
-          let params = {
37
-            name : this.name
38
-          }
39
-          setName(params).then(
40
-            response => {
41
-              if (response.data.state === 1) {
42
-                this.$router.replace("/join")
43
-              } else {
44
-                this.$message.error(response.data.msg);
45
-              }
46
-            }
47
-          );
44
+      setName(params).then(response => {
45
+        if (response.data.state === 1) {
46
+          this.$router.replace("/join");
47
+        } else {
48
+          this.$message.error(response.data.msg);
48 49
         }
49
-
50
-
51
-    },
52
-  };
50
+      });
51
+    }
52
+  }
53
+};
53 54
 </script>
54 55
 
55
-
56 56
 <style lang="scss" scoped>
57
-  .page_getName {
58
-    height: 100%;
59
-    overflow: hidden;
57
+.page_getName {
58
+  height: 100%;
59
+  overflow: hidden;
60 60
 
61 61
   .getNameTitle {
62 62
     height: 3.125rem;
@@ -97,6 +97,9 @@
97 97
   .inputBox {
98 98
     border-bottom: 1px solid #e8e8e8;
99 99
     margin-top: 1.25rem;
100
+    .van-cell {
101
+      padding: 10px 0.75rem;
102
+    }
100 103
   }
101 104
 
102 105
   .next {
@@ -110,6 +113,5 @@
110 113
     color: #fff;
111 114
     margin-top: 3.125rem;
112 115
   }
113
-
114
-  }
116
+}
115 117
 </style>

+ 26 - 23
src/pages/home/register/register.vue View File

@@ -10,7 +10,7 @@
10 10
           <div class="phoneLine">
11 11
             <i class="el-icon-mobile mobile"></i>
12 12
             <el-input
13
-              placeholder="请输入手机号码"
13
+              placeholder="请填写手机号码"
14 14
               v-model="registerForm.phone"
15 15
               v-on:input="watchNum"
16 16
               maxlength="11"
@@ -23,10 +23,12 @@
23 23
             <i class="iconfont icon-dunpai dunpai"></i>
24 24
             <el-input
25 25
               v-model="registerForm.code"
26
-              placeholder="请输入验证码"
26
+              placeholder="请填写验证码"
27 27
               v-on:input="watchNum"
28 28
             ></el-input>
29
-            <div class="getCode" @click="getVerifyCode()">{{code_btn_title}}</div>
29
+            <div class="getCode" @click="getVerifyCode()">
30
+              {{ code_btn_title }}
31
+            </div>
30 32
             <!-- <el-button class="getCode" :type="count_downing ? 'info' : 'primary'" :disabled="count_downing" @click="getCodeAction" v-show="codeshow">{{ code_btn_title }}</el-button>
31 33
             <el-button class="getCodetwo" :type="count_downing ? 'info' : 'primary'" :disabled="count_downing" v-show="codeshowtwo">{{ code_btn_title }}</el-button>-->
32 34
           </div>
@@ -38,7 +40,7 @@
38 40
               v-model="registerForm.password"
39 41
               show-password
40 42
               clearable
41
-              placeholder="请输入密码"
43
+              placeholder="请填写密码"
42 44
             ></el-input>
43 45
           </div>
44 46
         </el-form-item>
@@ -61,7 +63,7 @@
61 63
     </div>
62 64
     <div class="logintwo" v-show="loginshowtwo">下一步</div>
63 65
     <div class="agreeBox">
64
-      <van-checkbox v-model="checked" shape="square"
66
+      <van-checkbox v-model="checked" shape="square" icon-size="14px"
65 67
         >我已阅读并同意</van-checkbox
66 68
       ><span class="newColor">《隐私服务协议》</span
67 69
       ><span class="newColor">《用户协议》</span>
@@ -91,8 +93,10 @@
91 93
 </template>
92 94
 
93 95
 <script>
96
+import "@/styles/newStyle.scss";
94 97
 import { checkMobile, checkPassWordTwo } from "@/utils/tools";
95
-import {getCodeInit,getVerifyCode,register} from '@/api/login';
98
+import { getCodeInit, getVerifyCode, register } from "@/api/login";
99
+
96 100
 import { hex_md5 } from "@/utils/md5";
97 101
 
98 102
 export default {
@@ -140,47 +144,46 @@ export default {
140 144
       loginshowtwo: false,
141 145
       codeshow: false,
142 146
       codeshowtwo: true,
143
-      aespass:"",
147
+      aespass: ""
144 148
     };
145 149
   },
146
-  created(){
147
-    this.GetCodeInit()
150
+  created() {
151
+    this.GetCodeInit();
148 152
   },
149 153
   methods: {
150
-    GetCodeInit(){
154
+    GetCodeInit() {
151 155
       getCodeInit().then(response => {
152 156
         if (response.data.state === 1) {
153
-          this.aespass = response.data.data.aespass
154
-
157
+          this.aespass = response.data.data.aespass;
155 158
         }
156
-      })
159
+      });
157 160
     },
158 161
     getVerifyCode() {
159 162
       if (this.registerForm.phone.length == 0) {
160 163
         this.$toast({
161
-          message:"手机号码不能为空!"
164
+          message: "手机号码不能为空!"
162 165
         });
163
-        return
166
+        return;
164 167
       }
165 168
       if (!checkMobile(this.registerForm.phone)) {
166 169
         this.$toast({
167
-          message:"请填写正确的手机号码!"
170
+          message: "请填写正确的手机号码!"
168 171
         });
169
-        return
172
+        return;
170 173
       }
171 174
 
172 175
       if (!this.count_downing) {
173 176
         let parms = {
174 177
           phone: this.registerForm.phone,
175
-          aespass: this.aespass,
176
-        }
178
+          aespass: this.aespass
179
+        };
177 180
         getVerifyCode(parms).then(response => {
178 181
           if (response.data.state === 1) {
179 182
             this.count_downing = true;
180 183
             this.count_down = 61;
181 184
             this.countDown();
182 185
           }
183
-        })
186
+        });
184 187
       }
185 188
     },
186 189
 
@@ -217,11 +220,11 @@ export default {
217 220
           let params = {
218 221
             mobile: this.registerForm.phone,
219 222
             password: hex_md5(this.psd),
220
-            code: this.registerForm.code,
221
-          }
223
+            code: this.registerForm.code
224
+          };
222 225
           register(params).then(response => {
223 226
             if (response.data.state === 1) {
224
-              this.$router.push("/setname")
227
+              this.$router.push("/setname");
225 228
             } else {
226 229
               this.$toast({
227 230
                 message: response.data.msg

+ 41 - 35
src/pages/home/verifyToken.vue View File

@@ -5,43 +5,49 @@
5 5
 </template>
6 6
 
7 7
 <script>
8
-  import {
9
-    isLogin,
10
-  } from '@/api/login'
8
+import { setRem } from "@/libs/functionRem";
9
+import { isLogin } from "@/api/login";
11 10
 
12
-  export default {
13
-    name: "verifyToken",
14
-    created() {
15
-      isLogin().then(response => {
16
-        if (response.data.state === 1) {
17
-          var data = response.data.data
18
-          if(data.isLogin){ //登录
19
-            var admin = data.admin;
20
-            var user = data.user;
21
-            var org = data.org;
22
-            var subscibe = data.subscibe;
23
-            var config_list = data.config_list;
24
-            var template_info = data.template_info;
25
-            var filed_list = data.filed_list;
26
-            this.$store.dispatch("InitUserInfo", {
27
-              admin:admin,
28
-              user: user,
29
-              org: org,
30
-              subscibe: subscibe,
31
-              template_info: template_info,
32
-              filed_list: filed_list
33
-            });
34
-            this.$store.dispatch("SetConfigList", config_list);
35
-            this.$router.replace("/myIndex")
36
-          }else{ //未登录
37
-            this.$router.replace("/login")
38
-          }
11
+export default {
12
+  name: "verifyToken",
13
+  created() {
14
+    window.callJsFunction = this.callJsFunction
15
+    setRem();
16
+    isLogin().then(response => {
17
+      if (response.data.state === 1) {
18
+        var data = response.data.data;
19
+        if (data.isLogin) {
20
+          //登录
21
+          var admin = data.admin;
22
+          var user = data.user;
23
+          var org = data.org;
24
+          var subscibe = data.subscibe;
25
+          var config_list = data.config_list;
26
+          var template_info = data.template_info;
27
+          var filed_list = data.filed_list;
28
+          this.$store.dispatch("InitUserInfo", {
29
+            admin: admin,
30
+            user: user,
31
+            org: org,
32
+            subscibe: subscibe,
33
+            template_info: template_info,
34
+            filed_list: filed_list
35
+          });
36
+          this.$store.dispatch("SetConfigList", config_list);
37
+          this.$router.replace("/homeIndex");
38
+        } else {
39
+          //未登录
40
+          this.$router.replace("/login");
39 41
         }
40
-      })
42
+      }
43
+    });
44
+  },methods:{
45
+    callJsFunction(cookieStr) {
46
+      console.log(cookieStr)
47
+
41 48
     }
42
-  }
49
+  },
50
+};
43 51
 </script>
44 52
 
45
-<style scoped>
46
-
47
-</style>
53
+<style scoped></style>

+ 17 - 33
src/pages/homeIndex/index.vue View File

@@ -33,20 +33,20 @@
33 33
     </div>
34 34
     <div class="noticeBox">
35 35
       <i class="iconfont icon-public-notice notice"></i>
36
-      <div class="noticeNews">
37
-        <div>
38
-          今日上机:
39
-          <span>6&ensp;人</span>
40
-        </div>
41
-        <div>
42
-          今日透析:
43
-          <span>6&ensp;人</span>
44
-        </div>
45
-        <div>
46
-          今日生日:
47
-          <span>6&ensp;人</span>
48
-        </div>
49
-      </div>
36
+      <!--<div class="noticeNews">-->
37
+        <!--<div>-->
38
+          <!--今日上机:-->
39
+          <!--<span>6&ensp;人</span>-->
40
+        <!--</div>-->
41
+        <!--<div>-->
42
+          <!--今日透析:-->
43
+          <!--<span>6&ensp;人</span>-->
44
+        <!--</div>-->
45
+        <!--<div>-->
46
+          <!--今日生日:-->
47
+          <!--<span>6&ensp;人</span>-->
48
+        <!--</div>-->
49
+      <!--</div>-->
50 50
     </div>
51 51
     <div class="background1"></div>
52 52
     <div class="management">
@@ -131,6 +131,7 @@
131 131
 // import "../libs/rem.js";
132 132
 import "../../libs/rem.js";
133 133
 import "../../styles/newStyle.scss";
134
+import { setRem } from "@/libs/functionRem";
134 135
 export default {
135 136
   data() {
136 137
     return {
@@ -148,26 +149,9 @@ export default {
148 149
     }
149 150
   },
150 151
   created() {
151
-    const baseSize = 32;
152
-    // 设置 rem 函数
153
-    function setRem() {
154
-      const scale = document.documentElement.clientWidth / 750;
155
-      document.documentElement.style.fontSize =
156
-        baseSize * Math.min(scale, 2) + "px";
157
-      //   // 320 默认大小16px; 320px = 20rem ;每个元素px基础上/16
158
-      //   let htmlWidth =
159
-      //     document.documentElement.clientWidth || document.body.clientWidth;
160
-      //   //得到html的Dom元素
161
-      //   let htmlDom = document.getElementsByTagName("html")[0];
162
-      //   //设置根元素字体大小
163
-      //   htmlDom.style.fontSize = htmlWidth / 23.4375 + "px";
164
-    }
165
-    // 初始化
152
+    Toast("请同意隐私服务协议");
153
+
166 154
     setRem();
167
-    // 改变窗口大小时重新设置 rem
168
-    window.onresize = function() {
169
-      setRem();
170
-    };
171 155
   }
172 156
 };
173 157
 </script>

+ 11 - 23
src/pages/patientManagement/index.vue View File

@@ -18,7 +18,12 @@
18 18
       </div>
19 19
     </van-sticky>
20 20
     <div class="patientBox">
21
-      <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
21
+      <van-list
22
+        v-model="loading"
23
+        :finished="finished"
24
+        finished-text="没有更多了"
25
+        @load="onLoad"
26
+      >
22 27
         <div
23 28
           class="patientOne"
24 29
           v-for="item in patients"
@@ -34,7 +39,9 @@
34 39
 </template>
35 40
 
36 41
 <script>
42
+import "../../styles/resetStyle.scss";
37 43
 import { getBloodDialysisPatient } from "@/api/patient/patient";
44
+import { setRem, setHeight } from "@/libs/functionRem";
38 45
 export default {
39 46
   data() {
40 47
     return {
@@ -74,7 +81,7 @@ export default {
74 81
       getBloodDialysisPatient(this.page, this.limit).then(response => {
75 82
         if (response.data.state == 1) {
76 83
           var patient = response.data.data.patient;
77
-          // console.log("病人信息", patient);
84
+          console.log("病人信息", patient);
78 85
           this.patients = patient;
79 86
           var total = response.data.data.total;
80 87
           this.total = total;
@@ -108,27 +115,8 @@ export default {
108 115
     }
109 116
   },
110 117
   created() {
111
-    const baseSize = 32;
112
-    // 设置 rem 函数
113
-    function setRem() {
114
-      const scale = document.documentElement.clientWidth / 750;
115
-      document.documentElement.style.fontSize =
116
-        baseSize * Math.min(scale, 2) + "px";
117
-      //   // 320 默认大小16px; 320px = 20rem ;每个元素px基础上/16
118
-      //   let htmlWidth =
119
-      //     document.documentElement.clientWidth || document.body.clientWidth;
120
-      //   //得到html的Dom元素
121
-      //   let htmlDom = document.getElementsByTagName("html")[0];
122
-      //   //设置根元素字体大小
123
-      //   htmlDom.style.fontSize = htmlWidth / 23.4375 + "px";
124
-    }
125
-    // 初始化
126 118
     setRem();
127
-    // 改变窗口大小时重新设置 rem
128
-    window.onresize = function() {
129
-      setRem();
130
-    };
131
-
119
+    setHeight();
132 120
     this.getBloodDialysisPatient();
133 121
   }
134 122
 };
@@ -149,7 +137,7 @@ export default {
149 137
   .jiantou {
150 138
     font-size: 1.5rem;
151 139
     font-weight: 600;
152
-    margin-right: 3rem;
140
+    margin-right: 2rem;
153 141
   }
154 142
   .titleName {
155 143
     font-size: 1.125rem;

+ 5 - 20
src/pages/patientManagement/patientManagement.vue View File

@@ -64,10 +64,12 @@
64 64
 </template>
65 65
 
66 66
 <script>
67
+import "../../styles/resetStyle.scss";
67 68
 import { getBloodDialysisPatient } from "@/api/patient/patient";
68 69
 import Slow from "@/pages/patientManagement/components/Slow";
69 70
 import Member from "@/pages/patientManagement/components/Member";
70 71
 import Blood from "@/pages/patientManagement/components/Blood";
72
+import { setRem, setHeight } from "@/libs/functionRem";
71 73
 export default {
72 74
   components: {
73 75
     Slow,
@@ -152,26 +154,8 @@ export default {
152 154
     }
153 155
   },
154 156
   created() {
155
-    const baseSize = 32;
156
-    // 设置 rem 函数
157
-    function setRem() {
158
-      const scale = document.documentElement.clientWidth / 750;
159
-      document.documentElement.style.fontSize =
160
-        baseSize * Math.min(scale, 2) + "px";
161
-      //   // 320 默认大小16px; 320px = 20rem ;每个元素px基础上/16
162
-      //   let htmlWidth =
163
-      //     document.documentElement.clientWidth || document.body.clientWidth;
164
-      //   //得到html的Dom元素
165
-      //   let htmlDom = document.getElementsByTagName("html")[0];
166
-      //   //设置根元素字体大小
167
-      //   htmlDom.style.fontSize = htmlWidth / 23.4375 + "px";
168
-    }
169
-    // 初始化
170 157
     setRem();
171
-    // 改变窗口大小时重新设置 rem
172
-    window.onresize = function() {
173
-      setRem();
174
-    };
158
+    setHeight();
175 159
     this.getBloodDialysisPatient();
176 160
   }
177 161
 };
@@ -192,11 +176,12 @@ export default {
192 176
   .jiantou {
193 177
     font-size: 1.5rem;
194 178
     font-weight: 600;
195
-    margin-right: 3rem;
179
+    margin-right: 2rem;
196 180
   }
197 181
   .titleName {
198 182
     font-size: 1.125rem;
199 183
     font-weight: 600;
184
+    color: #000;
200 185
   }
201 186
   .iconBox {
202 187
     display: flex;

+ 1 - 3
src/pages/patients/addPatient.vue View File

@@ -46,7 +46,6 @@
46 46
             <van-checkbox-group v-model="result" @change="changeMode">
47 47
               <van-checkbox name="1" shape="square">血透患者</van-checkbox>
48 48
               <van-checkbox name="2" shape="square">慢病患者</van-checkbox>
49
-              <!--              <van-checkbox name="c" shape="square">电商患者</van-checkbox>-->
50 49
               <van-checkbox name="3" shape="square">会员患者</van-checkbox>
51 50
             </van-checkbox-group>
52 51
           </div>
@@ -432,7 +431,7 @@ export default {
432 431
       this.show2 = false;
433 432
     },
434 433
     changeMode(val) {
435
-      alert(val);
434
+      // alert(val);
436 435
       if (val == 1) {
437 436
         getBloodPatientInfo(this.patientForm.phone).then(response => {
438 437
           if (response.data.state === 1) {
@@ -610,7 +609,6 @@ export default {
610 609
       }
611 610
 
612 611
       for (let i = 0; i < this.result.length; i++) {
613
-        console.log("判断成立马", this.result[i]);
614 612
         if (this.result[i] == 1) {
615 613
           this.patientForm.bloodPatient = 1;
616 614
         }

File diff suppressed because it is too large
+ 552 - 558
src/pages/patients/editPatient.vue


+ 2 - 2
src/permission.js View File

@@ -8,8 +8,8 @@ router.beforeEach((to, from, next) => {
8 8
   // 线上注释
9 9
   //   next()
10 10
   //   return
11
-  console.log(store.getters.user.user.id)
12
-  if (store.getters.user.user.id == 0) {
11
+  console.log(store.getters.user.admin)
12
+  if (store.getters.user.admin == null) {
13 13
     if (loginWhiteList.indexOf(to.path) !== -1) {
14 14
       next();
15 15
     } else {

+ 10 - 7
src/router/index.js View File

@@ -46,13 +46,10 @@ export default new Router({
46 46
     },
47 47
     // 首页
48 48
     {
49
-      path: '/myIndex',
50
-      name: 'myIndex',
51
-      component: () => import('@/pages/home/index'),
52
-      children: [{
53
-        path: '/homeIndex',
54
-        component: () => import('@/pages/homeIndex/index.vue')
55
-      }]
49
+      path: '/homeIndex',
50
+      name: 'Home',
51
+      component: () => import('@/pages/homeIndex/index')
52
+
56 53
     },
57 54
     // 患者中心
58 55
     {
@@ -78,6 +75,12 @@ export default new Router({
78 75
       name: 'dryweight',
79 76
       component: () => import('@/pages/allDryWeight/index')
80 77
     },
78
+    // 基本信息
79
+    {
80
+      path: '/editPatient',
81
+      name: 'editPatient',
82
+      component: () => import('@/pages/patients/editPatient')
83
+    },
81 84
     //
82 85
     {
83 86
       path: '/patientdetail',

+ 2 - 0
src/styles/newStyle.scss View File

@@ -1,4 +1,6 @@
1 1
 html,
2 2
 body {
3 3
   height: 100%;
4
+  background: #fff;
5
+  color: #000;
4 6
 }