|
@@ -1954,7 +1954,7 @@
|
1954
|
1954
|
return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
|
1955
|
1955
|
},
|
1956
|
1956
|
show(pre, schedual, last, his_is_open) {
|
1957
|
|
- console.log('pre222222', pre)
|
|
1957
|
+ console.log('pre222222', this.predialysis)
|
1958
|
1958
|
if (pre != undefined) {
|
1959
|
1959
|
if (pre.oxygen_uptake == 1) {
|
1960
|
1960
|
this.oxygenShow = true
|
|
@@ -1968,37 +1968,87 @@
|
1968
|
1968
|
if (his_is_open == 1) {
|
1969
|
1969
|
this.is_open = 0
|
1970
|
1970
|
}
|
1971
|
|
- var date = new Date()
|
1972
|
|
- var year = date.getFullYear()
|
1973
|
|
- var month = date.getMonth() + 1
|
1974
|
|
- var day = date.getDate()
|
|
1971
|
+
|
|
1972
|
+ if(this.$store.getters.xt_user.org.id == 10101){
|
|
1973
|
+ if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
|
|
1974
|
+ var date = new Date(this.predialysis.created_time * 1000)
|
|
1975
|
+ var year = date.getFullYear()
|
|
1976
|
+ var month = date.getMonth() + 1
|
|
1977
|
+ var day = date.getDate()
|
1975
|
1978
|
|
1976
|
|
- var hours = date.getHours()
|
1977
|
|
- var minites = date.getMinutes()
|
|
1979
|
+ var hours = date.getHours()
|
|
1980
|
+ var minites = date.getMinutes()
|
1978
|
1981
|
|
1979
|
|
- if (month < 10) {
|
1980
|
|
- month = '0' + month
|
1981
|
|
- }
|
1982
|
|
- if (day < 10) {
|
1983
|
|
- day = '0' + day
|
1984
|
|
- }
|
1985
|
|
- if (hours < 10) {
|
1986
|
|
- hours = '0' + hours
|
1987
|
|
- }
|
1988
|
|
- if (minites < 10) {
|
1989
|
|
- minites = '0' + minites
|
1990
|
|
- }
|
1991
|
|
- if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10101) {
|
1992
|
|
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
|
1993
|
|
- } else {
|
1994
|
|
- if (schedual.schedule_type == 1) {
|
1995
|
|
- this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
|
1996
|
|
- } else if (schedual.schedule_type == 2) {
|
1997
|
|
- this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
|
1998
|
|
- } else if (schedual.schedule_type == 3) {
|
1999
|
|
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
|
|
1982
|
+ if (month < 10) {
|
|
1983
|
+ month = '0' + month
|
|
1984
|
+ }
|
|
1985
|
+ if (day < 10) {
|
|
1986
|
+ day = '0' + day
|
|
1987
|
+ }
|
|
1988
|
+ if (hours < 10) {
|
|
1989
|
+ hours = '0' + hours
|
|
1990
|
+ }
|
|
1991
|
+ if (minites < 10) {
|
|
1992
|
+ minites = '0' + minites
|
|
1993
|
+ }
|
|
1994
|
+ this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
|
|
1995
|
+ } else {
|
|
1996
|
+ var date = new Date()
|
|
1997
|
+ var year = date.getFullYear()
|
|
1998
|
+ var month = date.getMonth() + 1
|
|
1999
|
+ var day = date.getDate()
|
|
2000
|
+
|
|
2001
|
+ var hours = date.getHours()
|
|
2002
|
+ var minites = date.getMinutes()
|
|
2003
|
+
|
|
2004
|
+ if (month < 10) {
|
|
2005
|
+ month = '0' + month
|
|
2006
|
+ }
|
|
2007
|
+ if (day < 10) {
|
|
2008
|
+ day = '0' + day
|
|
2009
|
+ }
|
|
2010
|
+ if (hours < 10) {
|
|
2011
|
+ hours = '0' + hours
|
|
2012
|
+ }
|
|
2013
|
+ if (minites < 10) {
|
|
2014
|
+ minites = '0' + minites
|
|
2015
|
+ }
|
|
2016
|
+ this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
|
|
2017
|
+ }
|
|
2018
|
+ }else{
|
|
2019
|
+ var date = new Date()
|
|
2020
|
+ var year = date.getFullYear()
|
|
2021
|
+ var month = date.getMonth() + 1
|
|
2022
|
+ var day = date.getDate()
|
|
2023
|
+
|
|
2024
|
+ var hours = date.getHours()
|
|
2025
|
+ var minites = date.getMinutes()
|
|
2026
|
+
|
|
2027
|
+ if (month < 10) {
|
|
2028
|
+ month = '0' + month
|
|
2029
|
+ }
|
|
2030
|
+ if (day < 10) {
|
|
2031
|
+ day = '0' + day
|
|
2032
|
+ }
|
|
2033
|
+ if (hours < 10) {
|
|
2034
|
+ hours = '0' + hours
|
|
2035
|
+ }
|
|
2036
|
+ if (minites < 10) {
|
|
2037
|
+ minites = '0' + minites
|
|
2038
|
+ }
|
|
2039
|
+ if (this.$store.getters.xt_user.org.id == 10016) {
|
|
2040
|
+ this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
|
|
2041
|
+ } else {
|
|
2042
|
+ if (schedual.schedule_type == 1) {
|
|
2043
|
+ this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
|
|
2044
|
+ } else if (schedual.schedule_type == 2) {
|
|
2045
|
+ this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
|
|
2046
|
+ } else if (schedual.schedule_type == 3) {
|
|
2047
|
+ this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
|
|
2048
|
+ }
|
2000
|
2049
|
}
|
2001
|
2050
|
}
|
|
2051
|
+
|
2002
|
2052
|
|
2003
|
2053
|
if (pre.anticoagulant == 3) {
|
2004
|
2054
|
this.dialysisPrescription.anticoagulant = '低分子肝素'
|