import request from "@/utils/request"; // 凭证分页查询(current/size + 过滤条件) export function listVoucherPage(params) { return request({ url: "/financial/voucher/page", method: "get", params, }); } // 新增凭证 export function addVoucher(data) { return request({ url: "/financial/voucher/add", method: "post", data, }); } // 修改凭证(仅未过账) export function updateVoucher(data) { return request({ url: "/financial/voucher/update", method: "put", data, }); } // 过账 export function postVoucher(data) { return request({ url: "/financial/voucher/post", method: "post", data, }); } // 作废 export function cancelVoucher(data) { return request({ url: "/financial/voucher/cancel", method: "post", data, }); } // 详情 export function getVoucherDetail(id) { return request({ url: `/financial/voucher/detail/${id}`, method: "get", }); }