| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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
- })
- }
|