update customer package

This commit is contained in:
Timi
2026-09-06 15:49:20 +08:00
parent b8b3ecbf5d
commit 4c6920be85
19 changed files with 383 additions and 285 deletions
+6 -11
View File
@@ -1,8 +1,7 @@
import type { Attachment, Model, PageResult, User } from "timi-web-api";
import type { Customer } from "@/types/Customer";
export type FulfillmentType = "PACKAGE_ENTITLEMENT" | "DIRECT_PRODUCT";
export type FulfillmentStatus = "WAITING_STOCK" | "PENDING" | "VERIFIED" | "REJECTED" | "CANCELLED" | "REVOKED";
export type GaoFulfillmentStatus = "WAITING_STOCK" | "PENDING" | "VERIFIED" | "REJECTED" | "CANCELLED" | "REVOKED";
export type OrderFulfillmentItem = {
fulfillmentId?: string;
@@ -10,7 +9,6 @@ export type OrderFulfillmentItem = {
productUnitId?: string;
attachmentList?: Attachment[];
sourceOrderItemId?: string;
sourceCustomerPackageItemId?: string;
quantity?: number | string;
baseQuantity?: number | string;
reservedBefore?: number | string;
@@ -26,8 +24,7 @@ export type OrderFulfillment = {
salesOrderId?: string;
storeId?: string;
customerId?: string;
fulfillmentType?: FulfillmentType;
status?: FulfillmentStatus;
status?: GaoFulfillmentStatus;
requestNo?: string;
operatorUserId?: string;
customer?: Customer;
@@ -49,8 +46,7 @@ export type FulfillmentPage = {
storeId?: string;
salesOrderId?: string;
customerId?: string;
fulfillmentType?: FulfillmentType;
status?: FulfillmentStatus;
status?: GaoFulfillmentStatus;
beginAt?: number;
endAt?: number;
index: number;
@@ -61,14 +57,13 @@ export type OrderFulfillmentCreateRequest = {
salesOrderId: string;
requestNo: string;
deliveredAt?: number;
itemList: OrderFulfillmentItemRequest[];
itemList: GaoOrderFulfillmentItemRequest[];
attachmentList?: Partial<Attachment>[];
remark?: string | null;
};
export type OrderFulfillmentItemRequest = {
sourceOrderItemId?: string;
sourceCustomerPackageItemId?: string;
export type GaoOrderFulfillmentItemRequest = {
sourceOrderItemId: string;
quantity: number | string;
};