|
@@ -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;"> 叫号 </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 => {
|