110 lines
2.6 KiB
JavaScript
110 lines
2.6 KiB
JavaScript
import request from '@/utils/request'
|
||
|
||
export function getLbPurchaseApplyList(params) {
|
||
return request({
|
||
url: '/lbPurchaseApply/list',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
export function addLbPurchaseApply(data) {
|
||
return request({
|
||
url: '/lbPurchaseApply/add',
|
||
method: 'post',
|
||
data
|
||
})
|
||
}
|
||
|
||
export function updateLbPurchaseApply(data) {
|
||
return request({
|
||
url: '/lbPurchaseApply/update',
|
||
method: 'put',
|
||
data
|
||
})
|
||
}
|
||
|
||
export function deleteLbPurchaseApply(id) {
|
||
return request({
|
||
url: `/lbPurchaseApply/delete/${id}`,
|
||
method: 'delete'
|
||
})
|
||
}
|
||
|
||
export function needPrivilegeRecommenders(params) {
|
||
return request({
|
||
url: '/lbPurchaseApply/needPrivilegeRecommenders',
|
||
method: 'get',
|
||
params
|
||
})
|
||
}
|
||
|
||
/** 大模型解析订货信息为进货申请(不落库),请求可能较慢 */
|
||
export function parseLbPurchaseApplyFromOrderInfo(data) {
|
||
return request({
|
||
url: '/lbPurchaseApply/parseFromOrderInfo',
|
||
method: 'post',
|
||
data,
|
||
timeout: 120000
|
||
})
|
||
}
|
||
|
||
/** 按申请日期区间与租户同步 hxrd 用户 VIP(可能较慢,依赖外部管理端) */
|
||
export function syncHxrAdminUserVip(params) {
|
||
return request({
|
||
url: '/lbPurchaseApply/syncHxrAdminUserVip',
|
||
method: 'get',
|
||
params: {
|
||
applyDateStart: params.applyDateStart,
|
||
applyDateEnd: params.applyDateEnd,
|
||
tenantId: params.tenantId,
|
||
max_order: params.maxOrder
|
||
},
|
||
timeout: 120000,
|
||
skipResponseNormalize: true
|
||
})
|
||
}
|
||
|
||
/** 按租户ID与申请日期范围导出进货申请 Excel */
|
||
export function exportLbPurchaseApply(params) {
|
||
return request({
|
||
url: '/lbPurchaseApply/export',
|
||
method: 'get',
|
||
params: {
|
||
applyDateStart: params.applyDateStart,
|
||
applyDateEnd: params.applyDateEnd,
|
||
tenantId: params.tenantId
|
||
},
|
||
responseType: 'blob'
|
||
})
|
||
}
|
||
|
||
/** 导出同事特权开通提醒 Excel */
|
||
export function exportColleagueVip(params) {
|
||
return request({
|
||
url: '/lbPurchaseApply/exportColleagueVip',
|
||
method: 'get',
|
||
params: {
|
||
applyDateStart: params.applyDateStart,
|
||
applyDateEnd: params.applyDateEnd,
|
||
tenantId: params.tenantId
|
||
},
|
||
responseType: 'blob'
|
||
})
|
||
}
|
||
|
||
/** 按申请日期区间与租户同步同事 hxrd 用户 VIP(可能较慢,依赖外部管理端) */
|
||
export function syncHxrAdminColleagueVip(params) {
|
||
return request({
|
||
url: '/lbPurchaseApply/syncHxrAdminColleagueVip',
|
||
method: 'get',
|
||
params: {
|
||
applyDateStart: params.applyDateStart,
|
||
applyDateEnd: params.applyDateEnd,
|
||
tenantId: params.tenantId
|
||
},
|
||
timeout: 120000,
|
||
skipResponseNormalize: true
|
||
})
|
||
}
|