更新
This commit is contained in:
@@ -313,6 +313,7 @@ export interface WecomPromotionBatchUpdatePoolResult {
|
||||
success: boolean
|
||||
sync_error?: string
|
||||
sync_queued?: boolean
|
||||
sync_status?: WecomPromotionMemberSyncStatus
|
||||
member_matched?: number
|
||||
member_updated?: number
|
||||
error?: string
|
||||
@@ -357,9 +358,28 @@ export function wecomPromotionCheckApiPermission() {
|
||||
return request.post({ url: '/firstvisit.wecomPromotion/checkApiPermission' })
|
||||
}
|
||||
|
||||
export function wecomPromotionSyncRemoteLinks(params: { pool_id: number }) {
|
||||
return request.post({ url: '/firstvisit.wecomPromotion/syncRemoteLinks', params, timeout: 120000 })
|
||||
}
|
||||
export function wecomPromotionSyncRemoteLinks(params: { pool_id: number }) {
|
||||
return request.post({ url: '/firstvisit.wecomPromotion/syncRemoteLinks', params, timeout: 120000 })
|
||||
}
|
||||
|
||||
export type WecomPromotionMemberSyncStatus = 'synced' | 'pending' | 'failed' | 'blocked'
|
||||
|
||||
export interface WecomPromotionMemberSyncResult {
|
||||
pool_id: number
|
||||
sync_status: WecomPromotionMemberSyncStatus
|
||||
sync_error: string
|
||||
sync_queued: boolean
|
||||
range_userids: string[]
|
||||
range_department_ids: string[]
|
||||
}
|
||||
|
||||
export function wecomPromotionSyncMemberRange(params: { pool_id: number }) {
|
||||
return request.post<WecomPromotionMemberSyncResult>({
|
||||
url: '/firstvisit.wecomPromotion/syncMemberRange',
|
||||
params,
|
||||
timeout: 120000
|
||||
}, { ignoreCancelToken: true, isOpenRetry: false })
|
||||
}
|
||||
|
||||
export function wecomPromotionRemoteLinkDetail(params: { id: number }) {
|
||||
return request.get({ url: '/firstvisit.wecomPromotion/remoteLinkDetail', params })
|
||||
|
||||
@@ -424,6 +424,11 @@ export function prescriptionOrderEdit(params: Record<string, unknown>) {
|
||||
return request.post({ url: '/tcm.prescriptionOrder/edit', params })
|
||||
}
|
||||
|
||||
/** 仅修改处方业务订单创建时间,需独立的 editTime 权限 */
|
||||
export function prescriptionOrderEditTime(params: { id: number; create_time: string }) {
|
||||
return request.post({ url: '/tcm.prescriptionOrder/editTime', params })
|
||||
}
|
||||
|
||||
/** 仅修改业务订单的承运商与快递单号;所有履约状态均可使用 */
|
||||
export function prescriptionOrderDdcode(params: {
|
||||
id: number
|
||||
|
||||
Reference in New Issue
Block a user