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, API_GET_WAREHOUSERESPONSIBLE, API_GET_WAREHOUSETASK, API_GET_CHECKORUPDATE, API_GET_RECEIPTTASKNO, API_POST_EXPORT, API_GET_PRINT, API_POST_EXPORTOUT, API_GET_WAREHOUSE_BINNUMBER, API_GET_WAREHOUSE_BASEINFO_RESERVES, API_GET_TURNAROUND_LIST, API_POST_TURNAROUND_ADD, API_GET_TURNAROUND_XIALA, API_get_goodsName_All, API_GET_WAREHOUSE_RESPONSIBLE, API_POST_WAREHOUSE_INWEIGHT, API_GET_WAREHOUSE_ALL, API_SEND_BACK, API_DELETE_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) //负责人 export const getsponsible = appRx.get(API_GET_WAREHOUSERESPONSIBLE,errorCatcher, errorHandle, filter) //出入库任务 export const getwarehousetask = appRx.get(API_GET_WAREHOUSETASK,errorCatcher, errorHandle, filter) //修改经办人 export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter) //获取出入库任务编号 export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter) //导出入库 export const postExport = appRx.post(API_POST_EXPORT) //导出出库 export const postExportOut = appRx.post(API_POST_EXPORTOUT) //打印增量 export const printAdd = appRx.get(API_GET_PRINT,errorCatcher, errorHandle, filter) //仓位号 export const getbinnumber = appRx.get(API_GET_WAREHOUSE_BINNUMBER,errorCatcher, errorHandle, filter) //添加折转 export const turnAroundAdd = appRx.post(API_POST_TURNAROUND_ADD,errorCatcher, errorHandle, filter) //折转列表 export const turnAroundList = appRx.get(API_GET_TURNAROUND_LIST,errorCatcher, errorHandle, filter) //添加折转信息下拉 export const turnAroundXiaLa = appRx.get(API_GET_TURNAROUND_XIALA,errorCatcher, errorHandle, filter) //折转后所有货名 export const turnAroundGoodsNameAll = appRx.get(API_get_goodsName_All,errorCatcher, errorHandle, filter) //储量明细 export const getreserves = appRx.get(API_GET_WAREHOUSE_BASEINFO_RESERVES, errorHandle, filter) //查看仓储部负责人 export const getResponsible = appRx.get(API_GET_WAREHOUSE_RESPONSIBLE, errorHandle, filter) //修改自动创建的临时库入库量 export const postInWeight = appRx.post(API_POST_WAREHOUSE_INWEIGHT, errorHandle, filter) //查看全部仓库 export const getWarehouseAll = appRx.get(API_GET_WAREHOUSE_ALL, errorHandle, filter) //退回 export const sendback = appRx.post(API_SEND_BACK,errorCatcher, errorHandle, filter) //删除 export const postdeletewarehouse = appRx.post(API_DELETE_WAREHOUSE,errorCatcher, errorHandle, filter)