Commit 852ad049 by wuqian

完善pod-cn

parent da364b1e
......@@ -7,8 +7,9 @@ import {
LogListData,
WarehouseListData,
LogisticsData,
ExportParams
ExportParams,
} from '@/types/api/podCnOrder'
import { InterceptStateGroupData } from '@/types/api/podUsOrder'
import axios from './axios'
import { PodMakeOrderData } from '@/types/api/podMakeOrder'
export function exportPodCnInfo(data: ExportParams) {
......@@ -17,6 +18,13 @@ export function exportPodCnInfo(data: ExportParams) {
data,
)
}
// 拦截状态数量
export function getgetInterceptStateGroupList() {
return axios.get<never, BaseRespData<InterceptStateGroupData>>(
'factory/podJomallOrderCn/findInterceptStateGroupList',
)
}
// 同步收货地址
export function syncReceiverAddress(data: number[]) {
return axios.post<never, BaseRespData<never>>(
......@@ -278,7 +286,54 @@ export function refreshMaterialApi(data: {
data,
)
}
// 拦截状态改变
export function interceptUpdateApi(params: {
orderIds: (string | number)[]
interceptStatus: number
}) {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderCn/updateInterceptStatus`,
params,
)
}
// 驳回
export function rejectToApi(params: {
orderStatus: string
productList: ProductList[]
reasonStr: string
}) {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderCn/rejectTo`,
params,
)
}
// 状态推送
export function statusPushApi(params: (string | number)[]) {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderCn/statusPush`,
params,
)
}
// 完成发货
export function completeDeliveryApi(params: {
orderIdList: (string | number)[]
}) {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderCn/completeDelivery`,
params,
)
}
export function refreshProductInformationApi(data: {
orderIds?: string
productIds?: string
}) {
return axios.post<never, BaseRespData<never>>(
'factory/podJomallOrderProductCn/refreshProductInfo',
data,
)
}
// 设计图排版
export function composingDesignImages(data: number[], type: string) {
return axios.post<never, BaseRespData<never>>(
......@@ -377,7 +432,7 @@ export function batchDownloadDownloadApi(params: { id: number; type: string }) {
}
// 批量下载 删除
export function batchDownloadDeleteApi(params: { id: number }) {
export function batchDownloadDeleteApi(params: { ids: string }) {
return axios.get<never, BaseRespData<never>>(
`factory/podBatchDownload/delete`,
{
......@@ -452,7 +507,7 @@ export function changeLogisticsApi(params: {
params,
)
}
// 修改自有物流信息
// 修改自有物流信息
export function updateSelfLogistics(params: {
trackingNumber: string
expressSheet: string
......@@ -473,4 +528,4 @@ export function uploadExpressSheet(params: {
'factory/podJomallOrderCn/uploadExpressSheet',
params,
)
}
\ No newline at end of file
}
......@@ -294,7 +294,7 @@ export function refreshMaterialApi(data: {
productIds?: string
}) {
return axios.post<never, BaseRespData<never>>(
'factory/podJomallOrderProductUs/refreshDesignImages ',
'factory/podJomallOrderProductUs/refreshDesignImages',
data,
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment