|
|
|
|
10
|
<div class="dataTitle">患者列表</div>
|
10
|
<div class="dataTitle">患者列表</div>
|
11
|
<div style="margin-bottom: 10px;">
|
11
|
<div style="margin-bottom: 10px;">
|
12
|
<el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>
|
12
|
<el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>
|
13
|
- <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>
|
|
|
|
|
13
|
+ <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>
|
14
|
<el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
|
14
|
<el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
|
15
|
<el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
15
|
<el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
16
|
</el-select>
|
16
|
</el-select>
|
|
|
|
|
26
|
|
26
|
|
27
|
<el-table-column prop="state" label="状态" min-width="30" align="center">
|
27
|
<el-table-column prop="state" label="状态" min-width="30" align="center">
|
28
|
<template slot-scope="scope">
|
28
|
<template slot-scope="scope">
|
29
|
- <span v-if="scope.row.signin.id ==0">未签到</span>
|
|
|
30
|
- <span v-else-if="scope.row.dialysis_order.stage==2">已经下机</span>
|
|
|
|
|
29
|
+ <span v-if="scope.row.dialysis_order && scope.row.dialysis_order.stage==2">已下机</span>
|
|
|
30
|
+ <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">透析中</span>
|
|
|
31
|
+ <span v-else-if="scope.row.signin.id ==0">未签到</span>
|
31
|
<span v-else>已签到</span>
|
32
|
<span v-else>已签到</span>
|
32
|
</template>
|
33
|
</template>
|
33
|
</el-table-column>
|
34
|
</el-table-column>
|
|
|
|
|
141
|
|
142
|
|
142
|
},
|
143
|
},
|
143
|
weigh_list: {
|
144
|
weigh_list: {
|
|
|
145
|
+ id:'',
|
144
|
weight_before: '', // 透前体重
|
146
|
weight_before: '', // 透前体重
|
145
|
temperature: '', // 体温
|
147
|
temperature: '', // 体温
|
146
|
pulse_frequency: '', // 脉搏
|
148
|
pulse_frequency: '', // 脉搏
|
|
|
|
|
199
|
if (response.data.state === 1) {
|
201
|
if (response.data.state === 1) {
|
200
|
this.patients = response.data.data.patients
|
202
|
this.patients = response.data.data.patients
|
201
|
// console.log('病人信息', this.patients[0].schedule)
|
203
|
// console.log('病人信息', this.patients[0].schedule)
|
|
|
204
|
+ console.log("病人信息:",this.patients)
|
202
|
// 将没有排班的信息排除
|
205
|
// 将没有排班的信息排除
|
203
|
for (let i = this.patients.length - 1; i >= 0; i--) {
|
206
|
for (let i = this.patients.length - 1; i >= 0; i--) {
|
204
|
if (this.patients[i].schedule.id == 0) {
|
207
|
if (this.patients[i].schedule.id == 0) {
|
|
|
|
|
207
|
}
|
210
|
}
|
208
|
this.queryParams.schedule_type = response.data.data.schedule_type
|
211
|
this.queryParams.schedule_type = response.data.data.schedule_type
|
209
|
this.querySignParams.date_time = response.data.data.today
|
212
|
this.querySignParams.date_time = response.data.data.today
|
210
|
-
|
|
|
211
|
if (this.queryParams.need_schedule_type === 1) {
|
213
|
if (this.queryParams.need_schedule_type === 1) {
|
212
|
var sl = this.schedules.length
|
214
|
var sl = this.schedules.length
|
213
|
console.log('s1是什么东西')
|
215
|
console.log('s1是什么东西')
|
|
|
|
|
226
|
}
|
228
|
}
|
227
|
})
|
229
|
})
|
228
|
},
|
230
|
},
|
229
|
- // getPatientSign(){
|
|
|
230
|
- // getPatientSign(this.querySignParams).then(response=>{
|
|
|
231
|
- // if (response.data.state==1) {
|
|
|
|
|
231
|
+ // getPatientSign(){
|
|
|
232
|
+ // getPatientSign(this.querySignParams).then(response=>{
|
|
|
233
|
+ // if (response.data.state==1) {
|
232
|
// if (response.data.data.sign != null) {
|
234
|
// if (response.data.data.sign != null) {
|
233
|
- // var sign = response.data.data.sign;
|
|
|
234
|
- // this.weigh_form.dry_weight = sign.dry_weight;
|
|
|
|
|
235
|
+ // var sign = response.data.data.sign;
|
|
|
236
|
+ // this.weigh_form.dry_weight = sign.dry_weight;
|
235
|
// this.weigh_form.clothes_weight = sign.clothes_weight;
|
237
|
// this.weigh_form.clothes_weight = sign.clothes_weight;
|
236
|
// // 透前
|
238
|
// // 透前
|
237
|
- // this.weigh_form.weigh_before = sign.weigh_before;
|
|
|
238
|
- // this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
|
|
|
239
|
- // this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
|
|
|
240
|
- // this.weigh_form.weight_before = sign.weight_before;
|
|
|
241
|
- // this.weigh_form.temperature_before = sign.temperature_before;
|
|
|
|
|
239
|
+ // this.weigh_form.weigh_before = sign.weigh_before;
|
|
|
240
|
+ // this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
|
|
|
241
|
+ // this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
|
|
|
242
|
+ // this.weigh_form.weight_before = sign.weight_before;
|
|
|
243
|
+ // this.weigh_form.temperature_before = sign.temperature_before;
|
242
|
// this.weigh_form.pulse_rate_before = sign.pulse_rate_before; // P 脉率
|
244
|
// this.weigh_form.pulse_rate_before = sign.pulse_rate_before; // P 脉率
|
243
|
- // this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
|
|
|
244
|
- // this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
|
|
|
245
|
- // this.weigh_form.SBP_before = sign.SBP_before // 收缩压
|
|
|
246
|
- // // 透后
|
|
|
247
|
- // this.weigh_form.weigh_after = sign.weigh_after;
|
|
|
248
|
- // this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
|
|
|
249
|
- // this.weigh_form.weight_after = sign.weight_after
|
|
|
250
|
- // this.weigh_form.temperature_after = sign.temperature_after;
|
|
|
251
|
- // this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
|
|
|
252
|
- // this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
|
|
|
253
|
- // this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
|
|
|
254
|
- // this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
|
|
|
|
|
245
|
+ // this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
|
|
|
246
|
+ // this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
|
|
|
247
|
+ // this.weigh_form.SBP_before = sign.SBP_before // 收缩压
|
|
|
248
|
+ // // 透后
|
|
|
249
|
+ // this.weigh_form.weigh_after = sign.weigh_after;
|
|
|
250
|
+ // this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
|
|
|
251
|
+ // this.weigh_form.weight_after = sign.weight_after
|
|
|
252
|
+ // this.weigh_form.temperature_after = sign.temperature_after;
|
|
|
253
|
+ // this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
|
|
|
254
|
+ // this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
|
|
|
255
|
+ // this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
|
|
|
256
|
+ // this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
|
255
|
// this.weigh_form.id=sign.id;
|
257
|
// this.weigh_form.id=sign.id;
|
256
|
- // }
|
|
|
257
|
- // }
|
|
|
258
|
- // });
|
|
|
|
|
258
|
+ // }
|
|
|
259
|
+ // }
|
|
|
260
|
+ // });
|
259
|
// },
|
261
|
// },
|
260
|
changeSearch() {
|
262
|
changeSearch() {
|
261
|
this.queryParams.need_schedule_type = 0
|
263
|
this.queryParams.need_schedule_type = 0
|
|
|
|
|
270
|
this.weigh_form.patient_id = row.id
|
272
|
this.weigh_form.patient_id = row.id
|
271
|
this.querySignParams.patient_id = row.id
|
273
|
this.querySignParams.patient_id = row.id
|
272
|
this.dialysis_stege = row.dialysis_order.stage
|
274
|
this.dialysis_stege = row.dialysis_order.stage
|
|
|
275
|
+ console.log("呵呵呵",this.dialysis_stege)
|
273
|
this.getDialysisInforInfomation(row.id)
|
276
|
this.getDialysisInforInfomation(row.id)
|
274
|
this.getDialysisAfterInfomation(row.id)
|
277
|
this.getDialysisAfterInfomation(row.id)
|
275
|
-
|
|
|
|
|
278
|
+ this.weigh_list.id=row.signin.id
|
|
|
279
|
+ //console.log("是否有数据",this.weigh_list.id)
|
276
|
// this.getsignweigh(row.id)
|
280
|
// this.getsignweigh(row.id)
|
277
|
},
|
281
|
},
|
278
|
// submitSign() {
|
282
|
// submitSign() {
|
|
|
|
|
321
|
getDialysisInforInfomation(id).then(response => {
|
325
|
getDialysisInforInfomation(id).then(response => {
|
322
|
if (response.data.data.patientlist != null) {
|
326
|
if (response.data.data.patientlist != null) {
|
323
|
var patientlist = response.data.data.patientlist
|
327
|
var patientlist = response.data.data.patientlist
|
|
|
328
|
+ console.log("patientlist是什么?",patientlist)
|
|
|
329
|
+ this.weigh_list.id = patientlist.id
|
|
|
330
|
+ console.log(this.weigh_list.id)
|
324
|
this.weigh_list.dry_weight = patientlist.dry_weight
|
331
|
this.weigh_list.dry_weight = patientlist.dry_weight
|
325
|
console.log('干体重:' + this.weigh_list.dry_weight)
|
332
|
console.log('干体重:' + this.weigh_list.dry_weight)
|
326
|
if (this.weigh_list.dry_weight == 0) {
|
333
|
if (this.weigh_list.dry_weight == 0) {
|
|
|
|
|
496
|
break
|
503
|
break
|
497
|
}
|
504
|
}
|
498
|
}
|
505
|
}
|
499
|
- this.weigh_form.id = response.data.data.signs.id
|
|
|
|
|
506
|
+ this.weigh_list.id = response.data.data.signs.id
|
500
|
} else {
|
507
|
} else {
|
501
|
this.$message.error(response.data.msg)
|
508
|
this.$message.error(response.data.msg)
|
502
|
return false
|
509
|
return false
|