-
-
+
+
-
-
+
+
{{ getCategoryName(scope.row) }}
-
-
-
+
+
+
{{
@@ -46,36 +48,35 @@
-
-
+
+
-
+
{{ getPriceFromInventory(scope.row) }}
-
+
{{ handleQuantity(scope.row) }}
-
-
-
-
-
-
+
+
+
+
{{ getMedicalInsuranceLevel(scope.row) }}
-
+
{{ scope.row.useScope }}
@@ -87,9 +88,9 @@
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 901738aa..2532fde5 100644
--- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue
+++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue
@@ -1792,8 +1792,20 @@ function handleBlur(row) {
}, 200);
}
+import { debounce } from 'lodash-es';
+
+// 防抖函数,减少不必要的API调用
+const debouncedHandleChange = debounce((value) => {
+ // 只有在输入达到一定长度时才更新搜索关键词
+ if (value && value.length >= 2) {
+ adviceQueryParams.value.searchKey = value;
+ } else {
+ adviceQueryParams.value.searchKey = '';
+ }
+}, 300);
+
function handleChange(value) {
- adviceQueryParams.value.searchKey = value;
+ debouncedHandleChange(value);
}
/**