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 @@