提交
This commit is contained in:
1 parent
3779de12ce
commit
fb85230d25
25 files changed
+6003
-234
No files matched your search
@@ -303,3 +303,121 @@ export function fetchUpdateStepOutputs(data: { stepId: string; items: any[] }) {
|
||||
export function fetchUpdateStepDataCollections(data: { stepId: string; items: any[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/data-collection/update', params: data })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 试剂库存操作
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchReagentStockIn(id: string, data: { qty: number; remark?: string }) {
|
||||
return request.post({ url: `/web/admin/reagents/${id}/stock-in`, data })
|
||||
}
|
||||
|
||||
export function fetchReagentStockOut(
|
||||
id: string,
|
||||
data: { qty: number; receiver: string; purpose?: string; remark?: string }
|
||||
) {
|
||||
return request.post({ url: `/web/admin/reagents/${id}/stock-out`, data })
|
||||
}
|
||||
|
||||
export function fetchReagentBatchStockIn(data: {
|
||||
items: Array<{ materialId: string; qty: number; remark?: string }>
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/reagents/batch-stock-in', data })
|
||||
}
|
||||
|
||||
export function fetchReagentBatchStockOut(data: {
|
||||
items: Array<{ materialId: string; qty: number }>
|
||||
receiver: string
|
||||
purpose?: string
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/reagents/batch-stock-out', data })
|
||||
}
|
||||
|
||||
export function fetchReagentStockLogs(
|
||||
id: string,
|
||||
params: { page: number; pageSize: number; changeType?: string }
|
||||
) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: `/web/admin/reagents/${id}/stock-logs`, params })
|
||||
}
|
||||
|
||||
export function fetchAllReagentStockLogs(params: {
|
||||
page: number
|
||||
pageSize: number
|
||||
keyword?: string
|
||||
changeType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: '/web/admin/reagents/stock-logs', params })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 耗材库存操作
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchConsumableStockIn(id: string, data: { qty: number; remark?: string }) {
|
||||
return request.post({ url: `/web/admin/consumables/${id}/stock-in`, data })
|
||||
}
|
||||
|
||||
export function fetchConsumableStockOut(
|
||||
id: string,
|
||||
data: { qty: number; receiver?: string; purpose?: string; remark?: string }
|
||||
) {
|
||||
return request.post({ url: `/web/admin/consumables/${id}/stock-out`, data })
|
||||
}
|
||||
|
||||
export function fetchConsumableBatchStockIn(data: {
|
||||
items: { materialId: string; qty: number; remark?: string }[]
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/consumables/batch-stock-in', data })
|
||||
}
|
||||
|
||||
export function fetchConsumableBatchStockOut(data: {
|
||||
items: { materialId: string; qty: number }[]
|
||||
receiver?: string
|
||||
purpose?: string
|
||||
remark?: string
|
||||
}) {
|
||||
return request.post<{ count: number }>({ url: '/web/admin/consumables/batch-stock-out', data })
|
||||
}
|
||||
|
||||
export function fetchConsumableStockLogs(
|
||||
id: string,
|
||||
params: { page: number; pageSize: number; changeType?: string }
|
||||
) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: `/web/admin/consumables/${id}/stock-logs`, params })
|
||||
}
|
||||
|
||||
export function fetchAllConsumableStockLogs(params: {
|
||||
page: number
|
||||
pageSize: number
|
||||
keyword?: string
|
||||
changeType?: string
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}>({ url: '/web/admin/consumables/stock-logs', params })
|
||||
}
|
||||
@@ -411,6 +411,13 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
.page-container .panel-tabs {
|
||||
> .el-tabs__header {
|
||||
margin: 0;
|
||||
padding: 0 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.page-container :is(.panel-top h2, .panel-top h3, .storage-content-header h3, .storage-aside__head h2, .user-dept-aside__head h2).auto-title-tenant,
|
||||
.console-container .panel-top h2.auto-title-tenant {
|
||||
--panel-title-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M10 6h4'/%3E%3Cpath d='M10 10h4'/%3E%3Cpath d='M10 14h4'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user