api.ts
588 Bytes
import { http } from '@/typing/http';
import request from '@/utils/request';
import { PMS_HOST } from '@/utils/host';
/**
* 确认参数
*/
export interface SaveParams {
shippingNo?: string; // 发运单号
valid?: boolean; // 是否有效(默认有效)
}
/**
* 保存
*/
export function saveApi(params?: SaveParams): http.PromiseResp<void> {
return request.post(`${PMS_HOST}/erp/plan/pool/save/plan`, params);
}
/**
* 草稿
*/
export function draftApi(params?: SaveParams): http.PromiseResp<void> {
return request.post(`${PMS_HOST}/erp/plan/pool/save/draft`, params);
}