更新 二次排队登记

main
鹿和sa0ChunLuyu 1 year ago
parent 2c7aaec667
commit 891d2e483c

@ -123,20 +123,32 @@
const doneClick = async (id) => { const doneClick = async (id) => {
const idn = '{{ $id_number }}' const idn = '{{ $id_number }}'
if(!!idn && id){ if (!!idn && id) {
const response = await axios.post('/api/Fz/change',{ const response = await axios.post('/api/Fz/change', {
id: id, id: id,
id_number: idn, id_number: idn,
}); });
console.log('response',response) if (response.data.status) {
} if (response.data.data.queue.length > 0) {
// const clinic = response.data.data.queue[0].clinic
// window.$box.alert(`登记成功,请前往${clinic}排队`, '提示', { window.$box.alert(`登记成功,请前往${clinic}排队`, '提示', {
// confirmButtonText: 'OK', confirmButtonText: '确定',
// callback: () => { callback: () => {
// console.log('AAAAA') window.location.reload()
// }, },
// }) })
} else {
window.$box.alert(`登记失败,未查询到相关记录`, '提示', {
confirmButtonText: '确定',
callback: () => {
window.location.reload()
},
})
}
} else {
window.$message().error(response.data.msg)
}
}
} }
onMounted(() => { onMounted(() => {

Loading…
Cancel
Save