/* * @Author: Liuyi candymxq888@outlook.com * @Date: 2024-08-15 14:49:55 * @LastEditors: Liuyi candymxq888@outlook.com * @LastEditTime: 2024-08-20 14:42:14 * @FilePath: \water-qinghe-web\src\api\financial\invoice\index.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { publicRequest } from '@/utils/request' //应付管理 export default function payable() { return { //创建应付 create: (data) => { return publicRequest({ url: '/payment/create', method: 'post', data, }); }, //删除应付 remove: (id) => { return publicRequest({ url: `/payment/remove?id=${id}`, method: 'post', }); }, //编辑应付 modify: (data) => { return publicRequest({ url: '/payment/modify', method: 'post', data, }); }, //分页查询应付 search: (data) => { return publicRequest({ url: '/payment/search', method: 'post', data, }); }, //获取应付 get: (id) => { return publicRequest({ url: `/payment/get?id=${id}`, method: 'get', }); }, }; }