|
|
|
import request from '@/axios';
|
|
|
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getListCode = (params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/getFinallyClientCode',
|
|
|
|
method: 'get',
|
|
|
|
params
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const $_getListlistName = (params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/listName',
|
|
|
|
method: 'get',
|
|
|
|
params
|
|
|
|
})
|
|
|
|
}
|
|
|
|
export const getListClient = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/list',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getDetail = (id) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/detail',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const remove = (ids) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/remove',
|
|
|
|
method: 'post',
|
|
|
|
params: {
|
|
|
|
ids,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const add = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/submit',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const update = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/submit',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const updateCargoControl = (row) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/update',
|
|
|
|
method: 'post',
|
|
|
|
data: row
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const selectName = (current, size, params) => {
|
|
|
|
return request({
|
|
|
|
url: '/api/logpm-basicdata/basicdataClient/page',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...params,
|
|
|
|
current,
|
|
|
|
size,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|