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 SaleShipmentDetailVO {
|
||
|
id: number
|
||
|
soNumber: string
|
||
|
soLine: string
|
||
|
fromOwnerCode: string
|
||
|
packingNumber: string
|
||
|
batch: string
|
||
|
inventoryStatus: string
|
||
|
fromLocationCode: string
|
||
|
masterId: number
|
||
|
number: string
|
||
|
itemCode: string
|
||
|
itemName: string
|
||
|
itemDesc1: string
|
||
|
itemDesc2: string
|
||
|
projectCode: string
|
||
|
qty: number
|
||
|
uom: string
|
||
|
remark: string
|
||
|
concurrencyStamp: string
|
||
|
siteId: number
|
||
|
}
|
||
|
|
||
|
// 查询销售发运申请子列表
|
||
|
export const getSaleShipmentDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/sale-shipment-detail/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/sale-shipment-detail/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询销售发运申请子详情
|
||
|
export const getSaleShipmentDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/sale-shipment-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增销售发运申请子
|
||
|
export const createSaleShipmentDetail = async (data: SaleShipmentDetailVO) => {
|
||
|
return await request.post({ url: `/wms/sale-shipment-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改销售发运申请子
|
||
|
export const updateSaleShipmentDetail = async (data: SaleShipmentDetailVO) => {
|
||
|
return await request.put({ url: `/wms/sale-shipment-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除销售发运申请子
|
||
|
export const deleteSaleShipmentDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/sale-shipment-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出销售发运申请子 Excel
|
||
|
export const exportSaleShipmentDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/sale-shipment-detail/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/sale-shipment-detail/get-import-template' })
|
||
|
}
|