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.
67 lines
2.1 KiB
67 lines
2.1 KiB
import request from '@/config/axios'
|
|
|
|
export interface CustomersettleRecordMainVO {
|
|
requestNumber: string
|
|
deliverRecordNumber: string
|
|
deliverPlanNumber: string
|
|
customerCode: string
|
|
outTransactionType: string
|
|
inTransactionYpe: string
|
|
executeTime: Date
|
|
activeDate: Date
|
|
requestTime: Date
|
|
dueTime: Date
|
|
departmentCode: string
|
|
interfaceType: string
|
|
code: string
|
|
number: string
|
|
businessType: string
|
|
createTime: Date
|
|
creator: string
|
|
remark: string
|
|
fromWarehouseCode: string
|
|
fromLocationTypes: string
|
|
fromAreaCodes: string
|
|
available: string
|
|
}
|
|
|
|
// 查询客户结算记录主列表
|
|
export const getCustomersettleRecordMainPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/customersettle-record-main/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/customersettle-record-main/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询客户结算记录主详情
|
|
export const getCustomersettleRecordMain = async (id: number) => {
|
|
return await request.get({ url: `/wms/customersettle-record-main/get?id=` + id })
|
|
}
|
|
|
|
// 新增客户结算记录主
|
|
export const createCustomersettleRecordMain = async (data: CustomersettleRecordMainVO) => {
|
|
return await request.post({ url: `/wms/customersettle-record-main/create`, data })
|
|
}
|
|
|
|
// 修改客户结算记录主
|
|
export const updateCustomersettleRecordMain = async (data: CustomersettleRecordMainVO) => {
|
|
return await request.put({ url: `/wms/customersettle-record-main/update`, data })
|
|
}
|
|
|
|
// 删除客户结算记录主
|
|
export const deleteCustomersettleRecordMain = async (id: number) => {
|
|
return await request.delete({ url: `/wms/customersettle-record-main/delete?id=` + id })
|
|
}
|
|
|
|
// 导出客户结算记录主 Excel
|
|
export const exportCustomersettleRecordMain = async (params) => {
|
|
return await request.download({ url: `/wms/customersettle-record-main/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/customersettle-record-main/get-import-template' })
|
|
}
|