2024-04-24 10:14:36 +08:00
|
|
|
import { POST, GET } from './index.js'
|
|
|
|
|
|
|
|
|
|
const URL_TYPE_LIST = '/screen/material/returnOfMaterialsInfo/getTypeList'
|
|
|
|
|
const URL_DETAILS = '/screen/base/largeScreen/home/getMaterialReqData/details'
|
2024-04-24 11:21:16 +08:00
|
|
|
const URL_RETURN_DETAILS = '/screen/base/largeScreen/home/getMaterialReturnData/details'
|
2024-04-24 10:14:36 +08:00
|
|
|
const URL_UNIT_LIST = '/screen/material/agreementInfo/getUnitList'
|
|
|
|
|
const URL_PROJECT_LIST = '/screen/material/agreementInfo/getProjectList'
|
2024-04-24 15:00:07 +08:00
|
|
|
const URL_SCRAP_ANALYSIS = '/screen/base/largeScreen/home/getScrapAnalysisByMonth/details'
|
2024-04-24 15:58:10 +08:00
|
|
|
const URL_TOTAL_OWNERSHIP = '/screen/base/largeScreen/home/getTotalOwnership/details'
|
2024-04-24 17:24:56 +08:00
|
|
|
const URL_ACCEPTANCE_STORAGE = '/screen/base/largeScreen/home/getAcceptanceStorage/details'
|
2024-04-24 10:14:36 +08:00
|
|
|
|
|
|
|
|
// 设备类型
|
|
|
|
|
export const getTypeList = params => GET(URL_TYPE_LIST, params)
|
|
|
|
|
|
2024-04-24 11:21:16 +08:00
|
|
|
// 领料数据
|
2024-04-24 10:14:36 +08:00
|
|
|
export const getDetails = data => POST(URL_DETAILS, data)
|
|
|
|
|
|
2024-04-24 11:21:16 +08:00
|
|
|
// 退料数据
|
|
|
|
|
export const getReturnDetails = data => POST(URL_RETURN_DETAILS, data)
|
|
|
|
|
|
2024-04-24 10:14:36 +08:00
|
|
|
// 往来单位-下拉
|
|
|
|
|
export const getUnitList = params => GET(URL_UNIT_LIST, params)
|
|
|
|
|
|
|
|
|
|
// 工程名称-下拉
|
2024-04-24 15:00:07 +08:00
|
|
|
export const getProjectList = params => GET(URL_PROJECT_LIST, params)
|
|
|
|
|
|
|
|
|
|
// 废料分析
|
2024-04-24 15:58:10 +08:00
|
|
|
export const getScrapAnalysis = data => POST(URL_SCRAP_ANALYSIS, data)
|
|
|
|
|
|
|
|
|
|
// 总保有量
|
|
|
|
|
export const getTotalOwnership = data => POST(URL_TOTAL_OWNERSHIP, data)
|
2024-04-24 17:24:56 +08:00
|
|
|
|
|
|
|
|
// 入库分析
|
|
|
|
|
export const getAcceptanceStorage = data => POST(URL_ACCEPTANCE_STORAGE, data)
|