123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- import request from '@/utils/request'
- // 设备列表
- export function mercHomeList(data) {
- return request({
- url: '/merc/mini/device/mercHomeList',
- method: 'post',
- data:data
- })
- }
- // 商户设备首页统计
- export function mercHomeStatistical(data) {
- return request({
- url: '/device/merc-mini/device/mercHomeStatistical',
- method: 'post',
- data:data
- })
- }
- // 增加商品到设备
- export function bindDevice(data) {
- return request({
- url: '/goods/merc-mini/goodsDevice/bindDevice',
- method: 'post',
- data:data
- })
- }
- // 设备商品列表
- export function goodsList(data) {
- return request({
- url: '/goods/merc-mini/goodsDevice/page',
- method: 'post',
- data:data
- })
- }
- // 商户设备列表
- export function searchPage(data) {
- return request({
- url: '/device/merc-mini/device/searchPage',
- method: 'post',
- data:data
- })
- }
- // 商户设备详情
- export function detail(data) {
- return request({
- url: '/device/merc-mini/device/detail',
- method: 'post',
- data:data
- })
- }
- // 数据统计
- export function dataCount(data) {
- return request({
- url: '/device/merc-mini/device/dataCount',
- method: 'post',
- data:data
- })
- }
- // 设备操作记录
- export function indexDeviceRecords(data) {
- return request({
- url: '/device/merc-mini/deviceRecords/indexDeviceRecords',
- method: 'post',
- data:data
- })
- }
- // 设备联网记录
- export function indexDeviceNetRecords(data) {
- return request({
- url: '/device/merc-mini/deviceRecords/indexDeviceNetRecords',
- method: 'post',
- data:data
- })
- }
- // 设备故障情况
- export function indexDeviceError(data) {
- return request({
- url: '/device/merc-mini/deviceRecords/indexDeviceError',
- method: 'post',
- data:data
- })
- }
- // 设备温度记录
- export function indexDeviceTempRecords(data) {
- return request({
- url: '/device/merc-mini/deviceRecords/indexDeviceTempRecords ',
- method: 'post',
- data:data
- })
- }
- // 设备激活
- export function deviceActive(data) {
- return request({
- url: '/device/merc-mini/device/active',
- method: 'post',
- data:data
- })
- }
- // 设备详情
- export function deviceDetail(data) {
- return request({
- url: '/device/device-info/obj',
- method: 'post',
- data:data
- })
- }
- // 运营状态修改
- export function modifyBusyStage(data) {
- return request({
- url: '/device/merc-mini/device/modifyBusyStage',
- method: 'post',
- data:data
- })
- }
- // 首页统计数据
- export function allCount(data) {
- return request({
- url: '/order/order-merc-sales-count-more/count',
- method: 'post',
- data:data
- })
- }
- // 设备商品分类
- export function categoryList(data) {
- return request({
- url: '/goods/merc-mini/goodsDevice/categoryList',
- method: 'post',
- data:data
- })
- }
- // 修改设备信息
- export function updateInfo(data) {
- return request({
- url: '/device/merc-mini/device/updateInfo',
- method: 'post',
- data:data
- })
- }
- export function sendCommand(data) {
- return request({
- url: '/device/mqtt/senCommand',
- method: 'post',
- data:data
- })
- }
- //查询指令操作结果
- export function queryCommandResult(data) {
- return request({
- url: '/device/mqtt/snByCmdAndResult',
- method: 'post',
- data:data
- })
- }
- //销售统计汇总
- export function sumCount(data) {
- return request({
- url: '/device/merc-mini/deviceData/sumCount',
- method: 'post',
- data:data
- })
- }
- //销售统计列表
- export function sumPage(data) {
- return request({
- url: '/device/merc-mini/deviceData/sumPage',
- method: 'post',
- data:data
- })
- }
- //设备激活情况
- export function getActiveInfo(data) {
- return request({
- url: '/device/merc-mini/device/getActiveInfo',
- method: 'post',
- data:data
- })
- }
- //设备是否属于商户
- export function isMerc(data) {
- return request({
- url: '/device/merc-mini/device/isMerc',
- method: 'post',
- data:data
- })
- }
- //设备二维码
- export function getQrCode(data) {
- return request({
- url: '/device/device-quality/getQrCode',
- method: 'post',
- data:data
- })
- }
- //导出设备二维码
- export function exportQrCode(data) {
- return request({
- url: '/device/device-create-ids/exportQrCode',
- method: 'post',
- data:data
- })
- }
- //清除故障
- export function abort(data) {
- return request({
- url: '/order/activity-info/abort',
- method: 'post',
- data:data
- })
- }
- //统计数据图表
- export function salesData(data) {
- return request({
- url: '/merc/mini/data/salesData',
- method: 'post',
- data:data
- })
- }
- //支付宝设备激活分页
- export function aliDeviceActivePage(data) {
- return request({
- url: '/merc/mini/device/aliDeviceActivePage',
- method: 'post',
- data:data
- })
- }
- //获取商家信息
- export function userInfoBySelf(data) {
- return request({
- url: '/merc/mini/mercUser/userInfoBySelf',
- method: 'post',
- data:data
- })
- }
- //绑定支付宝
- export function updateByAli(data) {
- return request({
- url: '/merc/mini/mercUser/updateByAli',
- method: 'post',
- data:data
- })
- }
- //支付宝设备详情查询
- export function aliDeviceObj(data) {
- return request({
- url: '/merc//mini/device/aliDeviceObj',
- method: 'post',
- data:data
- })
- }
- //商品销售统计汇总
- export function goodSumCount(data) {
- return request({
- url: '/goods/goodsDeviceData/sumCount',
- method: 'post',
- data:data
- })
- }
- //商品销售统计列表
- export function goodSumPage(data) {
- return request({
- url: '/goods/goodsDeviceData/sumPage',
- method: 'post',
- data:data
- })
- }
- export function mercDeviceList(data) {
- return request({
- url: '/merc/mini/mercUserDevice/mercDeviceList',
- method: 'post',
- data:data
- })
- }
- export function addDevice(data) {
- return request({
- url: '/merc/mini/mercUserDevice/add',
- method: 'post',
- data:data
- })
- }
- export function userDeviceList(data) {
- return request({
- url: '/merc/mini/mercUserDevice/userDeviceList',
- method: 'post',
- data:data
- })
- }
- export function delDevice(data) {
- return request({
- url: '/merc/mini/mercUserDevice/del',
- method: 'post',
- data:data
- })
- }
- export function listOfIdName(data) {
- return request({
- url: '/device/merc-mini/device/listOfIdName',
- method: 'post',
- data:data
- })
- }
|