| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import request from '@/utils/request';
- /* 费用申请 */
- // 列表
- export async function invoiceApplyPageListAPI(data) {
- let par = new URLSearchParams(data);
- const res = await request.get(`/eom/fininvoiceapply/page?` + par, {});
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 新增
- export async function invoiceApplySaveAPI(data) {
- const res = await request.post(`/eom/fininvoiceapply/save`, data);
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 新版新增
- export async function invoiceApplyCreateAPI(data) {
- const res = await request.post(`/eom/fininvoiceapply/create`, data);
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 编辑
- export async function invoiceApplyUpdateAPI(data) {
- const res = await request.put(`/eom/fininvoiceapply/update`, data);
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 新版编辑
- export async function invoiceApplyUpdateV2API(data) {
- const res = await request.put(`/eom/fininvoiceapply/v2/update`, data);
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 信息
- export async function invoiceApplyInfoAPI(id) {
- const res = await request.get(`/eom/fininvoiceapply/getById/${id}`);
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 新版信息
- export async function invoiceApplyInfoV2API(id) {
- const res = await request.get(`/eom/fininvoiceapply/detail/${id}`);
- if (res.data.code == 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 删除
- export async function invoiceApplyRemoveAPI(data) {
- const res = await request.delete('/eom/fininvoiceapply/delete', {data});
- if (res.data.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
- // 提交-开启流程
- export async function invoiceApplySubmit(data) {
- const res = await request.post('/bpm/finInvoiceApply/submit', data);
- if (res.data.code == 0) {
- return res.data;
- }
- return Promise.reject(new Error(res.data.message));
- }
|