122 lines
2.5 KiB
JavaScript
122 lines
2.5 KiB
JavaScript
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',
|
|
})
|
|
}
|
|
|
|
// 获取请求配置
|
|
export const getRequestConfigAPI = () => {
|
|
return http({
|
|
url: '/auth/getConfig',
|
|
method: 'GET',
|
|
})
|
|
}
|
|
|
|
// 获取字典数据工程类型
|
|
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 getMinimumWageStandardSelectListAPI = () => {
|
|
return http({
|
|
url: '/system/dict/data/list',
|
|
method: 'GET',
|
|
data: {
|
|
dictType: 'salary',
|
|
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: {},
|
|
})
|
|
}
|