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 }) }