// 客户管理函数库 import apis from "../apis_moudles/"; import req from "../request"; // get custom list const getCustomerList = function (data) { return req.post(apis.getCustomerList, data); }; // get custom detail const getCustomerDetail = function (data) { return req.post(apis.customerDetail, data); }; // add or update custom data const updateCustomData = function (data) { return req.post(apis.updateCustomList, data); }; // 创建新用户 const createNewCustomer = function (data) { return req.post(apis.createCustomer, data); }; // 删除客户 const deleteCustomer = function (data) { return req.post(apis.deleteCustom, data); }; // 获取用户理赔申请书 const createCustomerClaimPdf = function (data) { return req.post(apis.createClaimPdf, data, { responseType: "blob" }); }; // 获取跳转eccsurl getJumpEccsUrl const getJumpEccsUrl = function (data) { return req.post(apis.getJumpEccsUrl, data); }; export default { getCustomerList, getCustomerDetail, updateCustomData, createNewCustomer, deleteCustomer, createCustomerClaimPdf, getJumpEccsUrl };