61 lines
1.6 KiB
TypeScript
61 lines
1.6 KiB
TypeScript
import request from '@/utils/http'
|
|
|
|
export type OutboundHandoverInfo = {
|
|
handoverUserId?: string
|
|
handoverPerson?: string
|
|
handoverTime?: string
|
|
handoverLocation?: string
|
|
receiverPerson?: string
|
|
remark?: string
|
|
}
|
|
|
|
export type OutboundHandoverDetail = {
|
|
scheduleSummary?: {
|
|
applicationNo?: string
|
|
patientName?: string
|
|
infusionTime?: string
|
|
}
|
|
outboundMaterial?: {
|
|
remark?: string
|
|
cells?: Array<{ cellProductId?: string; remark?: string }>
|
|
qcMaterials?: Array<{ qcMaterialId?: string; qty?: number; remark?: string }>
|
|
paperMaterials?: Array<{
|
|
paperName?: string
|
|
copies?: number
|
|
attachmentUrl?: string
|
|
remark?: string
|
|
}>
|
|
}
|
|
handover?: OutboundHandoverInfo
|
|
}
|
|
|
|
export function fetchInfusionScheduleOutboundHandover(scheduleId: string) {
|
|
return request.get<OutboundHandoverDetail>({
|
|
url: `/web/admin/pilot-infusion-schedule-mgmt/${scheduleId}/outbound-handover`
|
|
})
|
|
}
|
|
|
|
export function saveInfusionScheduleOutboundHandover(
|
|
scheduleId: string,
|
|
data: {
|
|
outboundMaterial: {
|
|
remark?: string
|
|
cells: { cellProductId: string; remark?: string }[]
|
|
qcMaterials: { materialId: string; qty: number; remark?: string }[]
|
|
paperMaterials: { paperName: string; copies: number; attachmentUrl: string; remark?: string }[]
|
|
}
|
|
handover: {
|
|
handoverUserId: string
|
|
handoverTime: string
|
|
handoverLocation?: string
|
|
receiverPerson: string
|
|
remark?: string
|
|
}
|
|
}
|
|
) {
|
|
return request.put<OutboundHandoverDetail>({
|
|
url: `/web/admin/pilot-infusion-schedule-mgmt/${scheduleId}/outbound-handover`,
|
|
data
|
|
})
|
|
}
|