|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface SupplierDeliMainVO {
|
|
|
|
id: number
|
|
|
|
supplierCode: string
|
|
|
|
supplierAddress: string
|
|
|
|
model: string
|
|
|
|
yearAndMonth: string
|
|
|
|
remark: string
|
|
|
|
available: string
|
|
|
|
siteId: string
|
|
|
|
concurrencyStamp: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询供应商便次配置主列表
|
|
|
|
export const getSupplierDeliMainPage = async (params) => {
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/supplier-deli-main/senior', data })
|
|
|
|
} else {
|
|
|
|
return await request.get({ url: `/wms/supplier-deli-main/page`, params })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询供应商便次配置主详情
|
|
|
|
export const getSupplierDeliMain = async (id: number) => {
|
|
|
|
return await request.get({ url: `/wms/supplier-deli-main/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增供应商便次配置主
|
|
|
|
export const createSupplierDeliMain = async (data: SupplierDeliMainVO) => {
|
|
|
|
return await request.post({ url: `/wms/supplier-deli-main/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改供应商便次配置主
|
|
|
|
export const updateSupplierDeliMain = async (data: SupplierDeliMainVO) => {
|
|
|
|
return await request.put({ url: `/wms/supplier-deli-main/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除供应商便次配置主
|
|
|
|
export const deleteSupplierDeliMain = async (id: number) => {
|
|
|
|
return await request.delete({ url: `/wms/supplier-deli-main/delete?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出供应商便次配置主 Excel
|
|
|
|
export const exportSupplierDeliMain = async (params) => {
|
|
|
|
return await request.download({ url: `/wms/supplier-deli-main/export-excel`, params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => {
|
|
|
|
return request.download({ url: '/wms/supplier-deli-main/get-import-template' })
|
|
|
|
}
|
|
|
|
|
|
|
|
const getPageParams = (params)=>{
|
|
|
|
}
|
|
|
|
// 查询供应商便次配置列表
|
|
|
|
export const getPageTableHead = async (params) => {
|
|
|
|
return await request.get({ url: `/wms/supplier-deli-main/queryPageTableHead`, params })
|
|
|
|
}
|