import { errorCatcher, errorHandle, filter } from 'base-core-lib' import { appRx } from '../defalutConfig/indexRx' import { API_GET_WAREHOUSE_BASEINFO, API_POST_ADD_WAREHOUSE_BASEINFO, API_GET_WAREHOUSE_LOOK, API_GET_WAREHOUSE_CUSTOMDROPDOWN, API_POST_WAREHOUSE_DELETE, API_GET_WAREHOUSE_DELETELIST, API_POST_WAREHOUSE_HIDE, API_POST_WAREHOUSE_EDIT, API_GET_WAREHOUSE_IOSS, API_GET_WAREHOUSE_NAME, API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, API_POST_STORAGE_PUT, API_GET_SELECT_INFO, API_GET_WAREHOUSE_INVENTORYCOUNT, API_POST_STORAGE_IOSS, API_GET_WAREHOUSE_COMPLETE, API_POST_WAREHOUSE_DEL_POSITION, API_POST_WAREHOUSE_DEL_INOUTINFO, API_POST_WAREHOUSE_ADD, API_POST_WAREHOUSE_CLEARANCEE, API_GET_WAREHOUSE_NO, API_GET_PRINT_INFO, API_GET_STAFF, API_GET_WAREHOUSE_RECORDSS, API_GET_GOODSNAME_XIALA, API_GET_WAREHOUSE_LIST, API_GET_WAREHOUSE_TASKLIST, API_GET_COSTMANAGEMENT, API_POST_EDITCOST, API_GET_INVENTORYCOSTINFO, API_POST_ADD_INVENTORYCOSTINFO, API_POST_EDIT_INVENTORYCOSTINFO, API_GET_WEIGHTEDDETAILS, API_GET_WAREHOUSE } from '@/api/V2/warehouse' // import { app } from 'electron' // 列表 export const getList = appRx.get(API_GET_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter) // 添加 export const addList = appRx.post(API_POST_ADD_WAREHOUSE_BASEINFO, errorCatcher, errorHandle, filter) //仓库查看 export const getLook = appRx.get(API_GET_WAREHOUSE_LOOK, errorCatcher, errorHandle, filter) //仓库下拉 export const xiala = appRx.get(API_GET_WAREHOUSE_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter) //删除 export const deletewarehouse = appRx.post(API_POST_WAREHOUSE_DELETE, errorCatcher, errorHandle, filter) //删除仓库列表 export const delectlist = appRx.get(API_GET_WAREHOUSE_DELETELIST, errorCatcher, errorHandle, filter) //隐藏 export const hide = appRx.post(API_POST_WAREHOUSE_HIDE, errorCatcher, errorHandle, filter) //仓库编辑 export const edit = appRx.post(API_POST_WAREHOUSE_EDIT, errorCatcher, errorHandle, filter) //盘损 export const ioss = appRx.get(API_GET_WAREHOUSE_IOSS, errorCatcher, errorHandle, filter) //货名下拉 export const goodsname = appRx.get(API_GET_WAREHOUSE_NAME, errorCatcher, errorHandle, filter) // 货名等下拉 export const pullDown = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter) // 入库添加 export const addstorageputList = appRx.post(API_POST_STORAGE_PUT, errorCatcher, errorHandle, filter) // 流转记录 export const addselectinfoList = appRx.get(API_GET_SELECT_INFO, errorCatcher, errorHandle, filter) // 盘损记录 export const adjustmentrecordList = appRx.get(API_GET_WAREHOUSE_INVENTORYCOUNT, errorCatcher, errorHandle, filter) //盘损提交 export const submitioss = appRx.post(API_POST_STORAGE_IOSS, errorCatcher, errorHandle, filter) //待完善记录 export const complete = appRx.get(API_GET_WAREHOUSE_COMPLETE, errorCatcher, errorHandle, filter) // 编辑删除仓位 export const delPosition = appRx.post(API_POST_WAREHOUSE_DEL_POSITION, errorCatcher, errorHandle, filter) //删除待完善记录 export const delInOut = appRx.post(API_POST_WAREHOUSE_DEL_INOUTINFO, errorCatcher, errorHandle, filter) //临时仓库增加add export const increase = appRx.post(API_POST_WAREHOUSE_ADD, errorCatcher, errorHandle, filter) //临时仓库清仓 export const clearancee = appRx.post(API_POST_WAREHOUSE_CLEARANCEE, errorCatcher, errorHandle, filter) //获取负责人 export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter) //临时仓库记录 export const recordss = appRx.get(API_GET_WAREHOUSE_RECORDSS, errorCatcher, errorHandle, filter) //临时出库货名下拉 export const goodsnameXiala = appRx.get(API_GET_GOODSNAME_XIALA, errorCatcher, errorHandle, filter) //临时仓库待完成 export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, errorHandle, filter) //临时出入库合同编号下拉 export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter) //获取检斤打印数据 export const getPrintInfo = appRx.get(API_GET_PRINT_INFO, errorCatcher, errorHandle, filter) //任务列表 export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter) // 成本管理 export const getcost = appRx.get(API_GET_COSTMANAGEMENT,errorCatcher, errorHandle, filter) // 修改成本 export const editcost = appRx.post(API_POST_EDITCOST,errorCatcher, errorHandle, filter) // 库点费用列表 export const getinventory = appRx.get(API_GET_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter) // 添加库点费用 export const addinventory = appRx.post(API_POST_ADD_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter) // 编辑库点费用 export const editinventory = appRx.post(API_POST_EDIT_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter) // 编辑库点费用 export const weighteddetails = appRx.get(API_GET_WEIGHTEDDETAILS,errorCatcher, errorHandle, filter) // 编辑库点费用 export const getwarehousebase = appRx.get(API_GET_WAREHOUSE,errorCatcher, errorHandle, filter)