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.
99 lines
1.7 KiB
99 lines
1.7 KiB
import request from '@/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataFreight/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getDetail = (id) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataFreight/detail', |
|
method: 'get', |
|
params: { |
|
id |
|
} |
|
}) |
|
} |
|
|
|
export const remove = (ids) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataFreight/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
} |
|
}) |
|
} |
|
|
|
export const add = (row) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataFreight/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const update = (row) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataFreight/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
|
|
// 查看用户名称 |
|
export const $_QueryUserName = (params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataClient/detail', |
|
method: 'get', |
|
params |
|
}) |
|
} |
|
|
|
// 查询品牌 |
|
export const $_brand = (params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataStoreBrand/detail', |
|
method: 'get', |
|
params |
|
}) |
|
} |
|
|
|
// 查询品类 |
|
|
|
|
|
|
|
export const $_category = (params) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataCategory/detail', |
|
method: 'get', |
|
params |
|
}) |
|
} |
|
|
|
export const $_getDeptLazyTree = params => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataCategory/lazy-tree', |
|
method: 'get', |
|
params |
|
}); |
|
}; |
|
|
|
|
|
|
|
|
|
export const $_basicdataFreight = (row) => { |
|
return request({ |
|
url: '/api/logpm-basicdata/basicdataFreight/import', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |