|
|
|
|
import request from '@/router/axios';
|
|
|
|
|
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/oneOutStorage/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
pageSize: size,
|
|
|
|
|
pageNum: current,
|
|
|
|
|
},
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const getQuarterList = () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/demandEnd/getAllQuarter',
|
|
|
|
|
method: 'get',
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const getDepartmentList = (params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/demandEnd/getDepartment',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params,
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const getDetailedList = (params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/demandEnd/getDemandEndData',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: params,
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const getDetailedItems = () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/department/getOnePutDepartment',
|
|
|
|
|
method: 'get',
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const submitData = (sizeForm) => {
|
|
|
|
|
console.log('api中的数据', sizeForm)
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/oneOutStorage/submit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: sizeForm,
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const getMaterialList = (optionType) => {
|
|
|
|
|
console.log('api中的数据', optionType)
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/oneForm/getPutOneFormList',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: optionType,
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const editList = (oneOutStorageId) => {
|
|
|
|
|
console.log('api中的数据', oneOutStorageId)
|
|
|
|
|
return request({
|
|
|
|
|
url: '/smartpark/oneOutStorage/detail',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: { oneOutStorageId },
|
|
|
|
|
cryptoToken: false,
|
|
|
|
|
cryptoData: false
|
|
|
|
|
})
|
|
|
|
|
}
|