Update edit-archive.vue
This commit is contained in:
parent
068161bade
commit
6334d7c318
@ -28,6 +28,7 @@ import useAccount from '@/store/account';
|
||||
import api from '@/utils/api';
|
||||
import { toast, confirm as uniConfirm } from '@/utils/widget';
|
||||
import validate from '@/utils/validate';
|
||||
import { set } from "@/utils/cache";
|
||||
|
||||
import ButtonFooter from '@/components/button-footer.vue';
|
||||
import EmptyData from '@/components/empty-data.vue';
|
||||
@ -160,6 +161,7 @@ async function addArchive() {
|
||||
}
|
||||
loading.value = false;
|
||||
const res = await api('addCustomer', { params });
|
||||
set('home-invite-team-info', { teamId: teamId.value })
|
||||
if (res && res.success) {
|
||||
uni.$emit('reloadTeamCustomers')
|
||||
getTeam(corpId.value, teamId.value, res.data.id);
|
||||
@ -289,12 +291,12 @@ async function getTeam(corpId, teamId, customerId) {
|
||||
const nextTypes = types.slice(1);
|
||||
const url = `/pages/health/record?type=${nextType}&teamId=${teamId}&corpId=${corpId}&customerId=${customerId}&nextTypes=${nextTypes.join(',')}&source=afterArchive`
|
||||
uni.redirectTo({ url });
|
||||
return
|
||||
}
|
||||
}
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: `/pages/archive/archive-result?corpId=${corpId}&teamId=${teamId}&customerId=${customerId}`
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user