|
@@ -160,14 +160,23 @@ export default {
|
|
|
const submit = () => {
|
|
|
const message = validateCovid19Answer(answer)
|
|
|
if (message === '') {
|
|
|
- submitCovidAssessment(answer).then(() => {
|
|
|
+ submitCovidAssessment(answer).then((res) => {
|
|
|
Dialog.alert({
|
|
|
title: '提示',
|
|
|
message: '提交成功!',
|
|
|
}).then(() => {
|
|
|
if (answer.patientId && from.value !== '') {
|
|
|
if (from.value === 'register') {
|
|
|
- router.push('/payAppointmentFee')
|
|
|
+ if (res && res.length > 1) {
|
|
|
+ Dialog.alert({
|
|
|
+ title: '提示',
|
|
|
+ message: res,
|
|
|
+ }).then(() => {
|
|
|
+ router.push('/appointment')
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ router.push('/payAppointmentFee')
|
|
|
+ }
|
|
|
} else {
|
|
|
savePrescription(answer.patientId).then(() => {
|
|
|
router.push(`/unPaidList/${answer.patientId}`)
|