Commit cd8b71cc by Ooh-Ao

admin

parent d901add5
......@@ -33,7 +33,7 @@
</div>
</div>
@for(item of filterList;track filterList){
<div class="xxl:col-span-4 xl:col-span-6 lg:col-span-6 md:col-span-6 sm:col-span-12 col-span-12">
<!-- <div class="xxl:col-span-4 xl:col-span-6 lg:col-span-6 md:col-span-6 sm:col-span-12 col-span-12">
<div class="box team-member-card">
<div class="teammember-cover-image mt-1">
<span class="avatar avatar-xl avatar-rounded">
......@@ -46,26 +46,12 @@
class="flex flex-wrap align-item-center sm:mt-0 mt-[3rem] justify-between border-b border-dashed dark:border-defaultborder/10 p-4">
<div class="team-member-details flex-grow">
<p class="mb-0 font-semibold text-[1rem] text-truncate">
<a href="javascript:void(0);">{{item.equipment_name}}</a>
<a href="javascript:void(0);">{{item.equipmentName}}</a>
</p>
<p class="mb-0 text-[0.75rem] text-[#8c9097] dark:text-white/50 text-truncate">
{{item.description}}</p>
</div>
</div>
<!-- <div class="team-member-stats sm:flex items-center justify-evenly">
<div class="text-center p-4 w-full">
<p class="font-semibold mb-0">รหัสพนักงาน</p>
<span class="text-[#8c9097] dark:text-white/50 text-[0.75rem]">{{item.employeeId}}</span>
</div>
<div class="text-center p-4 w-full">
<p class="font-semibold mb-0">แผนก</p>
<span class="text-[#8c9097] dark:text-white/50 text-[0.75rem]">{{item.position.thName}}</span>
</div>
<div class="text-center p-4 w-full">
<p class="font-semibold mb-0">ตำแหน่ง</p>
<span class="text-[#8c9097] dark:text-white/50 text-[0.75rem]">{{item.department.thName}}</span>
</div>
</div> -->
</div>
<div class="box-footer border-block-start-dashed dark:border-defaultborder/10 text-center">
<div class="btn-list">
......@@ -78,6 +64,65 @@
</div>
</div>
</div>
</div> -->
<div class="xxl:col-span-2 xl:col-span-3 lg:col-span-4 md:col-span-4 sm:col-span-6 col-span-12">
<div class="box custom-box">
<img src="./assets/images/nft-images/18.png" class="!rounded-t-md" alt="...">
<div class="flex items-center justify-between nft-like-section w-full px-4">
<!-- <div class="flex-grow">
<button type="button" aria-label="button"
class="ti-btn ti-btn-sm ti-btn-success-full !rounded-full btn-wave waves-effect waves-light">
<i class="ri-heart-fill"></i>
</button>
</div>
<div>
<span class="badge nft-like-badge text-white"><i
class="ri-heart-fill me-1 text-danger align-middle inline-block"></i>0.47k</span>
</div> -->
</div>
<div class="box-body">
<!-- <p class="mb-0 text-white nft-auction-time">
04hrs : 24m : 38s
</p> -->
<p class="text-[.9375rem] font-semibold mb-2"><a href="javascript:void(0);">{{item.equipmentName}}</a></p>
<div class="flex flex-wrap align-itesm-center justify-between">
<div class="font-semibold mb-1">รายละเอียด :</div>
<p class="text-[#8c9097] dark:text-white/50 mb-3">{{item.description}}</p>
<!-- <div class="flex flex-wrap items-center leading-none">
<span class="avatar avatar-xs me-1">
<img src="./assets/images/crypto-currencies/square-color/Ethereum.svg" alt="">
</span>0.24ETH
</div> -->
</div>
<div class="flex flex-wrap align-itesm-center justify-between mb-2">
<div class="font-semibold mb-1">จำนวน :</div>
<h3 class="text-[#8c9097] dark:text-white/50">{{item.quantity}}</h3>
</div>
<!-- <div class="grid">
<button type="button" class="ti-btn ti-btn-primary btn-wave waves-effect waves-light">Place Bid</button>
</div> -->
</div>
<div class="box-footer border-block-start-dashed dark:border-defaultborder/10 text-center">
<div class="btn-list">
<div class="btn-list">
<button type="button" aria-label="button" data-hs-overlay="#modal-detail"
class="ti-btn ti-btn-sm ti-btn-primary me-[0.375rem]"><i class="ri-edit-line"></i></button>
<button routerLinkActive="active" type="button" aria-label="button"
class="ti-btn ti-btn-sm ti-btn-secondary !me-[0.375rem]">
<i class="ri-time-line"></i>
</button>
<button data-hs-overlay="#modal-face" type="button" aria-label="button"
class="ti-btn ti-btn-sm ti-btn-warning me-[0.375rem]">
<i class="ri-account-circle-line"></i>
</button>
<button type="button" aria-label="button" class="ti-btn ti-btn-sm ti-btn-danger me-0"><i
class="ri-delete-bin-line"></i></button>
</div>
</div>
</div>
</div>
</div>
}
</div>
......@@ -121,7 +166,7 @@
<div class="xl:col-span-6 col-span-12">
<label for="deal-name" class="form-label">ชื่อ</label>
<input type="text" class="form-control" id="deal-name" placeholder="ชื่อ"
[(ngModel)]="selectModel.equipment_name">
[(ngModel)]="selectModel.equipmentName">
</div>
<div class="xl:col-span-6 col-span-12">
<label for="deal-lead-score" class="form-label">รายละเอียด</label>
......
......@@ -136,7 +136,7 @@ export class AdminManageComponent {
this.pageIndex = 0;
return this.itemsList?.filter(
(x) =>
x.equipment_name.toLowerCase().indexOf(v.toLowerCase()) !== -1 ||
x.equipmentName.toLowerCase().indexOf(v.toLowerCase()) !== -1 ||
x.description?.toLowerCase().indexOf(v.toLowerCase()) !== -1
);
}
......
......@@ -5,9 +5,9 @@ import { environment } from "../../../environments/environment";
export class EquipmentModel extends BaseModel {
equipment_id: string;
picture: string;
equipment_name: string;
equipmentName: string;
description?: string;
quantity_total: number;
quantity: number;
is_returnable: boolean;
location?: string;
created_at: string;
......@@ -17,9 +17,9 @@ export class EquipmentModel extends BaseModel {
super(data, translateService);
this.picture = data?.picture ?? '';
this.equipment_id = data?.equipment_id ?? '';
this.equipment_name = data?.equipment_name ?? '';
this.equipmentName = data?.equipmentName ?? '';
this.description = data?.description ?? '';
this.quantity_total = data?.quantity_total ?? 0;
this.quantity = data?.quantity ?? 0;
this.is_returnable = data?.is_returnable ?? true;
this.location = data?.location ?? '';
this.created_at = data?.created_at ?? new Date().toISOString();
......
......@@ -134,24 +134,16 @@ export class NavService implements OnDestroy {
type: 'link',
},
],
}, {
path: '/admin/borrow-management',
title: 'การเบิกคืนอุปกรณ์',
type: 'link',
selected: false,
Menusub: true,
active: false,
// children: [
// { path: '/admin/borrow-management', title: 'การจัดการการเบิก', type: 'link' },
// { path: '/admin/approve-borrow', title: 'อนุมัติการเบิก', type: 'link' },
// { path: '/admin/return-borrow', title: 'อนุมัติการคืน', type: 'link' },
// {
// path: '/admin/history-product',
// title: 'ประวัติการทำรายการ',
// type: 'link',
// },
// ],
}]
},
// {
// path: '/admin/borrow-management',
// title: 'การเบิกคืนอุปกรณ์',
// type: 'link',
// selected: false,
// Menusub: true,
// active: false,
// }
]
}
getCompanyMenu() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment