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.
|
|
|
|
import request from '@/router/axios';
|
|
|
|
|
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/durableForm/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
pageSize: size,
|
|
|
|
|
pageNum: current,
|
|
|
|
|
},
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//归还和报废
|
|
|
|
|
export const returnMaterial = (LdDurableFormDto) => {
|
|
|
|
|
console.log(LdDurableFormDto,'api传的參')
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/durableForm/restoreAndScrap ',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: LdDurableFormDto,
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|