inventory.js 1.39 KB
import http from './interface'

// 选取补充入库的库位
export const pickLocation = () => {
	return http.request({
		url: '/inventory/mobile/pickLocation',
		method: 'POST'
	})
}

// 查询库存明细列表
export const inventoryDetailList = (data) => {
	return http.request({
		url: '/inventory/inventoryDetail/inventoryDetailList',
		method: 'GET',
		data
	})
}

// 盘点查询库存明细列表
export const cycleCountLookInventoryDetail = (data) => {
	return http.request({
		url: '/inventory/inventoryDetail/cycleCountLookInventoryDetail',
		method: 'GET',
		data
	})
}


// 获取首页库存分布
export const getInventoryProp = () => {
	return http.request({
		url: '/inventory/inventoryHeader/home/getInventoryProp',
		method: 'GET',
	})
}

// 查询库存交易列表
export const listTransaction = (data) => {
	return http.request({
		url: '/inventory/inventoryTransaction',
		method: 'GET',
		data
	})
}

// 获取物料分析
export const getMaterialWarningProp = () => {
	return http.request({
		url: '/inventory/inventoryWarning/summary',
		method: 'GET'
	})
}

// 查询库存预警
export const listInventoryWarning = (data) => {
	return http.request({
		url: '/inventory/inventoryWarning/list',
		method: 'GET',
		data
	})
}

export default {
	pickLocation,
	inventoryDetailList,
	getInventoryProp,
	listTransaction,
	getMaterialWarningProp,
	listInventoryWarning,
	cycleCountLookInventoryDetail
}