diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index cd1198bb..d6218544 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -596,6 +596,7 @@ async function fetchListOfProductIsAdd( pageSize: 150, orderField: 'name', orderBy: true ? 'asc' : 'desc', + activeOnly: true, }); if (res) { diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index ee43b2cd..94375f0b 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -665,6 +665,7 @@ async function getAllProduct( pageSize: opts?.pageSize ?? 9999, query: opts?.query, productGroupId: groupId, + activeOnly: true, }); if (ret) productList.value[groupId] = ret.result; } diff --git a/src/stores/product-service/index.ts b/src/stores/product-service/index.ts index ef12a196..f281d362 100644 --- a/src/stores/product-service/index.ts +++ b/src/stores/product-service/index.ts @@ -139,6 +139,7 @@ const useProductServiceStore = defineStore('api-product-service', () => { status?: string; shared?: boolean; orderField?: string; + activeOnly?: boolean; orderBy?: 'asc' | 'desc'; }) { const params = new URLSearchParams();