chore: initial commit

This commit is contained in:
2026-07-30 17:59:43 +08:00
commit dd0d365b03
73 changed files with 9898 additions and 0 deletions
+147
View File
@@ -0,0 +1,147 @@
import type {
FirstLegOrderStatusLabel,
PlatformReceivingWarehouse,
PlatformReceivingWarehouseSnapshot,
} from '@chongchong/shared'
export type RecordStatus = '正常' | '停用'
export type CustomerStatus = '正常' | '待审核' | '停用'
export type RoleStatus = '启用' | '停用'
export type PermissionType = '目录' | '菜单' | '按钮' | '接口'
export type DataScope = '全部数据' | '本部门数据' | '本人数据' | '自定义'
export type OrderStatus = FirstLegOrderStatusLabel
export type Warehouse = PlatformReceivingWarehouse
export type ExpressCompanyStatus = '合作中' | '已终止'
export type CounterpartyStatus = '启用' | '停用'
export type CounterpartyType = '供应商' | '客户' | '承运商' | '报关行' | '发货单位' | '收货单位'
export interface ExpressCompany {
id: string
name: string
code: string
website: string
phone: string
status: ExpressCompanyStatus
remark: string
updatedAt: string
}
export interface Counterparty {
id: string
code: string
name: string
types: CounterpartyType[]
contactName: string
contactPhone: string
email: string
country: string
province: string
city: string
postalCode: string
address: string
status: CounterpartyStatus
remark: string
updatedAt: string
}
export interface FirstLegDeliveryInfo {
expressCompanyId: string
expressCompanyCode: string
expressCompanyName: string
trackingNo: string
updatedAt: string
operator: string
}
export interface Customer {
id: string
name: string
creditCode: string
contact: string
phone: string
email: string
sales: string
packageName: '基础版' | '专业版' | '企业版'
period: number
status: CustomerStatus
orders: number
joinedAt: string
address: string
remark: string
}
export interface InternalUser {
id: string
account: string
name: string
department: string
phone: string
email: string
roleIds: string[]
status: RecordStatus
lastLogin: string
createdAt: string
}
export interface Role {
id: string
name: string
code: string
description: string
userCount: number
dataScope: DataScope
status: RoleStatus
permissionIds: string[]
builtIn?: boolean
}
export interface Permission {
id: string
parentId: string | null
name: string
code: string
type: PermissionType
path: string
method: string
status: RoleStatus
sort: number
}
export interface OrderTimelineItem {
time: string
title: string
description: string
operator: string
}
export interface FirstLegOrder {
id: string
no: string
customerId: string
customerName: string
referenceNo: string
transportMode: '海运整箱 FCL' | '海运拼箱 LCL' | '空运' | '陆运'
businessType: '出口' | '进口'
origin: string
destination: string
receivingWarehouseId: string
receivingWarehouseSnapshot: PlatformReceivingWarehouseSnapshot | null
container: string
etd: string
eta: string
amount: number
currency: 'CNY' | 'USD'
status: OrderStatus
priority: '普通' | '紧急' | '加急'
operator: string
shipper: string
consignee: string
cargoName: string
pieces: number
weight: number
volume: number
createdAt: string
remark: string
deliveryInfo?: FirstLegDeliveryInfo | null
timeline: OrderTimelineItem[]
}