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.

41 lines
1.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. import { createAPI } from '@/utils/httpRequest.js'
  2. export const searchNpcIqc = (data) => createAPI(`/npcIqc/search`, 'post', data)
  3. // 查询物流记录
  4. export const searchLogistics = (data) => createAPI(`/srm/logistics/search`, 'post', data)
  5. // 查询PO清单
  6. export const getPoList = (data) => createAPI(`/srm/logistics/getPoList`, 'post', data)
  7. // 查询供应商下可选的PO订单(新增物流时挑选)
  8. export const getAvailablePoList = (data) => createAPI(`/srm/logistics/getAvailablePoList`, 'post', data)
  9. // 新增物流:将选中的PO订单绑定到指定物流单号(更新 c_flexid)
  10. export const updateLogisticsPo = (data) => createAPI(`/srm/logistics/updateLogisticsPo`, 'post', data)
  11. // 下载导入模板
  12. export const downloadTemplate = () => {
  13. return createAPI('/npcIqc/downloadTemplate', 'post', {}, { responseType: 'blob' })
  14. }
  15. // 预览上传数据
  16. export const previewUpload = (file) => {
  17. const formData = new FormData()
  18. formData.append('file', file)
  19. return createAPI('/npcIqc/previewUpload', 'post', formData, {
  20. headers: {
  21. 'Content-Type': 'multipart/form-data'
  22. }
  23. })
  24. }
  25. // 批量保存
  26. export const batchSave = (file) => {
  27. const formData = new FormData()
  28. formData.append('file', file)
  29. return createAPI('/npcIqc/batchSave', 'post', formData, {
  30. headers: {
  31. 'Content-Type': 'multipart/form-data'
  32. }
  33. })
  34. }