Commit 66066c63 by zhangquan

车位联调

1 parent 75b8885f
import { http } from '@/main' import { http } from '@/main'
// http 对应的域名http://ismv.branch.glsx.com.cn const URL = '/rop-scrm-marketing/router'
const URL = '/rop-scrm-clue/router'
// 送修列表 // 车位列表
const getSendRepairListApi = params => { const getParkingSpaceListApi = params => {
params.method = 'clue.api.collision.info.listCollisionInfoByPage' params.method = 'marketing.api.charge.parkingSpace.page'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -14,8 +13,9 @@ const getSendRepairListApi = params => { ...@@ -14,8 +13,9 @@ const getSendRepairListApi = params => {
}) })
} }
const exportSendRepairListApi = params => { // 获取小区列表
params.method = 'clue.api.collision.info.exportCollisionInfo' const getMerchantListApi = params => {
params.method = 'marketing.api.charge.parkingSpace.getMerchantList'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -24,8 +24,8 @@ const exportSendRepairListApi = params => { ...@@ -24,8 +24,8 @@ const exportSendRepairListApi = params => {
}) })
} }
const setNoticeApi = params => { const exportParkingSpaceListApi = params => {
params.method = 'clue.api.collision.config.addOrUpdatePushConfig' params.method = 'marketing.api.charge.parkingSpace.page.export'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -34,8 +34,8 @@ const setNoticeApi = params => { ...@@ -34,8 +34,8 @@ const setNoticeApi = params => {
}) })
} }
const getNoticeDetailApi = params => { const addParkingSpaceApi = params => {
params.method = 'clue.api.collision.config.getDetail' params.method = 'marketing.api.charge.parkingSpace.create'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -44,8 +44,8 @@ const getNoticeDetailApi = params => { ...@@ -44,8 +44,8 @@ const getNoticeDetailApi = params => {
}) })
} }
const getCollisionDetailApi = params => { const getRadarListApi = params => {
params.method = 'clue.api.collision.info.getDetail' params.method = 'marketing.api.charge.radar.page'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -54,8 +54,8 @@ const getCollisionDetailApi = params => { ...@@ -54,8 +54,8 @@ const getCollisionDetailApi = params => {
}) })
} }
const setFollowInfoApi = params => { const delParkingSpaceApi = params => {
params.method = 'clue.api.collision.info.follow' params.method = 'marketing.api.charge.parkingSpace.delete'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -64,8 +64,8 @@ const setFollowInfoApi = params => { ...@@ -64,8 +64,8 @@ const setFollowInfoApi = params => {
}) })
} }
const getDeviceListApi = params => { const updateParkingSpaceApi = params => {
params.method = 'clue.api.collision.customer.device.list' params.method = 'marketing.api.charge.parkingSpace.update'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -74,8 +74,8 @@ const getDeviceListApi = params => { ...@@ -74,8 +74,8 @@ const getDeviceListApi = params => {
}) })
} }
const exportDeviceListApi = params => { const saveParkingSpacePicApi = params => {
params.method = 'clue.api.collision.customer.device.list.export' params.method = 'marketing.api.charge.parkingSpace.uploadImages'
return http({ return http({
url: URL, url: URL,
method: 'post', method: 'post',
...@@ -84,94 +84,13 @@ const exportDeviceListApi = params => { ...@@ -84,94 +84,13 @@ const exportDeviceListApi = params => {
}) })
} }
const importDeviceInfoApi = params => {
params.method = 'clue.api.collision.device.import'
return http({
url: URL,
method: 'post',
data: params,
sign: true
})
}
const editDeviceInfoApi = params => {
params.method = 'clue.api.collision.customer.device.edit'
return http({
url: URL,
method: 'post',
data: params,
sign: true
})
}
const getDeviceDetailApi = params => {
params.method = 'clue.api.collision.customer.device.detail'
return http({
url: URL,
method: 'post',
data: params,
sign: true
})
}
const uploadFileApi = params => {
params.method = `scrm.api.equity.service.claims.code.batchGenerateCodeByExcel`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const getCarBrandListApi = params => {
params.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
return http({
url: '/rop-scrm-carlife/router',
method: 'post',
data: params,
sign: true
})
}
const getVehicleSeriesListApi = params => {
params.method = 'scrm.api.carlife.common.getCarSeriesList'
return http({
url: '/rop-scrm-carlife/router',
method: 'post',
data: params,
sign: true
})
}
const getCarTypeListApi = params => {
params.method = 'scrm.api.carlife.common.getCarTypeList'
return http({
url: '/rop-scrm-carlife/router',
method: 'post',
data: params,
sign: true
})
}
export default { export default {
getSendRepairListApi, getParkingSpaceListApi,
exportSendRepairListApi, getMerchantListApi,
setNoticeApi, exportParkingSpaceListApi,
getNoticeDetailApi, addParkingSpaceApi,
getCollisionDetailApi, getRadarListApi,
setFollowInfoApi, delParkingSpaceApi,
getDeviceListApi, updateParkingSpaceApi,
exportDeviceListApi, saveParkingSpacePicApi
importDeviceInfoApi,
editDeviceInfoApi,
getDeviceDetailApi,
uploadFileApi,
getCarBrandListApi,
getVehicleSeriesListApi,
getCarTypeListApi
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!