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.
50 lines
1.6 KiB
50 lines
1.6 KiB
import request from '@/config/axios'
|
|
|
|
export interface SupplierShiftDeliVO {
|
|
id: number
|
|
supplierCode: string
|
|
shiftDeliDate: Date
|
|
shift: string
|
|
deli: number
|
|
}
|
|
|
|
// 查询供应商班次便次列表
|
|
export const getSupplierShiftDeliPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/basic/supplier-shift-deli/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/basic/supplier-shift-deli/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询供应商班次便次详情
|
|
export const getSupplierShiftDeli = async (id: number) => {
|
|
return await request.get({ url: `/basic/supplier-shift-deli/get?id=` + id })
|
|
}
|
|
|
|
// 新增供应商班次便次
|
|
export const createSupplierShiftDeli = async (data: SupplierShiftDeliVO) => {
|
|
return await request.post({ url: `/basic/supplier-shift-deli/create`, data })
|
|
}
|
|
|
|
// 修改供应商班次便次
|
|
export const updateSupplierShiftDeli = async (data: SupplierShiftDeliVO) => {
|
|
return await request.put({ url: `/basic/supplier-shift-deli/update`, data })
|
|
}
|
|
|
|
// 删除供应商班次便次
|
|
export const deleteSupplierShiftDeli = async (id: number) => {
|
|
return await request.delete({ url: `/basic/supplier-shift-deli/delete?id=` + id })
|
|
}
|
|
|
|
// 导出供应商班次便次 Excel
|
|
export const exportSupplierShiftDeli = async (params) => {
|
|
return await request.download({ url: `/basic/supplier-shift-deli/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/basic/supplier-shift-deli/get-import-template' })
|
|
}
|