From 6da3b630122990ee404be07b2d4e9e349535cdfc Mon Sep 17 00:00:00 2001 From: wzk <2438381872@qq.com> Date: Thu, 20 Nov 2025 16:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E5=98=B1=E4=BF=9D=E5=AD=98=E6=88=90?= =?UTF-8?q?=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/adviceBaseList.vue | 12 ++ .../prescription/prescriptionlist.vue | 112 ++++++------------ .../components/tcm/tcmAdvice.vue | 10 +- 3 files changed, 56 insertions(+), 78 deletions(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/adviceBaseList.vue b/openhis-ui-vue3/src/views/doctorstation/components/adviceBaseList.vue index 78ea4728..284c4525 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/adviceBaseList.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/adviceBaseList.vue @@ -97,6 +97,8 @@ const throttledGetList = throttle( watch( () => props.adviceQueryParams, (newValue) => { + console.log('adviceBaseList 接收到参数变化:', newValue); + // 直接更新查询参数 queryParams.value.searchKey = newValue.searchKey || ''; @@ -116,6 +118,7 @@ watch( queryParams.value.categoryCode = undefined; } + console.log('发送请求参数:', queryParams.value); getList(); }, { deep: true, immediate: true } @@ -131,6 +134,8 @@ function getPriceFromInventory(row) { function getList() { queryParams.value.organizationId = props.patientInfo.orgId; + console.log('发送API请求:', queryParams.value); + // 判断是否是耗材类型(adviceType = 2 表示耗材) const isConsumables = queryParams.value.adviceTypes === '2' || queryParams.value.adviceTypes === 2; @@ -143,6 +148,8 @@ function getList() { statusEnum: 2, // 只查询启用状态的耗材 }; + console.log('调用耗材目录接口:', deviceQueryParams); + getDeviceList(deviceQueryParams).then((res) => { if (res.data && res.data.records && res.data.records.length > 0) { // 将耗材目录数据转换为医嘱基础信息格式 @@ -182,6 +189,8 @@ function getList() { adviceBaseList.value = convertedRecords; total.value = res.data.total || convertedRecords.length; + console.log('耗材目录数据转换后:', adviceBaseList.value.length, '条'); + nextTick(() => { currentIndex.value = 0; if (adviceBaseList.value.length > 0) { @@ -225,6 +234,9 @@ function getList() { }); adviceBaseList.value = filteredRecords; + + console.log('过滤后数据显示:', adviceBaseList.value.length, '条'); + total.value = res.data.total; nextTick(() => { currentIndex.value = 0; diff --git a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue index 3bb16b7d..78fd7913 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue @@ -873,7 +873,7 @@