diff --git a/pages/archive/archive-manage.vue b/pages/archive/archive-manage.vue
index 7dcf993..9558858 100644
--- a/pages/archive/archive-manage.vue
+++ b/pages/archive/archive-manage.vue
@@ -78,7 +78,7 @@ function changeArchive(customer) {
async function getMembers() {
const res = await api('getTeamCustomers', { corpId: corpId.value, teamId: teamId.value, miniAppId: account.value.openid });
customers.value = res && Array.isArray(res.data) ? res.data : [];
- // enableHis.value = res && typeof res.enableHis === 'boolean' ? res.enableHis : false;
+ enableHis.value = res && typeof res.enableHis === 'boolean' ? res.enableHis : false;
if (!res || !res.data) {
toast(res?.message || '获取档案信息失败')
}
diff --git a/pages/archive/edit-archive.vue b/pages/archive/edit-archive.vue
index 0371983..8b666a1 100644
--- a/pages/archive/edit-archive.vue
+++ b/pages/archive/edit-archive.vue
@@ -14,7 +14,7 @@
@confirm="confirm()" />
-
@@ -58,6 +58,7 @@ const verifyVisible = ref(false);
const visible = ref(false);
const referenceCustomer = ref(null)
const healthTypes = ref([]);
+const enableHis = ref(false);
const formData = computed(() => {
return { ...customer.value, ...form.value, mobile: account.value?.mobile }
@@ -199,12 +200,9 @@ async function bindArchive(customerId) {
uni.switchTab({
url: '/pages/home/home'
})
- // uni.reLaunch({ url: `/pages/home/home?corpId=${corpId.value}&teamId=${teamId.value}` })
} else {
toast(res?.message || '绑定失败');
}
- // customerArchive.value = customers.value.find(item => item.customerId === customerId);
- // verifyVisible.value = true;
}
async function init() {
@@ -229,6 +227,7 @@ async function getArchives() {
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value?.mobile || '' });
customers.value = res && Array.isArray(res.data) ? res.data : [];
corpName.value = res && res.corpName ? res.corpName : '';
+ enableHis.value = res && res.enableHis ? res.enableHis : false;
return customers.value
}
@@ -298,17 +297,7 @@ async function getTeam(corpId, teamId, customerId) {
const qrcode = team && Array.isArray(team.qrcodes) ? team.qrcodes[0] : null;
const healthTempList = qrcode && Array.isArray(qrcode.healthTempList) ? qrcode.healthTempList : [];
healthTypes.value = healthTempList.filter(i => typeof i.templateType === 'string' && i.templateType.trim() && i.archiveRecommend === true).map(i => i.templateType);
- // if (types.length && customerId) {
- // const nextType = types[0];
- // 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
- // }
}
- // uni.redirectTo({
- // url: `/pages/archive/archive-result?corpId=${corpId}&teamId=${teamId}&customerId=${customerId}`
- // })
}