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.
82 lines
1.8 KiB
82 lines
1.8 KiB
import request from '@/router/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/smartpark/onePutStorage/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
pageSize:size, |
|
pageNum:current, |
|
}, |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
export const getPutPurchaseList = (current, size, params) => { |
|
return request({ |
|
url: '/smartpark/onePutStorage/getPutPurchaseList', |
|
method: 'get', |
|
params: { |
|
...params, |
|
pageSize:size, |
|
pageNum:current, |
|
}, |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
//下拉采购单数据 |
|
export const getAllQuarter = () => { |
|
return request({ |
|
url: '/smartpark/purchaseEnd/getAllQuarter', |
|
method: 'get', |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
export const getPurchasesByIds = (ids) => { |
|
return request({ |
|
url: '/smartpark/purchaseEnd/getPurchasesByIds', |
|
method: 'get', |
|
params: { ids }, |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
export const getMaterialList = () => { |
|
return request({ |
|
url: '/smartpark/material/getMaterialList', |
|
method: 'get', |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
export const getDetailList = (id) => { |
|
return request({ |
|
url: '/smartpark/material/detail', |
|
method: 'get', |
|
params: id , |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
export const submitData = (sizeForm) => { |
|
console.log('api中的数据',sizeForm) |
|
return request({ |
|
url: '/smartpark/onePutStorage/submit', |
|
method: 'post', |
|
data: sizeForm , |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |
|
export const editList = (onePutStorageId) => { |
|
return request({ |
|
url: '/smartpark/onePutStorage/detail', |
|
method: 'get', |
|
params: { onePutStorageId } , |
|
cryptoToken: false, |
|
cryptoData: false |
|
}) |
|
} |