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

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

csx преди 4 години
родител
ревизия
74c4bd87bf
променени са 32 файла, в които са добавени 1676 реда и са изтрити 969 реда
  1. 42 20
      src/api/advice.js
  2. 12 0
      src/api/home.js
  3. 34 11
      src/pages/console/managementConsole/staff_role/editRole/index.vue
  4. 7 4
      src/pages/console/managementConsole/staff_role/functionPurview/index.vue
  5. 273 134
      src/pages/console/managementConsole/staff_role/otherPurview/index.vue
  6. 19 10
      src/pages/console/managementConsole/staff_role/subPurview/index.vue
  7. 5 0
      src/pages/home/verifyToken.vue
  8. 8 1
      src/pages/homeIndex/index.vue
  9. 3 2
      src/pages/main/DialysisArea.vue
  10. 8 1
      src/pages/main/dialog/AcceptsDialog.vue
  11. 4 3
      src/pages/main/dialog/AssessmentDialog.vue
  12. 82 101
      src/pages/main/dialog/ComputerDialog.vue
  13. 1 0
      src/pages/main/dialog/DoubleDialog.vue
  14. 17 2
      src/pages/main/dialog/MonitDialog.vue
  15. 63 62
      src/pages/main/dialog/OrdersDialog.vue
  16. 2 2
      src/pages/main/dialog/OrdersDialog_olddddd.vue
  17. 17 56
      src/pages/main/dialog/PlaneDialog.vue
  18. 94 78
      src/pages/main/dialog/PrescriptionDialog.vue
  19. 7 0
      src/pages/main/dialog/ThorougDialog.vue
  20. 9 0
      src/pages/main/dialog/TreatmentDialog.vue
  21. 10 1
      src/pages/main/dialog/modify_order/ModifyAdviceGroup.vue
  22. 4 1
      src/pages/main/dialog/modify_order/modify_order_form.vue
  23. 2 1
      src/pages/main/dialog/new_order/AddNewOrders.vue
  24. 9 3
      src/pages/main/dialog/subMenu/dryWeightMenu.vue
  25. 1 1
      src/pages/main/dialysis/AdviceTable.vue
  26. 2 2
      src/pages/my/index.vue
  27. 451 0
      src/pages/my/modifyPassword.vue
  28. 1 1
      src/pages/waitingRoom/components/dialog/addMonitor.vue
  29. 480 468
      src/pages/waitingRoom/components/dialog/medicalOrder.vue
  30. 0 1
      src/permission.js
  31. 5 1
      src/router/index.js
  32. 4 2
      src/utils/request.js

+ 42 - 20
src/api/advice.js Целия файл

@@ -7,27 +7,31 @@ export function getAdviceConfig () {
7 7
   })
8 8
 }
9 9
 
10
-export function CreateDoctorAdvice (id, advice) {
10
+export function CreateDoctorAdvice (id, advice, mode) {
11 11
   console.log('id', id)
12 12
   return request({
13
-    url: '/m/api/advice/create?id=' + id,
13
+    url: '/m/api/advice/create?id=' + id +"&mode="+mode,
14 14
     method: 'post',
15 15
     data: advice
16 16
   })
17 17
 }
18
-export function EditDoctorAdvice (id, advice) {
18
+export function EditDoctorAdvice (id, advice,mode) {
19 19
   return request({
20
-    url: '/m/api/advice/edit?id=' + id,
20
+    url: '/m/api/advice/edit?id=' + id+"&mode="+mode,
21 21
     method: 'put',
22
-    data: advice
22
+    data: advice,
23
+    headers:{"Permission":1},
24
+
23 25
   })
24 26
 }
25 27
 
26
-export function StopDoctorAdvice (id, advice) {
28
+export function StopDoctorAdvice (id, advice,mode) {
27 29
   return request({
28
-    url: '/m/api/advice/stop?id=' + id,
30
+    url: '/m/api/advice/stop?id=' + id+"&mode="+mode,
29 31
     method: 'Post',
30
-    data: advice
32
+    data: advice,
33
+    headers:{"Permission":1},
34
+
31 35
   })
32 36
 }
33 37
 
@@ -35,7 +39,9 @@ export function ExecDoctorAdvice (params) {
35 39
   return request({
36 40
     url: '/m/api/advice/exec',
37 41
     method: 'Post',
38
-    params: params
42
+    params: params,
43
+    headers:{"Permission":1},
44
+
39 45
   })
40 46
 }
41 47
 
@@ -43,24 +49,31 @@ export function CheckDoctorAdvice (params) {
43 49
   return request({
44 50
     url: '/m/api/advice/check',
45 51
     method: 'Post',
46
-    params: params
52
+    params: params,
53
+    headers:{"Permission":1},
54
+
47 55
   })
48 56
 }
49 57
 
50 58
 export function DeleteDoctorAdvice (id) {
51 59
   return request({
52
-    url: '/m/api/advice/delete?id=' + id,
53
-    method: 'Delete'
60
+    url: '/m/api/advice/delete?id=' + id+"&mode="+mode,
61
+    method: 'Delete',
62
+    headers:{"Permission":1},
63
+
54 64
   })
55 65
 }
56 66
 
57
-export function DeleteDoctorAdviceNew (group_no, advice_id) {
67
+export function DeleteDoctorAdviceNew (group_no, advice_id,mode,is_sub) {
58 68
   return request({
59 69
     url: '/m/api/newadvice/delete',
60 70
     method: 'Delete',
71
+    headers:{"Permission":1},
61 72
     params: {
62 73
       groupno: group_no,
63
-      advice_id: advice_id
74
+      advice_id: advice_id,
75
+      mode:mode,
76
+      is_sub:is_sub,
64 77
     }
65 78
   })
66 79
 }
@@ -73,25 +86,29 @@ export function getSchedualDoctors (params) {
73 86
   })
74 87
 }
75 88
 
76
-export function batchCreateAdvices (patient_id, group_no, data) {
89
+export function batchCreateAdvices (patient_id, group_no, data,mode) {
77 90
   return request({
78 91
     url: '/m/api/advice/creategroup',
79 92
     method: 'post',
93
+    headers:{"Permission":1},
80 94
     params: {
81 95
       id: patient_id,
82
-      group_no: group_no
96
+      group_no: group_no,
97
+      mode:mode,
83 98
     },
84 99
     data: data
85 100
   })
86 101
 }
87 102
 
88
-export function modifyAdviceGroupStartTime (group_no, start_time_str) {
103
+export function modifyAdviceGroupStartTime (group_no, start_time_str,mode) {
89 104
   return request({
90 105
     url: '/m/api/advice/group/modify_starttime',
91 106
     method: 'post',
107
+    headers:{"Permission":1},
92 108
     params: {
93 109
       group_no: group_no,
94
-      start_time: start_time_str
110
+      start_time: start_time_str,
111
+      mode:mode,
95 112
     }
96 113
   })
97 114
 }
@@ -100,6 +117,7 @@ export function ExecSingleDoctorAdvice (params) {
100 117
   return request({
101 118
     url: '/m/api/advice/exec/single',
102 119
     method: 'Post',
120
+    headers:{"Permission":1},
103 121
     params: params
104 122
   })
105 123
 }
@@ -107,7 +125,9 @@ export function ExecSingleDoctorAdvice (params) {
107 125
 export function DeleteSubDoctorAdvice (params) {
108 126
   return request({
109 127
     url: '/m/api/delete/subadvice?advice_id=' + params,
110
-    method: 'Delete'
128
+    method: 'Delete',
129
+    headers:{"Permission":1},
130
+
111 131
   })
112 132
 }
113 133
 
@@ -122,7 +142,9 @@ export function ModifyExecDoctorAdvice (params) {
122 142
   return request({
123 143
     url: '/m/api/advice/exec/modify',
124 144
     method: 'Post',
125
-    params: params
145
+    params: params,
146
+    headers:{"Permission":1},
147
+
126 148
   })
127 149
 }
128 150
 

+ 12 - 0
src/api/home.js Целия файл

@@ -28,4 +28,16 @@ export function createOrg(params) {
28 28
 }
29 29
 
30 30
 
31
+export function modifyPassword(params) {
32
+  return request({
33
+    url: '/m/api/modifypsw',
34
+    method: 'post',
35
+    params:params,
36
+  })
37
+}
38
+
39
+
40
+
41
+
42
+
31 43
 

+ 34 - 11
src/pages/console/managementConsole/staff_role/editRole/index.vue Целия файл

@@ -7,7 +7,7 @@
7 7
     </div>
8 8
     <div class="roleDescription">
9 9
       <van-field v-model="name" class="input1" required label="角色名称" placeholder="请填写角色名称" readonly>
10
-        <van-button slot="button" size="small" @click="del()">删除角色</van-button>
10
+        <van-button slot="button" size="small" @click="del()" v-if="is_system == 0">删除角色</van-button>
11 11
       </van-field>
12 12
       <van-field v-model="desc" label="角色描述" placeholder="请填写角色描述"/>
13 13
     </div>
@@ -50,10 +50,12 @@
50 50
         checked: false,
51 51
         allPurview: [],
52 52
         rolePurview:null,
53
+        is_system:0,
53 54
         ids:[],
54 55
       };
55 56
     }, created() {
56 57
       setRem()
58
+
57 59
       this.GetAllPurview()
58 60
 
59 61
 
@@ -162,6 +164,8 @@
162 164
             this.rolePurview = response.data.data.role_purview
163 165
             this.name =  response.data.data.role.name
164 166
             this.desc = response.data.data.role.intro
167
+            this.is_system = response.data.data.role.is_system
168
+
165 169
             this.ids = this.rolePurview.PurviewIds.split(',')
166 170
 
167 171
             for(let a = 0; a < this.ids.length; a++ ){
@@ -179,7 +183,26 @@
179 183
           }
180 184
         });
181 185
 
182
-      }, GetAllPurview() {
186
+      },GetOtherPurview(){
187
+        let params = {
188
+          module: 7,
189
+          id: 0,
190
+        }
191
+        GetAllPurview(params).then(response => {
192
+          if (response.data.state === 1) {
193
+            for (let i = 0; i < response.data.data.purviews.length; i++) {
194
+              response.data.data.purviews[i]["no_sub"] = true
195
+              this.allPurview.push(response.data.data.purviews[i])
196
+            }
197
+
198
+          } else {
199
+            this.$toast({
200
+              message: response.data.msg
201
+            });
202
+          }
203
+        });
204
+
205
+      } ,GetAllPurview() {
183 206
         let params = {
184 207
           module: 3,
185 208
           id: 0,
@@ -212,15 +235,15 @@
212 235
               desc: "品牌建设,营销工具",
213 236
               no_sub: false
214 237
             })
215
-            this.allPurview.push({
216
-              module: 0,
217
-              name: "分销商城",
218
-              id: 0,
219
-              icon_url: "https://kuyi.shengws.com/S10.png",
220
-              desc: "一键开店,分销商品",
221
-              no_sub: true
222
-            })
223
-
238
+            // this.allPurview.push({
239
+            //   module: 7,
240
+            //   name: "分销商城",
241
+            //   id: 0,
242
+            //   icon_url: "https://kuyi.shengws.com/S10.png",
243
+            //   desc: "一键开店,分销商品",
244
+            //   no_sub: true
245
+            // })
246
+            this.GetOtherPurview()
224 247
             this.GetRoleInfo(this.$route.query.id)
225 248
 
226 249
 

+ 7 - 4
src/pages/console/managementConsole/staff_role/functionPurview/index.vue Целия файл

@@ -59,7 +59,6 @@
59 59
             }
60 60
           }
61 61
 
62
-
63 62
           let type = ""
64 63
           if (val){
65 64
             type = 1 //打开
@@ -70,6 +69,8 @@
70 69
             id : this.$route.query.id,
71 70
             purview_id:purview_ids,
72 71
             type : type,
72
+            is_all : 1,
73
+            pid: this.pid,
73 74
           }
74 75
           EditFuncPurview(params).then(response => {
75 76
             if (response.data.state === 1) {
@@ -87,9 +88,6 @@
87 88
             }
88 89
           });
89 90
 
90
-
91
-
92
-
93 91
         }else {
94 92
           let purview_ids = ""
95 93
 
@@ -114,6 +112,8 @@
114 112
             id : this.$route.query.id,
115 113
             purview_id:purview_ids,
116 114
             type : type,
115
+            is_all : 1,
116
+            pid: this.pid,
117 117
           }
118 118
           EditFuncPurview(params).then(response => {
119 119
             if (response.data.state === 1) {
@@ -165,6 +165,7 @@
165 165
             id : this.$route.query.id,
166 166
             purview_id:purview_ids,
167 167
             type : type,
168
+            pid : this.pid
168 169
           }
169 170
           EditFuncPurview(params).then(response => {
170 171
             if (response.data.state === 1) {
@@ -199,6 +200,8 @@
199 200
             id : this.$route.query.id,
200 201
             purview_id:purview_ids,
201 202
             type : type,
203
+            pid : this.pid
204
+
202 205
           }
203 206
           EditFuncPurview(params).then(response => {
204 207
             if (response.data.state === 1) {

+ 273 - 134
src/pages/console/managementConsole/staff_role/otherPurview/index.vue Целия файл

@@ -6,7 +6,7 @@
6 6
     </div>
7 7
     <div class="allTitle">
8 8
       <van-cell center title="全部权限">
9
-        <van-switch v-model="checked" slot="right-icon" size="24" />
9
+        <van-switch v-model="checked" slot="right-icon" size="24" @change="allChange"/>
10 10
       </van-cell>
11 11
     </div>
12 12
     <div class="allTitle1">
@@ -20,7 +20,7 @@
20 20
         :title="item.name"
21 21
         v-for="(item, index) in allPurview"
22 22
         :key="index"
23
-        v-if="!item.no_sub"
23
+        v-if="!item.no_sub&&item.pid == 0"
24 24
         @click="toSubPurview(item)"
25 25
       >
26 26
       </van-cell>
@@ -32,143 +32,273 @@
32 32
         :key="index"
33 33
         v-if="item.no_sub"
34 34
       >
35
-        <van-switch v-model="item.isCheck" slot="right-icon" size="24" />
35
+        <van-switch v-model="item.isCheck" slot="right-icon" size="24"/>
36 36
       </van-cell>
37 37
     </div>
38 38
   </div>
39 39
 </template>
40 40
 
41 41
 <script>
42
-import { setRem } from "@/libs/functionRem";
43
-import {
44
-  GetAllPurview,
45
-  GetRoleInfo,
46
-  EditRoleInfo,
47
-  DeleteRoleInfo
48
-} from "@/api/admin_user";
49
-
50
-export default {
51
-  data() {
52
-    return {
53
-      title: "",
54
-      desc: "",
55
-      name: "",
56
-      checked: false,
57
-      allPurview: [],
58
-      ids: [],
59
-      pid: 0,
60
-      module: 0
61
-    };
62
-  },
63
-  created() {
64
-    this.title = this.$route.query.title;
65
-    this.pid = this.$route.query.pid;
66
-    this.module = this.$route.query.module;
67
-    setRem();
68
-    this.GetAllPurview();
69
-
70
-    this.GetRoleInfo(this.$route.query.id);
71
-  },
72
-  methods: {
73
-    toSubPurview(purview) {
74
-      this.$router.push({
75
-        path:
76
-          "/role/subpurview?id=" +
77
-          this.$route.query.id +
78
-          "&pid=" +
79
-          purview.id +
80
-          "&module=" +
81
-          purview.module +
82
-          "&title=" +
83
-          purview.name
84
-      });
85
-    },
86
-    del() {
87
-      let params = {
88
-        role_id: this.$route.query.id,
89
-        enable: false
90
-      };
91
-      DeleteRoleInfo(params).then(response => {
92
-        if (response.data.state === 1) {
93
-          this.$toast({
94
-            message: "删除成功"
95
-          });
96
-          this.$router.go(-1);
97
-        } else {
98
-          this.$toast({
99
-            message: response.data.msg
100
-          });
101
-        }
102
-      });
103
-    },
104
-    editRole() {
105
-      let params = {
106
-        id: this.$route.query.id,
107
-        desc: this.desc
42
+  import {setRem} from "@/libs/functionRem";
43
+  import {DeleteRoleInfo, EditPurview, EditRoleInfo, GetAllPurview, GetRoleInfo} from "@/api/admin_user";
44
+
45
+  export default {
46
+    data() {
47
+      return {
48
+        title: "",
49
+        desc: "",
50
+        name: "",
51
+        checked: false,
52
+        allPurview: [],
53
+        ids: [],
54
+        pid: 0,
55
+        module: 0,
56
+        subPurview: [],
108 57
       };
109
-      EditRoleInfo(params).then(response => {
110
-        if (response.data.state === 1) {
111
-          this.$toast({
112
-            message: "修改成功"
113
-          });
114
-        } else {
115
-          this.$toast({
116
-            message: response.data.msg
117
-          });
118
-        }
119
-      });
120 58
     },
121
-    GetRoleInfo(role_id) {
122
-      let params = {
123
-        id: role_id
124
-      };
125
-      GetRoleInfo(params).then(response => {
126
-        if (response.data.state === 1) {
127
-          this.rolePurview = response.data.data.role_purview;
128
-          this.name = response.data.data.role.name;
129
-          this.desc = response.data.data.role.intro;
130
-          this.ids = this.rolePurview.PurviewIds.split(",");
131
-        } else {
132
-          this.$toast({
133
-            message: response.data.msg
134
-          });
135
-        }
136
-      });
59
+    created() {
60
+      this.title = this.$route.query.title;
61
+      this.pid = this.$route.query.pid;
62
+      this.module = this.$route.query.module;
63
+      setRem();
64
+      this.GetAllPurview();
65
+
66
+      // this.GetRoleInfo(this.$route.query.id);
137 67
     },
68
+    methods: {
69
+      allChange(val) {
70
+        if (val) {
71
+          let purview_ids = ""
138 72
 
139
-    GetAllPurview() {
140
-      let params = {
141
-        module: this.module,
142
-        id: this.pid
143
-      };
144
-      GetAllPurview(params).then(response => {
145
-        if (response.data.state === 1) {
146
-          for (let i = 0; i < response.data.data.purviews.length; i++) {
147
-            var purview = response.data.data.purviews[i].sub_purview;
148
-            if (purview.length > 1) {
149
-              response.data.data.purviews[i]["no_sub"] = false;
73
+          for (let i = 0; i < this.subPurview.length; i++) {
74
+            if (purview_ids.length > 0) {
75
+              purview_ids = purview_ids + "," + this.subPurview[i].id.toString() + "," + this.subPurview[i].pid.toString()
150 76
             } else {
151
-              response.data.data.purviews[i]["no_sub"] = true;
77
+              purview_ids = this.subPurview[i].id.toString() + "," + this.subPurview[i].pid.toString()
78
+
152 79
             }
153
-            response.data.data.purviews[i]["isCheck"] = false;
154
-            this.allPurview.push(response.data.data.purviews[i]);
155 80
           }
81
+
82
+          const obj = {}
83
+          // 去重复
84
+          var purview_arr = purview_ids.split(",").reduce((cur, next) => {
85
+            obj[next] ? '' : obj[next] = true && cur.push(next)
86
+            return cur
87
+          }, [])
88
+
89
+          purview_ids = purview_arr.join(",")
90
+
91
+
92
+          let type = ""
93
+          if (val) {
94
+            type = 1 //打开
95
+          } else {
96
+            type = 2 //关闭
97
+          }
98
+          let params = {
99
+            id: this.$route.query.id,
100
+            purview_id: purview_ids,
101
+            type: type,
102
+          }
103
+          EditPurview(params).then(response => {
104
+            if (response.data.state === 1) {
105
+              this.checked = true
106
+
107
+            } else {
108
+              if(type == 1){
109
+                this.checked = false
110
+              }else{
111
+                this.checked = true
112
+              }
113
+              this.$toast({
114
+                message: response.data.msg
115
+              });
116
+            }
117
+          });
118
+
119
+
156 120
         } else {
157
-          this.$toast({
158
-            message: response.data.msg
121
+          let purview_ids = ""
122
+
123
+          for (let i = 0; i < this.subPurview.length; i++) {
124
+            if (purview_ids.length > 0) {
125
+              purview_ids = purview_ids + "," + this.subPurview[i].id.toString() + "," + this.subPurview[i].pid.toString()
126
+            } else {
127
+              purview_ids = this.subPurview[i].id.toString() + "," + this.subPurview[i].pid.toString()
128
+
129
+            }
130
+          }
131
+
132
+          const obj = {}
133
+          // 去重复
134
+          var purview_arr = purview_ids.split(",").reduce((cur, next) => {
135
+            obj[next] ? '' : obj[next] = true && cur.push(next)
136
+            return cur
137
+          }, [])
138
+
139
+          purview_ids = purview_arr.join(",")
140
+
141
+          let type = ""
142
+          if (val) {
143
+            type = 1 //打开
144
+          } else {
145
+            type = 2 //关闭
146
+          }
147
+          let params = {
148
+            id: this.$route.query.id,
149
+            purview_id: purview_ids,
150
+            type: type,
151
+          }
152
+
153
+          EditPurview(params).then(response => {
154
+            if (response.data.state === 1) {
155
+              this.checked = false
156
+
157
+            } else {
158
+              if(type == 1){
159
+                val.isCheck = false
160
+              }else{
161
+                val.isCheck = true
162
+              }
163
+              this.$toast({
164
+                message: response.data.msg
165
+              });
166
+            }
159 167
           });
168
+
169
+
160 170
         }
161
-      });
171
+      },
172
+
173
+      toSubPurview(purview) {
174
+        this.$router.push({
175
+          path:
176
+            "/role/subpurview?id=" +
177
+            this.$route.query.id +
178
+            "&pid=" +
179
+            purview.id +
180
+            "&module=" +
181
+            purview.module +
182
+            "&title=" +
183
+            purview.name
184
+        });
185
+      },
186
+      del() {
187
+        let params = {
188
+          role_id: this.$route.query.id,
189
+          enable: false
190
+        };
191
+        DeleteRoleInfo(params).then(response => {
192
+          if (response.data.state === 1) {
193
+            this.$toast({
194
+              message: "删除成功"
195
+            });
196
+            this.$router.go(-1);
197
+          } else {
198
+            this.$toast({
199
+              message: response.data.msg
200
+            });
201
+          }
202
+        });
203
+      },
204
+      editRole() {
205
+        let params = {
206
+          id: this.$route.query.id,
207
+          desc: this.desc
208
+        };
209
+        EditRoleInfo(params).then(response => {
210
+          if (response.data.state === 1) {
211
+            this.$toast({
212
+              message: "修改成功"
213
+            });
214
+          } else {
215
+            this.$toast({
216
+              message: response.data.msg
217
+            });
218
+          }
219
+        });
220
+      },
221
+      GetRoleInfo(role_id) {
222
+        let params = {
223
+          id: role_id
224
+        };
225
+        GetRoleInfo(params).then(response => {
226
+          if (response.data.state === 1) {
227
+            this.rolePurview = response.data.data.role_purview;
228
+            this.name = response.data.data.role.name;
229
+            this.desc = response.data.data.role.intro;
230
+            this.ids = this.rolePurview.PurviewIds.split(",");
231
+
232
+            console.log(this.subPurview)
233
+            for (let a = 0; a < this.ids.length; a++) {
234
+              for (let i = 0; i < this.subPurview.length; i++) {
235
+                if (parseInt(this.ids[a]) == this.subPurview[i].id) {
236
+                  this.subPurview[i]["isCheck"] = true
237
+                }
238
+              }
239
+            }
240
+
241
+            //设置全选按键
242
+            var b = 0
243
+            for (let i = 0; i < this.subPurview.length; i++) {
244
+              if (this.subPurview[i].isCheck) {
245
+                b++
246
+              }
247
+            }
248
+            if (b == this.subPurview.length) {
249
+              this.checked = true
250
+            } else {
251
+              this.checked = false
252
+            }
253
+
254
+
255
+          } else {
256
+            this.$toast({
257
+              message: response.data.msg
258
+            });
259
+          }
260
+        });
261
+      },
262
+
263
+      GetAllPurview() {
264
+        this.pid = 0;
265
+        let params = {
266
+          module: this.module,
267
+          id: this.pid
268
+        };
269
+        GetAllPurview(params).then(response => {
270
+          if (response.data.state === 1) {
271
+            for (let i = 0; i < response.data.data.purviews.length; i++) {
272
+              var purview = response.data.data.purviews[i].sub_purview;
273
+              for (let b = 0; b < purview.length; b++) {
274
+                this.subPurview.push(purview[b])
275
+              }
276
+              if (purview.length > 1) {
277
+                response.data.data.purviews[i]["no_sub"] = false;
278
+              } else {
279
+                response.data.data.purviews[i]["no_sub"] = true;
280
+              }
281
+              response.data.data.purviews[i]["isCheck"] = false;
282
+              this.allPurview.push(response.data.data.purviews[i]);
283
+              this.GetRoleInfo(this.$route.query.id)
284
+            }
285
+          } else {
286
+            this.$toast({
287
+              message: response.data.msg
288
+            });
289
+          }
290
+        });
291
+      }
162 292
     }
163
-  }
164
-};
293
+  };
165 294
 </script>
166 295
 
167 296
 <style lang="scss" scoped>
168
-.page_qualityControlManagement {
169
-  height: 100%;
170
-  overflow-y: auto;
171
-  background: #fafafa;
297
+  .page_qualityControlManagement {
298
+    height: 100%;
299
+    overflow-y: auto;
300
+    background: #fafafa;
301
+
172 302
   .qualityControlManagementTitle {
173 303
     background: #fff;
174 304
     padding: 0 1.125rem;
@@ -176,36 +306,45 @@ export default {
176 306
     display: flex;
177 307
     align-items: center;
178 308
   }
309
+
179 310
   .jiantou {
180 311
     font-size: 1.5rem;
181 312
     font-weight: 600;
182 313
     margin-right: 7rem;
183 314
   }
315
+
184 316
   .titleName {
185 317
     font-size: 1.125rem;
186 318
     font-weight: 600;
187 319
   }
320
+
188 321
   .allTitle {
189 322
     margin: 1rem 0;
190
-    .van-cell__title {
191
-      font-weight: bold;
192
-      font-size: 1rem;
193
-      color: #313234;
194
-    }
323
+
324
+  .van-cell__title {
325
+    font-weight: bold;
326
+    font-size: 1rem;
327
+    color: #313234;
328
+  }
329
+
195 330
   }
196 331
   .allTitle1 {
197
-    .van-cell__title {
198
-      font-weight: bold;
199
-      font-size: 1rem;
200
-      color: #313234;
201
-    }
332
+
333
+  .van-cell__title {
334
+    font-weight: bold;
335
+    font-size: 1rem;
336
+    color: #313234;
337
+  }
338
+
202 339
   }
203 340
   .allBox {
204 341
     margin-bottom: 1rem;
205
-    .van-cell__title {
206
-      font-size: 1rem;
207
-      color: #313234;
208
-    }
342
+
343
+  .van-cell__title {
344
+    font-size: 1rem;
345
+    color: #313234;
346
+  }
347
+
348
+  }
209 349
   }
210
-}
211 350
 </style>

+ 19 - 10
src/pages/console/managementConsole/staff_role/subPurview/index.vue Целия файл

@@ -5,7 +5,7 @@
5 5
       <span class="titleName">{{title}}</span>
6 6
     </div>
7 7
     <div class="allTitle">
8
-      <van-cell center title="全部权限">
8
+      <van-cell center title="全部权限" v-if="title != '透析管理'">
9 9
         <van-switch v-model="checked" @change="allChange" slot="right-icon" size="24" />
10 10
       </van-cell>
11 11
     </div>
@@ -13,7 +13,7 @@
13 13
       <van-cell center title="功能权限配置"></van-cell>
14 14
     </div>
15 15
     <div class="allBox">
16
-      <van-cell center :title="item.name" v-for="(item, index) in allPurview" :key="index" v-if="item.name == '透析记录'" @click="toFunctonPurview()">
16
+      <van-cell center :title="item.name" v-for="(item, index) in allPurview" :key="index" v-if="item.name == '透析记录'" @click="toFunctonPurview(item)">
17 17
       </van-cell>
18 18
       <van-cell center :title="item.name" v-for="(item, index) in allPurview" :key="index" v-if="item.name != '透析记录'">
19 19
         <van-switch v-model="item.isCheck" slot="right-icon" size="24"  @change="changeStatus(item)" />
@@ -24,7 +24,7 @@
24 24
 
25 25
 <script>
26 26
   import {setRem} from "@/libs/functionRem";
27
-  import {GetAllPurview,GetRoleInfo,EditRoleInfo,DeleteRoleInfo,EditPurview} from "@/api/admin_user";
27
+  import {GetAllPurview,GetRoleInfo,EditRoleInfo,DeleteRoleInfo,EditPurview,GetFunctionRoleInfo} from "@/api/admin_user";
28 28
 
29 29
   export default {
30 30
     data() {
@@ -45,10 +45,16 @@
45 45
       this.pid = this.$route.query.pid
46 46
       this.module = this.$route.query.module
47 47
       this.GetAllPurview()
48
-      this.GetRoleInfo(this.$route.query.id)
48
+      // this.GetRoleInfo(this.$route.query.id)
49
+
49 50
 
50 51
 
51 52
     }, methods: {
53
+      isShow(){
54
+
55
+
56
+
57
+      },
52 58
       allChange(val){
53 59
         if (val){
54 60
           let purview_ids = ""
@@ -251,18 +257,18 @@
251 257
         }
252 258
 
253 259
       },
254
-      toFunctonPurview(){
255
-        this.$router.push({path:"/role/functionpurview?id="+this.$route.query.id})
256
-
257
-      },
258
-
259
-      GetRoleInfo(role_id) {
260
+      toFunctonPurview(item){
261
+        this.$router.push({path:"/role/functionpurview?id="+this.$route.query.id+"&pid="+item.id})
262
+      }, GetRoleInfo(role_id) {
260 263
         let params = {
261 264
           id: role_id,
262 265
         }
263 266
         GetRoleInfo(params).then(response => {
264 267
           if (response.data.state === 1) {
265 268
             this.rolePurview = response.data.data.role_purview
269
+
270
+            // this.rolePurview = response.data.data.role_purview
271
+
266 272
             this.name =  response.data.data.role.name
267 273
             this.desc = response.data.data.role.intro
268 274
             this.ids = this.rolePurview.PurviewIds.split(',')
@@ -284,6 +290,7 @@
284 290
                 b++
285 291
               }
286 292
             }
293
+
287 294
             if (b == this.allPurview.length){
288 295
               this.checked = true
289 296
             }else{
@@ -318,6 +325,8 @@
318 325
             }
319 326
 
320 327
             this.GetRoleInfo(this.$route.query.id)
328
+            // this.GetFuncRoleInfo(this.$route.query.id)
329
+
321 330
 
322 331
 
323 332
 

+ 5 - 0
src/pages/home/verifyToken.vue Целия файл

@@ -39,6 +39,11 @@ export default {
39 39
           //未登录
40 40
           this.$router.replace("/login");
41 41
         }
42
+      }else{
43
+        this.$toast({
44
+          message: "数据加载错误,请重新登录"
45
+        });
46
+        this.$router.replace("/login");
42 47
       }
43 48
     });
44 49
   },methods:{

+ 8 - 1
src/pages/homeIndex/index.vue Целия файл

@@ -185,7 +185,12 @@
185 185
         ChangeOrg(params).then(response => {
186 186
           if (response.data.state === 1) {
187 187
             //清除之前的数据
188
-
188
+            this.$store.dispatch("SetScheduals", {
189
+             scheduals: []
190
+            });
191
+            this.$store.dispatch("SetWaitScheduals", {
192
+              waitscheduals: []
193
+            });
189 194
 
190 195
             var user = response.data.data.user;
191 196
             var admin = response.data.data.admin;
@@ -221,8 +226,10 @@
221 226
         }
222 227
         if(app.open_status == 0){
223 228
           Toast.success('敬请期待')
229
+
224 230
           return
225 231
         }
232
+        console.log(app.name)
226 233
         switch (app.app_type) {
227 234
           case 6:
228 235
             this.toPatients()

+ 3 - 2
src/pages/main/DialysisArea.vue Целия файл

@@ -290,11 +290,12 @@ export default {
290 290
   },
291 291
 
292 292
   created () {
293
-    this.user_id = this.$store.getters.user.user.id
293
+    this.user_id = this.$store.getters.user.admin.id
294 294
 
295 295
     var storedata = this.$store.getters.scheduals
296
+    console.log(storedata)
296 297
     var scheduals = storedata.scheduals
297
-    if (Object.keys(storedata).length > 0) {
298
+    if (scheduals.length > 0) {
298 299
       var zoneMap = {}
299 300
       var schedualMap = {}
300 301
       for (let index = 0; index < scheduals.length; index++) {

+ 8 - 1
src/pages/main/dialog/AcceptsDialog.vue Целия файл

@@ -333,6 +333,8 @@ export default {
333 333
         } else {
334 334
           for (const key in response.data.data.receiveTreatmentAsses) {
335 335
             this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
336
+            this.accepts['id'] = 0
337
+            this.accepts['creater'] = 0
336 338
             this.receiveTreatmentAsses.way = this.accepts.way;
337 339
             this.receiveTreatmentAsses.consciousness =
338 340
               this.accepts.consciousness;
@@ -391,6 +393,9 @@ export default {
391 393
           } else {
392 394
             for (const key in response.data.data.receiveTreatmentAsses) {
393 395
               this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
396
+              this.accepts['id'] = 0
397
+              this.accepts['creater'] = 0
398
+
394 399
               this.receiveTreatmentAsses.way = this.accepts.way;
395 400
               this.receiveTreatmentAsses.consciousness =
396 401
                 this.accepts.consciousness;
@@ -489,8 +494,10 @@ export default {
489 494
       ParamsQuery["record_date"] = this.record_date;
490 495
       if (this.accepts.id > 0){
491 496
         mode = 2
497
+        if(this.accepts.creater  != this.$store.getters.user.admin.id){
498
+          mode = 3
499
+        }
492 500
       }
493
-
494 501
       ParamsQuery["mode"] = mode;
495 502
       commitAcceptsAssessment(ParamsQuery).then(response => {
496 503
         if (response.data.state == 0) {

+ 4 - 3
src/pages/main/dialog/AssessmentDialog.vue Целия файл

@@ -1463,9 +1463,13 @@ export default {
1463 1463
       // if (this.formValue.dry_weight == ""){
1464 1464
       //   this.formValue.
1465 1465
       // }
1466
+      console.log(this.predialysis)
1466 1467
 
1467 1468
       if(this.predialysis.id > 0){
1468 1469
         mode = 2
1470
+        if(this.predialysis.creater != this.$store.getters.user.admin.id){
1471
+          mode = 3
1472
+        }
1469 1473
       }
1470 1474
 
1471 1475
 
@@ -1487,9 +1491,6 @@ export default {
1487 1491
       });
1488 1492
     },
1489 1493
     showDryWeight: function () {
1490
-      if (this.$store.getters.user.user.user_type == 3) {
1491
-        return
1492
-      }
1493 1494
       this.isShowDialog = false
1494 1495
       this.$refs.dry.open()
1495 1496
       this.propDryForm.doctor = []

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

@@ -5,8 +5,8 @@
5 5
       <div class="DialogTit">
6 6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7 7
         <h1 class="name">透析上机</h1>
8
-        <span class="success" v-if="this.record.id == 0 || this.$store.getters.user.user.id != this.creator"></span>
9
-        <span class="success" @click="modify()" v-if="isPremission|| this.$store.getters.user.user.id == this.creator">修改</span>
8
+        <span class="success" v-if="this.record.id ==0"></span>
9
+        <span class="success" @click="modify()" v-else>修改</span>
10 10
       </div>
11 11
 
12 12
       <div class="DialogContent ">
@@ -43,7 +43,7 @@
43 43
         <div class="item" v-if="template_id == 6">
44 44
           <label class="name" for="xll">引血(ml/min)</label>
45 45
           <div class="content">
46
-            <input type="tel" @focus="inputFocus"  id="xll" v-model="blood_drawing"/>
46
+            <input type="tel" @focus="inputFocus" id="xll" v-model="blood_drawing"/>
47 47
           </div>
48 48
         </div>
49 49
 
@@ -56,8 +56,6 @@
56 56
         </div>
57 57
 
58 58
 
59
-
60
-
61 59
         <div class="perform">
62 60
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
63 61
           <button :disabled="true" style="background-color:lightgray;" v-else>已上机</button>
@@ -77,7 +75,7 @@
77 75
 
78 76
 
79 77
 <script>
80
-  import {startDialysis,PostModifyStartDialysis,GetSchedualNumber} from '@/api/dialysis'
78
+  import {GetSchedualNumber, PostModifyStartDialysis, startDialysis} from '@/api/dialysis'
81 79
   import {Toast} from 'vant'
82 80
   import {parseTime} from '@/utils'
83 81
 
@@ -88,25 +86,26 @@
88 86
     components: {
89 87
       TwoMenu
90 88
     },
91
-    data () {
89
+    data() {
92 90
       return {
93 91
         start_time: new Date(),
94 92
         selecting: false,
95 93
         start_time_str: '',
96 94
         bed_id: 0,
95
+        isShow:false,
97 96
         nurse_id: 0,
98 97
         puncture_nurse_id: 0,
99 98
         isPremission: false,
100 99
         zone_beds: [], // 该排班的区里的床位
101 100
         creator: 0,
102 101
         template_id: 0,
103
-        temp_device_numbers:[],
104
-        blood_drawing:100,
105
-        schedual_type:0,
102
+        temp_device_numbers: [],
103
+        blood_drawing: 100,
104
+        schedual_type: 0,
106 105
         schedules_type: [
107
-          {id: 1, name:"上午"},
108
-          {id: 2, name:"下午"},
109
-          {id: 3, name:"晚上"},
106
+          {id: 1, name: "上午"},
107
+          {id: 2, name: "下午"},
108
+          {id: 3, name: "晚上"},
110 109
         ], // 该排班的区里的床位
111 110
       }
112 111
     },
@@ -135,32 +134,34 @@
135 134
       special_premission: {
136 135
         type: Array,
137 136
       },
138
-    }, mounted () {
137
+    }, mounted() {
139 138
 
140 139
 
141 140
     },
142
-    created () {
141
+    created() {
143 142
       this.temp_device_numbers = this.device_numbers
144 143
 
145 144
 
146
-
147 145
       if (this.record.id == 0) {
146
+        this.isShow = false
148 147
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
149 148
         let now = new Date()
150 149
         let hour = now.getHours()
151 150
 
152
-        if (hour >= 6 && hour < 12){
151
+        if (hour >= 6 && hour < 12) {
153 152
           this.schedual_type = 1
154 153
 
155
-        }else if(hour >= 12 && hour < 18){
154
+        } else if (hour >= 12 && hour < 18) {
156 155
 
157 156
           this.schedual_type = 2
158 157
 
159 158
 
160
-        }else if(hour >= 18){
159
+        } else if (hour >= 18) {
161 160
           this.schedual_type = 3
162 161
         }
163 162
       } else {
163
+        this.isShow = true
164
+
164 165
         if (this.record.start_time == 0) {
165 166
           this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
166 167
           this.schedual_type = this.record.schedual_type
@@ -191,11 +192,11 @@
191 192
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
192 193
 
193 194
       this.bed_id = (this.record == null || this.record.id == '') ? this.schedule.bed_id : this.record.bed_id
194
-      this.nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.user.id : this.record.start_nurse
195
-      this.puncture_nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.user.id : this.record.puncture_nurse
195
+      this.nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.admin.id : this.record.start_nurse
196
+      this.puncture_nurse_id = (this.record == null || this.record.id == '') ? this.$store.getters.user.admin.id : this.record.puncture_nurse
196 197
 
197 198
       if (this.puncture_nurse_id == 0) {
198
-        this.puncture_nurse_id = this.$store.getters.user.user.id
199
+        this.puncture_nurse_id = this.$store.getters.user.admin.id
199 200
       }
200 201
 
201 202
       // var beds = []
@@ -209,13 +210,13 @@
209 210
 
210 211
       for (let index = 0; index < this.temp_device_numbers.length; index++) {
211 212
         const device_number = this.temp_device_numbers[index]
212
-        this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
213
+        this.temp_device_numbers[index]['number'] = device_number['zone_name'] + '-' + device_number['number']
213 214
       }
214 215
       this.zone_beds = this.temp_device_numbers
215 216
 
216 217
       if (this.record.id > 0) {
217 218
         for (let i = 0; i < this.special_premission.length; i++) {
218
-          if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
219
+          if (this.$store.getters.user.admin.id == this.special_premission[i].admin_user_id) {
219 220
             this.isPremission = true
220 221
           }
221 222
         }
@@ -230,53 +231,43 @@
230 231
       }
231 232
 
232 233
 
233
-
234 234
     },
235 235
     methods: {
236
-      getSchedualType:function(type){
237
-        for (let i = 0; i < this.schedules_type.length; i++){
238
-          if(this.schedules_type[i].id == type){
239
-            return  this.schedules_type[i].name
236
+      getSchedualType: function (type) {
237
+        for (let i = 0; i < this.schedules_type.length; i++) {
238
+          if (this.schedules_type[i].id == type) {
239
+            return this.schedules_type[i].name
240 240
           }
241 241
         }
242 242
       },
243
-      select_type:function(){
243
+      select_type: function () {
244 244
         if (this.record.id != 0) {
245
-          var creator = 0
246
-          if (this.record.creator == 0) {
247
-            creator = this.record.start_nurse
248
-          } else {
249
-            creator = this.record.creator
250
-          }
251 245
 
252
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
253
-            this.selecting = true
254
-            var t = this
255
-            this.$refs.selector.showSingleSelect(this.schedules_type, this.schedual_type, '选择班次', 'name', 'id', function (select_id) {
256
-              t.schedual_type = select_id
257
-
258
-              let ParamsQuery = {}
259
-              ParamsQuery['schedual_type'] = select_id
260
-              GetSchedualNumber(ParamsQuery).then(response => {
261
-                if (response.data.state == 0) {
262
-                  Toast.fail(response.data.msg)
263
-                  return false
264
-                } else {
265
-                  t.temp_device_numbers = response.data.data.number
266
-                  for (let index = 0; index < t.temp_device_numbers.length; index++) {
267
-                    const device_number = t.temp_device_numbers[index]
268
-                    t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
269
-                  }
270
-                  t.zone_beds = t.temp_device_numbers
271
-                  t.bed_id = t.zone_beds[0].id
246
+          this.selecting = true
247
+          var t = this
248
+          this.$refs.selector.showSingleSelect(this.schedules_type, this.schedual_type, '选择班次', 'name', 'id', function (select_id) {
249
+            t.schedual_type = select_id
250
+
251
+            let ParamsQuery = {}
252
+            ParamsQuery['schedual_type'] = select_id
253
+            GetSchedualNumber(ParamsQuery).then(response => {
254
+              if (response.data.state == 0) {
255
+                Toast.fail(response.data.msg)
256
+                return false
257
+              } else {
258
+                t.temp_device_numbers = response.data.data.number
259
+                for (let index = 0; index < t.temp_device_numbers.length; index++) {
260
+                  const device_number = t.temp_device_numbers[index]
261
+                  t.temp_device_numbers[index]['number'] = device_number['zone_name'] + '-' + device_number['number']
272 262
                 }
273
-              })
274
-            }, function () {
275
-              t.selecting = false
263
+                t.zone_beds = t.temp_device_numbers
264
+                t.bed_id = t.zone_beds[0].id
265
+              }
276 266
             })
277
-          } else {
278
-            return
279
-          }
267
+          }, function () {
268
+            t.selecting = false
269
+          })
270
+
280 271
         }
281 272
         this.selecting = true
282 273
         var t = this
@@ -293,7 +284,7 @@
293 284
               t.temp_device_numbers = response.data.data.number
294 285
               for (let index = 0; index < t.temp_device_numbers.length; index++) {
295 286
                 const device_number = t.temp_device_numbers[index]
296
-                t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
287
+                t.temp_device_numbers[index]['number'] = device_number['zone_name'] + '-' + device_number['number']
297 288
               }
298 289
               t.zone_beds = t.temp_device_numbers
299 290
               t.bed_id = t.zone_beds[0].id
@@ -306,7 +297,7 @@
306 297
         })
307 298
 
308 299
       },
309
-      GetSchedualNumber:function(){
300
+      GetSchedualNumber: function () {
310 301
         let ParamsQuery = {}
311 302
         ParamsQuery['schedual_type'] = this.schedual_type
312 303
         GetSchedualNumber(ParamsQuery).then(response => {
@@ -317,7 +308,7 @@
317 308
             this.temp_device_numbers = response.data.data.number
318 309
             for (let index = 0; index < this.temp_device_numbers.length; index++) {
319 310
               const device_number = this.temp_device_numbers[index]
320
-              this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
311
+              this.temp_device_numbers[index]['number'] = device_number['zone_name'] + '-' + device_number['number']
321 312
             }
322 313
             this.zone_beds = this.temp_device_numbers
323 314
           }
@@ -340,8 +331,13 @@
340 331
           rng.select()
341 332
         }
342 333
       },
343
-      modify(){
334
+      modify() {
344 335
         let ParamsQuery = {}
336
+        if (this.$store.getters.user.admin.id == this.record.creator) {
337
+          ParamsQuery['mode'] = "2"
338
+        } else {
339
+          ParamsQuery['mode'] = "3"
340
+        }
345 341
         ParamsQuery['schedual_type'] = this.schedual_type
346 342
         ParamsQuery['id'] = this.record.id
347 343
         ParamsQuery['nurse'] = this.nurse_id
@@ -376,17 +372,15 @@
376 372
             creator = this.record.creator
377 373
           }
378 374
 
379
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
380
-            this.$refs.start_time_picker.open()
381
-          } else {
382
-            return
383
-          }
375
+          this.$refs.start_time_picker.open()
376
+
384 377
         }
385 378
         this.$refs.start_time_picker.open()
386 379
       },
387 380
       commitInfo: function () {
388 381
         Toast.loading({forbidClick: true, duration: 0})
389 382
         let ParamsQuery = {}
383
+        ParamsQuery['mode'] = "1"
390 384
         ParamsQuery['schedual_type'] = this.schedual_type
391 385
         ParamsQuery['patient_id'] = this.patient_prop.id
392 386
         ParamsQuery['record_date'] = this.record_date
@@ -426,8 +420,6 @@
426 420
           } else {
427 421
             creator = this.record.creator
428 422
           }
429
-
430
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
431 423
             this.selecting = true
432 424
             var t = this
433 425
             this.$refs.selector.showSingleSelect(this.zone_beds, this.bed_id, '选择床位号', 'number', 'id', function (select_id) {
@@ -435,9 +427,7 @@
435 427
             }, function () {
436 428
               t.selecting = false
437 429
             })
438
-          } else {
439
-            return
440
-          }
430
+
441 431
         }
442 432
 
443 433
         this.selecting = true
@@ -456,7 +446,7 @@
456 446
           } else {
457 447
             creator = this.record.creator
458 448
           }
459
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
449
+
460 450
             this.selecting = true
461 451
             var t = this
462 452
             this.$refs.selector.showSingleSelect(this.admins, this.nurse_id, '选择上机护士', 'name', 'id', function (select_id) {
@@ -464,9 +454,7 @@
464 454
             }, function () {
465 455
               t.selecting = false
466 456
             })
467
-          } else {
468
-            return
469
-          }
457
+
470 458
         }
471 459
         this.selecting = true
472 460
         var t = this
@@ -483,7 +471,7 @@
483 471
           } else {
484 472
             creator = this.record.creator
485 473
           }
486
-          if (this.$store.getters.user.user.id == creator || this.isPremission) {
474
+
487 475
             this.selecting = true
488 476
             var t = this
489 477
             this.$refs.selector.showSingleSelect(this.admins, this.puncture_nurse_id, '选择穿刺护士', 'name', 'id', function (select_id) {
@@ -491,9 +479,7 @@
491 479
             }, function () {
492 480
               t.selecting = false
493 481
             })
494
-          } else {
495
-            return
496
-          }
482
+
497 483
         }
498 484
         this.selecting = true
499 485
         var t = this
@@ -510,11 +496,6 @@
510 496
     }, watch: {
511 497
       'record.id': function (val) {
512 498
         if (val > 0) {
513
-          for (let i = 0; i < this.special_premission.length; i++) {
514
-            if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
515
-              this.isPremission = true
516
-            }
517
-          }
518 499
           if (this.record.creator == 0) {
519 500
             this.creator = this.record.start_nurse
520 501
           } else {
@@ -531,23 +512,23 @@
531 512
 </script>
532 513
 
533 514
 <style style="stylesheet/scss" lang="scss" scoped>
534
-.perform {
515
+  .perform {
535 516
   text-align: center;
536 517
   font-size: 0.3rem;
537 518
   padding-top: 2rem;
538 519
   .crew {
539
-    color: $pgh-color;
520
+  color: $pgh-color;
540 521
   }
541 522
   button {
542
-    background: $main-color;
543
-    color: #fff;
544
-    font-size: 0.45rem;
545
-    text-align: center;
546
-    width: 3rem;
547
-    height: 1.2rem;
548
-    line-height: 1.2rem;
549
-    border-radius: 4px;
550
-    margin-top: 10px;
523
+  background: $main-color;
524
+  color: #fff;
525
+  font-size: 0.45rem;
526
+  text-align: center;
527
+  width: 3rem;
528
+  height: 1.2rem;
529
+  line-height: 1.2rem;
530
+  border-radius: 4px;
531
+  margin-top: 10px;
532
+  }
551 533
   }
552
-}
553 534
 </style>

+ 1 - 0
src/pages/main/dialog/DoubleDialog.vue Целия файл

@@ -281,6 +281,7 @@ export default {
281 281
       ParamsQuery["patient"] = this.$route.query.patient_id;
282 282
       ParamsQuery["record_date"] = this.record_date;
283 283
       ParamsQuery["check_time"] = this.check_time_str;
284
+      console.log(this.record)
284 285
      if(this.record.id > 0){
285 286
        ParamsQuery['mode'] = "2"
286 287
      }

+ 17 - 2
src/pages/main/dialog/MonitDialog.vue Целия файл

@@ -491,7 +491,8 @@ export default {
491 491
         dispose: '', // 处理
492 492
         result: '', // 结果,
493 493
         blood_oxygen_saturation: '',
494
-        monitoring_nurse: this.$store.getters.user.user.id // 监测人
494
+        monitoring_nurse: this.$store.getters.user.admin.id, // 监测人
495
+        creator:0,
495 496
       },
496 497
       doctor: this.$store.getters.user.user.user_name
497 498
     }
@@ -776,9 +777,15 @@ export default {
776 777
         message: '是否删除该监测记录'
777 778
       })
778 779
         .then(() => {
780
+
779 781
           let params = {
780 782
             record_id: this.currentRow.id,
781
-            patient_id: this.patient.id
783
+            patient_id: this.patient.id,
784
+            mode : "4"
785
+          }
786
+          if(this.$store.getters.user.admin.id  != this.form.creator && this.form.creator != 0){
787
+
788
+            params.mode = "5"
782 789
           }
783 790
           deleteMonitorRecord(params).then(rs => {
784 791
             var resp = rs.data
@@ -952,6 +959,8 @@ export default {
952 959
       this.form.result = this.currentRow.result
953 960
       this.form.id = this.currentRow.id
954 961
       this.form.operate_time = this.currentRow.operate_time * 1000
962
+      this.form.creator = this.currentRow.creator
963
+
955 964
       // this.monitor_time_str =
956 965
       //   parseTime(this.form.monitor_date, "{y}-{m}-{d}") +
957 966
       //   " " +
@@ -1016,6 +1025,11 @@ export default {
1016 1025
       params.displacement_flow_quantity = this.form.displacement_flow_quantity
1017 1026
       params.blood_oxygen_saturation = this.form.blood_oxygen_saturation
1018 1027
       params.id = this.form.id
1028
+      params.mode = "2"
1029
+
1030
+      if (this.form.creator != this.$store.getters.user.admin.id && this.form.creator != 0){
1031
+        params.mode = "3"
1032
+      }
1019 1033
       editMonitorRecord(params).then(rs => {
1020 1034
         var resp = rs.data
1021 1035
         if (resp.state == 1) {
@@ -1092,6 +1106,7 @@ export default {
1092 1106
       params.dispose = this.form.dispose
1093 1107
       params.result = this.form.result
1094 1108
       params.monitoring_nurse = this.form.monitoring_nurse
1109
+      params.mode = "1"
1095 1110
 
1096 1111
       addMonitorRecord(params)
1097 1112
         .then(rs => {

+ 63 - 62
src/pages/main/dialog/OrdersDialog.vue Целия файл

@@ -9,12 +9,11 @@
9 9
        <div class="yzNav" style="width:100%;">
10 10
         <span
11 11
           @click="openNewAdvice"
12
-          :class="{ forbid: this.$store.getters.user.user.user_type == 3 }"
13 12
         >新增</span>
14 13
         <span
15 14
           v-if="isShowExce"
16 15
           @click="execAdvice"
17
-          :class="{ forbid: (current_advice&& current_advice.parent_id > 0)||(this.$store.getters.user.user.user_type == 2 && !isPremission) }"
16
+          :class="{ forbid: (current_advice&& current_advice.parent_id > 0) }"
18 17
         >执行</span>
19 18
 
20 19
         <span
@@ -28,12 +27,12 @@
28 27
         <span
29 28
           v-if="template_id != 6"
30 29
           @click="checkAdvice"
31
-          :class="{ forbid: (current_advice&& current_advice.parent_id > 0) || (this.$store.getters.user.user.user_type == 2 && !isPremission) }"
30
+          :class="{ forbid: (current_advice&& current_advice.parent_id > 0)  }"
32 31
         >核对</span>
33 32
         <span
34 33
         id="fontSize"
35 34
           @click="openNewChild"
36
-          :class="{ forbid: current_advice == null || current_advice.parent_id > 0 ||  currentAdvices.length != 1 || this.$store.getters.user.user.user_type == 3 }"
35
+          :class="{ forbid: current_advice == null || current_advice.parent_id > 0 ||  currentAdvices.length != 1  }"
37 36
         >添加子药</span>
38 37
         <span
39 38
           v-if="currentSubAdvices.length <= 0"
@@ -46,8 +45,8 @@
46 45
           :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 }"
47 46
         >删除</span>
48 47
 
49
-        <span id="fontSize" :class="{ forbid:this.$store.getters.user.user.user_type == 3}" v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
50
-        <span id="fontSize" :class="{ forbid:this.$store.getters.user.user.user_type == 3}" v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
48
+        <span id="fontSize"  v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
49
+        <span id="fontSize"  v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
51 50
       </div>
52 51
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
53 52
 
@@ -316,7 +315,6 @@
316 315
         currentAdviceIdsStr: '',
317 316
         currentAdvices: [],
318 317
         currentSubAdvices: [],
319
-        isPremission:false,
320 318
 
321 319
       }
322 320
     },
@@ -349,12 +347,6 @@
349 347
         this.unitsObj[this.unitsOption[index].id] = this.unitsOption[index]
350 348
       }
351 349
 
352
-      for (let i = 0; i < this.special_premission.length; i++) {
353
-        if (this.$store.getters.user.user.id == this.special_premission[i].admin_user_id) {
354
-          this.isPremission = true
355
-        }
356
-      }
357
-
358 350
 
359 351
     },
360 352
     watch: {
@@ -388,15 +380,9 @@
388 380
 
389 381
     methods: {
390 382
       modifyExecAdvice: function () {
391
-        // if(!this.isPremission){
392
-        //   Toast.fail('你没有权限修改医嘱!')
393
-        // }else{
394
-
395
-
396 383
         this.nowExecTime = new Date(this.currentAdvices[0].execution_time * 1000)
397 384
           this.$refs.mofify_exec_time.open()
398 385
 
399
-        // }
400 386
 
401 387
       },
402 388
       didCreateAdvices: function (advices) {
@@ -438,6 +424,14 @@
438 424
 
439 425
       },
440 426
       didModifyAdvice: function (advice) {
427
+        let mode = "2"
428
+        console.log(advice.doctor_advice)
429
+        console.log( this.$store.getters.user.admin.id )
430
+
431
+        if (advice.doctor_advice != this.$store.getters.user.admin.id && advice.doctor_advice > 0){
432
+          mode = "3"
433
+          console.log("1111111")
434
+        }
441 435
         Toast.loading({forbidClick: true, duration: 0})
442 436
         EditDoctorAdvice(advice.id, {
443 437
           advice_name: advice.title,
@@ -452,7 +446,7 @@
452 446
           single_dose_unit: advice.single_dose_unit,
453 447
           prescribing_number: String(advice.prescribing_number),
454 448
           prescribing_number_unit: advice.prescribing_number_unit
455
-        })
449
+        },mode)
456 450
           .then(rs => {
457 451
             if (rs.data.state == 1) {
458 452
               var resp_advice = rs.data.data.advice
@@ -550,7 +544,8 @@
550 544
       },
551 545
       didAddSubdrug: function (subdrug) {
552 546
         Toast.loading({forbidClick: true, duration: 0})
553
-        CreateDoctorAdvice(this.patient.id, {
547
+        let mode = "1"
548
+        CreateDoctorAdvice(this.patient.id,{
554 549
           parent_id: subdrug.parent_id,
555 550
           advice_type: 2,
556 551
           advice_date: subdrug.record_time,
@@ -565,7 +560,7 @@
565 560
           prescribing_number_unit: subdrug.prescribing_number_unit
566 561
           // delivery_way: subdrug.delivery_way,
567 562
           // execution_frequency: subdrug.execution_frequency
568
-        })
563
+        }, mode)
569 564
           .then(response => {
570 565
             if (response.data.state == 0) {
571 566
               Toast.fail(response.data.msg)
@@ -673,7 +668,7 @@
673 668
             execution_time: exceTime
674 669
           }
675 670
         }
676
-
671
+        exceParams['mode'] = 8
677 672
         ModifyExecDoctorAdvice(exceParams)
678 673
           .then(response => {
679 674
             if (response.data.state == 0) {
@@ -729,6 +724,7 @@
729 724
           }
730 725
         }
731 726
         Toast.loading({forbidClick: true, duration: 0})
727
+        exceParams['mode'] = "6"
732 728
         ExecDoctorAdvice(exceParams)
733 729
           .then(response => {
734 730
             if (response.data.state == 0) {
@@ -795,7 +791,14 @@
795 791
           message: '确认删除医嘱吗?'
796 792
         }).then(() => {
797 793
           Toast.loading({forbidClick: true, duration: 0})
798
-          DeleteSubDoctorAdvice(this.currentSubAdvices[0].id)
794
+          let is_sub = 1
795
+          let mode = "4"
796
+          console.log(this.currentSubAdvices)
797
+          if (this.currentSubAdvices[0].advice_doctor != this.$store.getters.user.admin.id&& this.currentSubAdvices[0].advice_doctor>0) {
798
+            mode = "5"
799
+          }
800
+
801
+          DeleteDoctorAdviceNew(0,this.currentSubAdvices[0].id,mode,is_sub)
799 802
             .then(rs => {
800 803
               if (rs.data.state == 1) {
801 804
                 Toast.success('删除成功')
@@ -815,7 +818,6 @@
815 818
                 }
816 819
 
817 820
               } else {
818
-
819 821
                 Toast.fail(rs.data.msg)
820 822
               }
821 823
             })
@@ -843,29 +845,33 @@
843 845
             }
844 846
             advice_id = ids.join(',')
845 847
 
846
-            DeleteDoctorAdviceNew(group_no, advice_id)
848
+            let mode = "4"
849
+            if (this.currentAdvices[0].advice_doctor != this.$store.getters.user.admin.id&& this.currentAdvices[0].advice_doctor>0) {
850
+              mode = "5"
851
+            }
852
+            let is_sub = 2
853
+            DeleteDoctorAdviceNew(group_no, advice_id,mode,is_sub)
847 854
               .then(rs => {
848 855
                 if (rs.data.state == 1) {
849
-                  Toast.success('删除成功')
850
-                  var adviceArr = this.advice_groups[this.current_group_index].advices
856
+                    Toast.success('删除成功')
857
+                    var adviceArr = this.advice_groups[this.current_group_index].advices
851 858
 
852
-                  for (let y = ids.length - 1; y >= 0; y--) {
853
-                    for (let i = adviceArr.length - 1; i >= 0; i--) {
854
-                      if (adviceArr[i].id == ids[y] || adviceArr[i].parent_id == ids[y]) {
855
-                        adviceArr.splice(i, 1)
859
+                    for (let y = ids.length - 1; y >= 0; y--) {
860
+                      for (let i = adviceArr.length - 1; i >= 0; i--) {
861
+                        if (adviceArr[i].id == ids[y] || adviceArr[i].parent_id == ids[y]) {
862
+                          adviceArr.splice(i, 1)
863
+                        }
856 864
                       }
857 865
                     }
858
-                  }
859
-                  this.currentSubAdvices = []
860
-                  this.currentAdvices = []
861
-                  for (let i = 0; i < this.advice_groups.length; i++) {
862
-                    for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
863
-                      var advices = this.advice_groups[i].advices[y]
864
-                      advices.is_selected = 0
866
+                    this.currentSubAdvices = []
867
+                    this.currentAdvices = []
868
+                    for (let i = 0; i < this.advice_groups.length; i++) {
869
+                      for (let y = 0; y < this.advice_groups[i].advices.length; y++) {
870
+                        var advices = this.advice_groups[i].advices[y]
871
+                        advices.is_selected = 0
872
+                      }
865 873
                     }
866
-                  }
867
-
868
-                } else {
874
+                }else{
869 875
                   Toast.fail(rs.data.msg)
870 876
                 }
871 877
               })
@@ -893,7 +899,12 @@
893 899
               advice_id = this.current_advice.id
894 900
             }
895 901
 
896
-            DeleteDoctorAdviceNew(group_no, advice_id)
902
+            let mode = "4"
903
+            if (group.advices[0].advice_doctor != this.$store.getters.user.admin.id&&  group.advices[0].advice_doctor>0) {
904
+              mode = "5"
905
+            }
906
+            let is_sub = 2
907
+            DeleteDoctorAdviceNew(group_no, advice_id,mode,is_sub)
897 908
               .then(rs => {
898 909
                 if (rs.data.state == 1) {
899 910
                   Toast.success('删除成功')
@@ -944,9 +955,7 @@
944 955
         }
945 956
       },
946 957
       checkAdvice () {
947
-        if (this.$store.getters.user.user.user_type == 2 && !this.isPremission){
948
-          return
949
-        }
958
+
950 959
         if (this.currentAdvices.length <= 0) {
951 960
           return
952 961
         }
@@ -965,7 +974,7 @@
965 974
           }
966 975
 
967 976
           for (let i = 0; i < adviceArr.length; i++) {
968
-            if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_staff > 0 && adviceArr[i].execution_staff == this.$store.getters.user.user.id) {
977
+            if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_staff > 0 && adviceArr[i].execution_staff == this.$store.getters.user.admin.id) {
969 978
               Toast.fail('核对与执行不能是同一人')
970 979
               return false
971 980
             }
@@ -1001,7 +1010,7 @@
1001 1010
           }
1002 1011
 
1003 1012
           for (let i = 0; i < adviceArr.length; i++) {
1004
-            if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_staff > 0 && adviceArr[i].execution_staff == this.$store.getters.user.user.id) {
1013
+            if (adviceArr[i].is_selected == 1 && adviceArr[i].execution_staff > 0 && adviceArr[i].execution_staff == this.$store.getters.user.admin.id) {
1005 1014
               Toast.fail('核对与执行不能是同一人')
1006 1015
               return false
1007 1016
             }
@@ -1035,6 +1044,7 @@
1035 1044
             }
1036 1045
           }
1037 1046
 
1047
+          params['mode'] = "7"
1038 1048
           CheckDoctorAdvice(params)
1039 1049
             .then(response => {
1040 1050
               if (response.data.state == 0) {
@@ -1077,9 +1087,6 @@
1077 1087
         // });
1078 1088
       },
1079 1089
       execAdvice () {
1080
-        if (this.$store.getters.user.user.user_type == 2 && !this.isPremission){
1081
-          return
1082
-        }
1083 1090
 
1084 1091
         if (this.currentAdvices.length <= 0) {
1085 1092
           return
@@ -1098,7 +1105,7 @@
1098 1105
           }
1099 1106
 
1100 1107
           for (let i = 0; i < adviceArr.length; i++) {
1101
-            if (adviceArr[i].is_selected == 1 && adviceArr[i].checker > 0 && adviceArr[i].checker == this.$store.getters.user.user.id) {
1108
+            if (adviceArr[i].is_selected == 1 && adviceArr[i].checker > 0 && adviceArr[i].checker == this.$store.getters.user.admin.id) {
1102 1109
               Toast.fail('核对与执行不能是同一人')
1103 1110
               return false
1104 1111
             }
@@ -1131,7 +1138,7 @@
1131 1138
           }
1132 1139
 
1133 1140
           for (let i = 0; i < adviceArr.length; i++) {
1134
-            if (adviceArr[i].is_selected == 1 && adviceArr[i].checker > 0 && adviceArr[i].checker == this.$store.getters.user.user.id) {
1141
+            if (adviceArr[i].is_selected == 1 && adviceArr[i].checker > 0 && adviceArr[i].checker == this.$store.getters.user.admin.id) {
1135 1142
               Toast.fail('核对与执行不能是同一人')
1136 1143
               return false
1137 1144
             }
@@ -1142,10 +1149,6 @@
1142 1149
         this.$refs.exec_time.open()
1143 1150
       },
1144 1151
       openNewChild () {
1145
-        if (this.$store.getters.user.user.user_type == 3) {
1146
-          Toast.fail('你没有权限添加子药!')
1147
-          return
1148
-        }
1149 1152
 
1150 1153
         if (this.current_advice == null){
1151 1154
           return
@@ -1181,11 +1184,6 @@
1181 1184
         return
1182 1185
       },
1183 1186
       openNewAdvice () {
1184
-        if (this.$store.getters.user.user.user_type == 3) {
1185
-          Toast.fail('你没有权限新增医嘱!')
1186
-          return
1187
-        }
1188
-
1189 1187
         this.currentAdvices = []
1190 1188
         this.currentSubAdvices = []
1191 1189
         for (let i = 0; i < this.advice_groups.length; i++) {
@@ -1207,11 +1205,13 @@
1207 1205
         if (this.current_advice_index >= 0) {
1208 1206
           this.index = 3
1209 1207
           var advice = this.currentSubAdvices[0]
1208
+          console.log(advice)
1210 1209
           this.$refs.modify_advice_form.showWithModify({
1211 1210
             id: advice.id,
1212 1211
             parent_id: advice.parent_id,
1213 1212
             title: advice.advice_name,
1214 1213
             advice_desc: advice.advice_desc,
1214
+            advice_doctor: advice.advice_doctor,
1215 1215
             remark: advice.remark,
1216 1216
             drug_spec: advice.drug_spec,
1217 1217
             drug_spec_unit: advice.drug_spec_unit,
@@ -1242,6 +1242,7 @@
1242 1242
             parent_id: advice.parent_id,
1243 1243
             title: advice.advice_name,
1244 1244
             advice_desc: advice.advice_desc,
1245
+            advice_doctor: advice.advice_doctor,
1245 1246
             remark: advice.remark,
1246 1247
             start_time: advice.start_time,
1247 1248
             drug_spec: advice.drug_spec,

+ 2 - 2
src/pages/main/dialog/OrdersDialog_olddddd.vue Целия файл

@@ -709,7 +709,7 @@ export default {
709 709
 
710 710
       if (
711 711
         this.currentRow.execution_staff > 0 &&
712
-        this.currentRow.execution_staff == this.$store.getters.user.user.id
712
+        this.currentRow.execution_staff == this.$store.getters.user.admin.id
713 713
       ) {
714 714
         Toast.fail('核对与执行不能是同一人')
715 715
         return false
@@ -777,7 +777,7 @@ export default {
777 777
 
778 778
       if (
779 779
         this.currentRow.checker > 0 &&
780
-        this.currentRow.checker == this.$store.getters.user.user.id
780
+        this.currentRow.checker == this.$store.getters.user.admin.id
781 781
       ) {
782 782
         Toast.fail('核对与执行不能是同一人')
783 783
         return false

+ 17 - 56
src/pages/main/dialog/PlaneDialog.vue Целия файл

@@ -7,17 +7,13 @@
7 7
 
8 8
         <span
9 9
           class="success"
10
-          v-if="
11
-            this.record.state == 1 ||
12
-              this.$store.getters.user.user.id != this.creator
13
-          "
10
+          v-if="this.record.stage == 1"
14 11
         ></span>
15 12
         <span
13
+          v-else
16 14
           class="success"
17 15
           @click="modify()"
18
-          v-if="isPremission || this.$store.getters.user.user.id == this.creator"
19
-          >修改</span
20
-        >
16
+          >修改</span>
21 17
       </div>
22 18
 
23 19
       <div class="DialogContent">
@@ -184,21 +180,12 @@ export default {
184 180
     if (this.record == null || this.record.id == "") {
185 181
       this.nurse_id = 0;
186 182
     } else if (this.record.stage == 1) {
187
-      this.nurse_id = this.$store.getters.user.user.id;
183
+      this.nurse_id = this.$store.getters.user.admin.id;
188 184
     } else {
189 185
       this.nurse_id = this.record.finish_nurse;
190 186
     }
191 187
 
192
-    if (this.record.id > 0) {
193
-      for (let i = 0; i < this.special_premission.length; i++) {
194
-        if (
195
-          this.$store.getters.user.user.id ==
196
-          this.special_premission[i].admin_user_id
197
-        ) {
198
-          this.isPremission = true;
199
-        }
200
-      }
201
-    }
188
+
202 189
 
203 190
     if (this.record.id > 0) {
204 191
       if (this.record.finish_creator == 0) {
@@ -222,6 +209,11 @@ export default {
222 209
       ParamsQuery["id"] = this.record.id;
223 210
       ParamsQuery["nurse"] = this.nurse_id;
224 211
       ParamsQuery["end_time"] = this.end_time_str;
212
+      ParamsQuery["mode"] = "2";
213
+      if(this.$store.getters.user.admin.id != this.record.finish_creator){
214
+        ParamsQuery["mode"] = "3";
215
+      }
216
+
225 217
       PostModifyEndDialysis(ParamsQuery).then(response => {
226 218
         if (response.data.state == 0) {
227 219
           Toast.fail(response.data.msg);
@@ -244,20 +236,9 @@ export default {
244 236
     selectStartTimeAction: function() {
245 237
       if (this.record.id != 0) {
246 238
         if (this.record.end_time > 0) {
247
-          var creator = 0;
248
-          if (this.record.finish_creator == 0) {
249
-            creator = this.record.finish_nurse;
250
-          } else {
251
-            creator = this.record.finish_creator;
252
-          }
253
-          if (
254
-            this.$store.getters.user.user.id == creator ||
255
-            this.isPremission
256
-          ) {
257
-            this.$refs.start_time_picker.open();
258
-          } else {
259
-            return;
260
-          }
239
+
240
+          this.$refs.start_time_picker.open();
241
+
261 242
         } else {
262 243
           this.$refs.start_time_picker.open();
263 244
         }
@@ -272,6 +253,8 @@ export default {
272 253
       ParamsQuery["record_date"] = this.record_date;
273 254
       ParamsQuery["nurse"] = this.nurse_id;
274 255
       ParamsQuery["end_time"] = this.end_time_str;
256
+      ParamsQuery["mode"] = "1";
257
+
275 258
 
276 259
       finish(ParamsQuery).then(response => {
277 260
         if (response.data.state == 0) {
@@ -314,16 +297,7 @@ export default {
314 297
             }
315 298
           );
316 299
         } else {
317
-          var creator = 0;
318
-          if (this.record.finish_creator == 0) {
319
-            creator = this.record.finish_nurse;
320
-          } else {
321
-            creator = this.record.finish_creator;
322
-          }
323
-          if (
324
-            this.$store.getters.user.user.id == creator ||
325
-            this.isPremission
326
-          ) {
300
+
327 301
             this.selecting = true;
328 302
             var t = this;
329 303
             this.$refs.selector.showSingleSelect(
@@ -340,9 +314,7 @@ export default {
340 314
                 t.selecting = false;
341 315
               }
342 316
             );
343
-          } else {
344
-            return;
345
-          }
317
+
346 318
         }
347 319
       }
348 320
     },
@@ -354,23 +326,12 @@ export default {
354 326
   watch: {
355 327
     "record.stage": function(val) {
356 328
       if (val == 2) {
357
-        for (let i = 0; i < this.special_premission.length; i++) {
358
-          if (
359
-            this.$store.getters.user.user.id ==
360
-            this.special_premission[i].admin_user_id
361
-          ) {
362
-            this.isPremission = true;
363
-          }
364
-        }
365 329
         if (this.record.finish_nurse == 0) {
366 330
           this.creator = this.record.finish_nurse;
367 331
         } else {
368 332
           this.creator = this.record.finish_creator;
369 333
         }
370 334
       }
371
-
372
-      console.log(this.creator);
373
-      console.log(this.$store.getters.user.user.id);
374 335
     }
375 336
   }
376 337
 };

+ 94 - 78
src/pages/main/dialog/PrescriptionDialog.vue Целия файл

@@ -232,13 +232,15 @@
232 232
           <div class="item" v-if="isShow('钾')">
233 233
             <label class="name" for="j">钾(mmol/L)</label>
234 234
             <div class="content">
235
-              <input type="number" @click="newClick($event)" @focus="inputFocus" id="j" v-model="dialysisPrescription.kalium" />
235
+              <input type="number" @click="newClick($event)" @focus="inputFocus" id="j"
236
+                     v-model="dialysisPrescription.kalium"/>
236 237
             </div>
237 238
           </div>
238 239
           <div class="item" v-if="isShow('钠')">
239 240
             <label class="name" for="n">钠(mmol/L):</label>
240 241
             <div class="content">
241
-              <input type="number" @click="newClick($event)" @focus="inputFocus" id="n" v-model="dialysisPrescription.sodium" />
242
+              <input type="number" @click="newClick($event)" @focus="inputFocus" id="n"
243
+                     v-model="dialysisPrescription.sodium"/>
242 244
             </div>
243 245
           </div>
244 246
           <div class="item" v-if="isShow('钙')">
@@ -346,7 +348,7 @@
346 348
           <div class="item" v-if="isShow('体液过多其他症状')">
347 349
             <label class="name" for="knj">体液过多其他症状</label>
348 350
             <div class="content">
349
-              <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.body_fluid_other" />
351
+              <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.body_fluid_other"/>
350 352
             </div>
351 353
           </div>
352 354
 
@@ -397,7 +399,6 @@
397 399
           </div>
398 400
 
399 401
 
400
-
401 402
           <div class="item" v-if="isShow('置换液总量')" v-show="totalShow">
402 403
             <label class="name" for="knj">置换液总量(L)</label>
403 404
             <div class="content">
@@ -412,7 +413,7 @@
412 413
           <div class="item" v-if="isShow('目标KT/V')">
413 414
             <label class="name" for="knj">目标KT/V</label>
414 415
             <div class="content">
415
-              <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.target_ktv" />
416
+              <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.target_ktv"/>
416 417
             </div>
417 418
           </div>
418 419
 
@@ -432,7 +433,7 @@
432 433
           <div class="item" v-if="isShow('实际超滤量')">
433 434
             <label class="name" for="knj">实际超滤量(L)</label>
434 435
             <div class="content">
435
-              <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.ultrafiltration" />
436
+              <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.ultrafiltration"/>
436 437
             </div>
437 438
           </div>
438 439
 
@@ -544,7 +545,7 @@
544 545
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
545 546
   import MultipleSubMenu from './subMenu/multipleSubMenu'
546 547
   import {commitDialysisPrescription, CreateGroupAdvice, GetSolution, postSign, postSolution} from '@/api/dialysis'
547
-  import { calculateAnticoagulantZL} from '@/utils/tools'
548
+  import {calculateAnticoagulantZL} from '@/utils/tools'
548 549
 
549 550
   import {Toast} from 'vant'
550 551
   import {getDataConfig} from '@/utils/data'
@@ -562,7 +563,7 @@
562 563
           return new Array()
563 564
         }
564 565
       },
565
-      system_prescription:{
566
+      system_prescription: {
566 567
         type: Object
567 568
       },
568 569
       predialysis: {
@@ -632,7 +633,7 @@
632 633
         }
633 634
       }
634 635
     },
635
-    data () {
636
+    data() {
636 637
       return {
637 638
         is_pre: 0,
638 639
         template_id: 0,
@@ -643,7 +644,7 @@
643 644
         msgtip_visibility: false,
644 645
         time: '03:00',
645 646
         timeValue: '',
646
-        tempTimeValue:'',
647
+        tempTimeValue: '',
647 648
         isShowSign: false,
648 649
         anticoagulantsConfit: {},
649 650
         dialysateFormulationOptions: [],
@@ -767,22 +768,22 @@
767 768
       // 计算属性的 getter
768 769
 
769 770
     }, methods: {
770
-      newClick(event){
771
+      newClick(event) {
771 772
         event.currentTarget.select();
772 773
       },
773
-      showmsgtip () {
774
+      showmsgtip() {
774 775
         this.msgtip_visibility = true
775 776
         this.isShowDialog = false
776 777
 
777 778
       },
778
-      isPermission () {
779
+      isPermission() {
779 780
         if (this.$store.getters.user.user.user_type == 3 && (this.$store.getters.user.template_info.template_id == 2 || this.$store.getters.user.template_info.template_id == 6)) {
780 781
           return false
781 782
         } else {
782 783
           return true
783 784
         }
784 785
       },
785
-      isShow (name) {
786
+      isShow(name) {
786 787
         var filedList = this.$store.getters.user.fileds
787 788
 
788 789
         for (let i = 0; i < filedList.length; i++) {
@@ -1052,7 +1053,7 @@
1052 1053
                 if (minites < 10) {
1053 1054
                   minites = "0" + minites;
1054 1055
                 }
1055
-                var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1056
+                var nowDate = year + "-" + month + "-" + day + " " + hours + ":" + minites;
1056 1057
 
1057 1058
                 Toast.success('提交成功')
1058 1059
                 let params = {
@@ -1068,7 +1069,7 @@
1068 1069
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1069 1070
                   var resp = rs.data
1070 1071
                   if (resp.state == 1) {
1071
-                    this.$emit('prescription', response.data.data.prescription,resp.data.advices)
1072
+                    this.$emit('prescription', response.data.data.prescription, resp.data.advices)
1072 1073
 
1073 1074
                   } else {
1074 1075
 
@@ -1087,6 +1088,7 @@
1087 1088
             let ParamsQuery = this.dialysisPrescription
1088 1089
             ParamsQuery['patient'] = this.$route.query.patient_id
1089 1090
             ParamsQuery['record_date'] = this.record_date
1091
+            ParamsQuery['mode'] = "1"
1090 1092
             postSolution(ParamsQuery).then(response => {
1091 1093
               if (response.data.state == 0) {
1092 1094
                 Toast.fail(response.data.msg)
@@ -1113,7 +1115,7 @@
1113 1115
                 if (minites < 10) {
1114 1116
                   minites = "0" + minites;
1115 1117
                 }
1116
-                var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1118
+                var nowDate = year + "-" + month + "-" + day + " " + hours + ":" + minites;
1117 1119
 
1118 1120
 
1119 1121
                 let params = {
@@ -1128,8 +1130,8 @@
1128 1130
                 CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
1129 1131
                   var resp = rs.data
1130 1132
                   if (resp.state == 1) {
1131
-                    this.$emit('prescription', response.data.data.prescription,resp.data.advices)
1132
-                    this.$emit('longSolution', response.data.data.solution,resp.data.advices)
1133
+                    this.$emit('prescription', response.data.data.prescription, resp.data.advices)
1134
+                    this.$emit('longSolution', response.data.data.solution, resp.data.advices)
1133 1135
                   } else {
1134 1136
 
1135 1137
                   }
@@ -1163,6 +1165,8 @@
1163 1165
             let ParamsQuery = this.dialysisPrescription
1164 1166
             ParamsQuery['patient'] = this.$route.query.patient_id
1165 1167
             ParamsQuery['record_date'] = this.record_date
1168
+            ParamsQuery['mode'] = "1"
1169
+
1166 1170
             postSolution(ParamsQuery).then(response => {
1167 1171
               if (response.data.state == 0) {
1168 1172
                 Toast.fail(response.data.msg)
@@ -1215,7 +1219,7 @@
1215 1219
                         this.dialysisPrescription[key] = response.data.data.prescription[key]
1216 1220
                       }
1217 1221
                     }
1218
-                  } else if(response.data.data.system_prescription != null){
1222
+                  } else if (response.data.data.system_prescription != null) {
1219 1223
 
1220 1224
                     for (const key in response.data.data.system_prescription) {
1221 1225
                       if (key != 'target_ultrafiltration') {
@@ -1235,8 +1239,6 @@
1235 1239
               }
1236 1240
 
1237 1241
 
1238
-
1239
-
1240 1242
               if (this.dialysisPrescription.dialysis_duration_hour === '' || this.dialysisPrescription.dialysis_duration_minute === '') {
1241 1243
                 this.timeValue = ''
1242 1244
                 this.time = '03:00'
@@ -1300,16 +1302,16 @@
1300 1302
         for (let keys in treatment_mode) {
1301 1303
           if (treatment_mode[keys].id == val) {
1302 1304
             treatment_mode_name = treatment_mode[keys].name
1303
-          var treatment_mode_id = treatment_mode[keys].id
1304
-          console.log("treatment_mode_id",treatment_mode_id)
1305
-            if(treatment_mode_id === 1 || treatment_mode_id === 3 || treatment_mode_id === 4  || treatment_mode_id === 6 || treatment_mode_id === 7 || treatment_mode_id === 8 || treatment_mode_id === 9 || treatment_mode_id === 10 || treatment_mode_id === 11 || treatment_mode_id === 13 || treatment_mode_id === 14 || treatment_mode_id === 15 || treatment_mode_id === 16){
1306
-                 this.zhiShow = false
1307
-                 this.totalShow = false
1308
-                 this.huShow =false
1309
-            }else{
1305
+            var treatment_mode_id = treatment_mode[keys].id
1306
+            console.log("treatment_mode_id", treatment_mode_id)
1307
+            if (treatment_mode_id === 1 || treatment_mode_id === 3 || treatment_mode_id === 4 || treatment_mode_id === 6 || treatment_mode_id === 7 || treatment_mode_id === 8 || treatment_mode_id === 9 || treatment_mode_id === 10 || treatment_mode_id === 11 || treatment_mode_id === 13 || treatment_mode_id === 14 || treatment_mode_id === 15 || treatment_mode_id === 16) {
1308
+              this.zhiShow = false
1309
+              this.totalShow = false
1310
+              this.huShow = false
1311
+            } else {
1310 1312
               this.zhiShow = true
1311 1313
               this.totalShow = true
1312
-              this.huShow  = true
1314
+              this.huShow = true
1313 1315
 
1314 1316
             }
1315 1317
           }
@@ -1373,7 +1375,7 @@
1373 1375
         return anticoagulan_name
1374 1376
       },
1375 1377
       commitInfo: function () {
1376
-        if(this.dialysisPrescription.anticoagulant == 1){
1378
+        if (this.dialysisPrescription.anticoagulant == 1) {
1377 1379
           this.dialysisPrescription.anticoagulant_weichi = '0'
1378 1380
           this.dialysisPrescription.anticoagulant_shouji = '0'
1379 1381
           this.dialysisPrescription.anticoagulant_zongliang = '0'
@@ -1478,7 +1480,7 @@
1478 1480
                   if (minites < 10) {
1479 1481
                     minites = "0" + minites;
1480 1482
                   }
1481
-                  var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1483
+                  var nowDate = year + "-" + month + "-" + day + " " + hours + ":" + minites;
1482 1484
 
1483 1485
                   let params = {
1484 1486
                     advices: this.waitUploadAdvices,
@@ -1534,6 +1536,7 @@
1534 1536
               let ParamsQuery = this.dialysisPrescription
1535 1537
               ParamsQuery['patient'] = this.$route.query.patient_id
1536 1538
               ParamsQuery['record_date'] = this.record_date
1539
+
1537 1540
               ParamsQuery['mode'] = "2"
1538 1541
 
1539 1542
               commitDialysisPrescription(ParamsQuery).then(response => {
@@ -1624,7 +1627,7 @@
1624 1627
                     if (minites < 10) {
1625 1628
                       minites = "0" + minites;
1626 1629
                     }
1627
-                    var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1630
+                    var nowDate = year + "-" + month + "-" + day + " " + hours + ":" + minites;
1628 1631
 
1629 1632
 
1630 1633
                     let params = {
@@ -1685,6 +1688,13 @@
1685 1688
             ParamsQuery['patient'] = this.$route.query.patient_id
1686 1689
             ParamsQuery['record_date'] = this.record_date
1687 1690
             ParamsQuery['mode'] = "2"
1691
+            console.log(this.$store.getters.user.admin.id)
1692
+            console.log(this.prescription_prop)
1693
+
1694
+            if (this.$store.getters.user.admin.id != this.prescription_prop.creater) {
1695
+              ParamsQuery['mode'] = "3"
1696
+            }
1697
+
1688 1698
 
1689 1699
             commitDialysisPrescription(ParamsQuery).then(response => {
1690 1700
               if (response.data.state == 0) {
@@ -1813,7 +1823,7 @@
1813 1823
                   if (minites < 10) {
1814 1824
                     minites = "0" + minites;
1815 1825
                   }
1816
-                  var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1826
+                  var nowDate = year + "-" + month + "-" + day + " " + hours + ":" + minites;
1817 1827
 
1818 1828
 
1819 1829
                   let params = {
@@ -1877,7 +1887,8 @@
1877 1887
               let ParamsQuery = this.dialysisPrescription
1878 1888
               ParamsQuery['patient'] = this.$route.query.patient_id
1879 1889
               ParamsQuery['record_date'] = this.record_date
1880
-              ParamsQuery['mode'] = "2"
1890
+              ParamsQuery['mode'] = "1"
1891
+
1881 1892
 
1882 1893
               postSolution(ParamsQuery).then(response => {
1883 1894
                 if (response.data.state == 0) {
@@ -1915,6 +1926,8 @@
1915 1926
                 let ParamsQuery = this.dialysisPrescription
1916 1927
                 ParamsQuery['patient'] = this.$route.query.patient_id
1917 1928
                 ParamsQuery['record_date'] = this.record_date
1929
+                ParamsQuery['mode'] = "1"
1930
+
1918 1931
                 postSolution(ParamsQuery).then(response => {
1919 1932
                   if (response.data.state == 0) {
1920 1933
                     Toast.fail(response.data.msg)
@@ -1940,7 +1953,7 @@
1940 1953
                 let ParamsQuery = this.dialysisPrescription
1941 1954
                 ParamsQuery['patient'] = this.$route.query.patient_id
1942 1955
                 ParamsQuery['record_date'] = this.record_date
1943
-                ParamsQuery['mode'] = "2"
1956
+                ParamsQuery['mode'] = "1"
1944 1957
 
1945 1958
                 postSolution(ParamsQuery).then(response => {
1946 1959
                   if (response.data.state == 0) {
@@ -1970,7 +1983,7 @@
1970 1983
                     if (minites < 10) {
1971 1984
                       minites = "0" + minites;
1972 1985
                     }
1973
-                    var nowDate = year + "-" + month + "-" + day +" " +hours+":"+ minites;
1986
+                    var nowDate = year + "-" + month + "-" + day + " " + hours + ":" + minites;
1974 1987
 
1975 1988
                     let params = {
1976 1989
                       advices: this.waitUploadAdvices,
@@ -1985,8 +1998,8 @@
1985 1998
                       var resp = rs.data
1986 1999
                       if (resp.state == 1) {
1987 2000
                         this.doctorAdvices = resp.data.advices
1988
-                        this.$emit('longSolution', response.data.data.solution,resp.data.advices)
1989
-                        this.$emit('prescription', response.data.data.prescription,resp.data.advices)
2001
+                        this.$emit('longSolution', response.data.data.solution, resp.data.advices)
2002
+                        this.$emit('prescription', response.data.data.prescription, resp.data.advices)
1990 2003
                       } else {
1991 2004
 
1992 2005
                       }
@@ -2003,7 +2016,7 @@
2003 2016
                 let ParamsQuery = this.dialysisPrescription
2004 2017
                 ParamsQuery['patient'] = this.$route.query.patient_id
2005 2018
                 ParamsQuery['record_date'] = this.record_date
2006
-                ParamsQuery['mode'] = "2"
2019
+                ParamsQuery['mode'] = "1"
2007 2020
 
2008 2021
                 postSolution(ParamsQuery).then(response => {
2009 2022
                   if (response.data.state == 0) {
@@ -2027,7 +2040,11 @@
2027 2040
             let ParamsQuery = this.dialysisPrescription
2028 2041
             ParamsQuery['patient'] = this.$route.query.patient_id
2029 2042
             ParamsQuery['record_date'] = this.record_date
2030
-            ParamsQuery['mode'] = "2"
2043
+            ParamsQuery['mode'] = "1"
2044
+            //
2045
+            // if (this.$store.getters.user.admin.id != this.prescription_prop.creator) {
2046
+            //   ParamsQuery['mode'] = "3"
2047
+            // }
2031 2048
 
2032 2049
             postSolution(ParamsQuery).then(response => {
2033 2050
               if (response.data.state == 0) {
@@ -2205,7 +2222,7 @@
2205 2222
 
2206 2223
       }
2207 2224
     },
2208
-    created () {
2225
+    created() {
2209 2226
       this.template_id = this.$store.getters.user.template_info.template_id
2210 2227
 
2211 2228
       this.modeOption = this.$store.getters.treatment_mode
@@ -2236,23 +2253,23 @@
2236 2253
 
2237 2254
       } else if (this.solution_prop != null && typeof this.solution_prop.id != 'undefined' && this.solution_prop.id) {
2238 2255
         for (const key in this.solution_prop) {
2239
-          if(key != "target_ultrafiltration") {
2256
+          if (key != "target_ultrafiltration") {
2240 2257
             this.dialysisPrescription[key] = this.solution_prop[key]
2241 2258
           }
2242 2259
         }
2243 2260
       } else if (this.last_prescription != null && typeof this.last_prescription.id != 'undefined' && this.last_prescription.id) {
2244 2261
         for (const key in this.last_prescription) {
2245
-          if(key != "target_ultrafiltration") {
2262
+          if (key != "target_ultrafiltration") {
2246 2263
             this.dialysisPrescription[key] = this.last_prescription[key]
2247 2264
           }
2248 2265
         }
2249
-      } else if(this.system_prescription != null && typeof this.system_prescription.id != 'undefined' && this.system_prescription.id){
2266
+      } else if (this.system_prescription != null && typeof this.system_prescription.id != 'undefined' && this.system_prescription.id) {
2250 2267
         for (const key in this.system_prescription) {
2251 2268
           if (key != "target_ultrafiltration") {
2252 2269
             this.dialysisPrescription[key] = this.system_prescription[key]
2253 2270
           }
2254 2271
         }
2255
-      }else{
2272
+      } else {
2256 2273
 
2257 2274
         this.dialysisPrescription.mode_id = this.schedual.mode_id
2258 2275
 
@@ -2293,15 +2310,15 @@
2293 2310
       this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
2294 2311
       this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
2295 2312
 
2296
-      if(this.dialysisPrescription.anticoagulant_shouji == ''){
2313
+      if (this.dialysisPrescription.anticoagulant_shouji == '') {
2297 2314
         this.dialysisPrescription.anticoagulant_shouji = '0'
2298 2315
       }
2299 2316
 
2300
-      if(this.dialysisPrescription.anticoagulant_weichi == ''){
2317
+      if (this.dialysisPrescription.anticoagulant_weichi == '') {
2301 2318
         this.dialysisPrescription.anticoagulant_weichi = '0'
2302 2319
       }
2303 2320
 
2304
-      if(this.dialysisPrescription.anticoagulant_zongliang == ''){
2321
+      if (this.dialysisPrescription.anticoagulant_zongliang == '') {
2305 2322
         this.dialysisPrescription.anticoagulant_weichi = '0'
2306 2323
       }
2307 2324
 
@@ -2316,38 +2333,38 @@
2316 2333
       CheckBoxSubMenu
2317 2334
     },
2318 2335
     watch: {
2319
-      "dialysisPrescription.dialysis_duration":function(){
2336
+      "dialysisPrescription.dialysis_duration": function () {
2320 2337
         console.log(this.dialysisPrescription.dialysis_duration)
2321
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2338
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
2322 2339
           this.dialysisPrescription.anticoagulant_shouji,
2323 2340
           this.dialysisPrescription.dialysis_duration,
2324 2341
           this.dialysisPrescription.anticoagulant_weichi
2325 2342
         );
2326
-        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2343
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2327 2344
           this.dialysisPrescription.anticoagulant_zongliang = ''
2328 2345
         }
2329 2346
       },
2330
-      "dialysisPrescription.anticoagulant_shouji":function(){
2331
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2347
+      "dialysisPrescription.anticoagulant_shouji": function () {
2348
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
2332 2349
           this.dialysisPrescription.anticoagulant_shouji,
2333 2350
           this.dialysisPrescription.dialysis_duration,
2334 2351
           this.dialysisPrescription.anticoagulant_weichi
2335 2352
         );
2336
-        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2353
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2337 2354
           this.dialysisPrescription.anticoagulant_zongliang = ''
2338 2355
         }
2339 2356
       },
2340
-      "dialysisPrescription.anticoagulant_weichi":function(){
2341
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2357
+      "dialysisPrescription.anticoagulant_weichi": function () {
2358
+        this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1,
2342 2359
           this.dialysisPrescription.anticoagulant_shouji,
2343 2360
           this.dialysisPrescription.dialysis_duration,
2344 2361
           this.dialysisPrescription.anticoagulant_weichi
2345 2362
         );
2346
-        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2363
+        if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
2347 2364
           this.dialysisPrescription.anticoagulant_zongliang = ''
2348 2365
         }
2349 2366
       },
2350
-      isShowDialog (val) {
2367
+      isShowDialog(val) {
2351 2368
         if (val) {
2352 2369
           this.advice_visibility = false
2353 2370
         }
@@ -2357,23 +2374,22 @@
2357 2374
 </script>
2358 2375
 
2359 2376
 
2360
-
2361 2377
 <style style="stylesheet/scss" lang="scss" scoped>
2362
-.DialogContent {
2378
+  .DialogContent {
2363 2379
   // padding-bottom:2rem !important;
2364 2380
 
2365 2381
   .textarea {
2366
-    width: 100%;
2367
-    height: 2.4rem;
2368
-    line-height: 0.6rem;
2369
-    color: $pgh-color;
2370
-    font-size: 0.45rem;
2371
-    padding-left: 0.36rem;
2372
-    border: none;
2373
-    border-bottom: 1px #e5e5e5 solid;
2382
+  width: 100%;
2383
+  height: 2.4rem;
2384
+  line-height: 0.6rem;
2385
+  color: $pgh-color;
2386
+  font-size: 0.45rem;
2387
+  padding-left: 0.36rem;
2388
+  border: none;
2389
+  border-bottom: 1px #e5e5e5 solid;
2390
+  }
2374 2391
   }
2375
-}
2376
-.newButton {
2392
+  .newButton {
2377 2393
   background: #258ffc;
2378 2394
   padding: 0 0.2rem;
2379 2395
   height: 0.85rem;
@@ -2381,19 +2397,19 @@
2381 2397
   border-radius: 5px;
2382 2398
   color: #fff;
2383 2399
   margin-right: -3.5rem;
2384
-}
2385
-.newName {
2400
+  }
2401
+  .newName {
2386 2402
   margin-right: -3rem;
2387
-}
2388
-.newDialogContent {
2403
+  }
2404
+  .newDialogContent {
2389 2405
   display: flex;
2390 2406
   flex-direction: column;
2391 2407
   height: 100%;
2392 2408
   overflow: hidden;
2393 2409
   > :first-child {
2394
-    flex: 1;
2395
-    overflow: auto;
2410
+  flex: 1;
2411
+  overflow: auto;
2412
+  }
2396 2413
   }
2397
-}
2398 2414
 </style>
2399 2415
 

+ 7 - 0
src/pages/main/dialog/ThorougDialog.vue Целия файл

@@ -1403,6 +1403,13 @@ export default {
1403 1403
       let ParamsQuery = this.formValue
1404 1404
       ParamsQuery['patient'] = this.$route.query.patient_id
1405 1405
       ParamsQuery['record_date'] = this.record_date
1406
+      ParamsQuery['mode'] = "1"
1407
+      if(this.record.creater > 0){
1408
+        ParamsQuery['mode'] = "2"
1409
+        if(this.$store.getters.user.admin.id != this.record.creater){
1410
+          ParamsQuery['mode'] = "3"
1411
+        }
1412
+      }
1406 1413
       commitAssessmentAfterDislysis(ParamsQuery).then(response => {
1407 1414
         if (response.data.state == 0) {
1408 1415
           Toast.fail(response.data.msg)

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

@@ -287,6 +287,15 @@ export default {
287 287
       let ParamsQuery = this.dialysisSummary;
288 288
       ParamsQuery["patient"] = this.$route.query.patient_id;
289 289
       ParamsQuery["record_date"] = this.record_date;
290
+      ParamsQuery["mode"] = "1";
291
+
292
+      if (this.record.id > 0){
293
+        ParamsQuery["mode"] = "2";
294
+        if(this.record.creater != this.$store.getters.user.admin.id){
295
+          ParamsQuery["mode"] = "3";
296
+        }
297
+      }
298
+
290 299
       commitTreatmentSummary(ParamsQuery).then(response => {
291 300
         if (response.data.state == 0) {
292 301
           Toast.fail(response.data.msg);

+ 10 - 1
src/pages/main/dialog/modify_order/ModifyAdviceGroup.vue Целия файл

@@ -295,6 +295,15 @@ export default {
295 295
     },
296 296
     didModifyAdvice: function(advice) {
297 297
       this.loading = true;
298
+
299
+      let mode = "2"
300
+      console.log(advice.advice_doctor)
301
+      console.log(console.log(advice.advice_doctor))
302
+
303
+      if(advice.advice_doctor != this.$store.getters.user.admin.id && advice.advice_doctor>0){
304
+         mode = "3"
305
+      }
306
+
298 307
       EditDoctorAdvice(advice.id, {
299 308
         advice_name: advice.title,
300 309
         advice_desc: advice.advice_desc,
@@ -307,7 +316,7 @@ export default {
307 316
         prescribing_number: String(advice.prescribing_number),
308 317
         prescribing_number_unit: advice.prescribing_number_unit,
309 318
         drug_spec_unit: advice.drug_spec_unit
310
-      })
319
+      },mode)
311 320
         .then(rs => {
312 321
           if (rs.data.state == 1) {
313 322
             var resp_advice = rs.data.data.advice;

+ 4 - 1
src/pages/main/dialog/modify_order/modify_order_form.vue Целия файл

@@ -235,6 +235,7 @@ export default {
235 235
         parent_id: 0,
236 236
         // start_time: "",
237 237
         // record_time: "",
238
+        advice_doctor:0,
238 239
         title: "",
239 240
         advice_desc: "",
240 241
         drug_spec: "",
@@ -274,6 +275,7 @@ export default {
274 275
       this.order.title = order.title;
275 276
       this.order.advice_desc = order.advice_desc;
276 277
       this.order.remark = order.remark;
278
+      this.order.advice_doctor = order.advice_doctor
277 279
 
278 280
       this.start_time_str =
279 281
         parseTime(order.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
@@ -324,7 +326,8 @@ export default {
324 326
           prescribing_number_unit: this.order.prescribing_number_unit,
325 327
           start_time: this.start_time_str,
326 328
           drug_spec: this.order.drug_spec,
327
-          drug_spec_unit: this.order.drug_spec_unit
329
+          drug_spec_unit: this.order.drug_spec_unit,
330
+          doctor_advice: this.order.advice_doctor,
328 331
         });
329 332
       }
330 333
     },

+ 2 - 1
src/pages/main/dialog/new_order/AddNewOrders.vue Целия файл

@@ -347,7 +347,8 @@ export default {
347 347
       // console.log(adviceJSONs)
348 348
 
349 349
       this.loading = true;
350
-      batchCreateAdvices(this.patient_id, this.group_no, data)
350
+      let mode = "1"
351
+      batchCreateAdvices(this.patient_id, this.group_no, data,mode)
351 352
         .then(rs => {
352 353
           this.loading = false;
353 354
           var resp = rs.data;

+ 9 - 3
src/pages/main/dialog/subMenu/dryWeightMenu.vue Целия файл

@@ -50,6 +50,7 @@
50 50
 <script>
51 51
 import TwoMenu from "../TwoMenu";
52 52
 import { CreateDryWeight } from "@/api/dialysis";
53
+import { Toast } from 'vant'
53 54
 
54 55
 export default {
55 56
   name: "dryWeightMenu",
@@ -69,7 +70,7 @@ export default {
69 70
   },
70 71
   methods: {
71 72
     open() {
72
-      this.creator = this.$store.getters.user.user.id;
73
+      this.creator = this.$store.getters.user.admin.id;
73 74
       this.dry_weight = this.propsForm.weight;
74 75
       this.visibility = true;
75 76
     },
@@ -84,13 +85,18 @@ export default {
84 85
         id: this.$route.query.patient_id,
85 86
         dry_weight: this.dry_weight,
86 87
         remark: this.remark,
87
-        doctor_id: this.creator
88
+        doctor_id: this.creator,
89
+        mode: "1",
88 90
       };
89 91
       CreateDryWeight(params).then(rs => {
90 92
         var res = rs.data;
91 93
         if (res.state == 1) {
92
-          this.$message.success("提交成功");
94
+          Toast("提交成功");
93 95
           this.$emit("menu-comfirm-two", res.data.weight);
96
+        }else {
97
+          // this.$message.success("提交成功");
98
+
99
+          Toast(rs.data.msg)
94 100
         }
95 101
       });
96 102
     },

+ 1 - 1
src/pages/main/dialysis/AdviceTable.vue Целия файл

@@ -1508,7 +1508,7 @@ export default {
1508 1508
     // this.fetchAllAdminUsers();
1509 1509
     this.queryParams.id = this.$route.query.patient_id;
1510 1510
     this.doctor = this.$store.getters.user.user.user_name;
1511
-    this.doctor_id = this.$store.getters.user.user.id;
1511
+    this.doctor_id = this.$store.getters.user.admin.id;
1512 1512
     this.patient_id = this.$route.query.patient_id;
1513 1513
 
1514 1514
     var date = new Date();

+ 2 - 2
src/pages/my/index.vue Целия файл

@@ -73,7 +73,7 @@
73 73
       </div>
74 74
     </div>
75 75
     <div class="myBox">
76
-      <router-link to="/createorg">
76
+      <router-link to="/perfectOrg">
77 77
         <div class="myBoxOne">
78 78
           <div class="myInfoLeft">
79 79
             <img src="../../assets/images/myIcon3.png" alt />
@@ -82,7 +82,7 @@
82 82
           <van-icon class="arrow" name="arrow" />
83 83
         </div>
84 84
       </router-link>
85
-      <router-link to="/forget">
85
+      <router-link to="/modifypsw">
86 86
         <div class="myBoxOne">
87 87
           <div class="myInfoLeft">
88 88
             <img src="../../assets/images/myIcon4.png" alt />

+ 451 - 0
src/pages/my/modifyPassword.vue Целия файл

@@ -0,0 +1,451 @@
1
+<template>
2
+  <div class="page_noPassword">
3
+    <div class="nopasswordTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
5
+      <span class="titleName">修改密码</span>
6
+    </div>
7
+    <div class="forgetmyInput">
8
+      <el-form ref="forgetForm" :model="forgetForm" :rules="rules">
9
+        <el-form-item required prop="phone">
10
+          <div class="phoneLine">
11
+            <i class="el-icon-mobile mobile"></i>
12
+            <el-input
13
+              class="phoneInput"
14
+              placeholder="请填写手机号码"
15
+              v-model="forgetForm.phone"
16
+              v-on:input="watchNum"
17
+              maxlength="11"
18
+              @input="change(forgetForm.phone)"
19
+            ></el-input>
20
+          </div>
21
+        </el-form-item>
22
+        <el-form-item required prop="code">
23
+          <div class="code">
24
+            <i class="iconfont icon-dunpai dunpai"></i>
25
+            <el-input v-model="forgetForm.code" placeholder="请填写验证码" v-on:input="watchNum"></el-input>
26
+            <div class="getCode" @click="getVerifyCode()">{{ code_btn_title }}</div>
27
+          </div>
28
+        </el-form-item>
29
+        <el-form-item>
30
+          <div class="phoneLine">
31
+            <i class="el-icon-lock lock"></i>
32
+            <el-input
33
+              class="phoneInput"
34
+              v-model="psd"
35
+              placeholder="请填写新密码"
36
+              show-password
37
+              v-on:input="watchNum"
38
+              clearable
39
+            ></el-input>
40
+          </div>
41
+        </el-form-item>
42
+      </el-form>
43
+    </div>
44
+
45
+    <div class="login" @click="modifyAndLogin()" v-show="loginshow">登录</div>
46
+    <div class="logintwo" v-show="loginshowtwo">登录</div>
47
+    <div class="problem">
48
+      遇到问题?点击
49
+      <span @click="contact = true">联系客服</span>
50
+    </div>
51
+
52
+    <!-- 弹窗 联系客服 -->
53
+    <el-dialog
54
+      title="客服电话"
55
+      :visible.sync="contact"
56
+      width="19.1875rem"
57
+      top="12.5rem"
58
+      center
59
+      class="myDialog"
60
+    >
61
+      <span class="telephone">0755-86526342</span>
62
+      <span slot="footer" class="dialog-footer">
63
+        <span @click="contact = false">取消</span>
64
+        <span>|</span>
65
+        <span type="primary" @click="callPhone()">拨打</span>
66
+      </span>
67
+    </el-dialog>
68
+  </div>
69
+</template>
70
+
71
+<script>
72
+  // import { getCode, NextStep } from "@/api/login/login";
73
+  import "@/styles/newStyle.scss";
74
+  import { getCodeInit, getVerifyCode, forgetPassWord } from "@/api/login";
75
+  import { checkMobile } from "@/utils/tools";
76
+  import { hex_md5 } from "@/utils/md5";
77
+
78
+  export default {
79
+    data() {
80
+      var checkMobileRule = (rule, value, callback) => {
81
+        if (!checkMobile(value)) {
82
+          callback(new Error("请填写正确的手机号"));
83
+        } else {
84
+          callback();
85
+        }
86
+      };
87
+      return {
88
+        phone: "",
89
+        code: "",
90
+        psd: "",
91
+        contact: false,
92
+        count_downing: false,
93
+        count_down: 0,
94
+        aespass: "",
95
+        forgetForm: {
96
+          phone: "",
97
+          code: ""
98
+        },
99
+        rules: {
100
+          phone: [
101
+            { required: true, message: "手机号码不能为空" },
102
+            { validator: checkMobileRule }
103
+          ],
104
+          code: [{ required: true, message: "验证码不能为空" }]
105
+        },
106
+        loginshow: false,
107
+        loginshowtwo: true,
108
+        codeshow: false,
109
+        codeshowtwo: true
110
+      };
111
+    },
112
+    created() {
113
+      this.GetCodeInit();
114
+      this.forgetForm.phone = this.$store.getters.user.admin.mobile
115
+    },
116
+    methods: {
117
+      modifyAndLogin() {
118
+        if (this.forgetForm.phone.trim().length == 0) {
119
+          this.$toast({
120
+            message: "手机号码不能为空!"
121
+          });
122
+          return;
123
+        }
124
+        if (!checkMobile(this.forgetForm.phone)) {
125
+          this.$toast({
126
+            message: "请填写正确的手机号码!"
127
+          });
128
+          return;
129
+        }
130
+        if (this.forgetForm.code.trim().length == 0) {
131
+          this.$toast({
132
+            message: "验证码不能为空!"
133
+          });
134
+          return;
135
+        }
136
+
137
+        let params = {
138
+          mobile: this.forgetForm.phone,
139
+          code: this.forgetForm.code,
140
+          password: hex_md5(this.psd)
141
+        };
142
+        forgetPassWord(params).then(response => {
143
+          if (response.data.state === 1) {
144
+            this.$router.go(-1)
145
+          }else{
146
+
147
+            this.$toast({
148
+              message: response.data.msg
149
+            });
150
+          }
151
+        });
152
+      },
153
+      GetCodeInit() {
154
+        getCodeInit().then(response => {
155
+          if (response.data.state === 1) {
156
+            this.aespass = response.data.data.aespass;
157
+          }
158
+        });
159
+      },
160
+      getVerifyCode() {
161
+        if (this.forgetForm.phone.length == 0) {
162
+          this.$toast({
163
+            message: "手机号码不能为空!"
164
+          });
165
+          return;
166
+        }
167
+        if (!checkMobile(this.forgetForm.phone)) {
168
+          this.$toast({
169
+            message: "请填写正确的手机号码!"
170
+          });
171
+          return;
172
+        }
173
+
174
+        if (!this.count_downing) {
175
+          let parms = {
176
+            phone: this.forgetForm.phone,
177
+            aespass: this.aespass
178
+          };
179
+          getVerifyCode(parms).then(response => {
180
+            if (response.data.state === 1) {
181
+              this.count_downing = true;
182
+              this.count_down = 61;
183
+              this.countDown();
184
+            }
185
+          });
186
+        }
187
+      },
188
+
189
+      callPhone() {
190
+        window.location.href = "tel://075586526342";
191
+      },
192
+      countDown: function() {
193
+        this.count_down = this.count_down - 1;
194
+        if (this.count_down === 0) {
195
+          this.count_downing = false;
196
+          return;
197
+        }
198
+        var t = this;
199
+        setTimeout(() => {
200
+          this.countDown();
201
+        }, 1000);
202
+      },
203
+      watchNum() {
204
+        if (this.forgetForm.phone.length === 11) {
205
+          this.codeshow = true;
206
+          this.codeshowtwo = false;
207
+        } else {
208
+          this.codeshow = false;
209
+          this.codeshowtwo = true;
210
+        }
211
+
212
+        if (
213
+          this.forgetForm.phone === "" ||
214
+          this.forgetForm.code === "" ||
215
+          this.psd === ""
216
+        ) {
217
+          this.loginshow = false;
218
+          this.loginshowtwo = true;
219
+        } else {
220
+          this.loginshow = true;
221
+          this.loginshowtwo = false;
222
+        }
223
+      },
224
+      change(value) {
225
+        this.forgetForm.phone = value.replace(/[^0-9]+/g, "");
226
+      }
227
+    },
228
+    computed: {
229
+      code_btn_title: function() {
230
+        if (this.count_down == 0) {
231
+          return "获取验证码";
232
+        } else {
233
+          return "重新发送(" + this.count_down + ")";
234
+        }
235
+      }
236
+    }
237
+  };
238
+</script>
239
+
240
+<style lang="scss" scoped>
241
+  .page_noPassword {
242
+    overflow: hidden;
243
+    height: 100%;
244
+  .nopasswordTitle {
245
+    height: 3.125rem;
246
+    line-height: 3.125rem;
247
+    display: flex;
248
+    align-items: center;
249
+  }
250
+  .jiantou {
251
+    margin-left: 1.25rem;
252
+    font-size: 1.5rem;
253
+    font-weight: 600;
254
+    margin-right: 7rem;
255
+  }
256
+  .titleName {
257
+    font-size: 1.125rem;
258
+    font-weight: 600;
259
+  }
260
+  .forgetmyInput {
261
+    margin-top: 4rem;
262
+  .phoneLine {
263
+    width: 84%;
264
+    margin: 0 auto;
265
+    display: flex;
266
+    border-bottom: 1px solid #e6e6e6;
267
+  .mobile {
268
+    float: left;
269
+    color: #acacac;
270
+    font-size: 1.5rem;
271
+    margin-left: 0.375rem;
272
+    line-height: 3.375rem;
273
+    width: 1.5rem;
274
+  }
275
+  .phoneInput {
276
+    width: 95%;
277
+  }
278
+  }
279
+
280
+  .lock {
281
+    float: left;
282
+    color: #acacac;
283
+    font-size: 1.5rem;
284
+    margin-left: 0.375rem;
285
+    line-height: 3.375rem;
286
+    width: 1.5rem;
287
+  }
288
+  .code {
289
+    line-height: 3.375rem;
290
+    width: 84%;
291
+    height: 3.375rem;
292
+    margin: 0 auto;
293
+    border-bottom: 1px solid #e6e6e6;
294
+    display: flex;
295
+    align-items: center;
296
+
297
+  .dunpai {
298
+    float: left;
299
+    color: #acacac;
300
+    font-size: 1.5rem;
301
+    margin-left: 0.375rem;
302
+  }
303
+  .el-input {
304
+    float: left;
305
+    width: 10.6rem;
306
+    border: none;
307
+    padding: 0;
308
+  }
309
+  .el-input__inner {
310
+    padding: 0;
311
+    padding-left: 0.75rem;
312
+  }
313
+  .getCode {
314
+  // float: left;
315
+    width: 5.75rem;
316
+    height: 2rem;
317
+    line-height: 2rem;
318
+    text-align: center;
319
+    color: #fff;
320
+    background: #338afb;
321
+    border-radius: 1.4375rem;
322
+    font-size: 0.8125rem;
323
+  }
324
+  .getCodetwo {
325
+    width: 5.75rem;
326
+    height: 2rem;
327
+  // line-height: 2rem;
328
+    text-align: center;
329
+    color: #fff;
330
+    background: #e5e5e5;
331
+    border-radius: 1.4375rem;
332
+    font-size: 0.8125rem;
333
+  }
334
+
335
+  .el-button--primary {
336
+    border-color: transparent;
337
+  }
338
+  }
339
+  }
340
+  .login {
341
+    width: 19.25rem;
342
+    height: 2.875rem;
343
+    background: linear-gradient(
344
+      -90deg,
345
+      rgba(129, 159, 246, 1),
346
+      rgba(81, 119, 238, 1),
347
+      rgba(75, 102, 234, 1)
348
+    );
349
+    border-radius: 1.4375rem;
350
+    margin: 0 auto;
351
+    line-height: 2.875rem;
352
+    text-align: center;
353
+    color: #fff;
354
+    margin-top: 2.875rem;
355
+  }
356
+  .problem {
357
+    width: 84%;
358
+    font-size: 0.8125rem;
359
+    margin: 15rem auto 0;
360
+    text-align: center;
361
+  span {
362
+    color: #338afb;
363
+  }
364
+  }
365
+  }
366
+
367
+  .el-form-item__error {
368
+    margin-left: 2.5rem;
369
+  }
370
+
371
+  .logintwo {
372
+    width: 19.25rem;
373
+    height: 2.875rem;
374
+    background: #e5e5e5;
375
+    border-radius: 1.4375rem;
376
+    margin: 0 auto;
377
+    line-height: 2.875rem;
378
+    text-align: center;
379
+    color: #fff;
380
+    margin-top: 2.875rem;
381
+  }
382
+  .el-button--medium {
383
+    padding: 0;
384
+  }
385
+</style>
386
+<style lang="scss">
387
+  .forgetmyInput {
388
+  .el-form-item {
389
+    margin-bottom: 0;
390
+  }
391
+  .el-input {
392
+    display: flex;
393
+    align-items: center;
394
+    margin: 0 auto;
395
+    color: rgba(155, 155, 155, 1);
396
+    padding-left: 0.75rem;
397
+    box-sizing: border-box;
398
+    height: 3.375rem;
399
+    line-height: 3.375rem;
400
+  }
401
+  .el-input__inner {
402
+    border: none;
403
+    font-size: 1rem;
404
+    padding-left: 0;
405
+  }
406
+  .el-input__prefix {
407
+    font-size: 1.5rem;
408
+    color: #acacac;
409
+  }
410
+
411
+  .phoneLine {
412
+  .el-input__clear {
413
+    margin-right: 0.625rem;
414
+  }
415
+  .el-input__icon {
416
+    line-height: 3.375rem;
417
+    font-size: 1.5rem;
418
+  }
419
+  }
420
+  }
421
+  .myDialog {
422
+    line-height: 50%;
423
+    height: 100%;
424
+  .el-dialog {
425
+    border-radius: 10px;
426
+  }
427
+  .el-dialog__title {
428
+    color: #000000;
429
+  }
430
+  .telephone {
431
+    width: 12.5rem;
432
+    height: 1.125rem;
433
+    font-size: 1.5rem;
434
+    font-weight: 500;
435
+    color: #338afb;
436
+    margin-left: 2.5rem;
437
+  }
438
+  .dialog-footer {
439
+  > span:nth-of-type(1) {
440
+    color: #9b9b9b;
441
+  }
442
+  > span:nth-of-type(2) {
443
+    padding: 0 3.125rem;
444
+    color: #e6e6e6;
445
+  }
446
+  > span:nth-of-type(3) {
447
+    color: #000000;
448
+  }
449
+  }
450
+  }
451
+</style>

+ 1 - 1
src/pages/waitingRoom/components/dialog/addMonitor.vue Целия файл

@@ -194,7 +194,7 @@ export default {
194 194
         symptom: "", // 症状
195 195
         dispose: "", // 处理
196 196
         result: "", // 结果
197
-        monitoring_nurse: this.$store.getters.user.user.id // 监测人
197
+        monitoring_nurse: this.$store.getters.user.admin.id // 监测人
198 198
       },
199 199
       doctor: this.$store.getters.user.user.user_name
200 200
     };

Файловите разлики са ограничени, защото са твърде много
+ 480 - 468
src/pages/waitingRoom/components/dialog/medicalOrder.vue


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

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

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

@@ -394,6 +394,10 @@ export default new Router({
394 394
       path: '/userAgreement',
395 395
       name: 'userAgreement',
396 396
       component: () => import('@/pages/userAgreement/index')
397
-    }
397
+    }, {
398
+      path: '/modifypsw',
399
+      name: 'modifyPassword',
400
+      component: () => import('@/pages/my/modifyPassword')
401
+    },
398 402
   ]
399 403
 })

+ 4 - 2
src/utils/request.js Целия файл

@@ -1,5 +1,6 @@
1 1
 import axios from 'axios'
2
-import { Toast } from 'mint-ui'
2
+// import { Toast } from 'mint-ui'
3
+import { Toast } from "vant";
3 4
 
4 5
 // create an axios instance
5 6
 const service = axios.create({
@@ -26,7 +27,8 @@ service.interceptors.response.use(
26 27
         //     location.reload() // 为了重新实例化vue-router对象 避免bug
27 28
         //   })
28 29
         // })
29
-        // location.reload()
30
+        Toast("登录超时")
31
+        location.reload()
30 32
         return Promise.reject('error')
31 33
       } else {
32 34
         return response