Browse Source

Merge branch 'wzf' of http://git.shengws.com/zhangbj/xt_pad into wzf

See999 5 years ago
parent
commit
e3b90a138f
50 changed files with 8837 additions and 2568 deletions
  1. 1 1
      build/cdn.json
  2. 0 0
      config/index.js
  3. 2 2
      config/prod.env.js
  4. 8 2
      src/App.vue
  5. 11 0
      src/api/dialysis.js
  6. 1 1
      src/pages/advice/DialysisAdviceTable.vue
  7. 1 1
      src/pages/home/login.vue
  8. 121 18
      src/pages/main/DetailsPage.vue
  9. 117 15
      src/pages/main/DialysisArea.vue
  10. 340 1
      src/pages/main/PatientBox.vue
  11. 20 0
      src/pages/main/PrintIndex.vue
  12. 94 2
      src/pages/main/RecordPage.vue
  13. 253 118
      src/pages/main/WaitingArea.vue
  14. 2 0
      src/pages/main/dialog/AcceptsDialog.vue
  15. 98 7
      src/pages/main/dialog/AssessmentDialog.vue
  16. 132 81
      src/pages/main/dialog/LongDialog.vue
  17. 757 759
      src/pages/main/dialog/MonitDialog.vue
  18. 96 3
      src/pages/main/dialog/OrdersDialog.vue
  19. 1 1
      src/pages/main/dialog/PlaneDialog.vue
  20. 803 289
      src/pages/main/dialog/PrescriptionDialog.vue
  21. 37 20
      src/pages/main/dialog/ThorougDialog.vue
  22. 1 0
      src/pages/main/dialog/TwoMenu.vue
  23. 54 54
      src/pages/main/dialog/new_order/select_advice_template_dialog.vue
  24. 13 10
      src/pages/main/dialog/subMenu/LongAdviceSubMenu.vue
  25. 215 0
      src/pages/main/dialog/subMenu/MsgTip.vue
  26. 158 0
      src/pages/main/dialog/subMenu/dryWeightMenu.vue
  27. 24 24
      src/pages/main/dialog/subMenu/newCheckBoxSubMenu.vue
  28. 245 1
      src/pages/main/index.vue
  29. 2 0
      src/pages/main/template/DialysisPrintOrderFive.vue
  30. 3 2
      src/pages/main/template/DialysisPrintOrderOne.vue
  31. 1515 0
      src/pages/main/template/DialysisPrintOrderSix.vue
  32. 8 5
      src/pages/main/template/DialysisPrintOrderTwo.vue
  33. 2114 24
      src/pages/main/today/TodayTab.vue
  34. 246 9
      src/pages/main/today/acceptsAssessment.vue
  35. 410 405
      src/pages/main/today/assessmentAfter.vue
  36. 320 299
      src/pages/main/today/assessmentBefore.vue
  37. 39 27
      src/pages/main/today/detailsInfo.vue
  38. 82 3
      src/pages/main/today/dialysisComputer.vue
  39. 24 21
      src/pages/main/today/dialysisMonitoring.vue
  40. 54 6
      src/pages/main/today/dialysisOff.vue
  41. 172 171
      src/pages/main/today/dialysisPrescription.vue
  42. 58 61
      src/pages/main/today/doubleCheck.vue
  43. 66 39
      src/pages/main/today/statOrder.vue
  44. 19 20
      src/pages/main/today/treatmentOf.vue
  45. 4 3
      src/pages/waitingRoom/components/acceptsAssessment.vue
  46. 2 0
      src/pages/waitingRoom/components/dialog/acceptsAssessment.vue
  47. 25 25
      src/router/index.js
  48. 4 0
      src/store/index.js
  49. 64 37
      src/store/user/user.js
  50. 1 1
      src/styles/style.scss

+ 1 - 1
build/cdn.json View File

1
 {
1
 {
2
-  "version": "1.0.52"
2
+  "version": "1.0.91"
3
 }
3
 }

+ 0 - 0
config/index.js View File


+ 2 - 2
config/prod.env.js View File

1
 'use strict'
1
 'use strict'
2
 module.exports = {
2
 module.exports = {
3
   NODE_ENV: '"production"',
3
   NODE_ENV: '"production"',
4
-  BASE_API: '"http://api.xt.test.sgjyun.com"'
5
-
6
   // BASE_API: '"https://api.xt.kuyicloud.com"'
4
   // BASE_API: '"https://api.xt.kuyicloud.com"'
5
+
6
+  BASE_API: '"http://api.xt.test.sgjyun.com"'
7
   // http://api.xt.test.sgjyun.com
7
   // http://api.xt.test.sgjyun.com
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
9
 }
9
 }

+ 8 - 2
src/App.vue View File

7
 
7
 
8
 <script>
8
 <script>
9
 export default {
9
 export default {
10
-  name: "App",
10
+  name: 'App',
11
   provide () {
11
   provide () {
12
     return {
12
     return {
13
       reload: this.reload
13
       reload: this.reload
25
         this.isRouterAlive = true
25
         this.isRouterAlive = true
26
       })
26
       })
27
     }
27
     }
28
+  },
29
+  watch: {
30
+    '$route': function (to, from) {
31
+      document.body.scrollTop = 0
32
+      document.documentElement.scrollTop = 0
33
+    }
28
   }
34
   }
29
 
35
 
30
-};
36
+}
31
 </script>
37
 </script>
32
 
38
 
33
 <style>
39
 <style>

+ 11 - 0
src/api/dialysis.js View File

233
 }
233
 }
234
 
234
 
235
 
235
 
236
+export function CreateDryWeight(params){
237
+  return request({
238
+    url:"/m/api/dryweight/commit",
239
+    method:'post',
240
+    params:params,
241
+  })
242
+
243
+}
244
+
245
+
246
+

+ 1 - 1
src/pages/advice/DialysisAdviceTable.vue View File

543
     @include align-items-center;
543
     @include align-items-center;
544
     @include text-align;
544
     @include text-align;
545
     @include justify-content-between;
545
     @include justify-content-between;
546
-    width: 80%;
546
+    width: 90%;
547
     margin: 0 auto;
547
     margin: 0 auto;
548
     font-size: 0.32rem;
548
     font-size: 0.32rem;
549
     color: $pgh-color;
549
     color: $pgh-color;

+ 1 - 1
src/pages/home/login.vue View File

45
   computed: {
45
   computed: {
46
     loginDisable() {
46
     loginDisable() {
47
       // return false
47
       // return false
48
-      return this.form.mobile.length == 0 || /^1[234578]\d{9}$/.test(this.form.mobile) == false || this.form.pwd.length == 0
48
+      return this.form.mobile.length == 0 || /^1[2345789]\d{9}$/.test(this.form.mobile) == false || this.form.pwd.length == 0
49
     }
49
     }
50
   },
50
   },
51
   created() {
51
   created() {

+ 121 - 18
src/pages/main/DetailsPage.vue View File

27
         <!-- <div class="time" style="width:1.49rem;">
27
         <!-- <div class="time" style="width:1.49rem;">
28
                   <span class="iconfont">2018-01-01&#xe74a;</span>
28
                   <span class="iconfont">2018-01-01&#xe74a;</span>
29
         </div>-->
29
         </div>-->
30
-
30
+<<<<<<< .mine
31
         <div class="print" style="float: right; visibility: hidden;">
31
         <div class="print" style="float: right; visibility: hidden;">
32
           <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
32
           <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+=======
44
+              <div class="print" style="float: right;">
45
+                <el-button size="mini" type="primary" @click="print" icon="el-icon-printer">打印</el-button>
46
+              </div>
47
+
48
+            </div>
49
+            <div class="Tab">
50
+              <CaseHistory v-show="index==0" title="病历"></CaseHistory>
51
+              <!--<check-tab v-show="index==1" title="化验单"></check-tab>-->
52
+              <dialysis-tab v-show="index==1" title="透析" v-on:records="jump(val)"></dialysis-tab>
53
+              <today-tab ref="today" v-show="index==2" title="今日" ></today-tab>
54
+            </div>
55
+
56
+>>>>>>> .theirs
33
         </div>
57
         </div>
34
       </div>
58
       </div>
35
       <div class="Tab">
59
       <div class="Tab">
50
             year-format="{value} "
74
             year-format="{value} "
51
             month-format="{value} "
75
             month-format="{value} "
52
             date-format="{value} ">
76
             date-format="{value} ">
77
+<<<<<<< .mine
53
     </mt-datetime-picker>-->
78
     </mt-datetime-picker>-->
54
   </div>
79
   </div>
80
+
81
+=======
82
+        </mt-datetime-picker> -->
83
+
84
+    </div>
85
+>>>>>>> .theirs
55
 </template>
86
 </template>
56
 
87
 
57
 <script>
88
 <script>
89
+<<<<<<< .mine
58
 import SideBar from "@/pages/layout/SideBar";
90
 import SideBar from "@/pages/layout/SideBar";
59
 import TodayTab from "./today/TodayTab";
91
 import TodayTab from "./today/TodayTab";
60
 import DialysisTab from "./dialysis/DialysisTab";
92
 import DialysisTab from "./dialysis/DialysisTab";
65
 import { GetPatientInfoWithDiseases } from "@/api/patient";
97
 import { GetPatientInfoWithDiseases } from "@/api/patient";
66
 import { Toast } from "vant";
98
 import { Toast } from "vant";
67
 import CaseHistory from "./records/CaseHistory";
99
 import CaseHistory from "./records/CaseHistory";
100
+=======
101
+import SideBar from '@/pages/layout/SideBar'
102
+import TodayTab from './today/TodayTab'
103
+import DialysisTab from './dialysis/DialysisTab'
104
+import RecordsTab from './records/RecordsTab'
105
+import { Popover } from 'vux'
106
+import CheckTab from './dialysis/CheckTab'
107
+import {parseTime} from '@/utils'
108
+import {GetPatientInfoWithDiseases} from '@/api/patient'
109
+import { Toast } from 'vant'
110
+import CaseHistory from './records/CaseHistory'
111
+>>>>>>> .theirs
68
 
112
 
69
 export default {
113
 export default {
70
-  name: "DetailsPage",
114
+  name: 'DetailsPage',
71
   components: {
115
   components: {
72
     CaseHistory,
116
     CaseHistory,
73
     CheckTab,
117
     CheckTab,
77
     RecordsTab,
121
     RecordsTab,
78
     Popover
122
     Popover
79
   },
123
   },
80
-  data() {
124
+  data () {
81
     return {
125
     return {
82
       // pickerVisible: new Date(),
126
       // pickerVisible: new Date(),
83
       patient_id: 0,
127
       patient_id: 0,
84
-      patient_name: "",
128
+      patient_name: '',
85
       date: 0,
129
       date: 0,
86
       index: 2,
130
       index: 2,
131
+<<<<<<< .mine
87
       patient: null
132
       patient: null
88
     };
133
     };
134
+=======
135
+      patient: null
136
+    }
137
+>>>>>>> .theirs
89
   },
138
   },
90
-  created() {
91
-    var patient_id = this.$route.query.patient_id;
92
-    var date = this.$route.query.date;
93
-    var patient_name = this.$route.query.patient_name;
94
-    this.patient_id = patient_id;
95
-    this.date = date;
96
-    this.patient_name = patient_name;
97
-    this.GetPatientInfoWithDiseases(this.patient_id);
139
+  created () {
140
+    var patient_id = this.$route.query.patient_id
141
+    var date = this.$route.query.date
142
+    var patient_name = this.$route.query.patient_name
143
+    this.patient_id = patient_id
144
+    this.date = date
145
+    this.patient_name = patient_name
146
+    this.GetPatientInfoWithDiseases(this.patient_id)
98
   },
147
   },
99
   methods: {
148
   methods: {
100
-    ClickTab: function(tabIndex) {
101
-      this.index = tabIndex;
149
+    ClickTab: function (tabIndex) {
150
+      this.index = tabIndex
102
     },
151
     },
103
-    backAction() {
104
-      this.$router.back(-1);
152
+    backAction () {
153
+      this.$router.back(-1)
105
     },
154
     },
155
+<<<<<<< .mine
106
     openPicker() {
156
     openPicker() {
107
       this.$refs.picker.open();
157
       this.$refs.picker.open();
108
     },
158
     },
112
         this.$router.push(
162
         this.$router.push(
113
           "/Print?xtdate=" + xtdate + "&xtno=" + this.patient.dialysis_no
163
           "/Print?xtdate=" + xtdate + "&xtno=" + this.patient.dialysis_no
114
         );
164
         );
165
+=======
166
+    openPicker () {
167
+      this.$refs.picker.open()
168
+    },
169
+    print: function () {
170
+      var xtdate = parseTime(this.date, '{y}-{m}-{d}')
171
+      if (this.patient != null) {
172
+        this.$router.push('/Print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no)
173
+
174
+
175
+>>>>>>> .theirs
115
       }
176
       }
177
+<<<<<<< .mine
116
     },
178
     },
117
     GetPatientInfoWithDiseases(id) {
179
     GetPatientInfoWithDiseases(id) {
118
       GetPatientInfoWithDiseases(id)
180
       GetPatientInfoWithDiseases(id)
128
           // on cancel
190
           // on cancel
129
           Toast.fail("网络异常");
191
           Toast.fail("网络异常");
130
           return false;
192
           return false;
193
+=======
194
+    },
195
+    GetPatientInfoWithDiseases (id) {
196
+      GetPatientInfoWithDiseases(id).then(response => {
197
+        if (response.data.state == 1) {
198
+          this.patient = response.data.data.patient
199
+        } else {
200
+          Toast.fail('网络异常')
201
+          return false
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+>>>>>>> .theirs
210
+<<<<<<< .mine
131
         });
211
         });
132
     },
212
     },
133
     jump: function(val) {
213
     jump: function(val) {
134
       this.index = 2;
214
       this.index = 2;
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+=======
225
+        }
226
+      }).catch(() => {
227
+        // on cancel
228
+        Toast.fail('网络异常')
229
+        return false
230
+      })
231
+    },
232
+    jump: function (val) {
233
+      this.index = 2
234
+    },
235
+    toMyPatients () {
236
+      var patient_id = this.$route.query.patient_id
237
+      this.$router.push('/mypatients/' + patient_id)
238
+>>>>>>> .theirs
135
     }
239
     }
136
   }
240
   }
137
-};
241
+}
138
 </script>
242
 </script>
139
 
243
 
140
 <style style="stylesheet/scss" lang="scss" scoped>
244
 <style style="stylesheet/scss" lang="scss" scoped>
227
   }
331
   }
228
 }
332
 }
229
 </style>
333
 </style>
230
-

+ 117 - 15
src/pages/main/DialysisArea.vue View File

14
                 class="iconfont"
14
                 class="iconfont"
15
               >&#xe74a;</span>
15
               >&#xe74a;</span>
16
             </li>
16
             </li>
17
+
17
             <div class="popover-demo-content">
18
             <div class="popover-demo-content">
18
               <ul>
19
               <ul>
19
                 <li
20
                 <li
49
             {{ selected_date_str }}
50
             {{ selected_date_str }}
50
             <span class="iconfont">&#xe74a;</span>
51
             <span class="iconfont">&#xe74a;</span>
51
           </li>
52
           </li>
53
+
54
+          <li @click="mypatient()">
55
+            我的病人
56
+            <span class="iconfont">&#xe74a;</span>
57
+          </li>
52
         </ul>
58
         </ul>
53
       </div>
59
       </div>
60
+
54
       <div class="stateBox">
61
       <div class="stateBox">
55
         <div v-for="(item, index) in filtedScheduals" :key="index">
62
         <div v-for="(item, index) in filtedScheduals" :key="index">
56
           <h2 class="title">{{ item.zone_name }}</h2>
63
           <h2 class="title">{{ item.zone_name }}</h2>
104
   data() {
111
   data() {
105
     return {
112
     return {
106
       loading: false,
113
       loading: false,
107
-
114
+      user_id: 0,
108
       networkStates: true,
115
       networkStates: true,
109
       timer: null,
116
       timer: null,
110
-      selected_date: this.$store.getters.app.dialysis_area.schedule_date, //new Date(),
117
+      ismypatient: false,
118
+      selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
111
       schedual_types: [
119
       schedual_types: [
112
         { value: 0, text: "全部班", select: true },
120
         { value: 0, text: "全部班", select: true },
113
         { value: 1, text: "上午", select: false },
121
         { value: 1, text: "上午", select: false },
170
         }
178
         }
171
         return schedules;
179
         return schedules;
172
       }
180
       }
181
+      if (this.ismypatient) {
182
+        var schedules = [];
183
+        for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
184
+          const scheduleInfo = this.dialysis_scheduals[o_i];
185
+          var originSchedules = scheduleInfo.scheduals;
186
+          if (originSchedules.length == 0) {
187
+            continue;
188
+          }
189
+          var filtedSchedules = [];
190
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
191
+            const schedule = originSchedules[s_i];
192
+            if (schedule.dialysis_order.start_nurse == this.user_id) {
193
+              filtedSchedules.push(schedule);
194
+              // break;
195
+            }
196
+          }
197
+          if (filtedSchedules.length > 0) {
198
+            schedules.push({
199
+              zone_name: scheduleInfo.zone_name,
200
+              scheduals: filtedSchedules
201
+            });
202
+          }
203
+        }
204
+        return schedules;
205
+      }
173
 
206
 
174
       var zone_selected = this.zone_selected;
207
       var zone_selected = this.zone_selected;
175
       var timetype_selected = this.schedual_type_selected;
208
       var timetype_selected = this.schedual_type_selected;
188
         var filtedSchedules = [];
221
         var filtedSchedules = [];
189
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
222
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
190
           const schedule = originSchedules[s_i];
223
           const schedule = originSchedules[s_i];
191
-          if (
192
-            zone_name.length == 0 ||
193
-            (zone_name.length > 0 &&
194
-              zone_name == schedule.device_number.zone.name)
195
-          ) {
224
+          if (this.ismypatient) {
225
+            if (schedule.dialysis_order.creator == this.user_id) {
226
+              filtedSchedules.push(schedule);
227
+            }
228
+          } else {
196
             if (
229
             if (
197
-              timetype_selected == 0 ||
198
-              schedule.schedule_type == timetype_selected
230
+              zone_name.length == 0 ||
231
+              (zone_name.length > 0 &&
232
+                zone_name == schedule.device_number.zone.name)
199
             ) {
233
             ) {
200
-              filtedSchedules.push(schedule);
234
+              if (
235
+                timetype_selected == 0 ||
236
+                schedule.schedule_type == timetype_selected
237
+              ) {
238
+                filtedSchedules.push(schedule);
239
+              }
201
             }
240
             }
202
           }
241
           }
203
         }
242
         }
208
           });
247
           });
209
         }
248
         }
210
       }
249
       }
250
+      this.ismypatient = false;
211
       return schedules;
251
       return schedules;
212
     }
252
     }
213
   },
253
   },
254
+
214
   created() {
255
   created() {
215
-    this.requestDialysisScheduals();
256
+    this.user_id = this.$store.getters.user.user.id;
257
+
258
+    var storedata = this.$store.getters.scheduals;
259
+    var scheduals = storedata.scheduals;
260
+    if (Object.keys(storedata).length > 0) {
261
+      var zoneMap = {};
262
+      var schedualMap = {};
263
+      for (let index = 0; index < scheduals.length; index++) {
264
+        const schedual = scheduals[index];
265
+        if (schedual.dialysis_order == null) {
266
+          continue;
267
+        }
268
+        if (schedualMap[schedual.device_number.zone.name] == null) {
269
+          schedualMap[schedual.device_number.zone.name] = [];
270
+        }
271
+        schedualMap[schedual.device_number.zone.name].push(schedual);
272
+        if (zoneMap[schedual.device_number.zone.name] == null) {
273
+          zoneMap[schedual.device_number.zone.name] =
274
+            schedual.device_number.zone;
275
+        }
276
+      }
277
+
278
+      var zones = [];
279
+      zones.push({ value: 0, text: "全部分区" });
280
+      for (var zoneName in zoneMap) {
281
+        zones.push({ value: zoneMap[zoneName].id, text: zoneName });
282
+      }
283
+
284
+      zones = zones.sort(function(a, b) {
285
+        return a.value > b.value;
286
+      });
287
+      this.zones = zones;
288
+
289
+      var dialysis_scheduals = [];
290
+      for (let index = 0; index < zones.length; index++) {
291
+        const zone = zones[index];
292
+        var scheduals = schedualMap[zone.text];
293
+        if (scheduals == null) {
294
+          continue;
295
+        }
296
+        dialysis_scheduals.push({
297
+          zone_name: zone.text,
298
+          scheduals: scheduals
299
+        });
300
+      }
301
+      this.dialysis_scheduals = dialysis_scheduals;
302
+    } else {
303
+      this.requestDialysisScheduals();
304
+    }
216
   },
305
   },
217
   mounted() {
306
   mounted() {
218
     this.timer = window.setInterval(() => {
307
     this.timer = window.setInterval(() => {
224
     this.timer = null;
313
     this.timer = null;
225
   },
314
   },
226
   methods: {
315
   methods: {
316
+    mypatient() {
317
+      this.search_keyword = "";
318
+      this.zone_selected = 0;
319
+      this.schedual_type_selected = 0;
320
+      this.ismypatient = true;
321
+    },
227
     reloads: function() {
322
     reloads: function() {
228
       this.reload();
323
       this.reload();
229
     },
324
     },
230
     handletimeType: function(index) {
325
     handletimeType: function(index) {
326
+      this.ismypatient = false;
231
       this.sch_type_options_visible = false;
327
       this.sch_type_options_visible = false;
232
       this.schedual_type_selected = index;
328
       this.schedual_type_selected = index;
233
       this.$emit("clear_search_keyword");
329
       this.$emit("clear_search_keyword");
238
       });
334
       });
239
     },
335
     },
240
     handleZoneChange: function(index) {
336
     handleZoneChange: function(index) {
337
+      this.ismypatient = false;
241
       this.zone_options_visible = false;
338
       this.zone_options_visible = false;
242
       this.zone_selected = index;
339
       this.zone_selected = index;
243
       this.$emit("clear_search_keyword");
340
       this.$emit("clear_search_keyword");
248
       });
345
       });
249
     },
346
     },
250
     handleScheduleDateChange: function(date) {
347
     handleScheduleDateChange: function(date) {
348
+      this.ismypatient = false;
251
       this.zone_selected = 0;
349
       this.zone_selected = 0;
252
       this.schedual_type_selected = 0;
350
       this.schedual_type_selected = 0;
253
-
254
       this.$emit("clear_search_keyword");
351
       this.$emit("clear_search_keyword");
255
       this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
352
       this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
256
         zone: this.zone_selected,
353
         zone: this.zone_selected,
262
 
359
 
263
     requestDialysisScheduals() {
360
     requestDialysisScheduals() {
264
       // this.$toast.loading({forbidClick: true, duration: 0})
361
       // this.$toast.loading({forbidClick: true, duration: 0})
265
-      this.loading = true;
362
+      // this.loading = true;
266
       var type = 0;
363
       var type = 0;
267
       getDialysisScheduals({ type: type, date: this.selected_date_str })
364
       getDialysisScheduals({ type: type, date: this.selected_date_str })
268
         .then(rs => {
365
         .then(rs => {
273
 
370
 
274
             // console.log(resp.data)
371
             // console.log(resp.data)
275
             var scheduals = resp.data.scheduals;
372
             var scheduals = resp.data.scheduals;
373
+            this.$store.dispatch("SetScheduals", { scheduals: scheduals });
276
             var zoneMap = {};
374
             var zoneMap = {};
277
             var schedualMap = {};
375
             var schedualMap = {};
278
             for (let index = 0; index < scheduals.length; index++) {
376
             for (let index = 0; index < scheduals.length; index++) {
325
         .catch(error => {
423
         .catch(error => {
326
           this.loading = false;
424
           this.loading = false;
327
 
425
 
328
-          //超时之后在这里捕抓错误信息.
426
+          // 超时之后在这里捕抓错误信息.
329
           if (error.response) {
427
           if (error.response) {
330
             this.networkStates = false;
428
             this.networkStates = false;
331
 
429
 
346
     openPicker() {
444
     openPicker() {
347
       this.$refs.picker.open();
445
       this.$refs.picker.open();
348
     }
446
     }
447
+    // getMyPatient () {
448
+    //   console.log('这是啥', this.zone_options_visible)
449
+    //   console.log('日期', this.selected_date)
450
+    // }
349
   }
451
   }
350
 };
452
 };
351
 </script>
453
 </script>
370
     @include align-items-center;
472
     @include align-items-center;
371
     @include text-align;
473
     @include text-align;
372
     @include justify-content-between;
474
     @include justify-content-between;
373
-    width: 60%;
475
+    width: 80%;
374
     margin: 0 auto;
476
     margin: 0 auto;
375
     li {
477
     li {
376
       font-size: 0.32rem;
478
       font-size: 0.32rem;

+ 340 - 1
src/pages/main/PatientBox.vue View File

55
 </template>
55
 </template>
56
 
56
 
57
 <script>
57
 <script>
58
+<<<<<<< .mine
58
 import { parseTime } from "@/utils";
59
 import { parseTime } from "@/utils";
59
 import { jsGetAge } from "@/utils/tools";
60
 import { jsGetAge } from "@/utils/tools";
60
 import { setDialysisOrWaitSelectedConfig } from "@/utils/data_config";
61
 import { setDialysisOrWaitSelectedConfig } from "@/utils/data_config";
160
       }
161
       }
161
     },
162
     },
162
 
163
 
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+=======
183
+import {parseTime} from '@/utils'
184
+import {jsGetAge} from '@/utils/tools'
185
+import {
186
+  setDialysisOrWaitSelectedConfig
187
+} from '@/utils/data_config'
188
+export default {
189
+  name: 'PatientBox',
190
+  props: {
191
+    patients: Array
192
+  },
193
+  data () {
194
+    return {}
195
+  },
196
+  created () {
197
+    console.log('11111')
198
+    console.log(this.patients)
199
+  },
200
+  methods: {
201
+    getUnReadNum: function (schedual) {
202
+      if (schedual.doctor_advice != null) {
203
+        let doctorAdvice = []
204
+        for (let i = 0; i < schedual.doctor_advice.length; i++) {
205
+          if (schedual.doctor_advice[i].execution_state == 2) {
206
+            doctorAdvice.push(schedual.doctor_advice[i])
207
+          }
208
+        }
209
+        const sorted = this.groupBy(doctorAdvice, function (item) {
210
+          return [item.groupno]
211
+        })
212
+        return sorted.length
213
+      }
214
+    },
215
+    getStatus: function (schedual) {
216
+      var isShowDot = false
217
+      if (schedual.doctor_advice != null) {
218
+        for (let i = 0; i < schedual.doctor_advice.length; i++) {
219
+          if (schedual.doctor_advice[i].execution_state == 2) {
220
+            isShowDot = true
221
+          }
222
+        }
223
+        return isShowDot
224
+      } else {
225
+        return false
226
+      }
227
+    },
228
+    stateColor: function (schedual) {
229
+      var state = this.computeState(schedual)
230
+      if (state == 1) {
231
+        return 'blue'
232
+      } else if (state == 2) {
233
+        return 'gray'
234
+      } else if (state == 3) {
235
+        return 'red'
236
+      } else if (state == 5) {
237
+        return 'green1'
238
+      } else if (state == 6) {
239
+        return 'green2'
240
+      } else {
241
+        return 'blue'
242
+      }
243
+    },
244
+    functionColor: function (schedual) {
245
+      var state = this.computeState(schedual)
246
+      if (state == 1 || state == 3) {
247
+        return 'blue'
248
+      } else if (state == 2) {
249
+        return 'gray'
250
+      } else {
251
+        return 'blue'
252
+      }
253
+    },
254
+    borderColor: function (schedual) {
255
+      var yc = this.isAbnormal(schedual)
256
+      if (yc == true) {
257
+        return 'red'
258
+      } else {
259
+        return 'gray'
260
+      }
261
+    },
262
+    stateText: function (schedual) {
263
+      var state = this.computeState(schedual)
264
+      if (state == 1) {
265
+        return '已上机'
266
+      } else if (state == 2) {
267
+        return '已下机'
268
+      } else if (state == 3) {
269
+        return '监测中'
270
+      } else if (state == 5) {
271
+        return '待称重'
272
+      } else if (state == 6) {
273
+        return '待开处方'
274
+      } else {
275
+        // return schedual.patient.gender == 1 ? "男" : "女"
276
+        return '未上机'
277
+      }
278
+    },
279
+    computeState: function (schedual) {
280
+      if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weight_before == 0) {
281
+        // 未签到称重
282
+        return 5
283
+      }
284
+      if (schedual.prescription == null || schedual.prescription.creater == 0) {
285
+        // 未确认处方
286
+        return 6
287
+      }
288
+
289
+      if (schedual.dialysis_order == null) {
290
+        // 未上机
291
+        return 4
292
+      } else if (schedual.dialysis_order.stage == 2) {
293
+        // 已下机
294
+        return 2
295
+      } else if (
296
+        schedual.dialysis_order.stage == 1 &&
297
+          schedual.monitoring_records != null &&
298
+          schedual.monitoring_records.length > 1
299
+      ) {
300
+        // 监测中
301
+        return 3
302
+      } else {
303
+        return 1
304
+      }
305
+    },
306
+>>>>>>> .theirs
307
+
308
+<<<<<<< .mine
163
     orderState: function(schedual) {
309
     orderState: function(schedual) {
164
       if (schedual.dialysis_order == null) {
310
       if (schedual.dialysis_order == null) {
165
         // 未上机
311
         // 未上机
208
       } else {
354
       } else {
209
         return schedual.patient.age;
355
         return schedual.patient.age;
210
       }
356
       }
357
+=======
358
+    orderState: function (schedual) {
359
+      if (schedual.dialysis_order == null) {
360
+        // 未上机
361
+        return 4
362
+      } else if (schedual.dialysis_order.stage == 2) {
363
+        // 已下机
364
+        return 2
365
+      } else if (
366
+        schedual.dialysis_order.stage == 1 &&
367
+          schedual.monitoring_records != null &&
368
+          schedual.monitoring_records.length > 1
369
+      ) {
370
+        // 监测中
371
+        return 3
372
+      } else {
373
+        return 1
374
+      }
375
+    },
376
+    isAbnormal: function (schedual) {
377
+      return false // schedual.yc;
378
+    },
379
+    timeTypeText: function (schedual) {
380
+      if (schedual.schedule_type == 1) {
381
+        return '上午'
382
+      } else if (schedual.schedule_type == 2) {
383
+        return '下午'
384
+      } else {
385
+        return '晚上'
386
+      }
387
+    },
388
+    genderText: function (schedual) {
389
+      if (schedual.patient.gender == 0) {
390
+        return '未知'
391
+      } else if (schedual.patient.gender == 1) {
392
+        return '男'
393
+      } else {
394
+        return '女'
395
+      }
396
+    },
397
+    age: function (schedual) {
398
+      if (schedual.patient.age == 0) {
399
+        return jsGetAge(parseTime(schedual.patient.birthday, '{y}-{m}-{d}'), '-')
400
+      } else {
401
+        return schedual.patient.age
402
+      }
403
+
404
+
405
+
406
+>>>>>>> .theirs
211
 
407
 
408
+<<<<<<< .mine
212
       // var now = new Date();
409
       // var now = new Date();
213
       // var nowYear = parseTime(now, "{y}");
410
       // var nowYear = parseTime(now, "{y}");
214
       // var birthdayYear = parseTime(schedual.patient.birthday, "{y}");
411
       // var birthdayYear = parseTime(schedual.patient.birthday, "{y}");
233
       } else {
430
       } else {
234
         setDialysisOrWaitSelectedConfig(0);
431
         setDialysisOrWaitSelectedConfig(0);
235
       }
432
       }
433
+=======
434
+      // var now = new Date();
435
+      // var nowYear = parseTime(now, "{y}");
436
+      // var birthdayYear = parseTime(schedual.patient.birthday, "{y}");
437
+      // // console.log(nowYear)
438
+      // // console.log(birthdayYear)
439
+      // return nowYear - birthdayYear;
440
+    },
441
+    groupBy (array, f) {
442
+      const groups = {}
443
+      array.forEach(function (o) {
444
+        const group = JSON.stringify(f(o))
445
+        groups[group] = groups[group] || []
446
+        groups[group].push(o)
447
+      })
448
+      return Object.keys(groups).map(function (group) {
449
+        return groups[group]
450
+      })
451
+    },
452
+    detailAction: function (schedual) {
453
+      if (schedual.dialysis_order != null) {
454
+        setDialysisOrWaitSelectedConfig(1)
455
+      } else {
456
+        setDialysisOrWaitSelectedConfig(0)
457
+      }
458
+>>>>>>> .theirs
236
 
459
 
460
+<<<<<<< .mine
237
       var patient_id = schedual.patient_id;
461
       var patient_id = schedual.patient_id;
238
       var date = schedual.schedule_date;
462
       var date = schedual.schedule_date;
239
       this.$router.push({
463
       this.$router.push({
242
           patient_id: patient_id,
466
           patient_id: patient_id,
243
           date: date,
467
           date: date,
244
           patient_name: schedual.patient.name
468
           patient_name: schedual.patient.name
469
+=======
470
+      var patient_id = schedual.patient_id
471
+      var date = schedual.schedule_date
472
+      this.$router.push({
473
+        path: '/details',
474
+        query: {
475
+          patient_id: patient_id,
476
+          date: date,
477
+          patient_name: schedual.patient.name
478
+>>>>>>> .theirs
245
         }
479
         }
480
+<<<<<<< .mine
246
       });
481
       });
482
+=======
483
+      })
484
+>>>>>>> .theirs
247
     }
485
     }
248
   }
486
   }
487
+<<<<<<< .mine
249
 };
488
 };
489
+=======
490
+}
491
+>>>>>>> .theirs
250
 </script>
492
 </script>
251
 
493
 
252
 <style style="stylesheet/scss" lang="scss" scoped>
494
 <style style="stylesheet/scss" lang="scss" scoped>
376
   font-size: 0.8em;
618
   font-size: 0.8em;
377
   border-radius: 20px;
619
   border-radius: 20px;
378
   color: #fff;
620
   color: #fff;
621
+<<<<<<< .mine
379
   background: #f56c6c;
622
   background: #f56c6c;
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+=======
671
+  width: 1.35rem;
672
+  height: 0.56rem;
673
+  line-height: 0.56rem;
674
+  border-radius: 4px;
675
+  margin: 0 auto;
676
+  font-size: 0.32rem;
677
+  }
678
+  .blue {
679
+  background: $main-color;
680
+  }
681
+  .red {
682
+  background: #f18f68;
683
+  }
684
+  .green {
685
+  background: #5bd18b;
686
+  }
687
+  .green1 {
688
+        background: #e6a23c;
689
+      }
690
+      .green2 {
691
+        background: #7930c3;
692
+      }
693
+  .gray {
694
+  background: #a8b3ba;
695
+  }
696
+  .lightGray {
697
+  background: #c6cdd2;
698
+  }
699
+  .time {
700
+  font-size: 0.26rem;
701
+  color: #34495e;
702
+  }
703
+  }
704
+  }
705
+  }
706
+  .red {
707
+  border: 1px #ff7979 solid;
708
+  }
709
+  .redpoint{
710
+  display:inline-block;
711
+  height:20px;
712
+  width:20px;
713
+  line-height:18px;
714
+  text-align:center;
715
+  font-size:0.8em;
716
+  border-radius:20px;
717
+  color:#fff;
718
+  background:#F56C6C;
719
+>>>>>>> .theirs
380
   position: absolute;
720
   position: absolute;
381
   top: -8px;
721
   top: -8px;
382
   left: 0.7rem;
722
   left: 0.7rem;
394
   }
734
   }
395
 }
735
 }
396
 </style>
736
 </style>
397
-

+ 20 - 0
src/pages/main/PrintIndex.vue View File

18
         <!--&lt;!&ndash;<el-button size="mini" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>&ndash;&gt;-->
18
         <!--&lt;!&ndash;<el-button size="mini" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>&ndash;&gt;-->
19
         <!--</div>-->
19
         <!--</div>-->
20
       </div>
20
       </div>
21
+<<<<<<< .mine
21
       <DialysisPrintOrderOne
22
       <DialysisPrintOrderOne
22
         style="margin-top:60px;"
23
         style="margin-top:60px;"
23
         v-bind:childResponse="childResponse"
24
         v-bind:childResponse="childResponse"
33
         v-bind:childResponse="childResponse"
34
         v-bind:childResponse="childResponse"
34
         v-if="org_template_info.template_id ==5"
35
         v-if="org_template_info.template_id ==5"
35
       ></DialysisPrintOrderFive>
36
       ></DialysisPrintOrderFive>
37
+=======
38
+      <DialysisPrintOrderOne style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id ==1"> </DialysisPrintOrderOne>
39
+      <DialysisPrintOrderTwo style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id ==2||org_template_info.template_id ==0"></DialysisPrintOrderTwo>
40
+      <DialysisPrintOrderFive style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id ==5"></DialysisPrintOrderFive>
41
+      <!--<DialysisPrintOrderSix style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id ==6"></DialysisPrintOrderSix>-->
42
+      <DialysisPrintOrderSix style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id ==6"></DialysisPrintOrderSix>
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+>>>>>>> .theirs
36
     </div>
54
     </div>
37
     <side-bar :active_index="0" v-if="isShow == true"></side-bar>
55
     <side-bar :active_index="0" v-if="isShow == true"></side-bar>
38
   </div>
56
   </div>
49
 import DialysisPrintOrderOne from "./template/DialysisPrintOrderOne";
67
 import DialysisPrintOrderOne from "./template/DialysisPrintOrderOne";
50
 import DialysisPrintOrderTwo from "./template/DialysisPrintOrderTwo";
68
 import DialysisPrintOrderTwo from "./template/DialysisPrintOrderTwo";
51
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
69
 import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
70
+import DialysisPrintOrderSix from './template/DialysisPrintOrderSix'
52
 
71
 
53
 export default {
72
 export default {
54
   name: "PrintIndex",
73
   name: "PrintIndex",
55
   components: {
74
   components: {
75
+    DialysisPrintOrderSix,
56
     DialysisPrintOrderOne,
76
     DialysisPrintOrderOne,
57
     DialysisPrintOrderTwo,
77
     DialysisPrintOrderTwo,
58
     DialysisPrintOrderFive,
78
     DialysisPrintOrderFive,

+ 94 - 2
src/pages/main/RecordPage.vue View File

97
   </div>
97
   </div>
98
 </template>
98
 </template>
99
 
99
 
100
-
101
 <script>
100
 <script>
101
+<<<<<<< .mine
102
 import DialysisArea from "./DialysisArea";
102
 import DialysisArea from "./DialysisArea";
103
 import WaitingArea from "./WaitingArea";
103
 import WaitingArea from "./WaitingArea";
104
 import { Popover } from "vux";
104
 import { Popover } from "vux";
105
 import { getDialysisScheduals, getWaitingScheduals } from "@/api/dialysis";
105
 import { getDialysisScheduals, getWaitingScheduals } from "@/api/dialysis";
106
 import { parseTime } from "@/utils/index";
106
 import { parseTime } from "@/utils/index";
107
 import { getDialysisOrWaitSelectedConfig } from "@/utils/data_config";
107
 import { getDialysisOrWaitSelectedConfig } from "@/utils/data_config";
108
+=======
109
+import DialysisArea from './DialysisArea'
110
+import WaitingArea from './WaitingArea'
111
+import {Popover} from 'vux'
112
+import {getDialysisScheduals, getWaitingScheduals} from '@/api/dialysis'
113
+import {parseTime} from '@/utils/index'
114
+import {getDialysisOrWaitSelectedConfig} from '@/utils/data_config'
115
+>>>>>>> .theirs
108
 
116
 
117
+<<<<<<< .mine
109
 export default {
118
 export default {
110
   name: "RecordPage",
119
   name: "RecordPage",
111
   props: {
120
   props: {
112
     un_read_wait_num: {
121
     un_read_wait_num: {
113
       type: Number
122
       type: Number
123
+=======
124
+export default {
125
+  name: 'RecordPage',
126
+  props: {
127
+    un_read_wait_num: {
128
+      type: Number
129
+>>>>>>> .theirs
114
     },
130
     },
131
+<<<<<<< .mine
115
     un_read_dialysis_num: {
132
     un_read_dialysis_num: {
116
       type: Number
133
       type: Number
117
     }
134
     }
134
     // Group,
151
     // Group,
135
     // Cell
152
     // Cell
136
   },
153
   },
154
+=======
155
+    un_read_dialysis_num: {
156
+      type: Number
157
+    }
158
+  },
159
+  data () {
160
+    return {
161
+      index: 1,
162
+      search_input: '',
163
+      search_keyword: '',
164
+      scheduals: [],
165
+      advice_groups: [],
166
+      unReadWaitNum: 0,
167
+      unReadDialysisNum: 0
168
+
169
+
170
+
171
+
137
 
172
 
173
+
174
+
175
+
176
+
177
+>>>>>>> .theirs
178
+
179
+<<<<<<< .mine
138
   methods: {
180
   methods: {
139
     ClickTab: function(tabIndex) {
181
     ClickTab: function(tabIndex) {
140
       this.index = tabIndex;
182
       this.index = tabIndex;
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+=======
194
+    }
195
+  },
196
+  components: {
197
+    DialysisArea,
198
+    WaitingArea,
199
+    Popover
200
+    // Group,
201
+    // Cell
202
+  },
203
+
204
+  methods: {
205
+    ClickTab: function (tabIndex) {
206
+      this.index = tabIndex
207
+>>>>>>> .theirs
141
     },
208
     },
209
+<<<<<<< .mine
142
     searchWithKeyword: function() {
210
     searchWithKeyword: function() {
143
       this.$refs.search_field.blur();
211
       this.$refs.search_field.blur();
144
       this.search_keyword = this.search_input;
212
       this.search_keyword = this.search_input;
213
+=======
214
+    searchWithKeyword: function () {
215
+      this.$refs.search_field.blur()
216
+      this.search_keyword = this.search_input
217
+>>>>>>> .theirs
145
     },
218
     },
219
+<<<<<<< .mine
146
     clearKeyword: function() {
220
     clearKeyword: function() {
147
       this.search_input = "";
221
       this.search_input = "";
148
       this.search_keyword = "";
222
       this.search_keyword = "";
223
+=======
224
+    clearKeyword: function () {
225
+      this.search_input = ''
226
+      this.search_keyword = ''
227
+>>>>>>> .theirs
149
     }
228
     }
229
+<<<<<<< .mine
150
   },
230
   },
151
   created() {
231
   created() {
152
     var index = getDialysisOrWaitSelectedConfig();
232
     var index = getDialysisOrWaitSelectedConfig();
154
     if (index != null) {
234
     if (index != null) {
155
       this.index = index;
235
       this.index = index;
156
     }
236
     }
237
+=======
238
+  },
239
+  created () {
240
+    var index = getDialysisOrWaitSelectedConfig()
241
+    console.log(index)
242
+    if (index != null) {
243
+      this.index = index
244
+    }
245
+>>>>>>> .theirs
157
   }
246
   }
247
+<<<<<<< .mine
158
 };
248
 };
249
+=======
250
+}
251
+>>>>>>> .theirs
159
 </script>
252
 </script>
160
 
253
 
161
 <style style="stylesheet/scss" lang="scss" scoped>
254
 <style style="stylesheet/scss" lang="scss" scoped>
276
   }
369
   }
277
 }
370
 }
278
 </style>
371
 </style>
279
-

+ 253 - 118
src/pages/main/WaitingArea.vue View File

22
                 <li
22
                 <li
23
                   v-for="(option, index) in zone_options"
23
                   v-for="(option, index) in zone_options"
24
                   :key="index"
24
                   :key="index"
25
-                  @click="handleZoneChange(index)"
25
+                  @click="handleZoneChange(index,option)"
26
                   :class="zone_selected == index ? 'tick' : ''"
26
                   :class="zone_selected == index ? 'tick' : ''"
27
                 >{{ option.text }}</li>
27
                 >{{ option.text }}</li>
28
               </ul>
28
               </ul>
103
       menuList: [
103
       menuList: [
104
         { value: "1", label: "全部", count: 0 },
104
         { value: "1", label: "全部", count: 0 },
105
         { value: "3", label: "待开处方", count: 0 },
105
         { value: "3", label: "待开处方", count: 0 },
106
-        { value: "2", label: "透前称量", count: 0 }
106
+        { value: "2", label: "透前称量", count: 0 }
107
       ],
107
       ],
108
 
108
 
109
       select_index: 0,
109
       select_index: 0,
110
       zone_selected: 0,
110
       zone_selected: 0,
111
       time_selected: 0,
111
       time_selected: 0,
112
+      cur_zone_selected: 0,
112
       networkStates: true,
113
       networkStates: true,
113
       scheduals: [],
114
       scheduals: [],
114
 
115
 
133
   },
134
   },
134
   computed: {
135
   computed: {
135
     filtedScheduals: function() {
136
     filtedScheduals: function() {
137
+
136
       var search_keyword = this.search_keyword;
138
       var search_keyword = this.search_keyword;
137
       if (this.search_keyword.length > 0) {
139
       if (this.search_keyword.length > 0) {
138
         var scheduals = [];
140
         var scheduals = [];
148
         return this.processScheduals(scheduals);
150
         return this.processScheduals(scheduals);
149
       }
151
       }
150
       //
152
       //
151
-      // if (this.zone_selected != 0) {
152
-      //   var zone_name = this.zone_options[this.zone_selected].text
153
-      //   for (let index = 0; index < this.zone_scheduals.length; index++) {
154
-      //     const zone_scheduals = this.zone_scheduals[index]
155
-      //     if (zone_scheduals.zone_name == zone_name) {
156
-      //       return [zone_scheduals]
157
-      //     }
158
-      //   }
159
-      // }
160
-
161
-      // if (this.time_selected != 0) {
162
-      //   var zone_name = this.zone_options[this.zone_selected].text
163
-      //   console.log(zone_name)
164
-      //   var schedules = [];
165
-      //   for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
166
-      //     const scheduleInfo = this.zone_scheduals[o_i];
167
-      //     var originSchedules = scheduleInfo.scheduals;
168
-      //     var filtedSchedules = [];
169
-      //     for (let s_i = 0; s_i < originSchedules.length; s_i++) {
170
-      //       const schedule = originSchedules[s_i];
171
-      //       if(this.zone_selected == 0){
172
-      //         if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
173
-      //           filtedSchedules.push(schedule);
174
-      //         }
175
-      //
176
-      //       }else{
177
-      //         console.log(zone_name)
178
-      //         console.log(schedule.device_number.zone.name)
179
-      //
180
-      //         if ((zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
181
-      //           if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
182
-      //             filtedSchedules.push(schedule);
183
-      //           }
184
-      //         }
185
-      //       }
186
-      //     }
187
-      //     if (filtedSchedules.length > 0) {
188
-      //       schedules.push({
189
-      //         zone_name: scheduleInfo.zone_name,
190
-      //         scheduals: filtedSchedules
191
-      //       });
192
-      //     }
193
-      //   }
194
-      //   return schedules
195
-      // }
153
+      if (this.zone_selected != 0) {
154
+
155
+        // var zone_name = this.zone_options[this.zone_selected].text
156
+        // for (let index = 0; index < this.zone_scheduals.length; index++) {
157
+        //   const zone_scheduals = this.zone_scheduals[index]
158
+        //   if (zone_scheduals.zone_name == zone_name) {
159
+        //     return [zone_scheduals]
160
+        //   }
161
+        // }
162
+        var zone_name = this.zone_options[this.zone_selected].text
163
+        var schedules = [];
164
+        var filtedSchedules = [];
165
+        for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
166
+          const scheduleInfo = this.zone_scheduals[o_i];
167
+          var originSchedules = scheduleInfo.scheduals;
168
+          
169
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
170
+            const schedule = originSchedules[s_i];
171
+            if(this.zone_selected == 0){
172
+              if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
173
+                filtedSchedules.push(schedule);
174
+              }
175
+            }else{
176
+              if ((zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
177
+                if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
178
+                  filtedSchedules.push(schedule);
179
+                }
180
+              }
181
+            }
182
+          }
183
+          // if (filtedSchedules.length > 0) {
184
+          //   schedules.push({
185
+          //     zone_name: scheduleInfo.zone_name,
186
+          //     scheduals: filtedSchedules
187
+          //   });
188
+          // }
189
+        }
190
+        console.log(filtedSchedules)
191
+        return this.processScheduals(filtedSchedules);
192
+      }
193
+
194
+      if (this.time_selected != 0) {
195
+        var zone_name = this.zone_options[this.zone_selected].text
196
+        var schedules = [];
197
+        var filtedSchedules = [];
198
+        for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
199
+          const scheduleInfo = this.zone_scheduals[o_i];
200
+          var originSchedules = scheduleInfo.scheduals;
201
+          
202
+          for (let s_i = 0; s_i < originSchedules.length; s_i++) {
203
+            const schedule = originSchedules[s_i];
204
+            if(this.zone_selected == 0){
205
+              if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
206
+                filtedSchedules.push(schedule);
207
+              }
208
+
209
+            }else{
210
+              if ((zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
211
+                if (this.time_selected == 0 || schedule.schedule_type == this.time_selected) {
212
+                  filtedSchedules.push(schedule);
213
+                }
214
+              }
215
+            }
216
+          }
217
+          // if (filtedSchedules.length > 0) {
218
+          //   schedules.push({
219
+          //     zone_name: scheduleInfo.zone_name,
220
+          //     scheduals: filtedSchedules
221
+          //   });
222
+          // }
223
+        }
224
+        console.log(filtedSchedules)
225
+        return this.processScheduals(filtedSchedules);
226
+      }
196
 
227
 
197
       var zone_selected = this.zone_selected;
228
       var zone_selected = this.zone_selected;
198
       var timetype_selected = this.time_selected;
229
       var timetype_selected = this.time_selected;
230
+      var assessment_before_dislysis_count = 0;
231
+      var prescription_count = 0;
199
       if (zone_selected != 0 || timetype_selected != 0) {
232
       if (zone_selected != 0 || timetype_selected != 0) {
200
-        var zone_name =
201
-          zone_selected == 0 ? "" : this.zone_options[zone_selected].text;
233
+        var zone_name = zone_selected == 0 ? "" : this.zone_options[zone_selected].text;
202
         var schedules = [];
234
         var schedules = [];
235
+        var filtedSchedules = [];
203
         for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
236
         for (let o_i = 0; o_i < this.zone_scheduals.length; o_i++) {
204
           const scheduleInfo = this.zone_scheduals[o_i];
237
           const scheduleInfo = this.zone_scheduals[o_i];
205
           var originSchedules = scheduleInfo.scheduals;
238
           var originSchedules = scheduleInfo.scheduals;
206
-          var filtedSchedules = [];
239
+          
207
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
240
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
208
             const schedule = originSchedules[s_i];
241
             const schedule = originSchedules[s_i];
209
-            if (
210
-              zone_name.length == 0 ||
211
-              (zone_name.length > 0 &&
212
-                zone_name == schedule.device_number.zone.name)
213
-            ) {
214
-              if (
215
-                timetype_selected == 0 ||
216
-                schedule.schedule_type == timetype_selected
217
-              ) {
242
+            if ( zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
243
+              if ( timetype_selected == 0 ||  schedule.schedule_type == timetype_selected ) {
218
                 filtedSchedules.push(schedule);
244
                 filtedSchedules.push(schedule);
219
               }
245
               }
220
             }
246
             }
221
           }
247
           }
222
-          if (filtedSchedules.length > 0) {
223
-            schedules.push({
224
-              zone_name: scheduleInfo.zone_name,
225
-              scheduals: filtedSchedules
226
-            });
248
+          // if (filtedSchedules.length > 0) {
249
+          //   schedules.push({
250
+          //     zone_name: scheduleInfo.zone_name,
251
+          //     scheduals: filtedSchedules
252
+          //   });
253
+          // }
254
+        }
255
+
256
+        console.log(filtedSchedules)
257
+        return this.processScheduals(filtedSchedules);
258
+
259
+        if (this.select_index == 2) {
260
+          var scheduals = [];
261
+          for (let index = 0; index < this.scheduals.length; index++) {
262
+            const schedual = this.scheduals[index];
263
+            if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weight_before == 0) {
264
+              if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
265
+                continue
266
+              }
267
+              if(timetype_selected > 0 && schedual.schedule_type != timetype_selected) {
268
+                continue
269
+              }
270
+              scheduals.push(schedual);
271
+            }
272
+          }
273
+          return this.processScheduals(scheduals);
274
+          // return scheduals;
275
+        } else if (this.select_index == 1) {
276
+          var scheduals = [];
277
+          for (let index = 0; index < this.scheduals.length; index++) {
278
+            const schedual = this.scheduals[index];
279
+            if (schedual.prescription == null || schedual.prescription.creater == 0) {
280
+              if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
281
+                continue
282
+              }
283
+              if(timetype_selected > 0 && schedual.schedule_type != timetype_selected) {
284
+                continue
285
+              }
286
+              scheduals.push(schedual);
287
+            }
227
           }
288
           }
289
+          // return scheduals;
290
+          return this.processScheduals(scheduals);
291
+        } else {
292
+          // return this.zone_scheduals;
293
+          var scheduals = [];
294
+          for (let index = 0; index < this.scheduals.length; index++) {
295
+            const schedual = this.scheduals[index];
296
+            if (schedual.dialysis_order == null) {
297
+              if(this.cur_zone_selected > 0 && schedual.device_number.zone.id != this.cur_zone_selected) {
298
+                continue
299
+              }
300
+              if(timetype_selected > 0 && schedual.schedule_type != timetype_selected) {
301
+                continue
302
+              }
303
+              scheduals.push(schedual);
304
+            }
305
+          }
306
+          // return scheduals;
307
+          return this.processScheduals(scheduals);
228
         }
308
         }
229
-        return schedules;
230
       }
309
       }
231
 
310
 
232
       if (this.select_index == 2) {
311
       if (this.select_index == 2) {
233
         var scheduals = [];
312
         var scheduals = [];
234
         for (let index = 0; index < this.scheduals.length; index++) {
313
         for (let index = 0; index < this.scheduals.length; index++) {
235
           const schedual = this.scheduals[index];
314
           const schedual = this.scheduals[index];
236
-          if (schedual.assessment_before_dislysis == null) {
315
+          if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weight_before == 0) {
237
             scheduals.push(schedual);
316
             scheduals.push(schedual);
238
           }
317
           }
239
         }
318
         }
243
         var scheduals = [];
322
         var scheduals = [];
244
         for (let index = 0; index < this.scheduals.length; index++) {
323
         for (let index = 0; index < this.scheduals.length; index++) {
245
           const schedual = this.scheduals[index];
324
           const schedual = this.scheduals[index];
246
-          if (
247
-            schedual.assessment_before_dislysis == null &&
248
-            schedual.prescription == null
249
-          ) {
325
+          if (schedual.prescription == null || schedual.prescription.creater == 0) {
250
             scheduals.push(schedual);
326
             scheduals.push(schedual);
251
           }
327
           }
252
         }
328
         }
253
         // return scheduals;
329
         // return scheduals;
254
         return this.processScheduals(scheduals);
330
         return this.processScheduals(scheduals);
255
       } else {
331
       } else {
256
-        return this.zone_scheduals;
332
+        // return this.zone_scheduals;
333
+        var scheduals = [];
334
+        for (let index = 0; index < this.scheduals.length; index++) {
335
+          const schedual = this.scheduals[index];
336
+          if (schedual.dialysis_order == null) {
337
+            scheduals.push(schedual);
338
+          }
339
+        }
340
+        // return scheduals;
341
+        return this.processScheduals(scheduals);
257
       }
342
       }
258
     }
343
     }
259
   },
344
   },
276
     if (type != null) {
361
     if (type != null) {
277
       this.select_index = parseInt(type);
362
       this.select_index = parseInt(type);
278
     }
363
     }
279
-    this.requestScheduals();
364
+   
365
+    var storedata = this.$store.getters.waitscheduals
366
+    var scheduals = storedata.waitscheduals
367
+    if (Object.keys(storedata).length > 0) {
368
+      var totalCount = scheduals.length;
369
+      var prescription_count = 0;
370
+      var assessment_before_dislysis_count = 0;
371
+      for (let index = 0; index < scheduals.length; index++) {
372
+        const schedual = scheduals[index];
373
+        if (schedual.assessment_before_dislysis == null) {
374
+          assessment_before_dislysis_count += 1;
375
+        }
376
+        if (schedual.prescription == null) {
377
+          prescription_count += 1;
378
+        }
379
+      }
380
+      this.menuList[2].count = assessment_before_dislysis_count;
381
+      this.menuList[1].count = prescription_count;
382
+      this.scheduals = scheduals;
383
+
384
+      this.zone_options = this.makeZones(scheduals);
385
+      this.zone_scheduals = this.processScheduals(scheduals);
386
+    } else {
387
+      this.requestScheduals();
388
+    }
280
   },
389
   },
281
   mounted() {
390
   mounted() {
282
     this.timer = window.setInterval(() => {
391
     this.timer = window.setInterval(() => {
286
   beforeDestroy() {
395
   beforeDestroy() {
287
     clearInterval(this.timer);
396
     clearInterval(this.timer);
288
     this.timer = null;
397
     this.timer = null;
289
-    // this.$once('hook:beforeDestroy', () => {
290
-    //   clearInterval(this.timer);
291
-    // })
398
+    this.$once('hook:beforeDestroy', () => {
399
+      clearInterval(this.timer);
400
+    })
292
   },
401
   },
293
   methods: {
402
   methods: {
403
+    processScheduals: function(scheduals) {
404
+      var zoneMap = {};
405
+      var schedualMap = {};
406
+      var assessment_before_dislysis_count = 0;
407
+      var prescription_count = 0;
408
+      for (let index = 0; index < scheduals.length; index++) {
409
+        const schedual = scheduals[index];
410
+        if (schedualMap[schedual.device_number.zone.id] == null) {
411
+          schedualMap[schedual.device_number.zone.id] = [];
412
+        }
413
+        if (this.select_index == 1) {
414
+            if(schedual.prescription == null || schedual.prescription.creater == 0){
415
+            schedualMap[schedual.device_number.zone.id].push(schedual);
416
+            prescription_count++
417
+          }
418
+        } else if (this.select_index == 2){
419
+            if(schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weight_before == 0){
420
+            schedualMap[schedual.device_number.zone.id].push(schedual);
421
+            assessment_before_dislysis_count++
422
+          }
423
+        } else {
424
+          if(schedual.dialysis_order == null){
425
+            schedualMap[schedual.device_number.zone.id].push(schedual);
426
+          }
427
+        }
428
+        if (zoneMap[schedual.device_number.zone.id] == null) {
429
+          zoneMap[schedual.device_number.zone.id] = schedual.device_number.zone;
430
+        }
431
+      }
432
+
433
+      if (this.select_index == 1) {
434
+        this.menuList[1].count = prescription_count;
435
+      }
436
+      if (this.select_index == 2) {
437
+        this.menuList[2].count = assessment_before_dislysis_count;
438
+      }
439
+
440
+
441
+      var zones = [];
442
+      // zones.push({ value: 0, text: "全部分区" })
443
+      for (var zoneId in zoneMap) {
444
+        zones.push({ id: zoneMap[zoneId].id, name: zoneMap[zoneId].name });
445
+      }
446
+
447
+      zones = zones.sort(function(a, b) {
448
+        return a.id > b.id;
449
+      });
450
+      // this.zones = zones
451
+
452
+      var zone_scheduals = [];
453
+      for (let index = 0; index < zones.length; index++) {
454
+        const zone = zones[index];
455
+        var scheduals = schedualMap[zone.id];
456
+        zone_scheduals.push({
457
+          zone_id: zone.id,
458
+          zone_name: zone.name,
459
+
460
+          scheduals: scheduals
461
+        });
462
+      }
463
+      // this.zone_scheduals = zone_scheduals;
464
+      return zone_scheduals;
465
+    },
294
     reloads: function() {
466
     reloads: function() {
295
       this.reload();
467
       this.reload();
296
     },
468
     },
307
       setSelectedTimesDataConfigList(this.time_selected);
479
       setSelectedTimesDataConfigList(this.time_selected);
308
       setWaitTypeSelectedConfig(tabIndex);
480
       setWaitTypeSelectedConfig(tabIndex);
309
     },
481
     },
310
-    handleZoneChange: function(index) {
482
+    handleZoneChange: function(index,zone) {
311
       this.zone_options_visible = false;
483
       this.zone_options_visible = false;
312
       this.zone_selected = index;
484
       this.zone_selected = index;
313
-      this.select_index = -1;
485
+      this.cur_zone_selected = zone.value
486
+      // this.select_index = -1;
314
       setSelectedAreaDataConfigList(index.toString());
487
       setSelectedAreaDataConfigList(index.toString());
315
     },
488
     },
316
     handleTimeChange: function(index) {
489
     handleTimeChange: function(index) {
317
       this.time_selected = index;
490
       this.time_selected = index;
318
-      this.select_index = -1;
491
+      // this.select_index = -1;
319
       this.time_options_visible = false;
492
       this.time_options_visible = false;
320
       setSelectedTimesDataConfigList(index.toString());
493
       setSelectedTimesDataConfigList(index.toString());
321
     },
494
     },
322
 
495
 
323
     requestScheduals() {
496
     requestScheduals() {
324
-      this.loading = true;
497
+      // this.loading = true;
325
       var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
498
       var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
326
       getWaitingScheduals({ date: date })
499
       getWaitingScheduals({ date: date })
327
         .then(rs => {
500
         .then(rs => {
330
             this.loading = false;
503
             this.loading = false;
331
 
504
 
332
             var scheduals = resp.data.scheduals;
505
             var scheduals = resp.data.scheduals;
506
+            this.$store.dispatch("SetWaitScheduals",{waitscheduals:scheduals})
333
             var totalCount = scheduals.length;
507
             var totalCount = scheduals.length;
334
             var prescription_count = 0;
508
             var prescription_count = 0;
335
             var assessment_before_dislysis_count = 0;
509
             var assessment_before_dislysis_count = 0;
393
       //   return a.value > b.value
567
       //   return a.value > b.value
394
       // })
568
       // })
395
       return zones;
569
       return zones;
396
-    },
397
-    processScheduals: function(scheduals) {
398
-      var zoneMap = {};
399
-      var schedualMap = {};
400
-      for (let index = 0; index < scheduals.length; index++) {
401
-        const schedual = scheduals[index];
402
-        if (schedualMap[schedual.device_number.zone.id] == null) {
403
-          schedualMap[schedual.device_number.zone.id] = [];
404
-        }
405
-        schedualMap[schedual.device_number.zone.id].push(schedual);
406
-        if (zoneMap[schedual.device_number.zone.id] == null) {
407
-          zoneMap[schedual.device_number.zone.id] = schedual.device_number.zone;
408
-        }
409
-      }
410
-
411
-      var zones = [];
412
-      // zones.push({ value: 0, text: "全部分区" })
413
-      for (var zoneId in zoneMap) {
414
-        zones.push({ id: zoneMap[zoneId].id, name: zoneMap[zoneId].name });
415
-      }
416
-
417
-      zones = zones.sort(function(a, b) {
418
-        return a.id > b.id;
419
-      });
420
-      // this.zones = zones
421
-
422
-      var zone_scheduals = [];
423
-      for (let index = 0; index < zones.length; index++) {
424
-        const zone = zones[index];
425
-        var scheduals = schedualMap[zone.id];
426
-        zone_scheduals.push({
427
-          zone_id: zone.id,
428
-          zone_name: zone.name,
429
-
430
-          scheduals: scheduals
431
-        });
432
-      }
433
-      // this.zone_scheduals = zone_scheduals;
434
-      return zone_scheduals;
435
     }
570
     }
436
   }
571
   }
437
 };
572
 };

+ 2 - 0
src/pages/main/dialog/AcceptsDialog.vue View File

22
             <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
22
             <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
23
             <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
23
             <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
24
             <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
24
             <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
25
+            <el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>
26
+
25
 
27
 
26
           </el-form-item>
28
           </el-form-item>
27
           <el-form-item label="病人食欲: " v-if="isShow('病人食欲')">
29
           <el-form-item label="病人食欲: " v-if="isShow('病人食欲')">

+ 98 - 7
src/pages/main/dialog/AssessmentDialog.vue View File

14
             <input type="tel" @focus="inputFocus" v-model="formValue.weight_before"/>
14
             <input type="tel" @focus="inputFocus" v-model="formValue.weight_before"/>
15
           </div>
15
           </div>
16
         </div>
16
         </div>
17
-        <div class="item" v-if="isShow('干体重')">
17
+
18
+
19
+        <div class="item" v-if="isShow('干体重')&&this.$store.getters.user.template_info.template_id == 6">
20
+          <h2 class="name">干体重(kg)</h2>
21
+          <div class="content" @click="showDryWeight">
22
+            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight" disabled="disabled"/>
23
+          </div>
24
+        </div>
25
+
26
+        <div class="item" v-if="isShow('干体重')&& this.$store.getters.user.template_info.template_id != 6">
18
           <h2 class="name">干体重(kg)</h2>
27
           <h2 class="name">干体重(kg)</h2>
19
           <div class="content">
28
           <div class="content">
20
-            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight"/>
29
+            <input type="tel" @focus="inputFocus" v-model="formValue.dry_weight" />
30
+          </div>
31
+        </div>
32
+
33
+
34
+        <div class="item" v-if="isShow('衣物重')">
35
+          <h2 class="name">衣物重(kg)</h2>
36
+          <div class="content">
37
+            <input type="tel" @focus="inputFocus" v-model="formValue.additional_weight"/>
21
           </div>
38
           </div>
22
         </div>
39
         </div>
23
         <div class="item" v-if="isShow('体温')">
40
         <div class="item" v-if="isShow('体温')">
322
                     v-model="formValue.remark"></textarea>
339
                     v-model="formValue.remark"></textarea>
323
         </div>
340
         </div>
324
       </div>
341
       </div>
325
-
326
     </div>
342
     </div>
327
-    <!--<two-menu title="二级菜单" v-show="true" ></two-menu>-->
343
+
328
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
344
     <check-box-sub-menu :visibility="visibility" v-on:menu-cancle="menuCancle" v-on:menu-comfirm="menuComfirm" v-on:menu-empty="menuEmpty"
329
                         :propsForm="propForm"></check-box-sub-menu>
345
                         :propsForm="propForm"></check-box-sub-menu>
346
+
347
+    <dry-weight-menu ref="dry"  v-on:menu-cancle-two="menuDryCancle" v-on:menu-comfirm-two="menuDryComfirm" :propsForm="propDryForm"></dry-weight-menu>
348
+
330
   </div>
349
   </div>
331
 </template>
350
 </template>
332
 
351
 
336
   import {EditAssessmentBeforeDislysis} from '@/api/patient'
355
   import {EditAssessmentBeforeDislysis} from '@/api/patient'
337
   import {Toast} from 'vant'
356
   import {Toast} from 'vant'
338
   import {getDataConfig} from '@/utils/data'
357
   import {getDataConfig} from '@/utils/data'
358
+  import DryWeightMenu from './subMenu/dryWeightMenu'
339
 
359
 
340
   export default {
360
   export default {
341
     name: 'PrescriptionDialog',
361
     name: 'PrescriptionDialog',
342
     props: {
362
     props: {
363
+      dry_weight:{
364
+        type: Object,
365
+
366
+      },
343
       patient_prop: {
367
       patient_prop: {
344
         type: Object,
368
         type: Object,
345
       },
369
       },
348
       },
372
       },
349
       last_predialysis: {
373
       last_predialysis: {
350
         type: Object,
374
         type: Object,
375
+      },  admin_users_prop: {
376
+        type: Array
351
       },
377
       },
352
     },
378
     },
353
     data () {
379
     data () {
354
       return {
380
       return {
381
+        propDryForm:{
382
+          weight:0,
383
+          doctor:[],
384
+        },
355
         isShowDialog: true,
385
         isShowDialog: true,
356
         //sub menu prop
386
         //sub menu prop
357
         visibility: false,
387
         visibility: false,
388
+        is_show_dry_weight: false,
358
         propForm: {
389
         propForm: {
359
           title: '',
390
           title: '',
360
           list: [],
391
           list: [],
380
         formValue: {
411
         formValue: {
381
           weight_before: '',
412
           weight_before: '',
382
           dry_weight: '',
413
           dry_weight: '',
414
+          additional_weight :'',
383
           temperature: '',
415
           temperature: '',
384
           systolic_blood_pressure: '',
416
           systolic_blood_pressure: '',
385
           diastolic_blood_pressure: '',
417
           diastolic_blood_pressure: '',
426
       }
458
       }
427
     },
459
     },
428
     methods: {
460
     methods: {
461
+      menuDryComfirm(val){
462
+        console.log(val)
463
+        this.isShowDialog = true
464
+        this.$refs.dry.close()
465
+        this.formValue.dry_weight = val.dry_weight
466
+        this.propDryForm.weight = val.dry_weight
467
+        this.dry_weight = val
468
+        this.$emit("weight_update",this.dry_weight);
469
+
470
+      },
471
+      menuDryCancle(){
472
+        this.isShowDialog = true
473
+        this.$refs.dry.close()
474
+
475
+        // this.is_show_dry_weight = false
476
+
477
+
478
+      },
429
       isShow(name){
479
       isShow(name){
430
         var filedList = this.$store.getters.user.fileds
480
         var filedList = this.$store.getters.user.fileds
431
 
481
 
1098
       },
1148
       },
1099
       commitInfo: function () {
1149
       commitInfo: function () {
1100
         Toast.loading({forbidClick: true, duration: 0})
1150
         Toast.loading({forbidClick: true, duration: 0})
1101
-        console.log(this.formValue)
1151
+        if (this.formValue.dry_weight == undefined){
1152
+          this.formValue.dry_weight = "0"
1153
+        }else{
1154
+
1155
+          this.formValue.dry_weight = this.formValue.dry_weight.toString()
1156
+        }
1157
+
1158
+
1102
         EditAssessmentBeforeDislysis(this.$route.query.patient_id, this.record_date, this.formValue).then(response => {
1159
         EditAssessmentBeforeDislysis(this.$route.query.patient_id, this.record_date, this.formValue).then(response => {
1103
           if (response.data.state == 0) {
1160
           if (response.data.state == 0) {
1104
             Toast(response.data.msg)
1161
             Toast(response.data.msg)
1108
             this.$emit('evaluation', response.data.data.evaluation)
1165
             this.$emit('evaluation', response.data.data.evaluation)
1109
           }
1166
           }
1110
         })
1167
         })
1168
+      },showDryWeight:function(){
1169
+        if(this.$store.getters.user.user.user_type == 3){
1170
+          return
1171
+        }
1172
+        this.isShowDialog = false
1173
+        this.$refs.dry.open()
1174
+        this.propDryForm.doctor=[]
1175
+        for (let i = 0; i < this.admin_users_prop.length;i++){
1176
+          if(this.admin_users_prop[i].user_type == 2 || this.admin_users_prop[i].user_type == 1){
1177
+            this.propDryForm.doctor.push(this.admin_users_prop[i])
1178
+          }
1179
+        }
1111
       },
1180
       },
1112
       close: function () {
1181
       close: function () {
1113
         this.$emit('close')
1182
         this.$emit('close')
1153
       }
1222
       }
1154
 
1223
 
1155
     }, components: {
1224
     }, components: {
1225
+      DryWeightMenu,
1156
       CheckBoxSubMenu,
1226
       CheckBoxSubMenu,
1157
 
1227
 
1158
     }, created () {
1228
     }, created () {
1171
         d = newDate.getDate()
1241
         d = newDate.getDate()
1172
       }
1242
       }
1173
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
1243
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
1174
-      // console.log(this.predialysis)
1175
       this.formValue = this.predialysis
1244
       this.formValue = this.predialysis
1245
+      console.log("3333333")
1246
+
1176
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1247
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1177
-        this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1248
+        console.log("111111")
1249
+        this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1178
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1250
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1179
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1251
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1180
         this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])
1252
         this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])
1181
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1253
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1182
       }
1254
       }
1183
 
1255
 
1256
+      if(this.$store.getters.user.template_info.template_id != 6 && this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1257
+        console.log("222222")
1258
+
1259
+        this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1260
+      }
1261
+
1262
+      if (this.$store.getters.user.template_info.template_id == 6 ) {
1263
+        console.log("333333333")
1264
+
1265
+        if(this.dry_weight != null && this.dry_weight.id != undefined){
1266
+          this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())
1267
+          this.propDryForm.weight = this.dry_weight.dry_weight.toString()
1268
+        }else{
1269
+          if(this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1270
+            this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1271
+            this.propDryForm.weight = this.formValue.dry_weight
1272
+          }
1273
+        }
1274
+      }
1184
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1275
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1185
     }
1276
     }
1186
   }
1277
   }

+ 132 - 81
src/pages/main/dialog/LongDialog.vue View File

296
 </template>
296
 </template>
297
 
297
 
298
 <script>
298
 <script>
299
-import LongDialogMenu from "./subMenu/LongDialogMenu";
300
-import { createPatientDialysisSolution } from "@/api/patient";
301
-import { Toast } from "vant";
299
+import LongDialogMenu from './subMenu/LongDialogMenu'
300
+import { createPatientDialysisSolution } from '@/api/patient'
301
+import { Toast } from 'vant'
302
 
302
 
303
 export default {
303
 export default {
304
-  name: "LongDialog",
304
+  name: 'LongDialog',
305
   components: {
305
   components: {
306
     LongDialogMenu
306
     LongDialogMenu
307
   },
307
   },
308
   methods: {
308
   methods: {
309
-    handleDialyser(item) {
310
-      this.showObj.paden_show = true;
309
+    handleDialyser (item) {
310
+      this.showObj.paden_show = true
311
     },
311
     },
312
-    showModel() {
313
-      this.showObj.mode_show[0] = true;
314
-      this.showObj.paden_show = false;
312
+    showModel () {
313
+      this.showObj.mode_show[0] = true
314
+      this.showObj.paden_show = false
315
     },
315
     },
316
-    showQi() {
317
-      this.showObj.mode_show[1] = true;
318
-      this.showObj.paden_show = false;
316
+    showQi () {
317
+      this.showObj.mode_show[1] = true
318
+      this.showObj.paden_show = false
319
     },
319
     },
320
-    showMenu(index) {
321
-      this.showObj.mode_show[index] = true;
322
-      this.showObj.paden_show = false;
320
+    showMenu (index) {
321
+      this.showObj.mode_show[index] = true
322
+      this.showObj.paden_show = false
323
     },
323
     },
324
 
324
 
325
-    submitSolution() {
326
-      this.dialysisSolution.mode = this.dialysisSolution.mode_id;
325
+    submitSolution () {
326
+      this.dialysisSolution.mode = this.dialysisSolution.mode_id
327
       createPatientDialysisSolution(
327
       createPatientDialysisSolution(
328
         this.patient.id,
328
         this.patient.id,
329
         this.dialysisSolution
329
         this.dialysisSolution
330
       ).then(response => {
330
       ).then(response => {
331
         if (response.data.state == 0) {
331
         if (response.data.state == 0) {
332
-          Toast.fail(response.data.msg);
332
+          Toast.fail(response.data.msg)
333
           // this.$toast({message: response.data.msg});
333
           // this.$toast({message: response.data.msg});
334
-          return false;
334
+          return false
335
         } else {
335
         } else {
336
-          Toast.success("创建成功");
336
+          Toast.success('创建成功')
337
           // this.$toast({message: "创建成功"});
337
           // this.$toast({message: "创建成功"});
338
-          this.$emit("longSolution");
338
+          this.$emit('longSolution')
339
           for (const key in response.data.data.solution) {
339
           for (const key in response.data.data.solution) {
340
-            this.solution_prop[key] = response.data.data.solution[key];
340
+            this.solution_prop[key] = response.data.data.solution[key]
341
           }
341
           }
342
           // this.solution_prop = response.data.data.solution
342
           // this.solution_prop = response.data.data.solution
343
         }
343
         }
344
-      });
344
+      })
345
     }
345
     }
346
   },
346
   },
347
 
347
 
354
     },
354
     },
355
     machines_prop: {
355
     machines_prop: {
356
       type: Array,
356
       type: Array,
357
-      default: function() {
358
-        return new Array();
357
+      default: function () {
358
+        return new Array()
359
       }
359
       }
360
     }
360
     }
361
   },
361
   },
362
-  data() {
362
+  data () {
363
     return {
363
     return {
364
-      doctor: "",
364
+      doctor: '',
365
       showObj: {
365
       showObj: {
366
         mode_show: {
366
         mode_show: {
367
           0: false,
367
           0: false,
384
 
384
 
385
       anticoagulant: {
385
       anticoagulant: {
386
         id: 0,
386
         id: 0,
387
-        name: "",
387
+        name: '',
388
         type: 1,
388
         type: 1,
389
         shouji: 1,
389
         shouji: 1,
390
         weichi: 1,
390
         weichi: 1,
391
         zongliang: 1,
391
         zongliang: 1,
392
         gaimingcheng: -1,
392
         gaimingcheng: -1,
393
         gaijiliang: -1,
393
         gaijiliang: -1,
394
-        shouji_unit: "mg",
395
-        weichi_unit: "mg/h",
396
-        zongliang_unit: "mg",
397
-        gaimingcheng_unit: "",
398
-        gaijiliang_unit: ""
394
+        shouji_unit: 'mg',
395
+        weichi_unit: 'mg/h',
396
+        zongliang_unit: 'mg',
397
+        gaimingcheng_unit: '',
398
+        gaijiliang_unit: ''
399
       },
399
       },
400
       patient: {
400
       patient: {
401
         id: 0
401
         id: 0
402
       },
402
       },
403
       dialysisSolution: {
403
       dialysisSolution: {
404
         id: 0,
404
         id: 0,
405
-        mode: "",
406
-        mode_id: "",
407
-        mode_name: "",
408
-        dialysis_duration: "",
409
-        hemodialysis_machine: "",
410
-        perfusion_apparatus: "",
411
-        perfusion_apparatus_name: "",
412
-        blood_flow_volume: "",
413
-        dewater: "",
405
+        mode: '',
406
+        mode_id: '',
407
+        mode_name: '',
408
+        dialysis_duration: '',
409
+        hemodialysis_machine: '',
410
+        perfusion_apparatus: '',
411
+        perfusion_apparatus_name: '',
412
+        blood_flow_volume: '',
413
+        dewater: '',
414
         displace_liqui: 0,
414
         displace_liqui: 0,
415
-        replacement_way: "",
416
-        replacement_way_name: "",
417
-        anticoagulant: "",
418
-        anticoagulant_name: "",
419
-        anticoagulant_shouji: "",
420
-        anticoagulant_weichi: "",
421
-        anticoagulant_zongliang: "",
422
-        anticoagulant_gaimingcheng: "",
423
-        anticoagulant_gaijiliang: "",
424
-        kalium: "",
425
-        sodium: "",
426
-        calcium: "",
427
-        bicarbonate: "",
428
-        glucose: "",
429
-        dry_weight: "",
430
-        dialysate_flow: "",
431
-        dialysate_temperature: "",
432
-        conductivity: "",
433
-        doctor: "",
434
-        remark: ""
415
+        replacement_way: '',
416
+        replacement_way_name: '',
417
+        anticoagulant: '',
418
+        anticoagulant_name: '',
419
+        anticoagulant_shouji: '',
420
+        anticoagulant_weichi: '',
421
+        anticoagulant_zongliang: '',
422
+        anticoagulant_gaimingcheng: '',
423
+        anticoagulant_gaijiliang: '',
424
+        kalium: '',
425
+        sodium: '',
426
+        calcium: '',
427
+        bicarbonate: '',
428
+        glucose: '',
429
+        dry_weight: '',
430
+        dialysate_flow: '',
431
+        dialysate_temperature: '',
432
+        conductivity: '',
433
+        doctor: '',
434
+        remark: ''
435
       }
435
       }
436
-    };
436
+    }
437
   },
437
   },
438
   watch: {
438
   watch: {
439
-    "dialysisSolution.anticoagulant": function() {
440
-      var thismode = parseInt(this.dialysisSolution.anticoagulant);
439
+    'dialysisSolution.anticoagulant': function () {
440
+      var thismode = parseInt(this.dialysisSolution.anticoagulant)
441
       if (isNaN(thismode) || thismode <= 0) {
441
       if (isNaN(thismode) || thismode <= 0) {
442
-        return false;
442
+        return false
443
       }
443
       }
444
       if (
444
       if (
445
-        typeof this.anticoagulantsConfit[thismode] == "undefined" ||
445
+        typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
446
         this.anticoagulantsConfit[thismode] == null
446
         this.anticoagulantsConfit[thismode] == null
447
       ) {
447
       ) {
448
-        return false;
448
+        return false
449
       }
449
       }
450
+<<<<<<< .mine
450
       this.anticoagulant = this.anticoagulantsConfit[thismode];
451
       this.anticoagulant = this.anticoagulantsConfit[thismode];
451
       this.dialysisSolution.anticoagulant_name = this.anticoagulantsConfit[
452
       this.dialysisSolution.anticoagulant_name = this.anticoagulantsConfit[
452
         thismode
453
         thismode
453
       ].name;
454
       ].name;
455
+=======
456
+      this.anticoagulant = this.anticoagulantsConfit[thismode]
457
+      this.dialysisSolution.anticoagulant_name = this.anticoagulantsConfit[thismode].name
458
+
459
+
460
+>>>>>>> .theirs
454
     },
461
     },
462
+<<<<<<< .mine
455
     "dialysisSolution.hemodialysis_machine": function() {
463
     "dialysisSolution.hemodialysis_machine": function() {
456
       var machine = parseInt(this.dialysisSolution.hemodialysis_machine);
464
       var machine = parseInt(this.dialysisSolution.hemodialysis_machine);
465
+=======
466
+    'dialysisSolution.hemodialysis_machine': function () {
467
+      var machine = parseInt(this.dialysisSolution.hemodialysis_machine)
468
+>>>>>>> .theirs
457
       if (isNaN(machine) || machine <= 0) {
469
       if (isNaN(machine) || machine <= 0) {
458
-        return;
470
+        return
459
       }
471
       }
460
       for (let index = 0; index < this.dialyserList.length; index++) {
472
       for (let index = 0; index < this.dialyserList.length; index++) {
461
         if (machine == this.dialyserList[index].id) {
473
         if (machine == this.dialyserList[index].id) {
474
+<<<<<<< .mine
462
           this.dialysisSolution.hemodialysis_machine_name = this.dialyserList[
475
           this.dialysisSolution.hemodialysis_machine_name = this.dialyserList[
463
             index
476
             index
464
           ].name;
477
           ].name;
465
           break;
478
           break;
479
+=======
480
+          this.dialysisSolution.hemodialysis_machine_name = this.dialyserList[index].name
481
+          break
482
+
483
+
484
+>>>>>>> .theirs
466
         }
485
         }
467
       }
486
       }
468
     },
487
     },
488
+<<<<<<< .mine
469
     "dialysisSolution.perfusion_apparatus": function() {
489
     "dialysisSolution.perfusion_apparatus": function() {
470
       var apparatus = parseInt(this.dialysisSolution.perfusion_apparatus);
490
       var apparatus = parseInt(this.dialysisSolution.perfusion_apparatus);
471
       if (isNaN(apparatus) || apparatus <= 0) {
491
       if (isNaN(apparatus) || apparatus <= 0) {
472
         return false;
492
         return false;
493
+=======
494
+    'dialysisSolution.perfusion_apparatus': function () {
495
+      var apparatus = parseInt(this.dialysisSolution.perfusion_apparatus)
496
+      if (isNaN(apparatus) || apparatus <= 0) {
497
+        return false
498
+>>>>>>> .theirs
473
       }
499
       }
474
       for (let index = 0; index < this.perfusion_apparatus.length; index++) {
500
       for (let index = 0; index < this.perfusion_apparatus.length; index++) {
475
         if (apparatus == this.perfusion_apparatus[index].id) {
501
         if (apparatus == this.perfusion_apparatus[index].id) {
502
+<<<<<<< .mine
476
           this.dialysisSolution.perfusion_apparatus_name = this.perfusion_apparatus[
503
           this.dialysisSolution.perfusion_apparatus_name = this.perfusion_apparatus[
477
             index
504
             index
478
           ].name;
505
           ].name;
479
           break;
506
           break;
507
+=======
508
+          this.dialysisSolution.perfusion_apparatus_name = this.perfusion_apparatus[index].name
509
+          break
510
+
511
+
512
+>>>>>>> .theirs
480
         }
513
         }
481
       }
514
       }
482
     },
515
     },
516
+<<<<<<< .mine
483
     "dialysisSolution.replacement_way": function() {
517
     "dialysisSolution.replacement_way": function() {
484
       var way = parseInt(this.dialysisSolution.replacement_way);
518
       var way = parseInt(this.dialysisSolution.replacement_way);
485
       if (isNaN(way) || way <= 0) {
519
       if (isNaN(way) || way <= 0) {
486
         return false;
520
         return false;
521
+=======
522
+    'dialysisSolution.replacement_way': function () {
523
+      var way = parseInt(this.dialysisSolution.replacement_way)
524
+      if (isNaN(way) || way <= 0) {
525
+        return false
526
+>>>>>>> .theirs
487
       }
527
       }
488
       for (let index = 0; index < this.replacementWays.length; index++) {
528
       for (let index = 0; index < this.replacementWays.length; index++) {
489
         if (way == this.replacementWays[index].id) {
529
         if (way == this.replacementWays[index].id) {
530
+<<<<<<< .mine
490
           this.dialysisSolution.replacement_way_name = this.replacementWays[
531
           this.dialysisSolution.replacement_way_name = this.replacementWays[
491
             index
532
             index
492
           ].name;
533
           ].name;
493
           break;
534
           break;
535
+=======
536
+          this.dialysisSolution.replacement_way_name = this.replacementWays[index].name
537
+          break
538
+
539
+
540
+>>>>>>> .theirs
494
         }
541
         }
495
       }
542
       }
496
     }
543
     }
511
   //   }
558
   //   }
512
 
559
 
513
   // },
560
   // },
514
-  created() {
515
-    this.doctor = this.$store.getters.user.user.user_name;
516
-    this.modeOptions = this.$store.getters.treatment_mode;
517
-    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus;
518
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
519
-    this.replacementWays = this.$store.getters.replacement_ways;
561
+  created () {
562
+    this.doctor = this.$store.getters.user.user.user_name
563
+    this.modeOptions = this.$store.getters.treatment_mode
564
+    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
565
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
566
+    this.replacementWays = this.$store.getters.replacement_ways
520
 
567
 
521
     for (var modeOne in this.modeOptions) {
568
     for (var modeOne in this.modeOptions) {
522
-      this.modeList.push(this.modeOptions[modeOne]);
569
+      this.modeList.push(this.modeOptions[modeOne])
523
     }
570
     }
524
     for (var one in this.anticoagulantsConfit) {
571
     for (var one in this.anticoagulantsConfit) {
525
-      this.anticoagulantsConfitList.push(this.anticoagulantsConfit[one]);
572
+      this.anticoagulantsConfitList.push(this.anticoagulantsConfit[one])
526
     }
573
     }
527
 
574
 
528
-    this.patient = this.patient_prop;
575
+    this.patient = this.patient_prop
529
 
576
 
530
     // console.log("this.solution_prop",this.solution_prop);
577
     // console.log("this.solution_prop",this.solution_prop);
531
     if (this.solution_prop != null && this.solution_prop.id != "") {
578
     if (this.solution_prop != null && this.solution_prop.id != "") {
532
       for (const key in this.solution_prop) {
579
       for (const key in this.solution_prop) {
533
-        this.dialysisSolution[key] = this.solution_prop[key];
580
+        this.dialysisSolution[key] = this.solution_prop[key]
534
       }
581
       }
535
     }
582
     }
536
 
583
 
584
+<<<<<<< .mine
537
     this.dialyserList = this.machines_prop;
585
     this.dialyserList = this.machines_prop;
538
   }
586
   }
587
+=======
588
+    this.dialyserList = this.machines_prop
589
+  }
590
+>>>>>>> .theirs
539
   // data() {
591
   // data() {
540
   //   return {
592
   //   return {
541
   //     show_two_menu: false
593
   //     show_two_menu: false
557
   //     this.show_two_menu = true;
609
   //     this.show_two_menu = true;
558
   //   }
610
   //   }
559
   // }
611
   // }
560
-};
612
+}
561
 </script>
613
 </script>
562
 
614
 
563
 <style style="stylesheet/scss" lang="scss" scoped>
615
 <style style="stylesheet/scss" lang="scss" scoped>
616
   }
668
   }
617
 }
669
 }
618
 </style>
670
 </style>
619
-

File diff suppressed because it is too large
+ 757 - 759
src/pages/main/dialog/MonitDialog.vue


+ 96 - 3
src/pages/main/dialog/OrdersDialog.vue View File

21
           @click="modifyExecAdvice"
21
           @click="modifyExecAdvice"
22
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) }"
22
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) }"
23
         >修改执行医嘱</span>
23
         >修改执行医嘱</span>
24
-        <span
24
+        <span v-if="template_id != 6"
25
           @click="checkAdvice"
25
           @click="checkAdvice"
26
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) || (this.$store.getters.user.user.user_type == 2 && !isPremission) }"
26
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) || (this.$store.getters.user.user.user_type == 2 && !isPremission) }"
27
         >医嘱核对</span>
27
         >医嘱核对</span>
52
               <th width="40%">医嘱内容</th>
52
               <th width="40%">医嘱内容</th>
53
               <th width="10%">执行时间</th>
53
               <th width="10%">执行时间</th>
54
               <th width="10%">执行护士</th>
54
               <th width="10%">执行护士</th>
55
-              <th width="10%">核对人员</th>
55
+              <th v-if="template_id != 6" width="10%">核对人员</th>
56
             </tr>
56
             </tr>
57
             <template v-for="(group, group_index) in advice_groups">
57
             <template v-for="(group, group_index) in advice_groups">
58
               <tr
58
               <tr
83
                 >
83
                 >
84
                   <div class="txt">
84
                   <div class="txt">
85
                     <span>{{advice.advice_name }}</span>
85
                     <span>{{advice.advice_name }}</span>
86
+<<<<<<< .mine
86
                     <span
87
                     <span
87
                       v-if="advice.advice_desc"
88
                       v-if="advice.advice_desc"
88
                     >{{ advice.advice_desc }}{{advice.drug_spec_unit}}</span>
89
                     >{{ advice.advice_desc }}{{advice.drug_spec_unit}}</span>
92
                     <span
93
                     <span
93
                       v-if="advice.single_dose"
94
                       v-if="advice.single_dose"
94
                     >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
95
                     >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
96
+=======
97
+                    <span v-if="advice.advice_desc">({{ advice.advice_desc }}{{advice.drug_spec_unit}})</span>
98
+                    <span v-if="advice.prescribing_number">&nbsp;&nbsp;{{advice.prescribing_number}}{{advice.prescribing_number_unit}})</span>
99
+                    <span v-if="advice.single_dose && template_id != 6" >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
100
+
101
+
102
+
103
+
104
+
105
+
106
+>>>>>>> .theirs
95
                     <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
107
                     <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
96
                     <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
108
                     <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
97
                     <span
109
                     <span
268
     date *= 1000;
280
     date *= 1000;
269
     var newDate = new Date(date);
281
     var newDate = new Date(date);
270
 
282
 
283
+<<<<<<< .mine
271
     var y = newDate.getFullYear();
284
     var y = newDate.getFullYear();
272
     var m = newDate.getMonth() + 1;
285
     var m = newDate.getMonth() + 1;
273
     var d = newDate.getDate();
286
     var d = newDate.getDate();
280
     this.record_date =
293
     this.record_date =
281
       y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
294
       y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
282
 
295
 
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+=======
317
+    },
318
+    data () {
319
+      return {
320
+        isShowDialog: true,
321
+        template_id: 0,
322
+        isShowExce: true,
323
+        isShowMofifyExce: false,
324
+        title: '临时医嘱',
325
+        index: 0,
326
+        doctor: '',
327
+        adviceTemplates: [],
328
+        drugOptions: {},
329
+        deliveryWayOptions: [],
330
+        executionFrequencyOptions: [],
331
+        unitsOption: [],
332
+        unitsObj: [],
333
+        record_date: '',
334
+        nowExecTime: new Date(),
335
+        patient: {
336
+          id: 0
337
+        },
338
+        admin_users: [],
339
+        adviceList: [],
340
+        parent_id: 0,
341
+        current_select_object: -1,
342
+        current_group_index: -1,
343
+        current_advice_index: -1,
344
+        current_advice: null,
345
+        currentAdviceIdsStr: '',
346
+        currentAdvices: [],
347
+        currentSubAdvices: [],
348
+        isPremission:false,
349
+>>>>>>> .theirs
350
+
351
+<<<<<<< .mine
283
     this.patient = this.patient_prop;
352
     this.patient = this.patient_prop;
284
     this.adviceList = this.advice_list_prop;
353
     this.adviceList = this.advice_list_prop;
285
     this.admin_users = this.admin_users_prop;
354
     this.admin_users = this.admin_users_prop;
286
     this.doctor = this.$store.getters.user.user.user_name;
355
     this.doctor = this.$store.getters.user.user.user_name;
287
     this.getAdviceConfig();
356
     this.getAdviceConfig();
288
 
357
 
358
+
359
+=======
360
+      }
361
+    },
362
+    created () {
363
+      this.template_id = this.$store.getters.user.template_info.template_id
364
+      var date = this.$route.query && this.$route.query.date
365
+      date *= 1000
366
+      var newDate = new Date(date)
367
+>>>>>>> .theirs
368
+
289
     this.unitsOption = getDataConfig("hemodialysis", "units");
369
     this.unitsOption = getDataConfig("hemodialysis", "units");
290
     for (var index in this.unitsOption) {
370
     for (var index in this.unitsOption) {
291
       this.unitsObj[this.unitsOption[index].id] = this.unitsOption[index];
371
       this.unitsObj[this.unitsOption[index].id] = this.unitsOption[index];
342
         advices[i]["is_selected"] = 0;
422
         advices[i]["is_selected"] = 0;
343
       }
423
       }
344
 
424
 
425
+<<<<<<< .mine
345
       var new_group = Object.assign(
426
       var new_group = Object.assign(
346
         {},
427
         {},
347
         {
428
         {
348
           group_no: 0,
429
           group_no: 0,
349
           start_time: 0,
430
           start_time: 0,
350
           advices: []
431
           advices: []
351
-        }
432
+
433
+
434
+=======
435
+    methods: {
436
+      modifyExecAdvice: function () {
437
+        // if(!this.isPremission){
438
+        //   Toast.fail('你没有权限修改医嘱!')
439
+        // }else{
440
+          this.nowExecTime = new Date(this.currentAdvices[0].start_time * 1000)
441
+          this.$refs.mofify_exec_time.open()
442
+
443
+>>>>>>> .theirs
444
+        // }
352
       );
445
       );
353
       new_group.group_no = advices[0].groupno;
446
       new_group.group_no = advices[0].groupno;
354
       new_group.start_time = advices[0].start_time;
447
       new_group.start_time = advices[0].start_time;

+ 1 - 1
src/pages/main/dialog/PlaneDialog.vue View File

199
           return false;
199
           return false;
200
         } else {
200
         } else {
201
           Toast.success("下机成功");
201
           Toast.success("下机成功");
202
-          this.$emit('did_off', response.data.data.dialysisOrder);
202
+          this.$emit('did_off', response.data.data.assessmentAfterDislysis);
203
           var record = this.record
203
           var record = this.record
204
           for (const key in response.data.data.dialysisOrder) {
204
           for (const key in response.data.data.dialysisOrder) {
205
             this.$set(record, key, response.data.data.dialysisOrder[key])
205
             this.$set(record, key, response.data.data.dialysisOrder[key])

File diff suppressed because it is too large
+ 803 - 289
src/pages/main/dialog/PrescriptionDialog.vue


+ 37 - 20
src/pages/main/dialog/ThorougDialog.vue View File

19
         </div>
19
         </div>
20
 
20
 
21
         <div class="item" v-if="isShow('实际超滤量')">
21
         <div class="item" v-if="isShow('实际超滤量')">
22
-          <label class="name" for="sjcll">实际超滤量(L)</label>
22
+          <label v-if="template_id == 6" class="name" for="sjcll">实际超滤量(ml)</label>
23
+          <label v-else class="name" for="sjcll">实际超滤量(L)</label>
23
           <div class="content">
24
           <div class="content">
24
             <input type="tel" @focus="inputFocus" id="sjcll" v-model="formValue.actual_ultrafiltration"/>
25
             <input type="tel" @focus="inputFocus" id="sjcll" v-model="formValue.actual_ultrafiltration"/>
25
 
26
 
411
         puncture_point_oozing_blood_state: false,
412
         puncture_point_oozing_blood_state: false,
412
         puncture_point_haematoma_state: false,
413
         puncture_point_haematoma_state: false,
413
         eat_state: false,
414
         eat_state: false,
414
-
415
+        template_id: 0,
415
         isShowDialog: true,
416
         isShowDialog: true,
416
         time: '00:00',
417
         time: '00:00',
417
         puncture_point_oozing_bloods:[
418
         puncture_point_oozing_bloods:[
569
             this.propForm.title = '凝血'
570
             this.propForm.title = '凝血'
570
             this.propForm.isHasOther = 2
571
             this.propForm.isHasOther = 2
571
             this.visibility = true
572
             this.visibility = true
573
+            this.propForm.list = []
572
             this.propForm.list = getDataConfig("hemodialysis", "cruor");
574
             this.propForm.list = getDataConfig("hemodialysis", "cruor");
573
             this.propForm.optionList = []
575
             this.propForm.optionList = []
574
             this.propForm.isMultiple = 2
576
             this.propForm.isMultiple = 2
581
             } else {
583
             } else {
582
               this.propForm.result = []
584
               this.propForm.result = []
583
             }
585
             }
584
-
585
             this.propForm.click_ref = "cruor"
586
             this.propForm.click_ref = "cruor"
586
             break
587
             break
587
           case 'symptom_after_dialysis':
588
           case 'symptom_after_dialysis':
591
             this.propForm.isHasOther = 2
592
             this.propForm.isHasOther = 2
592
 
593
 
593
             this.visibility = true
594
             this.visibility = true
595
+            this.propForm.list = []
596
+
594
             this.propForm.list = getDataConfig('hemodialysis','symptoms');
597
             this.propForm.list = getDataConfig('hemodialysis','symptoms');
595
             this.propForm.optionList = []
598
             this.propForm.optionList = []
596
             this.propForm.isMultiple = 2
599
             this.propForm.isMultiple = 2
612
             this.propForm.title = '导管'
615
             this.propForm.title = '导管'
613
             this.visibility = true
616
             this.visibility = true
614
             this.propForm.isHasOther = 2
617
             this.propForm.isHasOther = 2
618
+            this.propForm.list = []
615
 
619
 
616
             this.propForm.list = getDataConfig('hemodialysis','catheter')
620
             this.propForm.list = getDataConfig('hemodialysis','catheter')
617
             this.propForm.optionList = []
621
             this.propForm.optionList = []
634
             this.propForm.isHasOther = 2
638
             this.propForm.isHasOther = 2
635
 
639
 
636
             this.visibility = true
640
             this.visibility = true
641
+            this.propForm.list = []
642
+
637
             this.propForm.list = getDataConfig('hemodialysis','complication')
643
             this.propForm.list = getDataConfig('hemodialysis','complication')
638
             this.propForm.optionList = []
644
             this.propForm.optionList = []
639
             this.propForm.isMultiple = 2
645
             this.propForm.isMultiple = 2
682
             this.isShowDialog = false
688
             this.isShowDialog = false
683
             this.propForm.title = '内瘘'
689
             this.propForm.title = '内瘘'
684
             this.visibility = true
690
             this.visibility = true
691
+            this.propForm.list = []
685
             this.propForm.list = getDataConfig('hemodialysis','internal_fistula')
692
             this.propForm.list = getDataConfig('hemodialysis','internal_fistula')
686
             this.propForm.optionList = []
693
             this.propForm.optionList = []
687
             this.propForm.isMultiple = 2
694
             this.propForm.isMultiple = 2
731
             this.propForm.title = '交待病房护士/患者/陪人观察内容'
738
             this.propForm.title = '交待病房护士/患者/陪人观察内容'
732
             this.visibility = true
739
             this.visibility = true
733
             this.propForm.isHasOther = 2
740
             this.propForm.isHasOther = 2
741
+            this.propForm.list = []
734
 
742
 
735
             this.propForm.list = this.$store.getters.observation_content
743
             this.propForm.list = this.$store.getters.observation_content
736
             this.propForm.optionList = []
744
             this.propForm.optionList = []
768
             this.propForm.title = '透析过程提前原因'
776
             this.propForm.title = '透析过程提前原因'
769
             this.visibility = true
777
             this.visibility = true
770
             this.propForm.isHasOther = 2
778
             this.propForm.isHasOther = 2
779
+            this.propForm.list = []
771
 
780
 
772
             this.propForm.list = this.$store.getters.in_advance_reason
781
             this.propForm.list = this.$store.getters.in_advance_reason
773
             this.propForm.optionList = []
782
             this.propForm.optionList = []
829
             this.propForm.title = '失衡综合症情况'
838
             this.propForm.title = '失衡综合症情况'
830
             this.visibility = true
839
             this.visibility = true
831
             this.propForm.isHasOther = 2
840
             this.propForm.isHasOther = 2
841
+            this.propForm.list = []
832
 
842
 
833
             this.propForm.list = this.$store.getters.disequilibrium_syndrome_option
843
             this.propForm.list = this.$store.getters.disequilibrium_syndrome_option
834
             this.propForm.optionList = []
844
             this.propForm.optionList = []
849
             this.isShowDialog = false
859
             this.isShowDialog = false
850
             this.propForm.title = '动脉管道'
860
             this.propForm.title = '动脉管道'
851
             this.propForm.isHasOther = 2
861
             this.propForm.isHasOther = 2
862
+            this.propForm.list = []
852
 
863
 
853
             this.visibility = true
864
             this.visibility = true
854
             this.propForm.list = []
865
             this.propForm.list = []
1245
       let initMinute = ''
1256
       let initMinute = ''
1246
       let tempHour = ''
1257
       let tempHour = ''
1247
       let tempMinute = ''
1258
       let tempMinute = ''
1259
+      this.template_id = this.$store.getters.user.template_info.template_id
1248
 
1260
 
1249
-      if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1261
+      if (this.record != null && this.record.id != '' ) {
1250
         for (const key in this.formValue) {
1262
         for (const key in this.formValue) {
1251
           // console.log(key, this.record[key]);
1263
           // console.log(key, this.record[key]);
1252
           this.formValue[key] = this.record[key];
1264
           this.formValue[key] = this.record[key];
1253
         }
1265
         }
1254
-      }else if (this.last_record != null && this.last_record.id != "") {
1255
-        for (const key in this.formValue) {
1256
-          // console.log(key, this.record[key]);
1257
-          this.formValue[key] = this.last_record[key];
1258
-        }
1259
-        if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1260
-          this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1261
-          this.$set(this.formValue, "weight_after", this.record.weight_after)
1262
-          this.$set(this.formValue, "weight_loss", this.record.weight_loss)
1263
-        } else {
1264
-          this.$set(this.formValue, "actual_ultrafiltration", '')
1265
-          this.$set(this.formValue, "weight_after", '')
1266
-          this.$set(this.formValue, "weight_loss", '')
1267
-        }
1268
-      } 
1269
-  
1266
+      }
1267
+      // else  {
1268
+        // if (this.record != null && this.record.id != '' && this.record.assessment_doctor == 0){
1269
+        //   this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1270
+        //   this.$set(this.formValue, "weight_after", this.record.weight_after)
1271
+        //   this.$set(this.formValue, "weight_loss", this.record.weight_loss)
1272
+        //   this.$set(this.formValue, "actual_ultrafiltration", this.record.actual_ultrafiltration)
1273
+        //   this.$set(this.formValue, "actual_displacement", this.record.actual_displacement)
1274
+        //   this.$set(this.formValue, "actual_treatment_hour", this.record.actual_treatment_hour)
1275
+        //   this.$set(this.formValue, "actual_treatment_minute", this.record.actual_treatment_minute)
1276
+        // } else {
1277
+          // this.$set(this.formValue, "actual_ultrafiltration", '')
1278
+          // this.$set(this.formValue, "weight_after", '')
1279
+          // this.$set(this.formValue, "weight_loss", '')
1280
+          // this.$set(this.formValue, "actual_ultrafiltration", '')
1281
+          // this.$set(this.formValue, "actual_displacement", '')
1282
+          // this.$set(this.formValue, "actual_treatment_hour", '')
1283
+          // this.$set(this.formValue, "actual_treatment_minute", '')
1284
+        // }
1285
+      // }
1286
+
1270
 
1287
 
1271
 
1288
 
1272
 
1289
 

+ 1 - 0
src/pages/main/dialog/TwoMenu.vue View File

98
       this.single.id_key = id_key;
98
       this.single.id_key = id_key;
99
       this.handle_select = handle_select;
99
       this.handle_select = handle_select;
100
       this.handle_hide = handle_hide;
100
       this.handle_hide = handle_hide;
101
+      console.log( this.single.cur_id )
101
     },
102
     },
102
     // showMutableSelect(list_options, selected_values, title, show_key, id_key, handle_select) {
103
     // showMutableSelect(list_options, selected_values, title, show_key, id_key, handle_select) {
103
     //   this.show = true
104
     //   this.show = true

+ 54 - 54
src/pages/main/dialog/new_order/select_advice_template_dialog.vue View File

81
 
81
 
82
 <script>
82
 <script>
83
 export default {
83
 export default {
84
-  name: "SelectAdviceTemplate",
84
+  name: 'SelectAdviceTemplate',
85
   props: {
85
   props: {
86
     visibility: {
86
     visibility: {
87
       type: Boolean,
87
       type: Boolean,
90
     templates: {
90
     templates: {
91
       type: Array,
91
       type: Array,
92
       default: () => {
92
       default: () => {
93
-        return [];
93
+        return []
94
       }
94
       }
95
     }
95
     }
96
   },
96
   },
97
-  data() {
97
+  data () {
98
     return {
98
     return {
99
       fold_template_ids: [],
99
       fold_template_ids: [],
100
       selecting_advice_ids: []
100
       selecting_advice_ids: []
101
-    };
101
+    }
102
   },
102
   },
103
   methods: {
103
   methods: {
104
-    backAction: function() {
105
-      this.$emit("back");
104
+    backAction: function () {
105
+      this.$emit('back')
106
     },
106
     },
107
-    foldTemplateAction: function(template_id) {
107
+    foldTemplateAction: function (template_id) {
108
       for (let index = 0; index < this.fold_template_ids.length; index++) {
108
       for (let index = 0; index < this.fold_template_ids.length; index++) {
109
         if (this.fold_template_ids[index] == template_id) {
109
         if (this.fold_template_ids[index] == template_id) {
110
-          this.fold_template_ids.splice(index, 1);
111
-          return;
110
+          this.fold_template_ids.splice(index, 1)
111
+          return
112
         }
112
         }
113
       }
113
       }
114
-      this.fold_template_ids.push(template_id);
114
+      this.fold_template_ids.push(template_id)
115
     },
115
     },
116
-    selectAdviceAction: function(template, advice) {
117
-      var isCancelSelect = false;
116
+    selectAdviceAction: function (template, advice) {
117
+      var isCancelSelect = false
118
       for (let index = 0; index < this.selecting_advice_ids.length; index++) {
118
       for (let index = 0; index < this.selecting_advice_ids.length; index++) {
119
         if (this.selecting_advice_ids[index].advice_id == advice.id) {
119
         if (this.selecting_advice_ids[index].advice_id == advice.id) {
120
-          this.selecting_advice_ids.splice(index, 1);
121
-          isCancelSelect = true;
122
-          break;
120
+          this.selecting_advice_ids.splice(index, 1)
121
+          isCancelSelect = true
122
+          break
123
         }
123
         }
124
       }
124
       }
125
       if (!isCancelSelect) {
125
       if (!isCancelSelect) {
126
         this.selecting_advice_ids.push({
126
         this.selecting_advice_ids.push({
127
           template_id: template.id,
127
           template_id: template.id,
128
           advice_id: advice.id
128
           advice_id: advice.id
129
-        });
129
+        })
130
       }
130
       }
131
     },
131
     },
132
-    selectTemplateAllAdviceAction: function(template) {
132
+    selectTemplateAllAdviceAction: function (template) {
133
       for (
133
       for (
134
         let index = 0;
134
         let index = 0;
135
         index < template.DoctorAdviceTemplate.length;
135
         index < template.DoctorAdviceTemplate.length;
136
         index++
136
         index++
137
       ) {
137
       ) {
138
-        const advice = template.DoctorAdviceTemplate[index];
138
+        const advice = template.DoctorAdviceTemplate[index]
139
         if (advice.parent_id > 0) {
139
         if (advice.parent_id > 0) {
140
-          continue;
140
+          continue
141
         }
141
         }
142
-        var didSelect = false;
142
+        var didSelect = false
143
         for (
143
         for (
144
           let s_a_index = 0;
144
           let s_a_index = 0;
145
           s_a_index < this.selecting_advice_ids.length;
145
           s_a_index < this.selecting_advice_ids.length;
146
           s_a_index++
146
           s_a_index++
147
         ) {
147
         ) {
148
           if (this.selecting_advice_ids[s_a_index].advice_id == advice.id) {
148
           if (this.selecting_advice_ids[s_a_index].advice_id == advice.id) {
149
-            didSelect = true;
150
-            break;
149
+            didSelect = true
150
+            break
151
           }
151
           }
152
         }
152
         }
153
         if (!didSelect) {
153
         if (!didSelect) {
154
           this.selecting_advice_ids.push({
154
           this.selecting_advice_ids.push({
155
             template_id: template.id,
155
             template_id: template.id,
156
             advice_id: advice.id
156
             advice_id: advice.id
157
-          });
157
+          })
158
         }
158
         }
159
       }
159
       }
160
     },
160
     },
161
-    cancelSelectTemplateAllAdviceAction: function(template) {
161
+    cancelSelectTemplateAllAdviceAction: function (template) {
162
       for (
162
       for (
163
         let index = this.selecting_advice_ids.length - 1;
163
         let index = this.selecting_advice_ids.length - 1;
164
         index >= 0;
164
         index >= 0;
165
         index--
165
         index--
166
       ) {
166
       ) {
167
         if (this.selecting_advice_ids[index].template_id == template.id) {
167
         if (this.selecting_advice_ids[index].template_id == template.id) {
168
-          this.selecting_advice_ids.splice(index, 1);
168
+          this.selecting_advice_ids.splice(index, 1)
169
         }
169
         }
170
       }
170
       }
171
     },
171
     },
172
-    submitAction: function() {
173
-      var advices = [];
172
+    submitAction: function () {
173
+      var advices = []
174
       // WAIN: 效率低,可以通过在 selecting_advice_ids 加上 template_index 和 advice_index 字段来消除 this.templates 的循环
174
       // WAIN: 效率低,可以通过在 selecting_advice_ids 加上 template_index 和 advice_index 字段来消除 this.templates 的循环
175
       for (let t_a_i = 0; t_a_i < this.selecting_advice_ids.length; t_a_i++) {
175
       for (let t_a_i = 0; t_a_i < this.selecting_advice_ids.length; t_a_i++) {
176
-        const tpl_advice = this.selecting_advice_ids[t_a_i];
176
+        const tpl_advice = this.selecting_advice_ids[t_a_i]
177
         for (let t_i = 0; t_i < this.templates.length; t_i++) {
177
         for (let t_i = 0; t_i < this.templates.length; t_i++) {
178
-          const tpl = this.templates[t_i];
178
+          const tpl = this.templates[t_i]
179
           if (tpl.id == tpl_advice.template_id) {
179
           if (tpl.id == tpl_advice.template_id) {
180
-            var child_begin = false;
180
+            var child_begin = false
181
             for (let a_i = 0; a_i < tpl.DoctorAdviceTemplate.length; a_i++) {
181
             for (let a_i = 0; a_i < tpl.DoctorAdviceTemplate.length; a_i++) {
182
-              const adv = tpl.DoctorAdviceTemplate[a_i];
182
+              const adv = tpl.DoctorAdviceTemplate[a_i]
183
               if (adv.id == tpl_advice.advice_id) {
183
               if (adv.id == tpl_advice.advice_id) {
184
-                advices.push(adv);
185
-                child_begin = true;
184
+                advices.push(adv)
185
+                child_begin = true
186
               } else if (child_begin == true) {
186
               } else if (child_begin == true) {
187
                 if (adv.parent_id == tpl_advice.advice_id) {
187
                 if (adv.parent_id == tpl_advice.advice_id) {
188
-                  advices.push(adv);
188
+                  advices.push(adv)
189
                 } else {
189
                 } else {
190
-                  break;
190
+                  break
191
                 }
191
                 }
192
               }
192
               }
193
             }
193
             }
194
           }
194
           }
195
         }
195
         }
196
       }
196
       }
197
-      this.$emit("finish", advices);
197
+      this.$emit('finish', advices)
198
 
198
 
199
       this.$nextTick(() => {
199
       this.$nextTick(() => {
200
-        this.fold_template_ids = [];
201
-        this.selecting_advice_ids = [];
202
-      });
200
+        this.fold_template_ids = []
201
+        this.selecting_advice_ids = []
202
+      })
203
     },
203
     },
204
 
204
 
205
-    isFold: function(template_id) {
205
+    isFold: function (template_id) {
206
       for (let index = 0; index < this.fold_template_ids.length; index++) {
206
       for (let index = 0; index < this.fold_template_ids.length; index++) {
207
         if (this.fold_template_ids[index] == template_id) {
207
         if (this.fold_template_ids[index] == template_id) {
208
-          return true;
208
+          return true
209
         }
209
         }
210
       }
210
       }
211
-      return false;
211
+      return false
212
     },
212
     },
213
-    isAdviceSelecting: function(advice_id) {
213
+    isAdviceSelecting: function (advice_id) {
214
       for (let index = 0; index < this.selecting_advice_ids.length; index++) {
214
       for (let index = 0; index < this.selecting_advice_ids.length; index++) {
215
         if (this.selecting_advice_ids[index].advice_id == advice_id) {
215
         if (this.selecting_advice_ids[index].advice_id == advice_id) {
216
-          return true;
216
+          return true
217
         }
217
         }
218
       }
218
       }
219
-      return false;
219
+      return false
220
     },
220
     },
221
-    isTemplateSelectingAllAdvices: function(template) {
222
-      var count = 0;
221
+    isTemplateSelectingAllAdvices: function (template) {
222
+      var count = 0
223
       for (let t_a_i = 0; t_a_i < this.selecting_advice_ids.length; t_a_i++) {
223
       for (let t_a_i = 0; t_a_i < this.selecting_advice_ids.length; t_a_i++) {
224
         if (this.selecting_advice_ids[t_a_i].template_id == template.id) {
224
         if (this.selecting_advice_ids[t_a_i].template_id == template.id) {
225
-          count++;
225
+          count++
226
         }
226
         }
227
       }
227
       }
228
 
228
 
229
-      var p_advice_count = 0;
229
+      var p_advice_count = 0
230
       for (
230
       for (
231
         let index = 0;
231
         let index = 0;
232
         index < template.DoctorAdviceTemplate.length;
232
         index < template.DoctorAdviceTemplate.length;
233
         index++
233
         index++
234
       ) {
234
       ) {
235
         if (template.DoctorAdviceTemplate[index].parent_id == 0) {
235
         if (template.DoctorAdviceTemplate[index].parent_id == 0) {
236
-          p_advice_count++;
236
+          p_advice_count++
237
         }
237
         }
238
       }
238
       }
239
       if (count < p_advice_count) {
239
       if (count < p_advice_count) {
240
-        return false;
240
+        return false
241
       } else {
241
       } else {
242
-        return true;
242
+        return true
243
       }
243
       }
244
     }
244
     }
245
   }
245
   }
246
-};
246
+}
247
 </script>
247
 </script>
248
 
248
 
249
 <style style="stylesheet/scss" lang="scss">
249
 <style style="stylesheet/scss" lang="scss">
250
 .optionsBox {
250
 .optionsBox {
251
   background: #fff;
251
   background: #fff;
252
-  max-height: 10.6rem;
252
+  max-height: 9.6rem;
253
   min-height: 5rem;
253
   min-height: 5rem;
254
   overflow-y: scroll;
254
   overflow-y: scroll;
255
   @media only screen and (max-width: 812px) {
255
   @media only screen and (max-width: 812px) {

+ 13 - 10
src/pages/main/dialog/subMenu/LongAdviceSubMenu.vue View File

23
              <div style="padding-top: 15px;padding-left: 10px">开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}</div><br/>
23
              <div style="padding-top: 15px;padding-left: 10px">开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}</div><br/>
24
               <div style="padding-left: 10px">开嘱时间&nbsp;{{ getTime(advice.created_time) }}</div><br/>
24
               <div style="padding-left: 10px">开嘱时间&nbsp;{{ getTime(advice.created_time) }}</div><br/>
25
               <div style="padding-bottom: 15px;padding-left: 10px"> 医嘱内容&nbsp;{{getContent(advice)}}</div>
25
               <div style="padding-bottom: 15px;padding-left: 10px"> 医嘱内容&nbsp;{{getContent(advice)}}</div>
26
+              <div style="padding-bottom: 15px;padding-left: 10px" v-if="advice.frequency_type == 1"> 推送频率 每日必推</div>
27
+              <div style="padding-bottom: 15px;padding-left: 10px" v-if="advice.frequency_type == 2"> 推送频率&nbsp;{{advice.day_count}}天/次</div>
28
+              <div style="padding-bottom: 15px;padding-left: 10px" v-if="advice.frequency_type == 3"> 推送频率&nbsp;每周{{advice.week_day}}</div>
26
 
29
 
27
             </van-checkbox>
30
             </van-checkbox>
28
           </van-checkbox-group>
31
           </van-checkbox-group>
68
       }, getContent (val) {
71
       }, getContent (val) {
69
         let prescribing_number = ''
72
         let prescribing_number = ''
70
         let single_dose = ''
73
         let single_dose = ''
74
+        let advice_desc = ''
75
+
71
         if (val.prescribing_number > 0) {
76
         if (val.prescribing_number > 0) {
72
           prescribing_number = val.prescribing_number + val.prescribing_number_unit
77
           prescribing_number = val.prescribing_number + val.prescribing_number_unit
73
         }
78
         }
74
         if (val.single_dose > 0) {
79
         if (val.single_dose > 0) {
75
           single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
80
           single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
76
         }
81
         }
82
+
83
+        if (val.advice_desc > 0) {
84
+          advice_desc = val.advice_desc + val.drug_spec_unit
85
+        }
86
+
77
         let name = ""
87
         let name = ""
78
         if (val.child.length > 0){
88
         if (val.child.length > 0){
79
           for (let i = 0 ; i < val.child.length; i++){
89
           for (let i = 0 ; i < val.child.length; i++){
89
               val.child[i]['single'] = ''
99
               val.child[i]['single'] = ''
90
             }
100
             }
91
             name = name+"▲"+val.child[i].advice_name+""
101
             name = name+"▲"+val.child[i].advice_name+""
92
-              + val.child[i].drug_spec
102
+              + val.child[i].advice_desc
93
               + val.child[i].drug_spec_unit
103
               + val.child[i].drug_spec_unit
94
               + val.child[i].presc
104
               + val.child[i].presc
95
               + val.child[i].single
105
               + val.child[i].single
96
           }
106
           }
97
-          return  val.advice_name +"  "+ val.drug_spec+" "
107
+          return  val.advice_name +"  "+advice_desc+" "
98
             + val.drug_spec_unit
108
             + val.drug_spec_unit
99
             + prescribing_number
109
             + prescribing_number
100
             + " "+single_dose+" "+ " "+val.delivery_way+" "+ val.execution_frequency + val.remark +name
110
             + " "+single_dose+" "+ " "+val.delivery_way+" "+ val.execution_frequency + val.remark +name
101
 
111
 
102
         } else {
112
         } else {
103
-          return val.advice_name +"  "+ val.drug_spec+" "
104
-            + val.drug_spec_unit
113
+          return val.advice_name +"  "+advice_desc
105
             + prescribing_number
114
             + prescribing_number
106
             + " "+single_dose+" "+ " "+val.delivery_way+" "+ val.execution_frequency + val.remark
115
             + " "+single_dose+" "+ " "+val.delivery_way+" "+ val.execution_frequency + val.remark
107
         }
116
         }
117
       },
126
       },
118
       getValue: function () {
127
       getValue: function () {
119
         let form = {}
128
         let form = {}
120
-
121
         let results = []
129
         let results = []
122
-
123
         for (let i = 0; i < this.propsForm.list.length; i++){
130
         for (let i = 0; i < this.propsForm.list.length; i++){
124
           for (let a = 0; a < this.propsForm.result.length; a++){
131
           for (let a = 0; a < this.propsForm.result.length; a++){
125
             if( this.propsForm.list[i].id == this.propsForm.result[a]){
132
             if( this.propsForm.list[i].id == this.propsForm.result[a]){
127
             }
134
             }
128
           }
135
           }
129
         }
136
         }
130
-
131
         var obj5={}
137
         var obj5={}
132
         results = results.reduce((cur, next) => {
138
         results = results.reduce((cur, next) => {
133
           obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
139
           obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
134
           return cur
140
           return cur
135
         }, [])
141
         }, [])
136
-
137
-        results
138
-
139
         return results
142
         return results
140
       },
143
       },
141
 
144
 

+ 215 - 0
src/pages/main/dialog/subMenu/MsgTip.vue View File

1
+<template>
2
+  <div v-if="visibility" class="Dialog">
3
+    <div class="DialogTit">
4
+      <div class="back" @click="cancle()">
5
+        <span class="iconfont">&#xe720; </span>返回
6
+      </div>
7
+      <h1 class="name">{{patient_prop.name}} [透析号 {{patient_prop.dialysis_no}} ]</h1>
8
+      <span @click="comfirm" class="success" >确定</span
9
+      >
10
+    </div>
11
+
12
+    <div class="DialogContent">
13
+        <div class="item">
14
+          <label class="name" for="txms">本次透析日期</label>
15
+          <div class="content">
16
+            <span class="text" id="txms"> {{dialysis_date}}</span>
17
+            
18
+          </div>
19
+        </div>
20
+        <div class="item">
21
+          <label class="name" for="txms">透前体重(kg)</label>
22
+          <div class="content">
23
+            <span class="text" id="txms">{{predialysis.weight_before}}</span>
24
+            
25
+          </div>
26
+        </div>
27
+        <div class="item">
28
+          <label class="name" for="txms">干体重(kg)</label>
29
+          <div class="content">
30
+            <span class="text" id="txms">{{last_predialysis.dry_weight}}</span>
31
+            
32
+          </div>
33
+        </div>
34
+        <div class="item">
35
+          <label class="name" for="txms">衣物重(kg)</label>
36
+          <div class="content">
37
+            <span class="text" id="txms">{{predialysis.additional_weight}}</span>
38
+            
39
+          </div>
40
+        </div>
41
+        <div class="item">
42
+          <label class="name" for="txms">体重增加(kg)</label>
43
+          <div class="content">
44
+            <span class="text" id="txms">{{add_weight}}</span>
45
+            
46
+          </div>
47
+        </div>
48
+        <div class="item">
49
+          <label class="name" for="txms">透后体重(kg)</label>
50
+          <div class="content">
51
+            <span class="text" id="txms">{{record.weight_after}}</span>
52
+            
53
+          </div>
54
+        </div>
55
+        <div class="item">
56
+          <label class="name" for="txms">体重减少(kg)</label>
57
+          <div class="content">
58
+            <span class="text" id="txms">{{record.weight_loss}}</span>
59
+            
60
+          </div>
61
+        </div>
62
+        <div class="item">
63
+          <label class="name" for="txms">上次透后体重(kg)</label>
64
+          <div class="content">
65
+            <span class="text" id="txms">{{predialysis.weight_after_last_transparency}}</span>
66
+            
67
+          </div>
68
+        </div>
69
+    </div>
70
+  </div>
71
+</template>
72
+
73
+<script>
74
+  import {parseTime} from '@/utils'
75
+
76
+  export default {
77
+    name: 'LongAdviceSubMenu',
78
+    created () {
79
+      if (predialysis.weight_before > 0 && predialysis.weight_after_last_transparency > 0) {
80
+        add_weight = parseFloat(predialysis.weight_before - predialysis.weight_after_last_transparency).toFixed(2)
81
+      }
82
+    },
83
+    data () {
84
+      return {
85
+        result: [],
86
+        id: 0,
87
+        selectName: '',
88
+        add_weight:0
89
+      }
90
+    },
91
+    props: {
92
+      predialysis: {
93
+        type: Object
94
+      },
95
+      visibility: {
96
+        type: Boolean,
97
+        default: false
98
+      },
99
+      last_predialysis: {
100
+        type: Object
101
+      },
102
+      record: {
103
+        type: Object
104
+      },
105
+      last_record: {
106
+        type: Object
107
+      },
108
+      patient_prop: {
109
+        type: Object
110
+      },
111
+      prescription_prop: {
112
+        type: Object
113
+      },
114
+    },
115
+    computed: {
116
+    dialysis_date: function () {
117
+      return parseTime(this.$route.query.date, '{y}/{m}/{d}')
118
+      }
119
+    },
120
+    methods: {
121
+
122
+
123
+      cancle: function () {
124
+        this.$emit('menu-msg-tip')
125
+      },
126
+      comfirm: function () {
127
+        this.$emit('menu-msg-tip')
128
+      },
129
+      getValue: function () {
130
+        let form = {}
131
+
132
+        let results = []
133
+
134
+        for (let i = 0; i < this.propsForm.list.length; i++){
135
+          for (let a = 0; a < this.propsForm.result.length; a++){
136
+            if( this.propsForm.list[i].id == this.propsForm.result[a]){
137
+              results.push(this.propsForm.list[i])
138
+            }
139
+          }
140
+        }
141
+
142
+        var obj5={}
143
+        results = results.reduce((cur, next) => {
144
+          obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
145
+          return cur
146
+        }, [])
147
+
148
+        results
149
+
150
+        return results
151
+      },
152
+
153
+    },
154
+    watch: {
155
+      visibility (val) {
156
+        //初始化数据操作
157
+      }
158
+    }
159
+  }
160
+</script>
161
+
162
+<style style="stylesheet/scss" lang="scss" scoped>
163
+  .optionsBox {
164
+  background: #fff;
165
+  max-height: 10rem;
166
+  min-height: 5rem;
167
+  @media only screen and (max-width: 812px) {
168
+  min-height: 8rem !important;
169
+  }
170
+  ul {
171
+  overflow-y: scroll;
172
+  max-height: 9rem;
173
+  li {
174
+  height: 1.1rem;
175
+  line-height: 1.1rem;
176
+  border-bottom: 1px #e5e5e5 solid;
177
+  padding: 0 0.38rem;
178
+  font-size: 0.36rem;
179
+  color: $title-color;
180
+  }
181
+  .tick {
182
+  position: relative;
183
+  &::before {
184
+  content: "";
185
+  display: inline-block;
186
+  border: 2px solid $main-color;
187
+  border-top-width: 0;
188
+  border-right-width: 0;
189
+  width: 0.3rem;
190
+  height: 0.15rem;
191
+  -webkit-transform: rotate(-50deg);
192
+  position: absolute;
193
+  top: 0.38rem;
194
+  right: 0.44rem;
195
+  }
196
+  }
197
+  }
198
+  }
199
+  .CheckBox {
200
+  background: #fff;
201
+  max-height: 6.8rem;
202
+  min-height: 5rem;
203
+  overflow-y: scroll;
204
+  @media only screen and (max-width: 812px) {
205
+  max-height: 8rem !important;
206
+  min-height: 8rem !important;
207
+  }
208
+
209
+  ul {
210
+  li {
211
+  line-height: 1rem;
212
+  }
213
+  }
214
+  }
215
+</style>

+ 158 - 0
src/pages/main/dialog/subMenu/dryWeightMenu.vue View File

1
+<template>
2
+  <div>
3
+    <div class="Dialog" v-if="visibility">
4
+      <div class="DialogTit">
5
+        <span class="iconfont" @click="closeDialog()">&#xe720; 返回</span>
6
+        <h1 class="name">干体重调整</h1>
7
+        <span class="success" @click="commitDryWeight()">提交</span>
8
+      </div>
9
+
10
+      <div class="DialogContent">
11
+        <div class="item">
12
+          <label class="name" for="xll">干体重</label>
13
+          <div class="content">
14
+            <input autofocus placeholder="请输入干体重" type="tel" id="xll" v-model="dry_weight"/>
15
+          </div>
16
+        </div>
17
+
18
+        <div class="item" @click="select_nurse">
19
+          <h2 class="name">医生</h2>
20
+          <div class="content">
21
+            <span class="text" style="width: 100px">{{getDoctorName(this.creator)}}</span>
22
+            <span class="iconfont">&#xe6f9;</span>
23
+          </div>
24
+        </div>
25
+
26
+        <div class="item">
27
+          <h2 class="name">备注</h2>
28
+          <div class="content">
29
+            <input type="tel" id="xll" v-model="remark"/>
30
+          </div>
31
+        </div>
32
+      </div>
33
+    </div>
34
+    <!--<two-menu ref="selector">-->
35
+    <!--</two-menu>-->
36
+    <two-menu ref="selector"></two-menu>
37
+  </div>
38
+</template>
39
+
40
+<script>
41
+
42
+  import TwoMenu from '../TwoMenu'
43
+  import {CreateDryWeight} from '@/api/dialysis'
44
+
45
+  export default {
46
+
47
+    name: 'dryWeightMenu',
48
+    components: {TwoMenu},
49
+    data () {
50
+      return {
51
+        dry_weight: 0,
52
+        remark: '',
53
+        creator: 0,
54
+        visibility: false
55
+
56
+      }
57
+    },
58
+    props: {
59
+      propsForm: {
60
+        type: Object
61
+      },
62
+    },
63
+    methods: {
64
+      open () {
65
+        this.creator = this.$store.getters.user.user.id
66
+        this.dry_weight =  this.propsForm.weight
67
+        this.visibility = true
68
+      },
69
+      close () {
70
+        this.visibility = false
71
+      },
72
+      closeDialog () {
73
+        this.$emit('menu-cancle-two')
74
+
75
+      }, commitDryWeight () {
76
+        let params = {
77
+          id: this.$route.query.patient_id,
78
+          dry_weight: this.dry_weight,
79
+          remark: this.remark,
80
+          doctor_id: this.creator,
81
+        }
82
+        CreateDryWeight(params).then(rs => {
83
+          var res = rs.data
84
+          if (res.state == 1) {
85
+            this.$message.success("提交成功");
86
+            this.$emit('menu-comfirm-two',res.data.weight)
87
+
88
+          }
89
+        })
90
+      }, select_nurse () {
91
+        this.close()
92
+        var _this = this
93
+        if (this.$store.getters.user.user.user_type = 2) {
94
+          this.$refs.selector.showSingleSelect(this.propsForm.doctor, _this.creator, '选择医生', 'name', 'id', function (select_id) {
95
+            _this.visibility = true
96
+            _this.creator = select_id
97
+          }, function () {
98
+            _this.visibility = true
99
+          })
100
+        }
101
+      }, getDoctorName (id) {
102
+        for (let i = 0; i < this.propsForm.doctor.length; i++) {
103
+          if (this.propsForm.doctor[i].id == id) {
104
+            return this.propsForm.doctor[i].name
105
+          }
106
+        }
107
+
108
+      }
109
+    },
110
+  }
111
+</script>
112
+
113
+<style style="stylesheet/scss" lang="scss" scoped>
114
+  .optionsBox {
115
+  background: #fff;
116
+  max-height: 10.6rem;
117
+  min-height: 5rem;
118
+  overflow-y: scroll;
119
+  @media only screen and (max-width: 812px) {
120
+  min-height: 8rem !important;
121
+  }
122
+  ul {
123
+  li {
124
+  height: 1rem;
125
+  line-height: 1rem;
126
+  border-bottom: 1px #e5e5e5 solid;
127
+  padding: 0 0.38rem;
128
+  }
129
+  .tick {
130
+  position: relative;
131
+  &::before {
132
+  content: "";
133
+  display: inline-block;
134
+  border: 2px solid $main-color;
135
+  border-top-width: 0;
136
+  border-right-width: 0;
137
+  width: 0.3rem;
138
+  height: 0.15rem;
139
+  -webkit-transform: rotate(-50deg);
140
+  position: absolute;
141
+  top: 0.38rem;
142
+  right: 0.44rem;
143
+  }
144
+  }
145
+  }
146
+  }
147
+  .CheckBox {
148
+  background: #fff;
149
+  max-height: 10.6rem;
150
+  min-height: 5rem;
151
+  overflow-y: scroll;
152
+  ul {
153
+  li {
154
+  line-height: 1rem;
155
+  }
156
+  }
157
+  }
158
+</style>

+ 24 - 24
src/pages/main/dialog/subMenu/newCheckBoxSubMenu.vue View File

28
 
28
 
29
 <script>
29
 <script>
30
 export default {
30
 export default {
31
-  name: "newCheckBoxSubMenu",
32
-  created() {},
33
-  data() {
31
+  name: 'newCheckBoxSubMenu',
32
+  created () {},
33
+  data () {
34
     return {
34
     return {
35
       result: [],
35
       result: [],
36
       id: 0,
36
       id: 0,
37
-      selectName: ""
38
-    };
37
+      selectName: ''
38
+    }
39
   },
39
   },
40
   props: {
40
   props: {
41
     propsForm: {
41
     propsForm: {
47
     }
47
     }
48
   },
48
   },
49
   methods: {
49
   methods: {
50
-    cancle: function() {
51
-      this.$emit("menu-cancle");
50
+    cancle: function () {
51
+      this.$emit('menu-cancle')
52
     },
52
     },
53
-    comfirm: function() {
54
-      this.$emit("menu-comfirm", this.getValue());
53
+    comfirm: function () {
54
+      this.$emit('menu-comfirm', this.getValue())
55
     },
55
     },
56
-    getValue: function() {
57
-      let form = {};
56
+    getValue: function () {
57
+      let form = {}
58
       if (this.propsForm.isMultiple == 2) {
58
       if (this.propsForm.isMultiple == 2) {
59
-        form["type"] = this.propsForm.type;
60
-        form["result"] = this.propsForm.result;
59
+        form['type'] = this.propsForm.type
60
+        form['result'] = this.propsForm.result
61
         // form["click_ref"] = this.propsForm.click_ref
61
         // form["click_ref"] = this.propsForm.click_ref
62
       } else {
62
       } else {
63
-        form["type"] = this.propsForm.type;
64
-        form["selectId"] = this.propsForm.selectId;
63
+        form['type'] = this.propsForm.type
64
+        form['selectId'] = this.propsForm.selectId
65
         // form["click_ref"] = this.propsForm.click_ref
65
         // form["click_ref"] = this.propsForm.click_ref
66
       }
66
       }
67
-      return form;
67
+      return form
68
     },
68
     },
69
-    itemClick: function(id) {
69
+    itemClick: function (id) {
70
       if (id == -2) {
70
       if (id == -2) {
71
-        this.$emit("menu-empty", this.getValue());
71
+        this.$emit('menu-empty', this.getValue())
72
       }
72
       }
73
-      this.propsForm.selectId = id;
74
-      this.$emit("menu-comfirm", this.getValue());
73
+      this.propsForm.selectId = id
74
+      this.$emit('menu-comfirm', this.getValue())
75
     }
75
     }
76
   },
76
   },
77
   watch: {
77
   watch: {
78
-    visibility(val) {
79
-      //初始化数据操作
78
+    visibility (val) {
79
+      // 初始化数据操作
80
     }
80
     }
81
   }
81
   }
82
-};
82
+}
83
 </script>
83
 </script>
84
 
84
 
85
 <style style="stylesheet/scss" lang="scss" scoped>
85
 <style style="stylesheet/scss" lang="scss" scoped>
86
 .optionsBox {
86
 .optionsBox {
87
   background: #fff;
87
   background: #fff;
88
-  max-height: 10.6rem;
88
+  max-height: 9.6rem;
89
   min-height: 5rem;
89
   min-height: 5rem;
90
   overflow-y: scroll;
90
   overflow-y: scroll;
91
   @media only screen and (max-width: 812px) {
91
   @media only screen and (max-width: 812px) {

+ 245 - 1
src/pages/main/index.vue View File

66
         }
66
         }
67
       });
67
       });
68
     },
68
     },
69
+<<<<<<< .mine
69
     requestDialysisScheduals() {
70
     requestDialysisScheduals() {
70
       var date = this.$store.getters.app.dialysis_area.schedule_date;
71
       var date = this.$store.getters.app.dialysis_area.schedule_date;
71
       var type = 0;
72
       var type = 0;
83
               for (let y = 0; y < schedual.doctor_advice.length; y++) {
84
               for (let y = 0; y < schedual.doctor_advice.length; y++) {
84
                 if (schedual.doctor_advice[y].execution_state == 2) {
85
                 if (schedual.doctor_advice[y].execution_state == 2) {
85
                   doctorAdvice.push(schedual.doctor_advice[y]);
86
                   doctorAdvice.push(schedual.doctor_advice[y]);
87
+=======
88
+    methods: {
89
+
90
+      requestScheduals () {
91
+        var storedata = this.$store.getters.waitscheduals
92
+        var scheduals = storedata.waitscheduals
93
+        if (Object.keys(storedata).length > 0){
94
+              this.scheduals = scheduals
95
+              console.log(this.scheduals)
96
+              let doctorAdvice = []
97
+              for (let i = 0; i < this.scheduals.length; i++) {
98
+                for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
99
+                  if(this.scheduals[i].dialysis_order == null ){
100
+                    if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
101
+                      doctorAdvice.push(this.scheduals[i].doctor_advice[y])
102
+                    }
103
+                  }
104
+
105
+>>>>>>> .theirs
86
                 }
106
                 }
87
               }
107
               }
88
-            }
89
 
108
 
109
+<<<<<<< .mine
90
             const sorted = this.groupBy(doctorAdvice, function(item) {
110
             const sorted = this.groupBy(doctorAdvice, function(item) {
91
               return [item.groupno];
111
               return [item.groupno];
92
             });
112
             });
93
 
113
 
114
+=======
115
+              const sorted = this.groupBy(doctorAdvice, function (item) {
116
+                return [item.groupno]
117
+              })
118
+              this.unReadWaitNum = sorted.length
119
+>>>>>>> .theirs
120
+
121
+<<<<<<< .mine
94
             this.unReadDialysisNum = sorted.length;
122
             this.unReadDialysisNum = sorted.length;
95
           } else {
123
           } else {
96
             this.$toast({
124
             this.$toast({
99
           }
127
           }
100
         })
128
         })
101
         .catch(v => {});
129
         .catch(v => {});
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+=======
234
+        } else {
235
+          var date = parseTime(Date.parse(new Date()), '{y}-{m}-{d}')
236
+          getWaitingScheduals({date: date}).then(rs => {
237
+            var resp = rs.data
238
+             this.$store.dispatch("SetRequestScheduals",{resp})
239
+            // console.log(resp);
240
+            if (resp.state == 1) {
241
+              var scheduals = resp.data.scheduals
242
+              this.scheduals = scheduals
243
+              console.log(this.scheduals)
244
+              let doctorAdvice = []
245
+              for (let i = 0; i < this.scheduals.length; i++) {
246
+                for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
247
+                  if(this.scheduals[i].dialysis_order == null ){
248
+                    if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
249
+                      doctorAdvice.push(this.scheduals[i].doctor_advice[y])
250
+                    }
251
+                  }
252
+                }
253
+              }
254
+
255
+              const sorted = this.groupBy(doctorAdvice, function (item) {
256
+                return [item.groupno]
257
+              })
258
+
259
+
260
+              this.unReadWaitNum = sorted.length
261
+
262
+            } else {
263
+              this.$toast({
264
+                message: resp.msg
265
+              })
266
+            }
267
+          })
268
+        }
269
+      },
270
+      requestDialysisScheduals () {
271
+        var storedata = this.$store.getters.scheduals
272
+        var scheduals = storedata.scheduals
273
+        if (Object.keys(storedata).length > 0){
274
+          let doctorAdvice = []
275
+          for (let index = 0; index < scheduals.length; index++) {
276
+            const schedual = scheduals[index]
277
+            if (schedual.dialysis_order == null) {
278
+              continue
279
+            }
280
+            for (let y = 0; y < schedual.doctor_advice.length; y++) {
281
+              if (schedual.doctor_advice[y].execution_state == 2) {
282
+                doctorAdvice.push(schedual.doctor_advice[y])
283
+              }
284
+            }
285
+          }
286
+
287
+          const sorted = this.groupBy(doctorAdvice, function (item) {
288
+            return [item.groupno]
289
+          })
290
+
291
+          this.unReadDialysisNum = sorted.length
292
+        }else {
293
+          var date = this.$store.getters.app.dialysis_area.schedule_date
294
+          var type = 0
295
+          getDialysisScheduals({type: type, date: parseTime(date, '{y}-{m}-{d}')})
296
+            .then(rs => {
297
+              var resp = rs.data
298
+              this.$store.dispatch("SetRequestDialysisScheduals",{resp})
299
+              if (resp.state == 1) {
300
+                var scheduals = resp.data.scheduals
301
+                let doctorAdvice = []
302
+                for (let index = 0; index < scheduals.length; index++) {
303
+                  const schedual = scheduals[index]
304
+                  if (schedual.dialysis_order == null) {
305
+                    continue
306
+                  }
307
+                  for (let y = 0; y < schedual.doctor_advice.length; y++) {
308
+                    if (schedual.doctor_advice[y].execution_state == 2) {
309
+                      doctorAdvice.push(schedual.doctor_advice[y])
310
+                    }
311
+                  }
312
+                }
313
+
314
+                const sorted = this.groupBy(doctorAdvice, function (item) {
315
+                  return [item.groupno]
316
+                })
317
+
318
+                this.unReadDialysisNum = sorted.length
319
+
320
+              } else {
321
+                this.$toast({
322
+                  message: resp.msg
323
+                })
324
+              }
325
+            })
326
+            .catch(v => {
327
+            })
328
+          }
329
+      }, groupBy (array, f) {
330
+        const groups = {}
331
+        array.forEach(function (o) {
332
+          const group = JSON.stringify(f(o))
333
+          groups[group] = groups[group] || []
334
+          groups[group].push(o)
335
+        })
336
+        return Object.keys(groups).map(function (group) {
337
+          return groups[group]
338
+        })
339
+      },getData(){
340
+        console.log("111111")
341
+        // this.requestScheduals()
342
+        // this.requestDialysisScheduals()
343
+      }
344
+
345
+>>>>>>> .theirs
102
     },
346
     },
103
     groupBy(array, f) {
347
     groupBy(array, f) {
104
       const groups = {};
348
       const groups = {};

+ 2 - 0
src/pages/main/template/DialysisPrintOrderFive.vue View File

87
                   <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
87
                   <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
88
                   <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
88
                   <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
89
                   <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
89
                   <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
90
+                  <check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>
91
+
90
                 </div>
92
                 </div>
91
                 <div class="inline_block"  style="margin-left: 5px;">
93
                 <div class="inline_block"  style="margin-left: 5px;">
92
                   活动性出血:
94
                   活动性出血:

+ 3 - 2
src/pages/main/template/DialysisPrintOrderOne.vue View File

78
                       </div>
78
                       </div>
79
                     </td>
79
                     </td>
80
                     <td width="50">意识:</td>
80
                     <td width="50">意识:</td>
81
-                    <td width="180">
81
+                    <td width="220">
82
                       <div>
82
                       <div>
83
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
83
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
84
                                    showValue='清醒'></label-box>
84
                                    showValue='清醒'></label-box>
85
                         &nbsp;
85
                         &nbsp;
86
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
86
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
87
                                    showValue='嗜睡'></label-box>
87
                                    showValue='嗜睡'></label-box>
88
-                        &nbsp;
89
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
88
                         <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
90
                                    showValue='昏迷'></label-box>
89
                                    showValue='昏迷'></label-box>
90
+                        <label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'
91
+                                   showValue='模糊'></label-box>
91
                       </div>
92
                       </div>
92
                     </td>
93
                     </td>
93
                     <td width="10"></td>
94
                     <td width="10"></td>

File diff suppressed because it is too large
+ 1515 - 0
src/pages/main/template/DialysisPrintOrderSix.vue


+ 8 - 5
src/pages/main/template/DialysisPrintOrderTwo.vue View File

55
                   <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
55
                   <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
56
                   <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
56
                   <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
57
                 </div>
57
                 </div>
58
-                <div class="inline_block" style="margin-left: 30px;">
58
+                <div class="inline_block" style="margin-left: 5px;">
59
                   透析频次:
59
                   透析频次:
60
                   <div class="under_line" style="width: 50px;text-align: left">
60
                   <div class="under_line" style="width: 50px;text-align: left">
61
                     {{predialysis.dialysis_count?predialysis.dialysis_count:''}}
61
                     {{predialysis.dialysis_count?predialysis.dialysis_count:''}}
62
                   </div>
62
                   </div>
63
                   次/周
63
                   次/周
64
                 </div>
64
                 </div>
65
-                <div class="inline_block" style="margin-left: 30px;">
65
+                <div class="inline_block" style="margin-left: 5px;">
66
                   透析机编号:
66
                   透析机编号:
67
                   <div class="under_line" style="width: 40px;text-align: left">{{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}</div>
67
                   <div class="under_line" style="width: 40px;text-align: left">{{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}</div>
68
                   型号
68
                   型号
69
                   <div class="under_line" style="width: 70px;text-align: left">{{predialysis&&predialysis.machine_type.length > 0 ?predialysis.machine_type:''}}</div>
69
                   <div class="under_line" style="width: 70px;text-align: left">{{predialysis&&predialysis.machine_type.length > 0 ?predialysis.machine_type:''}}</div>
70
                 </div>
70
                 </div>
71
+
72
+
71
               </div>
73
               </div>
72
               <div class="row" style="padding: 2px 0;line-height:19px;">
74
               <div class="row" style="padding: 2px 0;line-height:19px;">
73
                 <div class="inline_block" >
75
                 <div class="inline_block" >
75
                   <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
77
                   <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
76
                   <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
78
                   <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
77
                   <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
79
                   <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
80
+                  <check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>
78
                 </div>
81
                 </div>
79
-                <div class="inline_block"  style="margin-left: 20px;">
82
+                <div class="inline_block"  >
80
                   活动性出血:
83
                   活动性出血:
81
                   <check-box text="无" :checked="predialysis.is_hemorrhage==2?true:false"></check-box>
84
                   <check-box text="无" :checked="predialysis.is_hemorrhage==2?true:false"></check-box>
82
                   <check-box text="异常" :checked="predialysis.is_hemorrhage==1?true:false"></check-box>
85
                   <check-box text="异常" :checked="predialysis.is_hemorrhage==1?true:false"></check-box>
268
                   <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
271
                   <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
269
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
272
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
270
                   <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
273
                   <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
271
-                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:'/'}}</td>
274
+                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume / 1000:'/'}}</td>
272
                   <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
275
                   <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
273
                   <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
276
                   <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
274
                   <td>
277
                   <td>
354
                   <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
357
                   <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
355
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
358
                   <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
356
                   <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
359
                   <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
357
-                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:'/'}}</td>
360
+                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume /1000:'/'}}</td>
358
                   <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
361
                   <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
359
                   <td style="line-height:16px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}</span></div>  </td>
362
                   <td style="line-height:16px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}</span></div>  </td>
360
                   <td>
363
                   <td>

File diff suppressed because it is too large
+ 2114 - 24
src/pages/main/today/TodayTab.vue


+ 246 - 9
src/pages/main/today/acceptsAssessment.vue View File

59
           <span class="content">{{this.record.sick_condition_other}}</span>
59
           <span class="content">{{this.record.sick_condition_other}}</span>
60
         </li>
60
         </li>
61
 
61
 
62
+<<<<<<< .mine
62
         <li v-if="isShow('摄入量')">
63
         <li v-if="isShow('摄入量')">
64
+=======
65
+        <li style="height: 0.6rem;"  v-if="isShow('摄入量')">
66
+>>>>>>> .theirs
63
           <label>摄入量:</label>
67
           <label>摄入量:</label>
64
           <span class="content">{{intakes}}</span>
68
           <span class="content">{{intakes}}</span>
65
         </li>
69
         </li>
66
 
70
 
67
         <!-- </ul>
71
         <!-- </ul>
68
 
72
 
69
-
70
         <ul >-->
73
         <ul >-->
71
         <li v-if="isShow('营养状况')">
74
         <li v-if="isShow('营养状况')">
72
           <label>营养状况:</label>
75
           <label>营养状况:</label>
85
           <span class="content">{{this.record.psychological_other}}</span>
88
           <span class="content">{{this.record.psychological_other}}</span>
86
         </li>
89
         </li>
87
       </ul>
90
       </ul>
91
+<<<<<<< .mine
92
+
93
+=======
94
+
95
+>>>>>>> .theirs
88
     </div>
96
     </div>
89
   </div>
97
   </div>
90
 </template>
98
 </template>
91
 
99
 
92
 <script>
100
 <script>
93
 export default {
101
 export default {
94
-  name: "AcceptsAssessment",
95
-  data() {
102
+  name: 'AcceptsAssessment',
103
+  data () {
96
     return {
104
     return {
97
-      title: "接诊评估 ",
105
+      title: '接诊评估 ',
98
 
106
 
99
       ways: {
107
       ways: {
108
+<<<<<<< .mine
100
         "1": "步行",
109
         "1": "步行",
101
         "2": "扶行",
110
         "2": "扶行",
102
         "3": "轮椅",
111
         "3": "轮椅",
103
         "4": "平车"
112
         "4": "平车"
113
+=======
114
+        '1': '步行',
115
+        '2': '扶行',
116
+        '3': '轮椅',
117
+        '4': '平车'
118
+>>>>>>> .theirs
104
       },
119
       },
105
       conditions: {
120
       conditions: {
121
+<<<<<<< .mine
106
         "1": "住院",
122
         "1": "住院",
107
         "2": "门诊",
123
         "2": "门诊",
108
         "3": "手术期"
124
         "3": "手术期"
125
+=======
126
+        '1': '住院',
127
+        '2': '门诊',
128
+        '3': '手术期'
129
+>>>>>>> .theirs
109
       },
130
       },
110
       consciousnesses: {
131
       consciousnesses: {
132
+<<<<<<< .mine
111
         "1": "清醒",
133
         "1": "清醒",
112
         "2": "嗜睡",
134
         "2": "嗜睡",
113
         "3": "昏迷"
135
         "3": "昏迷"
136
+
137
+=======
138
+        '1': '清醒',
139
+        '2': '嗜睡',
140
+        '3': '昏迷',
141
+        '4': '模糊'
142
+>>>>>>> .theirs
114
       },
143
       },
115
       appetites: {
144
       appetites: {
145
+<<<<<<< .mine
116
         "1": "正常",
146
         "1": "正常",
117
         "2": "减退",
147
         "2": "减退",
118
         "3": "恶心",
148
         "3": "恶心",
119
         "4": "呕吐",
149
         "4": "呕吐",
120
         "5": "腹泻"
150
         "5": "腹泻"
151
+=======
152
+        '1': '正常',
153
+        '2': '减退',
154
+        '3': '恶心',
155
+        '4': '呕吐',
156
+        '5': '腹泻'
157
+>>>>>>> .theirs
121
       },
158
       },
122
       postures: {
159
       postures: {
160
+<<<<<<< .mine
123
         "1": "自动体位",
161
         "1": "自动体位",
124
         "2": "平卧位",
162
         "2": "平卧位",
125
         "3": "半卧位",
163
         "3": "半卧位",
154
         "2": "约束带",
192
         "2": "约束带",
155
         "3": "床栏",
193
         "3": "床栏",
156
         "4": "加强宣教"
194
         "4": "加强宣教"
195
+
196
+=======
197
+        '1': '自动体位',
198
+        '2': '平卧位',
199
+        '3': '半卧位',
200
+        '4': '端坐位',
201
+        '5': '躁动不安'
202
+      },
203
+sick_condition: {
204
+        '1': '一般',
205
+        '2': '重',
206
+        '3': '危'
207
+      },
208
+danger_level: {
209
+        '1': '无',
210
+        '2': '低风险',
211
+        '3': '中度风险',
212
+        '4': '高风险'
213
+
214
+      },
215
+intake: {
216
+        '1': '正常',
217
+        '2': '减少'
218
+      }, 
219
+nutrition: {
220
+        '1': '正常',
221
+        '2': '营养不良'
222
+      }, 
223
+psychological_assessment: {
224
+        '1': '正常',
225
+        '2': '异常'
226
+      }, 
227
+precautionss: {
228
+        '1': '镇定剂',
229
+        '2': '约束带',
230
+        '3': '床栏',
231
+        '4': '加强宣教'
232
+>>>>>>> .theirs
157
       }
233
       }
158
-    };
234
+    }
159
   },
235
   },
160
   props: {
236
   props: {
161
     record: {
237
     record: {
163
     }
239
     }
164
   },
240
   },
165
   computed: {
241
   computed: {
242
+<<<<<<< .mine
166
     way: function() {
243
     way: function() {
167
       if (this.record == null || this.record.id == "") {
244
       if (this.record == null || this.record.id == "") {
168
         return "";
245
         return "";
246
+=======
247
+    way: function () {
248
+      if (this.record == null || this.record.id == '') {
249
+        return ''
250
+>>>>>>> .theirs
169
       } else {
251
       } else {
252
+<<<<<<< .mine
170
         return this.ways[this.record.way] == undefined
253
         return this.ways[this.record.way] == undefined
171
           ? ""
254
           ? ""
172
           : this.ways[this.record.way] + "";
255
           : this.ways[this.record.way] + "";
256
+=======
257
+        return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
258
+
259
+
260
+>>>>>>> .theirs
173
       }
261
       }
174
     },
262
     },
263
+<<<<<<< .mine
175
     condition: function() {
264
     condition: function() {
176
       if (this.record == null || this.record.id == "") {
265
       if (this.record == null || this.record.id == "") {
177
         return "";
266
         return "";
267
+=======
268
+    condition: function () {
269
+      if (this.record == null || this.record.id == '') {
270
+        return ''
271
+>>>>>>> .theirs
178
       } else {
272
       } else {
273
+<<<<<<< .mine
179
         return this.conditions[this.record.condition] == undefined
274
         return this.conditions[this.record.condition] == undefined
180
           ? ""
275
           ? ""
181
           : this.conditions[this.record.condition] + "";
276
           : this.conditions[this.record.condition] + "";
277
+=======
278
+        return this.conditions[this.record.condition] == undefined ? '' : this.conditions[this.record.condition] + ''
279
+
280
+
281
+>>>>>>> .theirs
182
       }
282
       }
183
     },
283
     },
284
+<<<<<<< .mine
184
     consciousness: function() {
285
     consciousness: function() {
185
       if (this.record == null || this.record.id == "") {
286
       if (this.record == null || this.record.id == "") {
186
         return "";
287
         return "";
288
+=======
289
+    consciousness: function () {
290
+      if (this.record == null || this.record.id == '') {
291
+        return ''
292
+>>>>>>> .theirs
187
       } else {
293
       } else {
294
+<<<<<<< .mine
188
         return this.consciousnesses[this.record.consciousness] == undefined
295
         return this.consciousnesses[this.record.consciousness] == undefined
189
           ? ""
296
           ? ""
190
           : this.consciousnesses[this.record.consciousness] + "";
297
           : this.consciousnesses[this.record.consciousness] + "";
298
+=======
299
+        return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
300
+
301
+
302
+>>>>>>> .theirs
191
       }
303
       }
192
     },
304
     },
305
+<<<<<<< .mine
193
     appetite: function() {
306
     appetite: function() {
194
       if (this.record == null || this.record.id == "") {
307
       if (this.record == null || this.record.id == "") {
195
         return "";
308
         return "";
309
+=======
310
+    appetite: function () {
311
+      if (this.record == null || this.record.id == '') {
312
+        return ''
313
+>>>>>>> .theirs
196
       } else {
314
       } else {
315
+<<<<<<< .mine
197
         return this.appetites[this.record.appetite] == undefined
316
         return this.appetites[this.record.appetite] == undefined
198
           ? ""
317
           ? ""
199
           : this.appetites[this.record.appetite] + "";
318
           : this.appetites[this.record.appetite] + "";
319
+=======
320
+        return this.appetites[this.record.appetite] == undefined ? '' : this.appetites[this.record.appetite] + ''
321
+
322
+
323
+>>>>>>> .theirs
200
       }
324
       }
201
     },
325
     },
326
+<<<<<<< .mine
202
     posture: function() {
327
     posture: function() {
203
       if (this.record == null || this.record.id == "") {
328
       if (this.record == null || this.record.id == "") {
204
         return "";
329
         return "";
330
+=======
331
+    posture: function () {
332
+      if (this.record == null || this.record.id == '') {
333
+        return ''
334
+>>>>>>> .theirs
205
       } else {
335
       } else {
336
+<<<<<<< .mine
206
         return this.postures[this.record.posture] == undefined
337
         return this.postures[this.record.posture] == undefined
207
           ? ""
338
           ? ""
208
           : this.postures[this.record.posture] + "";
339
           : this.postures[this.record.posture] + "";
340
+=======
341
+        return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
342
+
343
+
344
+>>>>>>> .theirs
209
       }
345
       }
346
+<<<<<<< .mine
210
     },
347
     },
211
     sickCondition: function() {
348
     sickCondition: function() {
212
       if (this.record == null || this.record.id == "") {
349
       if (this.record == null || this.record.id == "") {
213
         return "";
350
         return "";
351
+=======
352
+    }, 
353
+sickCondition: function () {
354
+      if (this.record == null || this.record.id == '') {
355
+        return ''
356
+>>>>>>> .theirs
214
       } else {
357
       } else {
358
+<<<<<<< .mine
215
         return this.sick_condition[this.record.sick_condition] == undefined
359
         return this.sick_condition[this.record.sick_condition] == undefined
216
           ? ""
360
           ? ""
217
           : this.sick_condition[this.record.sick_condition] + "";
361
           : this.sick_condition[this.record.sick_condition] + "";
362
+=======
363
+        return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
364
+
365
+
366
+>>>>>>> .theirs
218
       }
367
       }
368
+<<<<<<< .mine
219
     },
369
     },
220
     dangerLevel: function() {
370
     dangerLevel: function() {
221
       if (this.record == null || this.record.id == "") {
371
       if (this.record == null || this.record.id == "") {
222
         return "";
372
         return "";
373
+=======
374
+    }, 
375
+dangerLevel: function () {
376
+      if (this.record == null || this.record.id == '') {
377
+        return ''
378
+>>>>>>> .theirs
223
       } else {
379
       } else {
380
+<<<<<<< .mine
224
         return this.danger_level[this.record.danger_level] == undefined
381
         return this.danger_level[this.record.danger_level] == undefined
225
           ? ""
382
           ? ""
226
           : this.danger_level[this.record.danger_level] + "";
383
           : this.danger_level[this.record.danger_level] + "";
384
+=======
385
+        return this.danger_level[this.record.danger_level] == undefined ? '' : this.danger_level[this.record.danger_level] + ''
386
+
387
+
388
+>>>>>>> .theirs
227
       }
389
       }
390
+<<<<<<< .mine
228
     },
391
     },
229
     precautions: function() {
392
     precautions: function() {
230
       if (this.record == null || this.record.id == "") {
393
       if (this.record == null || this.record.id == "") {
231
         return "";
394
         return "";
395
+=======
396
+    }, 
397
+precautions: function () {
398
+      if (this.record == null || this.record.id == '') {
399
+        return ''
400
+>>>>>>> .theirs
232
       } else {
401
       } else {
402
+<<<<<<< .mine
233
         return this.precautionss[this.record.precaution] == undefined
403
         return this.precautionss[this.record.precaution] == undefined
234
           ? ""
404
           ? ""
235
           : this.precautionss[this.record.precaution] + "";
405
           : this.precautionss[this.record.precaution] + "";
406
+=======
407
+        return this.precautionss[this.record.precaution] == undefined ? '' : this.precautionss[this.record.precaution] + ''
408
+
409
+
410
+>>>>>>> .theirs
236
       }
411
       }
412
+<<<<<<< .mine
237
     },
413
     },
238
     intakes: function() {
414
     intakes: function() {
239
       if (this.record == null || this.record.id == "") {
415
       if (this.record == null || this.record.id == "") {
240
         return "";
416
         return "";
417
+=======
418
+    }, 
419
+intakes: function () {
420
+      if (this.record == null || this.record.id == '') {
421
+        return ''
422
+>>>>>>> .theirs
241
       } else {
423
       } else {
424
+<<<<<<< .mine
242
         return this.intake[this.record.intake] == undefined
425
         return this.intake[this.record.intake] == undefined
243
           ? ""
426
           ? ""
244
           : this.intake[this.record.intake] + "";
427
           : this.intake[this.record.intake] + "";
428
+=======
429
+        return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
430
+
431
+
432
+>>>>>>> .theirs
245
       }
433
       }
434
+<<<<<<< .mine
246
     },
435
     },
247
     nutritions: function() {
436
     nutritions: function() {
248
       if (this.record == null || this.record.id == "") {
437
       if (this.record == null || this.record.id == "") {
249
         return "";
438
         return "";
439
+=======
440
+    }, 
441
+nutritions: function () {
442
+      if (this.record == null || this.record.id == '') {
443
+        return ''
444
+>>>>>>> .theirs
250
       } else {
445
       } else {
446
+<<<<<<< .mine
251
         return this.nutrition[this.record.nutrition] == undefined
447
         return this.nutrition[this.record.nutrition] == undefined
252
           ? ""
448
           ? ""
253
           : this.nutrition[this.record.nutrition] + "";
449
           : this.nutrition[this.record.nutrition] + "";
450
+=======
451
+        return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
452
+
453
+
454
+>>>>>>> .theirs
254
       }
455
       }
456
+<<<<<<< .mine
255
     },
457
     },
256
     psychologicalAssessment: function() {
458
     psychologicalAssessment: function() {
257
       if (this.record == null || this.record.id == "") {
459
       if (this.record == null || this.record.id == "") {
258
         return "";
460
         return "";
461
+=======
462
+    }, 
463
+psychologicalAssessment: function () {
464
+      if (this.record == null || this.record.id == '') {
465
+        return ''
466
+>>>>>>> .theirs
259
       } else {
467
       } else {
468
+<<<<<<< .mine
260
         return this.psychological_assessment[
469
         return this.psychological_assessment[
261
           this.record.psychological_assessment
470
           this.record.psychological_assessment
262
         ] == undefined
471
         ] == undefined
264
           : this.psychological_assessment[
473
           : this.psychological_assessment[
265
               this.record.psychological_assessment
474
               this.record.psychological_assessment
266
             ] + "";
475
             ] + "";
476
+=======
477
+        return this.psychological_assessment[this.record.psychological_assessment] == undefined ? '' : this.psychological_assessment[this.record.psychological_assessment] + ''
478
+
479
+
480
+
481
+
482
+
483
+
484
+>>>>>>> .theirs
267
       }
485
       }
268
     }
486
     }
269
   },
487
   },
270
   methods: {
488
   methods: {
489
+<<<<<<< .mine
271
     isShow(name) {
490
     isShow(name) {
272
       var filedList = this.$store.getters.user.fileds;
491
       var filedList = this.$store.getters.user.fileds;
492
+=======
493
+    isShow (name) {
494
+      var filedList = this.$store.getters.user.fileds
495
+>>>>>>> .theirs
273
 
496
 
497
+<<<<<<< .mine
274
       for (let i = 0; i < filedList.length; i++) {
498
       for (let i = 0; i < filedList.length; i++) {
275
         if (
499
         if (
276
           filedList[i].module == 2 &&
500
           filedList[i].module == 2 &&
278
           filedList[i].is_show == 1
502
           filedList[i].is_show == 1
279
         ) {
503
         ) {
280
           return true;
504
           return true;
505
+=======
506
+      for (let i = 0; i < filedList.length; i++) {
507
+        if (filedList[i].module == 2 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
508
+          return true
509
+
510
+
511
+
512
+
513
+>>>>>>> .theirs
281
         }
514
         }
282
       }
515
       }
516
+<<<<<<< .mine
283
       return false;
517
       return false;
284
     }
518
     }
519
+
520
+=======
521
+      return false
522
+    }
523
+
524
+>>>>>>> .theirs
285
   }
525
   }
286
-};
526
+}
287
 </script>
527
 </script>
288
 
528
 
289
 <style rel="stylesheet/scss" lang="scss" scoped>
529
 <style rel="stylesheet/scss" lang="scss" scoped>
290
 </style>
530
 </style>
291
-
292
-
293
-

+ 410 - 405
src/pages/main/today/assessmentAfter.vue View File

17
         <li v-if="isShow('实际超滤量')">
17
         <li v-if="isShow('实际超滤量')">
18
           <label for="sjcll">实际超滤量: </label>
18
           <label for="sjcll">实际超滤量: </label>
19
           <span class="content" id="sjcll">{{actual_ultrafiltration?actual_ultrafiltration:''}}</span>
19
           <span class="content" id="sjcll">{{actual_ultrafiltration?actual_ultrafiltration:''}}</span>
20
-          <span class="unit">{{actual_ultrafiltration?"L":''}}</span>
20
+          <span v-if="template_id == 6" class="unit">{{actual_ultrafiltration?"ml":''}}</span>
21
+          <span v-else class="unit">{{actual_ultrafiltration?"L":''}}</span>
21
         </li>
22
         </li>
22
         <li v-if="isShow('透析器凝血')">
23
         <li v-if="isShow('透析器凝血')">
23
           <label for="nx">透析器凝血 : </label>
24
           <label for="nx">透析器凝血 : </label>
123
         </li>
124
         </li>
124
       <!-- </ul>
125
       <!-- </ul>
125
 
126
 
126
-
127
       <ul > -->
127
       <ul > -->
128
         <li v-if="isShow('透析过程')">
128
         <li v-if="isShow('透析过程')">
129
           <label for="tw">透析过程 : </label>
129
           <label for="tw">透析过程 : </label>
135
           <span class="content" id="tw" >{{in_advance_reason}}</span>
135
           <span class="content" id="tw" >{{in_advance_reason}}</span>
136
         </li>
136
         </li>
137
 
137
 
138
-
139
-
140
         <li v-if="isShow('内瘘管拔针后压迫止血时间')">
138
         <li v-if="isShow('内瘘管拔针后压迫止血时间')">
141
           <label for="ml">内瘘管拔针后压迫止血时间 : </label>
139
           <label for="ml">内瘘管拔针后压迫止血时间 : </label>
142
           <span id="ml" class="content" v-if="hemostasis_minute">{{hemostasis_minute}}min</span>
140
           <span id="ml" class="content" v-if="hemostasis_minute">{{hemostasis_minute}}min</span>
182
 </template>
180
 </template>
183
 
181
 
184
 <script>
182
 <script>
185
-  export default {
186
-    name: "DialysisPrescription",
187
-    data() {
188
-      return {
189
-        title: "透后评估 ",
190
-        // note: "无明显异常",
191
-        // doctor: "刘小军  医生",
192
-        // info1: [
193
-        //   { value: "1", label: "透后体重 : ", content: "55", unit: "kg" },
194
-        //   { value: "2", label: "收缩压 : ", content: "174", unit: "mmHg" },
195
-        //   { value: "3", label: "实际超滤量: ", content: "20", unit: "ml" },
196
-        //   { value: "4", label: "疑血 : ", content: "无震颤", unit: "" },
197
-        //   { value: "5", label: "", content: "", unit: "" }
198
-        // ],
199
-        // info2: [
200
-        //   { value: "1", label: "体重减少 : ", content: "3", unit: "kg" },
201
-        //   { value: "2", label: "舒张压 : ", content: "200", unit: "mmHg" },
202
-        //   { value: "3", label: "实际置换量 : ", content: "20", unit: "ml" },
203
-        //   { value: "3", label: "透后症状 : ", content: "无症状", unit: "" },
204
-        //   { value: "4", label: "导管 : ", content: "导管堵塞", unit: "" }
205
-        // ],
206
-        // info3: [
207
-        //   { value: "1", label: "体温 : ", content: "14", unit: "℃" },
208
-        //   { value: "2", label: "心率 : ", content: "2", unit: "次/分" },
209
-        //   { value: "3", label: "实际治疗时长 : ", content: "4时4分", unit: "" },
210
-        //   { value: "4", label: "透析中入量: ", content: "一般", unit: "" },
211
-        //   { value: "4", label: "并发症: ", content: "痔疮出血", unit: "" }
212
-        // ]
213
-      };
214
-    },
215
-    props: {
216
-      record: {
217
-        type: Object,
218
-      }
219
-    },
220
-    computed: {
221
-      weight_after: function () {
222
-        if (this.record == null || this.record.id == "") {
223
-          return "-"
224
-        }
225
-        return this.record.weight_after
226
-      },
227
-      systolic_blood_pressure: function () {
228
-        if (this.record == null || this.record.id == "") {
229
-          return "-"
230
-        }
231
-        return this.record.systolic_blood_pressure
232
-      },
233
-      actual_ultrafiltration: function () {
234
-        if (this.record == null || this.record.id == "") {
235
-          return "-"
236
-        }
237
-        return this.record.actual_ultrafiltration
238
-      },
239
-      cruor: function () {
240
-        if (this.record == null || this.record.id == "") {
241
-          return "-"
242
-        }
243
-        return this.record.cruor
244
-      },
245
-      internal_fistula: function () {
246
-        if (this.record == null || this.record.id == "") {
247
-          return "-"
248
-        }
249
-        return this.record.internal_fistula;
250
-      },
251
-      weight_loss: function () {
252
-        if (this.record == null || this.record.id == "") {
253
-          return "-"
254
-        }
255
-        return this.record.weight_loss
256
-      },
257
-      inpatient_department: function () {
258
-        if (this.record == null || this.record.id == "") {
259
-          return "-"
260
-        }
261
-        return this.record.inpatient_department
262
-      },
263
-      patient_gose: function () {
264
-        if (this.record == null || this.record.id == "") {
265
-          return 0
266
-        }
267
-        return this.record.patient_gose
268
-      },
269
-      diastolic_blood_pressure: function () {
270
-        if (this.record == null || this.record.id == "") {
271
-          return "-"
272
-        }
273
-        return this.record.diastolic_blood_pressure
274
-      },
275
-      actual_displacement: function () {
276
-        if (this.record == null || this.record.id == "") {
277
-          return "-"
278
-        }
279
-        return this.record.actual_displacement
280
-      },
281
-      symptom_after_dialysis: function () {
282
-        if (this.record == null || this.record.id == "") {
283
-          return "-"
284
-        }
285
-        return this.record.symptom_after_dialysis
183
+export default {
184
+  name: 'DialysisPrescription',
185
+  data () {
186
+    return {
187
+      title: '透后评估 ',
188
+      template_id: 0
189
+      // note: "无明显异常",
190
+      // doctor: "刘小军  医生",
191
+      // info1: [
192
+      //   { value: "1", label: "透后体重 : ", content: "55", unit: "kg" },
193
+      //   { value: "2", label: "收缩压 : ", content: "174", unit: "mmHg" },
194
+      //   { value: "3", label: "实际超滤量: ", content: "20", unit: "ml" },
195
+      //   { value: "4", label: "疑血 : ", content: "无震颤", unit: "" },
196
+      //   { value: "5", label: "", content: "", unit: "" }
197
+      // ],
198
+      // info2: [
199
+      //   { value: "1", label: "体重减少 : ", content: "3", unit: "kg" },
200
+      //   { value: "2", label: "舒张压 : ", content: "200", unit: "mmHg" },
201
+      //   { value: "3", label: "实际置换量 : ", content: "20", unit: "ml" },
202
+      //   { value: "3", label: "透后症状 : ", content: "无症状", unit: "" },
203
+      //   { value: "4", label: "导管 : ", content: "导管堵塞", unit: "" }
204
+      // ],
205
+      // info3: [
206
+      //   { value: "1", label: "体温 : ", content: "14", unit: "℃" },
207
+      //   { value: "2", label: "心率 : ", content: "2", unit: "次/分" },
208
+      //   { value: "3", label: "实际治疗时长 : ", content: "4时4分", unit: "" },
209
+      //   { value: "4", label: "透析中入量: ", content: "一般", unit: "" },
210
+      //   { value: "4", label: "并发症: ", content: "痔疮出血", unit: "" }
211
+      // ]
212
+    }
213
+    },
214
+  props: {
215
+    record: {
216
+      type: Object
217
+    }
218
+  },
219
+created () {
220
+    this.template_id = this.$store.getters.user.template_info.template_id
221
+  },
222
+  computed: {
223
+    weight_after: function () {
224
+      if (this.record == null || this.record.id == '') {
225
+        return '-'
226
+      }
227
+      return this.record.weight_after
228
+    },
229
+    systolic_blood_pressure: function () {
230
+      if (this.record == null || this.record.id == '') {
231
+        return '-'
232
+      }
233
+      return this.record.systolic_blood_pressure
234
+    },
235
+    actual_ultrafiltration: function () {
236
+      if (this.record == null || this.record.id == '') {
237
+        return '-'
238
+      }
239
+      return this.record.actual_ultrafiltration
240
+    },
241
+    cruor: function () {
242
+      if (this.record == null || this.record.id == '') {
243
+        return '-'
244
+      }
245
+      return this.record.cruor
246
+    },
247
+    internal_fistula: function () {
248
+      if (this.record == null || this.record.id == '') {
249
+        return '-'
250
+      }
251
+      return this.record.internal_fistula
286
       },
252
       },
287
-      blood_access_part: function () {
288
-        if (this.record == null || this.record.id == "") {
289
-          return "-"
290
-        }
291
-        let vascular_access = this.$store.getters.vascular_access;
253
+    weight_loss: function () {
254
+      if (this.record == null || this.record.id == '') {
255
+        return '-'
256
+      }
257
+      return this.record.weight_loss
258
+    },
259
+    inpatient_department: function () {
260
+      if (this.record == null || this.record.id == '') {
261
+        return '-'
262
+      }
263
+      return this.record.inpatient_department
264
+    },
265
+    patient_gose: function () {
266
+      if (this.record == null || this.record.id == '') {
267
+        return 0
268
+      }
269
+      return this.record.patient_gose
270
+    },
271
+    diastolic_blood_pressure: function () {
272
+      if (this.record == null || this.record.id == '') {
273
+        return '-'
274
+      }
275
+      return this.record.diastolic_blood_pressure
276
+    },
277
+    actual_displacement: function () {
278
+      if (this.record == null || this.record.id == '') {
279
+        return '-'
280
+      }
281
+      return this.record.actual_displacement
282
+    },
283
+    symptom_after_dialysis: function () {
284
+      if (this.record == null || this.record.id == '') {
285
+        return '-'
286
+      }
287
+      return this.record.symptom_after_dialysis
288
+    },
289
+    blood_access_part: function () {
290
+      if (this.record == null || this.record.id == '') {
291
+        return '-'
292
+      }
293
+      let vascular_access = this.$store.getters.vascular_access
292
         let valen = vascular_access.length
294
         let valen = vascular_access.length
293
-        let name = '-';
295
+      let name = '-'
294
         for (let index = 0; index < valen; index++) {
296
         for (let index = 0; index < valen; index++) {
295
-          if (vascular_access[index].id == this.record.blood_access_part_id) {
296
-            name = vascular_access[index].name;
297
+        if (vascular_access[index].id == this.record.blood_access_part_id) {
298
+          name = vascular_access[index].name
297
             break;
299
             break;
298
-          }
299
         }
300
         }
300
-        return name
301
-      },
302
-      puncture_point_oozing_blood_name: function () {
303
-
304
-        if (this.record == null || this.record.id == "") {
305
-          return "-"
306
-        }
307
-        switch (this.record.puncture_point_oozing_blood) {
308
-          case 1:
309
-            return '有'
310
-            break;
301
+      }
302
+      return name
303
+    },
304
+    puncture_point_oozing_blood_name: function () {
305
+      if (this.record == null || this.record.id == '') {
306
+        return '-'
307
+      }
308
+      switch (this.record.puncture_point_oozing_blood) {
309
+        case 1:
310
+          return '有'
311
+          break
311
           case 2:
312
           case 2:
312
-            return '无'
313
-            break
313
+          return '无'
314
+          break
314
 
315
 
315
-          default:
316
-            return '-'
317
-            break;
316
+        default:
317
+          return '-'
318
+          break
318
         }
319
         }
319
-      },eat_name:function(){
320
-        if (this.record == null || this.record.id == "") {
321
-          return "-"
322
-        }
323
-        switch (this.record.is_eat) {
324
-          case 1:
325
-            return '有'
326
-            break;
320
+    }, 
321
+eat_name: function () {
322
+      if (this.record == null || this.record.id == '') {
323
+        return '-'
324
+      }
325
+      switch (this.record.is_eat) {
326
+        case 1:
327
+          return '有'
328
+          break
327
           case 2:
329
           case 2:
328
-            return '无'
329
-            break
330
+          return '无'
331
+          break
330
 
332
 
331
-          default:
332
-            return '-'
333
-            break;
333
+        default:
334
+          return '-'
335
+          break
334
         }
336
         }
335
-      },
336
-      patient_gose_name: function () {
337
-        if (this.record == null || this.record.id == "") {
338
-          return "-"
339
-        }
340
-        switch (this.record.patient_gose) {
341
-          case 1:
342
-            return '离院'
343
-            break;
337
+    },
338
+    patient_gose_name: function () {
339
+      if (this.record == null || this.record.id == '') {
340
+        return '-'
341
+      }
342
+      switch (this.record.patient_gose) {
343
+        case 1:
344
+          return '离院'
345
+          break
344
           case 2:
346
           case 2:
345
-            return '留观'
346
-            break
347
-          case 3:
348
-            return '住院'
349
-            break
347
+          return '留观'
348
+          break
349
+        case 3:
350
+          return '住院'
351
+          break
350
 
352
 
351
-          default:
352
-            return '-'
353
-            break;
353
+        default:
354
+          return '-'
355
+          break
354
         }
356
         }
355
-      },
356
-      blood_access_opera: function () {
357
-        if (this.record == null || this.record.id == "") {
358
-          return "-"
359
-        }
360
-        let vascular_access = this.$store.getters.vascular_access_desc;
357
+    },
358
+    blood_access_opera: function () {
359
+      if (this.record == null || this.record.id == '') {
360
+        return '-'
361
+      }
362
+      let vascular_access = this.$store.getters.vascular_access_desc
361
         let valen = vascular_access.length
363
         let valen = vascular_access.length
362
-        let name = '-';
364
+      let name = '-'
363
         for (let index = 0; index < valen; index++) {
365
         for (let index = 0; index < valen; index++) {
364
-          if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
365
-            name = vascular_access[index].name;
366
+        if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
367
+          name = vascular_access[index].name
366
             break;
368
             break;
367
-          }
368
-        }
369
-        return name
370
-      },
371
-      catheter: function () {
372
-        if (this.record == null || this.record.id == "") {
373
-          return "-"
374
-        }
375
-        return this.record.catheter
376
-      },
377
-      puncture_point_haematoma_name: function () {
378
-        if (this.record == null || this.record.id == "") {
379
-          return "-"
380
         }
369
         }
381
-        switch (this.record.puncture_point_haematoma) {
382
-          case 1:
383
-            return '有'
384
-            break;
370
+      }
371
+      return name
372
+    },
373
+    catheter: function () {
374
+      if (this.record == null || this.record.id == '') {
375
+        return '-'
376
+      }
377
+      return this.record.catheter
378
+    },
379
+    puncture_point_haematoma_name: function () {
380
+      if (this.record == null || this.record.id == '') {
381
+        return '-'
382
+      }
383
+      switch (this.record.puncture_point_haematoma) {
384
+        case 1:
385
+          return '有'
386
+          break
385
           case 2:
387
           case 2:
386
-            return '无'
387
-            break
388
-          default:
389
-            return '-'
390
-            break;
388
+          return '无'
389
+          break
390
+        default:
391
+          return '-'
392
+          break
391
         }
393
         }
392
-      },
393
-      breathing_rate:function(){
394
-        if (this.record == null || this.record.id == "") {
395
-          return "-"
396
-        }
397
-        return this.record.breathing_rate
398
-      },
399
-      temperature: function () {
400
-        if (this.record == null || this.record.id == "") {
401
-          return "-"
402
-        }
403
-        return this.record.temperature
404
-      },
405
-      pulse_frequency: function () {
406
-        if (this.record == null || this.record.id == "") {
407
-          return "-"
408
-        }
409
-        return this.record.pulse_frequency
410
-      },
411
-      actual_treatment_hour: function () {
412
-        if (this.record == null || this.record.id == "") {
413
-          return "-"
414
-        }
415
-        return this.record.actual_treatment_hour
416
-      },
417
-      actual_treatment_minute: function () {
418
-        if (this.record == null || this.record.id == "") {
419
-          return "-"
420
-        }
421
-        return this.record.actual_treatment_minute
422
-      },
423
-      dialysis_intakes_feed: function () {
424
-        if (this.record == null || this.record.id == "") {
425
-          return "-"
426
-        }
427
-        return this.record.dialysis_intakes
428
-      },
429
-      observation_content_other: function () {
430
-        if (this.record == null || this.record.id == "") {
431
-          return "-"
432
-        }
433
-        return this.record.observation_content_other
434
-      },
435
-      observation_content: function () {
436
-        if (this.record == null || this.record.id == "") {
437
-          return "-"
438
-        }
439
-        return this.record.observation_content
440
-      },
441
-      complication: function () {
442
-        if (this.record == null || this.record.id == "") {
443
-          return "-"
444
-        }
445
-        return this.record.complication
446
-      },
447
-      internal_fistula_tremor_ac_name: function () {
448
-        if (this.record == null || this.record.id == "") {
449
-          return "-"
450
-        }
451
-        switch (this.record.internal_fistula_tremor_ac) {
452
-          case 1:
453
-            return '存在'
454
-            break;
394
+    },
395
+    breathing_rate: function () {
396
+      if (this.record == null || this.record.id == '') {
397
+        return '-'
398
+      }
399
+      return this.record.breathing_rate
400
+    },
401
+    temperature: function () {
402
+      if (this.record == null || this.record.id == '') {
403
+        return '-'
404
+      }
405
+      return this.record.temperature
406
+    },
407
+    pulse_frequency: function () {
408
+      if (this.record == null || this.record.id == '') {
409
+        return '-'
410
+      }
411
+      return this.record.pulse_frequency
412
+    },
413
+    actual_treatment_hour: function () {
414
+      if (this.record == null || this.record.id == '') {
415
+        return '-'
416
+      }
417
+      return this.record.actual_treatment_hour
418
+    },
419
+    actual_treatment_minute: function () {
420
+      if (this.record == null || this.record.id == '') {
421
+        return '-'
422
+      }
423
+      return this.record.actual_treatment_minute
424
+    },
425
+    dialysis_intakes_feed: function () {
426
+      if (this.record == null || this.record.id == '') {
427
+        return '-'
428
+      }
429
+      return this.record.dialysis_intakes
430
+    },
431
+    observation_content_other: function () {
432
+      if (this.record == null || this.record.id == '') {
433
+        return '-'
434
+      }
435
+      return this.record.observation_content_other
436
+    },
437
+    observation_content: function () {
438
+      if (this.record == null || this.record.id == '') {
439
+        return '-'
440
+      }
441
+      return this.record.observation_content
442
+    },
443
+    complication: function () {
444
+      if (this.record == null || this.record.id == '') {
445
+        return '-'
446
+      }
447
+      return this.record.complication
448
+    },
449
+    internal_fistula_tremor_ac_name: function () {
450
+      if (this.record == null || this.record.id == '') {
451
+        return '-'
452
+      }
453
+      switch (this.record.internal_fistula_tremor_ac) {
454
+        case 1:
455
+          return '存在'
456
+          break
455
           case 2:
457
           case 2:
456
-            return '减弱'
457
-            break;
458
+          return '减弱'
459
+          break
458
           case 3:
460
           case 3:
459
-            return '无';
461
+          return '无'
460
             break
462
             break
461
-          default:
462
-            return '-'
463
-            break;
464
-        }
465
-      },
466
-
467
-      remark: function () {
468
-        if (this.record == null || this.record.id == "") {
469
-          return ""
470
-        }
471
-        return this.record.remark
472
-      },in_advance_minute:function () {
473
-        if (this.record == null || this.record.id == "") {
474
-          return ""
475
-        }
476
-        return this.record.in_advance_minute
477
-      },in_advance_reason:function () {
478
-        if (this.record == null || this.record.id == "") {
479
-          return ""
480
-        }
481
-        return this.record.in_advance_reason + ","+this.record.in_advance_reason_other
482
-      },hemostasis_minute:function () {
483
-        if (this.record == null || this.record.id == "") {
484
-          return ""
463
+        default:
464
+          return '-'
465
+          break
485
         }
466
         }
467
+    },
486
 
468
 
487
-        return this.record.hemostasis_minute
488
-      },in_advance_reason_other:function () {
489
-        if (this.record == null || this.record.id == "") {
490
-          return ""
491
-        }
492
-        return this.record.in_advance_reason_other
469
+    remark: function () {
470
+      if (this.record == null || this.record.id == '') {
471
+        return ''
472
+      }
473
+      return this.record.remark
474
+    }, 
475
+in_advance_minute: function () {
476
+      if (this.record == null || this.record.id == '') {
477
+        return ''
478
+      }
479
+      return this.record.in_advance_minute
480
+    },
481
+ in_advance_reason: function () {
482
+      if (this.record == null || this.record.id == '') {
483
+        return ''
484
+      }
485
+      return this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
486
+    },
487
+ hemostasis_minute: function () {
488
+      if (this.record == null || this.record.id == '') {
489
+        return ''
493
       }
490
       }
491
+
492
+      return this.record.hemostasis_minute
494
     },
493
     },
495
-    methods: {
496
-      isShow(name){
497
-        var filedList = this.$store.getters.user.fileds
494
+ in_advance_reason_other: function () {
495
+      if (this.record == null || this.record.id == '') {
496
+        return ''
497
+      }
498
+      return this.record.in_advance_reason_other
499
+    }
500
+  },
501
+  methods: {
502
+    isShow (name) {
503
+      var filedList = this.$store.getters.user.fileds
498
 
504
 
499
-        for (let i = 0; i < filedList.length; i++){
500
-          if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
501
-            return true
502
-          }
505
+      for (let i = 0; i < filedList.length; i++) {
506
+        if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
507
+          return true
503
         }
508
         }
504
-        return false
505
-      },
506
-      getOpera:function (id) {
507
-        var hemostasis_opera = this.$store.getters.hemostasis_opera;
508
-        var hemostasisOperaName = "";
509
-        for (let i = 0; i < hemostasis_opera.length; i++){
510
-          if(hemostasis_opera[i].id == id){
511
-            hemostasisOperaName =    hemostasis_opera[i].name
512
-          }
509
+      }
510
+      return false
511
+    },
512
+    getOpera: function (id) {
513
+      var hemostasis_opera = this.$store.getters.hemostasis_opera
514
+        var hemostasisOperaName = '';
515
+      for (let i = 0; i < hemostasis_opera.length; i++) {
516
+        if (hemostasis_opera[i].id == id) {
517
+          hemostasisOperaName = hemostasis_opera[i].name
513
         }
518
         }
514
-        return hemostasisOperaName
515
-
516
-      },getTremorNoise:function (id) {
517
-        var tremor_noise = this.$store.getters.tremor_noise;
518
-        var tremorNoiseName = "";
519
-        for (let i = 0; i < tremor_noise.length; i++){
520
-          if(tremor_noise[i].id == id){
521
-            tremorNoiseName =    tremor_noise[i].name
522
-          }
519
+      }
520
+      return hemostasisOperaName
521
+    },
522
+ getTremorNoise: function (id) {
523
+      var tremor_noise = this.$store.getters.tremor_noise
524
+        var tremorNoiseName = '';
525
+      for (let i = 0; i < tremor_noise.length; i++) {
526
+        if (tremor_noise[i].id == id) {
527
+          tremorNoiseName = tremor_noise[i].name
523
         }
528
         }
524
-        return tremorNoiseName
525
-      },getDisequilibriumSyndrome:function (id) {
526
-        var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
527
-        var disequilibriumSyndromeName = "";
528
-        for (let i = 0; i < disequilibrium_syndrome.length; i++){
529
-          if(disequilibrium_syndrome[i].id == id){
530
-            disequilibriumSyndromeName =    disequilibrium_syndrome[i].name
531
-          }
529
+      }
530
+      return tremorNoiseName
531
+    },
532
+ getDisequilibriumSyndrome: function (id) {
533
+      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
534
+        var disequilibriumSyndromeName = '';
535
+      for (let i = 0; i < disequilibrium_syndrome.length; i++) {
536
+        if (disequilibrium_syndrome[i].id == id) {
537
+          disequilibriumSyndromeName = disequilibrium_syndrome[i].name
532
         }
538
         }
533
-        return disequilibriumSyndromeName
534
-
535
-      },getDisequilibriumSyndromeOptionName:function (id) {
536
-        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option;
537
-        var disequilibriumSyndromeOptionName = "";
538
-        for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
539
-          if (disequilibrium_syndrome_option[i].id == id) {
540
-            disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
541
-          }
539
+      }
540
+      return disequilibriumSyndromeName
541
+    },
542
+ getDisequilibriumSyndromeOptionName: function (id) {
543
+      var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
544
+        var disequilibriumSyndromeOptionName = '';
545
+      for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
546
+        if (disequilibrium_syndrome_option[i].id == id) {
547
+          disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
542
         }
548
         }
543
-        return disequilibriumSyndromeOptionName
544
-      },getArterialTubeName:function (id) {
545
-        var arterial_tube = this.$store.getters.arterial_tube;
546
-        var arterialTubeName = "";
547
-        for (let i = 0; i < arterial_tube.length; i++) {
548
-          if (arterial_tube[i].id == id) {
549
-            arterialTubeName = arterial_tube[i].name
550
-          }
549
+      }
550
+      return disequilibriumSyndromeOptionName
551
+    }, 
552
+getArterialTubeName: function (id) {
553
+      var arterial_tube = this.$store.getters.arterial_tube
554
+        var arterialTubeName = '';
555
+      for (let i = 0; i < arterial_tube.length; i++) {
556
+        if (arterial_tube[i].id == id) {
557
+          arterialTubeName = arterial_tube[i].name
551
         }
558
         }
552
-        return arterialTubeName
553
-
554
-      },getIntravenousTubeName:function (id) {
555
-        var intravenous_tube = this.$store.getters.intravenous_tube;
556
-        var intravenousTubeName = "";
557
-        for (let i = 0; i < intravenous_tube.length; i++) {
558
-          if (intravenous_tube[i].id == id) {
559
-            intravenousTubeName = intravenous_tube[i].name
560
-          }
559
+      }
560
+      return arterialTubeName
561
+    },
562
+ getIntravenousTubeName: function (id) {
563
+      var intravenous_tube = this.$store.getters.intravenous_tube
564
+        var intravenousTubeName = '';
565
+      for (let i = 0; i < intravenous_tube.length; i++) {
566
+        if (intravenous_tube[i].id == id) {
567
+          intravenousTubeName = intravenous_tube[i].name
561
         }
568
         }
562
-        return intravenousTubeName
563
-
564
-      },getDialyzer:function (id) {
565
-        var dialyzer = this.$store.getters.dialyzer;
566
-        var dialyzerName = "";
567
-        for (let i = 0; i < dialyzer.length; i++) {
568
-          if (dialyzer[i].id == id) {
569
-            dialyzerName = dialyzer[i].name
570
-          }
569
+      }
570
+      return intravenousTubeName
571
+    },
572
+ getDialyzer: function (id) {
573
+      var dialyzer = this.$store.getters.dialyzer
574
+        var dialyzerName = '';
575
+      for (let i = 0; i < dialyzer.length; i++) {
576
+        if (dialyzer[i].id == id) {
577
+          dialyzerName = dialyzer[i].name
571
         }
578
         }
572
-        return dialyzerName
573
-      }
574
-      // setRecord(record) {
575
-      //   if (record == null) {
576
-      //     this.info1[0].content = ""
577
-      //     this.info1[1].content = ""
578
-      //     this.info1[2].content = ""
579
-      //     this.info1[3].content = ""
580
-      //     this.info1[4].content = ""
581
-
582
-      //     this.info2[0].content = ""
583
-      //     this.info2[1].content = ""
584
-      //     this.info2[2].content = ""
585
-      //     this.info2[3].content = ""
586
-      //     this.info2[4].content = ""
587
-
588
-      //     this.info3[0].content = ""
589
-      //     this.info3[1].content = ""
590
-      //     this.info3[2].content = ""
591
-      //     this.info3[3].content = ""
592
-      //     this.info3[4].content = ""
593
-
594
-      //     this.note = ""
595
-
596
-      //   } else {
597
-      //     this.info1[0].content = record.weight_after
598
-      //     this.info1[1].content = record.systolic_blood_pressure
599
-      //     this.info1[2].content = record.actual_ultrafiltration
600
-      //     this.info1[3].content = record.cruor
601
-      //     // this.info1[4].content = record.systolic_blood_pressure
602
-
603
-      //     this.info2[0].content = record.weight_loss
604
-      //     this.info2[1].content = record.diastolic_blood_pressure
605
-      //     this.info2[2].content = record.actual_displacement
606
-      //     this.info2[3].content = record.symptom_after_dialysis
607
-      //     this.info2[4].content = record.catheter
608
-
609
-      //     this.info3[0].content = record.temperature
610
-      //     this.info3[1].content = record.pulse_frequency
611
-      //     this.info3[2].content = record.actual_treatment_hour
612
-      //     this.info3[3].content = record.dialysis_intakes_feed
613
-      //     this.info3[4].content = record.complication
614
-
615
-      //     this.note = record.remark
616
-      //   }
617
-      // }
579
+      }
580
+      return dialyzerName
618
     }
581
     }
619
-  };
582
+    // setRecord(record) {
583
+    //   if (record == null) {
584
+    //     this.info1[0].content = ""
585
+    //     this.info1[1].content = ""
586
+    //     this.info1[2].content = ""
587
+    //     this.info1[3].content = ""
588
+    //     this.info1[4].content = ""
589
+
590
+    //     this.info2[0].content = ""
591
+    //     this.info2[1].content = ""
592
+    //     this.info2[2].content = ""
593
+    //     this.info2[3].content = ""
594
+    //     this.info2[4].content = ""
595
+
596
+    //     this.info3[0].content = ""
597
+    //     this.info3[1].content = ""
598
+    //     this.info3[2].content = ""
599
+    //     this.info3[3].content = ""
600
+    //     this.info3[4].content = ""
601
+
602
+    //     this.note = ""
603
+
604
+    //   } else {
605
+    //     this.info1[0].content = record.weight_after
606
+    //     this.info1[1].content = record.systolic_blood_pressure
607
+    //     this.info1[2].content = record.actual_ultrafiltration
608
+    //     this.info1[3].content = record.cruor
609
+    //     // this.info1[4].content = record.systolic_blood_pressure
610
+
611
+    //     this.info2[0].content = record.weight_loss
612
+    //     this.info2[1].content = record.diastolic_blood_pressure
613
+    //     this.info2[2].content = record.actual_displacement
614
+    //     this.info2[3].content = record.symptom_after_dialysis
615
+    //     this.info2[4].content = record.catheter
616
+
617
+    //     this.info3[0].content = record.temperature
618
+    //     this.info3[1].content = record.pulse_frequency
619
+    //     this.info3[2].content = record.actual_treatment_hour
620
+    //     this.info3[3].content = record.dialysis_intakes_feed
621
+    //     this.info3[4].content = record.complication
622
+
623
+    //     this.note = record.remark
624
+    //   }
625
+    // }
626
+  }
627
+}
620
 </script>
628
 </script>
621
 
629
 
622
 <style rel="stylesheet/scss" lang="scss" scoped>
630
 <style rel="stylesheet/scss" lang="scss" scoped>
623
 </style>
631
 </style>
624
-
625
-
626
-

+ 320 - 299
src/pages/main/today/assessmentBefore.vue View File

31
           <span class="content">{{ catheter }}</span>
31
           <span class="content">{{ catheter }}</span>
32
           <span class="unit"></span>
32
           <span class="unit"></span>
33
         </li>
33
         </li>
34
+        <li v-if="isShow('衣物重')">
35
+          <label>衣物重 : </label>
36
+          <span class="content">{{ additional_weight?additional_weight:''}}</span>
37
+          <span class="unit">{{ additional_weight?'kg':''}}</span>
38
+        </li>
34
         <li v-if="isShow('干体重')">
39
         <li v-if="isShow('干体重')">
35
           <label>干体重 : </label>
40
           <label>干体重 : </label>
36
           <span class="content">{{ dry_weight?dry_weight:''}}</span>
41
           <span class="content">{{ dry_weight?dry_weight:''}}</span>
42
           <span class="unit"></span>
47
           <span class="unit"></span>
43
         </li>
48
         </li>
44
 
49
 
45
-
46
       <!-- </ul>
50
       <!-- </ul>
47
       <ul> -->
51
       <ul> -->
48
         <li v-if="isShow('体温')">
52
         <li v-if="isShow('体温')">
124
 <!--
128
 <!--
125
       </ul>
129
       </ul>
126
 
130
 
127
-
128
-
129
       <ul > -->
131
       <ul > -->
130
         <li v-if="isShow('位置')">
132
         <li v-if="isShow('位置')">
131
           <label>位置:</label>
133
           <label>位置:</label>
138
           <span class="content">{{this.record.ductus_arantii}}</span>
140
           <span class="content">{{this.record.ductus_arantii}}</span>
139
         </li>
141
         </li>
140
 
142
 
141
-
142
-
143
         <li v-if="isShow('其他中心静脉导管')">
143
         <li v-if="isShow('其他中心静脉导管')">
144
           <label>其他中心静脉导管:</label>
144
           <label>其他中心静脉导管:</label>
145
           <span class="content">{{ ductus_arantii_other }}</span>
145
           <span class="content">{{ ductus_arantii_other }}</span>
152
           <span class="content" >{{emergency_treatment_other}}</span>
152
           <span class="content" >{{emergency_treatment_other}}</span>
153
         </li>
153
         </li>
154
 
154
 
155
-
156
-
157
         <li v-if="isShow('感染')">
155
         <li v-if="isShow('感染')">
158
           <label>感染:</label>
156
           <label>感染:</label>
159
           <span class="content">{{this.record.is_infect == 1 ? '无' : '有' }}</span>
157
           <span class="content">{{this.record.is_infect == 1 ? '无' : '有' }}</span>
160
           <span class="unit"> </span>
158
           <span class="unit"> </span>
161
         </li>
159
         </li>
162
 
160
 
163
-
164
         <li v-if="isShow('其他感染情况')">
161
         <li v-if="isShow('其他感染情况')">
165
           <label>其他感染情况:</label>
162
           <label>其他感染情况:</label>
166
           <span class="content">{{ infect_other }}</span>
163
           <span class="content">{{ infect_other }}</span>
167
           <span class="unit"> </span>
164
           <span class="unit"> </span>
168
         </li>
165
         </li>
169
 
166
 
170
-
171
         <li v-if="isShow('外露')">
167
         <li v-if="isShow('外露')">
172
           <label>外露:</label>
168
           <label>外露:</label>
173
           <span class="content">{{this.record.exposed?this.record.exposed:''}}</span>
169
           <span class="content">{{this.record.exposed?this.record.exposed:''}}</span>
174
           <span class="unit">cm</span>
170
           <span class="unit">cm</span>
175
         </li>
171
         </li>
176
 
172
 
177
-
178
         <li v-if="isShow('皮肤')">
173
         <li v-if="isShow('皮肤')">
179
           <label>皮肤:</label>
174
           <label>皮肤:</label>
180
           <span class="content">{{getSkin(this.record.skin)}}</span>
175
           <span class="content">{{getSkin(this.record.skin)}}</span>
187
           <span class="unit"> </span>
182
           <span class="unit"> </span>
188
         </li>
183
         </li>
189
 
184
 
190
-
191
       </ul>
185
       </ul>
192
 
186
 
193
     </div>
187
     </div>
196
 </template>
190
 </template>
197
 
191
 
198
 <script>
192
 <script>
199
-  export default {
200
-    name: 'assessmentBefore',
201
-    data () {
202
-      return {
203
-        title: '透前评估 ',
204
-
193
+export default {
194
+  name: 'assessmentBefore',
195
+  data () {
196
+    return {
197
+      title: '透前评估 ',
198
+      template_id: 0
199
+    }
200
+  },
201
+  props: {
202
+    record: {
203
+      type: Object
204
+    },
205
+ dry_weights: {
206
+      type: Object
207
+    }
208
+  },
209
+  created () {
210
+    this.template_id = this.$store.getters.user.template_info.template_id
211
+  },
212
+  computed: {
213
+    machine_type: function () {
214
+      if (this.record == null || this.record.id == '') {
215
+        return ''
205
       }
216
       }
217
+      return this.record.machine_type
206
     },
218
     },
207
-    props: {
208
-      record: {
209
-        type: Object
219
+    weight_before: function () {
220
+      if (this.record == null || this.record.id == '') {
221
+        return '-'
210
       }
222
       }
223
+      return this.record.weight_before
224
+    },
225
+    additional_weight: function () {
226
+      if (this.record == null || this.record.id == '') {
227
+        return '-'
228
+      }
229
+      return this.record.additional_weight
230
+    },
231
+    systolic_blood_pressure: function () {
232
+      if (this.record == null || this.record.id == '') {
233
+        return '-'
234
+      }
235
+      return this.record.systolic_blood_pressure
236
+    },
237
+    last_post_dialysis: function () {
238
+      if (this.record == null || this.record.id == '') {
239
+        return '-'
240
+      }
241
+      return this.record.last_post_dialysis
211
     },
242
     },
212
-    computed: {
213
-      machine_type:function(){
214
-        if (this.record == null || this.record.id == '') {
215
-          return ''
216
-        }
217
-        return this.record.machine_type
218
 
243
 
219
-      },
220
-      weight_before: function () {
221
-        if (this.record == null || this.record.id == '') {
222
-          return '-'
223
-        }
224
-        return this.record.weight_before
225
-      },
226
-      systolic_blood_pressure: function () {
227
-        if (this.record == null || this.record.id == '') {
228
-          return '-'
244
+    dry_weight: function () {
245
+      if (this.$store.getters.user.template_info.template_id == 6) {
246
+        if (this.dry_weights != null && this.dry_weights.id > 0) {
247
+          return this.dry_weights.dry_weight
248
+        } else{
249
+          if (this.record == null || this.record.id == '') {
250
+            return '-'
251
+          }
252
+          return this.record.dry_weight
229
         }
253
         }
230
-        return this.record.systolic_blood_pressure
231
-      },
232
-      last_post_dialysis: function () {
254
+      }else {
233
         if (this.record == null || this.record.id == '') {
255
         if (this.record == null || this.record.id == '') {
234
           return '-'
256
           return '-'
235
         }
257
         }
236
-        return this.record.last_post_dialysis
237
-      },
238
 
258
 
239
-      dry_weight: function () {
240
-        if (this.record == null || this.record.id == '') {
241
-          return '-'
242
-        }
243
         return this.record.dry_weight
259
         return this.record.dry_weight
244
-      },
245
-      diastolic_blood_pressure: function () {
246
-        if (this.record == null || this.record.id == '') {
247
-          return '-'
248
-        }
249
-        return this.record.diastolic_blood_pressure
250
-      },
251
-      dialysis_interphase: function () {
252
-        if (this.record == null || this.record.id == '') {
253
-          return '-'
254
-        }
255
-        return this.record.dialysis_interphase
256
-      },
257
-      catheter: function () {
258
-        if (this.record == null || this.record.id == '') {
259
-          return '-'
260
-        }
261
-        return this.record.catheter
262
-      },
263
-
264
-      temperature: function () {
265
-        if (this.record == null || this.record.id == '') {
266
-          return '-'
267
-        }
268
-        return this.record.temperature
269
-      },
270
-      pulse_frequency: function () {
271
-        if (this.record == null || this.record.id == '') {
272
-          return '-'
273
-        }
274
-        return this.record.pulse_frequency
275
-      },
276
-      breathing_rate: function () {
277
-        if (this.record == null || this.record.id == '') {
278
-          return '-'
279
-        }
280
-        return this.record.breathing_rate
281
-      },
282
-      symptom_before_dialysis: function () {
283
-        if (this.record == null || this.record.id == '') {
284
-          return '-'
285
-        }
286
-        return this.record.symptom_before_dialysis
287
-      },
288
-      complication: function () {
289
-        if (this.record == null || this.record.id == '') {
290
-          return '-'
291
-        }
292
-        return this.record.complication
293
-      },
294
-      internal_fistula: function () {
295
-        if (this.record == null || this.record.id == '') {
296
-          return '-'
297
-        }
298
-        return this.record.internal_fistula
299
-      },
300
-      is_hemorrhage: function () {
301
-        if (this.record == null || this.record.id == '') {
302
-          return false
303
-        }
304
-        return this.record.is_hemorrhage == 1
305
-      },
306
-      hemorrhage: function () {
307
-        if (this.record == null || this.record.id == '') {
308
-          return '-'
309
-        }
310
-        return this.record.hemorrhage
311
-      },
312
-      hemorrhage_other: function () {
313
-        if (this.record == null || this.record.id == '') {
314
-          return '-'
315
-        }
316
-        return this.record.hemorrhage_other
317
-      },
318
-
319
-      remark: function () {
320
-        if (this.record == null || this.record.id == '') {
321
-          return ''
322
-        }
323
-        return this.record.remark
324
-      }, dialysis_count: function () {
325
-        if (this.record == null || this.record.id == '') {
326
-          return '-'
327
-        }
328
-        return this.record.dialysis_count
329
-      }, internal_fistula_other: function () {
330
-        if (this.record == null || this.record.id == '') {
331
-          return '-'
332
-        }
333
-        return this.record.internal_fistula_other
334
-      },venous_catheterization_part_other:function () {
335
-        if (this.record == null || this.record.id == '') {
336
-          return '-'
337
-        }
338
-        return this.record.venous_catheterization_part_other
339
-
340
-      },emergency_treatment_other:function () {
341
-        if (this.record == null || this.record.id == '') {
342
-          return '-'
343
-        }
344
-        return this.record.emergency_treatment_other
345
-      },blood_access_internal_fistula:function () {
346
-
347
-        var name1 = ""
348
-        var name2 = ""
349
-
350
-        if (this.record == null || this.record.id == '') {
351
-          return '-'
352
-        }
353
-        if(this.record.blood_access_internal_fistula == undefined){
354
-          name1 = ""
355
-        }else{
260
+      }
261
+    },
262
+    diastolic_blood_pressure: function () {
263
+      if (this.record == null || this.record.id == '') {
264
+        return '-'
265
+      }
266
+      return this.record.diastolic_blood_pressure
267
+    },
268
+    dialysis_interphase: function () {
269
+      if (this.record == null || this.record.id == '') {
270
+        return '-'
271
+      }
272
+      return this.record.dialysis_interphase
273
+    },
274
+    catheter: function () {
275
+      if (this.record == null || this.record.id == '') {
276
+        return '-'
277
+      }
278
+      return this.record.catheter
279
+    },
356
 
280
 
357
-          name1 = this.record.blood_access_internal_fistula+","
281
+    temperature: function () {
282
+      if (this.record == null || this.record.id == '') {
283
+        return '-'
284
+      }
285
+      return this.record.temperature
286
+    },
287
+    pulse_frequency: function () {
288
+      if (this.record == null || this.record.id == '') {
289
+        return '-'
290
+      }
291
+      return this.record.pulse_frequency
292
+    },
293
+    breathing_rate: function () {
294
+      if (this.record == null || this.record.id == '') {
295
+        return '-'
296
+      }
297
+      return this.record.breathing_rate
298
+    },
299
+    symptom_before_dialysis: function () {
300
+      if (this.record == null || this.record.id == '') {
301
+        return '-'
302
+      }
303
+      return this.record.symptom_before_dialysis
304
+    },
305
+    complication: function () {
306
+      if (this.record == null || this.record.id == '') {
307
+        return '-'
308
+      }
309
+      return this.record.complication
310
+    },
311
+    internal_fistula: function () {
312
+      if (this.record == null || this.record.id == '') {
313
+        return '-'
314
+      }
315
+      return this.record.internal_fistula
316
+    },
317
+    is_hemorrhage: function () {
318
+      if (this.record == null || this.record.id == '') {
319
+        return false
320
+      }
321
+      return this.record.is_hemorrhage == 1
322
+    },
323
+    hemorrhage: function () {
324
+      if (this.record == null || this.record.id == '') {
325
+        return '-'
326
+      }
327
+      return this.record.hemorrhage
328
+    },
329
+    hemorrhage_other: function () {
330
+      if (this.record == null || this.record.id == '') {
331
+        return '-'
332
+      }
333
+      return this.record.hemorrhage_other
334
+    },
358
 
335
 
359
-        }
360
-        if(this.record.internal_fistula_other == undefined){
361
-          name2 = ""
362
-        }else{
363
-          name2 = this.record.internal_fistula_other
364
-        }
336
+    remark: function () {
337
+      if (this.record == null || this.record.id == '') {
338
+        return ''
339
+      }
340
+      return this.record.remark
341
+    },
342
+dialysis_count: function () {
343
+      if (this.record == null || this.record.id == '') {
344
+        return '-'
345
+      }
346
+      return this.record.dialysis_count
347
+    },
348
+internal_fistula_other: function () {
349
+      if (this.record == null || this.record.id == '') {
350
+        return '-'
351
+      }
352
+      return this.record.internal_fistula_other
353
+    },
354
+ venous_catheterization_part_other: function () {
355
+      if (this.record == null || this.record.id == '') {
356
+        return '-'
357
+      }
358
+      return this.record.venous_catheterization_part_other
359
+    }, 
360
+emergency_treatment_other: function () {
361
+      if (this.record == null || this.record.id == '') {
362
+        return '-'
363
+      }
364
+      return this.record.emergency_treatment_other
365
+    }, 
366
+blood_access_internal_fistula: function () {
367
+      var name1 = ''
368
+      var name2 = ''
369
+
370
+      if (this.record == null || this.record.id == '') {
371
+        return '-'
372
+      }
373
+      if (this.record.blood_access_internal_fistula == undefined) {
374
+        name1 = ''
375
+      } else{
376
+        name1 = this.record.blood_access_internal_fistula + ','
377
+      }
378
+      if (this.record.internal_fistula_other == undefined) {
379
+        name2 = ''
380
+      }else {
381
+        name2 = this.record.internal_fistula_other
382
+      }
365
 
383
 
366
-        return name1+name2
367
-      },infect_other:function () {
368
-        if (this.record == null || this.record.id == '') {
369
-          return '-'
370
-        }
371
-        return this.record.infect_other
372
-      },skin_other:function () {
373
-        if (this.record == null || this.record.id == '') {
374
-          return '-'
375
-        }
376
-        return this.record.skin_other
377
-      },ductus_arantii_other:function () {
378
-        if (this.record == null || this.record.id == '') {
379
-          return '-'
380
-        }
381
-        return this.record.ductus_arantii_other
384
+      return name1 + name2
385
+    },
386
+ infect_other: function () {
387
+      if (this.record == null || this.record.id == '') {
388
+        return '-'
389
+      }
390
+      return this.record.infect_other
391
+    }, 
392
+skin_other: function () {
393
+      if (this.record == null || this.record.id == '') {
394
+        return '-'
382
       }
395
       }
396
+      return this.record.skin_other
383
     },
397
     },
384
-    methods: {
385
-      isShow(name){
386
-        var filedList = this.$store.getters.user.fileds
398
+ ductus_arantii_other: function () {
399
+      if (this.record == null || this.record.id == '') {
400
+        return '-'
401
+      }
402
+      return this.record.ductus_arantii_other
403
+    }
404
+  },
405
+  methods: {
406
+    isShow (name) {
407
+      var filedList = this.$store.getters.user.fileds
387
 
408
 
388
-        for (let i = 0; i < filedList.length; i++){
389
-          if(filedList[i].module == 3 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
390
-            return true
391
-          }
409
+      for (let i = 0; i < filedList.length; i++) {
410
+        if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
411
+          return true
392
         }
412
         }
393
-        return false
394
-      },
395
-      getBloodAccessInternalFistula: function (id) {
396
-        var BloodAccessInternalFistulaOptions = this.$store.getters.blood_access_internal_fistula;
397
-        var BloodAccessInternalFistulaName = "";
398
-        for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++){
399
-          if(BloodAccessInternalFistulaOptions[i].id == id){
400
-            BloodAccessInternalFistulaName =    BloodAccessInternalFistulaOptions[i].name
401
-          }
413
+      }
414
+      return false
415
+    },
416
+    getBloodAccessInternalFistula: function (id) {
417
+      var BloodAccessInternalFistulaOptions = this.$store.getters.blood_access_internal_fistula
418
+        var BloodAccessInternalFistulaName = '';
419
+      for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
420
+        if (BloodAccessInternalFistulaOptions[i].id == id) {
421
+          BloodAccessInternalFistulaName = BloodAccessInternalFistulaOptions[i].name
402
         }
422
         }
403
-        return BloodAccessInternalFistulaName
404
-      },
405
-      getBloodAccessNoise: function (id) {
406
-        var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
407
-        var BloodAccessNoiseName = "";
408
-        for (let i = 0; i < BloodAccessNoiseOptions.length; i++){
409
-          if(BloodAccessNoiseOptions[i].id == id){
410
-            BloodAccessNoiseName =    BloodAccessNoiseOptions[i].name
411
-          }
423
+      }
424
+      return BloodAccessInternalFistulaName
425
+    },
426
+    getBloodAccessNoise: function (id) {
427
+      var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
428
+        var BloodAccessNoiseName = '';
429
+      for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
430
+        if (BloodAccessNoiseOptions[i].id == id) {
431
+          BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
412
         }
432
         }
413
-        return BloodAccessNoiseName
414
-      },getVenousCatheterization:function (id) {
415
-        var VenousCatheterizationOptions = this.$store.getters.venous_catheterization;
416
-        var VenousCatheterizationName = "";
417
-        for (let i = 0; i < VenousCatheterizationOptions.length; i++){
418
-          if(VenousCatheterizationOptions[i].id == id){
419
-            VenousCatheterizationName =    VenousCatheterizationOptions[i].name
420
-          }
433
+      }
434
+      return BloodAccessNoiseName
435
+    }, 
436
+getVenousCatheterization: function (id) {
437
+      var VenousCatheterizationOptions = this.$store.getters.venous_catheterization
438
+        var VenousCatheterizationName = '';
439
+      for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
440
+        if (VenousCatheterizationOptions[i].id == id) {
441
+          VenousCatheterizationName = VenousCatheterizationOptions[i].name
421
         }
442
         }
422
-        return VenousCatheterizationName
423
-      },getWay:function (id) {
424
-        var PunctureWayOptions = this.$store.getters.puncture_way;
425
-        var PunctureWayOptionsName = "";
426
-        for (let i = 0; i < PunctureWayOptions.length; i++){
427
-          if(PunctureWayOptions[i].id == id){
428
-            PunctureWayOptionsName =    PunctureWayOptions[i].name
429
-          }
443
+      }
444
+      return VenousCatheterizationName
445
+    },
446
+ getWay: function (id) {
447
+      var PunctureWayOptions = this.$store.getters.puncture_way
448
+        var PunctureWayOptionsName = '';
449
+      for (let i = 0; i < PunctureWayOptions.length; i++) {
450
+        if (PunctureWayOptions[i].id == id) {
451
+          PunctureWayOptionsName = PunctureWayOptions[i].name
430
         }
452
         }
431
-        return PunctureWayOptionsName
432
-
433
-      },getVenousCatheterizationPart:function (id) {
434
-        var venousCatheterizationPartOptions = this.$store.getters.venous_catheterization_part;
435
-        var venousCatheterizationPartName = "";
436
-        for (let i = 0; i < venousCatheterizationPartOptions.length; i++){
437
-          if(venousCatheterizationPartOptions[i].id == id){
438
-            venousCatheterizationPartName =    venousCatheterizationPartOptions[i].name
439
-          }
453
+      }
454
+      return PunctureWayOptionsName
455
+    },
456
+ getVenousCatheterizationPart: function (id) {
457
+      var venousCatheterizationPartOptions = this.$store.getters.venous_catheterization_part
458
+        var venousCatheterizationPartName = '';
459
+      for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
460
+        if (venousCatheterizationPartOptions[i].id == id) {
461
+          venousCatheterizationPartName = venousCatheterizationPartOptions[i].name
440
         }
462
         }
441
-        return venousCatheterizationPartName
442
-      },getDuctusArantii:function (id) {
443
-        var ductusArantiiOptions = this.$store.getters.ductus_arantii;
444
-        var ductusArantiiOptionsName = "";
445
-        for (let i = 0; i < ductusArantiiOptions.length; i++){
446
-          if(ductusArantiiOptions[i].id == id){
447
-            ductusArantiiOptionsName =    ductusArantiiOptions[i].name
448
-          }
463
+      }
464
+      return venousCatheterizationPartName
465
+    }, 
466
+getDuctusArantii: function (id) {
467
+      var ductusArantiiOptions = this.$store.getters.ductus_arantii
468
+        var ductusArantiiOptionsName = '';
469
+      for (let i = 0; i < ductusArantiiOptions.length; i++) {
470
+        if (ductusArantiiOptions[i].id == id) {
471
+          ductusArantiiOptionsName = ductusArantiiOptions[i].name
449
         }
472
         }
450
-        return ductusArantiiOptionsName
451
-      },getEmergencyTreatment:function (id) {
452
-        var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
453
-        var emergencyTreatmentName = "";
454
-        for (let i = 0; i < emergencyTreatmentOptions.length; i++){
455
-          if(emergencyTreatmentOptions[i].id == id){
456
-            emergencyTreatmentName =    emergencyTreatmentOptions[i].name
457
-          }
473
+      }
474
+      return ductusArantiiOptionsName
475
+    }, 
476
+getEmergencyTreatment: function (id) {
477
+      var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
478
+        var emergencyTreatmentName = '';
479
+      for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
480
+        if (emergencyTreatmentOptions[i].id == id) {
481
+          emergencyTreatmentName = emergencyTreatmentOptions[i].name
458
         }
482
         }
459
-        return emergencyTreatmentName
460
-
461
-      },getSkin:function (id) {
462
-        var skinOptions = this.$store.getters.skin;
463
-        var skinName = "";
464
-        for (let i = 0; i < skinOptions.length; i++){
465
-          if(skinOptions[i].id == id){
466
-            skinName =    skinOptions[i].name
467
-          }
483
+      }
484
+      return emergencyTreatmentName
485
+    },
486
+ getSkin: function (id) {
487
+      var skinOptions = this.$store.getters.skin
488
+        var skinName = '';
489
+      for (let i = 0; i < skinOptions.length; i++) {
490
+        if (skinOptions[i].id == id) {
491
+          skinName = skinOptions[i].name
468
         }
492
         }
469
-        return skinName
470
-
471
-      }
472
-      // setRecord(record) {
473
-      //   if (record == null) {
474
-      //     this.info1[0].content = "0"
475
-      //     this.info1[1].content = "0"
476
-      //     this.info1[2].content = "0"
477
-      //     // this.info1[3].content = ""
478
-
479
-      //     this.info2[0].content = "0"
480
-      //     this.info2[1].content = "0"
481
-      //     this.info2[2].content = ""
482
-      //     this.info2[3].content = ""
483
-
484
-      //     this.info3[0].content = "0"
485
-      //     this.info3[1].content = "0"
486
-      //     this.info3[2].content = ""
487
-      //     this.info3[3].content = ""
488
-
489
-      //     this.note = ""
490
-
491
-      //   } else {
492
-      //     this.info1[0].content = record.weight_before
493
-      //     this.info1[1].content = record.systolic_blood_pressure
494
-      //     this.info1[2].content = record.last_post_dialysis
495
-      //     // this.info1[3].content = ""
496
-
497
-      //     this.info2[0].content = record.additional_weight
498
-      //     this.info2[1].content = record.diastolic_blood_pressure
499
-      //     this.info2[2].content = record.dialysis_interphase
500
-      //     this.info2[3].content = record.catheter
501
-
502
-      //     this.info3[0].content = record.temperature
503
-      //     this.info3[1].content = record.breathing_rate
504
-      //     this.info3[2].content = record.symptom_before_dialysis
505
-      //     this.info3[3].content = record.complication
506
-
507
-      //     this.note = record.remark
508
-      //   }
509
-      // }
493
+      }
494
+      return skinName
510
     }
495
     }
496
+    // setRecord(record) {
497
+    //   if (record == null) {
498
+    //     this.info1[0].content = "0"
499
+    //     this.info1[1].content = "0"
500
+    //     this.info1[2].content = "0"
501
+    //     // this.info1[3].content = ""
502
+
503
+    //     this.info2[0].content = "0"
504
+    //     this.info2[1].content = "0"
505
+    //     this.info2[2].content = ""
506
+    //     this.info2[3].content = ""
507
+
508
+    //     this.info3[0].content = "0"
509
+    //     this.info3[1].content = "0"
510
+    //     this.info3[2].content = ""
511
+    //     this.info3[3].content = ""
512
+
513
+    //     this.note = ""
514
+
515
+    //   } else {
516
+    //     this.info1[0].content = record.weight_before
517
+    //     this.info1[1].content = record.systolic_blood_pressure
518
+    //     this.info1[2].content = record.last_post_dialysis
519
+    //     // this.info1[3].content = ""
520
+
521
+    //     this.info2[0].content = record.additional_weight
522
+    //     this.info2[1].content = record.diastolic_blood_pressure
523
+    //     this.info2[2].content = record.dialysis_interphase
524
+    //     this.info2[3].content = record.catheter
525
+
526
+    //     this.info3[0].content = record.temperature
527
+    //     this.info3[1].content = record.breathing_rate
528
+    //     this.info3[2].content = record.symptom_before_dialysis
529
+    //     this.info3[3].content = record.complication
530
+
531
+    //     this.note = record.remark
532
+    //   }
533
+    // }
511
   }
534
   }
535
+}
512
 </script>
536
 </script>
513
 
537
 
514
 <style rel="stylesheet/scss" lang="scss" scoped>
538
 <style rel="stylesheet/scss" lang="scss" scoped>
515
 </style>
539
 </style>
516
-
517
-
518
-

+ 39 - 27
src/pages/main/today/detailsInfo.vue View File

1
-x<template>
1
+<template>
2
   <div class="info">
2
   <div class="info">
3
     <h2 class="plateTitle">
3
     <h2 class="plateTitle">
4
       <span class="line"></span>
4
       <span class="line"></span>
58
 </template>
58
 </template>
59
 
59
 
60
 <script>
60
 <script>
61
-import { parseTime } from "@/utils";
61
+import { parseTime } from '@/utils'
62
 import { jsGetAge } from "@/utils/tools";
62
 import { jsGetAge } from "@/utils/tools";
63
 
63
 
64
 export default {
64
 export default {
65
-  name: "DetailsInfo",
66
-  data() {
65
+  name: 'DetailsInfo',
66
+  data () {
67
     return {
67
     return {
68
       // patient: {
68
       // patient: {
69
       //   name: "",
69
       //   name: "",
78
       //   number: "",
78
       //   number: "",
79
       // },
79
       // },
80
       steps: [
80
       steps: [
81
-        { title: "透析处方" },
82
-        { title: "接诊评估" },
83
-        { title: "透前评估" },
84
-        { title: "临时医嘱" },
85
-        { title: "透析上机" },
86
-        { title: "双人查对" },
87
-        { title: "透析监测" },
88
-        { title: "透析下机" },
89
-        { title: "透后评估" },
90
-        { title: "治疗小结" }
81
+        { title: '透析处方' },
82
+        { title: '接诊评估' },
83
+        { title: '透前评估' },
84
+        { title: '临时医嘱' },
85
+        { title: '透析上机' },
86
+        { title: '双人查对' },
87
+        { title: '透析监测' },
88
+        { title: '透析下机' },
89
+        { title: '透后评估' },
90
+        { title: '治疗小结' }
91
       ]
91
       ]
92
-    };
92
+    }
93
   },
93
   },
94
   props: {
94
   props: {
95
     step_data: {
95
     step_data: {
97
     },
97
     },
98
     patient: {
98
     patient: {
99
       type: Object,
99
       type: Object,
100
-      default: function() {
100
+      default: function () {
101
         return {
101
         return {
102
-          name: "",
102
+          name: '',
103
           gender: 1,
103
           gender: 1,
104
-          birthday: "",
105
-          dialysis_no: "",
104
+          birthday: '',
105
+          dialysis_no: '',
106
           // device_number: "",
106
           // device_number: "",
107
-          source: "",
108
-          admission_number: ""
109
-        };
107
+          source: '',
108
+          admission_number: ''
109
+        }
110
       }
110
       }
111
     },
111
     },
112
     device_number: {
112
     device_number: {
114
     }
114
     }
115
   },
115
   },
116
   computed: {
116
   computed: {
117
+<<<<<<< .mine
117
     dialysis_date: function() {
118
     dialysis_date: function() {
118
       return parseTime(this.$route.query.date, "{y}/{m}/{d}");
119
       return parseTime(this.$route.query.date, "{y}/{m}/{d}");
120
+=======
121
+    dialysis_date: function () {
122
+      return parseTime(this.$route.query.date, '{y}/{m}/{d}')
123
+>>>>>>> .theirs
119
     },
124
     },
125
+<<<<<<< .mine
120
     age: function() {
126
     age: function() {
121
       if (this.patient.age == 0) {
127
       if (this.patient.age == 0) {
122
         return jsGetAge(parseTime(this.patient.birthday, "{y}-{m}-{d}"), "-");
128
         return jsGetAge(parseTime(this.patient.birthday, "{y}-{m}-{d}"), "-");
123
       } else {
129
       } else {
124
         return this.patient.age;
130
         return this.patient.age;
131
+=======
132
+    age: function () {
133
+      if (this.patient.age == 0) {
134
+        return jsGetAge(parseTime(this.patient.birthday, '{y}-{m}-{d}'), '-')
135
+      } else {
136
+        return this.patient.age
137
+>>>>>>> .theirs
125
       }
138
       }
126
     },
139
     },
127
-    source: function() {
128
-      return this.patient.source == 1 ? "门诊" : "住院";
140
+    source: function () {
141
+      return this.patient.source == 1 ? '门诊' : '住院'
129
     }
142
     }
130
   },
143
   },
131
   methods: {
144
   methods: {
149
     //   }
162
     //   }
150
     // }
163
     // }
151
   },
164
   },
152
-  created() {}
153
-};
165
+  created () {}
166
+}
154
 </script>
167
 </script>
155
 
168
 
156
 <style rel="stylesheet/scss" lang="scss" scoped>
169
 <style rel="stylesheet/scss" lang="scss" scoped>
258
   }
271
   }
259
 }
272
 }
260
 </style>
273
 </style>
261
-

+ 82 - 3
src/pages/main/today/dialysisComputer.vue View File

31
           <span class="content">{{stage}}</span>
31
           <span class="content">{{stage}}</span>
32
         </li>
32
         </li>
33
       </ul>
33
       </ul>
34
+<<<<<<< .mine
35
+
36
+=======
37
+
38
+>>>>>>> .theirs
34
     </div>
39
     </div>
35
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
40
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
36
   </div>
41
   </div>
37
 </template>
42
 </template>
38
 
43
 
39
 <script>
44
 <script>
45
+<<<<<<< .mine
40
 import { parseTime } from "@/utils";
46
 import { parseTime } from "@/utils";
47
+=======
48
+import {parseTime} from '@/utils'
49
+>>>>>>> .theirs
41
 
50
 
51
+<<<<<<< .mine
42
 export default {
52
 export default {
43
   name: "DialysisComputer",
53
   name: "DialysisComputer",
44
   data() {
54
   data() {
61
     device_number: function() {
71
     device_number: function() {
62
       if (this.record == null || this.record.id == "") {
72
       if (this.record == null || this.record.id == "") {
63
         return "-";
73
         return "-";
74
+=======
75
+export default {
76
+  name: 'DialysisComputer',
77
+  data () {
78
+    return {
79
+      title: '透析上机 '
80
+    }
81
+  },
82
+  props: {
83
+    record: {
84
+      type: Object
85
+    },
86
+    admin_map: {
87
+      type: Object
88
+    },
89
+    device_number_map: {
90
+      type: Object
91
+    }
92
+  },
93
+  computed: {
94
+    device_number: function () {
95
+      if (this.record == null || this.record.id == '') {
96
+        return '-'
97
+>>>>>>> .theirs
64
       }
98
       }
99
+<<<<<<< .mine
65
       return this.device_number_map[this.record.bed_id] == null
100
       return this.device_number_map[this.record.bed_id] == null
66
         ? ""
101
         ? ""
67
         : this.device_number_map[this.record.bed_id].number;
102
         : this.device_number_map[this.record.bed_id].number;
103
+=======
104
+      return this.device_number_map[this.record.bed_id] == null ? '' : this.device_number_map[this.record.bed_id].number
105
+
106
+
107
+>>>>>>> .theirs
68
     },
108
     },
109
+<<<<<<< .mine
69
     nurse: function() {
110
     nurse: function() {
70
       if (this.record == null || this.record.id == "") {
111
       if (this.record == null || this.record.id == "") {
71
         return "-";
112
         return "-";
113
+=======
114
+    nurse: function () {
115
+      if (this.record == null || this.record.id == '') {
116
+        return '-'
117
+>>>>>>> .theirs
72
       }
118
       }
119
+<<<<<<< .mine
73
       return this.admin_map[this.record.start_nurse] == null
120
       return this.admin_map[this.record.start_nurse] == null
74
         ? ""
121
         ? ""
75
         : this.admin_map[this.record.start_nurse].name;
122
         : this.admin_map[this.record.start_nurse].name;
123
+=======
124
+      return this.admin_map[this.record.start_nurse] == null ? '' : this.admin_map[this.record.start_nurse].name
125
+
126
+
127
+>>>>>>> .theirs
76
     },
128
     },
129
+<<<<<<< .mine
77
     stage: function() {
130
     stage: function() {
78
       if (this.record == null || this.record.id == "") {
131
       if (this.record == null || this.record.id == "") {
79
         return "未上机";
132
         return "未上机";
133
+=======
134
+    stage: function () {
135
+      if (this.record == null || this.record.id == '') {
136
+        return '未上机'
137
+>>>>>>> .theirs
80
       }
138
       }
139
+<<<<<<< .mine
81
       return this.record.stage == 1 ? "已上机" : "已下机";
140
       return this.record.stage == 1 ? "已上机" : "已下机";
141
+=======
142
+      return this.record.stage == 1 ? '已上机' : '已下机'
143
+>>>>>>> .theirs
82
     },
144
     },
145
+<<<<<<< .mine
83
     start_time: function() {
146
     start_time: function() {
84
       if (this.record == null || this.record.id == "") {
147
       if (this.record == null || this.record.id == "") {
85
         return "-";
148
         return "-";
97
   },
160
   },
98
   methods: {}
161
   methods: {}
99
 };
162
 };
163
+=======
164
+start_time: function () {
165
+      if (this.record == null || this.record.id == '') {
166
+        return '-'
167
+      }
168
+      return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
169
+    }, 
170
+puncture_nurse: function () {
171
+      if (this.record == null || this.record.id == '') {
172
+        return '-'
173
+      }
174
+      return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
175
+    }
176
+  },
177
+  methods: {}
178
+}
179
+
180
+
181
+>>>>>>> .theirs
100
 </script>
182
 </script>
101
 
183
 
102
 <style rel="stylesheet/scss" lang="scss" scoped>
184
 <style rel="stylesheet/scss" lang="scss" scoped>
103
 </style>
185
 </style>
104
-
105
-
106
-

+ 24 - 21
src/pages/main/today/dialysisMonitoring.vue View File

12
           <th width="76px">静脉压/动脉压(mmHg)</th>
12
           <th width="76px">静脉压/动脉压(mmHg)</th>
13
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
13
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
14
           <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
14
           <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
15
-          <th v-if="isShow('超滤量')" width="76px">超滤量(L)</th>
15
+          <th v-if="isShow('超滤量') && template_id ==6" width="76px">超滤量(ml)</th>
16
+          <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
16
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
17
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
17
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
           <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
19
           <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
19
           <th v-if="isShow('置换量')"  width="92px">置换量(L)</th>
20
           <th v-if="isShow('置换量')"  width="92px">置换量(L)</th>
21
+
20
           <th v-if="isShow('电导度')"  width="92px">电导度(mS/m)</th>
22
           <th v-if="isShow('电导度')"  width="92px">电导度(mS/m)</th>
21
           <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
23
           <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
22
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
24
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
52
 </template>
54
 </template>
53
 
55
 
54
 <script>
56
 <script>
55
-import { parseTime } from "@/utils";
57
+import { parseTime } from '@/utils';
56
 
58
 
57
 export default {
59
 export default {
58
-  name: "statOrder",
59
-  data() {
60
+  name: 'statOrder',
61
+  data () {
60
     return {
62
     return {
61
-      title: "透析监测 ",
63
+      title: '透析监测 ',
64
+      template_id: 0,
62
       tableDate: []
65
       tableDate: []
63
-    };
66
+    }
67
+  },
68
+  created () {
69
+    this.template_id = this.$store.getters.user.template_info.template_id
64
   },
70
   },
65
   methods: {
71
   methods: {
66
-    isShow(name){
72
+    isShow (name) {
67
       var filedList = this.$store.getters.user.fileds
73
       var filedList = this.$store.getters.user.fileds
68
 
74
 
69
-      for (let i = 0; i < filedList.length; i++){
70
-        if(filedList[i].module == 4 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
75
+      for (let i = 0; i < filedList.length; i++) {
76
+        if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
71
           return true
77
           return true
72
         }
78
         }
73
       }
79
       }
74
       return false
80
       return false
75
     },
81
     },
76
-    setRecords(records) {
82
+    setRecords (records) {
77
       if (records == null) {
83
       if (records == null) {
78
-        records = [];
84
+        records = []
79
       }
85
       }
80
-      this.tableDate.splice(0, this.tableDate.length);
81
-      this.tableDate.push(...records);
86
+      this.tableDate.splice(0, this.tableDate.length)
87
+      this.tableDate.push(...records)
82
     },
88
     },
83
-    parseTime(time, layout) {
84
-      return parseTime(time, layout);
89
+    parseTime (time, layout) {
90
+      return parseTime(time, layout)
85
     },
91
     },
86
-    addRecords(records) {
87
-      this.tableDate.push(...records);
92
+    addRecords (records) {
93
+      this.tableDate.push(...records)
88
     }
94
     }
89
   }
95
   }
90
-};
96
+}
91
 </script>
97
 </script>
92
 
98
 
93
 <style rel="stylesheet/scss" lang="scss" scoped>
99
 <style rel="stylesheet/scss" lang="scss" scoped>
131
 
137
 
132
 }
138
 }
133
 </style>
139
 </style>
134
-
135
-
136
-

+ 54 - 6
src/pages/main/today/dialysisOff.vue View File

25
 </template>
25
 </template>
26
 
26
 
27
 <script>
27
 <script>
28
+<<<<<<< .mine
28
 import { parseTime } from "@/utils";
29
 import { parseTime } from "@/utils";
30
+=======
31
+import { parseTime } from '@/utils';
32
+>>>>>>> .theirs
29
 
33
 
34
+<<<<<<< .mine
30
 export default {
35
 export default {
31
   name: "DialysisComputer",
36
   name: "DialysisComputer",
32
   data() {
37
   data() {
38
+=======
39
+export default {
40
+  name: 'DialysisComputer',
41
+  data () {
42
+>>>>>>> .theirs
33
     return {
43
     return {
44
+<<<<<<< .mine
34
       title: "透析下机 "
45
       title: "透析下机 "
35
     };
46
     };
47
+=======
48
+      title: '透析下机 '
49
+    }
50
+>>>>>>> .theirs
36
   },
51
   },
37
   props: {
52
   props: {
38
     record: {
53
     record: {
43
     }
58
     }
44
   },
59
   },
45
   computed: {
60
   computed: {
61
+<<<<<<< .mine
46
     stage: function() {
62
     stage: function() {
47
       if (this.record == null || this.record.id == "") {
63
       if (this.record == null || this.record.id == "") {
48
         return "未上机";
64
         return "未上机";
65
+=======
66
+    stage: function () {
67
+      if (this.record == null || this.record.id == '') {
68
+        return '未上机'
69
+>>>>>>> .theirs
49
       }
70
       }
71
+<<<<<<< .mine
50
       return this.record.stage == 1 ? "未下机" : "已下机";
72
       return this.record.stage == 1 ? "未下机" : "已下机";
73
+=======
74
+      return this.record.stage == 1 ? '未下机' : '已下机'
75
+>>>>>>> .theirs
51
     },
76
     },
52
-    nurse: function() {
77
+    nurse: function () {
78
+<<<<<<< .mine
53
       if (this.record == null || this.record.id == "") {
79
       if (this.record == null || this.record.id == "") {
54
         return "-";
80
         return "-";
81
+=======
82
+      if (this.record == null || this.record.id == '') {
83
+        return '-'
84
+>>>>>>> .theirs
55
       } else if (this.record.stage == 1) {
85
       } else if (this.record.stage == 1) {
86
+<<<<<<< .mine
56
         return "-";
87
         return "-";
88
+=======
89
+        return '-'
90
+>>>>>>> .theirs
57
       } else {
91
       } else {
92
+<<<<<<< .mine
58
         return this.admin_map[this.record.finish_nurse] == null
93
         return this.admin_map[this.record.finish_nurse] == null
59
           ? ""
94
           ? ""
60
           : this.admin_map[this.record.finish_nurse].name;
95
           : this.admin_map[this.record.finish_nurse].name;
96
+=======
97
+        return this.admin_map[this.record.finish_nurse] == null ? '' : this.admin_map[this.record.finish_nurse].name
98
+
99
+
100
+>>>>>>> .theirs
61
       }
101
       }
102
+<<<<<<< .mine
62
     },
103
     },
63
     end_time: function() {
104
     end_time: function() {
64
       if (this.record == null || this.record.id == "") {
105
       if (this.record == null || this.record.id == "") {
65
         return "-";
106
         return "-";
107
+=======
108
+    }, 
109
+end_time: function () {
110
+      if (this.record == null || this.record.id == '') {
111
+        return '-'
112
+>>>>>>> .theirs
66
       } else if (this.record.stage == 1) {
113
       } else if (this.record.stage == 1) {
114
+<<<<<<< .mine
67
         return "-";
115
         return "-";
116
+=======
117
+        return '-'
118
+>>>>>>> .theirs
68
       } else {
119
       } else {
69
-        return parseTime(this.record.end_time, "{y}年{m}月{d}日 {h}时{i}分");
120
+        return parseTime(this.record.end_time, '{y}年{m}月{d}日 {h}时{i}分')
70
       }
121
       }
71
     }
122
     }
72
   },
123
   },
73
   methods: {}
124
   methods: {}
74
-};
125
+}
75
 </script>
126
 </script>
76
 
127
 
77
 <style rel="stylesheet/scss" lang="scss" scoped>
128
 <style rel="stylesheet/scss" lang="scss" scoped>
78
 </style>
129
 </style>
79
-
80
-
81
-

+ 172 - 171
src/pages/main/today/dialysisPrescription.vue View File

156
 </template>
156
 </template>
157
 
157
 
158
 <script>
158
 <script>
159
-  import {getDataConfig} from '@/utils/data';
159
+import {getDataConfig} from '@/utils/data'
160
 export default {
160
 export default {
161
-  name: "DialysisPrescription",
162
-  data() {
161
+  name: 'DialysisPrescription',
162
+  data () {
163
     return {
163
     return {
164
-      title: "透析处方",
164
+      title: '透析处方',
165
       perfusion_apparatus_map: {},
165
       perfusion_apparatus_map: {},
166
-      dialysateFormulationMap:{},
167
-    };
166
+      dialysateFormulationMap: {}
167
+    }
168
   },
168
   },
169
   props: {
169
   props: {
170
     prescription: {
170
     prescription: {
171
-      type: Object,
171
+      type: Object
172
     },
172
     },
173
     solution: {
173
     solution: {
174
-      type: Object,
174
+      type: Object
175
     },
175
     },
176
     device_number_map: {
176
     device_number_map: {
177
-      type: Object,
177
+      type: Object
178
     }
178
     }
179
   },
179
   },
180
   computed: {
180
   computed: {
181
-    target_ultrafiltration:function(){
182
-      var v = this.getValueStr("target_ultrafiltration", "target_ultrafiltration")
181
+    target_ultrafiltration: function () {
182
+      var v = this.getValueStr('target_ultrafiltration', 'target_ultrafiltration')
183
       v = this.getFloat(v)
183
       v = this.getFloat(v)
184
-      return v.length == 0 ? "0" : v
184
+      return v.length == 0 ? '0' : v
185
     },
185
     },
186
-    dialysis_mode: function() {
187
-      var mode = this.getValueStr("mode_id", "mode_id")
186
+    dialysis_mode: function () {
187
+      var mode = this.getValueStr('mode_id', 'mode_id')
188
       if (mode.length == 0) {
188
       if (mode.length == 0) {
189
-        return ""
189
+        return ''
190
       }
190
       }
191
       if (this.$store.getters.treatment_mode[mode] != undefined) {
191
       if (this.$store.getters.treatment_mode[mode] != undefined) {
192
         return this.$store.getters.treatment_mode[mode].name
192
         return this.$store.getters.treatment_mode[mode].name
193
       }
193
       }
194
-      return ""
194
+      return ''
195
     },
195
     },
196
-    perfusion_apparatus: function() {
197
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus")
196
+    perfusion_apparatus: function () {
197
+      var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
198
       if (v.length == 0) {
198
       if (v.length == 0) {
199
-        return ""
199
+        return ''
200
       }
200
       }
201
       if (this.perfusion_apparatus_map[v] != undefined) {
201
       if (this.perfusion_apparatus_map[v] != undefined) {
202
         return this.perfusion_apparatus_map[v].name
202
         return this.perfusion_apparatus_map[v].name
203
       }
203
       }
204
-      return ""
204
+      return ''
205
     },
205
     },
206
-    displace_liqui: function() {
207
-      var v = this.getValueStr("displace_liqui", "displace_liqui")
208
-      return v.length == 0 ? "0" : v
206
+    displace_liqui: function () {
207
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
208
+      return v.length == 0 ? '0' : v
209
     },
209
     },
210
-    anticoagulant_shouji: function() {
211
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji")
212
-      return v.length == 0 ? "0" : v
210
+    anticoagulant_shouji: function () {
211
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
212
+      return v.length == 0 ? '0' : v
213
     },
213
     },
214
-    kalium: function() {
215
-      var v = this.getValueStr("kalium", "kalium")
214
+    kalium: function () {
215
+      var v = this.getValueStr('kalium', 'kalium')
216
       v = this.getFloat(v)
216
       v = this.getFloat(v)
217
-      return v == 0 ? "0":v
218
-    },
219
-    replacement_total:function(){
220
-      var v = this.getValueStr("replacement_total", "replacement_total")
221
-      return v.length == 0 ? "0" : v
222
-    },
223
-    bicarbonate: function() {
224
-      var v = this.getValueStr("bicarbonate", "bicarbonate")
225
-      return v.length == 0 ? "0" : v
226
-    },
227
-    dialysate_flow: function() {
228
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow")
229
-      return v.length == 0 ? "0" : v
230
-    },
231
-    dialysis_duration: function() {
232
-      var dialysis_duration_hour = (this.getValueStr("dialysis_duration_hour", "dialysis_duration_hour"))
233
-      var dialysis_duration_minute = (this.getValueStr("dialysis_duration_minute", "dialysis_duration_minute"))
234
-      if(dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0){
235
-        return  "0"
236
-      }else{
237
-        var time = dialysis_duration_hour+"h"+dialysis_duration_minute+"min"
238
-        return time.length == 0 ? "0" : time
217
+      return v == 0 ? '0' : v
218
+    },
219
+    replacement_total: function () {
220
+      var v = this.getValueStr('replacement_total', 'replacement_total')
221
+      return v.length == 0 ? '0' : v
222
+    },
223
+    bicarbonate: function () {
224
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
225
+      return v.length == 0 ? '0' : v
226
+    },
227
+    dialysate_flow: function () {
228
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
229
+      return v.length == 0 ? '0' : v
230
+    },
231
+    dialysis_duration: function () {
232
+      var dialysis_duration_hour = (this.getValueStr('dialysis_duration_hour', 'dialysis_duration_hour'))
233
+      var dialysis_duration_minute = (this.getValueStr('dialysis_duration_minute', 'dialysis_duration_minute'))
234
+      if (dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0) {
235
+        return '0'
236
+      } else {
237
+        var time = dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
238
+        return time.length == 0 ? '0' : time
239
       }
239
       }
240
-
241
     },
240
     },
242
-    blood_flow_volume: function() {
243
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume")
244
-      return v.length == 0 ? "0" : v
241
+    blood_flow_volume: function () {
242
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
243
+      return v.length == 0 ? '0' : v
245
     },
244
     },
246
-    replacement_way: function() {
247
-      return this.getValueStr("replacement_way", "replacement_way")
245
+    replacement_way: function () {
246
+      return this.getValueStr('replacement_way', 'replacement_way')
248
     },
247
     },
249
-    anticoagulant_weichi: function() {
250
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi")
251
-      return v.length == 0 ? "0" : v
248
+    anticoagulant_weichi: function () {
249
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
250
+      return v.length == 0 ? '0' : v
252
     },
251
     },
253
-    sodium: function() {
254
-      var v = this.getValueStr("sodium", "sodium")
252
+    sodium: function () {
253
+      var v = this.getValueStr('sodium', 'sodium')
255
       console.log(v)
254
       console.log(v)
256
       v = this.getFloat(v)
255
       v = this.getFloat(v)
257
       console.log(v)
256
       console.log(v)
258
-      return v == 0 ? "0":v
257
+      return v == 0 ? '0' : v
259
     },
258
     },
260
-    glucose: function() {
261
-      var v = this.getValueStr("glucose", "glucose")
262
-      return v.length == 0 ? "0" : v
259
+    glucose: function () {
260
+      var v = this.getValueStr('glucose', 'glucose')
261
+      return v.length == 0 ? '0' : v
263
     },
262
     },
264
-    dialysate_temperature: function() {
265
-      var v = this.getValueStr("dialysate_temperature", "dialysate_temperature")
266
-      return v.length == 0 ? "0" : v
263
+    dialysate_temperature: function () {
264
+      var v = this.getValueStr('dialysate_temperature', 'dialysate_temperature')
265
+      return v.length == 0 ? '0' : v
267
     },
266
     },
268
-    dialyzer: function() {
269
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine")
267
+    dialyzer: function () {
268
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
270
       if (v.length == 0) {
269
       if (v.length == 0) {
271
-        return ""
270
+        return ''
272
       }
271
       }
273
       if (this.device_number_map[v] != undefined) {
272
       if (this.device_number_map[v] != undefined) {
274
         return this.device_number_map[v].name
273
         return this.device_number_map[v].name
275
       }
274
       }
276
-      return ""
275
+      return ''
277
     },
276
     },
278
-    dialysate_formulation: function(){
279
-      var v = this.getValueStr("dialysate_formulation", "dialysate_formulation")
277
+    dialysate_formulation: function () {
278
+      var v = this.getValueStr('dialysate_formulation', 'dialysate_formulation')
280
       if (v.length == 0) {
279
       if (v.length == 0) {
281
-        return ""
280
+        return ''
282
       }
281
       }
283
-      if(v in this.dialysateFormulationMap) {
284
-        return  this.dialysateFormulationMap[v].name;
282
+      if (v in this.dialysateFormulationMap) {
283
+        return this.dialysateFormulationMap[v].name
285
       }
284
       }
286
-      return ""
285
+      return ''
287
     },
286
     },
288
-    prescription_dewatering: function() {
289
-      var v = this.getValueStr("prescription_dewatering", "dewater")
290
-      return v.length == 0 ? "0" : v
287
+    prescription_dewatering: function () {
288
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
289
+      return v.length == 0 ? '0' : v
291
     },
290
     },
292
-    anticoagulant: function() {
293
-      var v = this.getValueStr("anticoagulant", "anticoagulant")
291
+    anticoagulant: function () {
292
+      var v = this.getValueStr('anticoagulant', 'anticoagulant')
294
       if (v.length == 0) {
293
       if (v.length == 0) {
295
-        return ""
294
+        return ''
296
       }
295
       }
297
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
296
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
298
         return this.$store.getters.anticoagulants_confit[v].name
297
         return this.$store.getters.anticoagulants_confit[v].name
299
       }
298
       }
300
-      return ""
299
+      return ''
301
     },
300
     },
302
-    anticoagulant_zongliang: function() {
303
-      var v = this.getValueStr("anticoagulant_zongliang", "anticoagulant_zongliang")
304
-      return v.length == 0 ? "0" : v
301
+    anticoagulant_zongliang: function () {
302
+      var v = this.getValueStr('anticoagulant_zongliang', 'anticoagulant_zongliang')
303
+      return v.length == 0 ? '0' : v
305
     },
304
     },
306
-    calcium: function() {
307
-
308
-      var v = this.getValueStr("calcium", "calcium")
305
+    calcium: function () {
306
+      var v = this.getValueStr('calcium', 'calcium')
309
       v = this.getFloat(v)
307
       v = this.getFloat(v)
310
-      return v == 0 ? "0":v
311
-
312
-
308
+      return v == 0 ? '0' : v
313
     },
309
     },
314
 
310
 
315
-    conductivity: function() {
316
-      var v = this.getValueStr("conductivity", "conductivity")
317
-      return v.length == 0 ? "0" : v
318
-    },
319
-    dialyzer_perfusion_apparatus: function() {
320
-      return this.getValueStr("dialyzer_perfusion_apparatus", "dialyzer_perfusion_apparatus")
321
-    },
322
-    note: function() {
323
-      return this.getValueStr("remark", "remark")
324
-    },body_fluid:function () {
325
-      var id =  this.getValueStr("body_fluid", "body_fluid")
326
-      if(id == 0){
327
-        return ""
311
+    conductivity: function () {
312
+      var v = this.getValueStr('conductivity', 'conductivity')
313
+      return v.length == 0 ? '0' : v
314
+    },
315
+    dialyzer_perfusion_apparatus: function () {
316
+      return this.getValueStr('dialyzer_perfusion_apparatus', 'dialyzer_perfusion_apparatus')
317
+    },
318
+    note: function () {
319
+      return this.getValueStr('remark', 'remark')
320
+    },
321
+    body_fluid: function () {
322
+      var id = this.getValueStr('body_fluid', 'body_fluid')
323
+      if (id == 0) {
324
+        return ''
328
       }
325
       }
329
-      var bodyFluidOptions = this.$store.getters.body_fluid;
330
-      for (let i = 0; i <bodyFluidOptions.length; i++){
331
-        if(bodyFluidOptions[i].id == id){
326
+      var bodyFluidOptions = this.$store.getters.body_fluid
327
+      for (let i = 0; i < bodyFluidOptions.length; i++) {
328
+        if (bodyFluidOptions[i].id == id) {
332
           return bodyFluidOptions[i].name
329
           return bodyFluidOptions[i].name
333
         }
330
         }
334
       }
331
       }
335
-    },special_medicine:function () {
336
-      var id =  this.getValueStr("special_medicine", "special_medicine")
337
-      if(id == 0){
338
-        return ""
332
+    },
333
+    special_medicine: function () {
334
+      var id = this.getValueStr('special_medicine', 'special_medicine')
335
+      if (id == 0) {
336
+        return ''
339
       }
337
       }
340
-      var special_medicine = this.$store.getters.special_medicine;
341
-      for (let i = 0; i <special_medicine.length; i++){
342
-        if(special_medicine[i].id == id){
338
+      var special_medicine = this.$store.getters.special_medicine
339
+      for (let i = 0; i < special_medicine.length; i++) {
340
+        if (special_medicine[i].id == id) {
343
           return special_medicine[i].name
341
           return special_medicine[i].name
344
         }
342
         }
345
       }
343
       }
346
-    },special_medicine_other:function () {
347
-      return this.getValueStr("special_medicine_other", "special_medicine_other")
348
-    },blood_access:function () {
349
-      var id =  this.getValueStr("blood_access", "blood_access")
350
-      if(id == 0){
351
-        return ""
344
+    },
345
+    special_medicine_other: function () {
346
+      return this.getValueStr('special_medicine_other', 'special_medicine_other')
347
+    },
348
+    blood_access: function () {
349
+      var id = this.getValueStr('blood_access', 'blood_access')
350
+      if (id == 0) {
351
+        return ''
352
       }
352
       }
353
-      var blood_access = this.$store.getters.blood_access;
354
-      for (let i = 0; i <blood_access.length; i++){
355
-        if(blood_access[i].id == id){
353
+      var blood_access = this.$store.getters.blood_access
354
+      console.log('blood_access', blood_access)
355
+      for (let i = 0; i < blood_access.length; i++) {
356
+        if (blood_access[i].id == id) {
356
           return blood_access[i].name
357
           return blood_access[i].name
357
         }
358
         }
358
       }
359
       }
359
-    },displace_liqui:function () {
360
-      var id =  this.getValueStr("displace_liqui_part", "displace_liqui_part")
361
-      var displace_liqui_value =  this.getValueStr("displace_liqui_value", "displace_liqui_value")
362
-      var displace_liqui_part = ""
363
-      var displace_liqui = this.$store.getters.displace_liqui;
364
-      for (let i = 0; i <displace_liqui.length; i++){
365
-        if(displace_liqui[i].id == id){
366
-           displace_liqui_part = displace_liqui[i].name
360
+    },
361
+    displace_liqui: function () {
362
+      var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
363
+      var displace_liqui_value = this.getValueStr('displace_liqui_value', 'displace_liqui_value')
364
+      var displace_liqui_part = ''
365
+      var displace_liqui = this.$store.getters.displace_liqui
366
+      for (let i = 0; i < displace_liqui.length; i++) {
367
+        if (displace_liqui[i].id == id) {
368
+          displace_liqui_part = displace_liqui[i].name
367
         }
369
         }
368
       }
370
       }
369
-      return displace_liqui_part + displace_liqui_value+"L"
370
-    },ultrafiltration:function () {
371
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration")
371
+      return displace_liqui_part + displace_liqui_value + 'L'
372
+    },
373
+    ultrafiltration: function () {
374
+      var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
372
       v = this.getFloat(v)
375
       v = this.getFloat(v)
373
-      return v.length == 0 ? "0" : v
374
-    },target_ktv:function () {
375
-      var v = this.getValueStr("target_ktv", "target_ktv")
376
-      return v.length == 0 ? "0" : v
376
+      return v.length == 0 ? '0' : v
377
+    },
378
+    target_ktv: function () {
379
+      var v = this.getValueStr('target_ktv', 'target_ktv')
380
+      return v.length == 0 ? '0' : v
377
     }
381
     }
378
   },
382
   },
379
-  created() {
383
+  created () {
380
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
384
     var perfusion_apparatus = this.$store.getters.perfusion_apparatus
381
     var map = {}
385
     var map = {}
382
     for (let index = 0; index < perfusion_apparatus.length; index++) {
386
     for (let index = 0; index < perfusion_apparatus.length; index++) {
383
-      const p = perfusion_apparatus[index];
387
+      const p = perfusion_apparatus[index]
384
       map[p.id] = p
388
       map[p.id] = p
385
     }
389
     }
386
     this.perfusion_apparatus_map = map
390
     this.perfusion_apparatus_map = map
387
 
391
 
388
-    var dialysateFormulationOptions = getDataConfig('hemodialysis','dialysate_formulation');
389
-    for(var index in dialysateFormulationOptions){
390
-      this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index];
392
+    var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
393
+    for (var index in dialysateFormulationOptions) {
394
+      this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index]
391
     }
395
     }
392
   },
396
   },
393
   methods: {
397
   methods: {
394
-    isShow(name){
398
+    isShow (name) {
395
       var filedList = this.$store.getters.user.fileds
399
       var filedList = this.$store.getters.user.fileds
396
-      for (let i = 0; i < filedList.length; i++){
397
-        if(filedList[i].module == 1 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
400
+      for (let i = 0; i < filedList.length; i++) {
401
+        if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
398
           return true
402
           return true
399
         }
403
         }
400
       }
404
       }
401
       return false
405
       return false
402
     },
406
     },
403
-    getValueStr(pkey, skey) {
404
-      if ((this.prescription == null || this.prescription.id == "") && (this.solution == null || this.solution.id == "")) {
405
-        return ""
406
-      } else if (this.prescription != null && this.prescription.id != "") {
407
+    getValueStr (pkey, skey) {
408
+      if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
409
+        return ''
410
+      } else if (this.prescription != null && this.prescription.id != '') {
407
         if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
411
         if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
408
-          return ""
412
+          return ''
409
         }
413
         }
410
-        return this.prescription[pkey] + ""
414
+        return this.prescription[pkey] + ''
411
       } else {
415
       } else {
412
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
416
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
413
-          return ""
417
+          return ''
414
         }
418
         }
415
-        return this.solution[skey] + ""
419
+        return this.solution[skey] + ''
416
       }
420
       }
417
-    }, getFloat: function(x) {
421
+    },
422
+    getFloat: function (x) {
418
       if (x != '.') {
423
       if (x != '.') {
419
-        var f = Math.round(x * 100) / 100;
420
-        var s = f.toString();
421
-        var rs = s.indexOf('.');
424
+        var f = Math.round(x * 100) / 100
425
+        var s = f.toString()
426
+        var rs = s.indexOf('.')
422
         if (rs <= 0) {
427
         if (rs <= 0) {
423
-          rs = s.length;
424
-          s += '.';
428
+          rs = s.length
429
+          s += '.'
425
         }
430
         }
426
         while (s.length <= rs + 1) {
431
         while (s.length <= rs + 1) {
427
-          s += '0';
432
+          s += '0'
428
         }
433
         }
429
-        return s;
434
+        return s
430
       } else {
435
       } else {
431
-        return '0.0';
436
+        return '0.0'
432
       }
437
       }
433
-
434
     }
438
     }
435
   }
439
   }
436
-};
440
+}
437
 </script>
441
 </script>
438
 
442
 
439
 <style rel="stylesheet/scss" lang="scss" scoped>
443
 <style rel="stylesheet/scss" lang="scss" scoped>
440
 </style>
444
 </style>
441
-
442
-
443
-

+ 58 - 61
src/pages/main/today/doubleCheck.vue View File

1
 <template>
1
 <template>
2
    <div class="plate-box">
2
    <div class="plate-box">
3
-    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2> 
4
-    <div class="plate " >   
3
+    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
4
+    <div class="plate " >
5
         <ul>
5
         <ul>
6
              <li style="height: 0.6rem;">
6
              <li style="height: 0.6rem;">
7
                 <label>透析物品核查 : </label>
7
                 <label>透析物品核查 : </label>
46
         </ul>
46
         </ul>
47
     </div>
47
     </div>
48
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
48
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
49
-  </div>    
49
+  </div>
50
 </template>
50
 </template>
51
 
51
 
52
 <script>
52
 <script>
53
 export default {
53
 export default {
54
-  name: "DoubleCheck",
55
-  data() {
54
+  name: 'DoubleCheck',
55
+  data () {
56
     return {
56
     return {
57
-      title: "双人查对 ",
57
+      title: '双人查对 '
58
       // note: "无明显异常",
58
       // note: "无明显异常",
59
       // doctor: "刘小军  医生",
59
       // doctor: "刘小军  医生",
60
       // info1: [
60
       // info1: [
72
       // info3: [
72
       // info3: [
73
       //   { value: "1", label: " ", content: "", unit: "" },
73
       //   { value: "1", label: " ", content: "", unit: "" },
74
       // ]
74
       // ]
75
-    };
75
+    }
76
   },
76
   },
77
   props: {
77
   props: {
78
     record: {
78
     record: {
79
-      type: Object,
79
+      type: Object
80
     }
80
     }
81
   },
81
   },
82
   computed: {
82
   computed: {
83
-    dialysis_item_check: function() {
84
-      if (this.record == null || this.record.id == "") {
85
-        return ""
83
+    dialysis_item_check: function () {
84
+      if (this.record == null || this.record.id == '') {
85
+        return ''
86
       }
86
       }
87
-      return this.record.dialysis_item_check == 1 ? "正确" : "错误"
87
+      return this.record.dialysis_item_check == 1 ? '正确' : '错误'
88
     },
88
     },
89
-    dialysis_parameter_check: function() {
90
-      if (this.record == null || this.record.id == "") {
91
-        return ""
89
+    dialysis_parameter_check: function () {
90
+      if (this.record == null || this.record.id == '') {
91
+        return ''
92
       }
92
       }
93
-      return this.record.dialysis_parameter_check == 1 ? "正确" : "错误"
93
+      return this.record.dialysis_parameter_check == 1 ? '正确' : '错误'
94
     },
94
     },
95
-    vascular_access_verification: function() {
96
-      if (this.record == null || this.record.id == "") {
97
-        return ""
95
+    vascular_access_verification: function () {
96
+      if (this.record == null || this.record.id == '') {
97
+        return ''
98
       }
98
       }
99
-      return this.record.vascular_access_verification == 1 ? "正确" : "错误"
99
+      return this.record.vascular_access_verification == 1 ? '正确' : '错误'
100
     },
100
     },
101
-    pipeline_connection_check: function() {
102
-      if (this.record == null || this.record.id == "") {
103
-        return ""
101
+    pipeline_connection_check: function () {
102
+      if (this.record == null || this.record.id == '') {
103
+        return ''
104
       }
104
       }
105
-      return this.record.pipeline_connection_check == 1 ? "正确" : "错误"
105
+      return this.record.pipeline_connection_check == 1 ? '正确' : '错误'
106
     },
106
     },
107
-    dialysis_item_desc_title: function() {
108
-      if (this.record == null || this.record.id == "") {
109
-        return ""
107
+    dialysis_item_desc_title: function () {
108
+      if (this.record == null || this.record.id == '') {
109
+        return ''
110
       }
110
       }
111
-      return this.record.dialysis_item_check == 1 ? "" : "错误描述 : "
111
+      return this.record.dialysis_item_check == 1 ? '' : '错误描述 : '
112
     },
112
     },
113
-    dialysis_parameter_desc_title: function() {
114
-      if (this.record == null || this.record.id == "") {
115
-        return ""
113
+    dialysis_parameter_desc_title: function () {
114
+      if (this.record == null || this.record.id == '') {
115
+        return ''
116
       }
116
       }
117
-      return this.record.dialysis_parameter_check == 1 ? "" : "错误描述 : "
117
+      return this.record.dialysis_parameter_check == 1 ? '' : '错误描述 : '
118
     },
118
     },
119
-    vascular_access_desc_title: function() {
120
-      if (this.record == null || this.record.id == "") {
121
-        return ""
119
+    vascular_access_desc_title: function () {
120
+      if (this.record == null || this.record.id == '') {
121
+        return ''
122
       }
122
       }
123
-      return this.record.vascular_access_verification == 1 ? "" : "错误描述 : "
123
+      return this.record.vascular_access_verification == 1 ? '' : '错误描述 : '
124
     },
124
     },
125
-    pipeline_connection_desc_title: function() {
126
-      if (this.record == null || this.record.id == "") {
127
-        return ""
125
+    pipeline_connection_desc_title: function () {
126
+      if (this.record == null || this.record.id == '') {
127
+        return ''
128
       }
128
       }
129
-      return this.record.pipeline_connection_check == 1 ? "" : "错误描述 : "
129
+      return this.record.pipeline_connection_check == 1 ? '' : '错误描述 : '
130
     },
130
     },
131
 
131
 
132
-    dialysis_item_desc: function() {
133
-      if (this.record == null || this.record.id == "") {
134
-        return ""
132
+    dialysis_item_desc: function () {
133
+      if (this.record == null || this.record.id == '') {
134
+        return ''
135
       }
135
       }
136
-      return this.record.dialysis_item_check == 1 ? "" : this.record.dialysis_item_desc
136
+      return this.record.dialysis_item_check == 1 ? '' : this.record.dialysis_item_desc
137
     },
137
     },
138
-    dialysis_parameter_desc: function() {
139
-      if (this.record == null || this.record.id == "") {
140
-        return ""
138
+    dialysis_parameter_desc: function () {
139
+      if (this.record == null || this.record.id == '') {
140
+        return ''
141
       }
141
       }
142
-      return this.record.dialysis_parameter_check == 1 ? "" : this.record.dialysis_parameter_desc
142
+      return this.record.dialysis_parameter_check == 1 ? '' : this.record.dialysis_parameter_desc
143
     },
143
     },
144
-    vascular_access_desc: function() {
145
-      if (this.record == null || this.record.id == "") {
146
-        return ""
144
+    vascular_access_desc: function () {
145
+      if (this.record == null || this.record.id == '') {
146
+        return ''
147
       }
147
       }
148
-      return this.record.vascular_access_verification == 1 ? "" : this.record.vascular_access_desc
148
+      return this.record.vascular_access_verification == 1 ? '' : this.record.vascular_access_desc
149
     },
149
     },
150
-    pipeline_connection_desc: function() {
151
-      if (this.record == null || this.record.id == "") {
152
-        return ""
150
+    pipeline_connection_desc: function () {
151
+      if (this.record == null || this.record.id == '') {
152
+        return ''
153
       }
153
       }
154
-      return this.record.pipeline_connection_check == 1 ? "" : this.record.pipeline_connection_desc
154
+      return this.record.pipeline_connection_check == 1 ? '' : this.record.pipeline_connection_desc
155
     }
155
     }
156
   },
156
   },
157
   methods: {
157
   methods: {
171
     //     this.info2[1].content = ""
171
     //     this.info2[1].content = ""
172
     //     this.info2[2].content = ""
172
     //     this.info2[2].content = ""
173
     //     this.info2[3].content = ""
173
     //     this.info2[3].content = ""
174
-        
174
+
175
     //   } else {
175
     //   } else {
176
     //     this.info1[0].content = record.dialysis_item_check == 1 ? "正确" : "错误"
176
     //     this.info1[0].content = record.dialysis_item_check == 1 ? "正确" : "错误"
177
     //     this.info1[1].content = record.dialysis_parameter_check == 1 ? "正确" : "错误"
177
     //     this.info1[1].content = record.dialysis_parameter_check == 1 ? "正确" : "错误"
190
     //   }
190
     //   }
191
     // }
191
     // }
192
   }
192
   }
193
-};
193
+}
194
 </script>
194
 </script>
195
 
195
 
196
 <style rel="stylesheet/scss" lang="scss" scoped>
196
 <style rel="stylesheet/scss" lang="scss" scoped>
197
 
197
 
198
 </style>
198
 </style>
199
-
200
-
201
-

+ 66 - 39
src/pages/main/today/statOrder.vue View File

5
       <p>{{title}}</p>
5
       <p>{{title}}</p>
6
       <span class="line"></span>
6
       <span class="line"></span>
7
     </h2>
7
     </h2>
8
+<<<<<<< .mine
8
     <div class="newDiv">
9
     <div class="newDiv">
9
       <table class="table">
10
       <table class="table">
10
         <tr>
11
         <tr>
21
               v-if="i == 0"
22
               v-if="i == 0"
22
               :rowspan="group.advices.length"
23
               :rowspan="group.advices.length"
23
             >{{doctor_map[advice.advice_doctor] != undefined ? doctor_map[advice.advice_doctor].name : ""}}</td>
24
             >{{doctor_map[advice.advice_doctor] != undefined ? doctor_map[advice.advice_doctor].name : ""}}</td>
25
+=======
26
+    <table class="table">
27
+      <tr>
28
+        <th width="12%">开嘱医生</th>
29
+        <th width="18%">开始时间</th>
30
+        <th width="31%">医嘱内容</th>
31
+        <th width="18.6%">执行时间</th>
32
+        <th width="10.5%">执行护士</th>
33
+        <th v-if="template_id != 6" width="9.4%">核对护士</th>
34
+      </tr>
35
+      <template v-for="(group) in advice_groups">
36
+        <tr v-for="(advice, i) in group.advices" :key="advice.id">
37
+            <td v-if="i == 0" :rowspan="group.advices.length">{{doctor_map[advice.advice_doctor] != undefined ? doctor_map[advice.advice_doctor].name : ""}}</td>
38
+
39
+
40
+
41
+
42
+>>>>>>> .theirs
24
 
43
 
25
             <td
44
             <td
26
               v-if="i == 0"
45
               v-if="i == 0"
30
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
49
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
31
               <span>{{advice.advice_name }}</span>
50
               <span>{{advice.advice_name }}</span>
32
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
51
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
33
-              <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span>
52
+              <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
34
               <span
53
               <span
35
                 v-if="advice.prescribing_number"
54
                 v-if="advice.prescribing_number"
36
               >{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
55
               >{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
56
 </template>
75
 </template>
57
 
76
 
58
 <script>
77
 <script>
59
-import { parseTime } from "@/utils";
78
+import { parseTime } from '@/utils';
60
 
79
 
61
 export default {
80
 export default {
62
-  name: "statOrder",
63
-  data() {
81
+  name: 'statOrder',
82
+  data () {
64
     return {
83
     return {
84
+<<<<<<< .mine
65
       title: "临时医嘱 ",
85
       title: "临时医嘱 ",
66
       tableDate: []
86
       tableDate: []
67
     };
87
     };
88
+
89
+=======
90
+      title: '临时医嘱 ',
91
+      template_id: 0,
92
+      tableDate: []
93
+    }
94
+>>>>>>> .theirs
68
   },
95
   },
69
   props: {
96
   props: {
70
     doctor_map: {
97
     doctor_map: {
77
       }
104
       }
78
     }
105
     }
79
   },
106
   },
107
+  created () {
108
+    this.template_id = this.$store.getters.user.template_info.template_id
109
+  },
80
   methods: {
110
   methods: {
81
-    setAdvices(advices) {
111
+    setAdvices (advices) {
82
       if (advices == null) {
112
       if (advices == null) {
83
-        advices = [];
113
+        advices = []
84
       }
114
       }
85
-      this.tableDate.splice(0, this.tableDate.length);
86
-      this.tableDate.push(...advices);
115
+      this.tableDate.splice(0, this.tableDate.length)
116
+      this.tableDate.push(...advices)
87
     },
117
     },
88
-    parseTime(time, layout) {
118
+    parseTime (time, layout) {
89
       if (time == 0) {
119
       if (time == 0) {
90
-        return "";
120
+        return '';
91
       }
121
       }
92
-      return parseTime(time, layout);
122
+      return parseTime(time, layout)
93
     },
123
     },
94
-    createMedicalOrder(row) {
124
+    createMedicalOrder (row) {
95
       if (row.parent_id > 0) {
125
       if (row.parent_id > 0) {
96
-        var spliceIndex = -1;
126
+        var spliceIndex = -1
97
         for (let index = this.tableDate.length - 1; ; index--) {
127
         for (let index = this.tableDate.length - 1; ; index--) {
98
           if (this.tableDate[index].parent_id === row.parent_id) {
128
           if (this.tableDate[index].parent_id === row.parent_id) {
99
-            spliceIndex = index;
129
+            spliceIndex = index
100
             break;
130
             break;
101
           } else if (this.tableDate[index].id === row.parent_id) {
131
           } else if (this.tableDate[index].id === row.parent_id) {
102
-            spliceIndex = index;
132
+            spliceIndex = index
103
             break;
133
             break;
104
           }
134
           }
105
         }
135
         }
106
         if (spliceIndex > -1) {
136
         if (spliceIndex > -1) {
107
-          spliceIndex += 1;
137
+          spliceIndex += 1
108
           if (spliceIndex === this.tableDate.length) {
138
           if (spliceIndex === this.tableDate.length) {
109
-            this.tableDate.push(row);
139
+            this.tableDate.push(row)
110
           } else {
140
           } else {
111
-            var swapData = this.tableDate.splice(spliceIndex);
112
-            this.tableDate.push(row);
113
-            this.tableDate = this.tableDate.concat(swapData);
141
+            var swapData = this.tableDate.splice(spliceIndex)
142
+            this.tableDate.push(row)
143
+            this.tableDate = this.tableDate.concat(swapData)
114
           }
144
           }
115
         }
145
         }
116
       } else {
146
       } else {
117
-        this.tableDate.unshift(row);
147
+        this.tableDate.unshift(row)
118
       }
148
       }
119
     },
149
     },
120
-    delMedicalOrder(row) {
150
+    delMedicalOrder (row) {
121
       if (row.parent_id > 0) {
151
       if (row.parent_id > 0) {
122
-        var rslen = this.tableDate.length;
152
+        var rslen = this.tableDate.length
123
         for (let i = 0; i < rslen; i++) {
153
         for (let i = 0; i < rslen; i++) {
124
           if (this.tableDate[i].id == row.id) {
154
           if (this.tableDate[i].id == row.id) {
125
-            this.tableDate.splice(i, 1);
155
+            this.tableDate.splice(i, 1)
126
             break;
156
             break;
127
           }
157
           }
128
         }
158
         }
129
       } else {
159
       } else {
130
-        var resetTableData = this.tableDate;
131
-        this.tableDate = [];
132
-        var that = this;
133
-        var rslen = resetTableData.length;
160
+        var resetTableData = this.tableDate
161
+        this.tableDate = []
162
+        var that = this
163
+        var rslen = resetTableData.length
134
         for (let i = 0; i < rslen; i++) {
164
         for (let i = 0; i < rslen; i++) {
135
           if (
165
           if (
136
             resetTableData[i].id != row.id &&
166
             resetTableData[i].id != row.id &&
137
             resetTableData[i].parent_id != row.id
167
             resetTableData[i].parent_id != row.id
138
           ) {
168
           ) {
139
-            that.tableDate.push(resetTableData[i]);
169
+            that.tableDate.push(resetTableData[i])
140
           }
170
           }
141
         }
171
         }
142
       }
172
       }
143
     },
173
     },
144
-    executionMedicalOrder(row) {
145
-      var alen = this.tableDate.length;
174
+    executionMedicalOrder (row) {
175
+      var alen = this.tableDate.length
146
       for (let index = 0; index < alen; index++) {
176
       for (let index = 0; index < alen; index++) {
147
         if (this.tableDate[index].id == row.id) {
177
         if (this.tableDate[index].id == row.id) {
148
-          this.tableDate[index].execution_state = 1;
149
-          this.tableDate[index].execution_staff = row.execution_staff;
150
-          this.tableDate[index].execution_time = row.execution_time;
151
-          this.tableDate[index].checker = row.checker;
178
+          this.tableDate[index].execution_state = 1
179
+          this.tableDate[index].execution_staff = row.execution_staff
180
+          this.tableDate[index].execution_time = row.execution_time
181
+          this.tableDate[index].checker = row.checker
152
           break;
182
           break;
153
         }
183
         }
154
       }
184
       }
155
     }
185
     }
156
   }
186
   }
157
-};
187
+}
158
 </script>
188
 </script>
159
 
189
 
160
 <style rel="stylesheet/scss" lang="scss" scoped>
190
 <style rel="stylesheet/scss" lang="scss" scoped>
198
   overflow-x: auto;
228
   overflow-x: auto;
199
 }
229
 }
200
 </style>
230
 </style>
201
-
202
-
203
-

+ 19 - 20
src/pages/main/today/treatmentOf.vue View File

1
 <template>
1
 <template>
2
    <div class="plate-box">
2
    <div class="plate-box">
3
-    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2> 
4
-    <div class="plate " >   
3
+
4
+    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
5
+    <div class="plate " >
5
         <ul>
6
         <ul>
6
              <li>
7
              <li>
7
                 <label>透后宣教 : </label>
8
                 <label>透后宣教 : </label>
14
         </ul>
15
         </ul>
15
     </div>
16
     </div>
16
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
17
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
17
-  </div>    
18
+
19
+  </div>
18
 </template>
20
 </template>
19
 
21
 
20
 <script>
22
 <script>
21
 export default {
23
 export default {
22
-  name: "DialysisPrescription",
23
-  data() {
24
+  name: 'DialysisPrescription',
25
+  data () {
24
     return {
26
     return {
25
-      title: "治疗小结  ",
26
-      doctor: "刘小花  护士",
27
+      title: '治疗小结  ',
28
+      doctor: '刘小花  护士'
27
       // info1: [
29
       // info1: [
28
       //   { value: "1", label: "透后宣教 : ", content: "", unit: "" },
30
       //   { value: "1", label: "透后宣教 : ", content: "", unit: "" },
29
       //   { value: "1", label: "透析小结 : ", content: "", unit: "" }
31
       //   { value: "1", label: "透析小结 : ", content: "", unit: "" }
30
       // ]
32
       // ]
31
-    };
33
+    }
32
   },
34
   },
33
   props: {
35
   props: {
34
     record: {
36
     record: {
35
-      type: Object,
37
+      type: Object
36
     }
38
     }
37
   },
39
   },
38
   computed: {
40
   computed: {
39
-    mission: function() {
40
-      if (this.record == null || this.record.id == "") {
41
-        return ""
41
+    mission: function () {
42
+      if (this.record == null || this.record.id == '') {
43
+        return ''
42
       }
44
       }
43
       return this.record.mission
45
       return this.record.mission
44
     },
46
     },
45
-    dialysis_summary: function() {
46
-      if (this.record == null || this.record.id == "") {
47
-        return ""
47
+    dialysis_summary: function () {
48
+      if (this.record == null || this.record.id == '') {
49
+        return ''
48
       }
50
       }
49
       return this.record.dialysis_summary
51
       return this.record.dialysis_summary
50
-    },
52
+    }
51
   },
53
   },
52
   methods: {
54
   methods: {
53
     // setRecord(record) {
55
     // setRecord(record) {
55
     //   this.info1[1].content = record.dialysis_summary
57
     //   this.info1[1].content = record.dialysis_summary
56
     // }
58
     // }
57
   }
59
   }
58
-};
60
+}
59
 </script>
61
 </script>
60
 
62
 
61
 <style rel="stylesheet/scss" lang="scss" scoped>
63
 <style rel="stylesheet/scss" lang="scss" scoped>
62
 </style>
64
 </style>
63
-
64
-
65
-

+ 4 - 3
src/pages/waitingRoom/components/acceptsAssessment.vue View File

1
 <template>
1
 <template>
2
   <div class="plate-box">
2
   <div class="plate-box">
3
-    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2> 
4
-    <div class="plate " >   
3
+    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
4
+    <div class="plate " >
5
       <ul>
5
       <ul>
6
         <li style="height: 0.6rem;">
6
         <li style="height: 0.6rem;">
7
           <label>入室方式 : </label>
7
           <label>入室方式 : </label>
34
       </ul>
34
       </ul>
35
     </div>
35
     </div>
36
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
36
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
37
-  </div>    
37
+  </div>
38
 </template>
38
 </template>
39
 
39
 
40
 <script>
40
 <script>
71
         "1": "清醒",
71
         "1": "清醒",
72
         "2": "嗜睡",
72
         "2": "嗜睡",
73
         "3": "昏迷",
73
         "3": "昏迷",
74
+        "4": "模糊"
74
       },
75
       },
75
       appetites: {
76
       appetites: {
76
         "1": "正常",
77
         "1": "正常",

+ 2 - 0
src/pages/waitingRoom/components/dialog/acceptsAssessment.vue View File

23
           <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
23
           <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
24
           <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
24
           <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
25
           <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
25
           <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
26
+          <el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>
27
+
26
 
28
 
27
         </div>
29
         </div>
28
       </div>
30
       </div>

+ 25 - 25
src/router/index.js View File

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
     }
68
     }
69
   ]
69
   ]
70
 })
70
 })

+ 4 - 0
src/store/index.js View File

11
 Vue.use(Vuex)
11
 Vue.use(Vuex)
12
 
12
 
13
 const getters = {
13
 const getters = {
14
+  requestScheduals: state => state.user.requestScheduals,
15
+  requestDialysisScheduals: state => state.user.requestDialysisScheduals,
16
+  scheduals: state => state.user.scheduals,
17
+  waitscheduals: state => state.user.waitscheduals,
14
   patient_types: state => state.global_config.patient_types,
18
   patient_types: state => state.global_config.patient_types,
15
   partitions: state => state.global_config.partitions,
19
   partitions: state => state.global_config.partitions,
16
   marital_options: state => state.global_config.marital_options,
20
   marital_options: state => state.global_config.marital_options,

+ 64 - 37
src/store/user/user.js View File

1
 
1
 
2
 const user = {
2
 const user = {
3
   state: {
3
   state: {
4
+
4
     role_type: 1, // 1.医生 2.护士
5
     role_type: 1, // 1.医生 2.护士
6
+    requestScheduals: {},
7
+    requestDialysisScheduals: {},
8
+    waitscheduals: {},
9
+    scheduals: {},
5
     user: {
10
     user: {
6
       id: 0,
11
       id: 0,
7
-      mobile: "",
8
-      avatar: "",
9
-      user_name: "",
10
-      intro: "",
12
+      mobile: '',
13
+      avatar: '',
14
+      user_name: '',
15
+      intro: '',
11
       user_type: 0,
16
       user_type: 0,
12
-      user_title: 0,
17
+      user_title: 0
13
     },
18
     },
14
     org: {
19
     org: {
15
       id: 0,
20
       id: 0,
16
-      org_short_name: "",
17
-      org_name: "",
18
-      org_intro: "",
19
-      org_logo: "",
20
-      address: "",
21
+      org_short_name: '',
22
+      org_name: '',
23
+      org_intro: '',
24
+      org_logo: '',
25
+      address: '',
21
       province: 0,
26
       province: 0,
22
       city: 0,
27
       city: 0,
23
-      district: 0,
28
+      district: 0
24
     },
29
     },
25
-    serve:{
26
-      state:0,
27
-      status:1,
28
-      start:0,
29
-      end:0,
30
+    serve: {
31
+      state: 0,
32
+      status: 1,
33
+      start: 0,
34
+      end: 0
30
     },
35
     },
31
     subscibe: {
36
     subscibe: {
32
       id: 0,
37
       id: 0,
33
-			period_start: 0,
34
-			period_end: 0,
35
-			state: 3,
38
+      period_start: 0,
39
+      period_end: 0,
40
+      state: 3
36
     },
41
     },
37
-    template_info:{
42
+    template_info: {
38
       id: 0,
43
       id: 0,
39
-      org_id:0,
40
-      template_id:0,
44
+      org_id: 0,
45
+      template_id: 0
41
     },
46
     },
42
-    fileds:[],
47
+    fileds: []
43
 
48
 
44
   },
49
   },
45
 
50
 
48
       state.fileds = payload.fileds
53
       state.fileds = payload.fileds
49
       console.log(payload.fileds)
54
       console.log(payload.fileds)
50
       console.log(state.fileds)
55
       console.log(state.fileds)
51
-
52
     },
56
     },
53
     SET_USER: (state, user) => {
57
     SET_USER: (state, user) => {
54
       state.user.id = user.id
58
       state.user.id = user.id
79
     SET_ROLE_TYPE: (state, type) => {
83
     SET_ROLE_TYPE: (state, type) => {
80
       state.role_type = type
84
       state.role_type = type
81
     },
85
     },
82
-    SET_ORG_SERVE:(state, serve)=>{
86
+    SET_ORG_SERVE: (state, serve) => {
83
       state.serve.state = serve.state
87
       state.serve.state = serve.state
84
       state.serve.status = serve.status
88
       state.serve.status = serve.status
85
       state.serve.start = serve.start
89
       state.serve.start = serve.start
86
       state.serve.end = serve.end
90
       state.serve.end = serve.end
87
-    },SET_TEMPLATE:(state, template_info) =>{
91
+    },
92
+    // eslint-disable-next-line camelcase
93
+    SET_TEMPLATE: (state, template_info) => {
88
       state.template_info.id = template_info.id
94
       state.template_info.id = template_info.id
89
       state.template_info.org_id = template_info.org_id
95
       state.template_info.org_id = template_info.org_id
90
       state.template_info.template_id = template_info.template_id
96
       state.template_info.template_id = template_info.template_id
97
+    },
98
+    SET_REQUESTSCHEDUALS: (state, requestScheduals) => {
99
+      state.requestScheduals = requestScheduals
100
+    },
101
+    SET_REQUESTDIALYSISSCHEDUALS: (state, requestDialysisScheduals) => {
102
+      state.requestDialysisScheduals = requestDialysisScheduals
103
+    },
104
+    SET_SCHEDUALS: (state, scheduals) => {
105
+      state.scheduals = scheduals
106
+    },
107
+    SET_WAITSCHEDUALS: (state, waitscheduals) => {
108
+      state.waitscheduals = waitscheduals
91
     }
109
     }
92
   },
110
   },
93
 
111
 
94
   actions: {
112
   actions: {
95
-    InitUserInfo({commit}, userInfo) {
113
+    InitUserInfo ({commit}, userInfo) {
96
       var user = userInfo.user
114
       var user = userInfo.user
97
       var org = userInfo.org
115
       var org = userInfo.org
98
       var subscibe = userInfo.subscibe
116
       var subscibe = userInfo.subscibe
117
+      // eslint-disable-next-line camelcase
99
       var template_info = userInfo.template_info
118
       var template_info = userInfo.template_info
100
 
119
 
101
       var fileds = userInfo.filed_list
120
       var fileds = userInfo.filed_list
102
       console.log(userInfo.filed_list)
121
       console.log(userInfo.filed_list)
103
       console.log(fileds)
122
       console.log(fileds)
104
 
123
 
105
-      commit("SET_USER", user)
106
-      commit("SET_ORG", org)
107
-      commit("SET_SUBSCIBE", subscibe)
108
-      commit("SET_TEMPLATE", template_info)
124
+      commit('SET_USER', user)
125
+      commit('SET_ORG', org)
126
+      commit('SET_SUBSCIBE', subscibe)
127
+      commit('SET_TEMPLATE', template_info)
109
       commit('SET_FILEDS', {
128
       commit('SET_FILEDS', {
110
         fileds
129
         fileds
111
       })
130
       })
112
-
113
-
114
-
115
-
116
     },
131
     },
117
-    SwitchRoleTypeToDoctor({commit}) {
118
-      commit("SET_ROLE_TYPE", 1)
132
+    SwitchRoleTypeToDoctor ({commit}) {
133
+      commit('SET_ROLE_TYPE', 1)
134
+    },
135
+    SetRequestScheduals ({commit}, requestScheduals) {
136
+      commit('SET_REQUESTSCHEDUALS', requestScheduals)
137
+    },
138
+    SetRequestDialysisScheduals ({commit}, requestDialysisScheduals) {
139
+      commit('SET_REQUESTDIALYSISSCHEDUALS', requestDialysisScheduals)
140
+    },
141
+    SetScheduals ({commit}, scheduals) {
142
+      commit('SET_SCHEDUALS', scheduals)
143
+    },
144
+    SetWaitScheduals ({commit}, waitscheduals) {
145
+      commit('SET_WAITSCHEDUALS', waitscheduals)
119
     }
146
     }
120
   }
147
   }
121
 }
148
 }

+ 1 - 1
src/styles/style.scss View File

86
         line-height: 0.62rem;
86
         line-height: 0.62rem;
87
         float: left;
87
         float: left;
88
         width: 5.2rem;
88
         width: 5.2rem;
89
-        @media only screen and (max-width: 415px) {
89
+        @media only screen and (min-width: 376px) and (max-width: 415px) {
90
           width: 4.2rem;
90
           width: 4.2rem;
91
         }
91
         }
92
         .content {
92
         .content {