feat: 修正庫存與撥補單邏輯並整合文件
1. 修復倉庫統計數據加總與樣式。 2. 修正可用庫存計算邏輯(排除不可銷售倉庫)。 3. 撥補單商品列表加入批號與效期顯示。 4. 修正撥補單儲存邏輯以支援精確批號轉移。 5. 整合 FEATURES.md 至 README.md。
This commit is contained in:
14
resources/js/Pages/Vendor/Index.tsx
vendored
14
resources/js/Pages/Vendor/Index.tsx
vendored
@@ -13,20 +13,20 @@ import Pagination from "@/Components/shared/Pagination";
|
||||
import { SearchableSelect } from "@/Components/ui/searchable-select";
|
||||
|
||||
export interface Vendor {
|
||||
id: number;
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
short_name?: string;
|
||||
tax_id?: string;
|
||||
shortName?: string;
|
||||
taxId?: string;
|
||||
owner?: string;
|
||||
contact_name?: string;
|
||||
contactName?: string;
|
||||
tel?: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
address?: string;
|
||||
remark?: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
interface PageProps {
|
||||
@@ -126,7 +126,7 @@ export default function VendorManagement({ vendors, filters }: PageProps) {
|
||||
router.get(route("vendors.show", vendor.id));
|
||||
};
|
||||
|
||||
const handleDeleteVendor = (id: number) => {
|
||||
const handleDeleteVendor = (id: string) => {
|
||||
router.delete(route('vendors.destroy', id));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user