1. 菜单类型默认值改为 TOP_LEFT(顶部一级+左侧二级) 2. 二级菜单 component 设为空字符串避免嵌套布局 3. 前端和后端菜单数据同步更新 Co-authored-by: Cursor <cursoragent@cursor.com>
70 lines
1.7 KiB
TypeScript
70 lines
1.7 KiB
TypeScript
import request from '@/utils/http'
|
|
|
|
export type OutboundHandoverInfo = {
|
|
handoverUserId?: string
|
|
handoverPerson?: string
|
|
handoverTime?: string
|
|
handoverLocation?: string
|
|
receiverPerson?: string
|
|
cellPurpose?: string
|
|
attachments?: 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
|
|
cellPurpose?: string
|
|
attachments?: string
|
|
remark?: string
|
|
}
|
|
}
|
|
) {
|
|
return request.put<OutboundHandoverDetail>({
|
|
url: `/web/admin/pilot-infusion-schedule-mgmt/${scheduleId}/outbound-handover`,
|
|
data
|
|
})
|
|
}
|