parent
7ee3048269
commit
f79bcbfbb1
7 changed files with 346 additions and 172 deletions
@ -0,0 +1,15 @@ |
|||||||
|
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 |
||||||
|
}) |
||||||
|
} |
||||||
@ -0,0 +1,42 @@ |
|||||||
|
import request from '@/router/axios'; |
||||||
|
|
||||||
|
export const getList = (current, size, params) => { |
||||||
|
return request({ |
||||||
|
url: '/smartpark/material/list', |
||||||
|
method: 'get', |
||||||
|
params: { |
||||||
|
...params, |
||||||
|
pageSize: size, |
||||||
|
pageNum: current, |
||||||
|
}, |
||||||
|
cryptoToken: false, |
||||||
|
cryptoData: false |
||||||
|
}) |
||||||
|
} |
||||||
|
export const add = (row) => { |
||||||
|
return request({ |
||||||
|
url: '/smartpark/material/submit', |
||||||
|
method: 'post', |
||||||
|
data: row, |
||||||
|
cryptoToken: false, |
||||||
|
cryptoData: false |
||||||
|
}) |
||||||
|
} |
||||||
|
export const update = (row) => { |
||||||
|
return request({ |
||||||
|
url: '/smartpark/material/submit', |
||||||
|
method: 'post', |
||||||
|
data: row, |
||||||
|
cryptoToken: false, |
||||||
|
cryptoData: false |
||||||
|
}) |
||||||
|
} |
||||||
|
export const remove = (ids) => { |
||||||
|
return request({ |
||||||
|
url: '/smartpark/material/remove', |
||||||
|
method: 'post', |
||||||
|
params: { ids }, // 使用params而不是data,将参数放在URL查询参数中
|
||||||
|
cryptoToken: false, |
||||||
|
cryptoData: false |
||||||
|
}) |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
import request from '@/router/axios'; |
||||||
|
|
||||||
|
export const getList = (current, size, params) => { |
||||||
|
return request({ |
||||||
|
url: '/smartpark/purchaseEnd/list', |
||||||
|
method: 'get', |
||||||
|
params: { |
||||||
|
...params, |
||||||
|
pageSize: size, |
||||||
|
pageNum: current, |
||||||
|
}, |
||||||
|
cryptoToken: false, |
||||||
|
cryptoData: false |
||||||
|
}) |
||||||
|
} |
||||||
Loading…
Reference in new issue