XMLWAN 4 gadus atpakaļ
vecāks
revīzija
d83deb245a

+ 37 - 0
src/api/patient/patient.js Parādīt failu

@@ -723,3 +723,40 @@ export function getBloodPatient(params) {
723 723
     params: params
724 724
   })
725 725
 }
726
+
727
+export function DeletePatient(id, params) {
728
+  return request({
729
+    url: '/m/api/patient/deletePatient?id=' + id,
730
+    method: 'delete',
731
+    params: params
732
+  })
733
+}
734
+
735
+export function saveName(id, name) {
736
+  const params = {
737
+    id: id,
738
+    name: name
739
+  }
740
+  console.log('params', params)
741
+  return request({
742
+    url: '/m/api/patient/savename',
743
+    method: 'get',
744
+    params: params
745
+  })
746
+}
747
+
748
+export function getAllOrganization(id, params) {
749
+  return request({
750
+    url: '/m/api/patient/getallorganization?id=' + id,
751
+    method: 'get',
752
+    params: params
753
+  })
754
+}
755
+
756
+export function getMyOrganazition(id, params) {
757
+  return request({
758
+    url: '/m/api/patient/getmyorganazition?id=' + id,
759
+    method: 'get',
760
+    params: params
761
+  })
762
+}

+ 1 - 1
src/pages/allCourseManagement/index.vue Parādīt failu

@@ -2,7 +2,7 @@
2 2
   <div class="page_allCourse">
3 3
     <van-sticky>
4 4
       <div class="allCourseTitle">
5
-        <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
5
+        <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
6 6
         <span class="titleName">{{ couseDetail.name }}的病程记录</span>
7 7
       </div>
8 8
     </van-sticky>

+ 77 - 11
src/pages/allDoctorAdvice/index.vue Parādīt failu

@@ -36,12 +36,12 @@
36 36
                    <van-icon
37 37
                   class="ellipsis"
38 38
                   name="ellipsis"
39
-                  @click="newShow = true"
39
+                  @click="toDelete(it.id,it.execution_state,i)"
40 40
                 />
41 41
                 </div>
42 42
                 <div v-for="(i, index) in childList" :key="index">
43
-                 <div style="display:flex;justify-content:space-between">
44
-                    <p v-if="i.parent_id == it.id">
43
+                 <div style="display:flex;justify-content:space-between" v-if="i.parent_id == it.id">
44
+                    <p>
45 45
                       ▲ {{ i.advice_name }} {{ i.advice_desc
46 46
                       }}{{ i.drug_spec_unit }} {{ i.prescribing_number
47 47
                       }}{{ i.prescribing_number_unit }} {{ i.single_dose
@@ -52,7 +52,7 @@
52 52
                        <van-icon
53 53
                         class="ellipsis"
54 54
                         name="ellipsis"
55
-                        @click="Delete(i.id,index)"
55
+                        @click="Delete(i.id,i.execution_state,index)"
56 56
                        />
57 57
                   </div>
58 58
                 </div>
@@ -158,7 +158,13 @@
158 158
 </template>
159 159
 <script>
160 160
 import { setRem, setHeight } from "@/libs/functionRem";
161
-import { GetDoctorAdviceDetail, getAllDoctor } from "@/api/patient/patient";
161
+import {
162
+  GetDoctorAdviceDetail,
163
+  getAllDoctor,
164
+  DeleteChild,
165
+  DeletePatient
166
+} from "@/api/patient/patient";
167
+import { Dialog } from "vant";
162 168
 import { uParseTime } from "@/utils/tools";
163 169
 export default {
164 170
   data() {
@@ -179,7 +185,8 @@ export default {
179 185
       newShowTwo: false,
180 186
       newShowThree: false,
181 187
       id: 0,
182
-      index: 0
188
+      index: 0,
189
+      state: 0
183 190
     };
184 191
   },
185 192
   methods: {
@@ -273,22 +280,81 @@ export default {
273 280
         }
274 281
       }
275 282
     },
276
-    Delete(id, index) {
283
+    toDelete(id, state, index) {
284
+      console.log("id", id);
285
+      console.log("state", state);
286
+      this.id = id;
287
+      this.state = state;
288
+      this.index = index;
289
+      this.newShow = true;
290
+    },
291
+    Delete(id, state, index) {
277 292
       console.log("id", id);
293
+      console.log("state", state);
278 294
       this.id = id;
295
+      this.state = state;
279 296
       this.index = index;
280 297
       this.newShowOne = true;
281 298
     },
282
-    onCancel() {},
283
-    onSelect() {},
299
+
300
+    onCancel() {
301
+      this.newShow = false;
302
+    },
303
+    onSelect(val) {
304
+      if (val.name === "删除") {
305
+        this.DeletePatient(this.id, this.state, this.index);
306
+      }
307
+    },
284 308
     onCancelOne() {
285 309
       this.newShowOne = false;
286 310
     },
287
-    onSelectOne() {},
311
+    onSelectOne(val) {
312
+      if (val.name === "删除") {
313
+        this.DeleteChild(this.id, this.index, this.state);
314
+      }
315
+    },
288 316
     onSelectTwo() {},
289 317
     onCancelTwo() {},
290 318
     onCancelThree() {},
291
-    onSelectThree() {}
319
+    onSelectThree() {},
320
+    DeletePatient(id, index, state) {
321
+      if (state == 1) {
322
+        this.$toast("医嘱已执行,无法删除");
323
+        return false;
324
+      }
325
+      Dialog.confirm({
326
+        title: "删除提示!",
327
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
328
+      }).then(() => {
329
+        DeletePatient(id).then(response => {
330
+          if (response.data.state === 1) {
331
+            var msg = response.data.data.msg;
332
+
333
+            this.doctorAdvicedetail.splice(index, 1);
334
+            this.newShow = false;
335
+          }
336
+        });
337
+      });
338
+    },
339
+    DeleteChild(id, index, state) {
340
+      if (state == 1) {
341
+        this.$toast("医嘱已执行,无法删除");
342
+        return false;
343
+      }
344
+      Dialog.confirm({
345
+        title: "删除提示!",
346
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
347
+      }).then(() => {
348
+        DeleteChild(id).then(response => {
349
+          if (response.data.state === 1) {
350
+            var msg = response.data.data.msg;
351
+
352
+            this.childList.splice(index, 1);
353
+            this.newShowOne = false;
354
+          }
355
+        });
356
+      });
357
+    }
292 358
   },
293 359
   created() {
294 360
     this.active = parseInt(this.$route.query.active);

+ 23 - 16
src/pages/configureCenter/components/Bed.vue Parādīt failu

@@ -2,11 +2,12 @@
2 2
   <div class="Bed">
3 3
     <van-list
4 4
       v-model="loading"
5
+      @load="onLoad"
5 6
       :finished="finished"
6 7
       finished-text="没有更多了"
7
-      @load="onLoad"
8
+      :immediate-check='show'
8 9
     >
9
-      <div class="BedOne" v-for="(item,index) in this.Number" :key="index">
10
+      <div class="BedOne" v-for="(item,index) in BedNumber" :key="index">
10 11
         <div class="BedLeft">
11 12
           <p>床位号:{{item.number}}</p>
12 13
           <p>分区类型:{{getZone(item.zone_id)}}</p>
@@ -42,11 +43,12 @@ export default {
42 43
       loading: false,
43 44
       finished: false,
44 45
       newShow: false,
46
+      show: false,
45 47
       actions: [{ name: "删除" }],
46 48
       page: 1,
47 49
       limit: 10,
48 50
       total: 0,
49
-      Number: [],
51
+      BedNumber: [],
50 52
       Zone: [],
51 53
       Group: [],
52 54
       id: 0,
@@ -54,7 +56,6 @@ export default {
54 56
     };
55 57
   },
56 58
   methods: {
57
-    onLoad() {},
58 59
     onCancel() {},
59 60
     addBed() {
60 61
       this.$router.push("/addbed?active=" + this.active);
@@ -63,8 +64,12 @@ export default {
63 64
       GetAllNumber(this.page, this.limit).then(response => {
64 65
         if (response.data.state === 1) {
65 66
           var number = response.data.data.number;
66
-          this.Number = number;
67
+          console.log("number", number);
68
+          let arr = this.BedNumber;
69
+          arr.push(...number);
70
+          this.BedNumber = arr;
67 71
           var total = response.data.data.total;
72
+          console.log("total", total);
68 73
           this.total = total;
69 74
           var zone = response.data.data.zone;
70 75
           this.Zone = zone;
@@ -74,6 +79,17 @@ export default {
74 79
         }
75 80
       });
76 81
     },
82
+    onLoad() {
83
+      setTimeout(() => {
84
+        this.page++;
85
+        if (this.page <= Math.ceil(this.total / 10)) {
86
+          this.GetAllNumber(this.page, this.limit);
87
+        } else {
88
+          this.loading = false;
89
+          this.finished = true;
90
+        }
91
+      }, 1000);
92
+    },
77 93
     getZone(id) {
78 94
       for (let i = 0; i < this.Zone.length; i++) {
79 95
         if (id === this.Zone[i].id) {
@@ -88,17 +104,7 @@ export default {
88 104
         }
89 105
       }
90 106
     },
91
-    onLoad() {
92
-      setTimeout(() => {
93
-        this.page++;
94
-        if (this.page <= Math.ceil(this.total / 10)) {
95
-          this.GetAllNumber(this.page, this.limit);
96
-        } else {
97
-          this.loading = false;
98
-          this.finished = true;
99
-        }
100
-      }, 1000);
101
-    },
107
+
102 108
     Delete(id, index) {
103 109
       this.newShow = true;
104 110
       this.id = id;
@@ -137,6 +143,7 @@ export default {
137 143
 
138 144
 <style lang="scss" scoped>
139 145
 .Bed {
146
+  margin-bottom: 3.125rem;
140 147
   .BedOne {
141 148
     padding: 1.375rem 1.125rem 0 1.5rem;
142 149
     display: flex;

+ 18 - 6
src/pages/configureCenter/components/Grouping.vue Parādīt failu

@@ -10,7 +10,7 @@
10 10
         <div class="GroupingLeft">
11 11
           <p>分组名称:{{item.name}}</p>
12 12
         </div>
13
-        <van-icon class="ellipsis" name="ellipsis" @click="Delete(item.id,index)" />
13
+        <van-icon class="ellipsis" name="ellipsis" @click="Delete(item.id,item.number,index)" />
14 14
       </div>
15 15
     </van-list>
16 16
     <div class="add">
@@ -45,7 +45,9 @@ export default {
45 45
       limit: 10,
46 46
       group: [],
47 47
       id: 0,
48
-      index: 0
48
+      index: 0,
49
+      total: 0,
50
+      number: ""
49 51
     };
50 52
   },
51 53
   methods: {
@@ -57,10 +59,13 @@ export default {
57 59
       getAllGroup(this.page, this.limit).then(response => {
58 60
         if (response.data.state === 1) {
59 61
           var group = response.data.data.group;
60
-          this.group = group;
62
+          let arr = this.group;
63
+          arr.push(...group);
64
+          this.group = arr;
61 65
           console.log("group", group);
62 66
           var total = response.data.data.total;
63 67
           console.log("total", total);
68
+          this.total = total;
64 69
           this.loading = false;
65 70
         }
66 71
       });
@@ -79,17 +84,23 @@ export default {
79 84
     onCancel() {
80 85
       this.newShow = false;
81 86
     },
82
-    Delete(id, index) {
87
+    Delete(id, number, index) {
83 88
       this.newShow = true;
84 89
       this.id = id;
85 90
       this.index = index;
91
+      this.number = number;
86 92
     },
87 93
     OnSelect(val) {
88 94
       if (val.name === "删除") {
89
-        this.DeleteGroup(this.id, this.index);
95
+        this.DeleteGroup(this.id, this.number, this.index);
90 96
       }
91 97
     },
92
-    DeleteGroup(id, index) {
98
+    DeleteGroup(id, number, index) {
99
+      if (number !== "") {
100
+        this.$toast("该分组存在床位号,不能删除");
101
+        this.newShow = false;
102
+        return false;
103
+      }
93 104
       Dialog.confirm({
94 105
         title: "删除提示!",
95 106
         message: "确认删除该条信息吗?,删除后将无法恢复!"
@@ -113,6 +124,7 @@ export default {
113 124
 
114 125
 <style lang="scss" scoped>
115 126
 .Grouping {
127
+  margin-bottom: 3.125rem;
116 128
   .GroupingOne {
117 129
     padding: 1.375rem 1.125rem 1.125rem 1.5rem;
118 130
     display: flex;

+ 17 - 6
src/pages/configureCenter/components/Partition.vue Parādīt failu

@@ -14,7 +14,7 @@
14 14
         <van-icon
15 15
           class="ellipsis"
16 16
           name="ellipsis"
17
-          @click="Delete(item.id, index)"
17
+          @click="Delete(item.id,item.number,index)"
18 18
         />
19 19
       </div>
20 20
     </van-list>
@@ -51,7 +51,8 @@ export default {
51 51
       zone: [],
52 52
       total: 0,
53 53
       id: 0,
54
-      index: 0
54
+      index: 0,
55
+      number: 0
55 56
     };
56 57
   },
57 58
   methods: {
@@ -64,6 +65,7 @@ export default {
64 65
       GetAllZone(this.page, this.limit).then(response => {
65 66
         if (response.data.state === 1) {
66 67
           var zone = response.data.data.zone;
68
+          console.log("分区", zone);
67 69
           for (let i = 0; i < zone.length; i++) {
68 70
             if (zone[i].type === 1) {
69 71
               zone[i].type = "普通";
@@ -84,7 +86,9 @@ export default {
84 86
               zone[i].type = "梅毒";
85 87
             }
86 88
           }
87
-          this.zone = zone;
89
+          let arr = this.zone;
90
+          arr.push(...zone);
91
+          this.zone = arr;
88 92
           var total = response.data.data.total;
89 93
           this.total = total;
90 94
           this.loading = false;
@@ -107,15 +111,21 @@ export default {
107 111
     },
108 112
     onSelect(val) {
109 113
       if (val.name === "删除") {
110
-        this.DeleteZone(this.id, this.index);
114
+        this.DeleteZone(this.id, this.number, this.index);
111 115
       }
112 116
     },
113
-    Delete(id, index) {
117
+    Delete(id, number, index) {
114 118
       this.id = id;
115 119
       this.index = index;
120
+      this.number = number;
116 121
       this.newShow = true;
117 122
     },
118
-    DeleteZone(id, index) {
123
+    DeleteZone(id, number, index) {
124
+      if (number !== "") {
125
+        this.$toast("该分区存在床位号,不能删除");
126
+        this.newShow = false;
127
+        return false;
128
+      }
119 129
       Dialog.confirm({
120 130
         title: "删除提示!",
121 131
         message: "确认删除该条信息吗?,删除后将无法恢复!"
@@ -139,6 +149,7 @@ export default {
139 149
 
140 150
 <style lang="scss" scoped>
141 151
 .partition {
152
+  margin-bottom: 3.125rem;
142 153
   .partitionOne {
143 154
     padding: 1.375rem 1.125rem 0 1.5rem;
144 155
     display: flex;

+ 2 - 2
src/pages/configureCenter/index.vue Parādīt failu

@@ -1,11 +1,11 @@
1 1
 <template>
2 2
   <div class="page_configureCenter">
3 3
     <div class="configureCenterTitle">
4
-      <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
4
+      <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
5 5
       <span class="titleName">配置中心</span>
6 6
     </div>
7 7
     <div class="configureCenterMain">
8
-      <van-tabs v-model="active">
8
+      <van-tabs v-model="active" sticky>
9 9
         <van-tab title="分区">
10 10
           <partition :active="active"></partition>
11 11
         </van-tab>

+ 1 - 1
src/pages/configureCenter/newPartition.vue Parādīt failu

@@ -42,7 +42,7 @@ export default {
42 42
       columns: ["普通", "乙肝", "丙肝", "艾滋病", "肺结核", "梅毒"],
43 43
       form: {
44 44
         name: "",
45
-        zoneType: 0
45
+        zoneType: ""
46 46
       },
47 47
       type: "",
48 48
       active: 0

+ 4 - 3
src/pages/doctorAdvice/components/DoctorManagement.vue Parādīt failu

@@ -218,8 +218,7 @@
218 218
 import {
219 219
   getDoctorAdvices,
220 220
   getPatientDetail,
221
-  DeleteManagement,
222
-  DeleteChild
221
+  DeleteManagement
223 222
 } from "@/api/patient/patient";
224 223
 import { uParseTime } from "@/utils/tools";
225 224
 import { Dialog } from "vant";
@@ -355,6 +354,8 @@ export default {
355 354
       ).then(response => {
356 355
         if (response.data.state === 1) {
357 356
           var advice = response.data.data.advice;
357
+          var one = response.data.data.one;
358
+          console.log("one", one);
358 359
           // this.doctorAdvice = advice;
359 360
           let objarr = [];
360 361
           for (let i = 0; i < advice.length; i++) {
@@ -377,8 +378,8 @@ export default {
377 378
             dataInfo[groupno].child.push(item);
378 379
           });
379 380
           let list = Object.values(dataInfo); // list 转换成功的数据
381
+          console.log("list", list);
380 382
           let arr = [];
381
-
382 383
           list.map(item => {
383 384
             // console.log(item.child);
384 385
             let arr2 = [];

+ 3 - 2
src/pages/doctorAdvice/index.vue Parādīt failu

@@ -380,6 +380,7 @@ export default {
380 380
     getBloodDialysisPatientTwo() {
381 381
       getBloodDialysisPatientTwo(this.page, this.limit).then(response => {
382 382
         var patient = response.data.data.patient;
383
+        console.log("patient", patient);
383 384
         this.patient = patient;
384 385
         let cityNameList = [];
385 386
         for (let p in patient) {
@@ -562,9 +563,9 @@ export default {
562 563
     this.patient_id = patientid;
563 564
     this.getPatientDetail(patientid);
564 565
     var seacherActive = this.$route.query.seacherActive;
565
-    // console.log("seacherActive是", seacherActive);
566
+    console.log("seacherActive是", seacherActive);
566 567
 
567
-    if (seacherActive === 0) {
568
+    if (seacherActive == 0) {
568 569
       this.getBloodDialysisPatientTwo();
569 570
     }
570 571
     if (seacherActive == 1) {

+ 166 - 188
src/pages/homeIndex/index.vue Parādīt failu

@@ -45,7 +45,6 @@
45 45
     <!--</div>-->
46 46
     <div class="background1"></div>
47 47
 
48
-
49 48
     <div class="management" v-if="this.$store.getters.user.admin.id ==  this.$store.getters.user.org.creator&&this.isCreateOrg">
50 49
       <div class="managementTitle">
51 50
         <div class="managementName">
@@ -96,10 +95,6 @@
96 95
       </div>
97 96
     </div>
98 97
 
99
-
100
-
101
-
102
-
103 98
     <div class="application">
104 99
       <div class="applicationTitle">
105 100
         <div class="applicationName">应用工作台</div>
@@ -114,196 +109,178 @@
114 109
   </div>
115 110
 </template>
116 111
 <script>
117
-  // import "../libs/rem.js";
118
-  import { Toast } from "vant";
119
-
120
-  import {GetHomeData,ChangeOrg} from "@/api/home";
121
-  import "../../libs/rem.js";
122
-  import "../../styles/newStyle.scss";
123
-  import {setRem} from "@/libs/functionRem";
124
-
125
-  export default {
126
-    data() {
127
-      return {
128
-        value1: 0,
129
-        isCreateOrg: false,
130
-        org_arr: [],
131
-        banners: [],
132
-        apps: [],
133
-        option1: [
134
-          {text: "新款商品", value: 0},
135
-          {text: "全部商品全部商品全部商品全部商品全部商品全部商品", value: 1},
136
-          {text: "活动商品", value: 2}
137
-        ]
138
-      };
112
+// import "../libs/rem.js";
113
+import { Toast } from "vant";
114
+
115
+import { GetHomeData, ChangeOrg } from "@/api/home";
116
+import "../../libs/rem.js";
117
+import "../../styles/newStyle.scss";
118
+import { setRem } from "@/libs/functionRem";
119
+
120
+export default {
121
+  data() {
122
+    return {
123
+      value1: 0,
124
+      isCreateOrg: false,
125
+      org_arr: [],
126
+      banners: [],
127
+      apps: [],
128
+      option1: [
129
+        { text: "新款商品", value: 0 },
130
+        { text: "全部商品全部商品全部商品全部商品全部商品全部商品", value: 1 },
131
+        { text: "活动商品", value: 2 }
132
+      ]
133
+    };
134
+  },
135
+  methods: {
136
+    toStaffManage() {
137
+      if (this.isCreateOrg) {
138
+        this.$router.push({ path: "/manageconsole/staff" });
139
+      } else {
140
+        this.$toast({
141
+          message: "你尚未创建机构,请先创建机构"
142
+        });
143
+      }
139 144
     },
140
-    methods: {
141
-      toStaffManage(){
142
-        if(this.isCreateOrg){
143
-          this.$router.push({path: "/manageconsole/staff"});
144
-        }else{
145
-          this.$toast({
146
-            message: "你尚未创建机构,请先创建机构"
147
-          });
148
-        }
149
-
150
-      },toRoleManage(){
151
-        if(this.isCreateOrg){
152
-          this.$router.push({path: "/manageconsole/role"});
153
-        }else{
154
-          this.$toast({
155
-            message: "你尚未创建机构,请先创建机构"
156
-          });
157
-        }
158
-      },toConfigCenter(){
159
-        if(this.isCreateOrg){
160
-
161
-
162
-        }else{
163
-          this.$toast({
164
-            message: "你尚未创建机构,请先创建机构"
165
-          });
166
-        }
167
-
168
-      },toOrgSetting(){
169
-        if(this.isCreateOrg){
170
-
171
-
172
-        }else{
173
-          this.$toast({
174
-            message: "你尚未创建机构,请先创建机构"
175
-          });
176
-        }
177
-
178
-      },
179
-      changeOrg(value){
180
-        Toast.loading({forbidClick: true, duration: 0})
181
-        let params={
182
-          org_id : value
183
-
184
-        }
185
-        ChangeOrg(params).then(response => {
186
-          if (response.data.state === 1) {
187
-            //清除之前的数据
188
-
189
-
190
-            var user = response.data.data.user;
191
-            var admin = response.data.data.admin;
192
-            var org = response.data.data.org;
193
-            var subscibe = response.data.data.subscibe;
194
-            var config_list = response.data.data.config_list;
195
-            var template_info = response.data.data.template_info;
196
-            var filed_list = response.data.data.filed_list;
197
-            this.$store.dispatch("InitUserInfo", {
198
-              admin: admin,
199
-              user: user,
200
-              org: org,
201
-              subscibe: subscibe,
202
-              template_info: template_info,
203
-              filed_list: filed_list
204
-            });
205
-            this.$store.dispatch("SetConfigList", config_list);
206
-            this.GetHomeData()
207
-            Toast.success('切换机构成功')
208
-          } else {
209
-            Toast.fail(response.data.msg)
210
-          }
145
+    toRoleManage() {
146
+      if (this.isCreateOrg) {
147
+        this.$router.push({ path: "/manageconsole/role" });
148
+      } else {
149
+        this.$toast({
150
+          message: "你尚未创建机构,请先创建机构"
211 151
         });
212
-
213
-
214
-      },
215
-      jump(url){
216
-        window.location.href = url
217
-      },jumpApp(app){
218
-        if(!this.isCreateOrg){
219
-          Toast.fail('你尚未创建机构,无法使用该功能')
220
-          return
221
-        }
222
-        if(app.open_status == 0){
223
-          Toast.success('敬请期待')
224
-          return
225
-        }
226
-        switch (app.app_type) {
227
-          case 6:
228
-            this.toPatients()
229
-            break
230
-          case 7:
231
-            this.$router.push({ path: "/main" });
232
-            break
233
-          case 8:
234
-
235
-            break
236
-          case 9:
237
-
238
-            break
239
-          case 10:
240
-
241
-            break
242
-          case 11:
243
-
244
-            break
245
-          case 12:
246
-
247
-            break
248
-          case 13:
249
-
250
-            break
251
-          case 14:
252
-
253
-            break
152
+      }
153
+    },
154
+    toConfigCenter() {
155
+      if (this.isCreateOrg) {
156
+        this.$router.push("/configurecenter");
157
+      } else {
158
+        this.$toast({
159
+          message: "你尚未创建机构,请先创建机构"
160
+        });
161
+      }
162
+    },
163
+    toOrgSetting() {
164
+      if (this.isCreateOrg) {
165
+      } else {
166
+        this.$toast({
167
+          message: "你尚未创建机构,请先创建机构"
168
+        });
169
+      }
170
+    },
171
+    changeOrg(value) {
172
+      Toast.loading({ forbidClick: true, duration: 0 });
173
+      let params = {
174
+        org_id: value
175
+      };
176
+      ChangeOrg(params).then(response => {
177
+        if (response.data.state === 1) {
178
+          // 清除之前的数据
179
+
180
+          var user = response.data.data.user;
181
+          var admin = response.data.data.admin;
182
+          var org = response.data.data.org;
183
+          var subscibe = response.data.data.subscibe;
184
+          var config_list = response.data.data.config_list;
185
+          var template_info = response.data.data.template_info;
186
+          var filed_list = response.data.data.filed_list;
187
+          this.$store.dispatch("InitUserInfo", {
188
+            admin: admin,
189
+            user: user,
190
+            org: org,
191
+            subscibe: subscibe,
192
+            template_info: template_info,
193
+            filed_list: filed_list
194
+          });
195
+          this.$store.dispatch("SetConfigList", config_list);
196
+          this.GetHomeData();
197
+          Toast.success("切换机构成功");
198
+        } else {
199
+          Toast.fail(response.data.msg);
254 200
         }
255
-
256
-
257
-
258
-
259
-      },toCreateOrg(){
260
-        this.$router.push({path: "/perfectOrg"});
261
-
262
-      },
263
-      toPatients() {
264
-        this.$router.push({path: "/patients"});
265
-      },
266
-      toSearch() {
267
-        this.$router.push({path: "/search"});
268
-      }, GetHomeData() {
269
-        GetHomeData().then(response => {
270
-          if (response.data.state === 1) {
271
-            this.isCreateOrg = response.data.data.isCreateOrg
272
-            if(this.isCreateOrg){
273
-              this.orgs = response.data.data.orgs
274
-              this.apps = response.data.data.apps
275
-              this.banners = response.data.data.banners
276
-              this.org_arr = []
277
-              for (let i = 0; i < this.orgs.length; i++){
278
-                let obj= {
279
-                  text: this.orgs[i].org_name,
280
-                  value: this.orgs[i].id
281
-
282
-                }
283
-                this.org_arr.push(obj)
284
-              }
285
-              this.value1 = this.$store.getters.user.org.id
286
-            }else{
287
-              this.apps = response.data.data.apps
288
-              this.banners = response.data.data.banners
201
+      });
202
+    },
203
+    jump(url) {
204
+      window.location.href = url;
205
+    },
206
+    jumpApp(app) {
207
+      if (!this.isCreateOrg) {
208
+        Toast.fail("你尚未创建机构,无法使用该功能");
209
+        return;
210
+      }
211
+      if (app.open_status == 0) {
212
+        Toast.success("敬请期待");
213
+        return;
214
+      }
215
+      switch (app.app_type) {
216
+        case 6:
217
+          this.toPatients();
218
+          break;
219
+        case 7:
220
+          this.$router.push({ path: "/main" });
221
+          break;
222
+        case 8:
223
+          break;
224
+        case 9:
225
+          break;
226
+        case 10:
227
+          break;
228
+        case 11:
229
+          break;
230
+        case 12:
231
+          break;
232
+        case 13:
233
+          break;
234
+        case 14:
235
+          break;
236
+      }
237
+    },
238
+    toCreateOrg() {
239
+      this.$router.push({ path: "/perfectOrg" });
240
+    },
241
+    toPatients() {
242
+      this.$router.push({ path: "/patients" });
243
+    },
244
+    toSearch() {
245
+      this.$router.push({ path: "/search" });
246
+    },
247
+    GetHomeData() {
248
+      GetHomeData().then(response => {
249
+        if (response.data.state === 1) {
250
+          this.isCreateOrg = response.data.data.isCreateOrg;
251
+          if (this.isCreateOrg) {
252
+            this.orgs = response.data.data.orgs;
253
+            this.apps = response.data.data.apps;
254
+            this.banners = response.data.data.banners;
255
+            this.org_arr = [];
256
+            for (let i = 0; i < this.orgs.length; i++) {
257
+              let obj = {
258
+                text: this.orgs[i].org_name,
259
+                value: this.orgs[i].id
260
+              };
261
+              this.org_arr.push(obj);
289 262
             }
263
+            this.value1 = this.$store.getters.user.org.id;
290 264
           } else {
291
-            this.$toast({
292
-              message: response.data.msg
293
-            });
265
+            this.apps = response.data.data.apps;
266
+            this.banners = response.data.data.banners;
294 267
           }
295
-        });
296
-
297
-      },toConsole(){
298
-        this.$router.push({path: "/manageconsole"});
299
-
300
-      },
268
+        } else {
269
+          this.$toast({
270
+            message: response.data.msg
271
+          });
272
+        }
273
+      });
301 274
     },
302
-    created() {
303
-      this.GetHomeData()
304
-      setRem();
275
+    toConsole() {
276
+      this.$router.push({ path: "/manageconsole" });
305 277
     }
306
-  };
278
+  },
279
+  created() {
280
+    this.GetHomeData();
281
+    setRem();
282
+  }
283
+};
307 284
 </script>
308 285
 <style lang="scss" scoped>
309 286
 .page_homeIndex {
@@ -460,4 +437,5 @@
460 437
   }
461 438
 }
462 439
 </style>
463
-<style lang="scss"></style>
440
+<style lang="scss">
441
+</style>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 474 - 454
src/pages/main/dialog/MonitDialog.vue


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1733 - 1454
src/pages/main/dialog/PrescriptionDialog.vue


+ 2 - 5
src/pages/main/today/dialysisMonitoring.vue Parādīt failu

@@ -29,8 +29,7 @@
29 29
           <th v-if="isShow('置换量')&& template_id == 6" width="50px">置换量(ml)</th>
30 30
           <th v-if="isShow('置换量')&& template_id != 6" width="50px">置换量(L)</th>
31 31
 
32
-
33
-          <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
32
+          <th v-if="isShow('电导度')" width="92px">电导度(mS/cm)</th>
34 33
           <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
35 34
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
36 35
           <th v-if="isShow('处理')" width="92px">处理</th>
@@ -54,8 +53,6 @@
54 53
             {{ item.pulse_frequency ? item.pulse_frequency : "" }}
55 54
           </td>
56 55
 
57
-
58
-
59 56
           <td v-if="isShow('呼吸频率')">
60 57
             {{ item.breathing_rate ? item.breathing_rate : "" }}
61 58
           </td>
@@ -195,7 +192,7 @@
195 192
       </span>
196 193
 
197 194
       <span v-if="isShow('电导度')">
198
-        <el-table-column prop="zip" label="电导度(mS/m)" width="200" align="center">
195
+        <el-table-column prop="zip" label="电导度(mS/cm)" width="200" align="center">
199 196
           <template slot-scope="scope">{{scope.row.conductivity?scope.row.conductivity:''}}</template>
200 197
         </el-table-column>
201 198
       </span>

+ 313 - 270
src/pages/main/today/dialysisPrescription.vue Parādīt failu

@@ -117,20 +117,17 @@
117 117
           <span class="unit" v-if="this.prescription.anticoagulant == 5">{{anticoagulant_zongliang != '0'?"ml":""}}</span>
118 118
         </li>
119 119
 
120
-
121 120
         <li v-if="isShow('钙名称')&&this.prescription.anticoagulant == 5">
122 121
           <label>钙名称: </label>
123 122
           <span class="content">{{this.prescription.anticoagulant_gaimingcheng}}</span>
124 123
         </li>
125 124
 
126
-
127 125
         <li v-if="isShow('钙剂量')&&this.prescription.anticoagulant == 5">
128 126
           <label>钙剂量: </label>
129 127
           <span class="content">{{this.prescription.anticoagulant_gaijiliang}}</span>
130 128
           <span class="unit" v-if="this.prescription.anticoagulant == 5">{{'ml'}}</span>
131 129
         </li>
132 130
 
133
-
134 131
         <li v-if="isShow('钠')">
135 132
           <label>钠 : </label>
136 133
           <span class="content">{{sodium != '0'?sodium:""}}</span>
@@ -204,7 +201,7 @@
204 201
         <li v-if="isShow('电导度')">
205 202
           <label>电导度 : </label>
206 203
           <span class="content">{{conductivity != '0'?conductivity:""}}</span>
207
-          <span class="unit">{{conductivity != '0'?"mS/m":""}}</span>
204
+          <span class="unit">{{conductivity != '0'?"mS/cm":""}}</span>
208 205
         </li>
209 206
 
210 207
       </ul>
@@ -214,291 +211,337 @@
214 211
 </template>
215 212
 
216 213
 <script>
217
-  import {getDataConfig} from '@/utils/data'
218
-  export default {
219
-    name: 'DialysisPrescription',
220
-    data () {
221
-      return {
222
-        title: '透析处方',
223
-        perfusion_apparatus_map: {},
224
-        dialysateFormulationMap: {}
214
+import { getDataConfig } from "@/utils/data";
215
+export default {
216
+  name: "DialysisPrescription",
217
+  data() {
218
+    return {
219
+      title: "透析处方",
220
+      perfusion_apparatus_map: {},
221
+      dialysateFormulationMap: {}
222
+    };
223
+  },
224
+  props: {
225
+    prescription: {
226
+      type: Object
227
+    },
228
+    solution: {
229
+      type: Object
230
+    },
231
+    device_number_map: {
232
+      type: Object
233
+    }
234
+  },
235
+  computed: {
236
+    target_ultrafiltration: function() {
237
+      var v = this.getValueStr(
238
+        "target_ultrafiltration",
239
+        "target_ultrafiltration"
240
+      );
241
+      v = this.getFloat(v);
242
+      return v.length == 0 ? "0" : v;
243
+    },
244
+    dialysis_mode: function() {
245
+      var mode = this.getValueStr("mode_id", "mode_id");
246
+      if (mode.length == 0) {
247
+        return "";
225 248
       }
249
+      if (this.$store.getters.treatment_mode[mode] != undefined) {
250
+        return this.$store.getters.treatment_mode[mode].name;
251
+      }
252
+      return "";
226 253
     },
227
-    props: {
228
-      prescription: {
229
-        type: Object
230
-      },
231
-      solution: {
232
-        type: Object
233
-      },
234
-      device_number_map: {
235
-        type: Object
254
+    perfusion_apparatus: function() {
255
+      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
256
+      if (v.length == 0) {
257
+        return "";
258
+      }
259
+      if (this.perfusion_apparatus_map[v] != undefined) {
260
+        return this.perfusion_apparatus_map[v].name;
236 261
       }
262
+      return "";
263
+    },
264
+    displace_liqui: function() {
265
+      var v = this.getValueStr("displace_liqui", "displace_liqui");
266
+      return v.length == 0 ? "0" : v;
267
+    },
268
+    anticoagulant_shouji: function() {
269
+      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
270
+      return v.length == 0 ? "0" : v;
271
+    },
272
+    kalium: function() {
273
+      var v = this.getValueStr("kalium", "kalium");
274
+      v = this.getFloat(v);
275
+      return v == 0 ? "0" : v;
276
+    },
277
+    replacement_total: function() {
278
+      var v = this.getValueStr("replacement_total", "replacement_total");
279
+      return v.length == 0 ? "0" : v;
280
+    },
281
+    bicarbonate: function() {
282
+      var v = this.getValueStr("bicarbonate", "bicarbonate");
283
+      return v.length == 0 ? "0" : v;
284
+    },
285
+    dialysate_flow: function() {
286
+      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
287
+      return v.length == 0 ? "0" : v;
288
+    },
289
+    dialysis_duration: function() {
290
+      var dialysis_duration_hour = this.getValueStr(
291
+        "dialysis_duration_hour",
292
+        "dialysis_duration_hour"
293
+      );
294
+      var dialysis_duration_minute = this.getValueStr(
295
+        "dialysis_duration_minute",
296
+        "dialysis_duration_minute"
297
+      );
298
+      if (
299
+        dialysis_duration_hour.length == 0 &&
300
+        dialysis_duration_minute.length == 0
301
+      ) {
302
+        return "0";
303
+      } else {
304
+        var time =
305
+          dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
306
+        return time.length == 0 ? "0" : time;
307
+      }
308
+    },
309
+    blood_flow_volume: function() {
310
+      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
311
+      return v.length == 0 ? "0" : v;
312
+    },
313
+    replacement_way: function() {
314
+      return this.getValueStr("replacement_way", "replacement_way");
315
+    },
316
+    anticoagulant_weichi: function() {
317
+      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
318
+      return v.length == 0 ? "0" : v;
319
+    },
320
+    sodium: function() {
321
+      var v = this.getValueStr("sodium", "sodium");
322
+      console.log(v);
323
+      v = this.getFloat(v);
324
+      console.log(v);
325
+      return v == 0 ? "0" : v;
326
+    },
327
+    glucose: function() {
328
+      var v = this.getValueStr("glucose", "glucose");
329
+      return v.length == 0 ? "0" : v;
330
+    },
331
+    dialysate_temperature: function() {
332
+      var v = this.getValueStr(
333
+        "dialysate_temperature",
334
+        "dialysate_temperature"
335
+      );
336
+      return v.length == 0 ? "0" : v;
337
+    },
338
+    dialyzer: function() {
339
+      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
340
+      if (v.length == 0) {
341
+        return "";
342
+      }
343
+      if (this.device_number_map[v] != undefined) {
344
+        return this.device_number_map[v].name;
345
+      }
346
+      return "";
347
+    },
348
+    dialysate_formulation: function() {
349
+      var v = this.getValueStr(
350
+        "dialysate_formulation",
351
+        "dialysate_formulation"
352
+      );
353
+      if (v.length == 0) {
354
+        return "";
355
+      }
356
+      if (v in this.dialysateFormulationMap) {
357
+        return this.dialysateFormulationMap[v].name;
358
+      }
359
+      return "";
360
+    },
361
+    prescription_dewatering: function() {
362
+      var v = this.getValueStr("prescription_dewatering", "dewater");
363
+      return v.length == 0 ? "0" : v;
364
+    },
365
+    anticoagulant: function() {
366
+      var v = this.getValueStr("anticoagulant", "anticoagulant");
367
+      if (v.length == 0) {
368
+        return "";
369
+      }
370
+      if (this.$store.getters.anticoagulants_confit[v] != undefined) {
371
+        return this.$store.getters.anticoagulants_confit[v].name;
372
+      }
373
+      return "";
374
+    },
375
+    anticoagulant_zongliang: function() {
376
+      var v = this.getValueStr(
377
+        "anticoagulant_zongliang",
378
+        "anticoagulant_zongliang"
379
+      );
380
+      return v.length == 0 ? "0" : v;
381
+    },
382
+    calcium: function() {
383
+      var v = this.getValueStr("calcium", "calcium");
384
+      v = this.getFloat(v);
385
+      return v == 0 ? "0" : v;
237 386
     },
238
-    computed: {
239
-      target_ultrafiltration: function () {
240
-        var v = this.getValueStr('target_ultrafiltration', 'target_ultrafiltration')
241
-        v = this.getFloat(v)
242
-        return v.length == 0 ? '0' : v
243
-      },
244
-      dialysis_mode: function () {
245
-        var mode = this.getValueStr('mode_id', 'mode_id')
246
-        if (mode.length == 0) {
247
-          return ''
248
-        }
249
-        if (this.$store.getters.treatment_mode[mode] != undefined) {
250
-          return this.$store.getters.treatment_mode[mode].name
251
-        }
252
-        return ''
253
-      },
254
-      perfusion_apparatus: function () {
255
-        var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
256
-        if (v.length == 0) {
257
-          return ''
258
-        }
259
-        if (this.perfusion_apparatus_map[v] != undefined) {
260
-          return this.perfusion_apparatus_map[v].name
261
-        }
262
-        return ''
263
-      },
264
-      displace_liqui: function () {
265
-        var v = this.getValueStr('displace_liqui', 'displace_liqui')
266
-        return v.length == 0 ? '0' : v
267
-      },
268
-      anticoagulant_shouji: function () {
269
-        var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
270
-        return v.length == 0 ? '0' : v
271
-      },
272
-      kalium: function () {
273
-        var v = this.getValueStr('kalium', 'kalium')
274
-        v = this.getFloat(v)
275
-        return v == 0 ? '0' : v
276
-      },
277
-      replacement_total: function () {
278
-        var v = this.getValueStr('replacement_total', 'replacement_total')
279
-        return v.length == 0 ? '0' : v
280
-      },
281
-      bicarbonate: function () {
282
-        var v = this.getValueStr('bicarbonate', 'bicarbonate')
283
-        return v.length == 0 ? '0' : v
284
-      },
285
-      dialysate_flow: function () {
286
-        var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
287
-        return v.length == 0 ? '0' : v
288
-      },
289
-      dialysis_duration: function () {
290
-        var dialysis_duration_hour = (this.getValueStr('dialysis_duration_hour', 'dialysis_duration_hour'))
291
-        var dialysis_duration_minute = (this.getValueStr('dialysis_duration_minute', 'dialysis_duration_minute'))
292
-        if (dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0) {
293
-          return '0'
294
-        } else {
295
-          var time = dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
296
-          return time.length == 0 ? '0' : time
297
-        }
298
-      },
299
-      blood_flow_volume: function () {
300
-        var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
301
-        return v.length == 0 ? '0' : v
302
-      },
303
-      replacement_way: function () {
304
-        return this.getValueStr('replacement_way', 'replacement_way')
305
-      },
306
-      anticoagulant_weichi: function () {
307
-        var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
308
-        return v.length == 0 ? '0' : v
309
-      },
310
-      sodium: function () {
311
-        var v = this.getValueStr('sodium', 'sodium')
312
-        console.log(v)
313
-        v = this.getFloat(v)
314
-        console.log(v)
315
-        return v == 0 ? '0' : v
316
-      },
317
-      glucose: function () {
318
-        var v = this.getValueStr('glucose', 'glucose')
319
-        return v.length == 0 ? '0' : v
320
-      },
321
-      dialysate_temperature: function () {
322
-        var v = this.getValueStr('dialysate_temperature', 'dialysate_temperature')
323
-        return v.length == 0 ? '0' : v
324
-      },
325
-      dialyzer: function () {
326
-        var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
327
-        if (v.length == 0) {
328
-          return ''
329
-        }
330
-        if (this.device_number_map[v] != undefined) {
331
-          return this.device_number_map[v].name
332
-        }
333
-        return ''
334
-      },
335
-      dialysate_formulation: function () {
336
-        var v = this.getValueStr('dialysate_formulation', 'dialysate_formulation')
337
-        if (v.length == 0) {
338
-          return ''
339
-        }
340
-        if (v in this.dialysateFormulationMap) {
341
-          return this.dialysateFormulationMap[v].name
342
-        }
343
-        return ''
344
-      },
345
-      prescription_dewatering: function () {
346
-        var v = this.getValueStr('prescription_dewatering', 'dewater')
347
-        return v.length == 0 ? '0' : v
348
-      },
349
-      anticoagulant: function () {
350
-        var v = this.getValueStr('anticoagulant', 'anticoagulant')
351
-        if (v.length == 0) {
352
-          return ''
353
-        }
354
-        if (this.$store.getters.anticoagulants_confit[v] != undefined) {
355
-          return this.$store.getters.anticoagulants_confit[v].name
356
-        }
357
-        return ''
358
-      },
359
-      anticoagulant_zongliang: function () {
360
-        var v = this.getValueStr('anticoagulant_zongliang', 'anticoagulant_zongliang')
361
-        return v.length == 0 ? '0' : v
362
-      },
363
-      calcium: function () {
364
-        var v = this.getValueStr('calcium', 'calcium')
365
-        v = this.getFloat(v)
366
-        return v == 0 ? '0' : v
367
-      },
368 387
 
369
-      conductivity: function () {
370
-        var v = this.getValueStr('conductivity', 'conductivity')
371
-        return v.length == 0 ? '0' : v
372
-      },
373
-      dialyzer_perfusion_apparatus: function () {
374
-        return this.getValueStr('dialyzer_perfusion_apparatus', 'dialyzer_perfusion_apparatus')
375
-      },
376
-      note: function () {
377
-        return this.getValueStr('remark', 'remark')
378
-      },
379
-      body_fluid: function () {
380
-        var id = this.getValueStr('body_fluid', 'body_fluid')
381
-        if (id == 0) {
382
-          return ''
383
-        }
384
-        var bodyFluidOptions = this.$store.getters.body_fluid
385
-        for (let i = 0; i < bodyFluidOptions.length; i++) {
386
-          if (bodyFluidOptions[i].id == id) {
387
-            return bodyFluidOptions[i].name
388
-          }
389
-        }
390
-      },
391
-      special_medicine: function () {
392
-        var id = this.getValueStr('special_medicine', 'special_medicine')
393
-        if (id == 0) {
394
-          return ''
395
-        }
396
-        var special_medicine = this.$store.getters.special_medicine
397
-        for (let i = 0; i < special_medicine.length; i++) {
398
-          if (special_medicine[i].id == id) {
399
-            return special_medicine[i].name
400
-          }
401
-        }
402
-      },
403
-      special_medicine_other: function () {
404
-        return this.getValueStr('special_medicine_other', 'special_medicine_other')
405
-      },
406
-      blood_access: function () {
407
-        var id = this.getValueStr('blood_access', 'blood_access')
408
-        if (id == 0) {
409
-          return ''
388
+    conductivity: function() {
389
+      var v = this.getValueStr("conductivity", "conductivity");
390
+      return v.length == 0 ? "0" : v;
391
+    },
392
+    dialyzer_perfusion_apparatus: function() {
393
+      return this.getValueStr(
394
+        "dialyzer_perfusion_apparatus",
395
+        "dialyzer_perfusion_apparatus"
396
+      );
397
+    },
398
+    note: function() {
399
+      return this.getValueStr("remark", "remark");
400
+    },
401
+    body_fluid: function() {
402
+      var id = this.getValueStr("body_fluid", "body_fluid");
403
+      if (id == 0) {
404
+        return "";
405
+      }
406
+      var bodyFluidOptions = this.$store.getters.body_fluid;
407
+      for (let i = 0; i < bodyFluidOptions.length; i++) {
408
+        if (bodyFluidOptions[i].id == id) {
409
+          return bodyFluidOptions[i].name;
410 410
         }
411
-        var blood_access = this.$store.getters.blood_access
412
-        console.log('blood_access', blood_access)
413
-        for (let i = 0; i < blood_access.length; i++) {
414
-          if (blood_access[i].id == id) {
415
-            return blood_access[i].name
416
-          }
411
+      }
412
+    },
413
+    special_medicine: function() {
414
+      var id = this.getValueStr("special_medicine", "special_medicine");
415
+      if (id == 0) {
416
+        return "";
417
+      }
418
+      var special_medicine = this.$store.getters.special_medicine;
419
+      for (let i = 0; i < special_medicine.length; i++) {
420
+        if (special_medicine[i].id == id) {
421
+          return special_medicine[i].name;
417 422
         }
418
-      },
419
-      displace_liqui: function () {
420
-        var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
421
-        var displace_liqui_value = this.getValueStr('displace_liqui_value', 'displace_liqui_value')
422
-        var displace_liqui_part = ''
423
-        var displace_liqui = this.$store.getters.displace_liqui
424
-        for (let i = 0; i < displace_liqui.length; i++) {
425
-          if (displace_liqui[i].id == id) {
426
-            displace_liqui_part = displace_liqui[i].name
427
-          }
423
+      }
424
+    },
425
+    special_medicine_other: function() {
426
+      return this.getValueStr(
427
+        "special_medicine_other",
428
+        "special_medicine_other"
429
+      );
430
+    },
431
+    blood_access: function() {
432
+      var id = this.getValueStr("blood_access", "blood_access");
433
+      if (id == 0) {
434
+        return "";
435
+      }
436
+      var blood_access = this.$store.getters.blood_access;
437
+      console.log("blood_access", blood_access);
438
+      for (let i = 0; i < blood_access.length; i++) {
439
+        if (blood_access[i].id == id) {
440
+          return blood_access[i].name;
428 441
         }
429
-        return displace_liqui_part
430
-      },
431
-      ultrafiltration: function () {
432
-        var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
433
-        v = this.getFloat(v)
434
-        return v.length == 0 ? '0' : v
435
-      },
436
-      target_ktv: function () {
437
-        var v = this.getValueStr('target_ktv', 'target_ktv')
438
-        return v.length == 0 ? '0' : v
439 442
       }
440 443
     },
441
-    created () {
442
-      var perfusion_apparatus = this.$store.getters.perfusion_apparatus
443
-      var map = {}
444
-      for (let index = 0; index < perfusion_apparatus.length; index++) {
445
-        const p = perfusion_apparatus[index]
446
-        map[p.id] = p
444
+    displace_liqui: function() {
445
+      var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
446
+      var displace_liqui_value = this.getValueStr(
447
+        "displace_liqui_value",
448
+        "displace_liqui_value"
449
+      );
450
+      var displace_liqui_part = "";
451
+      var displace_liqui = this.$store.getters.displace_liqui;
452
+      for (let i = 0; i < displace_liqui.length; i++) {
453
+        if (displace_liqui[i].id == id) {
454
+          displace_liqui_part = displace_liqui[i].name;
455
+        }
447 456
       }
448
-      this.perfusion_apparatus_map = map
457
+      return displace_liqui_part;
458
+    },
459
+    ultrafiltration: function() {
460
+      var v = this.getValueStr("ultrafiltration", "ultrafiltration");
461
+      v = this.getFloat(v);
462
+      return v.length == 0 ? "0" : v;
463
+    },
464
+    target_ktv: function() {
465
+      var v = this.getValueStr("target_ktv", "target_ktv");
466
+      return v.length == 0 ? "0" : v;
467
+    }
468
+  },
469
+  created() {
470
+    var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
471
+    var map = {};
472
+    for (let index = 0; index < perfusion_apparatus.length; index++) {
473
+      const p = perfusion_apparatus[index];
474
+      map[p.id] = p;
475
+    }
476
+    this.perfusion_apparatus_map = map;
449 477
 
450
-      var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
451
-      for (var index in dialysateFormulationOptions) {
452
-        this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index]
478
+    var dialysateFormulationOptions = getDataConfig(
479
+      "hemodialysis",
480
+      "dialysate_formulation"
481
+    );
482
+    for (var index in dialysateFormulationOptions) {
483
+      this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
484
+        dialysateFormulationOptions[index];
485
+    }
486
+  },
487
+  methods: {
488
+    getDisplaceLiquiValue: function() {
489
+      return this.getValueStr("displace_liqui_value", "displace_liqui_value");
490
+    },
491
+    isShow(name) {
492
+      var filedList = this.$store.getters.user.fileds;
493
+      for (let i = 0; i < filedList.length; i++) {
494
+        if (
495
+          filedList[i].module == 1 &&
496
+          filedList[i].filed_name_cn == name &&
497
+          filedList[i].is_show == 1
498
+        ) {
499
+          return true;
500
+        }
453 501
       }
502
+      return false;
454 503
     },
455
-    methods: {
456
-      getDisplaceLiquiValue:function(){
457
-        return this.getValueStr('displace_liqui_value', 'displace_liqui_value')
458
-      },
459
-      isShow (name) {
460
-        var filedList = this.$store.getters.user.fileds
461
-        for (let i = 0; i < filedList.length; i++) {
462
-          if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
463
-            return true
464
-          }
504
+    getValueStr(pkey, skey) {
505
+      if (
506
+        (this.prescription == null || this.prescription.id == "") &&
507
+        (this.solution == null || this.solution.id == "")
508
+      ) {
509
+        return "";
510
+      } else if (this.prescription != null && this.prescription.id != "") {
511
+        if (
512
+          this.prescription[pkey] == null ||
513
+          this.prescription[pkey] == undefined
514
+        ) {
515
+          return "";
516
+        }
517
+        return this.prescription[pkey] + "";
518
+      } else {
519
+        if (this.solution[skey] == null || this.solution[skey] == undefined) {
520
+          return "";
465 521
         }
466
-        return false
467
-      },
468
-      getValueStr (pkey, skey) {
469
-        if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
470
-          return ''
471
-        } else if (this.prescription != null && this.prescription.id != '') {
472
-          if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
473
-            return ''
474
-          }
475
-          return this.prescription[pkey] + ''
476
-        } else {
477
-          if (this.solution[skey] == null || this.solution[skey] == undefined) {
478
-            return ''
479
-          }
480
-          return this.solution[skey] + ''
522
+        return this.solution[skey] + "";
523
+      }
524
+    },
525
+    getFloat: function(x) {
526
+      if (x != ".") {
527
+        var f = Math.round(x * 100) / 100;
528
+        var s = f.toString();
529
+        var rs = s.indexOf(".");
530
+        if (rs <= 0) {
531
+          rs = s.length;
532
+          s += ".";
481 533
         }
482
-      },
483
-      getFloat: function (x) {
484
-        if (x != '.') {
485
-          var f = Math.round(x * 100) / 100
486
-          var s = f.toString()
487
-          var rs = s.indexOf('.')
488
-          if (rs <= 0) {
489
-            rs = s.length
490
-            s += '.'
491
-          }
492
-          while (s.length <= rs + 1) {
493
-            s += '0'
494
-          }
495
-          return s
496
-        } else {
497
-          return '0.0'
534
+        while (s.length <= rs + 1) {
535
+          s += "0";
498 536
         }
537
+        return s;
538
+      } else {
539
+        return "0.0";
499 540
       }
500 541
     }
501 542
   }
543
+};
502 544
 </script>
503 545
 
504
-<style rel="stylesheet/scss" lang="scss" scoped></style>
546
+<style rel="stylesheet/scss" lang="scss" scoped>
547
+</style>

+ 26 - 19
src/pages/my/index.vue Parādīt failu

@@ -43,7 +43,6 @@
43 43
       </router-link>
44 44
     </div>
45 45
     <div class="myBox">
46
-      <router-link to="/organizationInfo">
47 46
         <div class="myBoxOne">
48 47
           <div class="myInfoLeft">
49 48
             <img src="../../assets/images/myIcon2.png" alt />
@@ -51,24 +50,15 @@
51 50
           </div>
52 51
           <van-icon class="arrow" name="arrow" />
53 52
         </div>
54
-      </router-link>
55
-      <div class="myBoxTwo">
56
-        <div class="myInfoLeft">
57
-          <img src="../../assets/images/m01.png" alt />
58
-          <p>我的医院/组织/团队</p>
59
-        </div>
60
-        <div class="myInfoRight">
61
-          <van-icon class="arrow" name="arrow" />
62
-        </div>
63
-      </div>
64
-      <div class="myBoxTwo noBorder">
53
+      <div class="myBoxTwo noBorder" v-for="(item,index) in organaziton" :key="index">
65 54
         <div class="myInfoLeft">
66
-          <img src="../../assets/images/m01.png" alt />
67
-          <p>我的医院/组织/团队</p>
55
+          <span v-if="item.org_logo == ''"><img src="../../assets/images/m01.png" alt /></span>
56
+          <span v-if="item.org_logo !==''"><img :src="item.org_logo"></span>
57
+          <p>{{item.org_name}}</p>
68 58
         </div>
69
-        <div class="myInfoRight" @click="toManage">
59
+        <div class="myInfoRight" v-if="item.is_super_admin == 1">
70 60
           <div class="myInfoRightBtn">管理</div>
71
-          <van-icon class="arrow" name="arrow" />
61
+          <van-icon class="arrow" name="arrow"  @click="toManage"/>
72 62
         </div>
73 63
       </div>
74 64
     </div>
@@ -133,13 +123,19 @@
133 123
   </div>
134 124
 </template>
135 125
 <script>
136
-import { getMyInformation, LoginOut } from "@/api/patient/patient";
126
+import {
127
+  getMyInformation,
128
+  LoginOut,
129
+  getMyOrganazition
130
+} from "@/api/patient/patient";
137 131
 import { uParseTime } from "@/utils/tools";
138 132
 export default {
139 133
   data() {
140 134
     return {
141 135
       roleInfo: {},
142
-      admin_user_id: 0
136
+      admin_user_id: 0,
137
+      adminid: 0,
138
+      organaziton: []
143 139
     };
144 140
   },
145 141
   methods: {
@@ -161,10 +157,20 @@ export default {
161 157
         if (response.data.state === 1) {
162 158
           var roleInfo = response.data.data.roleInfo;
163 159
           this.admin_user_id = roleInfo.id;
160
+          this.adminid = roleInfo.admin_user_id;
164 161
           this.roleInfo = roleInfo;
165 162
         }
166 163
       });
167 164
     },
165
+    getMyOrganazition(id) {
166
+      getMyOrganazition(id).then(response => {
167
+        if (response.data.state === 1) {
168
+          var organaziton = response.data.data.organaziton;
169
+          this.organaziton = organaziton;
170
+          console.log("organaziton", organaziton);
171
+        }
172
+      });
173
+    },
168 174
     getTime(time) {
169 175
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
170 176
       return uParseTime(time, "{y}-{m}-{d}");
@@ -176,13 +182,14 @@ export default {
176 182
       this.$router.push("/myInfo?id=" + this.admin_user_id);
177 183
     },
178 184
     toManage() {
179
-      this.$router.push("/organizationinfo?id=" + this.admin_user_id);
185
+      this.$router.push("/organizationinfo?id=" + this.adminid);
180 186
     }
181 187
   },
182 188
   created() {
183 189
     var adminid = this.$store.getters.user.user.id;
184 190
     console.log("adminid", adminid);
185 191
     this.getMyInformation(adminid);
192
+    this.getMyOrganazition(adminid);
186 193
   }
187 194
 };
188 195
 </script>

+ 42 - 4
src/pages/my/modifyingName.vue Parādīt failu

@@ -3,15 +3,53 @@
3 3
     <div class="modifyingNameTitle">
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="saveName">保存</span>
7 7
     </div>
8 8
     <div class="nameBox">
9
-      <van-field v-model="value" placeholder="请填写姓名" />
9
+      <van-field v-model="name" placeholder="请填写姓名" />
10 10
     </div>
11 11
   </div>
12 12
 </template>
13
-
14
-
13
+<script>
14
+import { getMyInformation, saveName } from "@/api/patient/patient";
15
+export default {
16
+  data() {
17
+    return {
18
+      name: "",
19
+      admin_user_id: 0
20
+    };
21
+  },
22
+  methods: {
23
+    getMyInformation(id) {
24
+      getMyInformation(id).then(response => {
25
+        if (response.data.state === 1) {
26
+          var roleInfo = response.data.data.roleInfo;
27
+          console.log("姓名", roleInfo);
28
+          this.message = roleInfo.message;
29
+          this.name = roleInfo.user_name;
30
+        }
31
+      });
32
+    },
33
+    saveName() {
34
+      if (this.name === "") {
35
+        this.$toast("姓名不能为空");
36
+        return false;
37
+      }
38
+      saveName(this.admin_user_id, this.name).then(response => {
39
+        if (response.data.state === 1) {
40
+          var role = response.data.data.role;
41
+          this.$router.push("/myInfo?id=" + this.admin_user_id);
42
+        }
43
+      });
44
+    }
45
+  },
46
+  created() {
47
+    var id = this.$route.query.id;
48
+    this.getMyInformation(id);
49
+    this.admin_user_id = id;
50
+  }
51
+};
52
+</script>
15 53
 <style lang="scss" scoped>
16 54
 .page_modifyingName {
17 55
   height: 100%;

+ 4 - 3
src/pages/my/myInfo.vue Parādīt failu

@@ -17,15 +17,13 @@
17 17
           <van-icon class="arrow" name="arrow" />
18 18
         </div>
19 19
       </div>
20
-      <router-link to="/editname">
21
-        <div class="infoBoxTwo">
20
+        <div class="infoBoxTwo" @click="editName">
22 21
           <p>姓名</p>
23 22
           <div class="infoBoxOneRight">
24 23
             <p>{{ roleInfo.user_name }}</p>
25 24
             <van-icon class="arrow" name="arrow" />
26 25
           </div>
27 26
         </div>
28
-      </router-link>
29 27
       <div class="infoBoxTwo" @click="show = true">
30 28
         <p>性别</p>
31 29
         <div class="infoBoxOneRight">
@@ -114,6 +112,9 @@ export default {
114 112
     toMyPersonalsign() {
115 113
       this.$router.push("/personalsign?id=" + this.admin_user_id);
116 114
     },
115
+    editName() {
116
+      this.$router.push("/editname?id=" + this.admin_user_id);
117
+    },
117 118
     onConfirm(value) {
118 119
       if (value === "男") {
119 120
         this.form.sex = 1;

+ 12 - 1
src/pages/my/organizationInfo.vue Parādīt failu

@@ -39,7 +39,11 @@
39 39
   </div>
40 40
 </template>
41 41
 <script>
42
-import { getOrgName, getRoleName } from "@/api/patient/patient";
42
+import {
43
+  getOrgName,
44
+  getRoleName,
45
+  getAllOrganization
46
+} from "@/api/patient/patient";
43 47
 export default {
44 48
   data() {
45 49
     return {
@@ -110,6 +114,12 @@ export default {
110 114
           this.positionName = positionName.user_type;
111 115
         }
112 116
       });
117
+    },
118
+    getAllOrganization(id) {
119
+      getAllOrganization(id).then(response => {
120
+        if (response.data.state == 1) {
121
+        }
122
+      });
113 123
     }
114 124
   },
115 125
   created() {
@@ -119,6 +129,7 @@ export default {
119 129
     console.log("id", id);
120 130
     this.getOrgName();
121 131
     this.getRoleName(id);
132
+    this.getAllOrganization(id);
122 133
   }
123 134
 };
124 135
 </script>

+ 13 - 0
src/pages/patientCenter/editOrg/index.vue Parādīt failu

@@ -0,0 +1,13 @@
1
+<template>
2
+
3
+</template>
4
+
5
+<script>
6
+    export default {
7
+        name: "index"
8
+    }
9
+</script>
10
+
11
+<style scoped>
12
+
13
+</style>