feature:crud-folder

This commit is contained in:
hungdztrau123
2024-06-07 08:35:36 +07:00
parent eaaad4b9d1
commit f8034d13fd
19 changed files with 508 additions and 22 deletions

View File

@@ -88,6 +88,7 @@ const doc: Document = {
correspondent: 11,
document_type: 21,
storage_path: 31,
warehouse: 51,
tags: [41, 42, 43],
content: 'text content',
added: new Date('May 4, 2014 03:24:00'),
@@ -232,7 +233,7 @@ describe('DocumentDetailComponent', () => {
of({
results: [
{
id: 41,
id: 51,
name: 'Warehouse41',
},
],
@@ -862,7 +863,8 @@ describe('DocumentDetailComponent', () => {
id: 22,
name: 'Warehouse22',
type: 'Warehouse',
parent_warehouse: 22,
parent_warehouse: 23,
path: '345/346/347',
} as Warehouse
const qfSpy = jest.spyOn(documentListViewService, 'quickFilter')
component.filterDocuments([object])

View File

@@ -1009,7 +1009,7 @@ export class DocumentDetailComponent
rule_type: FILTER_STORAGE_PATH,
value: (i as StoragePath).id.toString(),
}
} else if (i.hasOwnProperty('type')) {
} else if (i.hasOwnProperty('path')) {
// Warehouse
return {
rule_type: FILTER_WAREHOUSE,