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.9 KiB
65 lines
1.9 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface SupplierinvoiceInvoicedVO {
|
||
|
id: number
|
||
|
tax: number
|
||
|
projectCode: string
|
||
|
billType: string
|
||
|
recvBillNum: string
|
||
|
asnBillNum: string
|
||
|
supplierCode: string
|
||
|
poNumber: string
|
||
|
poLine: string
|
||
|
purchasePrice: number
|
||
|
invoicableQuantity: number
|
||
|
itemCode: string
|
||
|
uom: string
|
||
|
currency: string
|
||
|
remark: string
|
||
|
deletionTime: Date
|
||
|
deleterId: string
|
||
|
extraProperties: string
|
||
|
concurrencyStamp: number
|
||
|
siteId: string
|
||
|
}
|
||
|
|
||
|
// 查询待开票列表
|
||
|
export const getSupplierinvoiceInvoicedPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/supplierinvoice-invoiced/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/supplierinvoice-invoiced/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询待开票详情
|
||
|
export const getSupplierinvoiceInvoiced = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/supplierinvoice-invoiced/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增待开票
|
||
|
export const createSupplierinvoiceInvoiced = async (data: SupplierinvoiceInvoicedVO) => {
|
||
|
return await request.post({ url: `/wms/supplierinvoice-invoiced/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改待开票
|
||
|
export const updateSupplierinvoiceInvoiced = async (data: SupplierinvoiceInvoicedVO) => {
|
||
|
return await request.put({ url: `/wms/supplierinvoice-invoiced/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除待开票
|
||
|
export const deleteSupplierinvoiceInvoiced = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/supplierinvoice-invoiced/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出待开票 Excel
|
||
|
export const exportSupplierinvoiceInvoiced = async (params) => {
|
||
|
return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/supplierinvoice-invoiced/get-import-template' })
|
||
|
}
|