|
@@ -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:"",
|
|
@@ -918,6 +919,7 @@
|
918
|
919
|
start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
|
919
|
920
|
end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
|
920
|
921
|
ids:"",
|
|
922
|
+ lastYear:new moment().subtract(1,'months').date(1).format("YYYY-MM-DD"),
|
921
|
923
|
}
|
922
|
924
|
},
|
923
|
925
|
created() {
|
|
@@ -966,15 +968,20 @@
|
966
|
968
|
|
967
|
969
|
},
|
968
|
970
|
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
|
|
- },
|
|
971
|
+ getTime(val) {
|
|
972
|
+ if(val == ""){
|
|
973
|
+ return ""
|
|
974
|
+ }else {
|
|
975
|
+ return uParseTime(val, '{y}-{m}-{d}')
|
|
976
|
+ }
|
|
977
|
+ },
|
|
978
|
+ getTimeTwo(val) {
|
|
979
|
+ if(val == ""){
|
|
980
|
+ return ""
|
|
981
|
+ }else {
|
|
982
|
+ return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
|
|
983
|
+ }
|
|
984
|
+ },
|
978
|
985
|
getTimeOne(val) {
|
979
|
986
|
if(val < 0){
|
980
|
987
|
return ""
|
|
@@ -1028,6 +1035,7 @@
|
1028
|
1035
|
|
1029
|
1036
|
},
|
1030
|
1037
|
changeCurrentRecordTwo(val){
|
|
1038
|
+ console.log("val232232",val.id)
|
1031
|
1039
|
this.form.id = val.id
|
1032
|
1040
|
this.getCurrentRecordDetail(val.id)
|
1033
|
1041
|
},
|
|
@@ -1141,6 +1149,7 @@
|
1141
|
1149
|
var params = {
|
1142
|
1150
|
other_start_time:this.startYear,
|
1143
|
1151
|
patient_id:this.patient_id,
|
|
1152
|
+ last_time:this.lastYear,
|
1144
|
1153
|
}
|
1145
|
1154
|
console.log("开始数据",params)
|
1146
|
1155
|
getInspectionMajorItem(params).then(response=>{
|
|
@@ -1280,7 +1289,7 @@
|
1280
|
1289
|
template_plan_content:this.form.template_plan_content,
|
1281
|
1290
|
// template_inspection_content:JSON.stringify(this.form.template_inspection_content),
|
1282
|
1291
|
admin_user_id:this.form.admin_user_id,
|
1283
|
|
- record_time:this.getTime(this.form.record_time),
|
|
1292
|
+ record_time:this.form.record_time,
|
1284
|
1293
|
after_pressure:this.form.after_pressure,
|
1285
|
1294
|
template_summary_id:this.form.template_summary_id,
|
1286
|
1295
|
template_summary_content:this.form.template_summary_content,
|
|
@@ -1294,7 +1303,7 @@
|
1294
|
1303
|
radio:this.form.radio,
|
1295
|
1304
|
}
|
1296
|
1305
|
console.log("parawm232323223",params)
|
1297
|
|
-
|
|
1306
|
+
|
1298
|
1307
|
saveCreation(params).then(response=>{
|
1299
|
1308
|
if(response.data.state ==1){
|
1300
|
1309
|
var summary = response.data.data.summary
|
|
@@ -1323,8 +1332,6 @@
|
1323
|
1332
|
this.form.template_summary_content = ""
|
1324
|
1333
|
this.form.template_plan_content = ""
|
1325
|
1334
|
this.form.template_inspection_content = ""
|
1326
|
|
- this.form.admin_user_id = ""
|
1327
|
|
- this.form.record_time = ""
|
1328
|
1335
|
this.from.after_pressure = ""
|
1329
|
1336
|
this.form.template_summary_id = ""
|
1330
|
1337
|
this.form.template_plan_id = ""
|
|
@@ -1435,8 +1442,17 @@
|
1435
|
1442
|
this.form.anticoagulant = list.anticoagulant
|
1436
|
1443
|
this.form.autunite = list.autunite
|
1437
|
1444
|
this.form.befor_pressure = list.befor_pressure
|
1438
|
|
- this.form.befor_weight = list.befor_weight
|
1439
|
|
- this.form.dialysis_count = list.dialysis_count
|
|
1445
|
+ if( list.befor_weight == 0){
|
|
1446
|
+ this.form.befor_weight = ""
|
|
1447
|
+ }else{
|
|
1448
|
+ this.form.befor_weight = list.befor_weight
|
|
1449
|
+ }
|
|
1450
|
+ if(list.dialysis_count == 0){
|
|
1451
|
+ this.form.dialysis_count = ""
|
|
1452
|
+ }else{
|
|
1453
|
+ this.form.dialysis_count = list.dialysis_count
|
|
1454
|
+ }
|
|
1455
|
+
|
1440
|
1456
|
this.form.dialzer_apparatus = list.dialzer_apparatus
|
1441
|
1457
|
this.form.dry_weight = list.dry_weight
|
1442
|
1458
|
this.form.hd_count= list.hd_count
|
|
@@ -1447,12 +1463,17 @@
|
1447
|
1463
|
this.form.minute = list.minute
|
1448
|
1464
|
this.form.natrium =list.natrium
|
1449
|
1465
|
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)
|
|
1466
|
+ this.form.record_time = this.getTimeTwo(list.record_time)
|
|
1467
|
+ console.log("时间232233232",list.record_time)
|
1452
|
1468
|
this.form.template_inspection_id = list.template_inspection_id
|
1453
|
1469
|
this.form.template_plan_content = list.template_plan_content
|
1454
|
1470
|
this.form.template_summary_content =list.template_summary_content
|
1455
|
|
- this.form.template_summary_id = list.template_summary_id
|
|
1471
|
+ if(list.template_summary_id == 0){
|
|
1472
|
+ this.form.template_summary_id = ""
|
|
1473
|
+ }else{
|
|
1474
|
+ this.form.template_summary_id = list.template_summary_id
|
|
1475
|
+ }
|
|
1476
|
+
|
1456
|
1477
|
this.projectIndate = list.inspect_date
|
1457
|
1478
|
this.projectStr = list.project_id
|
1458
|
1479
|
}
|
|
@@ -1519,6 +1540,7 @@
|
1519
|
1540
|
var list = response.data.data.list
|
1520
|
1541
|
this.$message.success("保存成功")
|
1521
|
1542
|
this.edit_show_dialog = false
|
|
1543
|
+ this.getTemplateSummaryList()
|
1522
|
1544
|
}
|
1523
|
1545
|
})
|
1524
|
1546
|
},
|
|
@@ -1575,8 +1597,6 @@
|
1575
|
1597
|
this.form.template_summary_content = ""
|
1576
|
1598
|
this.form.template_plan_content = ""
|
1577
|
1599
|
this.form.template_inspection_content = ""
|
1578
|
|
- this.form.admin_user_id = ""
|
1579
|
|
- this.form.record_time = ""
|
1580
|
1600
|
this.from.after_pressure = ""
|
1581
|
1601
|
this.form.template_summary_id = ""
|
1582
|
1602
|
this.form.template_plan_id = ""
|
|
@@ -1612,8 +1632,6 @@
|
1612
|
1632
|
this.form.template_summary_content = ""
|
1613
|
1633
|
this.form.template_plan_content = ""
|
1614
|
1634
|
this.form.template_inspection_content = ""
|
1615
|
|
- this.form.admin_user_id = ""
|
1616
|
|
- this.form.record_time = ""
|
1617
|
1635
|
this.form.after_pressure = ""
|
1618
|
1636
|
this.form.template_summary_id = ""
|
1619
|
1637
|
this.form.template_plan_id = ""
|
|
@@ -1656,8 +1674,7 @@
|
1656
|
1674
|
this.form.template_summary_content = ""
|
1657
|
1675
|
this.form.template_plan_content = ""
|
1658
|
1676
|
this.form.template_inspection_content = ""
|
1659
|
|
- this.form.admin_user_id = ""
|
1660
|
|
- this.form.record_time = ""
|
|
1677
|
+
|
1661
|
1678
|
this.form.after_pressure = ""
|
1662
|
1679
|
this.form.template_summary_id = ""
|
1663
|
1680
|
this.form.template_plan_id = ""
|
|
@@ -1693,6 +1710,7 @@
|
1693
|
1710
|
changeYear(val){
|
1694
|
1711
|
console.log("val2323323223",val)
|
1695
|
1712
|
this.startYear = val+"-" + "30"
|
|
1713
|
+ this.lastYear = val+"-"+"01"
|
1696
|
1714
|
this.getInspectionMajor()
|
1697
|
1715
|
},
|
1698
|
1716
|
selectSummary(val){
|
|
@@ -1821,4 +1839,7 @@
|
1821
|
1839
|
.el-table::before {
|
1822
|
1840
|
background-color: #d0d3da;
|
1823
|
1841
|
}
|
|
1842
|
+.el-select-dropdown {
|
|
1843
|
+ max-width: 1000px !important;
|
|
1844
|
+}
|
1824
|
1845
|
</style>
|