business.js 4.38 KB
import request from '@/utils/request'
import SERVER from './config'

class business {
  // 宗海空间属性
  async getZhK105ById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/ZhK105/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //用海状况
  async getKtfZhYhzkById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  // 宗海空间属性-修改
  async updateZhK105 (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/ZhK105/edit',
      method: 'post',
      data
    })
  }
  //修改用海状况
  async updateKtfZhYhzk (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/edit',
      method: 'post',
      data
    })
  }
  // 非结构化文档
  async getFjF100ById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/FjF100/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //宗地变化情况
  async getKtfZdbhqkById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //非结构化文档-修改
  async updateFjF100 (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/FjF100/edit',
      method: 'post',
      data
    })
  }
  //修改宗地变化情况
  async updateKtfZdbhqk (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/edit',
      method: 'post',
      data
    })
  }
  //宗海基本信息
  async getKttZhjbxxById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //修改宗海基本信息
  async updateKttZhjbxx (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/edit',
      method: 'post',
      data
    })
  }
  //宗地空间属性
  async getZdK103ById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/ZdK103/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //修改宗地空间属性
  async updateZdK103 (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/ZdK103/edit',
      method: 'post',
      data
    })
  }
  // 自然幢信息
  async getKttFwZrzById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //构筑物
  async getKttGzwById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttGzw/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  // 自然幢信息-修改
  async updateKttFwZrz (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/edit',
      method: 'post',
      data
    })
  }
  //修改构筑物
  async updateKttGzw (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttGzw/edit',
      method: 'post',
      data
    })
  }
  //界址点
  async getKttGyJzdById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //修改界址点
  async updateKttGyJzd (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/edit',
      method: 'post',
      data
    })
  }
  //界址线信息
  async getKttGyJzxById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  //修改界址线信息
  async updateKttGyJzx (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/edit',
      method: 'post',
      data
    })
  }

  // 更正登记信息
  async getQlfQlGzdjById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
  // 更正登记信息-修改
  async updateQlfQlGzdj (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit',
      method: 'post',
      data
    })
  }
}
export default new business()