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.
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface SupplierinvoiceRecordMainVO {
|
|
|
|
requestNumber: string
|
|
|
|
supplierCode: string
|
|
|
|
adjustAmount: number
|
|
|
|
outTransactionType: string
|
|
|
|
inTransactionType: string
|
|
|
|
executeTime: Date
|
|
|
|
activeDate: Date
|
|
|
|
requestTime: Date
|
|
|
|
dueTime: Date
|
|
|
|
departmentCode: string
|
|
|
|
interfaceType: string
|
|
|
|
number: string
|
|
|
|
businessType: string
|
|
|
|
remark: string
|
|
|
|
createTime: Date
|
|
|
|
creator: string
|
|
|
|
code: string
|
|
|
|
available: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询供应商发票记录主列表
|
|
|
|
export const getSupplierinvoiceRecordMainPage = async (params) => {
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/supplierinvoice-record-main/senior', data })
|
|
|
|
} else {
|
|
|
|
return await request.get({ url: `/wms/supplierinvoice-record-main/page`, params })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询供应商发票记录主详情
|
|
|
|
export const getSupplierinvoiceRecordMain = async (id: number) => {
|
|
|
|
return await request.get({ url: `/wms/supplierinvoice-record-main/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增供应商发票记录主
|
|
|
|
export const createSupplierinvoiceRecordMain = async (data: SupplierinvoiceRecordMainVO) => {
|
|
|
|
return await request.post({ url: `/wms/supplierinvoice-record-main/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改供应商发票记录主
|
|
|
|
export const updateSupplierinvoiceRecordMain = async (data: SupplierinvoiceRecordMainVO) => {
|
|
|
|
return await request.put({ url: `/wms/supplierinvoice-record-main/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除供应商发票记录主
|
|
|
|
export const deleteSupplierinvoiceRecordMain = async (id: number) => {
|
|
|
|
return await request.delete({ url: `/wms/supplierinvoice-record-main/delete?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出供应商发票记录主 Excel
|
|
|
|
export const exportSupplierinvoiceRecordMain = async (data) => {
|
|
|
|
return await request.downloadPost({ url: `/wms/supplierinvoice-record-main/export-excel`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => {
|
|
|
|
return request.download({ url: '/wms/supplierinvoice-record-main/get-import-template' })
|
|
|
|
}
|