diff --git a/components/archive-detail/customer-profile-tab.vue b/components/archive-detail/customer-profile-tab.vue index 47ba157..58c1687 100644 --- a/components/archive-detail/customer-profile-tab.vue +++ b/components/archive-detail/customer-profile-tab.vue @@ -1,18 +1,6 @@ diff --git a/pages/case/archive-detail.vue b/pages/case/archive-detail.vue index b2c4264..8618b30 100644 --- a/pages/case/archive-detail.vue +++ b/pages/case/archive-detail.vue @@ -249,11 +249,7 @@ function switchTab(key) { currentTab.value = key; // 切换 tab 后,将 tab 滚动到页面顶部(隐藏头部信息区域) nextTick(() => { - // tabs 高度可能随数据变化,先测量一次再滚动 - measureTabsTop(); - setTimeout(() => { - uni.pageScrollTo({ scrollTop: tabsScrollTop.value || 0, duration: 0 }); - }, 0); + uni.pageScrollTo({ scrollTop: tabsScrollTop.value || 0, duration: 300 }); }); } @@ -303,6 +299,9 @@ function normalizeArchiveFromApi(raw) { outpatientNo: r.outpatientNo || '', inpatientNo: r.inpatientNo || '', medicalRecordNo: r.medicalRecordNo || '', + customerNumber: r.customerNumber || '', + customerProfileNo2: r.customerProfileNo2 || '', + customerProfileNo3: r.customerProfileNo3 || '', createTime: r.createTime || '', creator: r.creator || '', notes: r.notes || r.remark || '', @@ -548,9 +547,9 @@ const sexOrAge = computed(() => { const idRows = computed(() => { const rows = []; - if (archive.value.outpatientNo) rows.push({ label: '门诊号', value: String(archive.value.outpatientNo) }); - if (archive.value.inpatientNo) rows.push({ label: '住院号', value: String(archive.value.inpatientNo) }); - if (archive.value.medicalRecordNo) rows.push({ label: '病案号', value: String(archive.value.medicalRecordNo) }); + if (archive.value.customerNumber) rows.push({ label: '病案号1', value: String(archive.value.customerNumber) }); + if (archive.value.customerProfileNo2) rows.push({ label: '病案号2', value: String(archive.value.customerProfileNo2) }); + if (archive.value.customerProfileNo3) rows.push({ label: '病案号3', value: String(archive.value.customerProfileNo3) }); return rows; }); diff --git a/utils/api.js b/utils/api.js index 3430116..74766be 100644 --- a/utils/api.js +++ b/utils/api.js @@ -116,6 +116,8 @@ const urlsConfig = { addServiceRecord: 'addServiceRecord', updateServiceRecord: 'updateServiceRecord', removeServiceRecord: 'removeServiceRecord', + // 客户流转记录 + customerTransferRecord: 'customerTransferRecord', // sendConsultRejectedMessage: "sendConsultRejectedMessage" }