diff --git a/Utils/Api.js b/Utils/Api.js index d39de96..beb3010 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -79,17 +79,18 @@ export const configStore = params => { return POST('POST', `${base}/store/configStore`, params).then(res => res.data); } //门店添加设备 -export const configStoreDevice = params => { - return POST('POST', `${base}/storeDevice/configStoreDevice`, params).then(res => res.data); +export const bindStoreDevice = params => { + return POST('POST', `${base}/device/bindStoreDevice`, params).then(res => res.data); } -//门店删除设备 -export const delStoreDevice = params => { - return POST('POST', `${base}/storeDevice/delStoreDevice`, params).then(res => res.data); +//业务员查询设备列表 +export const getSalesmanDeviceList = params => { + return POST('GET', `${base}/device/getSalesmanDeviceList`, params).then(res => res.data); } -//门店查看设备列表 +//门店查询设备列表 export const getStoreDeviceList = params => { - return POST('GET', `${base}/storeDevice/getStoreDeviceList`, params).then(res => res.data); + return POST('GET', `${base}/device/getStoreDeviceList`, params).then(res => res.data); } + //业务员查询统计 export const moveHomeCount = params => { return POST('POST', `${base}/salesman/moveHomeCount`, params).then(res => res.data); @@ -105,4 +106,4 @@ export const storemoveHomeCount = params => { // 查询交易订单列表 export const getTradeOrderList = params => { return POST('GET', `${base}/tradeOrder/getTradeOrderList`, params).then(res => res.data); -} \ No newline at end of file +} diff --git a/pages/index/addStore/addStore.vue b/pages/index/addStore/addStore.vue index bf8e9ad..e07beb8 100644 --- a/pages/index/addStore/addStore.vue +++ b/pages/index/addStore/addStore.vue @@ -1,7 +1,7 @@