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.
42 lines
1.3 KiB
42 lines
1.3 KiB
import { createAPI } from '@/utils/httpRequest.js'
|
|
|
|
export const searchNpcIqc = (data) => createAPI(`/npcIqc/search`, 'post', data)
|
|
|
|
// 查询物流记录
|
|
export const searchLogistics = (data) => createAPI(`/srm/logistics/search`, 'post', data)
|
|
|
|
// 查询PO清单
|
|
export const getPoList = (data) => createAPI(`/srm/logistics/getPoList`, 'post', data)
|
|
|
|
// 查询供应商下可选的PO订单(新增物流时挑选)
|
|
export const getAvailablePoList = (data) => createAPI(`/srm/logistics/getAvailablePoList`, 'post', data)
|
|
|
|
// 新增物流:将选中的PO订单绑定到指定物流单号(更新 c_flexid)
|
|
export const updateLogisticsPo = (data) => createAPI(`/srm/logistics/updateLogisticsPo`, 'post', data)
|
|
|
|
// 下载导入模板
|
|
export const downloadTemplate = () => {
|
|
return createAPI('/npcIqc/downloadTemplate', 'post', {}, { responseType: 'blob' })
|
|
}
|
|
|
|
// 预览上传数据
|
|
export const previewUpload = (file) => {
|
|
const formData = new FormData()
|
|
formData.append('file', file)
|
|
return createAPI('/npcIqc/previewUpload', 'post', formData, {
|
|
headers: {
|
|
'Content-Type': 'multipart/form-data'
|
|
}
|
|
})
|
|
}
|
|
|
|
// 批量保存
|
|
export const batchSave = (file) => {
|
|
const formData = new FormData()
|
|
formData.append('file', file)
|
|
return createAPI('/npcIqc/batchSave', 'post', formData, {
|
|
headers: {
|
|
'Content-Type': 'multipart/form-data'
|
|
}
|
|
})
|
|
}
|