dataReport.js 2.34 KB
/*
 * @Description: 数据上报模块api文件
 * @Autor: renchao
 * @LastEditTime: 2023-03-21 16:21:31
 */
/* 引入axios请求文件 */
import request from '@/utils/request'
/* 引入配置 */
let SERVER = JSON.parse(localStorage.getItem('ApiUrl'))
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/'

/**
 * @description: 区县上报根据业务id获取xml
 * @param {*} bizMsgid
 * @author: renchao
 */
export function getXml (bizMsgid) {
  return request({
    url: urlHeader + 'getXml',
    method: 'get',
    params: {
      businessId: bizMsgid
    }
  })
}

/**
 * @description: 区县上报分页
 * @param {*} data
 * @author: renchao
 */
export function getAreaReportPage (data) {
  return request({
    url: urlHeader + 'getAreaReportPage',
    method: 'post',
    data
  })
}

/**
 * @description: 接入数据上报分页
 * @author: renchao
 */
export function getReceiveDataReportPage (data) {
  return request({
    url: urlHeader + 'getReceiveDataReportPage',
    method: 'post',
    data
  })
}

/**
 * @description: 数据上报分页
 * @author: renchao
 */
export function getDataReportPage (data) {
  return request({
    url: urlHeader + 'getDataReportPage',
    method: 'post',
    data
  })
}
/**
 * @description: 查询数据上报详情tabs选项卡
 * @author: renchao
 */
export function getTabsDetail (params) {
  return request({
    url: urlHeader + 'getTabsDetail',
    method: 'get',
    params
  })
}
/**
 * @description: 查询数据上报详情
 * @author: renchao
 */
export function getReportDetail (params) {
  return request({
    url: urlHeader + 'getReportDetail',
    method: 'get',
    params
  })
}

/**
 * @description: 获取数据上报结果
 * @param {*} bsmReport
 * @author: renchao
 */
export function getReceiveDataReportResult (bsmReport) {
  return request({
    url: urlHeader + 'getReceiveDataReportResult',
    method: 'get',
    params: {
      bsmReport: bsmReport
    }
  })
}

/**
 * @description: 重新上报
 * @param {*} bsmReport
 * @author: renchao
 */

export function restartGenerateXml (bsmReport) {
  return request({
    url: urlHeader + 'restartGenerateXml?bsmReport=' + bsmReport,
    method: 'post'
  })
}

/**
 * @description: 编辑报文头
 * @param {*} data
 * @author: renchao
 */
export function edit (data) {
  return request({
    url: urlHeader + 'edit',
    method: 'post',
    data
  })
}