完善服务模块缺少付款页的bug

This commit is contained in:
2026-06-02 11:35:31 +08:00
parent c3324d459a
commit 881262940c
35 changed files with 29069 additions and 557 deletions

View File

@@ -9,6 +9,22 @@ export type HomeServiceCatalogType = {
suitableFor: string
}
export type HomeServicePackageType = {
id: string
serviceId: string
packageName: string
packageDesc: string
durationMinutes: number
durationText: string
price: number
listPrice: number
isDefault: boolean
sortNo: number
dataSource: string
seedBatchNo: string
remark: string
}
export type HomeServiceTimelineItemType = {
id: string
title: string
@@ -57,6 +73,8 @@ export type HomeServiceCaseType = {
staffName: string
staffPhone: string
amount: number
paymentStatus?: number
payExpireAt?: string
checkinTime: string
checkinAddress: string
serviceStartedAt: string
@@ -89,6 +107,8 @@ export type HomeServiceTaskType = {
export type HomeServiceApplicationDraftType = {
serviceId: string
serviceName: string
selectedPackageId: string
selectedPackageName: string
applicantName: string
elderName: string
age: number
@@ -96,6 +116,11 @@ export type HomeServiceApplicationDraftType = {
phone: string
address: string
preferredTime: string
appointmentStartAt: number
appointmentEndAt: number
appointmentDate: string
slotSource: string
minAdvanceMinutesSnapshot: number
demandSummary: string
serviceAddressSnapshot?: HomeServiceSelectedAddressType | null
}

View File

@@ -131,6 +131,8 @@ export type ServiceOrderType = {
appointmentTime: string
remark: string
status: ServiceOrderStatus
paymentStatus: number
payExpireAt?: string
currentAssignmentId: string
currentStaffId: string
acceptedAt: string
@@ -149,6 +151,9 @@ export type ServiceOrderType = {
executionRecord: ServiceExecutionRecordType | null
evidenceFiles: Array<ServiceEvidenceFileType>
review: ServiceReviewType | null
dispatchStatus: string
dispatchErrorCode: string
dispatchErrorMessage: string
}
export function getServiceOrderStatusText(status: ServiceOrderStatus): string {