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.
65 lines
1.8 KiB
65 lines
1.8 KiB
10 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface SupplierCycleVO {
|
||
|
id: number
|
||
|
supplierCode: string
|
||
|
monday: string
|
||
|
tuesday: string
|
||
|
wednesday: string
|
||
|
thursday: string
|
||
|
friday: string
|
||
|
saturday: string
|
||
|
sunday: string
|
||
|
version: string
|
||
|
remark: string
|
||
|
extraProperties: string
|
||
|
siteId: string
|
||
|
beginTime: Date
|
||
|
endTime: Date
|
||
|
available: string
|
||
|
status: string
|
||
|
concurrencyStamp: string
|
||
|
ruleUserId: number
|
||
|
departmentCode: string
|
||
|
}
|
||
|
|
||
|
// 查询要货预测周期列表
|
||
|
export const getSupplierCyclePage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/basic/supplier-cycle/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/basic/supplier-cycle/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询要货预测周期详情
|
||
|
export const getSupplierCycle = async (id: number) => {
|
||
|
return await request.get({ url: `/basic/supplier-cycle/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增要货预测周期
|
||
|
export const createSupplierCycle = async (data: SupplierCycleVO) => {
|
||
|
return await request.post({ url: `/basic/supplier-cycle/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改要货预测周期
|
||
|
export const updateSupplierCycle = async (data: SupplierCycleVO) => {
|
||
|
return await request.put({ url: `/basic/supplier-cycle/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除要货预测周期
|
||
|
export const deleteSupplierCycle = async (id: number) => {
|
||
|
return await request.delete({ url: `/basic/supplier-cycle/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出要货预测周期 Excel
|
||
|
export const exportSupplierCycle = async (params) => {
|
||
|
return await request.download({ url: `/basic/supplier-cycle/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/basic/supplier-cycle/get-import-template' })
|
||
|
}
|