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'
|
|
|
|
|
|
|
|
|
|
// 设备类型
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
// 工程名称-下拉
|
|
|
|
|
export const getProjectList = params => GET(URL_PROJECT_LIST, params)
|