xxba.js 1.54 KB
/*
 * @Description: 信息备案
 * @Autor:
 * @LastEditTime: 2024-03-18 10:36:40
 */

import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))

/**
 * @description: 添加银行
 * @param {*} data
 * @author:
 */
export function addYh (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/sys/company/addYh',
    method: 'post',
    data
  })
}

/**
 * @description: 编辑银行
 * @param {*} data
 * @author:
 */
export function update (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/sys/company/update',
    method: 'post',
    data
  })
}
/**
 * @description: 添加企业
 * @param {*} data
 * @author:
 */
export function addQy (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/sys/company/addQy',
    method: 'post',
    data
  })
}

/**
 * @description: 查询企业列表
 * @author:
 * @param data
 */
export function queryQyByPage (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/sys/company/queryQyByPage',
    method: 'post',
    data
  })
}

/**
 * @description: 查询银行列表
 * @author:
 * @param data
 */
export function queryYhByPage (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/sys/company/queryYhByPage',
    method: 'post',
    data
  })
}

/**
 * @description: 删除列表
 * @param {*} companyBsm
 * @author: renchao
 */
export function remove (companyBsm) {
  return request({
    url: SERVER.SERVERAPI + '/rest/sys/company/remove',
    method: 'get',
    params: {
      companyBsm: companyBsm
    }
  })
}