|
@@ -60,7 +60,7 @@
|
60
|
60
|
<el-col :span="14">
|
61
|
61
|
<div class="record_content_panel">
|
62
|
62
|
<div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
|
63
|
|
- <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>
|
|
63
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:<span v-if="editObj.record_time!=''">{{getTime(editObj.record_time)}}</span></div>
|
64
|
64
|
<!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
|
65
|
65
|
<div style="padding:10px;border-bottom:1px solid #DCDFE6;">
|
66
|
66
|
<span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
|
|
@@ -87,7 +87,7 @@
|
87
|
87
|
<span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
|
88
|
88
|
</div> -->
|
89
|
89
|
<div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
|
90
|
|
- {{editObj.template_summary_content}}
|
|
90
|
+ <span v-html="editObj.template_summary_content"></span>
|
91
|
91
|
</div>
|
92
|
92
|
<div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
|
93
|
93
|
<div>
|
|
@@ -109,7 +109,10 @@
|
109
|
109
|
</div>
|
110
|
110
|
</div>
|
111
|
111
|
|
112
|
|
- <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
|
|
112
|
+ <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:
|
|
113
|
+ <!-- {{editObj.template_plan_content}} -->
|
|
114
|
+ <span v-html="editObj.template_plan_content"></span>
|
|
115
|
+ </div>
|
113
|
116
|
</div>
|
114
|
117
|
</el-col>
|
115
|
118
|
</el-row>
|
|
@@ -303,7 +306,14 @@
|
303
|
306
|
:value="item.value">
|
304
|
307
|
</el-option>
|
305
|
308
|
</el-select>
|
306
|
|
- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
|
|
309
|
+ <keep-alive>
|
|
310
|
+ <editor ref="edit_neditor"
|
|
311
|
+ id="edit_editor1"
|
|
312
|
+ style="width: 800px"
|
|
313
|
+ v-bind:r_content="form.template_summary_content">
|
|
314
|
+ </editor>
|
|
315
|
+ </keep-alive>
|
|
316
|
+ <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
|
307
|
317
|
</el-row>
|
308
|
318
|
<el-row>
|
309
|
319
|
<label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
|
|
@@ -315,7 +325,14 @@
|
315
|
325
|
:value="item.value">
|
316
|
326
|
</el-option>
|
317
|
327
|
</el-select>
|
318
|
|
- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input>
|
|
328
|
+ <keep-alive>
|
|
329
|
+ <editor ref="edit_neditorOne"
|
|
330
|
+ id="edit_editor"
|
|
331
|
+ style="width: 800px"
|
|
332
|
+ v-bind:r_content="form.template_plan_content">
|
|
333
|
+ </editor>
|
|
334
|
+ </keep-alive>
|
|
335
|
+ <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input> -->
|
319
|
336
|
</el-row>
|
320
|
337
|
<el-row>
|
321
|
338
|
<label class="title"><span class="name">阶段小结化验结果</span> : </label>
|
|
@@ -561,7 +578,14 @@
|
561
|
578
|
:value="item.value">
|
562
|
579
|
</el-option>
|
563
|
580
|
</el-select>
|
564
|
|
- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
|
|
581
|
+ <keep-alive>
|
|
582
|
+ <editor ref="editor"
|
|
583
|
+ id="edit_editor1"
|
|
584
|
+ style="width: 800px"
|
|
585
|
+ v-bind:r_content="form.template_summary_content">
|
|
586
|
+ </editor>
|
|
587
|
+ </keep-alive>
|
|
588
|
+ <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
|
565
|
589
|
</el-row>
|
566
|
590
|
<el-row>
|
567
|
591
|
<label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
|
|
@@ -573,7 +597,14 @@
|
573
|
597
|
:value="item.value">
|
574
|
598
|
</el-option>
|
575
|
599
|
</el-select>
|
576
|
|
- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input>
|
|
600
|
+ <keep-alive>
|
|
601
|
+ <editor ref="editorOne"
|
|
602
|
+ id="edit_editor"
|
|
603
|
+ style="width: 800px"
|
|
604
|
+ v-bind:r_content="form.template_plan_content">
|
|
605
|
+ </editor>
|
|
606
|
+ </keep-alive>
|
|
607
|
+ <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input> -->
|
577
|
608
|
</el-row>
|
578
|
609
|
<el-row>
|
579
|
610
|
<label class="title"><span class="name">阶段小结化验结果</span> : </label>
|
|
@@ -850,7 +881,6 @@
|
850
|
881
|
template_summary_id:"",
|
851
|
882
|
template_summary_content:"",
|
852
|
883
|
template_plan_id:"",
|
853
|
|
- template_summary_content:"",
|
854
|
884
|
template_inspection_id:0,
|
855
|
885
|
template_inspection_content:"",
|
856
|
886
|
admin_user_id:this.$store.getters.xt_user.user.id,
|
|
@@ -960,7 +990,8 @@
|
960
|
990
|
},
|
961
|
991
|
methods: {
|
962
|
992
|
getTime(val) {
|
963
|
|
- if(val == ""){
|
|
993
|
+ console.log("val2322332322323223",val)
|
|
994
|
+ if(val == "" || val == undefined){
|
964
|
995
|
return ""
|
965
|
996
|
}else {
|
966
|
997
|
return uParseTime(val, '{y}-{m}-{d}')
|
|
@@ -1253,10 +1284,19 @@
|
1253
|
1284
|
if(this.form.befor_pressure == ""){
|
1254
|
1285
|
this.form.befor_pressure = 0
|
1255
|
1286
|
}
|
|
1287
|
+ if(this.form.template_plan_id == ""){
|
|
1288
|
+ this.form.template_plan_id = 0
|
|
1289
|
+ }
|
|
1290
|
+ if(this.form.template_summary_id == ""){
|
|
1291
|
+ this.form.template_summary_id = 0
|
|
1292
|
+ }
|
1256
|
1293
|
var year = this.form.start_year+"-"+"01"+"-"+"01"
|
1257
|
1294
|
console.log("年",year)
|
1258
|
1295
|
var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
|
1259
|
|
- console.log("月",month)
|
|
1296
|
+ console.log("月",this.$refs)
|
|
1297
|
+ console.log("hhhhhh",this.$refs.edit_neditor.content)
|
|
1298
|
+ console.log("ooooo",this.$refs.edit_neditorOne.content)
|
|
1299
|
+
|
1260
|
1300
|
var params = {
|
1261
|
1301
|
title:this.form.title,
|
1262
|
1302
|
dry_weight:this.form.dry_weight.toString(),
|
|
@@ -1276,14 +1316,15 @@
|
1276
|
1316
|
befor_weight:this.form.befor_weight.toString(),
|
1277
|
1317
|
after_weight:this.form.after_weight.toString(),
|
1278
|
1318
|
befor_pressure:this.form.befor_pressure,
|
1279
|
|
- template_summary_content:this.form.template_summary_content,
|
1280
|
|
- template_plan_content:this.form.template_plan_content,
|
|
1319
|
+ // template_plan_content:this.form.template_plan_content,
|
|
1320
|
+ template_plan_content:this.$refs.edit_neditor.content,
|
1281
|
1321
|
// template_inspection_content:JSON.stringify(this.form.template_inspection_content),
|
1282
|
1322
|
admin_user_id:this.form.admin_user_id,
|
1283
|
1323
|
record_time:this.form.record_time,
|
1284
|
1324
|
after_pressure:this.form.after_pressure,
|
1285
|
1325
|
template_summary_id:this.form.template_summary_id,
|
1286
|
|
- template_summary_content:this.form.template_summary_content,
|
|
1326
|
+ // template_summary_content:this.form.template_summary_content,
|
|
1327
|
+ template_summary_content:this.$refs.edit_neditorOne.content,
|
1287
|
1328
|
template_plan_id:this.form.template_plan_id,
|
1288
|
1329
|
template_inspection_id:this.form.template_inspection_id,
|
1289
|
1330
|
patient_id:parseInt(this.patient_id),
|
|
@@ -1292,9 +1333,10 @@
|
1292
|
1333
|
start_year:year,
|
1293
|
1334
|
start_month:month,
|
1294
|
1335
|
radio:this.form.radio,
|
|
1336
|
+
|
1295
|
1337
|
}
|
1296
|
1338
|
console.log("parawm232323223",params)
|
1297
|
|
-
|
|
1339
|
+
|
1298
|
1340
|
saveCreation(params).then(response=>{
|
1299
|
1341
|
if(response.data.state ==1){
|
1300
|
1342
|
var summary = response.data.data.summary
|
|
@@ -1342,7 +1384,10 @@
|
1342
|
1384
|
var list = response.data.data.list
|
1343
|
1385
|
this.inspectionList = list
|
1344
|
1386
|
this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
|
1345
|
|
- this.getCurrentRecordDetail(this.inspectionList[0].id)
|
|
1387
|
+ if (list.length > 0) {
|
|
1388
|
+ this.getCurrentRecordDetail(this.inspectionList[0].id)
|
|
1389
|
+ }
|
|
1390
|
+
|
1346
|
1391
|
}
|
1347
|
1392
|
})
|
1348
|
1393
|
},
|
|
@@ -1454,6 +1499,7 @@
|
1454
|
1499
|
this.form.minute = list.minute
|
1455
|
1500
|
this.form.natrium =list.natrium
|
1456
|
1501
|
this.form.perfusion_apparatus= list.perfusion_apparatus
|
|
1502
|
+ this.form.other_count = list.other_count
|
1457
|
1503
|
this.form.record_time = this.getTimeTwo(list.record_time)
|
1458
|
1504
|
console.log("时间232233232",list.record_time)
|
1459
|
1505
|
if(list.template_inspection_id == 0){
|
|
@@ -1504,6 +1550,15 @@
|
1504
|
1550
|
}
|
1505
|
1551
|
},
|
1506
|
1552
|
editCreation(){
|
|
1553
|
+ if(this.form.template_summary_id == ""){
|
|
1554
|
+ this.form.template_summary_id = 0
|
|
1555
|
+ }
|
|
1556
|
+ if(this.form.template_inspection_id == ""){
|
|
1557
|
+ this.form.template_inspection_id = 0
|
|
1558
|
+ }
|
|
1559
|
+ if(this.form.template_plan_id == ""){
|
|
1560
|
+ this.form.template_plan_id = 0
|
|
1561
|
+ }
|
1507
|
1562
|
var params = {
|
1508
|
1563
|
id:this.form.id,
|
1509
|
1564
|
title:this.form.title,
|
|
@@ -1524,8 +1579,10 @@
|
1524
|
1579
|
befor_weight:this.form.befor_weight.toString(),
|
1525
|
1580
|
after_weight:this.form.after_weight.toString(),
|
1526
|
1581
|
befor_pressure:this.form.befor_pressure,
|
1527
|
|
- template_summary_content:this.form.template_summary_content,
|
1528
|
|
- template_plan_content:this.form.template_plan_content,
|
|
1582
|
+ // template_summary_content:this.form.template_summary_content,
|
|
1583
|
+ // template_plan_content:this.form.template_plan_content,
|
|
1584
|
+ template_plan_content:this.$refs.editor.content,
|
|
1585
|
+ template_summary_content:this.$refs.editorOne.content,
|
1529
|
1586
|
admin_user_id:this.form.admin_user_id,
|
1530
|
1587
|
record_time:this.form.record_time,
|
1531
|
1588
|
after_pressure:this.form.after_pressure,
|
|
@@ -1714,6 +1771,12 @@
|
1714
|
1771
|
console.log("val2323323223",val)
|
1715
|
1772
|
if(val == "2021-02"){
|
1716
|
1773
|
this.startYear = val+"-" + "28"
|
|
1774
|
+ }else if(val == "2021-08"){
|
|
1775
|
+ this.startYear = val+"-" + "31"
|
|
1776
|
+ }else if(val == "2021-10"){
|
|
1777
|
+ this.startYear = val+"-" + "31"
|
|
1778
|
+ }else if(val == "2021-12"){
|
|
1779
|
+ this.startYear = val+"-" + "31"
|
1717
|
1780
|
}else{
|
1718
|
1781
|
this.startYear = val+"-" + "30"
|
1719
|
1782
|
}
|