videoShopTour.js 6.07 KB
import req from '@/api/httpVideoTour.js'

// videoShopTourReport 是视频巡店的接口
const videoShopTourReport = {
    //
    getDeviceList(params) {
        return req('GET', `/patrolDevice/list`, params)
    },
    addDevice(params,config) {
        return req('POST', `/patrolDevice`, params, config)
    },
    editDevice(params,config) {
        return req('PUT', `/patrolDevice/${params.id}`, params, config)
    },
    getPatrolDeviceChannelList(params) {
        return req('GET', `/patrolDeviceChannel/list`, params)
    },
    editPatrolDeviceChannel(params,config) {
        return req('PUT', `/patrolDeviceChannel/${params.id}`, params, config)
    },
    getLiveAddress(params,config) {
        return req('GET', `/patrolDeviceChannel/getLiveAddress/${params.id}`, params, config)
    },
    getLiveInfo(params,config){
      return req('GET', `/patrolDeviceChannel/getLiveInfo/${params.id}`, params, config)
    },
    getPatrolGateList(params,config) {
        return req('GET', `/patrolGate/list`, params, config)
    },
    addPatrolGate(params,config) {
        return req('POST', `/patrolGate`, params, config)
    },
    editPatrolGate(params,config) {
        return req('PUT', `/patrolGate/${params.id}`, params, config)
    },
    delPatrolGate(id) {
        return req('DELETE', `/patrolGate/${id}`)
    },
    // sop项目管理
    getPatrolSopProject(params,config) {
        return req('GET', `/patrolSopProject/list`, params, config)
    },
    addPatrolSopProject(params,config) {
        return req('POST', `/patrolSopProject`, params, config)
    },
    editPatrolSopProject(params,config) {
        return req('PUT', `/patrolSopProject/${params.id}`, params, config)
    },
    // sop类型管理
    getPatrolSopType(params,config) {
        return req('GET', `/patrolSopType/list`, params, config)
    },
    addPatrolSopType(params,config) {
        return req('POST', `/patrolSopType`, params, config)
    },
    editPatrolSopType(params,config) {
        return req('PUT', `/patrolSopType/${params.id}`, params, config)
    },
    // 关联sop树
    getPatrolSopTypeTree(params,config) {
        return req('GET', `/patrolSopType/tree`, params, config)
    },
    // 集团关联
    associatePatrolSopType(params,config) {
        return req('POST', `/patrolSopType/associate`, params, config)
    },
    // 获取监控点关联sop
    getPatrolGateSopProjectList(params,config) {
        return req('GET', `/patrolGateSopProject/list`, params, config)
    },
    // 监控点关联
    associatePatrolSopProject(params,config) {
        return req('POST', `/patrolGateSopProject/associate`, params, config)
    },
    //提交巡店记录
    confirmPatrolRecord(params,config) {
        return req('POST', `/patrolRecord`, params, config)
    },
    //巡店记录
    getPatrolRecordList(params,config) {
        return req('GET', `/patrolRecord/list`, params, config)
    },
    // 查看巡店详情
    getPatrolRecordDetail(params,config) {
        return req('GET', `/patrolRecord/${params.id}`)
    },
    // 删除巡店记录
    deletePatrolRecord(params,config) {
        return req('DELETE', `/patrolRecord/${params.id}`)
    },
    // 提交巡店操作记录
    confirmPatrolRecordHandle(params,config) {
        return req('POST', `/patrolRecord/handle`, params, config)
    },
    getUsers(params,config) {
        return req('GET', `/s-user/mall/${params.mallId}`)
    },
    // 预设点管理
    getPresetList(params, config){
      return req('GET', `/patrol/device/preset/list`, params, config)
    },
    addPreset(params,config) {
        return req('POST', `/patrol/device/preset`, params, config)
    },
    editPreset(params,config) {
        return req('PUT', `/patrol/device/preset/${params.id}`, params, config)
    },
    delPreset(params,config) {
        return req('DELETE', `/patrol/device/preset/${params.id}`, params, config)
    },
    // 云控制
    ptzStart(params,config) {
        return req('PUT', `/patrolDeviceChannel/ptzStart`, params, config)
    },
    ptzStop(params,config) {
        return req('PUT', `/patrolDeviceChannel/ptzStop`, params, config)
    },
    // 待点检任务
    getPatrolCaptureRecordList(params, config){
      return req('GET', `/patrolCaptureRecord/list`, params, config)
    },
    delPatrolCaptureRecord(params, config){
      return req('DELETE', `/patrolCaptureRecord/${params.id}`)
    },
    // 通过预设点调整位置
    getPresetMove(params, config){
      return req('PUT', `/patrolDevice/preset/move`, params, config)
    },
    // 定时抓怕配置
    getRuleList(params, config){
      return req('GET', `/b-patrol-rule/list`, params, config)
    },
    addRule(params,config) {
        return req('POST', `/b-patrol-rule`, params, config)
    },
    editRule(params,config) {
        return req('PUT', `/b-patrol-rule/${params.id}`, params, config)
    },
    delRule(params,config) {
        return req('DELETE', `/b-patrol-rule/${params.id}`, params, config)
    },
    // 截图
    getCapture(params,config) {
        return req('GET', `/patrolDeviceChannel/capture/${params.id}`, params, config)
    },
    getBase64(params,config){
      return req('GET', `/file`, params, config)
    },
    //获取监控点tree
    getGateGroup(params,config) {
        return req('GET', `/patrolGate/gateGroup`, params, config)
    },
    // 查询行业
    getIndustryList(params,config) {
        return req('GET', `/b-patrol-industry/list`, params, config)
    },
    // 查询门店树
    filterGateGroup(params,config) {
        return req('GET', `/patrolGate/gateGroup/filter`, params, config)
    },
    // 巡店报表
    // 集团
    accountReport(params,config){
      return req('GET', `/report-form/account`, params, config)
    },
    // 门店
    mallReport(params,config){
      return req('GET', `/report-form/mall`, params, config)
    },
    // 检查项
    checkItemReport(params,config){
      return req('GET', `/report-form/sop-project`, params, config)
    },
    // 有问题门店
    checkProblemItemReport(params,config){
      return req('GET', `/report-form/sop-project/mall`, params, config)
    },
}

export default videoShopTourReport;