|
@@ -200,8 +200,10 @@
|
|
|
}
|
|
|
let res;
|
|
|
if (user.role == 'Doctor') res = await that.$api(`/doctor/${form._id}`, 'POST', form)
|
|
|
- else if (user.role == 'Nurse') res = await that.$api(`/nurse/${user._id}`, 'POST', form)
|
|
|
- else res = await that.$api(`/patient/${user._id}`, 'POST', form)
|
|
|
+ else if (user.role == 'Nurse') {
|
|
|
+ form.doctor = form.doctor._id
|
|
|
+ res = await that.$api(`/nurse/${user._id}`, 'POST', form)
|
|
|
+ } else res = await that.$api(`/patient/${user._id}`, 'POST', form)
|
|
|
if (res.errcode == '0') {
|
|
|
uni.showToast({
|
|
|
title: '维护信息成功',
|