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.
155 lines
5.0 KiB
155 lines
5.0 KiB
import request from '@/config/axios'
|
|
|
|
export interface PurchasereceiptRecordDetailVO {
|
|
fromPackingNumber: string
|
|
toPackingNumber: string
|
|
fromContainerNumber: string
|
|
toContainerNumber: string
|
|
fromBatch: string
|
|
altBatch: string
|
|
arriveDate: Date
|
|
produceDate: Date
|
|
expireDate: Date
|
|
inventoryStatus: string
|
|
fromLocationCode: string
|
|
toLocationCode: string
|
|
fromLocationGroupCode: string
|
|
toLocationGroupCode: string
|
|
fromAreaCodes: string
|
|
toAreaCodes: string
|
|
poNumber: string
|
|
poLine: string
|
|
packQty: number
|
|
packUnit: string
|
|
qty: number
|
|
uom: string
|
|
supplierQty: number
|
|
supplierUom: string
|
|
convertRate: number
|
|
visualInspectResult: string
|
|
visualInspectPhotos: string
|
|
failedReason: string
|
|
singlePrice: number
|
|
amount: number
|
|
jobDetailId: string
|
|
itemCode: string
|
|
itemName: string
|
|
itemDesc1: string
|
|
itemDesc2: string
|
|
number: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: string
|
|
projectCode: string
|
|
code: string
|
|
interfaceType: string
|
|
fromOwnerCode: string
|
|
toOwnerCode: string
|
|
toBatch: string,
|
|
parentPackingNumber:string
|
|
packingNumber:string
|
|
}
|
|
|
|
// 查询采购收货记录子列表
|
|
export const getPurchasereceiptRecordDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/purchasereceipt-record-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询备件收货记录子列表
|
|
export const getPurchasereceiptRecordDetailPageSpare = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSpare', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSpare`, params })
|
|
}
|
|
}
|
|
|
|
|
|
export const getPurchasereceiptRecordDetailPageSCP = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorSCP', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageSCP`, params })
|
|
}
|
|
}
|
|
|
|
// 查询采购收货记录子列表
|
|
export const getPurchasereceiptRecordDetailPageBySupplierCode = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/purchasereceipt-record-detail/seniorBySupplierCode', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageBySupplierCode`, params })
|
|
}
|
|
}
|
|
|
|
// 查询采购收货记录子列表
|
|
export const getPurchasereceiptRecordDetailList = async (params) => {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/list`, params })
|
|
}
|
|
|
|
// 查询采购收货记录子列表
|
|
export const getPurchasereceiptRecordDetailListToRepeat = async (params) => {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/listToRepeat`, params })
|
|
}
|
|
|
|
// 查询采购收货记录子详情
|
|
export const getPurchasereceiptRecordDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增采购收货记录子
|
|
export const createPurchasereceiptRecordDetail = async (data: PurchasereceiptRecordDetailVO) => {
|
|
return await request.post({ url: `/wms/purchasereceipt-record-detail/create`, data })
|
|
}
|
|
|
|
// 修改采购收货记录子
|
|
export const updatePurchasereceiptRecordDetail = async (data: PurchasereceiptRecordDetailVO) => {
|
|
return await request.put({ url: `/wms/purchasereceipt-record-detail/update`, data })
|
|
}
|
|
|
|
// 删除采购收货记录子
|
|
export const deletePurchasereceiptRecordDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/purchasereceipt-record-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出采购收货记录子 Excel
|
|
export const exportPurchasereceiptRecordDetail = async (params) => {
|
|
return await request.download({ url: `/wms/purchasereceipt-record-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/purchasereceipt-record-detail/get-import-template' })
|
|
}
|
|
// 缺货明细
|
|
export const getScarceGoodsDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/purchaseshortage-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/purchaseshortage-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询采购收货记录子包装数据
|
|
export const queryPurchaseceiptChildPackingNumber = async (params) => {
|
|
return await request.get({ url: `/wms/purchasereceipt-record-detail/pageChildPackingNumber`, params })
|
|
}
|
|
|
|
// 查询采购收货缺货记录子包装数据
|
|
export const queryPurchaseshortageChildPackingNumber = async (params) => {
|
|
return await request.get({ url: `/wms/purchaseshortage-detail/pageChildPackingNumber`, params })
|
|
}
|