diff --git a/src/app/@config/menus.ts b/src/app/@config/menus.ts index 616c1d5..9342f41 100644 --- a/src/app/@config/menus.ts +++ b/src/app/@config/menus.ts @@ -15,138 +15,6 @@ export interface MENU { } export const MENU: MENU[] = [ - // { - // name: 'ประเมินราคา/ค่ามัดจำ', - // link: 'appraisal', - // permission: 'appraisal', - // icon: 'bi bi-ui-checks', - // params: [], - // badge: '', - // type: 'collapsable', - // children: [ - // { - // name: 'ประเมินราคาครั้งที่ 1', - // link: 'appraisal/1st-time', - // permission: 'appraisal-1st-time', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // children: [ - // { - // name: 'ประวัติการสร้างใบเสนอราคา', - // link: 'appraisal/1st-time/history', - // permission: 'appraisal-1st-time-history', - // notShowing: true, - // children: [ - // { - // name: 'ใบเสนอราคา', - // link: 'appraisal/1st-time/history/pdf', - // permission: 'appraisal-1st-time-pdf', - // notShowing: true, - // } - // ] - // }, - - // ] - // }, - // { - // name: 'ประเมินราคาครั้งที่ 2', - // link: 'appraisal/2nd-time', - // permission: 'appraisal-2nd-time', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, - // { - // name: 'ประเมินราคาครั้งที่ 3', - // link: 'appraisal/3rd-time', - // permission: 'appraisal-3rd-time', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, - // ] - // }, - // { - // name: 'การเงิน', - // link: 'finance', - // permission: 'finance', - // icon: 'bi bi-coin', - // params: [], - // badge: '', - // type: 'collapsable', - // children: [ - // { - // name: 'รับชำระเงิน/ใบเสร็จรับเงิน', - // link: 'finance/payment', - // permission: 'payment', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // children: [ - // { - // name: 'ใบเสร็จรับเงิน', - // link: 'finance/payment/paid/pdf', - // permission: 'finance-payment-pdf', - // notShowing: true, - // } - // ] - // }, - // { - // name: 'การแจ้งหนี้/ตั้งเจ้าหนี้', - // link: 'finance/invoice', - // permission: 'invoice', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, - // { - // name: 'การจ่ายชำระเงิน', - // link: 'finance/paying', - // permission: 'paying', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, - - - // ] - // }, - // { - // name: 'สัญญา', - // link: 'contract', - // permission: 'contract', - // icon: 'bi bi-file-earmark-text-fill', - // params: [], - // badge: '', - // type: 'collapsable', - // children: [ - // { - // name: 'ทำสัญญา', - // link: 'contract/make', - // permission: 'contract-make', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, - // { - // name: 'อนุมัติสัญญา', - // link: 'contract/approved', - // permission: 'contract-approved', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // } - // ] - // }, { name: 'Manage', link: 'manage', @@ -157,49 +25,34 @@ export const MENU: MENU[] = [ type: 'collapsable', children: [ { - name: 'Manage KYC', + name: 'KYC', link: 'manage/kyc', permission: 'manage-kyc', type: 'link', icon: '', params: [], badge: '', - // children: [ - // { - // name: 'ประวัติการสร้างใบเสนอราคา', - // link: 'appraisal/1st-time/history', - // permission: 'appraisal-1st-time-history', - // notShowing: true, - // children: [ - // { - // name: 'ใบเสนอราคา', - // link: 'appraisal/1st-time/history/pdf', - // permission: 'appraisal-1st-time-pdf', - // notShowing: true, - // } - // ] - // }, - - // ] }, - // { - // name: 'ประเมินราคาครั้งที่ 2', - // link: 'appraisal/2nd-time', - // permission: 'appraisal-2nd-time', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, - // { - // name: 'ประเมินราคาครั้งที่ 3', - // link: 'appraisal/3rd-time', - // permission: 'appraisal-3rd-time', - // type: 'link', - // icon: '', - // params: [], - // badge: '', - // }, + ] + }, + { + name: 'Report', + link: 'report', + permission: 'report', + icon: 'bi bi-file-bar-graph', + params: [], + badge: '', + type: 'collapsable', + children: [ + { + name: 'Transactions', + link: 'report/transactions', + permission: 'transactions', + type: 'link', + icon: '', + params: [], + badge: '', + }, ] }, ]; diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index c5b25b0..2eb2d39 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -31,11 +31,19 @@ const routes: Routes = [ children: [ { path: 'kyc', - // loadChildren: () => import('./pages/appraisal/1st-time/appraisal-1st-time.module').then(m => m.Appraisal1stTimeModule) loadChildren: () => import('./pages/manage/kyc/kyc.module').then(m => m.KycModule) }, ] }, + { + path: 'report', + children: [ + { + path: 'transactions', + loadChildren: () => import('./pages/report/transactions/transactions.module').then(m => m.TransactionsModule) + }, + ] + }, { path: 'not-found', loadChildren: () => import('./pages/errors/errors.module').then(m => m.ErrorsModule) diff --git a/src/app/auth/login/login.component.html b/src/app/auth/login/login.component.html index 7aa0862..993f624 100644 --- a/src/app/auth/login/login.component.html +++ b/src/app/auth/login/login.component.html @@ -1,7 +1,7 @@
+