forked from BaoKaiWms/202501-Wms-Kate-Wuxi
203 lines
4.4 KiB
JavaScript
203 lines
4.4 KiB
JavaScript
import request from "@/http/request";
|
|
|
|
export const uploadExcelStock = (data) => {
|
|
return request({
|
|
url: '/excel/uploadStocks',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const uploadExcelBaseGoods = (data) => {
|
|
return request({
|
|
url: '/excel/importBaseGoods',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const uploadExcelKanban = (data) => {
|
|
return request({
|
|
url: '/excel/importKanban',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const uploadExcelDbs = (data) => {
|
|
return request({
|
|
url: '/excel/importDbs',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const uploadExcelProduct = (data) => {
|
|
return request({
|
|
url: '/excel/importProduct',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const uploadExcelSingleProduct = (data) => {
|
|
return request({
|
|
url: '/excel/importServiceProduct',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const uploadExcelProductExtend = (data) => {
|
|
return request({
|
|
url: '/excel/importProductExtend',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const exportDbsWithExcel = (data) => {
|
|
return request({
|
|
url: '/excel/exportDbsWithExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const exportKittingBomWithExcel = (data) => {
|
|
return request({
|
|
url: '/excel/exportKittingBomWithExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const exportKittingBomRelationWithExcel = (data) => {
|
|
return request({
|
|
url: '/excel/exportKittingBomRelationWithExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const exportStockExcel = (data) => {
|
|
return request({
|
|
url: '/excel/exportStockExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const exportWorkSummaryExcel = (data) => {
|
|
return request({
|
|
url: '/excel/exportWorkSummaryExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadInRecordExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadInRecordExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadOutRecordExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadOutRecordExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadInventoryRecordExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadInventoryRecordExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadGoodsExcel = (data) => {
|
|
return request({
|
|
url: '/excel/exportBaseGoods',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadVehicleExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadVehicleExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadLocationsExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadLocationsExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const queryUploadRecord = (data) => {
|
|
return request({
|
|
url: '/excel/queryUploadRecord',
|
|
method: 'post',
|
|
data: data,
|
|
timeout: 100000
|
|
})
|
|
}
|
|
|
|
export const downloadClcKanbanRequirementExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadClcKanbanRequirementExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
}
|
|
|
|
export const downloadWorkSummaryExcel = (data) => {
|
|
return request({
|
|
url: '/excel/downloadWorkSummaryExcel',
|
|
method: 'post',
|
|
responseType: 'blob',
|
|
data: data,
|
|
timeout: 600000
|
|
})
|
|
} |