|
@@ -10,13 +10,13 @@
|
10
|
10
|
<div class="dataTitle">患者列表</div>
|
11
|
11
|
<div style="margin-bottom: 10px;">
|
12
|
12
|
<el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>
|
13
|
|
- <el-button type="primary" @change="changeSearch">搜索</el-button>
|
|
13
|
+ <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>
|
14
|
14
|
<el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
|
15
|
15
|
<el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
16
|
16
|
</el-select>
|
17
|
17
|
</div>
|
18
|
18
|
|
19
|
|
- <el-table :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">
|
|
19
|
+ <el-table :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">
|
20
|
20
|
<el-table-column type="index" label="序号" width="50px" align="center"></el-table-column>
|
21
|
21
|
<el-table-column prop="name" label="姓名" min-width="20" align="center">
|
22
|
22
|
<template slot-scope="scope">
|
|
@@ -39,7 +39,7 @@
|
39
|
39
|
<el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
|
40
|
40
|
<el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
|
41
|
41
|
<template slot-scope="scope">
|
42
|
|
- {{scope.row.before}} / {{scope.row.after}}
|
|
42
|
+ {{scope.row.before}} / {{scope.row.after}}
|
43
|
43
|
</template>
|
44
|
44
|
</el-table-column>
|
45
|
45
|
</el-table>
|
|
@@ -47,34 +47,33 @@
|
47
|
47
|
|
48
|
48
|
<el-col :span="16">
|
49
|
49
|
<div class="dataTitle">患者信息</div>
|
50
|
|
- <el-form class="information" label-position="left">
|
|
50
|
+ <el-form class="information">
|
51
|
51
|
<div class="inforTitle">
|
52
|
52
|
<el-button @click="change()" style="float:right;">修改</el-button>
|
53
|
53
|
<span class="name">姓名:{{weigh_form.name}} 透析号:{{weigh_form.dialysis_no}} </span>
|
54
|
54
|
</div>
|
55
|
|
- <div class="border"></div>
|
|
55
|
+ <div class="border"></div>
|
56
|
56
|
<div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
|
57
|
57
|
透前体重(kg): <el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input>
|
58
|
58
|
干体重(kg): <el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input><br>
|
59
|
59
|
</div>
|
60
|
60
|
<div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
|
61
|
|
- 体温(℃): <el-input v-model="weigh_list.temperature" :disabled="disa" style="width:70px"></el-input>
|
62
|
|
- 脉搏(次/分): <el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:70px"></el-input>
|
63
|
|
- 呼吸(次/分): <el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>
|
64
|
|
- 血压(mmHg): <el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
|
65
|
|
- </div>
|
66
|
|
- <div class="border"></div>
|
67
|
|
- <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
|
|
61
|
+ 体温(℃): <el-input v-model="weigh_list.temperature" :disabled="disa" style="width:90px"></el-input>
|
|
62
|
+ <!-- 呼吸(次/分): <el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input> -->
|
|
63
|
+ 血压(mmHg): <el-input v-model="weigh_list.systolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input>
|
|
64
|
+ 脉率(次/分): <el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:90px"></el-input>
|
|
65
|
+ </div>
|
|
66
|
+ <div class="border"></div>
|
|
67
|
+ <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
|
68
|
68
|
透后称重(kg): <el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>
|
69
|
69
|
干体重(kg): <el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>
|
70
|
70
|
</div>
|
71
|
71
|
<div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
|
72
|
|
- 体温(℃): <el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>
|
73
|
|
- 脉搏(次/分): <el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>
|
74
|
|
- 呼吸(次/分): <el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>
|
75
|
|
- 血压(mmHg): <el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
|
76
|
|
- </div>
|
77
|
|
-
|
|
72
|
+ 体温(℃): <el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:90px"></el-input>
|
|
73
|
+ <!-- 呼吸(次/分): <el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input> -->
|
|
74
|
+ 血压(mmHg): <el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input>
|
|
75
|
+ 脉率(次/分): <el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:90px"></el-input>
|
|
76
|
+ </div>
|
78
|
77
|
<div class="border"></div>
|
79
|
78
|
<div v-if="show">
|
80
|
79
|
<el-row :gutter="20">
|
|
@@ -190,6 +189,7 @@ export default {
|
190
|
189
|
dialysis_stege: 0,
|
191
|
190
|
show: false,
|
192
|
191
|
disa:true,
|
|
192
|
+ signnid:"",
|
193
|
193
|
}
|
194
|
194
|
},
|
195
|
195
|
methods: {
|
|
@@ -198,22 +198,14 @@ export default {
|
198
|
198
|
this.patients = []
|
199
|
199
|
if (response.data.state === 1) {
|
200
|
200
|
this.patients = response.data.data.patients
|
201
|
|
- console.log("病人信息",this.patients[0].schedule)
|
|
201
|
+ // console.log("病人信息",this.patients[0].schedule)
|
202
|
202
|
//将没有排班的信息排除
|
203
|
|
- for(let i = this.patients.length-1;i >= 0;i--){
|
204
|
|
-
|
|
203
|
+ console.log("病人信息",this.patients)
|
|
204
|
+ for(let i = this.patients.length-1;i>=0;i--){
|
205
|
205
|
if(this.patients[i].schedule.id == 0){
|
206
|
206
|
this.patients.splice(i,1)
|
207
|
|
- }
|
208
|
|
-
|
|
207
|
+ }
|
209
|
208
|
}
|
210
|
|
-
|
211
|
|
- for (let i = this.patients.length - 1; ; i--) {
|
212
|
|
- if(this.patients[i].schedule.id == 0){
|
213
|
|
- this.patients.splice(i, 1)
|
214
|
|
- }
|
215
|
|
- }
|
216
|
|
-
|
217
|
209
|
this.queryParams.schedule_type = response.data.data.schedule_type
|
218
|
210
|
this.querySignParams.date_time = response.data.data.today
|
219
|
211
|
|
|
@@ -271,33 +263,6 @@ export default {
|
271
|
263
|
this.fetchSignPatients()
|
272
|
264
|
},
|
273
|
265
|
handleCurrentChange(row, old) {
|
274
|
|
-
|
275
|
|
-
|
276
|
|
-
|
277
|
|
-
|
278
|
|
-
|
279
|
|
-
|
280
|
|
-
|
281
|
|
-
|
282
|
|
-
|
283
|
|
-
|
284
|
|
-
|
285
|
|
-
|
286
|
|
-
|
287
|
|
-
|
288
|
|
-
|
289
|
|
-
|
290
|
|
-
|
291
|
|
-
|
292
|
|
-
|
293
|
|
-
|
294
|
|
-
|
295
|
|
-
|
296
|
|
-
|
297
|
|
-
|
298
|
|
-
|
299
|
|
-
|
300
|
|
-
|
301
|
266
|
// this.weigh_form = {
|
302
|
267
|
// id:0,
|
303
|
268
|
// choose:false,
|
|
@@ -336,7 +301,6 @@ export default {
|
336
|
301
|
this.dialysis_stege = row.dialysis_order.stage
|
337
|
302
|
this.getDialysisInforInfomation(row.id)
|
338
|
303
|
this.getDialysisAfterInfomation(row.id)
|
339
|
|
-
|
340
|
304
|
//this.getsignweigh(row.id)
|
341
|
305
|
},
|
342
|
306
|
// submitSign() {
|
|
@@ -528,9 +492,10 @@ export default {
|
528
|
492
|
params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
|
529
|
493
|
console.log("params是什么?",params)
|
530
|
494
|
sighdata(params).then(response => {
|
531
|
|
- var signs = response.data.data.signs
|
532
|
|
- // this.patients[this.table_current_index].signin.id = 1
|
533
|
495
|
if (response.data.state === 1) {
|
|
496
|
+ var signs = response.data.data.signs
|
|
497
|
+ this.signnid = signs.id
|
|
498
|
+ console.log("hheh",signs.id)
|
534
|
499
|
this.$message({
|
535
|
500
|
type: 'success',
|
536
|
501
|
message: '成功!'
|
|
@@ -540,8 +505,7 @@ export default {
|
540
|
505
|
for(let index=0;index<tlen;index++ ){
|
541
|
506
|
if(this.patients[index].id == params.patient_id){
|
542
|
507
|
var signin = this.patients[index].signin
|
543
|
|
- this.patients[index].signin = response.data.data.signs
|
544
|
|
-
|
|
508
|
+ this.patients[index].signin = response.data.data.signs
|
545
|
509
|
if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
|
546
|
510
|
var sl = this.schedules.length
|
547
|
511
|
for(let j = 0; j < sl; j++){
|
|
@@ -568,7 +532,7 @@ export default {
|
568
|
532
|
return false
|
569
|
533
|
}
|
570
|
534
|
})
|
571
|
|
- }
|
|
535
|
+ }
|
572
|
536
|
},
|
573
|
537
|
watch: {
|
574
|
538
|
'weigh_form.weigh_before': function() {
|