提交
This commit is contained in:
1 parent
4a00f21bfb
commit
edf88dc016
1503 files changed
+329728
-41987
No files matched your search
+107
-17
@@ -1309,7 +1309,11 @@ export function fetchUpdateRoleDataScope(
|
||||
// 洁净室管理
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchCleanRoomList(params?: { page?: number; pageSize?: number; keyword?: string }) {
|
||||
export function fetchCleanRoomList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get({ url: '/web/admin/clean-rooms', params })
|
||||
}
|
||||
|
||||
@@ -1325,7 +1329,12 @@ export function fetchDeleteCleanRoom(id: string) {
|
||||
return request.del({ url: `/web/admin/clean-rooms/${id}` })
|
||||
}
|
||||
|
||||
export function fetchAccessLogList(params?: { page?: number; pageSize?: number; cleanRoomId?: string; keyword?: string }) {
|
||||
export function fetchAccessLogList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
cleanRoomId?: string
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get({ url: '/web/admin/clean-room-access-logs', params })
|
||||
}
|
||||
|
||||
@@ -1369,7 +1378,12 @@ export function fetchCreateStorageSlot(data: Record<string, any>) {
|
||||
return request.post({ url: '/web/admin/storage-facility-slots', params: data })
|
||||
}
|
||||
|
||||
export function fetchBatchCreateSlots(data: { facilityNodeId: string; rows: number; cols: number; codePrefix?: string }) {
|
||||
export function fetchBatchCreateSlots(data: {
|
||||
facilityNodeId: string
|
||||
rows: number
|
||||
cols: number
|
||||
codePrefix?: string
|
||||
}) {
|
||||
return request.post({ url: '/web/admin/storage-facility-slots/batch', params: data })
|
||||
}
|
||||
|
||||
@@ -1594,11 +1608,7 @@ export function fetchDeleteProjectSystemItem(id: string) {
|
||||
// 中试服务管理 — 渠道信息(主表)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchChannelList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
export function fetchChannelList(params?: { page?: number; pageSize?: number; keyword?: string }) {
|
||||
return request.get({
|
||||
url: '/web/admin/channels',
|
||||
params
|
||||
@@ -1867,7 +1877,10 @@ export function fetchInsuranceProjectPrices(companyId: string) {
|
||||
}
|
||||
|
||||
export function fetchCreateInsuranceProjectPrice(companyId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/insurance-companies/${companyId}/project-prices`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/insurance-companies/${companyId}/project-prices`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchUpdateInsuranceProjectPrice(id: string, data: Record<string, any>) {
|
||||
@@ -1947,17 +1960,26 @@ export function fetchSubmitServiceOrderFinanceConfirm(orderId: string, data: Rec
|
||||
|
||||
/** 财务确认收款 */
|
||||
export function fetchConfirmServiceOrderReceipt(orderId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-orders/${orderId}/confirm-receipt`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-orders/${orderId}/confirm-receipt`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 提交退款 */
|
||||
export function fetchSubmitServiceOrderRefund(orderId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-orders/${orderId}/submit-refund`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-orders/${orderId}/submit-refund`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 确认退款 */
|
||||
export function fetchConfirmServiceOrderRefund(orderId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-orders/${orderId}/confirm-refund`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-orders/${orderId}/confirm-refund`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 作废订单 */
|
||||
@@ -1989,7 +2011,10 @@ export function fetchServiceOrderTxnDetail(txnId: string) {
|
||||
|
||||
/** 发起充值 */
|
||||
export function fetchCreateRechargeTxn(orderId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-orders/${orderId}/recharge`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-orders/${orderId}/recharge`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 申请退款 */
|
||||
@@ -1999,12 +2024,18 @@ export function fetchCreateRefundTxn(orderId: string, data: Record<string, any>)
|
||||
|
||||
/** 购买产品 */
|
||||
export function fetchCreatePurchaseTxn(orderId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-orders/${orderId}/purchase`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-orders/${orderId}/purchase`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 退订产品 */
|
||||
export function fetchCreateUnsubscribeTxn(orderId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-orders/${orderId}/unsubscribe`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-orders/${orderId}/unsubscribe`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 更新待生效流水 */
|
||||
@@ -2014,12 +2045,18 @@ export function fetchUpdateServiceOrderTxn(txnId: string, data: Record<string, a
|
||||
|
||||
/** 流水发起财务确认 */
|
||||
export function fetchSubmitTxnFinance(txnId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-order-txns/${txnId}/submit-finance`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-order-txns/${txnId}/submit-finance`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 流水财务确认 */
|
||||
export function fetchConfirmTxn(txnId: string, data: Record<string, any>) {
|
||||
return request.post({ url: `/web/admin/channel-service-order-txns/${txnId}/confirm`, params: data })
|
||||
return request.post({
|
||||
url: `/web/admin/channel-service-order-txns/${txnId}/confirm`,
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
/** 作废流水 */
|
||||
@@ -2211,3 +2248,56 @@ export const updateInfusionConfirm = (data: any) =>
|
||||
|
||||
export const deleteInfusionConfirm = (data: any) =>
|
||||
request.del({ url: '/web/admin/pilot-infusion-confirm/delete', data })
|
||||
|
||||
// ========== 中试服务 - 输注计划管理 ==========
|
||||
export function fetchInfusionScheduleMgmtList(params: any) {
|
||||
return request.get({ url: '/web/admin/pilot-infusion-schedule-mgmt/list', params })
|
||||
}
|
||||
export function fetchInfusionScheduleMgmtDetail(params: { scheduleId: string } | { id: string }) {
|
||||
const scheduleId =
|
||||
'scheduleId' in params && params.scheduleId
|
||||
? params.scheduleId
|
||||
: 'id' in params
|
||||
? params.id
|
||||
: ''
|
||||
return request.get({
|
||||
url: '/web/admin/pilot-infusion-schedule-mgmt/detail',
|
||||
params: { scheduleId }
|
||||
})
|
||||
}
|
||||
export function updateInfusionScheduleStatus(data: {
|
||||
scheduleId?: string
|
||||
id?: string
|
||||
infusionStatus: string
|
||||
cancelReason?: string
|
||||
}) {
|
||||
const scheduleId = data.scheduleId || data.id || ''
|
||||
return request.put({
|
||||
url: '/web/admin/pilot-infusion-schedule-mgmt/update-status',
|
||||
data: {
|
||||
scheduleId,
|
||||
infusionStatus: data.infusionStatus,
|
||||
cancelReason: data.cancelReason
|
||||
}
|
||||
})
|
||||
}
|
||||
export function updateInfusionScheduleQcStatus(data: {
|
||||
scheduleId?: string
|
||||
id?: string
|
||||
qcStatus: string
|
||||
}) {
|
||||
const scheduleId = data.scheduleId || data.id || ''
|
||||
return request.put({
|
||||
url: '/web/admin/pilot-infusion-schedule-mgmt/update-qc-status',
|
||||
data: {
|
||||
scheduleId,
|
||||
qcStatus: data.qcStatus
|
||||
}
|
||||
})
|
||||
}
|
||||
export function updateInfusionScheduleMgmt(data: any) {
|
||||
return request.put({
|
||||
url: '/web/admin/pilot-infusion-schedule-mgmt/update',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -206,10 +206,7 @@ export function fetchCreateCollectionProtocol(data: Record<string, unknown>) {
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchUpdateCollectionProtocol(
|
||||
id: string,
|
||||
data: Record<string, unknown>
|
||||
) {
|
||||
export function fetchUpdateCollectionProtocol(id: string, data: Record<string, unknown>) {
|
||||
return request.put({
|
||||
url: `/web/admin/collection-protocols/${id}`,
|
||||
data,
|
||||
|
||||
@@ -4,7 +4,11 @@ import request from '@/utils/http'
|
||||
// 耗材管理
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchConsumableList(params?: { page?: number; pageSize?: number; keyword?: string }) {
|
||||
export function fetchConsumableList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
@@ -128,7 +132,11 @@ export function fetchDeleteProcessCategory(id: string) {
|
||||
// 工艺产出物类型
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchOutputTypeList(params?: { page?: number; pageSize?: number; keyword?: string }) {
|
||||
export function fetchOutputTypeList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
@@ -267,7 +275,11 @@ export function fetchDeleteProcessRoute(id: string) {
|
||||
}
|
||||
|
||||
// 步骤操作
|
||||
export function fetchAddRouteStep(data: { routeId: string; processId: string; stepOrder?: number }) {
|
||||
export function fetchAddRouteStep(data: {
|
||||
routeId: string
|
||||
processId: string
|
||||
stepOrder?: number
|
||||
}) {
|
||||
return request.post({ url: '/web/admin/process-routes/step/add', params: data })
|
||||
}
|
||||
|
||||
|
||||
@@ -123,10 +123,7 @@ export function fetchConvertFromStorage(protocolId: string) {
|
||||
}
|
||||
|
||||
// 转为细胞存储
|
||||
export function fetchConvertToStorage(
|
||||
donationId: string,
|
||||
data?: { desc?: string }
|
||||
) {
|
||||
export function fetchConvertToStorage(donationId: string, data?: { desc?: string }) {
|
||||
return request.post({
|
||||
url: `/web/admin/research-donations/${donationId}/convert-to-storage`,
|
||||
data: data || {},
|
||||
|
||||
@@ -32,14 +32,16 @@ export function fetchGetUpgradeLogs(params: { page?: number; pageSize?: number }
|
||||
* 获取所有更新日志(用于变更日志页面展示)
|
||||
*/
|
||||
export function fetchGetAllUpgradeLogs() {
|
||||
return request.get<Array<{
|
||||
version: string
|
||||
title: string
|
||||
date: string
|
||||
detail: string[]
|
||||
requireReLogin: boolean
|
||||
remark?: string
|
||||
}>>({
|
||||
return request.get<
|
||||
Array<{
|
||||
version: string
|
||||
title: string
|
||||
date: string
|
||||
detail: string[]
|
||||
requireReLogin: boolean
|
||||
remark?: string
|
||||
}>
|
||||
>({
|
||||
url: '/web/system/upgrade-logs/all'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ export function fetchPublishVersion(
|
||||
) {
|
||||
return request.post({
|
||||
url: `/web/admin/workflow/defs/${defId}/publish`,
|
||||
data,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -131,11 +131,7 @@ export function fetchInstanceDetail(instanceId: string) {
|
||||
// 任务办理
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchPendingTasks(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
}) {
|
||||
export function fetchPendingTasks(params?: { page?: number; pageSize?: number; keyword?: string }) {
|
||||
return request.get<{
|
||||
list: Api.Workflow.TaskItem[]
|
||||
total: number
|
||||
|
||||
Reference in new issue
Block a user