xiaoming_global пре 5 година
родитељ
комит
5b75adc488

+ 1 - 1
config/index.js Прегледај датотеку

13
     proxyTable: {},
13
     proxyTable: {},
14
 
14
 
15
     // Various Dev Server settings
15
     // Various Dev Server settings
16
-    host: 'localhost', // can be overwritten by process.env.HOST
16
+    // host: 'localhost', // can be overwritten by process.env.HOST
17
     port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
17
     port: 8081, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18
     autoOpenBrowser: false,
18
     autoOpenBrowser: false,
19
     errorOverlay: true,
19
     errorOverlay: true,

+ 55 - 50
src/pages/main/DetailsPage.vue Прегледај датотеку

23
                 <!-- <div class="time" style="width:1.49rem;">
23
                 <!-- <div class="time" style="width:1.49rem;">
24
                   <span class="iconfont">2018-01-01&#xe74a;</span>
24
                   <span class="iconfont">2018-01-01&#xe74a;</span>
25
                 </div> -->
25
                 </div> -->
26
-
27
               <div class="print" style="float: right;">
26
               <div class="print" style="float: right;">
28
                 <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
27
                 <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
29
               </div>
28
               </div>
36
               <today-tab ref="today" v-show="index==2" title="今日" ></today-tab>
35
               <today-tab ref="today" v-show="index==2" title="今日" ></today-tab>
37
             </div>
36
             </div>
38
 
37
 
39
-
40
         </div>
38
         </div>
41
          <!-- <mt-datetime-picker
39
          <!-- <mt-datetime-picker
42
             v-model="pickerVisible"
40
             v-model="pickerVisible"
46
             month-format="{value} "
44
             month-format="{value} "
47
             date-format="{value} ">
45
             date-format="{value} ">
48
         </mt-datetime-picker> -->
46
         </mt-datetime-picker> -->
47
+
49
     </div>
48
     </div>
50
 </template>
49
 </template>
51
 
50
 
52
 <script>
51
 <script>
53
-import SideBar from "@/pages/layout/SideBar";
54
-import TodayTab from "./today/TodayTab";
55
-import DialysisTab from "./dialysis/DialysisTab";
56
-import RecordsTab from "./records/RecordsTab";
57
-import { Popover } from "vux";
58
-import CheckTab from "./dialysis/CheckTab";
59
-import {parseTime} from "@/utils"
60
-import {GetPatientInfoWithDiseases} from "@/api/patient";
61
-import { Toast } from 'vant';
62
-import CaseHistory from "./records/CaseHistory";
52
+import SideBar from '@/pages/layout/SideBar'
53
+import TodayTab from './today/TodayTab'
54
+import DialysisTab from './dialysis/DialysisTab'
55
+import RecordsTab from './records/RecordsTab'
56
+import { Popover } from 'vux'
57
+import CheckTab from './dialysis/CheckTab'
58
+import {parseTime} from '@/utils'
59
+import {GetPatientInfoWithDiseases} from '@/api/patient'
60
+import { Toast } from 'vant'
61
+import CaseHistory from './records/CaseHistory'
63
 
62
 
64
 export default {
63
 export default {
65
-  name: "DetailsPage",
64
+  name: 'DetailsPage',
66
   components: {
65
   components: {
67
     CaseHistory,
66
     CaseHistory,
68
     CheckTab,
67
     CheckTab,
70
     TodayTab,
69
     TodayTab,
71
     DialysisTab,
70
     DialysisTab,
72
     RecordsTab,
71
     RecordsTab,
73
-    Popover,
72
+    Popover
74
   },
73
   },
75
-  data() {
74
+  data () {
76
     return {
75
     return {
77
       // pickerVisible: new Date(),
76
       // pickerVisible: new Date(),
78
       patient_id: 0,
77
       patient_id: 0,
79
-      patient_name: "",
78
+      patient_name: '',
80
       date: 0,
79
       date: 0,
81
       index: 2,
80
       index: 2,
82
-      patient: null,
83
-    };
81
+      patient: null
82
+    }
84
   },
83
   },
85
-  created() {
86
-    var patient_id = this.$route.query.patient_id;
87
-    var date = this.$route.query.date;
88
-    var patient_name = this.$route.query.patient_name;
89
-    this.patient_id = patient_id;
90
-    this.date = date;
91
-    this.patient_name = patient_name;
92
-    this.GetPatientInfoWithDiseases(this.patient_id);
84
+  created () {
85
+    var patient_id = this.$route.query.patient_id
86
+    var date = this.$route.query.date
87
+    var patient_name = this.$route.query.patient_name
88
+    this.patient_id = patient_id
89
+    this.date = date
90
+    this.patient_name = patient_name
91
+    this.GetPatientInfoWithDiseases(this.patient_id)
93
   },
92
   },
94
   methods: {
93
   methods: {
95
-    ClickTab: function(tabIndex) {
96
-      this.index = tabIndex;
94
+    ClickTab: function (tabIndex) {
95
+      this.index = tabIndex
96
+    },
97
+    backAction () {
98
+      this.$router.back(-1)
97
     },
99
     },
98
-    backAction() {
99
-      this.$router.back(-1);
100
+    openPicker () {
101
+      this.$refs.picker.open()
100
     },
102
     },
101
-    openPicker() {
102
-      this.$refs.picker.open();
103
-    },print:function () {
104
-      var xtdate = parseTime(this.date, "{y}-{m}-{d}")
105
-      if(this.patient != null){
106
-        this.$router.push('/Print?xtdate='+xtdate+'&xtno='+this.patient.dialysis_no);
103
+    print: function () {
104
+      var xtdate = parseTime(this.date, '{y}-{m}-{d}')
105
+      if (this.patient != null) {
106
+        this.$router.push('/Print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no)
107
       }
107
       }
108
-    },GetPatientInfoWithDiseases(id) {
109
-      GetPatientInfoWithDiseases(id).then(response=>{
110
-        if (response.data.state==1) {
111
-          this.patient = response.data.data.patient;
112
-        }else {
113
-          Toast.fail("网络异常");
114
-          return false;
108
+    },
109
+    GetPatientInfoWithDiseases (id) {
110
+      GetPatientInfoWithDiseases(id).then(response => {
111
+        if (response.data.state == 1) {
112
+          this.patient = response.data.data.patient
113
+        } else {
114
+          Toast.fail('网络异常')
115
+          return false
115
         }
116
         }
116
       }).catch(() => {
117
       }).catch(() => {
117
         // on cancel
118
         // on cancel
118
-        Toast.fail("网络异常");
119
-        return false;
120
-      });
121
-    },jump:function (val) {
119
+        Toast.fail('网络异常')
120
+        return false
121
+      })
122
+    },
123
+    jump: function (val) {
122
       this.index = 2
124
       this.index = 2
123
-
125
+    },
126
+    toMyPatients () {
127
+      var patient_id = this.$route.query.patient_id
128
+      console.log('patientid是谁呢', patient_id)
129
+      this.$router.push('/mypatients/' + patient_id)
124
     }
130
     }
125
   }
131
   }
126
-};
132
+}
127
 </script>
133
 </script>
128
 
134
 
129
 <style style="stylesheet/scss" lang="scss" scoped>
135
 <style style="stylesheet/scss" lang="scss" scoped>
178
   }
184
   }
179
 }
185
 }
180
 </style>
186
 </style>
181
-

+ 121 - 111
src/pages/main/DialysisArea.vue Прегледај датотеку

110
 </template>
110
 </template>
111
 
111
 
112
 <script>
112
 <script>
113
-import PatientBox from "./PatientBox";
114
-import { Popover } from "vux";
115
-import { Datetime } from "vux";
116
-import { parseTime } from "@/utils/index";
117
-import { getDialysisScheduals } from "@/api/dialysis";
118
-import { Toast } from "vant";
113
+import PatientBox from './PatientBox'
114
+import { Popover } from 'vux'
115
+import { Datetime } from 'vux'
116
+import { parseTime } from '@/utils/index'
117
+import { getDialysisScheduals } from '@/api/dialysis'
118
+import { Toast } from 'vant'
119
 
119
 
120
 export default {
120
 export default {
121
-  name: "DialysisArea",
121
+  name: 'DialysisArea',
122
   components: {
122
   components: {
123
     PatientBox,
123
     PatientBox,
124
     Popover,
124
     Popover,
125
     Datetime
125
     Datetime
126
   },
126
   },
127
-  inject: ["reload"],
128
-  data() {
127
+  inject: ['reload'],
128
+  data () {
129
     return {
129
     return {
130
       loading: false,
130
       loading: false,
131
 
131
 
132
       networkStates: true,
132
       networkStates: true,
133
       timer: null,
133
       timer: null,
134
-      selected_date: this.$store.getters.app.dialysis_area.schedule_date, //new Date(),
134
+      selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
135
       schedual_types: [
135
       schedual_types: [
136
-        { value: 0, text: "全部班", select: true },
137
-        { value: 1, text: "上午", select: false },
138
-        { value: 2, text: "下午", select: false },
139
-        { value: 3, text: "晚上", select: false }
136
+        { value: 0, text: '全部班', select: true },
137
+        { value: 1, text: '上午', select: false },
138
+        { value: 2, text: '下午', select: false },
139
+        { value: 3, text: '晚上', select: false }
140
       ],
140
       ],
141
       schedual_type_selected: this.$store.getters.app.dialysis_area
141
       schedual_type_selected: this.$store.getters.app.dialysis_area
142
         .schedule_type_select_index,
142
         .schedule_type_select_index,
143
 
143
 
144
       zone_selected: this.$store.getters.app.dialysis_area.zone_select_index,
144
       zone_selected: this.$store.getters.app.dialysis_area.zone_select_index,
145
-      zones: [{ value: 0, text: "全部分区", select: true }],
145
+      zones: [{ value: 0, text: '全部分区', select: true }],
146
       dialysis_scheduals: [],
146
       dialysis_scheduals: [],
147
 
147
 
148
       zone_options_visible: false,
148
       zone_options_visible: false,
149
       sch_type_options_visible: false
149
       sch_type_options_visible: false
150
-    };
150
+    }
151
   },
151
   },
152
   props: {
152
   props: {
153
     search_keyword: {
153
     search_keyword: {
154
       type: String,
154
       type: String,
155
-      default: ""
155
+      default: ''
156
     }
156
     }
157
   },
157
   },
158
   computed: {
158
   computed: {
159
-    selected_date_str: function() {
160
-      return parseTime(this.selected_date, "{y}-{m}-{d}");
159
+    selected_date_str: function () {
160
+      return parseTime(this.selected_date, '{y}-{m}-{d}')
161
     },
161
     },
162
 
162
 
163
-    filtedScheduals: function() {
163
+    filtedScheduals: function () {
164
       if (this.dialysis_scheduals.length == 0) {
164
       if (this.dialysis_scheduals.length == 0) {
165
-        return [];
165
+        return []
166
       }
166
       }
167
 
167
 
168
-      var search_keyword = this.search_keyword;
168
+      var search_keyword = this.search_keyword
169
       if (search_keyword.length > 0) {
169
       if (search_keyword.length > 0) {
170
-        var schedules = [];
170
+        var schedules = []
171
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
171
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
172
-          const scheduleInfo = this.dialysis_scheduals[o_i];
173
-          var originSchedules = scheduleInfo.scheduals;
172
+          const scheduleInfo = this.dialysis_scheduals[o_i]
173
+          var originSchedules = scheduleInfo.scheduals
174
           if (originSchedules.length == 0) {
174
           if (originSchedules.length == 0) {
175
-            continue;
175
+            continue
176
           }
176
           }
177
-          var filtedSchedules = [];
177
+          var filtedSchedules = []
178
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
178
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
179
-            const schedule = originSchedules[s_i];
179
+            const schedule = originSchedules[s_i]
180
             if (
180
             if (
181
               schedule.patient.name.indexOf(search_keyword) != -1 ||
181
               schedule.patient.name.indexOf(search_keyword) != -1 ||
182
               schedule.patient.dialysis_no.indexOf(search_keyword) != -1
182
               schedule.patient.dialysis_no.indexOf(search_keyword) != -1
183
             ) {
183
             ) {
184
-              filtedSchedules.push(schedule);
185
-              break;
184
+              filtedSchedules.push(schedule)
185
+              break
186
             }
186
             }
187
           }
187
           }
188
           if (filtedSchedules.length > 0) {
188
           if (filtedSchedules.length > 0) {
189
             schedules.push({
189
             schedules.push({
190
               zone_name: scheduleInfo.zone_name,
190
               zone_name: scheduleInfo.zone_name,
191
               scheduals: filtedSchedules
191
               scheduals: filtedSchedules
192
-            });
192
+            })
193
           }
193
           }
194
         }
194
         }
195
-        return schedules;
195
+        return schedules
196
       }
196
       }
197
 
197
 
198
-      var zone_selected = this.zone_selected;
199
-      var timetype_selected = this.schedual_type_selected;
198
+      var zone_selected = this.zone_selected
199
+      var timetype_selected = this.schedual_type_selected
200
       if (
200
       if (
201
         (zone_selected == 0 && timetype_selected == 0) ||
201
         (zone_selected == 0 && timetype_selected == 0) ||
202
         this.zones.length <= 1
202
         this.zones.length <= 1
203
       ) {
203
       ) {
204
-        return this.dialysis_scheduals;
204
+        return this.dialysis_scheduals
205
       }
205
       }
206
 
206
 
207
-      var zone_name = zone_selected == 0 ? "" : this.zones[zone_selected].text;
208
-      var schedules = [];
207
+      var zone_name = zone_selected == 0 ? '' : this.zones[zone_selected].text
208
+      var schedules = []
209
       for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
209
       for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
210
-        const scheduleInfo = this.dialysis_scheduals[o_i];
211
-        var originSchedules = scheduleInfo.scheduals;
212
-        var filtedSchedules = [];
210
+        const scheduleInfo = this.dialysis_scheduals[o_i]
211
+        var originSchedules = scheduleInfo.scheduals
212
+        var filtedSchedules = []
213
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
213
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
214
-          const schedule = originSchedules[s_i];
214
+          const schedule = originSchedules[s_i]
215
           if (
215
           if (
216
             zone_name.length == 0 ||
216
             zone_name.length == 0 ||
217
             (zone_name.length > 0 &&
217
             (zone_name.length > 0 &&
221
               timetype_selected == 0 ||
221
               timetype_selected == 0 ||
222
               schedule.schedule_type == timetype_selected
222
               schedule.schedule_type == timetype_selected
223
             ) {
223
             ) {
224
-              filtedSchedules.push(schedule);
224
+              filtedSchedules.push(schedule)
225
             }
225
             }
226
           }
226
           }
227
         }
227
         }
229
           schedules.push({
229
           schedules.push({
230
             zone_name: scheduleInfo.zone_name,
230
             zone_name: scheduleInfo.zone_name,
231
             scheduals: filtedSchedules
231
             scheduals: filtedSchedules
232
-          });
232
+          })
233
         }
233
         }
234
       }
234
       }
235
-      return schedules;
235
+      return schedules
236
+    }
237
+  },
238
+  methods: {
239
+    myPatients () {
240
+      alert('aaa')
236
     }
241
     }
237
   },
242
   },
238
-  created() {
239
-    this.requestDialysisScheduals();
243
+  created () {
244
+    this.requestDialysisScheduals()
240
   },
245
   },
241
-  mounted() {
246
+  mounted () {
242
     // this.timer = window.setInterval(() => {
247
     // this.timer = window.setInterval(() => {
243
     //   setTimeout(this.requestDialysisScheduals(), 0);
248
     //   setTimeout(this.requestDialysisScheduals(), 0);
244
     // }, 30000);
249
     // }, 30000);
245
   },
250
   },
246
-  beforeDestroy() {
247
-    clearInterval(this.timer);
248
-    this.timer = null;
251
+  beforeDestroy () {
252
+    clearInterval(this.timer)
253
+    this.timer = null
249
   },
254
   },
250
   methods: {
255
   methods: {
251
-    reloads: function() {
252
-      this.reload();
256
+    reloads: function () {
257
+      this.reload()
253
     },
258
     },
254
-    handletimeType: function(index) {
255
-      this.sch_type_options_visible = false;
256
-      this.schedual_type_selected = index;
257
-      this.$emit("clear_search_keyword");
258
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
259
+    handletimeType: function (index) {
260
+      this.sch_type_options_visible = false
261
+      this.schedual_type_selected = index
262
+      this.$emit('clear_search_keyword')
263
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
259
         zone: this.zone_selected,
264
         zone: this.zone_selected,
260
         schedule_type: this.schedual_type_selected,
265
         schedule_type: this.schedual_type_selected,
261
         schedule_date: this.selected_date
266
         schedule_date: this.selected_date
262
-      });
267
+      })
263
     },
268
     },
264
-    handleZoneChange: function(index) {
265
-      this.zone_options_visible = false;
266
-      this.zone_selected = index;
267
-      this.$emit("clear_search_keyword");
268
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
269
+    handleZoneChange: function (index) {
270
+      this.zone_options_visible = false
271
+      this.zone_selected = index
272
+      this.$emit('clear_search_keyword')
273
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
269
         zone: this.zone_selected,
274
         zone: this.zone_selected,
270
         schedule_type: this.schedual_type_selected,
275
         schedule_type: this.schedual_type_selected,
271
         schedule_date: this.selected_date
276
         schedule_date: this.selected_date
272
-      });
277
+      })
273
     },
278
     },
274
-    handleScheduleDateChange: function(date) {
275
-      this.zone_selected = 0;
276
-      this.schedual_type_selected = 0;
279
+    handleScheduleDateChange: function (date) {
280
+      this.zone_selected = 0
281
+      this.schedual_type_selected = 0
277
 
282
 
278
-      this.$emit("clear_search_keyword");
279
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
283
+      this.$emit('clear_search_keyword')
284
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
280
         zone: this.zone_selected,
285
         zone: this.zone_selected,
281
         schedule_type: this.schedual_type_selected,
286
         schedule_type: this.schedual_type_selected,
282
         schedule_date: this.selected_date
287
         schedule_date: this.selected_date
283
-      });
284
-      this.requestDialysisScheduals();
288
+      })
289
+      this.requestDialysisScheduals()
285
     },
290
     },
286
 
291
 
287
-    requestDialysisScheduals() {
292
+    requestDialysisScheduals () {
288
       // this.$toast.loading({forbidClick: true, duration: 0})
293
       // this.$toast.loading({forbidClick: true, duration: 0})
289
-      this.loading = true;
290
-      var type = 0;
294
+      this.loading = true
295
+      var type = 0
291
       getDialysisScheduals({ type: type, date: this.selected_date_str })
296
       getDialysisScheduals({ type: type, date: this.selected_date_str })
292
         .then(rs => {
297
         .then(rs => {
293
-          this.networkStates = true;
294
-          var resp = rs.data;
298
+          this.networkStates = true
299
+          var resp = rs.data
295
           if (resp.state == 1) {
300
           if (resp.state == 1) {
296
-            this.loading = false;
301
+            this.loading = false
297
 
302
 
298
             // console.log(resp.data)
303
             // console.log(resp.data)
299
-            var scheduals = resp.data.scheduals;
300
-            var zoneMap = {};
301
-            var schedualMap = {};
304
+            var scheduals = resp.data.scheduals
305
+            console.log('scheduals是什么', scheduals)
306
+            var zoneMap = {}
307
+            var schedualMap = {}
302
             for (let index = 0; index < scheduals.length; index++) {
308
             for (let index = 0; index < scheduals.length; index++) {
303
-              const schedual = scheduals[index];
309
+              const schedual = scheduals[index]
304
               if (schedual.dialysis_order == null) {
310
               if (schedual.dialysis_order == null) {
305
-                continue;
311
+                continue
306
               }
312
               }
307
               if (schedualMap[schedual.device_number.zone.name] == null) {
313
               if (schedualMap[schedual.device_number.zone.name] == null) {
308
-                schedualMap[schedual.device_number.zone.name] = [];
314
+                schedualMap[schedual.device_number.zone.name] = []
309
               }
315
               }
310
-              schedualMap[schedual.device_number.zone.name].push(schedual);
316
+              schedualMap[schedual.device_number.zone.name].push(schedual)
311
               if (zoneMap[schedual.device_number.zone.name] == null) {
317
               if (zoneMap[schedual.device_number.zone.name] == null) {
312
                 zoneMap[schedual.device_number.zone.name] =
318
                 zoneMap[schedual.device_number.zone.name] =
313
-                  schedual.device_number.zone;
319
+                  schedual.device_number.zone
314
               }
320
               }
315
             }
321
             }
316
 
322
 
317
-            var zones = [];
318
-            zones.push({ value: 0, text: "全部分区" });
323
+            var zones = []
324
+            zones.push({ value: 0, text: '全部分区' })
319
             for (var zoneName in zoneMap) {
325
             for (var zoneName in zoneMap) {
320
-              zones.push({ value: zoneMap[zoneName].id, text: zoneName });
326
+              zones.push({ value: zoneMap[zoneName].id, text: zoneName })
321
             }
327
             }
322
 
328
 
323
-            zones = zones.sort(function(a, b) {
324
-              return a.value > b.value;
325
-            });
326
-            this.zones = zones;
329
+            zones = zones.sort(function (a, b) {
330
+              return a.value > b.value
331
+            })
332
+            this.zones = zones
327
 
333
 
328
-            var dialysis_scheduals = [];
334
+            var dialysis_scheduals = []
329
             for (let index = 0; index < zones.length; index++) {
335
             for (let index = 0; index < zones.length; index++) {
330
-              const zone = zones[index];
331
-              var scheduals = schedualMap[zone.text];
336
+              const zone = zones[index]
337
+              var scheduals = schedualMap[zone.text]
332
               if (scheduals == null) {
338
               if (scheduals == null) {
333
-                continue;
339
+                continue
334
               }
340
               }
335
               dialysis_scheduals.push({
341
               dialysis_scheduals.push({
336
                 zone_name: zone.text,
342
                 zone_name: zone.text,
337
                 scheduals: scheduals
343
                 scheduals: scheduals
338
-              });
344
+              })
339
             }
345
             }
340
-            this.dialysis_scheduals = dialysis_scheduals;
346
+            this.dialysis_scheduals = dialysis_scheduals
341
           } else {
347
           } else {
342
-            this.loading = false;
348
+            this.loading = false
343
 
349
 
344
             this.$toast({
350
             this.$toast({
345
               message: resp.msg
351
               message: resp.msg
346
-            });
352
+            })
347
           }
353
           }
348
         })
354
         })
349
         .catch(error => {
355
         .catch(error => {
350
-          this.loading = false;
356
+          this.loading = false
351
 
357
 
352
-          //超时之后在这里捕抓错误信息.
358
+          // 超时之后在这里捕抓错误信息.
353
           if (error.response) {
359
           if (error.response) {
354
-            this.networkStates = false;
360
+            this.networkStates = false
355
 
361
 
356
-            console.log("error.response");
357
-            console.log(error.response);
362
+            console.log('error.response')
363
+            console.log(error.response)
358
           } else if (error.request) {
364
           } else if (error.request) {
359
-            this.networkStates = false;
365
+            this.networkStates = false
360
 
366
 
361
             // if(error.request.readyState == 4 && error.request.status == 0){
367
             // if(error.request.readyState == 4 && error.request.status == 0){
362
             //   //我在这里重新请求
368
             //   //我在这里重新请求
363
             //   this.networkStates = false
369
             //   this.networkStates = false
364
             // }
370
             // }
365
           } else {
371
           } else {
366
-            this.networkStates = false;
372
+            this.networkStates = false
367
           }
373
           }
368
-        });
374
+        })
369
     },
375
     },
370
-    openPicker() {
371
-      this.$refs.picker.open();
376
+    openPicker () {
377
+      this.$refs.picker.open()
372
     }
378
     }
379
+    // getMyPatient () {
380
+    //   console.log('这是啥', this.zone_options_visible)
381
+    //   console.log('日期', this.selected_date)
382
+    // }
373
   }
383
   }
374
-};
384
+}
375
 </script>
385
 </script>
376
 
386
 
377
 <style style="stylesheet/scss" lang="scss" scoped>
387
 <style style="stylesheet/scss" lang="scss" scoped>

+ 51 - 52
src/pages/main/RecordPage.vue Прегледај датотеку

60
   </div>
60
   </div>
61
 </template>
61
 </template>
62
 
62
 
63
-
64
 <script>
63
 <script>
65
-  import DialysisArea from './DialysisArea'
66
-  import WaitingArea from './WaitingArea'
67
-  import {Popover} from 'vux'
68
-  import {getDialysisScheduals, getWaitingScheduals} from '@/api/dialysis'
69
-  import {parseTime} from '@/utils/index'
70
-  import {getDialysisOrWaitSelectedConfig} from '@/utils/data_config'
64
+import DialysisArea from './DialysisArea'
65
+import WaitingArea from './WaitingArea'
66
+import {Popover} from 'vux'
67
+import {getDialysisScheduals, getWaitingScheduals} from '@/api/dialysis'
68
+import {parseTime} from '@/utils/index'
69
+import {getDialysisOrWaitSelectedConfig} from '@/utils/data_config'
71
 
70
 
72
-  export default {
73
-    name: 'RecordPage',
74
-    props: {
75
-      un_read_wait_num: {
76
-        type: Number,
77
-      },
78
-      un_read_dialysis_num: {
79
-        type: Number,
80
-      }
71
+export default {
72
+  name: 'RecordPage',
73
+  props: {
74
+    un_read_wait_num: {
75
+      type: Number
81
     },
76
     },
82
-    data () {
83
-      return {
84
-        index: 1,
85
-        search_input: '',
86
-        search_keyword: '',
87
-        scheduals: [],
88
-        advice_groups: [],
89
-        unReadWaitNum: 0,
90
-        unReadDialysisNum: 0,
77
+    un_read_dialysis_num: {
78
+      type: Number
79
+    }
80
+  },
81
+  data () {
82
+    return {
83
+      index: 1,
84
+      search_input: '',
85
+      search_keyword: '',
86
+      scheduals: [],
87
+      advice_groups: [],
88
+      unReadWaitNum: 0,
89
+      unReadDialysisNum: 0
90
+
91
+    }
92
+  },
93
+  components: {
94
+    DialysisArea,
95
+    WaitingArea,
96
+    Popover
97
+    // Group,
98
+    // Cell
99
+  },
91
 
100
 
92
-      }
101
+  methods: {
102
+    ClickTab: function (tabIndex) {
103
+      this.index = tabIndex
93
     },
104
     },
94
-    components: {
95
-      DialysisArea,
96
-      WaitingArea,
97
-      Popover
98
-      // Group,
99
-      // Cell
105
+    searchWithKeyword: function () {
106
+      this.$refs.search_field.blur()
107
+      this.search_keyword = this.search_input
100
     },
108
     },
101
-
102
-    methods: {
103
-      ClickTab: function (tabIndex) {
104
-        this.index = tabIndex
105
-      },
106
-      searchWithKeyword: function () {
107
-        this.$refs.search_field.blur()
108
-        this.search_keyword = this.search_input
109
-      },
110
-      clearKeyword: function () {
111
-        this.search_input = ''
112
-        this.search_keyword = ''
113
-      },
114
-    }, created () {
115
-      var index = getDialysisOrWaitSelectedConfig()
116
-      console.log(index)
117
-      if (index != null){
118
-        this.index = index
119
-      }
109
+    clearKeyword: function () {
110
+      this.search_input = ''
111
+      this.search_keyword = ''
112
+    }
113
+  },
114
+  created () {
115
+    var index = getDialysisOrWaitSelectedConfig()
116
+    console.log(index)
117
+    if (index != null) {
118
+      this.index = index
120
     }
119
     }
121
   }
120
   }
121
+}
122
 </script>
122
 </script>
123
 
123
 
124
 <style style="stylesheet/scss" lang="scss" scoped>
124
 <style style="stylesheet/scss" lang="scss" scoped>
177
   border: 1px solid #fff;
177
   border: 1px solid #fff;
178
   }
178
   }
179
 </style>
179
 </style>
180
-

+ 99 - 102
src/pages/main/dialog/LongDialog.vue Прегледај датотеку

231
 </template>
231
 </template>
232
 
232
 
233
 <script>
233
 <script>
234
-import LongDialogMenu from "./subMenu/LongDialogMenu";
235
-import { createPatientDialysisSolution } from "@/api/patient";
236
-import { Toast } from "vant";
234
+import LongDialogMenu from './subMenu/LongDialogMenu';
235
+import { createPatientDialysisSolution } from '@/api/patient';
236
+import { Toast } from 'vant';
237
 
237
 
238
 export default {
238
 export default {
239
-  name: "LongDialog",
239
+  name: 'LongDialog',
240
   components: {
240
   components: {
241
     LongDialogMenu
241
     LongDialogMenu
242
   },
242
   },
243
   methods: {
243
   methods: {
244
-    handleDialyser(item) {
245
-      this.showObj.paden_show = true;
244
+    handleDialyser (item) {
245
+      this.showObj.paden_show = true
246
     },
246
     },
247
-    showModel() {
248
-      this.showObj.mode_show[0] = true;
249
-      this.showObj.paden_show = false;
247
+    showModel () {
248
+      this.showObj.mode_show[0] = true
249
+      this.showObj.paden_show = false
250
     },
250
     },
251
-    showQi() {
252
-      this.showObj.mode_show[1] = true;
253
-      this.showObj.paden_show = false;
251
+    showQi () {
252
+      this.showObj.mode_show[1] = true
253
+      this.showObj.paden_show = false
254
     },
254
     },
255
-    showMenu(index) {
256
-      this.showObj.mode_show[index] = true;
257
-      this.showObj.paden_show = false;
255
+    showMenu (index) {
256
+      this.showObj.mode_show[index] = true
257
+      this.showObj.paden_show = false
258
     },
258
     },
259
 
259
 
260
-    submitSolution() {
261
-      this.dialysisSolution.mode = this.dialysisSolution.mode_id;
260
+    submitSolution () {
261
+      this.dialysisSolution.mode = this.dialysisSolution.mode_id
262
       createPatientDialysisSolution(
262
       createPatientDialysisSolution(
263
         this.patient.id,
263
         this.patient.id,
264
         this.dialysisSolution
264
         this.dialysisSolution
265
       ).then(response => {
265
       ).then(response => {
266
         if (response.data.state == 0) {
266
         if (response.data.state == 0) {
267
-          Toast.fail(response.data.msg);
267
+          Toast.fail(response.data.msg)
268
           // this.$toast({message: response.data.msg});
268
           // this.$toast({message: response.data.msg});
269
-          return false;
269
+          return false
270
         } else {
270
         } else {
271
-          Toast.success("创建成功");
271
+          Toast.success('创建成功')
272
           // this.$toast({message: "创建成功"});
272
           // this.$toast({message: "创建成功"});
273
-          this.$emit("longSolution");
273
+          this.$emit('longSolution')
274
           for (const key in response.data.data.solution) {
274
           for (const key in response.data.data.solution) {
275
-            this.solution_prop[key] = response.data.data.solution[key];
275
+            this.solution_prop[key] = response.data.data.solution[key]
276
           }
276
           }
277
           // this.solution_prop = response.data.data.solution
277
           // this.solution_prop = response.data.data.solution
278
         }
278
         }
279
-      });
279
+      })
280
     }
280
     }
281
   },
281
   },
282
 
282
 
289
     },
289
     },
290
     machines_prop: {
290
     machines_prop: {
291
       type: Array,
291
       type: Array,
292
-      default: function() {
293
-        return new Array();
292
+      default: function () {
293
+        return new Array()
294
       }
294
       }
295
     }
295
     }
296
   },
296
   },
297
-  data() {
297
+  data () {
298
     return {
298
     return {
299
-      doctor: "",
299
+      doctor: '',
300
       showObj: {
300
       showObj: {
301
         mode_show: {
301
         mode_show: {
302
           0: false,
302
           0: false,
319
 
319
 
320
       anticoagulant: {
320
       anticoagulant: {
321
         id: 0,
321
         id: 0,
322
-        name: "",
322
+        name: '',
323
         type: 1,
323
         type: 1,
324
         shouji: 1,
324
         shouji: 1,
325
         weichi: 1,
325
         weichi: 1,
326
         zongliang: 1,
326
         zongliang: 1,
327
         gaimingcheng: -1,
327
         gaimingcheng: -1,
328
         gaijiliang: -1,
328
         gaijiliang: -1,
329
-        shouji_unit: "mg",
330
-        weichi_unit: "mg/h",
331
-        zongliang_unit: "mg",
332
-        gaimingcheng_unit: "",
333
-        gaijiliang_unit: ""
329
+        shouji_unit: 'mg',
330
+        weichi_unit: 'mg/h',
331
+        zongliang_unit: 'mg',
332
+        gaimingcheng_unit: '',
333
+        gaijiliang_unit: ''
334
       },
334
       },
335
       patient: {
335
       patient: {
336
         id: 0
336
         id: 0
337
       },
337
       },
338
       dialysisSolution: {
338
       dialysisSolution: {
339
         id: 0,
339
         id: 0,
340
-        mode: "",
341
-        mode_id: "",
342
-        mode_name: "",
343
-        dialysis_duration: "",
344
-        hemodialysis_machine: "",
345
-        perfusion_apparatus: "",
346
-        perfusion_apparatus_name: "",
347
-        blood_flow_volume: "",
348
-        dewater: "",
340
+        mode: '',
341
+        mode_id: '',
342
+        mode_name: '',
343
+        dialysis_duration: '',
344
+        hemodialysis_machine: '',
345
+        perfusion_apparatus: '',
346
+        perfusion_apparatus_name: '',
347
+        blood_flow_volume: '',
348
+        dewater: '',
349
         displace_liqui: 0,
349
         displace_liqui: 0,
350
-        replacement_way: "",
351
-        replacement_way_name: "",
352
-        anticoagulant: "",
353
-        anticoagulant_name: "",
354
-        anticoagulant_shouji: "",
355
-        anticoagulant_weichi: "",
356
-        anticoagulant_zongliang: "",
357
-        anticoagulant_gaimingcheng: "",
358
-        anticoagulant_gaijiliang: "",
359
-        kalium: "",
360
-        sodium: "",
361
-        calcium: "",
362
-        bicarbonate: "",
363
-        glucose: "",
364
-        dry_weight: "",
365
-        dialysate_flow: "",
366
-        dialysate_temperature: "",
367
-        conductivity: "",
368
-        doctor: "",
369
-        remark: ""
350
+        replacement_way: '',
351
+        replacement_way_name: '',
352
+        anticoagulant: '',
353
+        anticoagulant_name: '',
354
+        anticoagulant_shouji: '',
355
+        anticoagulant_weichi: '',
356
+        anticoagulant_zongliang: '',
357
+        anticoagulant_gaimingcheng: '',
358
+        anticoagulant_gaijiliang: '',
359
+        kalium: '',
360
+        sodium: '',
361
+        calcium: '',
362
+        bicarbonate: '',
363
+        glucose: '',
364
+        dry_weight: '',
365
+        dialysate_flow: '',
366
+        dialysate_temperature: '',
367
+        conductivity: '',
368
+        doctor: '',
369
+        remark: ''
370
       }
370
       }
371
-    };
371
+    }
372
   },
372
   },
373
   watch: {
373
   watch: {
374
-    "dialysisSolution.anticoagulant": function() {
375
-      var thismode = parseInt(this.dialysisSolution.anticoagulant);
374
+    'dialysisSolution.anticoagulant': function () {
375
+      var thismode = parseInt(this.dialysisSolution.anticoagulant)
376
       if (isNaN(thismode) || thismode <= 0) {
376
       if (isNaN(thismode) || thismode <= 0) {
377
-        return false;
377
+        return false
378
       }
378
       }
379
       if (
379
       if (
380
-        typeof this.anticoagulantsConfit[thismode] == "undefined" ||
380
+        typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
381
         this.anticoagulantsConfit[thismode] == null
381
         this.anticoagulantsConfit[thismode] == null
382
       ) {
382
       ) {
383
-        return false;
383
+        return false
384
       }
384
       }
385
-      this.anticoagulant = this.anticoagulantsConfit[thismode];
386
-      this.dialysisSolution.anticoagulant_name = this.anticoagulantsConfit[thismode].name;
385
+      this.anticoagulant = this.anticoagulantsConfit[thismode]
386
+      this.dialysisSolution.anticoagulant_name = this.anticoagulantsConfit[thismode].name
387
     },
387
     },
388
-    "dialysisSolution.hemodialysis_machine":function(){
389
-      var machine = parseInt(this.dialysisSolution.hemodialysis_machine);
388
+    'dialysisSolution.hemodialysis_machine': function () {
389
+      var machine = parseInt(this.dialysisSolution.hemodialysis_machine)
390
       if (isNaN(machine) || machine <= 0) {
390
       if (isNaN(machine) || machine <= 0) {
391
-        return;
391
+        return
392
       }
392
       }
393
       for (let index = 0; index < this.dialyserList.length; index++) {
393
       for (let index = 0; index < this.dialyserList.length; index++) {
394
         if (machine == this.dialyserList[index].id) {
394
         if (machine == this.dialyserList[index].id) {
395
-          this.dialysisSolution.hemodialysis_machine_name = this.dialyserList[index].name;
395
+          this.dialysisSolution.hemodialysis_machine_name = this.dialyserList[index].name
396
           break;
396
           break;
397
         }
397
         }
398
       }
398
       }
399
     },
399
     },
400
-    "dialysisSolution.perfusion_apparatus": function(){
401
-      var apparatus = parseInt(this.dialysisSolution.perfusion_apparatus);
402
-      if (isNaN(apparatus) || apparatus<=0) {
403
-        return false;
400
+    'dialysisSolution.perfusion_apparatus': function () {
401
+      var apparatus = parseInt(this.dialysisSolution.perfusion_apparatus)
402
+      if (isNaN(apparatus) || apparatus <= 0) {
403
+        return false
404
       }
404
       }
405
       for (let index = 0; index < this.perfusion_apparatus.length; index++) {
405
       for (let index = 0; index < this.perfusion_apparatus.length; index++) {
406
         if (apparatus == this.perfusion_apparatus[index].id) {
406
         if (apparatus == this.perfusion_apparatus[index].id) {
407
-          this.dialysisSolution.perfusion_apparatus_name = this.perfusion_apparatus[index].name;
407
+          this.dialysisSolution.perfusion_apparatus_name = this.perfusion_apparatus[index].name
408
           break;
408
           break;
409
         }
409
         }
410
       }
410
       }
411
     },
411
     },
412
-    "dialysisSolution.replacement_way": function(){
413
-      var way = parseInt(this.dialysisSolution.replacement_way);
414
-      if (isNaN(way) || way<=0) {
415
-        return false;
412
+    'dialysisSolution.replacement_way': function () {
413
+      var way = parseInt(this.dialysisSolution.replacement_way)
414
+      if (isNaN(way) || way <= 0) {
415
+        return false
416
       }
416
       }
417
       for (let index = 0; index < this.replacementWays.length; index++) {
417
       for (let index = 0; index < this.replacementWays.length; index++) {
418
         if (way == this.replacementWays[index].id) {
418
         if (way == this.replacementWays[index].id) {
419
-          this.dialysisSolution.replacement_way_name = this.replacementWays[index].name;
419
+          this.dialysisSolution.replacement_way_name = this.replacementWays[index].name
420
           break;
420
           break;
421
         }
421
         }
422
       }
422
       }
423
-    },
423
+    }
424
   },
424
   },
425
   // computed:{
425
   // computed:{
426
   //   dialysisSolution:function(){
426
   //   dialysisSolution:function(){
437
   //     }
437
   //     }
438
   //   }
438
   //   }
439
 
439
 
440
-
441
   // },
440
   // },
442
-  created() {
443
-    this.doctor = this.$store.getters.user.user.user_name;
444
-    this.modeOptions = this.$store.getters.treatment_mode;
445
-    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus;
446
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
447
-    this.replacementWays = this.$store.getters.replacement_ways;
441
+  created () {
442
+    this.doctor = this.$store.getters.user.user.user_name
443
+    this.modeOptions = this.$store.getters.treatment_mode
444
+    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
445
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
446
+    this.replacementWays = this.$store.getters.replacement_ways
448
 
447
 
449
     for (var modeOne in this.modeOptions) {
448
     for (var modeOne in this.modeOptions) {
450
-      this.modeList.push(this.modeOptions[modeOne]);
449
+      this.modeList.push(this.modeOptions[modeOne])
451
     }
450
     }
452
     for (var one in this.anticoagulantsConfit) {
451
     for (var one in this.anticoagulantsConfit) {
453
-      this.anticoagulantsConfitList.push(this.anticoagulantsConfit[one]);
452
+      this.anticoagulantsConfitList.push(this.anticoagulantsConfit[one])
454
     }
453
     }
455
 
454
 
456
-    this.patient = this.patient_prop;
455
+    this.patient = this.patient_prop
457
 
456
 
458
     // console.log("this.solution_prop",this.solution_prop);
457
     // console.log("this.solution_prop",this.solution_prop);
459
     if (this.solution_prop != null && this.solution_prop.id != '') {
458
     if (this.solution_prop != null && this.solution_prop.id != '') {
460
       for (const key in this.solution_prop) {
459
       for (const key in this.solution_prop) {
461
-        this.dialysisSolution[key] = this.solution_prop[key];
460
+        this.dialysisSolution[key] = this.solution_prop[key]
462
       }
461
       }
463
     }
462
     }
464
 
463
 
465
-
466
-    this.dialyserList = this.machines_prop;
467
-  },
464
+    this.dialyserList = this.machines_prop
465
+  }
468
   // data() {
466
   // data() {
469
   //   return {
467
   //   return {
470
   //     show_two_menu: false
468
   //     show_two_menu: false
486
   //     this.show_two_menu = true;
484
   //     this.show_two_menu = true;
487
   //   }
485
   //   }
488
   // }
486
   // }
489
-};
487
+}
490
 </script>
488
 </script>
491
 
489
 
492
 <style style="stylesheet/scss" lang="scss" scoped>
490
 <style style="stylesheet/scss" lang="scss" scoped>
537
   max-height: 10.6rem;
535
   max-height: 10.6rem;
538
   min-height: 5rem;
536
   min-height: 5rem;
539
   overflow-y: scroll;
537
   overflow-y: scroll;
540
-  
538
+
541
   ul {
539
   ul {
542
     li {
540
     li {
543
       line-height: 1rem;
541
       line-height: 1rem;
545
   }
543
   }
546
 }
544
 }
547
 </style>
545
 </style>
548
-

Разлика између датотеке није приказан због своје велике величине
+ 749 - 755
src/pages/main/dialog/MonitDialog.vue


+ 35 - 23
src/pages/main/dialog/PrescriptionDialog.vue Прегледај датотеку

109
         </div> -->
109
         </div> -->
110
 
110
 
111
         <div class="line"></div>
111
         <div class="line"></div>
112
-        <div class="item" v-if="isShow('置换量')">
112
+        <div class="item" v-if="isShow('置换量')" v-show="huShow">
113
           <label class="name" for="zhy">置换量(L)</label>
113
           <label class="name" for="zhy">置换量(L)</label>
114
           <div class="content">
114
           <div class="content">
115
             <input type="tel" @focus="inputFocus" id="zhy" v-model="dialysisPrescription.replacement_total"/>
115
             <input type="tel" @focus="inputFocus" id="zhy" v-model="dialysisPrescription.replacement_total"/>
212
           </div>
212
           </div>
213
         </div>
213
         </div>
214
 
214
 
215
-        <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')">
215
+        <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')" v-show="zhiShow">
216
           <label class="name" for="knj">置换液</label>
216
           <label class="name" for="knj">置换液</label>
217
           <div class="content">
217
           <div class="content">
218
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
218
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
220
           </div>
220
           </div>
221
         </div>
221
         </div>
222
 
222
 
223
-        <div class="item" v-if="isShow('置换液总量')">
223
+        <div class="item" v-if="isShow('置换液总量')" v-show="totalShow">
224
           <label class="name" for="knj">置换液总量(L)</label>
224
           <label class="name" for="knj">置换液总量(L)</label>
225
           <div class="content">
225
           <div class="content">
226
             <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
226
             <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
362
     prescription_prop: {
362
     prescription_prop: {
363
       type: Object
363
       type: Object
364
     },
364
     },
365
-is_open: {
365
+    is_open: {
366
       type: Number
366
       type: Number
367
     },
367
     },
368
-targetAdvices: {
368
+    targetAdvices: {
369
       type: Array,
369
       type: Array,
370
       default: function () {
370
       default: function () {
371
         return new Array()
371
         return new Array()
372
       }
372
       }
373
     },
373
     },
374
-waitUploadAdvices: {
374
+    waitUploadAdvices: {
375
       type: Array,
375
       type: Array,
376
       default: function () {
376
       default: function () {
377
         return new Array()
377
         return new Array()
501
         result: [], // 选中的值
501
         result: [], // 选中的值
502
         type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
502
         type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
503
         selectId: 0
503
         selectId: 0
504
-      }
504
+      },
505
+      zhiShow: true,
506
+      totalShow: true,
507
+      huShow: true
505
     }
508
     }
506
   },
509
   },
507
 
510
 
509
     isPermission () {
512
     isPermission () {
510
       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)) {
513
       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)) {
511
         return false
514
         return false
512
-      } else{
515
+      } else {
513
         return true
516
         return true
514
       }
517
       }
515
     },
518
     },
819
       for (let keys in treatment_mode) {
822
       for (let keys in treatment_mode) {
820
         if (treatment_mode[keys].id == val) {
823
         if (treatment_mode[keys].id == val) {
821
           treatment_mode_name = treatment_mode[keys].name
824
           treatment_mode_name = treatment_mode[keys].name
825
+          console.log('这是什么', treatment_mode[keys].name)
826
+          if (treatment_mode_name == 'HD') {
827
+            this.zhiShow = false
828
+            this.totalShow = false
829
+            this.huShow = false
830
+          } else {
831
+            this.zhiShow = true
832
+            this.totalShow = true
833
+            this.huShow = true
834
+          }
822
         }
835
         }
823
       }
836
       }
824
 
837
 
1020
         })
1033
         })
1021
       }
1034
       }
1022
     },
1035
     },
1023
-commitSolutionInfo: function () {
1036
+    commitSolutionInfo: function () {
1024
       this.is_pre = 2
1037
       this.is_pre = 2
1025
 
1038
 
1026
       if (this.prescription_prop.id == '') {
1039
       if (this.prescription_prop.id == '') {
1171
         })
1184
         })
1172
       }
1185
       }
1173
     },
1186
     },
1174
-finish: function () {
1187
+    finish: function () {
1175
       this.$emit('finish')
1188
       this.$emit('finish')
1176
     },
1189
     },
1177
-close: function () {
1190
+    close: function () {
1178
       this.$emit('close')
1191
       this.$emit('close')
1179
     },
1192
     },
1180
-open: function () {
1193
+    open: function () {
1181
       this.isShowDialog = true
1194
       this.isShowDialog = true
1182
       this.visibility = false
1195
       this.visibility = false
1183
       this.$refs.picker.close()
1196
       this.$refs.picker.close()
1188
         })
1201
         })
1189
       }
1202
       }
1190
     },
1203
     },
1191
-sign: function () {
1204
+    sign: function () {
1192
       let params = {
1205
       let params = {
1193
         patient_id: this.$route.query.patient_id,
1206
         patient_id: this.$route.query.patient_id,
1194
         date: this.record_date
1207
         date: this.record_date
1211
         }
1224
         }
1212
       })
1225
       })
1213
     },
1226
     },
1214
-getBodyFluid: function (val) {
1227
+    getBodyFluid: function (val) {
1215
       let body_fluid_name = ''
1228
       let body_fluid_name = ''
1216
       let body_fluid = this.bodyFluidOptions
1229
       let body_fluid = this.bodyFluidOptions
1217
       for (let i = 0; i < body_fluid.length; i++) {
1230
       for (let i = 0; i < body_fluid.length; i++) {
1221
       }
1234
       }
1222
       return body_fluid_name
1235
       return body_fluid_name
1223
     },
1236
     },
1224
-getSpecialMedicine: function (val) {
1237
+    getSpecialMedicine: function (val) {
1225
       let special_medicine_name = ''
1238
       let special_medicine_name = ''
1226
       let special_medicine = this.specialMedicineOptions
1239
       let special_medicine = this.specialMedicineOptions
1227
       for (let i = 0; i < special_medicine.length; i++) {
1240
       for (let i = 0; i < special_medicine.length; i++) {
1231
       }
1244
       }
1232
       return special_medicine_name
1245
       return special_medicine_name
1233
     },
1246
     },
1234
-getDisplaceLiquiPart: function (val) {
1247
+    getDisplaceLiquiPart: function (val) {
1235
       let displace_liqui_part_name = ''
1248
       let displace_liqui_part_name = ''
1236
       let displace_liqui_part = this.displaceLiquiPartOptions
1249
       let displace_liqui_part = this.displaceLiquiPartOptions
1237
       for (let i = 0; i < displace_liqui_part.length; i++) {
1250
       for (let i = 0; i < displace_liqui_part.length; i++) {
1241
       }
1254
       }
1242
       return displace_liqui_part_name
1255
       return displace_liqui_part_name
1243
     },
1256
     },
1244
-getBloodAccess: function (val) {
1257
+    getBloodAccess: function (val) {
1245
       let blood_access_name = ''
1258
       let blood_access_name = ''
1246
       let blood_access = this.bloodAccessOptions
1259
       let blood_access = this.bloodAccessOptions
1247
       for (let i = 0; i < blood_access.length; i++) {
1260
       for (let i = 0; i < blood_access.length; i++) {
1251
       }
1264
       }
1252
       return blood_access_name
1265
       return blood_access_name
1253
     },
1266
     },
1254
-menuEmpty: function (val) {
1267
+    menuEmpty: function (val) {
1255
       this.visibility = false
1268
       this.visibility = false
1256
       this.isShowDialog = true
1269
       this.isShowDialog = true
1257
       switch (val.type) {
1270
       switch (val.type) {
1289
           break
1302
           break
1290
       }
1303
       }
1291
     },
1304
     },
1292
-getFloat: function (x) {
1305
+    getFloat: function (x) {
1293
       if (x != '.') {
1306
       if (x != '.') {
1294
         var f = Math.round(x * 100) / 100
1307
         var f = Math.round(x * 100) / 100
1295
         var s = f.toString()
1308
         var s = f.toString()
1306
         return '0.0'
1319
         return '0.0'
1307
       }
1320
       }
1308
     },
1321
     },
1309
-dialysisGoodsClick: function () {
1322
+    dialysisGoodsClick: function () {
1310
       this.isShowDialog = false
1323
       this.isShowDialog = false
1311
       this.is_show = true
1324
       this.is_show = true
1312
     },
1325
     },
1313
-menuCancleTwo: function () {
1326
+    menuCancleTwo: function () {
1314
       this.isShowDialog = true
1327
       this.isShowDialog = true
1315
       this.is_show = false
1328
       this.is_show = false
1316
     },
1329
     },
1317
-menuComfirmTwo: function (dialysisPrescription) {
1330
+    menuComfirmTwo: function (dialysisPrescription) {
1318
       this.isShowDialog = true
1331
       this.isShowDialog = true
1319
       this.is_show = false
1332
       this.is_show = false
1320
       this.dialysisPrescription.niprocart = dialysisPrescription.niprocart
1333
       this.dialysisPrescription.niprocart = dialysisPrescription.niprocart
1404
         }
1417
         }
1405
       }
1418
       }
1406
     }
1419
     }
1407
-    console.log("hh")
1408
     this.dialysisPrescription.kalium = this.getFloat(this.dialysisPrescription.kalium)
1420
     this.dialysisPrescription.kalium = this.getFloat(this.dialysisPrescription.kalium)
1409
     this.dialysisPrescription.sodium = this.getFloat(this.dialysisPrescription.sodium)
1421
     this.dialysisPrescription.sodium = this.getFloat(this.dialysisPrescription.sodium)
1410
     this.dialysisPrescription.calcium = this.getFloat(this.dialysisPrescription.calcium)
1422
     this.dialysisPrescription.calcium = this.getFloat(this.dialysisPrescription.calcium)

+ 30 - 25
src/router/index.js Прегледај датотеку

18
     {
18
     {
19
       path: '/main',
19
       path: '/main',
20
       name: 'main',
20
       name: 'main',
21
-      component: () => import('@/pages/main/index'),
21
+      component: () => import('@/pages/main/index')
22
     },
22
     },
23
     {
23
     {
24
       path: '/details',
24
       path: '/details',
26
       component: () => import('@/pages/main/DetailsPage')
26
       component: () => import('@/pages/main/DetailsPage')
27
     },
27
     },
28
     {
28
     {
29
-      path: "/monitoring",
30
-      name: "monitorPage",
31
-      component: () => import("@/pages/monitoring/index")
29
+      path: '/monitoring',
30
+      name: 'monitorPage',
31
+      component: () => import('@/pages/monitoring/index')
32
 
32
 
33
     },
33
     },
34
     {
34
     {
35
-      path: "/my",
36
-      name: "my",
37
-      component: () => import("@/pages/personal/index")
35
+      path: '/my',
36
+      name: 'my',
37
+      component: () => import('@/pages/personal/index')
38
     },
38
     },
39
     {
39
     {
40
-      path: "/advice",
41
-      name: "doctorAdvice",
42
-      component: () => import("@/pages/advice/index")
40
+      path: '/advice',
41
+      name: 'doctorAdvice',
42
+      component: () => import('@/pages/advice/index')
43
     },
43
     },
44
     {
44
     {
45
-      path: "/EditPersonal",
46
-      name: "EditPersonal",
47
-      component: () => import("@/pages/personal/EditPersonal")
45
+      path: '/EditPersonal',
46
+      name: 'EditPersonal',
47
+      component: () => import('@/pages/personal/EditPersonal')
48
     },
48
     },
49
     {
49
     {
50
-      path: "/ElectronicSignature",
51
-      name: "ElectronicSignature",
52
-      component: () => import("@/pages/personal/ElectronicSignature")
50
+      path: '/ElectronicSignature',
51
+      name: 'ElectronicSignature',
52
+      component: () => import('@/pages/personal/ElectronicSignature')
53
     },
53
     },
54
     {
54
     {
55
-      path: "/Print",
56
-      name: "Print",
57
-      component: () => import("@/pages/main/PrintIndex")
55
+      path: '/Print',
56
+      name: 'Print',
57
+      component: () => import('@/pages/main/PrintIndex')
58
     },
58
     },
59
     {
59
     {
60
-      path: "/add_urgent_schedule",
61
-      name: "AddUrgentSchedule",
62
-      component: () => import("@/pages/main/add_urgent_schedule")
60
+      path: '/add_urgent_schedule',
61
+      name: 'AddUrgentSchedule',
62
+      component: () => import('@/pages/main/add_urgent_schedule')
63
     },
63
     },
64
     {
64
     {
65
-      path: "/Prints",
66
-      name: "Prints",
67
-      component: () => import("@/pages/main/Print")
65
+      path: '/Prints',
66
+      name: 'Prints',
67
+      component: () => import('@/pages/main/Print')
68
+    },
69
+    {
70
+      path: '/mypatients',
71
+      name: '/mypatients',
72
+      component: () => import('@/pages/my/mypatient')
68
     }
73
     }
69
   ]
74
   ]
70
 })
75
 })