This commit is contained in:
van
2026-04-09 12:52:32 +08:00
parent ffe48e0417
commit 416a7d77f5
4 changed files with 771 additions and 2 deletions

76
src/api/jarvis/goofish.js Normal file
View File

@@ -0,0 +1,76 @@
import request from '@/utils/request'
/* ---------- 闲管家应用配置 ---------- */
export function listErpOpenConfig(query) {
return request({ url: '/jarvis/erpOpenConfig/list', method: 'get', params: query })
}
export function getErpOpenConfig(id) {
return request({ url: '/jarvis/erpOpenConfig/' + id, method: 'get' })
}
export function addErpOpenConfig(data) {
return request({ url: '/jarvis/erpOpenConfig', method: 'post', data })
}
export function updateErpOpenConfig(data) {
return request({ url: '/jarvis/erpOpenConfig', method: 'put', data })
}
export function delErpOpenConfig(ids) {
return request({ url: '/jarvis/erpOpenConfig/' + ids, method: 'delete' })
}
/** 闲管家「查询快递公司」(与 Apifox 一致:服务端 POST {} + 签名) */
export function listGoofishExpressCompanies(appKey) {
return request({
url: '/jarvis/erpOpenConfig/expressCompanies',
method: 'get',
params: appKey ? { appKey } : {}
})
}
/* ---------- 闲管家订单 ---------- */
export function listGoofishOrder(query) {
return request({ url: '/jarvis/erpGoofishOrder/list', method: 'get', params: query })
}
export function getGoofishOrder(id) {
return request({ url: '/jarvis/erpGoofishOrder/' + id, method: 'get' })
}
export function pullGoofishOrders(appKey, hours) {
return request({
url: '/jarvis/erpGoofishOrder/pull/' + encodeURIComponent(appKey),
method: 'post',
params: hours != null ? { hours } : {}
})
}
export function pullAllGoofishOrders(hours) {
return request({
url: '/jarvis/erpGoofishOrder/pullAll',
method: 'post',
params: hours != null ? { hours } : {}
})
}
/** 历史全量:按服务端 pull-full-history-days + 时间分段拉 update_time */
export function pullGoofishOrdersFull(appKey) {
return request({
url: '/jarvis/erpGoofishOrder/pull/' + encodeURIComponent(appKey) + '/full',
method: 'post'
})
}
export function pullAllGoofishOrdersFull() {
return request({ url: '/jarvis/erpGoofishOrder/pullAll/full', method: 'post' })
}
export function refreshGoofishDetail(id) {
return request({ url: '/jarvis/erpGoofishOrder/refreshDetail/' + id, method: 'post' })
}
export function retryGoofishShip(id) {
return request({ url: '/jarvis/erpGoofishOrder/retryShip/' + id, method: 'post' })
}