You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.7 KiB

import request from '@/config/axios'
export interface PurchasePlanMainVO {
supplierCode: string
timeWindow: string
warehouseCode: string
dockCode: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
beginTime: Date
endTime: Date
status: string
updateTime: Date
updater: string
available: string
}
// 查询要货计划主列表
export const getPurchasePlanMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchase-plan-main/senior', data })
} else {
return await request.get({ url: `/wms/purchase-plan-main/page`, params })
}
}
// 查询要货计划主详情
export const getPurchasePlanMain = async (id: number) => {
return await request.get({ url: `/wms/purchase-plan-main/get?id=` + id })
}
// 新增要货计划主
export const createPurchasePlanMain = async (data: PurchasePlanMainVO) => {
return await request.post({ url: `/wms/purchase-plan-main/create`, data })
}
// 修改要货计划主
export const updatePurchasePlanMain = async (data: PurchasePlanMainVO) => {
return await request.put({ url: `/wms/purchase-plan-main/update`, data })
}
// 删除要货计划主
export const deletePurchasePlanMain = async (id: number) => {
return await request.delete({ url: `/wms/purchase-plan-main/delete?id=` + id })
}
// 导出要货计划主 Excel
export const exportPurchasePlanMain = async (params) => {
return await request.download({ url: `/wms/purchase-plan-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchase-plan-main/get-import-template' })
}