cmmodityLibrary.js
728 Bytes
import { http } from '@/main'
const defaultPath = 'scrm.api.live.'
const getWarehousListApi = params => {
params.method = `${defaultPath}goods.list`
return http({
url: 'rop-scrm-live/router',
method: 'GET',
data: params,
sign: true
})
}
const getGoodInfoApi = params => {
params.method = `${defaultPath}get.good.by.id`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true
})
}
const insertGoodApi = params => {
params.method = `${defaultPath}insert.good`
return http({
url: 'rop-scrm-live/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export { getWarehousListApi, getGoodInfoApi, insertGoodApi }