for.js 1.07 KB
Newer Older
吴卿华's avatar
吴卿华 committed
1 2 3 4 5 6 7 8 9 10 11
import request from '@/utils/request'

// 查询借支申请列表
export function listFor(query) {
  return request({
    url: '/system/for/list',
    method: 'get',
    params: query
  })
}

吴卿华's avatar
吴卿华 committed
12 13 14 15 16 17 18 19 20
//查询部门余额是否足够
export function getDepartmentBalance(data) {
  return request({
    url: '/system/for/departmentBalance',
    method: 'get',
    data: data
  })
}

吴卿华's avatar
吴卿华 committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
// 查询借支申请详细
export function getFor(borrowing) {
  return request({
    url: '/system/for/' + borrowing,
    method: 'get'
  })
}

// 新增借支申请
export function addFor(data) {
  return request({
    url: '/system/for',
    method: 'post',
    data: data
  })
}

// 修改借支申请
export function updateFor(data) {
  return request({
    url: '/system/for',
    method: 'put',
    data: data
  })
}

// 删除借支申请
export function delFor(borrowing) {
  return request({
    url: '/system/for/' + borrowing,
    method: 'delete'
  })
}

// 导出借支申请
export function exportFor(query) {
  return request({
    url: '/system/for/export',
    method: 'get',
    params: query
  })
吴卿华's avatar
吴卿华 committed
62
}