Browse Source

Merge branch 'update' of http://git.shengws.com/zhangbj/xt_pad into update

csx 5 years ago
parent
commit
bad77fcf93

+ 24 - 1
src/pages/main/PatientBox.vue View File

89
           return 'gray'
89
           return 'gray'
90
         } else if (state == 3) {
90
         } else if (state == 3) {
91
           return 'red'
91
           return 'red'
92
-        } else {
92
+        } else if (state == 5){
93
+          return "green1";
94
+        } else if (state == 6){
95
+          return "green2";
96
+        }else {
93
           return 'blue'
97
           return 'blue'
94
         }
98
         }
95
       },
99
       },
119
           return '已下机'
123
           return '已下机'
120
         } else if (state == 3) {
124
         } else if (state == 3) {
121
           return '监测中'
125
           return '监测中'
126
+        }else if (state == 5) {
127
+          return '待称重'
128
+        }else if (state == 6) {
129
+          return '待开处方'
122
         } else {
130
         } else {
123
           // return schedual.patient.gender == 1 ? "男" : "女"
131
           // return schedual.patient.gender == 1 ? "男" : "女"
124
           return '未上机'
132
           return '未上机'
125
         }
133
         }
126
       },
134
       },
127
       computeState: function (schedual) {
135
       computeState: function (schedual) {
136
+        if (schedual.assessment_before_dislysis == null ||schedual.assessment_before_dislysis.weight_before == 0){
137
+          // 未签到称重
138
+          return 5
139
+        }
140
+        if(schedual.prescription == null || schedual.prescription.prescription_doctor == 0){
141
+          // 未确认处方
142
+          return 6
143
+        }
144
+
128
         if (schedual.dialysis_order == null) {
145
         if (schedual.dialysis_order == null) {
129
           // 未上机
146
           // 未上机
130
           return 4
147
           return 4
330
   .green {
347
   .green {
331
   background: #5bd18b;
348
   background: #5bd18b;
332
   }
349
   }
350
+  .green1 {
351
+        background: #e6a23c;
352
+      }
353
+      .green2 {
354
+        background: #7930c3;
355
+      }
333
   .gray {
356
   .gray {
334
   background: #a8b3ba;
357
   background: #a8b3ba;
335
   }
358
   }

+ 1 - 1
src/pages/main/dialog/AssessmentDialog.vue View File

386
         formValue: {
386
         formValue: {
387
           weight_before: '',
387
           weight_before: '',
388
           dry_weight: '',
388
           dry_weight: '',
389
-          AdditionalWeight :'',
389
+          additional_weight :'',
390
           temperature: '',
390
           temperature: '',
391
           systolic_blood_pressure: '',
391
           systolic_blood_pressure: '',
392
           diastolic_blood_pressure: '',
392
           diastolic_blood_pressure: '',

+ 1 - 1
src/pages/main/dialog/PlaneDialog.vue View File

197
         if (response.data.state == 0) {
197
         if (response.data.state == 0) {
198
           Toast.fail(response.data.msg);
198
           Toast.fail(response.data.msg);
199
           return false;
199
           return false;
200
-        } else {debugger
200
+        } else {
201
           Toast.success("下机成功");
201
           Toast.success("下机成功");
202
           this.$emit('did_off', response.data.data.assessmentAfterDislysis);
202
           this.$emit('did_off', response.data.data.assessmentAfterDislysis);
203
           var record = this.record
203
           var record = this.record

+ 1 - 1
src/pages/main/dialog/subMenu/MsgTip.vue View File

20
         <div class="item">
20
         <div class="item">
21
           <label class="name" for="txms">透前体重(kg)</label>
21
           <label class="name" for="txms">透前体重(kg)</label>
22
           <div class="content">
22
           <div class="content">
23
-            <span class="text" id="txms">{{predialysis.weighing_before}}</span>
23
+            <span class="text" id="txms">{{predialysis.weight_before}}</span>
24
             
24
             
25
           </div>
25
           </div>
26
         </div>
26
         </div>

+ 4 - 2
src/pages/main/index.vue View File

52
             let doctorAdvice = []
52
             let doctorAdvice = []
53
             for (let i = 0; i < this.scheduals.length; i++) {
53
             for (let i = 0; i < this.scheduals.length; i++) {
54
               for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
54
               for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
55
-                if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
56
-                  doctorAdvice.push(this.scheduals[i].doctor_advice[y])
55
+                if(this.scheduals[i].dialysis_order == null ){
56
+                  if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
57
+                    doctorAdvice.push(this.scheduals[i].doctor_advice[y])
58
+                  }
57
                 }
59
                 }
58
               }
60
               }
59
             }
61
             }

+ 3 - 7
src/pages/main/today/TodayTab.vue View File

332
           {title: '治疗小结', name: 'treatment_of', value: 0}
332
           {title: '治疗小结', name: 'treatment_of', value: 0}
333
         ]
333
         ]
334
 
334
 
335
-        if (!isNaN(this.prescription.id) && this.prescription.id > 0) {
335
+        if (!isNaN(this.prescription.id) && this.prescription.id > 0 && this.prescription.prescription_doctor> 0) {
336
           steps[0].value = 1
336
           steps[0].value = 1
337
         }
337
         }
338
         if (
338
         if (
341
         ) {
341
         ) {
342
           steps[1].value = 1
342
           steps[1].value = 1
343
         }
343
         }
344
-        if (
345
-          typeof this.predialysis_evaluation.id != 'undefined' &&
346
-          !isNaN(this.predialysis_evaluation.id) &&
347
-          this.predialysis_evaluation.id > 0
348
-        ) {
344
+        if ( typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0  && this.predialysis_evaluation.creater > 0) {
349
           steps[2].value = 1
345
           steps[2].value = 1
350
         }
346
         }
351
         if (this.advice_groups.length > 0) {
347
         if (this.advice_groups.length > 0) {
1187
       closeStatOrder: function () {
1183
       closeStatOrder: function () {
1188
 
1184
 
1189
         this.closeDialog(4)
1185
         this.closeDialog(4)
1190
-        this.scrollToView('stat_order')
1186
+        // this.scrollToView('stat_order')
1191
       }
1187
       }
1192
       ,
1188
       ,
1193
       closeDialysisComputer: function (dialysis_order) {
1189
       closeDialysisComputer: function (dialysis_order) {