|
@@ -650,9 +650,9 @@
|
650
|
650
|
v-if="
|
651
|
651
|
(dialysisOrder &&
|
652
|
652
|
monitor.operate_time ==
|
653
|
|
- dialysisOrder.start_time)&&(org_id!=10414) && (org_id!=10683)
|
|
653
|
+ dialysisOrder.start_time)
|
654
|
654
|
"
|
655
|
|
- >【开始透析】 <span v-if="org_id ==10598">引血100ml/min</span>
|
|
655
|
+ >【开始透析】 <span>引血100ml/min</span>
|
656
|
656
|
</template>
|
657
|
657
|
|
658
|
658
|
{{ monitor.end }} {{ monitor.symptom }} {{
|
|
@@ -1832,14 +1832,14 @@ export default {
|
1832
|
1832
|
if (Object.keys(monitor).length > 0 && index > 1) {
|
1833
|
1833
|
if (monitor.operate_time == this.dialysisOrder.end_time) {
|
1834
|
1834
|
if(this.org_id!=10683){
|
1835
|
|
- this.monitors[index].end = '【结束透析】'
|
|
1835
|
+ this.monitors[index].end = '【结束透析】回血100ml/min'
|
1836
|
1836
|
}
|
1837
|
1837
|
|
1838
|
1838
|
tempmonitorflag = false
|
1839
|
1839
|
}
|
1840
|
1840
|
if (tempmonitorflag && index == this.monitors.length - 1) {
|
1841
|
1841
|
if(this.org_id!=10683){
|
1842
|
|
- this.monitors[index].end = '【结束透析】'
|
|
1842
|
+ this.monitors[index].end = '【结束透析】回血100ml/min'
|
1843
|
1843
|
}
|
1844
|
1844
|
|
1845
|
1845
|
}
|
|
@@ -1903,110 +1903,46 @@ export default {
|
1903
|
1903
|
this.advices.push(item)
|
1904
|
1904
|
}
|
1905
|
1905
|
this.loading = false
|
1906
|
|
-
|
1907
|
|
- this.doctor_advices =
|
1908
|
|
- response.data.data.advices == null ? [] : response.data.data.advices
|
1909
|
|
-
|
1910
|
|
- for (let index = 0; index < this.doctor_advices.length; index++) {
|
1911
|
|
- this.doctor_advices[index]['isShow'] = 2
|
|
1906
|
+ const advice = response.data.data.advices
|
|
1907
|
+ for(let i in advice){
|
|
1908
|
+ if(advice[i].id !=undefined ){
|
|
1909
|
+ console.log('response.data.data',this.doctor_advices);
|
|
1910
|
+ this.doctor_advices = advice
|
|
1911
|
+ // response.data.data.advices == null ? [] : response.data.data.advices
|
|
1912
|
+ }
|
1912
|
1913
|
}
|
1913
|
|
-
|
1914
|
|
- // if (this.doctor_advices.length > 0) {
|
1915
|
|
- // var group = this.newAdviceGroupObject()
|
1916
|
|
- // var initGroupBlock = function(group, advice) {
|
1917
|
|
- // group.group_no = advice.groupno
|
1918
|
|
- // }
|
1919
|
|
- // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
|
1920
|
|
- // var new_advice_index = 0
|
1921
|
|
-
|
1922
|
|
- // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
|
1923
|
|
- // new_advice_index = index + this.doctor_advices[index].children.length + 1
|
1924
|
|
-
|
1925
|
|
- // var doctor_advice = {
|
1926
|
|
- // delivery_way: this.doctor_advices[index].delivery_way,
|
1927
|
|
- // execution_frequency: this.doctor_advices[index].execution_frequency,
|
1928
|
|
- // groupno: this.doctor_advices[index].groupno,
|
1929
|
|
- // id: this.doctor_advices[index].id,
|
1930
|
|
- // parent_id: this.doctor_advices[index].parent_id,
|
1931
|
|
- // children: this.doctor_advices[index].children,
|
1932
|
|
- // remark: this.doctor_advices[index].remark,
|
1933
|
|
- // execution_staff: this.doctor_advices[index].execution_staff,
|
1934
|
|
- // checker: this.doctor_advices[index].checker,
|
1935
|
|
- // execution_time: this.doctor_advices[index].execution_time,
|
1936
|
|
- // advice_doctor: this.doctor_advices[index].advice_doctor
|
1937
|
|
-
|
1938
|
|
- // }
|
1939
|
|
- // doctor_advice['isShow'] = 1
|
1940
|
|
- // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
|
1941
|
|
- // // this.doctor_advices.push(doctor_advice)
|
1942
|
|
- // }
|
1943
|
|
- // }
|
1944
|
|
-
|
1945
|
|
- // for (let index = 0; index < this.doctor_advices.length; index++) {
|
1946
|
|
- // const advice = this.doctor_advices[index]
|
1947
|
|
- // if (advice.groupno == 0) {
|
1948
|
|
- // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
|
1949
|
|
- // if (advice.parent_id > 0) {
|
1950
|
|
- // if (this.advice_groups.length > 0) {
|
1951
|
|
- // var parent_group = this.advice_groups[
|
1952
|
|
- // this.advice_groups.length - 1
|
1953
|
|
- // ]
|
1954
|
|
- // if (parent_group.advices.length > 0) {
|
1955
|
|
- // if (parent_group.advices[0].id == advice.parent_id) {
|
1956
|
|
- // parent_group.advices.push(advice)
|
1957
|
|
- // }
|
1958
|
|
- // }
|
1959
|
|
- // }
|
1960
|
|
- // continue
|
1961
|
|
- // } else {
|
1962
|
|
- // if (group.group_no > 0) {
|
1963
|
|
- // this.advice_groups.push(group)
|
1964
|
|
- // group = this.newAdviceGroupObject()
|
1965
|
|
- // }
|
1966
|
|
-
|
1967
|
|
- // initGroupBlock(group, advice)
|
1968
|
|
- // group.advices.push(advice)
|
1969
|
|
- // this.advice_groups.push(group)
|
1970
|
|
- // group = this.newAdviceGroupObject()
|
1971
|
|
- // continue
|
1972
|
|
- // }
|
1973
|
|
- // }
|
1974
|
|
-
|
1975
|
|
- // if (group.group_no > 0 && group.group_no != advice.groupno) {
|
1976
|
|
- // this.advice_groups.push(group)
|
1977
|
|
- // group = this.newAdviceGroupObject()
|
1978
|
|
- // }
|
1979
|
|
- // if (group.group_no == 0) {
|
1980
|
|
- // initGroupBlock(group, advice)
|
1981
|
|
- // }
|
1982
|
|
- // if (group.group_no == advice.groupno) {
|
1983
|
|
- // group.advices.push(advice)
|
|
1914
|
+ const advicearr = []
|
|
1915
|
+ for(let i in this.doctor_advices){
|
|
1916
|
+ if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
|
|
1917
|
+ advicearr.push(this.doctor_advices[i])
|
|
1918
|
+ }
|
|
1919
|
+ }
|
|
1920
|
+ this.doctor_advices = []
|
|
1921
|
+ this.doctor_advices = advicearr
|
|
1922
|
+
|
|
1923
|
+ // for (let index = 0; index < this.doctor_advices.length; index++) {
|
|
1924
|
+ // this.doctor_advices[index]['isShow'] = 2
|
|
1925
|
+ // }&& (advice[i].delivery_way !='口服' || advice[i].delivery_way!='中药口服')
|
|
1926
|
+
|
|
1927
|
+ // if (this.doctor_advices.length <= 6) {
|
|
1928
|
+ // var nl = 6
|
|
1929
|
+ // this.print_length = 6
|
|
1930
|
+
|
|
1931
|
+ // for (let index = 0; index < nl; index++) {
|
|
1932
|
+
|
|
1933
|
+ // if (
|
|
1934
|
+ // this.doctor_advices[index] == undefined ||
|
|
1935
|
+ // this.doctor_advices[index].length <= 0
|
|
1936
|
+ // ) {
|
|
1937
|
+ // this.doctor_advices.push([])
|
|
1938
|
+ // console.log('1234567',this.doctor_advices)
|
|
1939
|
+ // } else {
|
|
1940
|
+ // continue
|
1984
|
1941
|
// }
|
1985
|
1942
|
// }
|
1986
|
|
-
|
1987
|
|
- // if (group.group_no > 0) {
|
1988
|
|
- // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
|
1989
|
|
- // this.advice_groups.push(group)
|
1990
|
|
- // }
|
1991
|
1943
|
// }
|
1992
|
|
-
|
1993
|
|
- if (this.doctor_advices.length <= 6) {
|
1994
|
|
- var nl = 6
|
1995
|
|
- this.print_length = 6
|
1996
|
|
-
|
1997
|
|
- for (let index = 0; index < nl; index++) {
|
1998
|
|
- if (
|
1999
|
|
- this.doctor_advices[index] == undefined ||
|
2000
|
|
- this.doctor_advices[index].length <= 0
|
2001
|
|
- ) {
|
2002
|
|
- this.doctor_advices.push([])
|
2003
|
|
- } else {
|
2004
|
|
- continue
|
2005
|
|
- }
|
2006
|
|
- }
|
2007
|
|
- }
|
2008
|
|
- this.totollength = this.doctor_advices.length + this.monitors.length
|
2009
|
|
- console.log(this.advice_groups)
|
|
1944
|
+ // this.totollength = this.doctor_advices.length + this.monitors.length
|
|
1945
|
+
|
2010
|
1946
|
|
2011
|
1947
|
} else {
|
2012
|
1948
|
this.loading = false
|
|
@@ -2093,11 +2029,9 @@ export default {
|
2093
|
2029
|
},
|
2094
|
2030
|
getshouji(id){
|
2095
|
2031
|
const options = this.anticoagulantsConfit
|
2096
|
|
- console.log('anticoagulantsConfit11111',id,options[id].shouji_unit);
|
2097
|
2032
|
if(id != 0){
|
2098
|
2033
|
for(let i in options){
|
2099
|
2034
|
if(id == options[i].id){
|
2100
|
|
- console.log('anticoagulantsConfit11111',id);
|
2101
|
2035
|
return options[i].shouji_unit
|
2102
|
2036
|
}
|
2103
|
2037
|
}
|