From 17c6f0f671a624d707f0a06b3ea0920890ee04d1 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Tue, 9 Jun 2026 14:03:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5his=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/archive/archive-manage.vue | 2 +- pages/archive/edit-archive.vue | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) 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}` - // }) }