提交
This commit is contained in:
1 parent
2e66e03792
commit
09afdb1d65
93 files changed
+22307
-15075
No files matched your search
@@ -0,0 +1,48 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
type PageList<T> = {
|
||||
list: T[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
totalPages: number
|
||||
}
|
||||
|
||||
/** 查询列表(联查 qc_work_order + sms_notification,每个样本一条) */
|
||||
export function fetchQcSmsList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
qcStatus?: string
|
||||
qcConclusion?: string
|
||||
smsNotified?: string
|
||||
qcCompleteTimeStart?: string
|
||||
qcCompleteTimeEnd?: string
|
||||
}) {
|
||||
return request.get<PageList<Record<string, unknown>>>({
|
||||
url: '/web/admin/qc-sms-notifications/list',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
/** 切换通知状态 */
|
||||
export function fetchToggleQcSmsNotified(
|
||||
id: string,
|
||||
data: { smsNotified: number; qcWorkOrderId?: string; protocolSampleId?: string }
|
||||
) {
|
||||
return request.put({
|
||||
url: `/web/admin/qc-sms-notifications/${id}/toggle-status`,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** 生成短信内容 */
|
||||
export function fetchGenerateQcSms(
|
||||
id: string,
|
||||
params?: { qcWorkOrderId?: string; protocolSampleId?: string }
|
||||
) {
|
||||
return request.post<{ smsContent: string }>({
|
||||
url: `/web/admin/qc-sms-notifications/${id}/generate-sms`,
|
||||
params: params || undefined
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user