import request from '@/config/axios' export interface CustomerDeliveryForecastVO { schdSite: string schdOrder: string schdLine: string schdCust: string schdShipto: string schdDock: string schdPart: string schdNetReq: string schdDate: Date schdTime: Date schdReference: string schdOrdMult: string schdCustpart: string schdPkgCode: string schdModelyr: string schdCustref: string schdPcrQty: string available: string } // 查询客户发货预测列表 export const getCustomerDeliveryForecastPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/customer-delivery-forecast/senior', data }) } else { return await request.get({ url: `/wms/customer-delivery-forecast/page`, params }) } } // 查询客户发货预测详情 export const getCustomerDeliveryForecast = async (id: number) => { return await request.get({ url: `/wms/customer-delivery-forecast/get?id=` + id }) } // 新增客户发货预测 export const createCustomerDeliveryForecast = async (data: CustomerDeliveryForecastVO) => { return await request.post({ url: `/wms/customer-delivery-forecast/create`, data }) } // 修改客户发货预测 export const updateCustomerDeliveryForecast = async (data: CustomerDeliveryForecastVO) => { return await request.put({ url: `/wms/customer-delivery-forecast/update`, data }) } // 删除客户发货预测 export const deleteCustomerDeliveryForecast = async (id: number) => { return await request.delete({ url: `/wms/customer-delivery-forecast/delete?id=` + id }) } // 导出客户发货预测 Excel export const exportCustomerDeliveryForecast = async (params) => { return await request.download({ url: `/wms/customer-delivery-forecast/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/customer-delivery-forecast/get-import-template' }) }