|
@@ -35,7 +35,7 @@
|
35
|
35
|
<el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
|
36
|
36
|
<el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
|
37
|
37
|
<el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
|
38
|
|
- <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center" >
|
|
38
|
+ <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
|
39
|
39
|
<template slot-scope="scope">
|
40
|
40
|
{{scope.row.before}} / {{scope.row.after}}
|
41
|
41
|
</template>
|
|
@@ -88,9 +88,7 @@
|
88
|
88
|
</el-form-item>
|
89
|
89
|
</el-col>
|
90
|
90
|
</el-row>
|
91
|
|
-
|
92
|
|
- <div class="border"></div>
|
93
|
|
-
|
|
91
|
+ <div class="border"></div>
|
94
|
92
|
<el-row :gutter="20">
|
95
|
93
|
<el-col :span="8">
|
96
|
94
|
<el-form-item label="透后称重(kg):" label-width="100px">
|
|
@@ -133,7 +131,7 @@
|
133
|
131
|
<el-row :gutter="20">
|
134
|
132
|
<el-col :span="23" align="right" class="button">
|
135
|
133
|
<el-button @click="hide()">取消</el-button>
|
136
|
|
- <el-button @click="savedata();updatedata()" type="primary">保存</el-button>
|
|
134
|
+ <el-button @click="savedata();updatedata();sighdata()" type="primary">保存</el-button>
|
137
|
135
|
</el-col>
|
138
|
136
|
</el-row>
|
139
|
137
|
</div>
|
|
@@ -145,7 +143,7 @@
|
145
|
143
|
</template>
|
146
|
144
|
|
147
|
145
|
<script>
|
148
|
|
-import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata } from '@/api/signandweigh'
|
|
146
|
+import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata,sighdata} from '@/api/signandweigh'
|
149
|
147
|
import BreadCrumb from '../components/bread-crumb'
|
150
|
148
|
export default {
|
151
|
149
|
name: 'sign',
|
|
@@ -259,9 +257,6 @@ export default {
|
259
|
257
|
if (this.schedules[index].type in response.data.data.panel) {
|
260
|
258
|
this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
|
261
|
259
|
this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
|
262
|
|
- console.log("签到统计")
|
263
|
|
- console.log(response.data.data.panel)
|
264
|
|
- console.log(this.schedules[index].sign)
|
265
|
260
|
this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
|
266
|
261
|
this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
|
267
|
262
|
}
|
|
@@ -270,37 +265,37 @@ export default {
|
270
|
265
|
}
|
271
|
266
|
})
|
272
|
267
|
},
|
273
|
|
- // getPatientSign(){
|
274
|
|
- // getPatientSign(this.querySignParams).then(response=>{
|
275
|
|
- // if (response.data.state==1) {
|
276
|
|
- // if (response.data.data.sign != null) {
|
277
|
|
- // var sign = response.data.data.sign;
|
278
|
|
- // this.weigh_form.dry_weight = sign.dry_weight;
|
279
|
|
- // this.weigh_form.clothes_weight = sign.clothes_weight;
|
280
|
|
- // // 透前
|
281
|
|
- // this.weigh_form.weigh_before = sign.weigh_before;
|
282
|
|
- // this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
|
283
|
|
- // this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
|
284
|
|
- // this.weigh_form.weight_before = sign.weight_before;
|
285
|
|
- // this.weigh_form.temperature_before = sign.temperature_before;
|
286
|
|
- // this.weigh_form.pulse_rate_before = sign.pulse_rate_before; // P 脉率
|
287
|
|
- // this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
|
288
|
|
- // this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
|
289
|
|
- // this.weigh_form.SBP_before = sign.SBP_before // 收缩压
|
290
|
|
- // // 透后
|
291
|
|
- // this.weigh_form.weigh_after = sign.weigh_after;
|
292
|
|
- // this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
|
293
|
|
- // this.weigh_form.weight_after = sign.weight_after
|
294
|
|
- // this.weigh_form.temperature_after = sign.temperature_after;
|
295
|
|
- // this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
|
296
|
|
- // this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
|
297
|
|
- // this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
|
298
|
|
- // this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
|
299
|
|
- // this.weigh_form.id=sign.id;
|
300
|
|
- // }
|
301
|
|
- // }
|
302
|
|
- // });
|
303
|
|
- // },
|
|
268
|
+ // getPatientSign(){
|
|
269
|
+ // getPatientSign(this.querySignParams).then(response=>{
|
|
270
|
+ // if (response.data.state==1) {
|
|
271
|
+ // if (response.data.data.sign != null) {
|
|
272
|
+ // var sign = response.data.data.sign;
|
|
273
|
+ // this.weigh_form.dry_weight = sign.dry_weight;
|
|
274
|
+ // this.weigh_form.clothes_weight = sign.clothes_weight;
|
|
275
|
+ // // 透前
|
|
276
|
+ // this.weigh_form.weigh_before = sign.weigh_before;
|
|
277
|
+ // this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
|
|
278
|
+ // this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
|
|
279
|
+ // this.weigh_form.weight_before = sign.weight_before;
|
|
280
|
+ // this.weigh_form.temperature_before = sign.temperature_before;
|
|
281
|
+ // this.weigh_form.pulse_rate_before = sign.pulse_rate_before; // P 脉率
|
|
282
|
+ // this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
|
|
283
|
+ // this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
|
|
284
|
+ // this.weigh_form.SBP_before = sign.SBP_before // 收缩压
|
|
285
|
+ // // 透后
|
|
286
|
+ // this.weigh_form.weigh_after = sign.weigh_after;
|
|
287
|
+ // this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
|
|
288
|
+ // this.weigh_form.weight_after = sign.weight_after
|
|
289
|
+ // this.weigh_form.temperature_after = sign.temperature_after;
|
|
290
|
+ // this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
|
|
291
|
+ // this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
|
|
292
|
+ // this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
|
|
293
|
+ // this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
|
|
294
|
+ // this.weigh_form.id=sign.id;
|
|
295
|
+ // }
|
|
296
|
+ // }
|
|
297
|
+ // });
|
|
298
|
+ // },
|
304
|
299
|
changeSearch() {
|
305
|
300
|
this.queryParams.need_schedule_type = 0
|
306
|
301
|
this.fetchSignPatients()
|
|
@@ -438,8 +433,6 @@ export default {
|
438
|
433
|
this.weigh_list.breathing_rate = patientlist.breathing_rate
|
439
|
434
|
this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
|
440
|
435
|
this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
|
441
|
|
- console.log('报恩')
|
442
|
|
- console.log(patientlist)
|
443
|
436
|
}
|
444
|
437
|
})
|
445
|
438
|
},
|
|
@@ -482,8 +475,6 @@ export default {
|
482
|
475
|
})
|
483
|
476
|
}
|
484
|
477
|
})
|
485
|
|
- console.log('aaaaaaaaaaaaaaaaaa')
|
486
|
|
- console.log(params)
|
487
|
478
|
},
|
488
|
479
|
hide() {
|
489
|
480
|
this.show = false
|
|
@@ -508,7 +499,69 @@ export default {
|
508
|
499
|
})
|
509
|
500
|
console.log('hahahahah')
|
510
|
501
|
console.log(params)
|
511
|
|
- }
|
|
502
|
+ },
|
|
503
|
+ sighdata() {
|
|
504
|
+ //透前数据
|
|
505
|
+ var params = new Object()
|
|
506
|
+ var data_time = this.querySignParams.date_time
|
|
507
|
+ params.date_time = data_time
|
|
508
|
+ params.patient_id = this.weigh_form.patient_id
|
|
509
|
+ params.dry_weight = this.weigh_list.dry_weight
|
|
510
|
+ params.weight_before = this.weigh_list.weight_before
|
|
511
|
+ params.temperature = this.weigh_list.temperature
|
|
512
|
+ params.pulse_frequency = this.weigh_list.pulse_frequency
|
|
513
|
+ params.breathing_rate = this.weigh_list.breathing_rate
|
|
514
|
+ params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
|
|
515
|
+ params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
|
|
516
|
+
|
|
517
|
+ //透后数据
|
|
518
|
+ params.weight_after = this.weigh_infor.weight_after
|
|
519
|
+ params.temperatureafter = this.weigh_infor.temperature
|
|
520
|
+ params.pulse_frequencyafter = this.weigh_infor.pulse_frequency
|
|
521
|
+ params.breathing_rateafter = this.weigh_infor.breathing_rate
|
|
522
|
+ params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
|
|
523
|
+ params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
|
|
524
|
+ console.log("params数据",params)
|
|
525
|
+ sighdata(params).then(response => {
|
|
526
|
+ var signs = response.data.data.signs
|
|
527
|
+ console.log(signs)
|
|
528
|
+ if (response.data.state === 1) {
|
|
529
|
+ this.$message({
|
|
530
|
+ type: 'success',
|
|
531
|
+ message: '成功!'
|
|
532
|
+ })
|
|
533
|
+ var tlen = this.patients.length
|
|
534
|
+ for(let index=0;index<tlen;index++ ){
|
|
535
|
+ if(this.patients[index].id ==params.patient_id){
|
|
536
|
+ var signin = this.patients[index].signin
|
|
537
|
+ this.patients[index].signin = response.data.data.signs
|
|
538
|
+
|
|
539
|
+ if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
|
|
540
|
+ var sl = this.schedules.length
|
|
541
|
+ for(let j = 0; j < sl; j++){
|
|
542
|
+ if(this.schedules[j].type === this.patients[index].schedule.schedule_type){
|
|
543
|
+ if(this.weigh_form.id > 0){
|
|
544
|
+ this.schedules[j].sign++
|
|
545
|
+ }
|
|
546
|
+ if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
|
|
547
|
+ this.schedules[j].before++
|
|
548
|
+ }
|
|
549
|
+ if(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0){
|
|
550
|
+ this.schedules[j].after++
|
|
551
|
+ }
|
|
552
|
+ }
|
|
553
|
+ }
|
|
554
|
+ }
|
|
555
|
+ break
|
|
556
|
+ }
|
|
557
|
+ }
|
|
558
|
+ this.weigh_form.id = response.data.data.signs.id
|
|
559
|
+ }else{
|
|
560
|
+ this.$message.error(response.data.msg)
|
|
561
|
+ return false
|
|
562
|
+ }
|
|
563
|
+ })
|
|
564
|
+ }
|
512
|
565
|
},
|
513
|
566
|
watch: {
|
514
|
567
|
'weigh_form.weigh_before': function() {
|