devicesmgt/sgzb-screen/src/api/dialog.js

26 lines
1.0 KiB
JavaScript
Raw Normal View History

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 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)
// 废料分析
export const getScrapAnalysis = data => POST(URL_SCRAP_ANALYSIS, data)