feat: api active only support for product
closes https://github.com/Frappet/jws-frontend/issues/146
This commit is contained in:
parent
8f99c5274e
commit
11575f3bed
3 changed files with 3 additions and 0 deletions
|
|
@ -596,6 +596,7 @@ async function fetchListOfProductIsAdd(
|
||||||
pageSize: 150,
|
pageSize: 150,
|
||||||
orderField: 'name',
|
orderField: 'name',
|
||||||
orderBy: true ? 'asc' : 'desc',
|
orderBy: true ? 'asc' : 'desc',
|
||||||
|
activeOnly: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
|
||||||
|
|
@ -665,6 +665,7 @@ async function getAllProduct(
|
||||||
pageSize: opts?.pageSize ?? 9999,
|
pageSize: opts?.pageSize ?? 9999,
|
||||||
query: opts?.query,
|
query: opts?.query,
|
||||||
productGroupId: groupId,
|
productGroupId: groupId,
|
||||||
|
activeOnly: true,
|
||||||
});
|
});
|
||||||
if (ret) productList.value[groupId] = ret.result;
|
if (ret) productList.value[groupId] = ret.result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
|
||||||
status?: string;
|
status?: string;
|
||||||
shared?: boolean;
|
shared?: boolean;
|
||||||
orderField?: string;
|
orderField?: string;
|
||||||
|
activeOnly?: boolean;
|
||||||
orderBy?: 'asc' | 'desc';
|
orderBy?: 'asc' | 'desc';
|
||||||
}) {
|
}) {
|
||||||
const params = new URLSearchParams();
|
const params = new URLSearchParams();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue