소스 검색

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

See999 5 년 전
부모
커밋
b9eb628d95

+ 1 - 1
build/cdn.json 파일 보기

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

+ 2 - 3
config/prod.env.js 파일 보기

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: '"http://api.xt.test.sgjyun.com"'
7
 
5
 
6
+  // BASE_API: '"https://api.xt.kuyicloud.com"'
8
   // http://api.xt.test.sgjyun.com
7
   // http://api.xt.test.sgjyun.com
9
   // '"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"'
10
 }
9
 }

+ 7 - 0
src/api/advice.js 파일 보기

128
   })
128
   })
129
 }
129
 }
130
 
130
 
131
+export function GetRemindLongAdvice(params){
132
+  return request({
133
+    url:'/m/api/dialysis/advice_remind',
134
+    method:'Get',
135
+    params:params,
136
+  })
137
+}
131
 
138
 

+ 20 - 0
src/api/dialysis.js 파일 보기

188
   })
188
   })
189
 }
189
 }
190
 
190
 
191
+export function GetMonitorToday (params) {
192
+  return request({
193
+    url: '/m/api/monitor/gettodaylast',
194
+    method: 'get',
195
+    params: params
196
+  })
197
+}
198
+
191
 export function PostSearch (keyword) {
199
 export function PostSearch (keyword) {
192
   return request({
200
   return request({
193
     url: '/m/api/patients/search?keyword=' + keyword,
201
     url: '/m/api/patients/search?keyword=' + keyword,
213
 }
221
 }
214
 
222
 
215
 
223
 
224
+
225
+
226
+export function CreateGroupAdvice(id, groupno, advices){
227
+  return request({
228
+    url:'/m/api/advice_remind/create?id='+id + '&groupno=' + groupno,
229
+    method:'post',
230
+    data:advices,
231
+  })
232
+
233
+}
234
+
235
+

+ 35 - 4
src/pages/main/dialog/AssessmentDialog.vue 파일 보기

189
         </div>
189
         </div>
190
 
190
 
191
 
191
 
192
+        <div @click="showSubMenu('puncture_needle')" class="item" ref="puncture_needle" v-if="isShow('穿刺针')">
193
+          <h2 class="name">穿刺针</h2>
194
+          <div class="content">
195
+            <span class="text" style="width: 100px">{{formValue.puncture_needle}}</span>
196
+            <span class="iconfont">&#xe6f9;</span>
197
+          </div>
198
+        </div>
199
+
200
+
192
         <div @click="showSubMenu('puncture_way')" class="item" ref="puncture_way" v-if="isShow('穿刺方式')">
201
         <div @click="showSubMenu('puncture_way')" class="item" ref="puncture_way" v-if="isShow('穿刺方式')">
193
           <h2 class="name">穿刺方式</h2>
202
           <h2 class="name">穿刺方式</h2>
194
           <div class="content">
203
           <div class="content">
408
           skin_other:'',
417
           skin_other:'',
409
           infect_other:'',
418
           infect_other:'',
410
           ductus_arantii_other:'',
419
           ductus_arantii_other:'',
420
+          puncture_needle:'',
411
 
421
 
412
         },
422
         },
413
 
423
 
860
               this.propForm.result = []
870
               this.propForm.result = []
861
             }
871
             }
862
             this.propForm.click_ref = 'ductus_arantii'
872
             this.propForm.click_ref = 'ductus_arantii'
863
-            break
873
+
864
 
874
 
865
             break
875
             break
866
 
876
 
926
             this.propForm.click_ref = 'skin'
936
             this.propForm.click_ref = 'skin'
927
             break
937
             break
928
 
938
 
929
-
930
-
931
-
939
+          case 'puncture_needle':
940
+            this.propForm.result = []
941
+            this.propForm.isHasOther = 2
942
+            this.propForm.type = 22
943
+            this.isShowDialog = false
944
+            this.propForm.title = '穿刺针'
945
+            this.visibility = true
946
+            this.propForm.list = this.$store.getters.puncture_needle
947
+            this.propForm.optionList = []
948
+            this.propForm.isMultiple = 2
949
+            if (this.formValue.puncture_needle != undefined || this.formValue.puncture_needle != null) {
950
+              if (this.formValue.puncture_needle.length > 0) {
951
+                this.propForm.result = this.formValue.puncture_needle.split(',')
952
+              } else {
953
+                this.propForm.result = []
954
+              }
955
+            } else {
956
+              this.propForm.result = []
957
+            }
958
+            this.propForm.click_ref = 'puncture_needle'
959
+            break
932
 
960
 
933
         }
961
         }
934
 
962
 
1028
           case 21:
1056
           case 21:
1029
             this.formValue.skin = val.selectId.toString()
1057
             this.formValue.skin = val.selectId.toString()
1030
             break
1058
             break
1059
+          case 22:
1060
+            this.formValue.puncture_needle = val.result.join(',')
1061
+            break
1031
         }
1062
         }
1032
 
1063
 
1033
       }, QueryPartById: function (val) {
1064
       }, QueryPartById: function (val) {

+ 44 - 5
src/pages/main/dialog/ComputerDialog.vue 파일 보기

33
           </div>
33
           </div>
34
         </div>
34
         </div>
35
 
35
 
36
+        <div class="item" v-if="template_id == 6">
37
+          <label class="name" for="xll">引血(ml/min)</label>
38
+          <div class="content">
39
+            <input type="tel" @focus="inputFocus"  id="xll" v-model="blood_drawing"/>
40
+          </div>
41
+        </div>
36
 
42
 
37
         <div class="item">
43
         <div class="item">
38
           <h2 class="name">上机时间</h2>
44
           <h2 class="name">上机时间</h2>
42
           </div>
48
           </div>
43
         </div>
49
         </div>
44
 
50
 
51
+        
52
+
45
 
53
 
46
         <div class="perform">
54
         <div class="perform">
47
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
55
           <button @click="commitInfo" v-if="(record == null || record.id == '')">执行上机</button>
83
         isPremission: false,
91
         isPremission: false,
84
         zone_beds: [], // 该排班的区里的床位
92
         zone_beds: [], // 该排班的区里的床位
85
         creator: 0,
93
         creator: 0,
94
+        template_id: 0,
95
+        blood_drawing:100
86
       }
96
       }
87
     },
97
     },
88
     props: {
98
     props: {
124
       }
134
       }
125
     },
135
     },
126
     created () {
136
     created () {
137
+    
138
+      this.template_id = this.$store.getters.user.template_info.template_id;
127
       var date = this.$route.query && this.$route.query.date
139
       var date = this.$route.query && this.$route.query.date
128
       date *= 1000
140
       date *= 1000
129
       var newDate = new Date(date)
141
       var newDate = new Date(date)
145
       if (this.puncture_nurse_id == 0) {
157
       if (this.puncture_nurse_id == 0) {
146
         this.puncture_nurse_id = this.$store.getters.user.user.id
158
         this.puncture_nurse_id = this.$store.getters.user.user.id
147
       }
159
       }
160
+      
161
+      // var beds = []
162
+      // for (let index = 0; index < this.device_numbers.length; index++) {
163
+      //   const device_number = this.device_numbers[index]
164
+      //   if (device_number.zone_id == this.schedule.partition_id) {
165
+      //     beds.push(device_number)
166
+      //   }
167
+      // }
168
+      // this.zone_beds = beds
148
 
169
 
149
-      var beds = []
150
       for (let index = 0; index < this.device_numbers.length; index++) {
170
       for (let index = 0; index < this.device_numbers.length; index++) {
151
         const device_number = this.device_numbers[index]
171
         const device_number = this.device_numbers[index]
152
-        if (device_number.zone_id == this.schedule.partition_id) {
153
-          beds.push(device_number)
154
-        }
172
+        this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
155
       }
173
       }
156
-      this.zone_beds = beds
174
+      this.zone_beds = this.device_numbers
157
 
175
 
158
       if (this.record.id > 0) {
176
       if (this.record.id > 0) {
159
         for (let i = 0; i < this.special_premission.length; i++) {
177
         for (let i = 0; i < this.special_premission.length; i++) {
171
         }
189
         }
172
       }
190
       }
173
 
191
 
192
+
193
+
174
     },
194
     },
175
     methods: {
195
     methods: {
196
+      inputFocus: function (event) {
197
+        var input = event.target
198
+        setTimeout(function () {
199
+          input.scrollIntoView()
200
+        }, 0)
201
+
202
+        if (input.setSelectionRange) {
203
+          setTimeout(function () {
204
+            input.setSelectionRange(0, input.value.length)
205
+          }, 0)
206
+        } else if (input.createTextRange) {
207
+          var rng = input.createTextRange()
208
+          rng.move('character', input.value.length)
209
+          rng.select()
210
+        }
211
+      },
176
       modify(){
212
       modify(){
177
         let ParamsQuery = {}
213
         let ParamsQuery = {}
178
         ParamsQuery['id'] = this.record.id
214
         ParamsQuery['id'] = this.record.id
223
         ParamsQuery['bed'] = this.bed_id
259
         ParamsQuery['bed'] = this.bed_id
224
         ParamsQuery['start_time'] = this.start_time_str
260
         ParamsQuery['start_time'] = this.start_time_str
225
         ParamsQuery['puncture_nurse'] = this.puncture_nurse_id
261
         ParamsQuery['puncture_nurse'] = this.puncture_nurse_id
262
+        ParamsQuery['blood_drawing'] = this.blood_drawing
226
 
263
 
227
         startDialysis(ParamsQuery).then(response => {
264
         startDialysis(ParamsQuery).then(response => {
228
           if (response.data.state == 0) {
265
           if (response.data.state == 0) {
230
             return false
267
             return false
231
           } else {
268
           } else {
232
             Toast.success('上机成功')
269
             Toast.success('上机成功')
270
+            var monitor = response.data.data.monitor
271
+            this.$emit('did_add_monitor', monitor)
233
             this.$emit('did_start', response.data.data.dialysis_order)
272
             this.$emit('did_start', response.data.data.dialysis_order)
234
             var record = this.record
273
             var record = this.record
235
             for (const key in response.data.data.dialysis_order) {
274
             for (const key in response.data.data.dialysis_order) {

+ 69 - 42
src/pages/main/dialog/MonitDialog.vue 파일 보기

26
                 <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
26
                 <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
27
                 <th width="76px">静脉压/动脉压(mmHg)</th>
27
                 <th width="76px">静脉压/动脉压(mmHg)</th>
28
                 <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
28
                 <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
29
-                <th v-if="isShow('超滤量')" width="76px">超滤量(L)</th>
29
+                <th v-if="isShow('超滤量') && template_id ==6" width="76px">超滤量(ml)</th>
30
+                <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
30
                 <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
31
                 <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
31
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
32
                 <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
33
                 <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
114
             </div>
115
             </div>
115
             <div class="cell">
116
             <div class="cell">
116
               <label>静脉压(mmHg)</label>
117
               <label>静脉压(mmHg)</label>
117
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
118
-                     v-model="form.venous_pressure">
118
+              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox" v-model="form.venous_pressure" style="width:60%">
119
+               <button style="width:30%;padding: 0.18rem 0; color: #fff; background: #409eff;" @click="venousPressureChange(1)" >转换</button>
119
             </div>
120
             </div>
120
             <div class="cell" v-if="isShow('跨膜压')">
121
             <div class="cell" v-if="isShow('跨膜压')">
121
               <label>跨膜压(mmHg)</label>
122
               <label>跨膜压(mmHg)</label>
122
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
123
-                     v-model="form.transmembrane_pressure">
123
+              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox" v-model="form.transmembrane_pressure" style="width:60%">
124
+              <button style="width:30%;padding: 0.18rem 0; color: #fff; background: #409eff;" @click="venousPressureChange(2)" >转换</button>
124
             </div>
125
             </div>
125
             <div class="cell" v-if="isShow('超滤量')">
126
             <div class="cell" v-if="isShow('超滤量')">
126
-              <label>超滤量(L)</label>
127
+              <label v-if="template_id == 6">超滤量(ml)</label>
128
+              <label v-else>超滤量(L)</label>
127
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
129
               <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
128
                      v-model="form.ultrafiltration_volume">
130
                      v-model="form.ultrafiltration_volume">
129
             </div>
131
             </div>
134
             </div>
136
             </div>
135
             <div class="cell">
137
             <div class="cell">
136
               <label>动脉压(mmHg)</label>
138
               <label>动脉压(mmHg)</label>
137
-              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox"
138
-                     v-model="form.arterial_pressure">
139
+              <input type="number" @focus="inputFocus" onclick="this.select();" class="inputBox" v-model="form.arterial_pressure" style="width:60%">
140
+              <button style="width:30%;padding: 0.18rem 0; color: #fff; background: #409eff;" @click="venousPressureChange(3)" >转换</button>
139
             </div>
141
             </div>
140
             <div class="cell" v-if="isShow('钠浓度')">
142
             <div class="cell" v-if="isShow('钠浓度')">
141
               <label>钠浓度(mmol/L)</label>
143
               <label>钠浓度(mmol/L)</label>
225
 </template>
227
 </template>
226
 
228
 
227
 <script>
229
 <script>
228
-  import {addMonitorRecord, deleteMonitorRecord, editMonitorRecord, GetMonitor} from '@/api/dialysis'
230
+  import {addMonitorRecord, deleteMonitorRecord, editMonitorRecord, GetMonitor,GetMonitorToday} from '@/api/dialysis'
229
   import {parseTime} from '@/utils'
231
   import {parseTime} from '@/utils'
230
   import {Dialog, Toast} from 'vant'
232
   import {Dialog, Toast} from 'vant'
231
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
233
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
262
         currentIndex: -1,
264
         currentIndex: -1,
263
         currentRow: null,
265
         currentRow: null,
264
         rowClass: 'row-class-active',
266
         rowClass: 'row-class-active',
265
-
267
+        template_id: 0,
266
         visibility: false,
268
         visibility: false,
269
+        today_last_monitor_record : {},
267
         propForm: {
270
         propForm: {
268
           title: '',
271
           title: '',
269
           list: [],
272
           list: [],
308
     },
311
     },
309
     created () {
312
     created () {
310
       var date = this.$route.query && this.$route.query.date
313
       var date = this.$route.query && this.$route.query.date
314
+      this.template_id = this.$store.getters.user.template_info.template_id;
311
       // date *= 1000;
315
       // date *= 1000;
312
       // var newDate = new Date(date);
316
       // var newDate = new Date(date);
313
       // var cDate = new Date();
317
       // var cDate = new Date();
336
       this.form.operate_time = this.pickertime.getTime()
340
       this.form.operate_time = this.pickertime.getTime()
337
     },
341
     },
338
     methods: {
342
     methods: {
343
+      venousPressureChange(type){
344
+        if (type == 1) {
345
+          this.form.venous_pressure = this.form.venous_pressure * 7.5
346
+        } else if(type == 2) {
347
+          this.form.transmembrane_pressure = this.form.transmembrane_pressure * 7.5
348
+        } else {
349
+          this.form.arterial_pressure = this.form.arterial_pressure * 7.5
350
+        }
351
+      },
339
       isShow (name) {
352
       isShow (name) {
340
         var filedList = this.$store.getters.user.fileds
353
         var filedList = this.$store.getters.user.fileds
341
 
354
 
346
         }
359
         }
347
         return false
360
         return false
348
       },
361
       },
362
+      getLastRecordTody(){
363
+        let params = {
364
+          patient_id: this.patient.id
365
+        }
366
+
367
+        GetMonitorToday(params).then(rs => {
368
+          var resp =rs.data.data
369
+          this.today_last_monitor_record = resp.monitor
370
+
371
+          
372
+          // this.form.operate_time = Date.parse(new Date())
373
+          this.form.operate_time = resp.monitor.operate_time ? (resp.monitor.operate_time+3600)* 1000 : Date.parse(new Date())
374
+          this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
375
+          this.form.breathing_rated = resp.monitor.breathing_rate?resp.monitor.breathing_rate:'';
376
+          this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
377
+          this.form.diastolic_bp = '' //this.last_monitor_record.diastolic_blood_pressure;
378
+          this.form.blood_flow_volume = resp.monitor.blood_flow_volume?resp.monitor.blood_flow_volume:'';
379
+          this.form.venous_pressure = ''//this.last_monitor_record.venous_pressure;
380
+          this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
381
+          this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
382
+          this.form.ultrafiltration_rate = resp.monitor.ultrafiltration_rate?resp.monitor.ultrafiltration_rate:'';
383
+          this.form.ultrafiltration_volume =  resp.monitor.ultrafiltration_volume?resp.monitor.ultrafiltration_volume:'';
384
+          this.form.sodium_concentration = resp.monitor.sodium_concentration?resp.monitor.sodium_concentration:'';
385
+          this.form.dialysate_temperature =  resp.monitor.dialysate_temperature?resp.monitor.dialysate_temperature:'';
386
+          this.form.temperature = resp.monitor.temperature?resp.monitor.temperature:'';
387
+          this.form.replacement_rate =  resp.monitor.replacement_rate?resp.monitor.replacement_rate:'';
388
+          this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
389
+          this.form.conductivity = ''
390
+          this.form.displacement_flow_quantity = ''
391
+
392
+          this.form.ktv = '' //this.last_monitor_record.ktv;
393
+          this.form.symptom = ''// this.last_monitor_record.symptom;
394
+          this.form.dispose = '' // this.last_monitor_record.dispose;
395
+          this.form.result = '' //this.last_monitor_record.result;
396
+          this.form.id = -1
397
+          console.log(this.form)
398
+        })
399
+      },
400
+
349
       getLastRecord () {
401
       getLastRecord () {
350
         let params = {
402
         let params = {
351
           patient_id: this.patient.id
403
           patient_id: this.patient.id
716
         this.formPanel = true
768
         this.formPanel = true
717
         this.listPanel = false
769
         this.listPanel = false
718
         // if(this.monitor_time_str == "") {
770
         // if(this.monitor_time_str == "") {
719
-
771
+          
720
         var date = this.$route.query && this.$route.query.date
772
         var date = this.$route.query && this.$route.query.date
721
         date *= 1000
773
         date *= 1000
722
         var newDate = new Date(date)
774
         var newDate = new Date(date)
732
         // this.monitor_time_str = this.handleTime(nowTime);
784
         // this.monitor_time_str = this.handleTime(nowTime);
733
         // this.monitor_time_str = record_date + " " + this.form.monitor_time;
785
         // this.monitor_time_str = record_date + " " + this.form.monitor_time;
734
 
786
 
735
-        // this.getLastRecord()
736
-
737
-        this.form.operate_time = Date.parse(new Date())
738
-        this.form.pulse_frequency = '' //this.last_monitor_record.pulse_frequency;
739
-        this.form.breathing_rated = '' //this.last_monitor_record.breathing_rate;
740
-        this.form.systolic_bp = '' //this.last_monitor_record.systolic_blood_pressure;
741
-        this.form.diastolic_bp = '' //this.last_monitor_record.diastolic_blood_pressure;
742
-        this.form.blood_flow_volume = '' //this.last_monitor_record.blood_flow_volume;
743
-        this.form.venous_pressure = ''//this.last_monitor_record.venous_pressure;
744
-        this.form.arterial_pressure = '' //this.last_monitor_record.arterial_pressure;
745
-        this.form.transmembrane_pressure = '' // this.last_monitor_record.transmembrane_pressure;
746
-        this.form.ultrafiltration_rate = ''// this.last_monitor_record.ultrafiltration_rate;
747
-        this.form.ultrafiltration_volume = ''// this.last_monitor_record.ultrafiltration_volume;
748
-        this.form.sodium_concentration = ''//this.last_monitor_record.sodium_concentration;
749
-        this.form.dialysate_temperature = '' //this.last_monitor_record.dialysate_temperature;
750
-        this.form.temperature = '' //this.last_monitor_record.temperature;
751
-        this.form.replacement_rate = '' // this.last_monitor_record.replacement_rate;
752
-        this.form.displacement_quantity = '' // this.last_monitor_record.displacement_quantity;
753
-        this.form.conductivity = ''
754
-        this.form.displacement_flow_quantity = ''
755
-
756
-        this.form.ktv = '' //this.last_monitor_record.ktv;
757
-        this.form.symptom = ''// this.last_monitor_record.symptom;
758
-        this.form.dispose = '' // this.last_monitor_record.dispose;
759
-        this.form.result = '' //this.last_monitor_record.result;
760
-        this.form.id = -1
761
-        console.log(this.form)
787
+        this.getLastRecordTody()
788
+        
762
         // }
789
         // }
763
       },
790
       },
764
       submitEditAction: function () {
791
       submitEditAction: function () {
904
               this.form.conductivity = ''
931
               this.form.conductivity = ''
905
               this.form.displacement_flow_quantity = ''
932
               this.form.displacement_flow_quantity = ''
906
 
933
 
907
-              this.last_monitor_record.sodium_concentration =
908
-                monitor.sodium_concentration
909
-              this.last_monitor_record.dialysate_temperature =
910
-                monitor.dialysate_temperature
934
+              // this.last_monitor_record.sodium_concentration =
935
+              //   monitor.sodium_concentration
936
+              // this.last_monitor_record.dialysate_temperature =
937
+              //   monitor.dialysate_temperature
911
 
938
 
912
               Toast.success('新增成功')
939
               Toast.success('新增成功')
913
               this.formPanel = false
940
               this.formPanel = false

+ 7 - 7
src/pages/main/dialog/OrdersDialog.vue 파일 보기

78
                 >
78
                 >
79
                   <div class="txt">
79
                   <div class="txt">
80
                     <span>{{advice.advice_name }}</span>
80
                     <span>{{advice.advice_name }}</span>
81
-                    <span>{{ advice.advice_desc }}{{advice.drug_spec_unit}}</span>
81
+                    <span v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</span>
82
                     <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
82
                     <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
83
                     <span v-if="advice.single_dose"
83
                     <span v-if="advice.single_dose"
84
                     >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
84
                     >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
381
           advice_desc: advice.advice_desc,
381
           advice_desc: advice.advice_desc,
382
           remark: advice.remark,
382
           remark: advice.remark,
383
           start_time: advice.start_time,
383
           start_time: advice.start_time,
384
-          // drug_spec: String(advice.drug_spec),
384
+          drug_spec: String(advice.drug_spec),
385
           drug_spec_unit: advice.drug_spec_unit,
385
           drug_spec_unit: advice.drug_spec_unit,
386
           delivery_way: advice.delivery_way,
386
           delivery_way: advice.delivery_way,
387
           execution_frequency: advice.execution_frequency,
387
           execution_frequency: advice.execution_frequency,
402
                     advice.advice_desc = resp_advice.advice_desc
402
                     advice.advice_desc = resp_advice.advice_desc
403
                     advice.remark = resp_advice.remark;
403
                     advice.remark = resp_advice.remark;
404
                     advice.start_time = resp_advice.start_time;
404
                     advice.start_time = resp_advice.start_time;
405
-                    // advice.drug_spec = resp_advice.drug_spec;
405
+                    advice.drug_spec = resp_advice.drug_spec;
406
                     (advice.drug_spec_unit = resp_advice.drug_spec_unit),
406
                     (advice.drug_spec_unit = resp_advice.drug_spec_unit),
407
                     (advice.delivery_way = resp_advice.delivery_way),
407
                     (advice.delivery_way = resp_advice.delivery_way),
408
                       (advice.execution_frequency =
408
                       (advice.execution_frequency =
494
           start_time: subdrug.start_time,
494
           start_time: subdrug.start_time,
495
           advice_name: subdrug.title,
495
           advice_name: subdrug.title,
496
           advice_desc: subdrug.advice_desc,
496
           advice_desc: subdrug.advice_desc,
497
-          // drug_spec: String(subdrug.drug_spec),
497
+          drug_spec: String(subdrug.drug_spec),
498
           drug_spec_unit: subdrug.drug_spec_unit,
498
           drug_spec_unit: subdrug.drug_spec_unit,
499
           single_dose: String(subdrug.single_dose),
499
           single_dose: String(subdrug.single_dose),
500
           single_dose_unit: subdrug.single_dose_unit,
500
           single_dose_unit: subdrug.single_dose_unit,
1139
             title: advice.advice_name,
1139
             title: advice.advice_name,
1140
             advice_desc: advice.advice_desc,
1140
             advice_desc: advice.advice_desc,
1141
             remark: advice.remark,
1141
             remark: advice.remark,
1142
-            // drug_spec: advice.drug_spec,
1142
+            drug_spec: advice.drug_spec,
1143
             drug_spec_unit: advice.drug_spec_unit,
1143
             drug_spec_unit: advice.drug_spec_unit,
1144
             delivery_way: advice.delivery_way,
1144
             delivery_way: advice.delivery_way,
1145
             execution_frequency: advice.execution_frequency,
1145
             execution_frequency: advice.execution_frequency,
1167
             advice_desc: advice.advice_desc,
1167
             advice_desc: advice.advice_desc,
1168
             remark: advice.remark,
1168
             remark: advice.remark,
1169
             start_time: advice.start_time,
1169
             start_time: advice.start_time,
1170
-            // drug_spec: advice.drug_spec,
1170
+            drug_spec: advice.drug_spec,
1171
             drug_spec_unit: advice.drug_spec_unit,
1171
             drug_spec_unit: advice.drug_spec_unit,
1172
             delivery_way: advice.delivery_way,
1172
             delivery_way: advice.delivery_way,
1173
             execution_frequency: advice.execution_frequency,
1173
             execution_frequency: advice.execution_frequency,
1187
               advice_desc: advice.advice_desc,
1187
               advice_desc: advice.advice_desc,
1188
               remark: advice.remark,
1188
               remark: advice.remark,
1189
 
1189
 
1190
-              // drug_spec: advice.drug_spec,
1190
+              drug_spec: advice.drug_spec,
1191
               drug_spec_unit: advice.drug_spec_unit,
1191
               drug_spec_unit: advice.drug_spec_unit,
1192
               delivery_way: advice.delivery_way,
1192
               delivery_way: advice.delivery_way,
1193
               execution_frequency: advice.execution_frequency,
1193
               execution_frequency: advice.execution_frequency,

+ 9 - 6
src/pages/main/dialog/PlaneDialog.vue 파일 보기

83
     special_premission: {
83
     special_premission: {
84
       type: Array,
84
       type: Array,
85
     },
85
     },
86
+    last_monitor_record: {
87
+      type: Object,
88
+    }
86
   },mounted() {
89
   },mounted() {
87
-      if(this.record.id == 0){
90
+      if(this.last_monitor_record.id == 0){
88
         this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
91
         this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
89
       }else{
92
       }else{
90
-        if(this.record.end_time == 0){
91
-          this.end_time_str = parseTime(this.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
92
-        }else{
93
-          this.end_time_str = parseTime(this.record.end_time, "{y}-{m}-{d} {h}:{i}") + ":00";
94
-        }
93
+        this.end_time_str = parseTime(this.last_monitor_record.operate_time, "{y}-{m}-{d} {h}:{i}") + ":00";
95
       }
94
       }
96
     },
95
     },
97
   created(){
96
   created(){
138
 
137
 
139
   },
138
   },
140
   methods: {
139
   methods: {
140
+    set_last_monitor_record(monitor) {
141
+      this.last_monitor_record = monitor
142
+      this.end_time_str = parseTime(this.last_monitor_record.operate_time, "{y}-{m}-{d} {h}:{i}") + ":00";
143
+    },
141
     modify(){
144
     modify(){
142
       let ParamsQuery = {}
145
       let ParamsQuery = {}
143
       ParamsQuery['id'] = this.record.id
146
       ParamsQuery['id'] = this.record.id

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 715 - 434
src/pages/main/dialog/PrescriptionDialog.vue


+ 28 - 8
src/pages/main/dialog/ThorougDialog.vue 파일 보기

173
             <!--<span class="iconfont">&#xe6f9;</span>-->
173
             <!--<span class="iconfont">&#xe6f9;</span>-->
174
           </div>
174
           </div>
175
         </div>
175
         </div>
176
+        <div class="item" v-if="isShow('呼吸频率')">
177
+          <label class="name" for="ml">呼吸频率(次/min)</label>
178
+          <div class="content">
179
+            <input type="tel" @focus="inputFocus" id="ml" v-model="formValue.breathing_rate"/>
180
+            <!--<span class="text">HD</span>-->
181
+            <!--<span class="iconfont">&#xe6f9;</span>-->
182
+          </div>
183
+        </div>
184
+
185
+
176
         <div class="item" v-if="isShow('脉搏')">
186
         <div class="item" v-if="isShow('脉搏')">
177
           <label class="name" for="ml">脉搏(次/分)</label>
187
           <label class="name" for="ml">脉搏(次/分)</label>
178
           <div class="content">
188
           <div class="content">
471
           intravenous_tube:'',
481
           intravenous_tube:'',
472
           dialyzer:'',
482
           dialyzer:'',
473
           is_eat:'',
483
           is_eat:'',
484
+          breathing_rate:'',
474
         },
485
         },
475
 
486
 
476
         record_date: ''
487
         record_date: ''
1235
       let tempHour = ''
1246
       let tempHour = ''
1236
       let tempMinute = ''
1247
       let tempMinute = ''
1237
 
1248
 
1238
-      if (this.record != null && this.record.id != '') {
1249
+      if (this.record != null && this.record.id != '' && this.record.assessment_doctor != 0) {
1239
         for (const key in this.formValue) {
1250
         for (const key in this.formValue) {
1240
           // console.log(key, this.record[key]);
1251
           // console.log(key, this.record[key]);
1241
           this.formValue[key] = this.record[key];
1252
           this.formValue[key] = this.record[key];
1242
         }
1253
         }
1243
-      } else if (this.last_record != null && this.last_record.id != "") {
1244
-        this.$set(this.formValue, "patient_gose", this.last_record.patient_gose)
1245
-        this.$set(this.formValue, "blood_access_part_id", this.last_record.blood_access_part_id)
1246
-        this.$set(this.formValue, "blood_access_part_opera_id", this.last_record.blood_access_part_opera_id)
1247
-        this.$set(this.formValue, "internal_fistula", this.last_record.internal_fistula)
1248
-        this.$set(this.formValue, "internal_fistula_tremor_ac", this.last_record.internal_fistula_tremor_ac)
1249
-      }
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
+  
1250
 
1270
 
1251
 
1271
 
1252
 
1272
 

+ 1 - 1
src/pages/main/dialog/modify_order/ModifyAdviceGroup.vue 파일 보기

225
           parent_id: this.current_advice.parent_id,
225
           parent_id: this.current_advice.parent_id,
226
           title: this.current_advice.advice_name,
226
           title: this.current_advice.advice_name,
227
           advice_desc: this.current_advice.advice_desc,
227
           advice_desc: this.current_advice.advice_desc,
228
-          // drug_spec: this.current_advice.drug_spec,
228
+          drug_spec: this.current_advice.drug_spec,
229
           drug_spec_unit: this.current_advice.drug_spec_unit,
229
           drug_spec_unit: this.current_advice.drug_spec_unit,
230
           delivery_way: this.current_advice.delivery_way,
230
           delivery_way: this.current_advice.delivery_way,
231
           execution_frequency: this.current_advice.execution_frequency,
231
           execution_frequency: this.current_advice.execution_frequency,

+ 4 - 4
src/pages/main/dialog/modify_order/modify_order_form.vue 파일 보기

22
             </div>
22
             </div>
23
             <div class="cell">
23
             <div class="cell">
24
               <label>药品规格</label>
24
               <label>药品规格</label>
25
-              <input class="inputBox" style="width:62.5%" v-model="order.advice_desc">
26
-              <!--<input type="number" onclick="this.select()" class="inputBox" style="width:60%" v-model="order.drug_spec">-->
25
+              <input type="number" onclick="this.select()" class="inputBox" style="width:60%" v-model="order.advice_desc">
27
               <input
26
               <input
28
                 type="text"
27
                 type="text"
29
                 placeholder="单位"
28
                 placeholder="单位"
219
         // record_time: "",
218
         // record_time: "",
220
         title: "",
219
         title: "",
221
         advice_desc: "",
220
         advice_desc: "",
222
-        // drug_spec: "",
221
+        drug_spec: "",
223
         drug_spec_unit: "",
222
         drug_spec_unit: "",
224
         remark:"",
223
         remark:"",
225
         delivery_way: "",
224
         delivery_way: "",
261
 
260
 
262
       this.start_time_str = parseTime(order.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
261
       this.start_time_str = parseTime(order.start_time, "{y}-{m}-{d} {h}:{i}") + ":00";
263
 
262
 
264
-      // this.order.drug_spec = order.drug_spec;
263
+      this.order.drug_spec = order.drug_spec;
265
       this.order.drug_spec_unit = order.drug_spec_unit;
264
       this.order.drug_spec_unit = order.drug_spec_unit;
266
       this.order.delivery_way =
265
       this.order.delivery_way =
267
         order.delivery_way == undefined || order.delivery_way == null
266
         order.delivery_way == undefined || order.delivery_way == null
306
           prescribing_number: this.order.prescribing_number,
305
           prescribing_number: this.order.prescribing_number,
307
           prescribing_number_unit: this.order.prescribing_number_unit,
306
           prescribing_number_unit: this.order.prescribing_number_unit,
308
           start_time:this.start_time_str,
307
           start_time:this.start_time_str,
308
+          drug_spec:this.order.drug_spec,
309
           drug_spec_unit:this.order.drug_spec_unit,
309
           drug_spec_unit:this.order.drug_spec_unit,
310
 
310
 
311
         });
311
         });

+ 5 - 5
src/pages/main/dialog/new_order/AddNewOrders.vue 파일 보기

52
                 <td
52
                 <td
53
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
53
                   style="text-align: left; padding-left: 5px; padding-right: 5px;"
54
                 >{{ advice.title }}</td>
54
                 >{{ advice.title }}</td>
55
-                <td>{{ advice.advice_desc }}{{advice.drug_spec_unit}}</td>
55
+                <td v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</td>
56
                 <td v-if="advice.prescribing_number">{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
56
                 <td v-if="advice.prescribing_number">{{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</td>
57
                 <td v-else></td>
57
                 <td v-else></td>
58
                 <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
58
                 <td v-if="advice.single_dose">{{ advice.single_dose }} {{ advice.single_dose_unit }}</td>
276
         var json = {
276
         var json = {
277
           advice_name: advice.title,
277
           advice_name: advice.title,
278
           advice_desc: advice.advice_desc,
278
           advice_desc: advice.advice_desc,
279
-          // drug_spec: String(advice.drug_spec),
279
+          drug_spec: String(advice.drug_spec),
280
           drug_spec_unit: advice.drug_spec_unit,
280
           drug_spec_unit: advice.drug_spec_unit,
281
           single_dose: String(advice.single_dose),
281
           single_dose: String(advice.single_dose),
282
           single_dose_unit: advice.single_dose_unit,
282
           single_dose_unit: advice.single_dose_unit,
292
           json.subdrugs.push({
292
           json.subdrugs.push({
293
             advice_name: subdrug.title,
293
             advice_name: subdrug.title,
294
             advice_desc: subdrug.advice_desc,
294
             advice_desc: subdrug.advice_desc,
295
-            // drug_spec: String(subdrug.drug_spec),
295
+            drug_spec: String(subdrug.drug_spec),
296
             drug_spec_unit: subdrug.drug_spec_unit,
296
             drug_spec_unit: subdrug.drug_spec_unit,
297
             single_dose: String(subdrug.single_dose),
297
             single_dose: String(subdrug.single_dose),
298
             single_dose_unit: subdrug.single_dose_unit,
298
             single_dose_unit: subdrug.single_dose_unit,
344
             id: adv.id,
344
             id: adv.id,
345
             title: adv.advice_name,
345
             title: adv.advice_name,
346
             advice_desc: adv.advice_desc,
346
             advice_desc: adv.advice_desc,
347
-            // drug_spec: adv.drug_spec,
347
+            drug_spec: adv.drug_spec,
348
             drug_spec_unit: adv.drug_spec_unit,
348
             drug_spec_unit: adv.drug_spec_unit,
349
             delivery_way: adv.delivery_way,
349
             delivery_way: adv.delivery_way,
350
             execution_frequency: adv.execution_frequency,
350
             execution_frequency: adv.execution_frequency,
366
                 id: resp_adv.id,
366
                 id: resp_adv.id,
367
                 title: resp_adv.advice_name,
367
                 title: resp_adv.advice_name,
368
                 advice_desc: resp_adv.advice_desc,
368
                 advice_desc: resp_adv.advice_desc,
369
-                // drug_spec: resp_adv.drug_spec,
369
+                drug_spec: resp_adv.drug_spec,
370
                 drug_spec_unit: resp_adv.drug_spec_unit,
370
                 drug_spec_unit: resp_adv.drug_spec_unit,
371
                 delivery_way: resp_adv.delivery_way,
371
                 delivery_way: resp_adv.delivery_way,
372
                 execution_frequency: resp_adv.execution_frequency,
372
                 execution_frequency: resp_adv.execution_frequency,

+ 10 - 8
src/pages/main/dialog/new_order/order_form.vue 파일 보기

18
             </div>
18
             </div>
19
             <div class="cell">
19
             <div class="cell">
20
               <label>药品规格</label>
20
               <label>药品规格</label>
21
-              <input class="inputBox" style="width:62.5%" v-model="order.advice_desc">
21
+              <!--<input class="inputBox" style="width:62.5%" v-model="order.advice_desc">-->
22
 
22
 
23
-              <!--<input type="number" class="inputBox" style="width:62.5%" v-model="order.drug_spec">-->
23
+              <input type="number" class="inputBox" style="width:62.5%" v-model="order.advice_desc">
24
               <input
24
               <input
25
                 type="text"
25
                 type="text"
26
                 placeholder="单位"
26
                 placeholder="单位"
204
       order: {
204
       order: {
205
         title: "",
205
         title: "",
206
         advice_desc: "",
206
         advice_desc: "",
207
-        // drug_spec: "",
207
+        drug_spec: "",
208
         drug_spec_unit: "",
208
         drug_spec_unit: "",
209
         delivery_way: "",
209
         delivery_way: "",
210
         execution_frequency: "",
210
         execution_frequency: "",
239
 
239
 
240
       this.order.title = "";
240
       this.order.title = "";
241
       this.order.advice_desc = "";
241
       this.order.advice_desc = "";
242
-      // this.order.drug_spec = "";
242
+      this.order.drug_spec = "";
243
       this.order.drug_spec_unit = "";
243
       this.order.drug_spec_unit = "";
244
       this.order.delivery_way = "";
244
       this.order.delivery_way = "";
245
       this.order.execution_frequency = "";
245
       this.order.execution_frequency = "";
256
 
256
 
257
       this.order.title = order.title;
257
       this.order.title = order.title;
258
       this.order.advice_desc = order.advice_desc;
258
       this.order.advice_desc = order.advice_desc;
259
-      // this.order.drug_spec = order.drug_spec;
259
+      this.order.drug_spec = order.drug_spec;
260
       this.order.drug_spec_unit = order.drug_spec_unit;
260
       this.order.drug_spec_unit = order.drug_spec_unit;
261
       this.order.delivery_way = order.delivery_way;
261
       this.order.delivery_way = order.delivery_way;
262
       this.order.execution_frequency = order.execution_frequency;
262
       this.order.execution_frequency = order.execution_frequency;
284
       this.order.advice_desc = "";
284
       this.order.advice_desc = "";
285
       this.order.remark = "";
285
       this.order.remark = "";
286
 
286
 
287
-      // this.order.drug_spec = "";
287
+      this.order.drug_spec = "";
288
       this.order.drug_spec_unit = "";
288
       this.order.drug_spec_unit = "";
289
       this.order.delivery_way =
289
       this.order.delivery_way =
290
         parent_delivery_way == undefined || parent_delivery_way == null
290
         parent_delivery_way == undefined || parent_delivery_way == null
326
           prescribing_number: this.order.prescribing_number,
326
           prescribing_number: this.order.prescribing_number,
327
           prescribing_number_unit: this.order.prescribing_number_unit,
327
           prescribing_number_unit: this.order.prescribing_number_unit,
328
           remark: this.order.remark,
328
           remark: this.order.remark,
329
+          drug_spec: this.order.drug_spec,
330
+
329
           drug_spec_unit: this.order.drug_spec_unit,
331
           drug_spec_unit: this.order.drug_spec_unit,
330
 
332
 
331
         });
333
         });
334
 
336
 
335
           title: this.order.title,
337
           title: this.order.title,
336
           advice_desc: this.order.advice_desc,
338
           advice_desc: this.order.advice_desc,
337
-          // drug_spec: this.order.drug_spec,
339
+          drug_spec: this.order.drug_spec,
338
           drug_spec_unit: this.order.drug_spec_unit,
340
           drug_spec_unit: this.order.drug_spec_unit,
339
           delivery_way: this.order.delivery_way,
341
           delivery_way: this.order.delivery_way,
340
           execution_frequency: this.order.execution_frequency,
342
           execution_frequency: this.order.execution_frequency,
352
           start_time: this.order.start_time,
354
           start_time: this.order.start_time,
353
           title: this.order.title,
355
           title: this.order.title,
354
           advice_desc: this.order.advice_desc,
356
           advice_desc: this.order.advice_desc,
355
-          // drug_spec: this.order.drug_spec,
357
+          drug_spec: this.order.drug_spec,
356
           drug_spec_unit: this.order.drug_spec_unit,
358
           drug_spec_unit: this.order.drug_spec_unit,
357
           delivery_way: this.order.delivery_way,
359
           delivery_way: this.order.delivery_way,
358
           execution_frequency: this.order.execution_frequency,
360
           execution_frequency: this.order.execution_frequency,

+ 204 - 0
src/pages/main/dialog/subMenu/LongAdviceSubMenu.vue 파일 보기

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">长期医嘱推送</h1>
8
+      <span @click="comfirm" class="success"
9
+      >确定</span
10
+      >
11
+    </div>
12
+
13
+    <div class="CheckBox">
14
+      <ul>
15
+        <li>
16
+          <van-checkbox-group v-model="propsForm.result">
17
+            <van-checkbox
18
+              style="border-bottom: 1px #e5e5e5 solid;padding: 0 0.38rem"
19
+              v-for="(advice, index) in propsForm.list"
20
+              :key="index"
21
+              :name="advice.id"
22
+            >
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/>
25
+              <div style="padding-bottom: 15px;padding-left: 10px"> 医嘱内容&nbsp;{{getContent(advice)}}</div>
26
+
27
+            </van-checkbox>
28
+          </van-checkbox-group>
29
+        </li>
30
+      </ul>
31
+    </div>
32
+  </div>
33
+</template>
34
+
35
+<script>
36
+  import {parseTime} from '@/utils'
37
+
38
+  export default {
39
+    name: 'LongAdviceSubMenu',
40
+    created () {
41
+    },
42
+    data () {
43
+      return {
44
+        result: [],
45
+        id: 0,
46
+        selectName: ''
47
+      }
48
+    },
49
+    props: {
50
+      propsForm: {
51
+        type: Object
52
+      },
53
+      visibility: {
54
+        type: Boolean,
55
+        default: false
56
+      },
57
+    },
58
+    methods: {
59
+      getDoctorName (doctor_id) {
60
+        for (let i = 0; i < this.propsForm.operators.length; i++) {
61
+          if (this.propsForm.operators[i].id == doctor_id) {
62
+            return this.propsForm.operators[i].name
63
+          }
64
+        }
65
+      }, getTime (val) {
66
+        return parseTime(val, '{y}-{m}-{d} {h}:{i}')
67
+
68
+      }, getContent (val) {
69
+        let prescribing_number = ''
70
+        let single_dose = ''
71
+        if (val.prescribing_number > 0) {
72
+          prescribing_number = val.prescribing_number + val.prescribing_number_unit
73
+        }
74
+        if (val.single_dose > 0) {
75
+          single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
76
+        }
77
+        let name = ""
78
+        if (val.child.length > 0){
79
+          for (let i = 0 ; i < val.child.length; i++){
80
+            if(val.child[i].prescribing_number > 0){
81
+              val.child[i]['presc'] = val.child[i].prescribing_number + val.child[i].prescribing_number_unit
82
+            }else{
83
+              val.child[i]['presc'] = ''
84
+            }
85
+
86
+            if(val.child[i].single_dose > 0){
87
+              val.child[i]['single'] = " "+' 单次用量 '+" "+val.child[i].single_dose + val.child[i].single_dose_unit
88
+            }else{
89
+              val.child[i]['single'] = ''
90
+            }
91
+            name = name+"▲"+val.child[i].advice_name+""
92
+              + val.child[i].drug_spec
93
+              + val.child[i].drug_spec_unit
94
+              + val.child[i].presc
95
+              + val.child[i].single
96
+          }
97
+          return  val.advice_name +"  "+ val.drug_spec+" "
98
+            + val.drug_spec_unit
99
+            + prescribing_number
100
+            + " "+single_dose+" "+ " "+val.delivery_way+" "+ val.execution_frequency + val.remark +name
101
+
102
+        } else {
103
+          return val.advice_name +"  "+ val.drug_spec+" "
104
+            + val.drug_spec_unit
105
+            + prescribing_number
106
+            + " "+single_dose+" "+ " "+val.delivery_way+" "+ val.execution_frequency + val.remark
107
+        }
108
+
109
+
110
+      },
111
+
112
+      cancle: function () {
113
+        this.$emit('menu-cancle-three')
114
+      },
115
+      comfirm: function () {
116
+        this.$emit('menu-comfirm-three', this.getValue())
117
+      },
118
+      getValue: function () {
119
+        let form = {}
120
+
121
+        let results = []
122
+
123
+        for (let i = 0; i < this.propsForm.list.length; i++){
124
+          for (let a = 0; a < this.propsForm.result.length; a++){
125
+            if( this.propsForm.list[i].id == this.propsForm.result[a]){
126
+              results.push(this.propsForm.list[i])
127
+            }
128
+          }
129
+        }
130
+
131
+        var obj5={}
132
+        results = results.reduce((cur, next) => {
133
+          obj5[next.id] ? '' : obj5[next.id] = true && cur.push(next)
134
+          return cur
135
+        }, [])
136
+
137
+        results
138
+
139
+        return results
140
+      },
141
+
142
+    },
143
+    watch: {
144
+      visibility (val) {
145
+        //初始化数据操作
146
+      }
147
+    }
148
+  }
149
+</script>
150
+
151
+<style style="stylesheet/scss" lang="scss" scoped>
152
+  .optionsBox {
153
+  background: #fff;
154
+  max-height: 10rem;
155
+  min-height: 5rem;
156
+  @media only screen and (max-width: 812px) {
157
+  min-height: 8rem !important;
158
+  }
159
+  ul {
160
+  overflow-y: scroll;
161
+  max-height: 9rem;
162
+  li {
163
+  height: 1.1rem;
164
+  line-height: 1.1rem;
165
+  border-bottom: 1px #e5e5e5 solid;
166
+  padding: 0 0.38rem;
167
+  font-size: 0.36rem;
168
+  color: $title-color;
169
+  }
170
+  .tick {
171
+  position: relative;
172
+  &::before {
173
+  content: "";
174
+  display: inline-block;
175
+  border: 2px solid $main-color;
176
+  border-top-width: 0;
177
+  border-right-width: 0;
178
+  width: 0.3rem;
179
+  height: 0.15rem;
180
+  -webkit-transform: rotate(-50deg);
181
+  position: absolute;
182
+  top: 0.38rem;
183
+  right: 0.44rem;
184
+  }
185
+  }
186
+  }
187
+  }
188
+  .CheckBox {
189
+  background: #fff;
190
+  max-height: 6.8rem;
191
+  min-height: 5rem;
192
+  overflow-y: scroll;
193
+  @media only screen and (max-width: 812px) {
194
+  max-height: 8rem !important;
195
+  min-height: 8rem !important;
196
+  }
197
+
198
+  ul {
199
+  li {
200
+  line-height: 1rem;
201
+  }
202
+  }
203
+  }
204
+</style>

+ 2 - 2
src/pages/main/index.vue 파일 보기

118
         })
118
         })
119
       },getData(){
119
       },getData(){
120
         console.log("111111")
120
         console.log("111111")
121
-        this.requestScheduals()
122
-        this.requestDialysisScheduals()
121
+        // this.requestScheduals()
122
+        // this.requestDialysisScheduals()
123
       }
123
       }
124
 
124
 
125
     },
125
     },

+ 232 - 29
src/pages/main/today/TodayTab.vue 파일 보기

109
     <van-popup title="透析处方" v-model="menuList[1].showPopup" :overlay="true" :close-on-click-overlay="false">
109
     <van-popup title="透析处方" v-model="menuList[1].showPopup" :overlay="true" :close-on-click-overlay="false">
110
       <prescription-dialog :patient_prop="patient" :solution_prop="solution" :machines_prop="devices" :config="config"
110
       <prescription-dialog :patient_prop="patient" :solution_prop="solution" :machines_prop="devices" :config="config"
111
                            :prescription_prop="prescription" @finish="closePrescriptionDialog" :operators="operators"
111
                            :prescription_prop="prescription" @finish="closePrescriptionDialog" :operators="operators"
112
-                           :types="goodTypes" :info="goodInfos"
113
-                           @close="closePrescriptionDialog" @prescription="prescriptionFunc"
112
+                           :types="goodTypes" :info="goodInfos" :status="status" :targetAdvices="targetAdvices"
113
+                           @close="closePrescriptionDialog" @prescription="prescriptionFunc"  :admin_users_prop="admin_users" @advice="adviceFunc"
114
                            @longSolution="longSolutionFunc" ref="prescription_dialog"></prescription-dialog>
114
                            @longSolution="longSolutionFunc" ref="prescription_dialog"></prescription-dialog>
115
     </van-popup>
115
     </van-popup>
116
 
116
 
141
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
141
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
142
                        :special_premission="special_premission"
142
                        :special_premission="special_premission"
143
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
143
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
144
-                       @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
144
+                        @did_add_monitor="didAddMonitor" @close="closeDialysisComputer" ref="computer_dialog"></computer-dialog>
145
     </van-popup>
145
     </van-popup>
146
 
146
 
147
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
147
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
153
     </van-popup>
153
     </van-popup>
154
 
154
 
155
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
155
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
156
-      <plane-dialog :patient_prop="patient" :record="dialysis_order" :admins="admin_users" :admin_map="admin_user_map"
157
-                    :special_premission="special_premission"
156
+      <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record" :admins="admin_users" :admin_map="admin_user_map"
157
+                    :special_premission="special_premission" 
158
                     @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
158
                     @did_off="closeDialysisOff" @close="closeDialysisOff" ref="plane_dialog"></plane-dialog>
159
     </van-popup>
159
     </van-popup>
160
 
160
 
217
   import MonitDialog from '../dialog/MonitDialog'
217
   import MonitDialog from '../dialog/MonitDialog'
218
   import ComputerDialog from '../dialog/ComputerDialog'
218
   import ComputerDialog from '../dialog/ComputerDialog'
219
 
219
 
220
-  import {dialysisGlobalConfig, getDialysisRecord} from '@/api/dialysis'
220
+  import {dialysisGlobalConfig, getDialysisRecord,CreateGroupAdvice} from '@/api/dialysis'
221
+  import {GetRemindLongAdvice} from '@/api/advice'
222
+
221
   import {parseTime} from '@/utils'
223
   import {parseTime} from '@/utils'
222
 
224
 
223
   export default {
225
   export default {
300
         goTopShow: false,
302
         goTopShow: false,
301
         goodTypes: [],
303
         goodTypes: [],
302
         goodInfos: [],
304
         goodInfos: [],
305
+
306
+        longAdvices: [],
307
+        targetAdvices:[],
308
+        status:'',
303
       }
309
       }
304
     },
310
     },
305
     computed: {
311
     computed: {
373
       this.patient_id = patient_id
379
       this.patient_id = patient_id
374
       this.date = date
380
       this.date = date
375
       this.requestDialysisRecord()
381
       this.requestDialysisRecord()
382
+      // this.requestLongAdvice()
383
+
376
     },
384
     },
377
     mounted () {
385
     mounted () {
378
       window.addEventListener('scroll', this.handleScroll)
386
       window.addEventListener('scroll', this.handleScroll)
410
         // }
418
         // }
411
         this.monitor_records.reverse()
419
         this.monitor_records.reverse()
412
         this.last_monitor_record = monitor
420
         this.last_monitor_record = monitor
421
+        this.$refs.plane_dialog.set_last_monitor_record(monitor)
413
       },
422
       },
414
 
423
 
415
       didEditMonitor (monitor) {
424
       didEditMonitor (monitor) {
469
           monitor.conductivity
478
           monitor.conductivity
470
         this.monitor_records[monitor_index].displacement_flow_quantity =
479
         this.monitor_records[monitor_index].displacement_flow_quantity =
471
           monitor.displacement_flow_quantity
480
           monitor.displacement_flow_quantity
472
-        this.monitor_records.sort((a, b) =>a.operate_time - b.operate_time )
481
+        this.monitor_records.sort((a, b) => a.operate_time - b.operate_time)
473
 
482
 
474
         // if (monitor_index >= 0) {
483
         // if (monitor_index >= 0) {
475
         //   var record = this.monitor_records[monitor_index]
484
         //   var record = this.monitor_records[monitor_index]
918
           }
927
           }
919
         })
928
         })
920
       },
929
       },
930
+      requestLongAdvice () {
931
+        var dateStr = parseTime(this.date, '{y}-{m}-{d}')
932
+
933
+        var params = {
934
+          id: this.patient_id,
935
+        }
936
+        GetRemindLongAdvice(params).then(rs => {
937
+          var resp = rs.data
938
+          if (resp.state == 1) {
939
+
940
+            var status = parseInt(resp.data.status)
941
+            this.status = status
942
+
943
+            switch (status) {
944
+              case 2:
945
+                this.longAdvices = resp.data.advices
946
+
947
+                var longAdvicesTwo = resp.data.advices_two
948
+
949
+                for (let i = 0; i < this.longAdvices.length; i++) {
950
+                  this.longAdvices[i]['isCheck'] = 0
951
+                  switch (this.longAdvices[i].frequency_type) {
952
+                    case 1: //每日推送
953
+                      this.longAdvices[i]['isCheck'] = 1
954
+                      break
955
+                    case 2: //用今天的日期与推送类型为2的医嘱进行比较如果相差天数等于设定的天数,则设置为选中状态
956
+                      for (let i = 0;i < this.longAdvices.length;i++){
957
+                        for (let a = 0; a < longAdvicesTwo.length;a++){
958
+                          if(this.longAdvices[i].advice_name == longAdvicesTwo[a].advice_name && this.longAdvices[i].advice_desc == longAdvicesTwo[a].advice_desc){
959
+                            this.longAdvices[i]['isCheck'] = 1
960
+                          }
961
+                        }
962
+                      }
963
+                      break
964
+                    case 3://用今天的属于周几与推送类型为3的医嘱进行比较如果包含某个字符串,则设置为选中状态
965
+                      let day = new Date().getDay()
966
+                      console.log(day)
967
+                      let name =""
968
+                      switch (day) {
969
+                        case 1:
970
+                          name="周一"
971
+                          break
972
+                        case 2:
973
+                          name="周二"
974
+
975
+                          break
976
+                        case 3:
977
+                          name="周三"
978
+
979
+                          break
980
+                        case 4:
981
+                          name="周四"
982
+                          break
983
+                        case 5:
984
+                          name="周五"
985
+                          break
986
+                        case 6:
987
+                          name="周六"
988
+                          break
989
+                        case 0:
990
+                          name="周日"
991
+                          break
992
+                      }
993
+
994
+
995
+                      if (this.longAdvices[i].week_day.indexOf(name) != -1){
996
+                        console.log("11111")
997
+                        this.longAdvices[i]['isCheck'] = 1
998
+                      }
999
+                      break
1000
+                  }
1001
+                }
1002
+
1003
+                console.log( this.longAdvices)
1004
+                this.targetAdvices = this.longAdvices
1005
+
1006
+                break
1007
+              case 3:
1008
+                this.longAdvices = resp.data.advices
1009
+
1010
+                var advices_two = resp.data.advices_two
1011
+                let dayAdvices = []
1012
+                for (let i = 0; i < this.longAdvices.length; i++) {
1013
+                  switch (this.longAdvices[i].frequency_type) {
1014
+                    case 1: //每日推送,则加入到待上传数组里面
1015
+                      dayAdvices.push(this.longAdvices[i])
1016
+                      break
1017
+                    case 3://用今天的属于周几与推送类型为3的医嘱进行比较如果包含某个字符串,则加入到待上传数组里面
1018
+                      let day = new Date().getDay()
1019
+                      let name =""
1020
+
1021
+                      switch (day) {
1022
+                        case 1:
1023
+                          name="周一"
1024
+                          break
1025
+                        case 2:
1026
+                          name="周二"
1027
+                          break
1028
+                        case 3:
1029
+                          name="周三"
1030
+                          break
1031
+                        case 4:
1032
+                          name="周四"
1033
+                          break
1034
+                        case 5:
1035
+                          name="周五"
1036
+                          break
1037
+                        case 6:
1038
+                          name="周六"
1039
+                          break
1040
+                        case 0:
1041
+                          name="周日"
1042
+                          break
1043
+                      }
1044
+                      if (this.longAdvices[i].week_day.indexOf(name) != -1){
1045
+                        dayAdvices.push(this.longAdvices[i])
1046
+                      }
1047
+                      break
1048
+                  }
1049
+                }
1050
+                this.targetAdvices = dayAdvices.concat(advices_two)
1051
+                break
1052
+            }
1053
+          } else {
1054
+
1055
+          }
1056
+        })
1057
+      }, getNowFormatDate () {
1058
+        var date = new Date()
1059
+        var seperator1 = '-'
1060
+        var year = date.getFullYear()
1061
+        var month = date.getMonth() + 1
1062
+        var strDate = date.getDate()
1063
+        if (month >= 1 && month <= 9) {
1064
+          month = '0' + month
1065
+        }
1066
+        if (strDate >= 0 && strDate <= 9) {
1067
+          strDate = '0' + strDate
1068
+        }
1069
+        var currentdate = year + seperator1 + month + seperator1 + strDate
1070
+        return currentdate
1071
+      },
921
       newAdviceGroupObject: function () {
1072
       newAdviceGroupObject: function () {
922
         return Object.assign(
1073
         return Object.assign(
923
           {},
1074
           {},
931
             // checker: 0,
1082
             // checker: 0,
932
           }
1083
           }
933
         )
1084
         )
1085
+      }
1086
+      ,adviceFunc:function(){
1087
+
1088
+
934
       },
1089
       },
935
       prescriptionFunc: function (val) {
1090
       prescriptionFunc: function (val) {
1091
+        if (this.status == 2){
1092
+          if(val.creater > 0 && val.modifier == 0){
1093
+            this.requestDialysisRecord()
1094
+          }
1095
+
1096
+        }else if(this.status == 3){
1097
+          if(val.creater > 0 && val.modifier == 0){
1098
+            this.requestDialysisRecord()
1099
+          }
1100
+        }
1101
+
936
         this.prescription = val
1102
         this.prescription = val
937
 
1103
 
938
-      },
1104
+      }
1105
+      ,
939
       longSolutionFunc: function (val) {
1106
       longSolutionFunc: function (val) {
940
         this.solution = val
1107
         this.solution = val
1108
+        if (this.status == 2){
1109
+          if(val.creater > 0 && val.modifier == 0){
1110
+            this.requestDialysisRecord()
1111
+          }
941
 
1112
 
942
-      },
1113
+        }else if(this.status == 3){
1114
+          if(val.creater > 0 && val.modifier == 0){
1115
+            this.requestDialysisRecord()
1116
+          }
1117
+        }
1118
+
1119
+      }
1120
+      ,
943
       closePrescriptionDialog: function () {
1121
       closePrescriptionDialog: function () {
944
         this.closeDialog(1)
1122
         this.closeDialog(1)
945
         this.scrollToView('prescription')
1123
         this.scrollToView('prescription')
946
-      },
1124
+      }
1125
+      ,
947
       closeAcceptsAssessment: function () {
1126
       closeAcceptsAssessment: function () {
948
         this.closeDialog(2)
1127
         this.closeDialog(2)
949
         this.scrollToView('accepts_assessment')
1128
         this.scrollToView('accepts_assessment')
950
-      },
1129
+      }
1130
+      ,
951
       closeAssessmentBefore: function () {
1131
       closeAssessmentBefore: function () {
952
         this.closeDialog(3)
1132
         this.closeDialog(3)
953
         this.scrollToView('assessment_before')
1133
         this.scrollToView('assessment_before')
954
-      },
1134
+      }
1135
+      ,
955
       update_evaluation: function (evaluation) {
1136
       update_evaluation: function (evaluation) {
956
         this.predialysis_evaluation = evaluation
1137
         this.predialysis_evaluation = evaluation
957
         this.closeAssessmentBefore()
1138
         this.closeAssessmentBefore()
958
-      },
1139
+      }
1140
+      ,
959
       closeStatOrder: function () {
1141
       closeStatOrder: function () {
960
         this.closeDialog(4)
1142
         this.closeDialog(4)
961
         this.doctor_advices.push([])
1143
         this.doctor_advices.push([])
962
         this.scrollToView('stat_order')
1144
         this.scrollToView('stat_order')
963
-      },
1145
+      }
1146
+      ,
964
       closeDialysisComputer: function (dialysis_order) {
1147
       closeDialysisComputer: function (dialysis_order) {
965
         this.closeDialog(0)
1148
         this.closeDialog(0)
966
         this.scrollToView('dialysis_computer')
1149
         this.scrollToView('dialysis_computer')
967
-      },
1150
+      }
1151
+      ,
968
       closeDoubleCheck: function () {
1152
       closeDoubleCheck: function () {
969
         this.closeDialog(5)
1153
         this.closeDialog(5)
970
         this.scrollToView('double_check')
1154
         this.scrollToView('double_check')
971
-      },
1155
+      }
1156
+      ,
972
       closeMonitoring: function () {
1157
       closeMonitoring: function () {
973
         this.closeDialog(6)
1158
         this.closeDialog(6)
974
         this.scrollToView('monitoring')
1159
         this.scrollToView('monitoring')
975
-      },
1160
+      }
1161
+      ,
976
       closeDialysisOff: function () {
1162
       closeDialysisOff: function () {
977
         this.closeDialog(7)
1163
         this.closeDialog(7)
978
         this.scrollToView('dialysis_off')
1164
         this.scrollToView('dialysis_off')
979
-      },
1165
+      }
1166
+      ,
980
       closeAssessmentAfter: function (assessment_after_dislysis) {
1167
       closeAssessmentAfter: function (assessment_after_dislysis) {
981
         this.closeDialog(8)
1168
         this.closeDialog(8)
982
         this.scrollToView('assessment_after')
1169
         this.scrollToView('assessment_after')
983
         if (assessment_after_dislysis != undefined) {
1170
         if (assessment_after_dislysis != undefined) {
984
           this.assessment_after_dislysis = assessment_after_dislysis
1171
           this.assessment_after_dislysis = assessment_after_dislysis
985
         }
1172
         }
986
-      },
1173
+      }
1174
+      ,
987
       closeTreatmentOf: function () {
1175
       closeTreatmentOf: function () {
988
         this.closeDialog(9)
1176
         this.closeDialog(9)
989
         this.scrollToView('treatment_of')
1177
         this.scrollToView('treatment_of')
990
-      },
1178
+      }
1179
+      ,
991
       scrollToView: function (id) {
1180
       scrollToView: function (id) {
992
         document.body.scrollTop =
1181
         document.body.scrollTop =
993
           document.querySelector('#' + id).offsetTop - 100
1182
           document.querySelector('#' + id).offsetTop - 100
994
         document.documentElement.scrollTop =
1183
         document.documentElement.scrollTop =
995
           document.querySelector('#' + id).offsetTop - 100
1184
           document.querySelector('#' + id).offsetTop - 100
996
-      },
1185
+      }
1186
+      ,
997
       handleScroll () {
1187
       handleScroll () {
998
         this.scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
1188
         this.scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
999
         if (this.scrollTop > 50) {
1189
         if (this.scrollTop > 50) {
1001
         } else {
1191
         } else {
1002
           this.goTopShow = false
1192
           this.goTopShow = false
1003
         }
1193
         }
1004
-      },
1194
+      }
1195
+      ,
1005
       goTop () {
1196
       goTop () {
1006
         let timer = null,
1197
         let timer = null,
1007
           _that = this
1198
           _that = this
1017
             _that.goTopShow = false
1208
             _that.goTopShow = false
1018
           }
1209
           }
1019
         })
1210
         })
1020
-      },
1211
+      }
1212
+      ,
1021
       destroyed () {
1213
       destroyed () {
1022
         window.removeEventListener('scroll', this.handleScroll)
1214
         window.removeEventListener('scroll', this.handleScroll)
1023
-      }, getUnReadNum () {
1215
+      }
1216
+      ,
1217
+      getUnReadNum () {
1024
         let doctorAdvice = []
1218
         let doctorAdvice = []
1025
         for (let y = 0; y < this.doctor_advices.length; y++) {
1219
         for (let y = 0; y < this.doctor_advices.length; y++) {
1026
           if (this.doctor_advices[y].execution_state == 2) {
1220
           if (this.doctor_advices[y].execution_state == 2) {
1033
 
1227
 
1034
         return sorted.length
1228
         return sorted.length
1035
 
1229
 
1036
-      }, groupBy (array, f) {
1230
+      }
1231
+      ,
1232
+      groupBy (array, f) {
1037
         const groups = {}
1233
         const groups = {}
1038
         array.forEach(function (o) {
1234
         array.forEach(function (o) {
1039
           const group = JSON.stringify(f(o))
1235
           const group = JSON.stringify(f(o))
1043
         return Object.keys(groups).map(function (group) {
1239
         return Object.keys(groups).map(function (group) {
1044
           return groups[group]
1240
           return groups[group]
1045
         })
1241
         })
1046
-      }, getDeviceNumber () {
1242
+      }
1243
+      ,
1244
+      getDeviceNumber () {
1047
         if (this.dialysis_order.id && this.dialysis_order.DeviceNumber && this.dialysis_order.DeviceNumber.number.length > 0) {
1245
         if (this.dialysis_order.id && this.dialysis_order.DeviceNumber && this.dialysis_order.DeviceNumber.number.length > 0) {
1048
           return this.dialysis_order.DeviceNumber.number
1246
           return this.dialysis_order.DeviceNumber.number
1049
-
1050
         } else {
1247
         } else {
1051
           if (this.schedual.device_number == null) {
1248
           if (this.schedual.device_number == null) {
1052
             return ''
1249
             return ''
1053
           } else {
1250
           } else {
1054
             return this.schedual.device_number.number
1251
             return this.schedual.device_number.number
1055
           }
1252
           }
1056
-
1057
         }
1253
         }
1058
-
1254
+      }
1255
+      ,
1256
+      dateDiff (firstDate, secondDate) {
1257
+        var firstDate = new Date(firstDate)
1258
+        var secondDate = new Date(secondDate)
1259
+        var diff = Math.abs(firstDate.getTime() - secondDate.getTime())
1260
+        var result = parseInt(diff / (1000 * 60 * 60 * 24))
1261
+        return result
1059
       }
1262
       }
1060
     }
1263
     }
1061
   }
1264
   }

+ 13 - 0
src/pages/main/today/assessmentAfter.vue 파일 보기

44
           <span class="content" id="tw">{{temperature?temperature:''}}</span>
44
           <span class="content" id="tw">{{temperature?temperature:''}}</span>
45
           <span class="unit">{{temperature?"℃":''}}</span>
45
           <span class="unit">{{temperature?"℃":''}}</span>
46
         </li>
46
         </li>
47
+
48
+        <li v-if="isShow('呼吸频率')">
49
+          <label for="ml">呼吸频率 : </label>
50
+          <span id="ml" class="content">{{breathing_rate?breathing_rate:''}}</span>
51
+          <span class="unit">{{breathing_rate?"次/min":''}}</span>
52
+        </li>
53
+
47
         <li v-if="isShow('脉搏')">
54
         <li v-if="isShow('脉搏')">
48
           <label for="ml">脉搏 : </label>
55
           <label for="ml">脉搏 : </label>
49
           <span id="ml" class="content">{{pulse_frequency?pulse_frequency:''}}</span>
56
           <span id="ml" class="content">{{pulse_frequency?pulse_frequency:''}}</span>
383
             break;
390
             break;
384
         }
391
         }
385
       },
392
       },
393
+      breathing_rate:function(){
394
+        if (this.record == null || this.record.id == "") {
395
+          return "-"
396
+        }
397
+        return this.record.breathing_rate
398
+      },
386
       temperature: function () {
399
       temperature: function () {
387
         if (this.record == null || this.record.id == "") {
400
         if (this.record == null || this.record.id == "") {
388
           return "-"
401
           return "-"

+ 6 - 0
src/pages/main/today/assessmentBefore.vue 파일 보기

106
           <label>血管杂音 : </label>
106
           <label>血管杂音 : </label>
107
           <span class="content">{{getBloodAccessNoise(this.record.blood_access_noise)}}</span>
107
           <span class="content">{{getBloodAccessNoise(this.record.blood_access_noise)}}</span>
108
         </li>
108
         </li>
109
+
110
+        <li v-if="isShow('穿刺针')">
111
+          <label>穿刺针 : </label>
112
+          <span class="content">{{this.record.puncture_needle}}</span>
113
+        </li>
114
+
109
         <li v-if="isShow('穿刺方式')">
115
         <li v-if="isShow('穿刺方式')">
110
           <label>穿刺方式 : </label>
116
           <label>穿刺方式 : </label>
111
           <span class="content">{{getWay(this.record.puncture_way)}}</span>
117
           <span class="content">{{getWay(this.record.puncture_way)}}</span>

+ 6 - 1
src/pages/main/today/dialysisPrescription.vue 파일 보기

82
         <li v-if="isShow('总量')">
82
         <li v-if="isShow('总量')">
83
           <label>总量: </label>
83
           <label>总量: </label>
84
           <span class="content">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
84
           <span class="content">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
85
-          <span class="unit">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
85
+          <span class="unit" v-if="this.prescription.anticoagulant == 2">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
86
+          <span class="unit" v-if="this.prescription.anticoagulant == 3">{{anticoagulant_zongliang != '0'?"IU":""}}</span>
87
+          <span class="unit" v-if="this.prescription.anticoagulant == 1">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
88
+          <span class="unit" v-if="this.prescription.anticoagulant == 4">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
89
+          <span class="unit" v-if="this.prescription.anticoagulant == 5">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
90
+
86
         </li>
91
         </li>
87
         <li v-if="isShow('钠')">
92
         <li v-if="isShow('钠')">
88
           <label>钠 : </label>
93
           <label>钠 : </label>

+ 1 - 1
src/pages/main/today/statOrder.vue 파일 보기

23
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
23
             <td :class="advice.parent_id == 0 ? 'advice_content' : 'subadvice_content'">
24
               <span>{{advice.advice_name }}</span>
24
               <span>{{advice.advice_name }}</span>
25
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
25
               <!-- <span>{{advice.drug_spec}}{{advice.drug_spec_unit}} * {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span> -->
26
-              <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
26
+              <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span>
27
               <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
27
               <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
28
               <span v-if="advice.single_dose">单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
28
               <span v-if="advice.single_dose">单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
29
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
29
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>

+ 1 - 1
src/pages/personal/ElectronicSignature.vue 파일 보기

131
       middleAry: [],
131
       middleAry: [],
132
       // 配置参数
132
       // 配置参数
133
       config: {
133
       config: {
134
-        lineWidth: 15,
134
+        lineWidth: 3,
135
         lineColor: "#000",
135
         lineColor: "#000",
136
         shadowBlur: 1,
136
         shadowBlur: 1,
137
         fillStyle: "#fff"
137
         fillStyle: "#fff"

+ 1 - 1
src/store/index.js 파일 보기

48
   ductus_arantii: state => state.global_config.ductus_arantii,
48
   ductus_arantii: state => state.global_config.ductus_arantii,
49
   emergency_treatment: state => state.global_config.emergency_treatment,
49
   emergency_treatment: state => state.global_config.emergency_treatment,
50
   skin: state => state.global_config.skin,
50
   skin: state => state.global_config.skin,
51
-
51
+  puncture_needle: state => state.global_config.puncture_needle,
52
 
52
 
53
 
53
 
54
   dialysis_process: state => state.global_config.dialysis_process,
54
   dialysis_process: state => state.global_config.dialysis_process,

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 609 - 360
src/store/modules/globalConfig.js