This commit is contained in:
zlwu committed 2026-05-20 20:41:47 +08:00
1 parent c6c3a37fa7
commit e6b4b9a8d7
28 files changed
+5812 -4687

No files matched your search

+28 -2
View File
@@ -996,6 +996,7 @@ export function fetchCollectionProtocolNoList(params?: {
page?: number
pageSize?: number
keyword?: string
issuedUserId?: string
}) {
return request.get<PageResult<Api.BizCollectionProtocolNo.ProtocolNoItem>>({
url: '/web/admin/collection-protocol-nos',
@@ -1007,12 +1008,23 @@ export function fetchCreateCollectionProtocolNo(data: {
issued?: number
orderNum?: number
remark?: string
issuedUserId?: string | null
issuedUserName?: string | null
issuedTime?: string | null
}) {
return request.post({ url: '/web/admin/collection-protocol-nos', params: data })
}
export function fetchUpdateCollectionProtocolNo(
id: string,
data: Partial<{ protocolNo: string; issued: number; orderNum: number; remark: string }>
data: Partial<{
protocolNo: string
issued: number
orderNum: number
remark: string
issuedUserId: string | null
issuedUserName: string | null
issuedTime: string | null
}>
) {
return request.put({ url: `/web/admin/collection-protocol-nos/${id}`, params: data })
}
@@ -1061,6 +1073,8 @@ export function fetchSampleCodeList(params?: {
page?: number
pageSize?: number
keyword?: string
sampleCodeType?: string
issuedUserId?: string
}) {
return request.get<PageResult<Api.BizSampleCode.SampleCodeItem>>({
url: '/web/admin/sample-codes',
@@ -1069,7 +1083,11 @@ export function fetchSampleCodeList(params?: {
}
export function fetchCreateSampleCode(data: {
sampleCode: string
sampleCodeType?: string
issued?: number
issuedUserId?: string | null
issuedUserName?: string | null
issuedTime?: string
orderNum?: number
remark?: string
}) {
@@ -1077,7 +1095,15 @@ export function fetchCreateSampleCode(data: {
}
export function fetchUpdateSampleCode(
id: string,
data: Partial<{ sampleCode: string; issued: number; orderNum: number; remark: string }>
data: Partial<{
sampleCode: string
issued: number
issuedUserId: string | null
issuedUserName: string | null
issuedTime: string
orderNum: number
remark: string
}>
) {
return request.put({ url: `/web/admin/sample-codes/${id}`, params: data })
}