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.

73 lines
2.2 KiB

import request from '@/config/axios'
export interface PurchasereceiptRequestMainVO {
asnNumber: string
ppNumber: string
supplierCode: string
carrierCode: string
transferMode: string
fromWarehouseCode: string
toWarehouseCode: string
fromLocationTypes: string
toLocationTypes: string
fromAreaCodes: string
toAreaCodes: string
toDockCode: string
number: string
businessType: string
remark: string
createTime: Date
creator: string
requestTime: Date
dueTime: Date
departmentCode: string
updateTime: Date
updater: string
status: string
autoCommit: string
autoAgree: string
autoExecute: string
directCreateRecord: string
vehiclePlateNumber: string
}
// 查询采购收货申请主列表
export const getPurchasereceiptRequestMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/purchasereceipt-request-main/senior', data })
} else {
return await request.get({ url: `/wms/purchasereceipt-request-main/page`, params })
}
}
// 查询采购收货申请主详情
export const getPurchasereceiptRequestMain = async (id: number) => {
return await request.get({ url: `/wms/purchasereceipt-request-main/get?id=` + id })
}
// 新增采购收货申请主
export const createPurchasereceiptRequestMain = async (data: PurchasereceiptRequestMainVO) => {
return await request.post({ url: `/wms/purchasereceipt-request-main/create`, data })
}
// 修改采购收货申请主
export const updatePurchasereceiptRequestMain = async (data: PurchasereceiptRequestMainVO) => {
return await request.put({ url: `/wms/purchasereceipt-request-main/update`, data })
}
// 删除采购收货申请主
export const deletePurchasereceiptRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/purchasereceipt-request-main/delete?id=` + id })
}
// 导出采购收货申请主 Excel
export const exportPurchasereceiptRequestMain = async (params) => {
return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-request-main/get-import-template' })
}