|
@@ -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;">阶段小结时间:{{getTime(editObj.record_time)}}</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>
|
|
@@ -79,7 +79,7 @@
|
79
|
79
|
<span style="margin-right:10px;line-height:30px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
|
80
|
80
|
<br>
|
81
|
81
|
<span style="margin-right:10px;line-height:30px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
|
82
|
|
- <span v-if="editObj.minute!=''">{{editObj.minute}}</span>分</span>
|
|
82
|
+ <span v-if="editObj.minute!=0">{{editObj.minute}}分</span></span>
|
83
|
83
|
<span style="margin-right:10px;line-height:30px;">透前体重(kg):{{editObj.befor_weight}}</span>
|
84
|
84
|
<span style="margin-right:10px;line-height:30px;">透后体重(kg):{{editObj.after_weight}}</span>
|
85
|
85
|
<br>
|
|
@@ -365,7 +365,7 @@
|
365
|
365
|
<el-date-picker
|
366
|
366
|
v-model="form.record_time"
|
367
|
367
|
type="datetime"
|
368
|
|
- value-format="yyyy-MM-dd"
|
|
368
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
369
|
369
|
placeholder="选择日期时间">
|
370
|
370
|
</el-date-picker>
|
371
|
371
|
</el-form-item>
|
|
@@ -419,6 +419,7 @@
|
419
|
419
|
<el-col :span="8" v-if="form.radio == 1">
|
420
|
420
|
<el-form-item>
|
421
|
421
|
<el-date-picker
|
|
422
|
+ @change="changeStartMonth"
|
422
|
423
|
value-format="MM"
|
423
|
424
|
v-model="form.start_month"
|
424
|
425
|
type="month"
|
|
@@ -428,7 +429,7 @@
|
428
|
429
|
</el-col>
|
429
|
430
|
<el-col :span="8" v-if="form.radio == 2">
|
430
|
431
|
<el-form-item>
|
431
|
|
- <el-select v-model="form.quarter" placeholder="请选择">
|
|
432
|
+ <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
|
432
|
433
|
<el-option
|
433
|
434
|
v-for="item in timeType"
|
434
|
435
|
:key="item.id"
|
|
@@ -623,7 +624,7 @@
|
623
|
624
|
<el-date-picker
|
624
|
625
|
v-model="form.record_time"
|
625
|
626
|
type="datetime"
|
626
|
|
- value-format="yyyy-MM-dd"
|
|
627
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
627
|
628
|
placeholder="选择日期时间">
|
628
|
629
|
</el-date-picker>
|
629
|
630
|
</el-form-item>
|
|
@@ -862,7 +863,7 @@
|
862
|
863
|
template_inspection_id:0,
|
863
|
864
|
template_inspection_content:"",
|
864
|
865
|
admin_user_id:this.$store.getters.xt_user.user.id,
|
865
|
|
- record_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
|
|
866
|
+ record_time: moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss'),
|
866
|
867
|
patient_id:"",
|
867
|
868
|
start_time:"",
|
868
|
869
|
end_time:"",
|
|
@@ -966,15 +967,20 @@
|
966
|
967
|
|
967
|
968
|
},
|
968
|
969
|
methods: {
|
969
|
|
- getTime(value, temp) {
|
970
|
|
- if (value == 0) {
|
971
|
|
- return ''
|
972
|
|
- }
|
973
|
|
- if (value != undefined) {
|
974
|
|
- return uParseTime(value, temp)
|
975
|
|
- }
|
976
|
|
- return ''
|
977
|
|
- },
|
|
970
|
+ getTime(val) {
|
|
971
|
+ if(val == ""){
|
|
972
|
+ return ""
|
|
973
|
+ }else {
|
|
974
|
+ return uParseTime(val, '{y}-{m}-{d}')
|
|
975
|
+ }
|
|
976
|
+ },
|
|
977
|
+ getTimeTwo(val) {
|
|
978
|
+ if(val == ""){
|
|
979
|
+ return ""
|
|
980
|
+ }else {
|
|
981
|
+ return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
|
|
982
|
+ }
|
|
983
|
+ },
|
978
|
984
|
getTimeOne(val) {
|
979
|
985
|
if(val < 0){
|
980
|
986
|
return ""
|
|
@@ -1280,7 +1286,7 @@
|
1280
|
1286
|
template_plan_content:this.form.template_plan_content,
|
1281
|
1287
|
// template_inspection_content:JSON.stringify(this.form.template_inspection_content),
|
1282
|
1288
|
admin_user_id:this.form.admin_user_id,
|
1283
|
|
- record_time:this.getTime(this.form.record_time),
|
|
1289
|
+ record_time:this.form.record_time,
|
1284
|
1290
|
after_pressure:this.form.after_pressure,
|
1285
|
1291
|
template_summary_id:this.form.template_summary_id,
|
1286
|
1292
|
template_summary_content:this.form.template_summary_content,
|
|
@@ -1294,7 +1300,7 @@
|
1294
|
1300
|
radio:this.form.radio,
|
1295
|
1301
|
}
|
1296
|
1302
|
console.log("parawm232323223",params)
|
1297
|
|
-
|
|
1303
|
+
|
1298
|
1304
|
saveCreation(params).then(response=>{
|
1299
|
1305
|
if(response.data.state ==1){
|
1300
|
1306
|
var summary = response.data.data.summary
|
|
@@ -1323,8 +1329,6 @@
|
1323
|
1329
|
this.form.template_summary_content = ""
|
1324
|
1330
|
this.form.template_plan_content = ""
|
1325
|
1331
|
this.form.template_inspection_content = ""
|
1326
|
|
- this.form.admin_user_id = ""
|
1327
|
|
- this.form.record_time = ""
|
1328
|
1332
|
this.from.after_pressure = ""
|
1329
|
1333
|
this.form.template_summary_id = ""
|
1330
|
1334
|
this.form.template_plan_id = ""
|
|
@@ -1435,8 +1439,17 @@
|
1435
|
1439
|
this.form.anticoagulant = list.anticoagulant
|
1436
|
1440
|
this.form.autunite = list.autunite
|
1437
|
1441
|
this.form.befor_pressure = list.befor_pressure
|
1438
|
|
- this.form.befor_weight = list.befor_weight
|
1439
|
|
- this.form.dialysis_count = list.dialysis_count
|
|
1442
|
+ if( list.befor_weight == 0){
|
|
1443
|
+ this.form.befor_weight = ""
|
|
1444
|
+ }else{
|
|
1445
|
+ this.form.befor_weight = list.befor_weight
|
|
1446
|
+ }
|
|
1447
|
+ if(list.dialysis_count == 0){
|
|
1448
|
+ this.form.dialysis_count = ""
|
|
1449
|
+ }else{
|
|
1450
|
+ this.form.dialysis_count = list.dialysis_count
|
|
1451
|
+ }
|
|
1452
|
+
|
1440
|
1453
|
this.form.dialzer_apparatus = list.dialzer_apparatus
|
1441
|
1454
|
this.form.dry_weight = list.dry_weight
|
1442
|
1455
|
this.form.hd_count= list.hd_count
|
|
@@ -1447,12 +1460,17 @@
|
1447
|
1460
|
this.form.minute = list.minute
|
1448
|
1461
|
this.form.natrium =list.natrium
|
1449
|
1462
|
this.form.perfusion_apparatus= list.perfusion_apparatus
|
1450
|
|
- this.form.record_time = this.getTime(list.record_time)
|
1451
|
|
- console.log("时间232233232",this.form.record_time)
|
|
1463
|
+ this.form.record_time = this.getTimeTwo(list.record_time)
|
|
1464
|
+ console.log("时间232233232",list.record_time)
|
1452
|
1465
|
this.form.template_inspection_id = list.template_inspection_id
|
1453
|
1466
|
this.form.template_plan_content = list.template_plan_content
|
1454
|
1467
|
this.form.template_summary_content =list.template_summary_content
|
1455
|
|
- this.form.template_summary_id = list.template_summary_id
|
|
1468
|
+ if(list.template_summary_id == 0){
|
|
1469
|
+ this.form.template_summary_id = ""
|
|
1470
|
+ }else{
|
|
1471
|
+ this.form.template_summary_id = list.template_summary_id
|
|
1472
|
+ }
|
|
1473
|
+
|
1456
|
1474
|
this.projectIndate = list.inspect_date
|
1457
|
1475
|
this.projectStr = list.project_id
|
1458
|
1476
|
}
|
|
@@ -1519,6 +1537,7 @@
|
1519
|
1537
|
var list = response.data.data.list
|
1520
|
1538
|
this.$message.success("保存成功")
|
1521
|
1539
|
this.edit_show_dialog = false
|
|
1540
|
+ this.getTemplateSummaryList()
|
1522
|
1541
|
}
|
1523
|
1542
|
})
|
1524
|
1543
|
},
|
|
@@ -1575,8 +1594,6 @@
|
1575
|
1594
|
this.form.template_summary_content = ""
|
1576
|
1595
|
this.form.template_plan_content = ""
|
1577
|
1596
|
this.form.template_inspection_content = ""
|
1578
|
|
- this.form.admin_user_id = ""
|
1579
|
|
- this.form.record_time = ""
|
1580
|
1597
|
this.from.after_pressure = ""
|
1581
|
1598
|
this.form.template_summary_id = ""
|
1582
|
1599
|
this.form.template_plan_id = ""
|
|
@@ -1612,8 +1629,6 @@
|
1612
|
1629
|
this.form.template_summary_content = ""
|
1613
|
1630
|
this.form.template_plan_content = ""
|
1614
|
1631
|
this.form.template_inspection_content = ""
|
1615
|
|
- this.form.admin_user_id = ""
|
1616
|
|
- this.form.record_time = ""
|
1617
|
1632
|
this.form.after_pressure = ""
|
1618
|
1633
|
this.form.template_summary_id = ""
|
1619
|
1634
|
this.form.template_plan_id = ""
|
|
@@ -1656,8 +1671,7 @@
|
1656
|
1671
|
this.form.template_summary_content = ""
|
1657
|
1672
|
this.form.template_plan_content = ""
|
1658
|
1673
|
this.form.template_inspection_content = ""
|
1659
|
|
- this.form.admin_user_id = ""
|
1660
|
|
- this.form.record_time = ""
|
|
1674
|
+
|
1661
|
1675
|
this.form.after_pressure = ""
|
1662
|
1676
|
this.form.template_summary_id = ""
|
1663
|
1677
|
this.form.template_plan_id = ""
|