import $http from '../index'

/**
 * 仓库
 */
// 仓库列表
export const Storehouse_Depot_List = (params: any) => $http.post('/testapi/storage/Depot/List', params)
// 仓库添加
export const Storehouse_Depot_Add = (params: any) => $http.post('/testapi/storage/Depot/Add', params)
// 仓库修改
export const Storehouse_Depot_Edit = (params: any) => $http.post('/testapi/storage/Depot/Edit', params)
// 仓库删除
export const Storehouse_Depot_Del = (params: any) => $http.post('/testapi/storage/Depot/Del', params)

/**
 * 产品分类
 */
// 产品列表
export const Storehouse_ProductClass_List = (params: any) => $http.post('/testapi/storage/ProductClass/List', params)
// 产品添加
export const Storehouse_ProductClass_Add = (params: any) => $http.post('/testapi/storage/ProductClass/Add', params)
// 产品修改
export const Storehouse_ProductClass_Edit = (params: any) => $http.post('/testapi/storage/ProductClass/Edit', params)
// 产品删除
export const Storehouse_ProductClass_Del = (params: any) => $http.post('/testapi/storage/ProductClass/Del', params)

/**
 * 产品
 */
// 产品名称
export const Storehouse_Product_Name_List = (params: any) => $http.post('/testapi/storage/Product/Name_List', params)
// 产品型号
export const Storehouse_Product_Model_List = (params: any) => $http.post('/testapi/storage/Product/Model_List', params)
// 产品规格
export const Storehouse_Product_Spec_List = (params: any) => $http.post('/testapi/storage/Product/Spec_List', params)
// 产品列表
export const Storehouse_Product_List = (params: any) => $http.post('/testapi/storage/Product/List', params)
// 产品添加
export const Storehouse_Product_Add = (params: any) => $http.post('/testapi/storage/Product/Add', params)
// 产品修改
export const Storehouse_Product_Edit = (params: any) => $http.post('/testapi/storage/Product/Edit', params)
// 产品删除
export const Storehouse_Product_Del = (params: any) => $http.post('/testapi/storage/Product/Del', params)

/**
 * 物联网卡
 */
// 物联网卡列表
export const Storehouse_IotCard_List = (params: any) => $http.post('/testapi/storage/IotCard/List', params)
// 物联网卡添加
export const Storehouse_IotCard_Add = (params: any) => $http.post('/testapi/storage/IotCard/Add', params)
// 物联网卡编辑
export const Storehouse_IotCard_Edit = (params: any) => $http.post('/testapi/storage/IotCard/Edit', params)
// 物联网卡删除
export const Storehouse_IotCard_Del = (params: any) => $http.post('/testapi/storage/IotCard/Del', params)

/**
 * 销售管理 -> 合同
 */
// 合同列表
export const Storehouse_Contract_List = (params: any) => $http.post('/testapi/storage/Contract/List', params)
// 合同-销售
export const Storehouse_Contract_User_List = (params: any) => $http.post('/testapi/storage/Contract/User_List', params)
// 详情
export const Storehouse_Contract_Get = (params: any) => $http.post('/testapi/storage/Contract/Get', params)
// 审批
export const Storehouse_Contract_Approval = (params: any) => $http.post('/testapi/storage/Contract/Approval', params)
// 添加
export const Storehouse_Contract_Add = (params: any) => $http.post('/testapi/storage/Contract/Add', params)
// 修改
export const Storehouse_Contract_Edit = (params: any) => $http.post('/testapi/storage/Contract/Edit', params)
// 删除
export const Storehouse_Contract_Del = (params: any) => $http.post('/testapi/storage/Contract/Del', params)
// 产品列表
export const Storehouse_Contract_Product_List = (params: any) =>
  $http.post('/testapi/storage/Contract/Product_List', params)
// 获取为出库或为完全出库合同列表
export const Storehouse_Contract_Out_List = (params: any) => $http.post('/testapi/storage/Contract/Out_List', params)

/**
 * 库存管理
 */
// 设备列表
export const Storehouse_Device_List = (params: any) => $http.post('/testapi/storage/Device/List', params)

/**
 * 入库
 */
// 入库列表
export const Storehouse_StockIn_List = (params: any) => $http.post('/testapi/storage/StockIn/List', params)
// 详情
export const Storehouse_StockIn_Get = (params: any) => $http.post('/testapi/storage/StockIn/Get', params)
// 入库
export const Storehouse_StockIn_Add = (params: any) => $http.post('/testapi/storage/StockIn/Add', params)

/**
 * 出库
 */
// 出库列表
export const Storehouse_StockOut_List = (params: any) => $http.post('/testapi/storage/StockOut/List', params)
// 出库
export const Storehouse_StockOut_Add = (params: any) => $http.post('/testapi/storage/StockOut/Add', params)
// 详情
export const Storehouse_StockOut_Get = (params: any) => $http.post('/testapi/storage/StockOut/Get', params)
// 修改发货订单
export const Storehouse_StockOut_Edit = (params: any) => $http.post('/testapi/storage/StockOut/Edit', params)
