XMLWAN 4 лет назад
Родитель
Сommit
3b2e1116e1

+ 12 - 0
src/api/patient/patient.js Просмотреть файл

@@ -545,3 +545,15 @@ export function DeleteInspection(date) {
545 545
     params: params
546 546
   })
547 547
 }
548
+
549
+export function DeleteChildInspection(name, date) {
550
+  const params = {
551
+    name: name,
552
+    date: date
553
+  }
554
+  return request({
555
+    url: '/m/api/patient/deletechildinspection',
556
+    method: 'delete',
557
+    params: params
558
+  })
559
+}

+ 0 - 1
src/pages/doctorAdvice/components/DoctorManagement.vue Просмотреть файл

@@ -549,7 +549,6 @@ export default {
549 549
         DeleteManagement(id).then(response => {
550 550
           if (response.data.state === 1) {
551 551
             var msg = response.data.data.msg;
552
-
553 552
             this.doctorAdvice.splice(index, 1);
554 553
             this.newShow = false;
555 554
           }

+ 23 - 22
src/pages/doctorAdvice/components/Inspection.vue Просмотреть файл

@@ -114,7 +114,7 @@
114 114
         v-model="newShowOne"
115 115
         :actions="actions1"
116 116
         cancel-text="取消"
117
-        @select="DeleteInspection"
117
+        @select="DeleteInspectionOne"
118 118
       />
119 119
     </div>
120 120
   </div>
@@ -125,7 +125,8 @@ import {
125 125
   getPatientDetail,
126 126
   getAllInspection,
127 127
   getInspection,
128
-  DeleteInspection
128
+  DeleteInspection,
129
+  DeleteChildInspection
129 130
 } from "@/api/patient/patient";
130 131
 import { uParseTime } from "@/utils/tools";
131 132
 import { Dialog } from "vant";
@@ -338,44 +339,44 @@ export default {
338 339
         this.DeleteInspection(this.date, this.index);
339 340
       }
340 341
     },
341
-    DeleteInspection(id, index) {
342
+    DeleteOne(name, date, index) {
343
+      this.newShowOne = true;
344
+      this.name = name;
345
+      this.date = date;
346
+      this.index = index;
347
+    },
348
+    DeleteInspectionOne(val) {
349
+      if (val.name == "删除") {
350
+        this.DeleteChildInspection(this.name, this.date, this.index);
351
+      }
352
+    },
353
+    // 删除检验检测
354
+    DeleteInspection(name, date, index) {
342 355
       Dialog.confirm({
343 356
         title: "删除提示!",
344 357
         message: "确认删除该条信息吗?,删除后将无法恢复!"
345 358
       }).then(() => {
346
-        DeleteInspection(id).then(response => {
359
+        DeleteInspection(name, date).then(response => {
347 360
           if (response.data.state === 1) {
348 361
             var msg = response.data.data.msg;
349
-
350 362
             this.Inspection.splice(index, 1);
351 363
             this.newShow = false;
352 364
           }
353 365
         });
354 366
       });
355 367
     },
356
-    DeleteOne(name, date, index) {
357
-      this.newShowOne = true;
358
-      this.name = name;
359
-      this.date = date;
360
-      this.index = index;
361
-    },
362
-    DeleteInspection(val) {
363
-      if (val.name == "删除") {
364
-        this.DeleteChildInspection(this.name, this.date, this.index);
365
-      }
366
-    },
367
-    // 删除整组医嘱
368
-    DeleteInspection(name, index, staff) {
368
+    // 删除子项目
369
+    DeleteChildInspection(name, date, index) {
369 370
       Dialog.confirm({
370 371
         title: "删除提示!",
371 372
         message: "确认删除该条信息吗?,删除后将无法恢复!"
372 373
       }).then(() => {
373
-        DeleteInspection(id).then(response => {
374
+        DeleteChildInspection(name, date).then(response => {
374 375
           if (response.data.state === 1) {
375 376
             var msg = response.data.data.msg;
376
-
377
-            this.doctorAdvice.splice(index, 1);
378
-            this.newShow = false;
377
+            // this.Inspection.splice(index, 1);
378
+            this.getInspection(this.patientid);
379
+            this.newShowOne = false;
379 380
           }
380 381
         });
381 382
       });

+ 73 - 7
src/pages/my/feedBack.vue Просмотреть файл

@@ -15,7 +15,12 @@
15 15
     </div>
16 16
     <div class="feedBackTip">反馈标题</div>
17 17
     <div>
18
-      <van-field v-model="form.title" type="text" maxlength="30" placeholder="请填写标题30个字以内" />
18
+      <van-field
19
+        v-model="form.title"
20
+        type="text"
21
+        maxlength="30"
22
+        placeholder="请填写标题30个字以内"
23
+      />
19 24
     </div>
20 25
     <div class="feedBackTip">
21 26
       反馈内容
@@ -32,7 +37,14 @@
32 37
         show-word-limit
33 38
       />
34 39
       <div class="uploaderBox">
35
-        <van-uploader v-model="fileList" multiple :max-count="6" />
40
+        <van-uploader
41
+          v-model="fileList"
42
+          multiple
43
+          :max-count="6"
44
+          :data="uploadFileData"
45
+          :before-read="beforeRead"
46
+          :after-read="afterRead"
47
+        />
36 48
       </div>
37 49
     </div>
38 50
     <div class="feedBackTip">
@@ -45,8 +57,12 @@
45 57
     <div class="feedBackTip">接受电话处理时间</div>
46 58
     <div class="typeBox1">
47 59
       <p :class="time == 1 ? 'active' : ''" @click="clickTime(1)">任何时间</p>
48
-      <p :class="time == 2 ? 'active' : ''" @click="clickTime(2)">09:00~12:00</p>
49
-      <p :class="time == 3 ? 'active' : ''" @click="clickTime(3)">13:00~18:00</p>
60
+      <p :class="time == 2 ? 'active' : ''" @click="clickTime(2)">
61
+        09:00~12:00
62
+      </p>
63
+      <p :class="time == 3 ? 'active' : ''" @click="clickTime(3)">
64
+        13:00~18:00
65
+      </p>
50 66
       <p :class="time == 4 ? 'active' : ''" @click="clickTime(4)">从不接受</p>
51 67
     </div>
52 68
     <div>
@@ -58,6 +74,8 @@
58 74
 
59 75
 <script>
60 76
 import { submitFeed } from "@/api/patient/patient";
77
+import { getToken } from "@/api/qiniu";
78
+import { getFileExtension } from "@/utils/tools";
61 79
 export default {
62 80
   data() {
63 81
     return {
@@ -68,11 +86,15 @@ export default {
68 86
       time: 1,
69 87
       show: false,
70 88
       form: {
89
+        admin_user_id: "",
71 90
         title: "",
72 91
         content: "",
73 92
         phone: "",
74
-        time: ""
75
-      }
93
+        time: "",
94
+        images: ""
95
+      },
96
+      qiniuDomain: "https://images.shengws.com/",
97
+      uploadFileData: { token: "", key: "" }
76 98
     };
77 99
   },
78 100
   methods: {
@@ -108,7 +130,8 @@ export default {
108 130
         title: this.form.title,
109 131
         content: this.form.content,
110 132
         phone: this.form.phone,
111
-        time: this.time
133
+        time: this.time,
134
+        admin_user_id: this.form.admin_user_id
112 135
       };
113 136
       submitFeed(params).then(response => {
114 137
         if (response.data.state === 1) {
@@ -120,7 +143,50 @@ export default {
120 143
           this.$router.push("/newMy");
121 144
         }
122 145
       });
146
+    },
147
+    afterRead(file) {
148
+      console.log("file", file);
149
+    },
150
+    // beforeRead(file) {
151
+    //   console.log("上传", file);
152
+    //  console.log(file.name);
153
+    //  this.form.images = this.qiniuDomain + file.name;
154
+    //  console.log("图片", this.form.images);
155
+    // },
156
+    beforeRead(file) {
157
+      console.log("file", file);
158
+      var date = new Date();
159
+      var ext = getFileExtension(file.name);
160
+      var key =
161
+        date.getFullYear() +
162
+        (date.getMonth() + 1) +
163
+        date.getDate() +
164
+        date.getHours() +
165
+        date.getMinutes() +
166
+        date.getSeconds() +
167
+        "_o_" +
168
+        file.lastModified +
169
+        "." +
170
+        ext;
171
+      const _self = this;
172
+      return new Promise((resolve, reject) => {
173
+        getToken()
174
+          .then(response => {
175
+            const token = response.data.data.uptoken;
176
+            console.log("token2是什么?", token);
177
+            _self._data.uploadFileData.token = token;
178
+            _self._data.uploadFileData.key = key;
179
+            resolve(true);
180
+          })
181
+          .catch(err => {
182
+            reject(false);
183
+          });
184
+      });
123 185
     }
186
+  },
187
+  created() {
188
+    var id = this.$route.query.id;
189
+    this.form.admin_user_id = id;
124 190
   }
125 191
 };
126 192
 </script>

+ 32 - 20
src/pages/my/index.vue Просмотреть файл

@@ -5,7 +5,11 @@
5 5
       <router-link to="/myInfo">
6 6
         <div class="avatar">
7 7
           <img v-if="roleInfo.avatar != ''" :src="roleInfo.avatar" alt />
8
-          <img v-if="roleInfo.avatar == ''" src="../../assets/images/default_avatar.jpg" alt />
8
+          <img
9
+            v-if="roleInfo.avatar == ''"
10
+            src="../../assets/images/default_avatar.jpg"
11
+            alt
12
+          />
9 13
         </div>
10 14
         <div class="userMain">
11 15
           <div class="userBox">
@@ -20,15 +24,14 @@
20 24
       <div class="invitebox">
21 25
         <img src="../../assets/images/invite.png" alt />
22 26
       </div>
23
-      <router-link to="/myInfo">
24
-        <div class="myInfo">
25
-          <div class="myInfoLeft">
26
-            <img src="../../assets/images/myIcon1.png" alt />
27
-            <p>我的信息</p>
28
-          </div>
29
-          <van-icon class="arrow" name="arrow" />
27
+
28
+      <div class="myInfo" @click="toMyInfo">
29
+        <div class="myInfoLeft">
30
+          <img src="../../assets/images/myIcon1.png" alt />
31
+          <p>我的信息</p>
30 32
         </div>
31
-      </router-link>
33
+        <van-icon class="arrow" name="arrow" />
34
+      </div>
32 35
     </div>
33 36
     <div class="myBox">
34 37
       <router-link to="/organizationInfo">
@@ -54,7 +57,7 @@
54 57
           <img src="../../assets/images/m01.png" alt />
55 58
           <p>我的医院/组织/团队</p>
56 59
         </div>
57
-        <div class="myInfoRight">
60
+        <div class="myInfoRight" @click="toManage">
58 61
           <div class="myInfoRightBtn">管理</div>
59 62
           <van-icon class="arrow" name="arrow" />
60 63
         </div>
@@ -88,15 +91,15 @@
88 91
         </div>
89 92
         <van-icon class="arrow" name="arrow" />
90 93
       </div>
91
-      <router-link to="/feedBack">
92
-        <div class="myBoxOne">
93
-          <div class="myInfoLeft">
94
-            <img src="../../assets/images/myIcon6.png" alt />
95
-            <p>意见反馈</p>
96
-          </div>
97
-          <van-icon class="arrow" name="arrow" />
94
+
95
+      <div class="myBoxOne" @click="toFeed">
96
+        <div class="myInfoLeft">
97
+          <img src="../../assets/images/myIcon6.png" alt />
98
+          <p>意见反馈</p>
98 99
         </div>
99
-      </router-link>
100
+        <van-icon class="arrow" name="arrow" />
101
+      </div>
102
+
100 103
       <router-link to="/about">
101 104
         <div class="myBoxOne">
102 105
           <div class="myInfoLeft">
@@ -125,7 +128,8 @@ import { getMyInformation } from "@/api/patient/patient";
125 128
 export default {
126 129
   data() {
127 130
     return {
128
-      roleInfo: {}
131
+      roleInfo: {},
132
+      admin_user_id: 0
129 133
     };
130 134
   },
131 135
   methods: {
@@ -139,10 +143,18 @@ export default {
139 143
           console.log("sinature", sinature);
140 144
           var roleInfo = response.data.data.roleInfo;
141 145
           console.log("roleInfo", roleInfo);
146
+          this.admin_user_id = roleInfo.admin_user_id;
142 147
           this.roleInfo = roleInfo;
143 148
         }
144 149
       });
145
-    }
150
+    },
151
+    toFeed() {
152
+      this.$router.push("/feedBack?id=" + this.admin_user_id);
153
+    },
154
+    toMyInfo() {
155
+      this.$router.push("/myInfo?id=" + this.admin_user_id);
156
+    },
157
+    toManage() {}
146 158
   },
147 159
   created() {
148 160
     this.getMyInformation();

+ 18 - 10
src/pages/my/myInfo.vue Просмотреть файл

@@ -9,7 +9,11 @@
9 9
         <p>头像</p>
10 10
         <div class="infoBoxOneRight">
11 11
           <img v-if="roleInfo.avatar != ''" :src="roleInfo.avatar" alt />
12
-          <img v-if="roleInfo.avatar == ''" src="../../assets/images/default_avatar.jpg" alt />
12
+          <img
13
+            v-if="roleInfo.avatar == ''"
14
+            src="../../assets/images/default_avatar.jpg"
15
+            alt
16
+          />
13 17
           <van-icon class="arrow" name="arrow" />
14 18
         </div>
15 19
       </div>
@@ -36,15 +40,13 @@
36 40
           <van-icon class="arrow" name="arrow" />
37 41
         </div>
38 42
       </div>
39
-      <router-link to="/personalsign">
40
-        <div class="infoBoxTwo">
41
-          <p>个性签名</p>
42
-          <div class="infoBoxOneRight">
43
-            <p></p>
44
-            <van-icon class="arrow" name="arrow" />
45
-          </div>
43
+      <div class="infoBoxTwo" @click="toMyPersonalsign">
44
+        <p>个性签名</p>
45
+        <div class="infoBoxOneRight">
46
+          <p></p>
47
+          <van-icon class="arrow" name="arrow" />
46 48
         </div>
47
-      </router-link>
49
+      </div>
48 50
     </div>
49 51
     <!-- 弹窗 -->
50 52
     <div>
@@ -75,7 +77,8 @@ export default {
75 77
       minDate: new Date(1900, 0, 1),
76 78
       maxDate: new Date(2025, 10, 1),
77 79
       currentDate: new Date(),
78
-      roleInfo: {}
80
+      roleInfo: {},
81
+      admin_user_id: ""
79 82
     };
80 83
   },
81 84
   methods: {
@@ -89,10 +92,15 @@ export default {
89 92
           this.roleInfo = roleInfo;
90 93
         }
91 94
       });
95
+    },
96
+    toMyPersonalsign() {
97
+      this.$router.push("/personalsign?id=" + this.admin_user_id);
92 98
     }
93 99
   },
94 100
   created() {
95 101
     this.getMyInformation();
102
+    var id = this.$route.query.id;
103
+    this.admin_user_id = id;
96 104
   }
97 105
 };
98 106
 </script>

+ 25 - 2
src/pages/my/personalSign.vue Просмотреть файл

@@ -3,7 +3,7 @@
3 3
     <div class="personalSignTitle">
4 4
       <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
5 5
       <span class="titleName">个性签名</span>
6
-      <span>保存</span>
6
+      <span @click="SaveMessage">保存</span>
7 7
     </div>
8 8
     <div class="nameBox">
9 9
       <van-field
@@ -17,7 +17,30 @@
17 17
     </div>
18 18
   </div>
19 19
 </template>
20
-
20
+<script>
21
+export default {
22
+  data() {
23
+    return {
24
+      message: "",
25
+      admin_user_id: ""
26
+    };
27
+  },
28
+  methods: {
29
+    SaveMessage() {
30
+      const params = {
31
+        id: this.admin_user_id,
32
+        message: this.message
33
+      };
34
+      SaveMessage(params).then(response => {});
35
+    }
36
+  },
37
+  created() {
38
+    var id = this.$route.query.id;
39
+    this.admin_user_id = id;
40
+    // console.log("id是什么", id);
41
+  }
42
+};
43
+</script>
21 44
 
22 45
 <style lang="scss" scoped>
23 46
 .page_personalSign {