heli-mes/mes-ui/mes-ui-admin-vue3/src/api/heli/orderyfdetail/index.ts

44 lines
1.3 KiB
TypeScript

import request from '@/config/axios'
export interface OrderYfDetailVO {
id: number
cgYishou: number
rem: string
paymentDate: localdate
cgId: number
}
// 查询应收明细分页
export const getOrderYfDetailPage = async (params) => {
return await request.get({ url: `/heli/order-yf-detail/page`, params })
}
// 查询应收明细详情
export const getOrderYfDetail = async (id: number) => {
return await request.get({ url: `/heli/order-yf-detail/get?id=` + id })
}
// 新增应收明细
export const createOrderYfDetail = async (data: OrderYfDetailVO) => {
return await request.post({ url: `/heli/order-yf-detail/create`, data })
}
// 修改应收明细
export const updateOrderYfDetail = async (data: OrderYfDetailVO) => {
return await request.put({ url: `/heli/order-yf-detail/update`, data })
}
// 删除应收明细
export const deleteOrderYfDetail = async (id: number) => {
return await request.delete({ url: `/heli/order-yf-detail/delete?id=` + id })
}
// 导出应收明细 Excel
export const exportOrderYfDetail = async (params) => {
return await request.download({ url: `/heli/order-yf-detail/export-excel`, params })
}
// 查询根据应付id查询应收记录表明细
export const getOrderYfDetails = async (id: number) => {
return await request.get({ url: `/heli/order-yf-detail/getOrderYfDetails?id=` + id })
}