i更新
This commit is contained in:
@@ -373,6 +373,53 @@ export function getMsgAuditPermitUsers() {
|
||||
|
||||
// ========== 中医处方单 ==========
|
||||
|
||||
export interface PrescriptionEsignConfig {
|
||||
enabled: boolean
|
||||
environment: 'sandbox' | 'production'
|
||||
}
|
||||
|
||||
export interface PrescriptionEsignStatus extends PrescriptionEsignConfig {
|
||||
required: boolean
|
||||
status: 'pending' | 'authenticating' | 'signing' | 'signed' | 'failed' | 'uncertain' | 'voided' | 'legacy'
|
||||
status_label: string
|
||||
can_sign: boolean
|
||||
can_download: boolean
|
||||
message: string
|
||||
auth_url?: string
|
||||
}
|
||||
|
||||
export interface PrescriptionEsignFile {
|
||||
filename: string
|
||||
content_base64: string
|
||||
sha256: string
|
||||
}
|
||||
|
||||
export function prescriptionEsignConfig(): Promise<PrescriptionEsignConfig> {
|
||||
return request.get({ url: '/tcm.prescription/esignConfig' })
|
||||
}
|
||||
|
||||
export function prescriptionEsignStatus(params: { id: number }): Promise<PrescriptionEsignStatus> {
|
||||
return request.get({ url: '/tcm.prescription/esignStatus', params })
|
||||
}
|
||||
|
||||
export function prescriptionEsignStart(params: { id: number }): Promise<PrescriptionEsignStatus> {
|
||||
return request.post(
|
||||
{ url: '/tcm.prescription/esignStart', params, timeout: 180000 },
|
||||
{ isOpenRetry: false, retryCount: 0, ignoreCancelToken: true }
|
||||
)
|
||||
}
|
||||
|
||||
export function prescriptionEsignComplete(params: { id: number }): Promise<PrescriptionEsignStatus> {
|
||||
return request.post(
|
||||
{ url: '/tcm.prescription/esignComplete', params, timeout: 180000 },
|
||||
{ isOpenRetry: false, retryCount: 0, ignoreCancelToken: true }
|
||||
)
|
||||
}
|
||||
|
||||
export function prescriptionEsignDownload(params: { id: number }): Promise<PrescriptionEsignFile> {
|
||||
return request.get({ url: '/tcm.prescription/esignDownload', params, timeout: 60000 })
|
||||
}
|
||||
|
||||
// 处方列表
|
||||
export function prescriptionLists(params: any) {
|
||||
return request.get({ url: '/tcm.prescription/lists', params })
|
||||
|
||||
Reference in New Issue
Block a user