|
@@ -50,34 +50,33 @@
|
50
|
50
|
<el-col :span="14">
|
51
|
51
|
<div class="record_content_panel">
|
52
|
52
|
<div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
|
53
|
|
- <div>阶段小结时间:{{getTime(editObj.record_time)}}</div>
|
54
|
|
- <el-divider></el-divider>
|
55
|
|
- <div>阶段小结概要:</div>
|
56
|
|
- <div>
|
57
|
|
- <span>干体重:{{editObj.drg_weight}}</span>
|
58
|
|
- <span>共透析:{{editObj.dialysis_count}}</span>
|
59
|
|
- <span>HD:{{editObj.hd_count}}</span>
|
|
53
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>
|
|
54
|
+ <!-- <el-divider></el-divider> -->
|
|
55
|
+ <div style="padding: 10px 10px 0;">阶段小结概要:</div>
|
|
56
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
|
|
57
|
+ <span style="margin-right:10px;line-height:20px;">干体重:{{editObj.drg_weight}}</span>
|
|
58
|
+ <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
|
|
59
|
+ <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
|
60
|
60
|
<br>
|
61
|
|
- <span>HDF:{{editObj.hdf_count}}</span>
|
62
|
|
- <span>HP:{{editObj.hp_count}}</span>
|
63
|
|
- <span>其他:{{editObj.other_count}}</span>
|
|
61
|
+ <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
|
|
62
|
+ <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
|
|
63
|
+ <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
|
64
|
64
|
<br>
|
65
|
|
- <span>透析器:{{editObj.dialzer_apparatus}}</span>
|
66
|
|
- <span>抗凝剂:{{editObj.anticoagulant}}</span>
|
67
|
|
- <span>透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
|
|
65
|
+ <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
|
|
66
|
+ <span style="margin-right:10px;line-height:20px;">抗凝剂:{{editObj.anticoagulant}}</span>
|
|
67
|
+ <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
|
68
|
68
|
<br>
|
69
|
|
- <span>每次透析(小时):{{editObj.hour}}</span>
|
70
|
|
- <span>透前体重(kg):{{editObj.befor_weight}}</span>
|
71
|
|
- <span>透后体重(kg):{{editObj.after_weight}}</span>
|
|
69
|
+ <span style="margin-right:10px;line-height:20px;">每次透析(小时):{{editObj.hour}}</span>
|
|
70
|
+ <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
|
|
71
|
+ <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
|
72
|
72
|
<br>
|
73
|
|
- <span>透前血压(mmHg):{{editObj.befor_pressure}}</span>
|
74
|
|
- <span>透后血压(mmHg):{{editObj.after_pressure}}</span>
|
|
73
|
+ <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
|
|
74
|
+ <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
|
75
|
75
|
</div>
|
76
|
|
- <el-divider></el-divider>
|
77
|
|
- <div>阶段小结总结:{{editObj.template_inspection_content}}</div>
|
78
|
|
- <el-divider></el-divider>
|
79
|
|
- <div>阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
|
80
|
|
- <div></div>
|
|
76
|
+ <!-- <el-divider></el-divider> -->
|
|
77
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:{{editObj.template_inspection_content}}</div>
|
|
78
|
+ <!-- <el-divider></el-divider> -->
|
|
79
|
+ <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
|
81
|
80
|
</div>
|
82
|
81
|
</el-col>
|
83
|
82
|
</el-row>
|
|
@@ -269,7 +268,7 @@
|
269
|
268
|
:value="item.value">
|
270
|
269
|
</el-option>
|
271
|
270
|
</el-select>
|
272
|
|
- <el-input tyep="text" v-model="form.template_summary_content"></el-input>
|
|
271
|
+ <el-input style="margin:10px 0;" type="text" v-model="form.template_summary_content"></el-input>
|
273
|
272
|
</el-row>
|
274
|
273
|
<el-row>
|
275
|
274
|
<label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
|
|
@@ -281,12 +280,22 @@
|
281
|
280
|
:value="item.value">
|
282
|
281
|
</el-option>
|
283
|
282
|
</el-select>
|
284
|
|
- <el-input tyep="text" v-model="form.template_plan_content"></el-input>
|
|
283
|
+ <el-input style="margin:10px 0;" type="text" v-model="form.template_plan_content"></el-input>
|
285
|
284
|
</el-row>
|
286
|
285
|
<el-row>
|
287
|
286
|
<label class="title"><span class="name">阶段小结化验结果</span> : </label>
|
288
|
287
|
<el-button type="primary" @click="toInspection">选择检验检查</el-button>
|
289
|
|
- <el-input tyep="text" v-model="form.template_inspection_content"></el-input>
|
|
288
|
+ <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
|
|
289
|
+ <div class="borderBox">
|
|
290
|
+ <div v-for="item in form.template_inspection_content">
|
|
291
|
+ <p>{{ item.project_name }}</p>
|
|
292
|
+ <div style="display:flex;flex-wrap: wrap;">
|
|
293
|
+ <div v-for="it in item.arr" style="width:33%;">
|
|
294
|
+ {{ it.item_name }} {{ it.inspect_value }}
|
|
295
|
+ </div>
|
|
296
|
+ </div>
|
|
297
|
+ </div>
|
|
298
|
+ </div>
|
290
|
299
|
</el-row>
|
291
|
300
|
<el-row>
|
292
|
301
|
<el-col :span="8">
|
|
@@ -509,7 +518,7 @@
|
509
|
518
|
:value="item.value">
|
510
|
519
|
</el-option>
|
511
|
520
|
</el-select>
|
512
|
|
- <el-input tyep="text" v-model="form.template_summary_content"></el-input>
|
|
521
|
+ <el-input style="margin:10px 0;" type="text" v-model="form.template_summary_content"></el-input>
|
513
|
522
|
</el-row>
|
514
|
523
|
<el-row>
|
515
|
524
|
<label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
|
|
@@ -521,12 +530,22 @@
|
521
|
530
|
:value="item.value">
|
522
|
531
|
</el-option>
|
523
|
532
|
</el-select>
|
524
|
|
- <el-input tyep="text" v-model="form.template_plan_content"></el-input>
|
|
533
|
+ <el-input style="margin:10px 0;" type="text" v-model="form.template_plan_content"></el-input>
|
525
|
534
|
</el-row>
|
526
|
535
|
<el-row>
|
527
|
536
|
<label class="title"><span class="name">阶段小结化验结果</span> : </label>
|
528
|
537
|
<el-button type="primary" @click="toInspection">选择检验检查</el-button>
|
529
|
|
- <el-input tyep="text" v-model="form.template_inspection_content"></el-input>
|
|
538
|
+ <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
|
|
539
|
+ <div class="borderBox">
|
|
540
|
+ <div v-for="item in form.template_inspection_content">
|
|
541
|
+ <p>{{ item.project_name }}</p>
|
|
542
|
+ <div style="display:flex;flex-wrap: wrap;">
|
|
543
|
+ <div v-for="it in item.arr" style="width:33%;">
|
|
544
|
+ {{ it.item_name }} {{ it.inspect_value }}
|
|
545
|
+ </div>
|
|
546
|
+ </div>
|
|
547
|
+ </div>
|
|
548
|
+ </div>
|
530
|
549
|
</el-row>
|
531
|
550
|
<el-row>
|
532
|
551
|
<el-col :span="8">
|
|
@@ -1093,13 +1112,15 @@
|
1093
|
1112
|
getInspectionItemList(params).then(response=>{
|
1094
|
1113
|
if(response.data.state == 1){
|
1095
|
1114
|
var list = response.data.data.list
|
1096
|
|
- console.log("选择检验检查",list)
|
1097
|
|
- var str = ""
|
1098
|
|
- for(let i=0;i<list.length;i++){
|
1099
|
|
- str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
|
1100
|
|
- }
|
|
1115
|
+
|
|
1116
|
+ // var str = ""
|
|
1117
|
+ // for(let i=0;i<list.length;i++){
|
|
1118
|
+ // str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
|
|
1119
|
+ // }
|
|
1120
|
+ let arr = this.unique(list,'project_name')
|
|
1121
|
+ console.log("选择检验检查",arr)
|
1101
|
1122
|
|
1102
|
|
- this.form.template_inspection_content = str
|
|
1123
|
+ this.form.template_inspection_content = arr
|
1103
|
1124
|
this.dialogVisibleInspection = false
|
1104
|
1125
|
this.projectList = []
|
1105
|
1126
|
this.inspectDataList = []
|
|
@@ -1212,7 +1233,7 @@
|
1212
|
1233
|
return uParseTime(val, '{y}-{m}-{d}')
|
1213
|
1234
|
}
|
1214
|
1235
|
},
|
1215
|
|
- showInnerDialog: function(val) {
|
|
1236
|
+ showInnerDialog: function(val) {
|
1216
|
1237
|
this.InnerDialogProps.visibility = true
|
1217
|
1238
|
switch (val) {
|
1218
|
1239
|
case '7': // 透析器
|
|
@@ -1249,7 +1270,7 @@
|
1249
|
1270
|
break
|
1250
|
1271
|
}
|
1251
|
1272
|
},
|
1252
|
|
- innerDialogCancle: function() {
|
|
1273
|
+ innerDialogCancle: function() {
|
1253
|
1274
|
this.InnerDialogProps.visibility = false
|
1254
|
1275
|
},
|
1255
|
1276
|
getCurrentRecordDetailOne(){
|
|
@@ -1304,14 +1325,14 @@
|
1304
|
1325
|
}
|
1305
|
1326
|
}
|
1306
|
1327
|
},
|
1307
|
|
- changeTempalte(){
|
|
1328
|
+ changeTempalte(){
|
1308
|
1329
|
for(let i=0;i<this.planList.length;i++){
|
1309
|
1330
|
if(this.form.template_plan_id == this.planList[i].value){
|
1310
|
1331
|
this.form.template_plan_content = this.planList[i].content
|
1311
|
1332
|
}
|
1312
|
1333
|
}
|
1313
|
|
- },
|
1314
|
|
- editCreation(){
|
|
1334
|
+ },
|
|
1335
|
+ editCreation(){
|
1315
|
1336
|
var params = {
|
1316
|
1337
|
id:this.form.id,
|
1317
|
1338
|
title:this.form.title,
|
|
@@ -1353,7 +1374,33 @@
|
1353
|
1374
|
this.edit_show_dialog = false
|
1354
|
1375
|
}
|
1355
|
1376
|
})
|
1356
|
|
- }
|
|
1377
|
+ },
|
|
1378
|
+ unique(data, key) {
|
|
1379
|
+ let lastData = [];
|
|
1380
|
+ data.forEach(item => {
|
|
1381
|
+ let status = lastData.some(project_name => project_name[key] == item[key]);
|
|
1382
|
+ console.log('status',status)
|
|
1383
|
+ if (!status) {
|
|
1384
|
+ // item.value0 = item.value;
|
|
1385
|
+ let obj = {
|
|
1386
|
+ project_name:'',
|
|
1387
|
+ arr:[]
|
|
1388
|
+ }
|
|
1389
|
+ obj.project_name = item.project_name
|
|
1390
|
+ obj.arr.push(item);
|
|
1391
|
+ lastData.push(obj);
|
|
1392
|
+ console.log('item',item)
|
|
1393
|
+ } else {
|
|
1394
|
+ lastData.forEach((project_name, index) => {
|
|
1395
|
+ if (project_name[key] === item[key]) {
|
|
1396
|
+ console.log('item222',item)
|
|
1397
|
+ project_name.arr.push(item);
|
|
1398
|
+ }
|
|
1399
|
+ });
|
|
1400
|
+ }
|
|
1401
|
+ });
|
|
1402
|
+ return lastData;
|
|
1403
|
+ }
|
1357
|
1404
|
},
|
1358
|
1405
|
// watch: {
|
1359
|
1406
|
// inspectionList: function() {
|
|
@@ -1367,6 +1414,17 @@
|
1367
|
1414
|
</script>
|
1368
|
1415
|
|
1369
|
1416
|
<style rel="stylesheet/css" lang="scss" scoped>
|
|
1417
|
+ .borderBox{
|
|
1418
|
+ border: 1px solid #DCDFE6;
|
|
1419
|
+ padding: 10px;
|
|
1420
|
+ margin-top: 10px;
|
|
1421
|
+ border-radius: 4px;
|
|
1422
|
+ p{
|
|
1423
|
+ font-weight: bold;
|
|
1424
|
+ font-size: 20px;
|
|
1425
|
+ margin: 10px 0;
|
|
1426
|
+ }
|
|
1427
|
+ }
|
1370
|
1428
|
.container {
|
1371
|
1429
|
margin-left: 180px;
|
1372
|
1430
|
padding: 20px;
|