sh_real_name_system_app/src/services/common.js

109 lines
2.2 KiB
JavaScript
Raw Normal View History

import { http } from '@/utils/http'
// 获取工种
export const getPostTypeSelectListAPI = () => {
return http({
url: '/bmw/postType/listAll',
method: 'GET',
})
}
// 获取工程
export const getLotProjectSelectListByConditionAPI = (data) => {
return http({
url: '/bmw/select/selectPro',
method: 'POST',
data,
})
}
// 获取分包
export const getSubSelectListByConditionAPI = (data) => {
return http({
url: '/bmw/select/selectSub',
method: 'POST',
data,
})
}
// 获取班组
export const getTeamSelectListByConditionAPI = (data) => {
return http({
url: '/bmw/select/selectTeam',
method: 'POST',
data,
})
}
// 获取工程
export const getProjectSelectListByConditionAPI = () => {
return http({
url: '/bmw/pmProject/listAll',
method: 'GET',
})
}
2025-09-05 14:08:12 +08:00
// 获取请求配置
export const getRequestConfigAPI = () => {
return http({
url: '/auth/getConfig',
method: 'GET',
})
}
2025-11-05 17:43:44 +08:00
// 获取字典数据工程类型
export const getProjectTypeSelectListAPI = () => {
return http({
url: '/system/dict/data/list',
method: 'GET',
data: {
dictType: 'project_type',
pageNum: 1,
pageSize: 100,
},
})
}
// 获取字典数据工程状态
export const getProjectStatusSelectListAPI = () => {
return http({
url: '/system/dict/data/list',
method: 'GET',
data: {
dictType: 'project_status',
pageNum: 1,
pageSize: 100,
},
})
}
// 获取电压等级下拉列表
export const getVoltageLevelSelectListAPI = () => {
return http({
url: '/system/dict/data/list',
method: 'GET',
data: {
dictType: 'voltage_level',
pageNum: 1,
pageSize: 100,
},
})
}
// 获取分公司下拉选
export const getSubCompanySelectListAPI = () => {
return http({
url: '/bmw/subCompany/listAll',
method: 'GET',
data: {},
})
}
// 获取工种下拉列表
export const getPostTypeListAPI = () => {
return http({
url: '/bmw/postType/listAll',
method: 'GET',
data: {},
})
}