| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import request from '/@/utils/micro_request.js'
- const basePath = import.meta.env.VITE_SCI
- // 经费报销
- export function useRebateApi() {
- return {
- // 列表
- getList(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'WXGetList', query)
- },
- // 更新
- update(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'UpdateById', query)
- },
- // 创建
- create(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'Create', query)
- },
- // 详情
- getDetails(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'GetEntityById', query)
- },
- // 根据报销提醒id获取报销详情
- getExpenseByNoticeId(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'GetExpenseByNoticeId', query)
- },
- // 删除
- del(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'DeleteByIds', query)
- },
- // 审批
- approval(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'Approve', query)
- },
- // 获取横向支出列表
- getHorizontalExpenseList(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'GetHorizontalExpenseList', query)
- },
- // 删除
- export(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'Export', query)
- },
- // 审批
- import(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'Import', query)
- },
- // 撤回
- withdraw(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'QuashApprove', query)
- },
- // 批量打印
- getPDFPrintData(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'GetPDFPrintData', query)
- },
- // 模板打印
- getPrintDataById(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'GetPrintDataById', query)
- },
- // 模板打印
- exportPrintDataPDF(query?: object) {
- return request.postRequest(basePath, 'SciFundExpense', 'ExportPrintDataPDF', query)
- }
- }
- }
|