See999 4 vuotta sitten
vanhempi
commit
a4c075c018

+ 9 - 2
src/xt_pages/dialysis/schedualPatient.vue Näytä tiedosto

@@ -466,11 +466,18 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
466 466
             return
467 467
           }
468 468
           let schedule_type = null
469
-          if(new Date().getHours() < 11){
469
+          if(this.schedule_type_selected == 0){
470
+            if(new Date().getHours() < 11){
471
+              schedule_type = 1
472
+            }else {
473
+              schedule_type = 2
474
+            }
475
+          }else if(this.schedule_type_selected == 1){
470 476
             schedule_type = 1
471
-          }else {
477
+          }else if(this.schedule_type_selected == 2){
472 478
             schedule_type = 2
473 479
           }
480
+          
474 481
           console.log('patient_id',patient_id)
475 482
           let org_id =  parseInt(sessionStorage.getItem("org_id"));
476 483
           let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));

+ 7 - 1
src/xt_pages/sign/components/beforeDialysisCalling.vue Näytä tiedosto

@@ -254,11 +254,17 @@ export default {
254 254
                 }
255 255
             })
256 256
         },
257
-        next(patient_id,schedule_type){
257
+        next(patient_id){
258 258
             if(patient_id == undefined || patient_id == ""){
259 259
                 this.$message.error('已经是最后一位了');
260 260
                 return
261 261
             }
262
+            let schedule_type = null
263
+            if(this.patientStateVal == 0){
264
+                schedule_type = 1
265
+            }else if(this.patientStateVal == 0){
266
+                schedule_type = 2
267
+            }
262 268
             console.log('patient_id',patient_id)
263 269
             let org_id =  parseInt(sessionStorage.getItem("org_id"));
264 270
             let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));

+ 8 - 2
src/xt_pages/sign/components/computerCalling.vue Näytä tiedosto

@@ -20,7 +20,7 @@
20 20
                 <p class="nowCallingName">{{ fisrtQueueInfo ? fisrtQueueInfo.patient_name : '' }}</p>
21 21
                 <p class="nowCallingTime">签到时间:{{ fisrtQueueInfo ? fisrtQueueInfo.create_time : '' }}</p>
22 22
                 <p><el-button type="primary" @click="call(fisrtQueueInfo && fisrtQueueInfo.patient_id ? fisrtQueueInfo.patient_id : '')" style="margin-left:0;margin: 30px 0 20px 0;">&ensp;叫号&ensp;</el-button></p>
23
-                <el-button style="margin:0 auto;" @click="next(fisrtQueueInfo && fisrtQueueInfo.patient_id ? fisrtQueueInfo.patient_id : '',fisrtQueueInfo && fisrtQueueInfo.schedule_type ? fisrtQueueInfo.schedule_type : '')">下一位</el-button>
23
+                <el-button style="margin:0 auto;" @click="next(fisrtQueueInfo && fisrtQueueInfo.patient_id ? fisrtQueueInfo.patient_id : '')">下一位</el-button>
24 24
             </div>
25 25
         </div>
26 26
     </div>
@@ -228,12 +228,18 @@ export default {
228 228
                 }
229 229
             })
230 230
         },
231
-        next(patient_id,schedule_type){
231
+        next(patient_id){
232 232
             if(patient_id == undefined || patient_id == ""){
233 233
                 this.$message.error('已经是最后一位了');
234 234
                 return
235 235
             }
236 236
             console.log('patient_id',patient_id)
237
+            let schedule_type = null
238
+            if(this.patientStateVal == 0){
239
+                schedule_type = 1
240
+            }else if(this.patientStateVal == 0){
241
+                schedule_type = 2
242
+            }
237 243
             let org_id =  parseInt(sessionStorage.getItem("org_id"));
238 244
             let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
239 245
             axios.get('/api/index/nextupcall?org_id=' + org_id + '&patient_id=' + patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {