import { errorCatcher, errorHandle, filter } from 'base-core-lib' import { appRx } from '../defalutConfig/indexRx' import { API_GET_CONTRACT_TENANT, API_POST_ADD_CONTRACT_TENANT, API_POST_MANNER_OF_PACKING_TENANT, API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, API_POST_CUSTOM_DOWN_ADD, API_POST_CUSTOM_DOWN_EDIT, API_POST_CUSTOM_DOWN_DELETE, API_POST_EXPORT, API_GET_BILL_OPERATE_HIS, API_POST_EDITSTATUS } from '@/api/V2/contract' // 列表 export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHandle, filter) // 添加 export const addList = appRx.post(API_POST_ADD_CONTRACT_TENANT, errorCatcher, errorHandle, filter) // 查看数据或包装方式 export const packList = appRx.get(API_POST_MANNER_OF_PACKING_TENANT, errorCatcher, errorHandle, filter) // 下拉 export const xiala = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter) export const addxiala = appRx.post(API_POST_CUSTOM_DOWN_ADD, errorCatcher, errorHandle, filter) export const editxiala = appRx.post(API_POST_CUSTOM_DOWN_EDIT, errorCatcher, errorHandle, filter) export const delxiala = appRx.post(API_POST_CUSTOM_DOWN_DELETE, errorCatcher, errorHandle, filter) // 导出 export const export1 = appRx.get(API_POST_EXPORT) // 操作历史 export const billoperatehis = appRx.get(API_GET_BILL_OPERATE_HIS, errorCatcher, errorHandle, filter) // 修改状态 export const editstatus = appRx.post(API_POST_EDITSTATUS, errorCatcher, errorHandle, filter)