|
@@ -119,12 +119,25 @@
|
119
|
119
|
return '已下机'
|
120
|
120
|
} else if (state == 3) {
|
121
|
121
|
return '监测中'
|
|
122
|
+ }else if (state == 5) {
|
|
123
|
+ return '待称重'
|
|
124
|
+ }else if (state == 6) {
|
|
125
|
+ return '待开处方'
|
122
|
126
|
} else {
|
123
|
127
|
// return schedual.patient.gender == 1 ? "男" : "女"
|
124
|
128
|
return '未上机'
|
125
|
129
|
}
|
126
|
130
|
},
|
127
|
131
|
computeState: function (schedual) {
|
|
132
|
+ if (schedual.assessment_before_dislysis == null ||schedual.assessment_before_dislysis.weight_before == 0){
|
|
133
|
+ // 未签到称重
|
|
134
|
+ return 5
|
|
135
|
+ }
|
|
136
|
+ if(schedual.prescription == null || schedual.prescription.prescription_doctor == 0){
|
|
137
|
+ // 未确认处方
|
|
138
|
+ return 6
|
|
139
|
+ }
|
|
140
|
+
|
128
|
141
|
if (schedual.dialysis_order == null) {
|
129
|
142
|
// 未上机
|
130
|
143
|
return 4
|