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.
79 lines
2.3 KiB
79 lines
2.3 KiB
import request from '@/config/axios'
|
|
|
|
export interface SupplierApbalanceMainVO {
|
|
id: number
|
|
ttCompany: string
|
|
ttSupplier: string
|
|
ttGltype: string
|
|
ttCustorsupp: string
|
|
ttSupplierType: string
|
|
ttName1: string
|
|
ttName2: string
|
|
ttName3: string
|
|
ttSupplierName: string
|
|
ttGenerateTime: Date
|
|
ttAccountAp: number
|
|
ttAccountOthap: number
|
|
ttAccountPrepay: number
|
|
ttCreditTerm: string
|
|
departmentCode: string
|
|
remark: string
|
|
siteId: string
|
|
available: string
|
|
deletionTime: Date
|
|
deleterId: byte[]
|
|
concurrencyStamp: number
|
|
}
|
|
|
|
// 查询供应商余额明细主列表
|
|
export const getSupplierApbalanceMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/supplier-apbalance-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/supplier-apbalance-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询供应商余额明细主详情
|
|
export const getSupplierApbalanceMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/supplier-apbalance-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增供应商余额明细主
|
|
export const createSupplierApbalanceMain = async (data: SupplierApbalanceMainVO) => {
|
|
return await request.post({ url: `/wms/supplier-apbalance-main/create`, data })
|
|
}
|
|
|
|
// 修改供应商余额明细主
|
|
export const updateSupplierApbalanceMain = async (data: any) => {
|
|
return await request.put({ url: `/wms/supplier-apbalance-main/update`, data })
|
|
}
|
|
|
|
// 删除供应商余额明细主
|
|
export const deleteSupplierApbalanceMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/supplier-apbalance-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出供应商余额明细主 Excel
|
|
export const exportSupplierApbalanceMain = async (params) => {
|
|
if (params.isSearch) {
|
|
const data = {...params}
|
|
return await request.downloadPost({ url: `/wms/supplier-apbalance-main/export-excel-senior`, data })
|
|
} else {
|
|
return await request.download({ url: `/wms/supplier-apbalance-main/export-excel`, params })
|
|
}
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/supplier-apbalance-main/get-import-template' })
|
|
}
|
|
|
|
|
|
// 查询年月日
|
|
export const getMonthDay = async () => {
|
|
return await request.get({ url: `/wms/supplier-apbalance-calendar/getMonthDay`})
|
|
}
|
|
|
|
|