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.

135 lines
4.7 KiB

import request from '@/config/axios'
export interface CustomerStatementDetailVO {
id: number
number: string
masterId: number
invoiceType: string
releaseNumber: string
ingress: string
ingress2: string
itemCode: string
articleNumber: string
articleName: string
backNumber: string
checkTime: Date
uom: string
qty: number
price: number
amount: number
allocationPrice: number
tftmQuantity: number
intexQuantity: number
quantityVariance: number
tftmPrice: number
intexPrice: number
priceVariance: number
tftmAmount: number
intexAmount: number
amountVariance: number
dischargingTime: Date
acceptCheckTime: Date
remark: string
available: string
siteId: string
concurrencyStamp: string
}
// 查询客户对账单子信息明细表(WMS)列表或者查询客户对账单对账差异列表 二者共用一个
export const getCustomerStatementDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/customer-statement-detail/senior', data })
} else {
return await request.get({ url: `/wms/customer-statement-detail/page`, params })
}
}
// 查询客户对账单子信息明细表(WMS)列表或者查询客户对账单对账差异列表 二者共用一个
export const getCustomerStatementReconciliationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/wms/customer-statement-detail/senior', data })
} else {
return await request.get({ url: `/wms/customer-statement-detail/page`, params })
}
}
// 查询模具分摊明细列表
export const getCustomerToolApportStatementPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/wms/customer-tool-apport-statement-detail/senior', data })
} else {
return await request.get({ url: `/wms/customer-tool-apport-statement-detail/page`, params })
}
}
// 查询客户对账单子信息表(WMS)详情
export const getCustomerStatementDetail = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-detail/get?id=` + id })
}
// 新增客户对账单子信息表(WMS)
export const createCustomerStatementDetail = async (data: CustomerStatementDetailVO) => {
return await request.post({ url: `/wms/customer-statement-detail/create`, data })
}
// 修改客户对账单子信息表(WMS)
export const updateCustomerStatementDetail = async (data: CustomerStatementDetailVO) => {
return await request.put({ url: `/wms/customer-statement-detail/update`, data })
}
// 删除客户对账单子信息表(WMS)
export const deleteCustomerStatementDetail = async (id: number) => {
return await request.delete({ url: `/wms/customer-statement-detail/delete?id=` + id })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/customer-statement-detail/get-import-template' })
}
//导出明细数据需要传masterId
export const exportCustomerStatementDetail = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customer-statement-detail/export-excel-senior`, data })
}else{
return await request.download({ url: `/wms/customer-statement-detail/export-excel`, params })
}
}
//导出详情对账差异列表数据 需要传masterId
export const exportCustomerStatementCompareDetail = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customer-statement-detail/export-excel-compare-senior`, data })
}else{
return await request.download({ url: `/wms/customer-statement-detail/export-excel-compare`, params })
}
}
//导出详情模具分摊对账单列表数据 需要传masterId
export const exportCustomerStatementShareReconciliatioDetail = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/customer-tool-apport-statement-detail/export-excel-senior`, data })
}else{
return await request.download({ url: `/wms/customer-tool-apport-statement-detail/export-excel`, params })
}
}
// 客户模具分摊对账单修改调整金额
export const updateAdjustmentAmount = async (id: number, masterId: number, amount: number) => {
return await request.get({ url: `wms/customer-tool-apport-statement-detail/updateAdjustmentAmount?id=` + id + '&masterId=' + masterId + '&amount=' + amount })
}
// 客户对账单直接创建开票申请查询子分页数据
5 months ago
export const pageInvoice = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-detail/pageInvoice?id=`+ id })
}