realbox edit components
This commit is contained in:
@@ -1,74 +1,44 @@
|
||||
export type BoxStatus = 'READY_TO_INVOICE' | 'READY';
|
||||
|
||||
export const BoxStatusList: BoxStatus[] = ['READY_TO_INVOICE', 'READY'];
|
||||
|
||||
export interface IBox {
|
||||
packetNetWeight: string;
|
||||
totalNetWeight: string;
|
||||
cargoId: string;
|
||||
passportName: string;
|
||||
export interface IRealBox {
|
||||
boxName: string;
|
||||
id: number;
|
||||
packetsCount: number;
|
||||
partyName: string;
|
||||
boxType: string;
|
||||
name: string;
|
||||
volume: string;
|
||||
boxWeight: number;
|
||||
brutto: number;
|
||||
hasInvoice: boolean;
|
||||
totalItems: number;
|
||||
status: BoxStatus;
|
||||
totalBrutto: number;
|
||||
}
|
||||
|
||||
export interface IBoxDetail {
|
||||
packet: {
|
||||
id: number;
|
||||
cargoId: string;
|
||||
packetNetWeight: number;
|
||||
passportName: string;
|
||||
totalItems: number;
|
||||
totalNetWeight: number;
|
||||
partyName: string;
|
||||
partyId: string;
|
||||
boxType: string;
|
||||
name: string;
|
||||
volume: string;
|
||||
boxWeight: number;
|
||||
brutto: number;
|
||||
hasInvoice: boolean;
|
||||
status: BoxStatus;
|
||||
};
|
||||
client: {
|
||||
passportId: number;
|
||||
passportName: string;
|
||||
};
|
||||
items: [
|
||||
{
|
||||
export interface IRealBoxDetail {
|
||||
message: string;
|
||||
data: {
|
||||
boxName: string;
|
||||
party: {
|
||||
id: number;
|
||||
partyName: string;
|
||||
boxName: string;
|
||||
cargoId: string;
|
||||
trekId: string;
|
||||
name: string;
|
||||
nameRu: string;
|
||||
amount: number;
|
||||
weight: number;
|
||||
price: number;
|
||||
totalPrice: number;
|
||||
hasImage: boolean;
|
||||
imageUrl: string | null;
|
||||
};
|
||||
packets: Array<{
|
||||
id: number;
|
||||
packetName: string;
|
||||
status: BoxStatus;
|
||||
},
|
||||
];
|
||||
}>;
|
||||
};
|
||||
}
|
||||
|
||||
export type RealCreateBoxBodyType = {
|
||||
partyName: string,
|
||||
packetDtos: number[]
|
||||
};
|
||||
export interface RealCreateBoxBodyType {
|
||||
partyName: string;
|
||||
packetDtos: number[];
|
||||
}
|
||||
|
||||
export type UpdateRealBoxBodyType = {
|
||||
boxId: string,
|
||||
partyName: string,
|
||||
packetDtos: number[]
|
||||
};
|
||||
export interface UpdateRealBoxBodyType {
|
||||
boxId: string;
|
||||
partyName: string;
|
||||
packetDtos: number[];
|
||||
}
|
||||
|
||||
export interface FormValues {
|
||||
partyName: string;
|
||||
paketIds: Array<{ id: string | number }>;
|
||||
id?: number;
|
||||
boxId?: string;
|
||||
partyId?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user