See999 4 years ago
parent
commit
a4c075c018

+ 9 - 2
src/xt_pages/dialysis/schedualPatient.vue View File

466
             return
466
             return
467
           }
467
           }
468
           let schedule_type = null
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
             schedule_type = 1
476
             schedule_type = 1
471
-          }else {
477
+          }else if(this.schedule_type_selected == 2){
472
             schedule_type = 2
478
             schedule_type = 2
473
           }
479
           }
480
+          
474
           console.log('patient_id',patient_id)
481
           console.log('patient_id',patient_id)
475
           let org_id =  parseInt(sessionStorage.getItem("org_id"));
482
           let org_id =  parseInt(sessionStorage.getItem("org_id"));
476
           let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
483
           let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));

+ 7 - 1
src/xt_pages/sign/components/beforeDialysisCalling.vue View File

254
                 }
254
                 }
255
             })
255
             })
256
         },
256
         },
257
-        next(patient_id,schedule_type){
257
+        next(patient_id){
258
             if(patient_id == undefined || patient_id == ""){
258
             if(patient_id == undefined || patient_id == ""){
259
                 this.$message.error('已经是最后一位了');
259
                 this.$message.error('已经是最后一位了');
260
                 return
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
             console.log('patient_id',patient_id)
268
             console.log('patient_id',patient_id)
263
             let org_id =  parseInt(sessionStorage.getItem("org_id"));
269
             let org_id =  parseInt(sessionStorage.getItem("org_id"));
264
             let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
270
             let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));

+ 8 - 2
src/xt_pages/sign/components/computerCalling.vue View File

20
                 <p class="nowCallingName">{{ fisrtQueueInfo ? fisrtQueueInfo.patient_name : '' }}</p>
20
                 <p class="nowCallingName">{{ fisrtQueueInfo ? fisrtQueueInfo.patient_name : '' }}</p>
21
                 <p class="nowCallingTime">签到时间:{{ fisrtQueueInfo ? fisrtQueueInfo.create_time : '' }}</p>
21
                 <p class="nowCallingTime">签到时间:{{ fisrtQueueInfo ? fisrtQueueInfo.create_time : '' }}</p>
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>
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
             </div>
24
             </div>
25
         </div>
25
         </div>
26
     </div>
26
     </div>
228
                 }
228
                 }
229
             })
229
             })
230
         },
230
         },
231
-        next(patient_id,schedule_type){
231
+        next(patient_id){
232
             if(patient_id == undefined || patient_id == ""){
232
             if(patient_id == undefined || patient_id == ""){
233
                 this.$message.error('已经是最后一位了');
233
                 this.$message.error('已经是最后一位了');
234
                 return
234
                 return
235
             }
235
             }
236
             console.log('patient_id',patient_id)
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
             let org_id =  parseInt(sessionStorage.getItem("org_id"));
243
             let org_id =  parseInt(sessionStorage.getItem("org_id"));
238
             let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
244
             let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
239
             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 => {
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 => {