From 83f040728f10187a3c157aea2caad95e02fee4a6 Mon Sep 17 00:00:00 2001 From: dxc Date: Wed, 11 Feb 2026 14:51:26 +0800 Subject: [PATCH] fix: add missing import and correct SQL query for service list Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) --- inventory-backend/app/services/inbound/service_service.py | 2 +- inventory-web/src/views/stock/inbound/semi.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inventory-backend/app/services/inbound/service_service.py b/inventory-backend/app/services/inbound/service_service.py index 9135204..9619d7e 100644 --- a/inventory-backend/app/services/inbound/service_service.py +++ b/inventory-backend/app/services/inbound/service_service.py @@ -137,7 +137,7 @@ class ServiceService: query = query.filter( db.or_( StockService.sku.ilike(f'%{keyword}%'), - StockService.base_id.in_([row.id for row in db.session.query(subquery.c.id)]) + StockService.base_id.in_(db.session.query(subquery.c.id)) ) ) if start_date: diff --git a/inventory-web/src/views/stock/inbound/semi.vue b/inventory-web/src/views/stock/inbound/semi.vue index 14e02d0..4b98717 100644 --- a/inventory-web/src/views/stock/inbound/semi.vue +++ b/inventory-web/src/views/stock/inbound/semi.vue @@ -451,7 +451,8 @@ import { createSemiInbound, updateSemiInbound, deleteSemiInbound, - searchMaterialBase + searchMaterialBase, + getFilterOptions } from '@/api/inbound/semi' import { uploadFile, deleteFile } from '@/api/inbound/buy' import WebRtcCamera from '@/components/Camera/WebRtcCamera.vue'