feat: rename sample-info menu label and extend quick-register client API.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9c264d7942
commit
ad18204eb9
4 files changed
+41
-7
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
export type CustomerServiceDictType =
|
||||
| 'sms_send_status'
|
||||
| 'microbe_followup_status'
|
||||
| 'fullmoon_followup_status'
|
||||
| 'household_registered'
|
||||
|
||||
export function fetchCustomerServiceDict(dictType: CustomerServiceDictType | string) {
|
||||
return request.get<{ list: string[] }>({
|
||||
url: '/web/admin/customer-service-dict',
|
||||
params: { dictType }
|
||||
})
|
||||
}
|
||||
@@ -1,5 +1,14 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
export type QuickRegisterKind =
|
||||
| 'storage'
|
||||
| 'storage_cert'
|
||||
| 'insurance'
|
||||
| 'sms'
|
||||
| 'followup'
|
||||
| 'fulfillment'
|
||||
| 'all'
|
||||
|
||||
export function fetchUpdateStorageCertHandle(
|
||||
protocolId: string,
|
||||
data: {
|
||||
@@ -13,13 +22,24 @@ export function fetchUpdateStorageCertHandle(
|
||||
}
|
||||
|
||||
export function fetchSampleInfoQuickRegister(data: {
|
||||
kind: 'storage' | 'storage_cert' | 'insurance'
|
||||
kind: QuickRegisterKind
|
||||
receptionSource: 'cell_storage' | 'research_donation'
|
||||
items: Array<{ sampleCode: string; protocolId: string }>
|
||||
handleTime: string
|
||||
handlerUserId: string
|
||||
handleTime?: string
|
||||
handlerUserId?: string
|
||||
attachments?: string
|
||||
remark?: string
|
||||
mailCertTime?: string
|
||||
policySendTime?: string
|
||||
smsSendDate?: string
|
||||
smsSendStatus?: string
|
||||
microbeFollowupDate?: string
|
||||
microbeFollowupStatus?: string
|
||||
fullmoonFollowupDate?: string
|
||||
fullmoonFollowupStatus?: string
|
||||
householdRegistered?: string
|
||||
einvoiceSendTime?: string
|
||||
effectiveAddress?: string
|
||||
}) {
|
||||
return request.post({ url: '/web/admin/sample-info/quick-register', data })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user