初始化

This commit is contained in:
Chengliang 2023-07-27 11:43:07 +08:00
parent d98ec14cf9
commit f842befed0
927 changed files with 151825 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import {
WeaTools
} from 'ecCom'
/**
* 获取权限
* @param {[type]} moduleName [模块名]
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const authorized = (moduleName, params = {}, apiMethod = 'getHasRight') => WeaTools.callApi(`/api/hrm/${moduleName}/${apiMethod || 'getHasRight'}`, 'POST', params);
/**
* 应用分权
*/
export const detachable = (params = {}) => WeaTools.callApi('/api/hrm/common/getDetachable', 'GET', params);
export const checkAuthAndDetach = (moduleName, params = {}, apiMethod = 'getHasRight') => Promise.all([authorized(moduleName, params, apiMethod || 'getHasRight'), detachable()])
export const exportExcel = (params = {}) => WeaTools.callApi('/api/ec/dev/table/export', 'POST', params)
export const isEnableMultiLang = (params = {}) => WeaTools.callApi('/api/hrm/common/isEnableMultiLang', 'GET', params)
export const getPinYin = (params = {}) => WeaTools.callApi('/api/workflow/formSetting/fieldSet/getPinYin', 'POST', params)

View File

@ -0,0 +1,65 @@
import React, {
Component
} from 'react';
import {
WeaFormItem,
WeaNewScroll,
WeaSearchGroup,
} from 'ecCom';
import {
WeaSwitch
} from 'comsMobx';
export default class AdvanceSearchFormInfo extends Component {
renderGroupForm = () => {
const {
form,
formFields,
itemRender
} = this.props;
let formParams = form.getFormParams();
let arr = [];
formFields.map((c, i) => {
let _arr = [];
c.items.map((field, index) => {
const customerRender = itemRender != null ? itemRender[field.domkey[0]] : null;
const itemProps = {
ratio1to2: true,
label: field.label,
labelCol: {
span: `${window.HrmEngineLabelCol}`
},
error: form.getError(field),
tipPosition: 'bottom',
wrapperCol: {
span: `${window.HrmEngineWrapperCol}`
}
}
let coms;
if (customerRender == null) {
coms = <WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@ywkcme@${index}`} fieldConfig={field} form={form}/>;
} else {
coms = customerRender(field, form, formParams);
}
coms != null && _arr.push({
com: (
<WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@6i8xlx@${index}`} {...itemProps}>
{coms}
</WeaFormItem>
),
col: field.colSpan || 2
})
})
arr.push(<WeaSearchGroup ecId={`${this && this.props && this.props.ecId || ''}_WeaSearchGroup@3imxgy@${i}`} showGroup={c.defaultshow} items={_arr} fontSize={13}/>);
})
return arr;
}
render() {
return (
<WeaNewScroll ecId={`${this && this.props && this.props.ecId || ''}_WeaNewScroll@73jbxg`} height={'100%'}>
{this.renderGroupForm()}
</WeaNewScroll>
)
}
}

View File

@ -0,0 +1,221 @@
import '../style/calendar.less';
import React, {
Component
} from 'react';
import {
observer
} from 'mobx-react';
import {
WeaYear,
WeaNewScroll
} from 'ecCom';
import {
Row,
Col,
Calendar
} from 'antd';
import classnames from 'classnames';
import indexOf from 'lodash/indexOf';
import has from 'lodash/has';
import {
WeaLocaleProvider
} from 'ecCom';
import moment from 'moment';
const getLabel = WeaLocaleProvider.getLabel;
@observer
export default class CustomerCalendar extends Component {
constructor(props) {
super(props);
}
componentDidMount() {}
componentWillReceiveProps(nextProps) {}
getLocale() {
return {
firstDayOfWeek: 0,
lang: {
format: {
eras: [getLabel(383357, "公元前"), getLabel(383358, "公元")],
months: [getLabel(1492, "一月"), getLabel(1493, "二月"), getLabel(383385, "三月"), getLabel(383387, "四月"), getLabel(1496, "五月"), getLabel(383392, "六月"),
getLabel(383393, "七月"), getLabel(383394, "八月"), getLabel(383395, "九月"), getLabel(383396, "十月"), getLabel(383397, "十一月"), getLabel(383398, "十二月")
],
shortMonths: [getLabel(1492, "一月"), getLabel(1493, "二月"), getLabel(383385, "三月"), getLabel(383387, "四月"), getLabel(1496, "五月"), getLabel(383392, "六月"),
getLabel(383393, "七月"), getLabel(383394, "八月"), getLabel(383395, "九月"), getLabel(383396, "十月"), getLabel(383397, "十一月"), getLabel(383398, "十二月")
],
weekdays: [getLabel(24626, "星期天"), getLabel(383399, "星期一"), getLabel(383400, "星期二"), getLabel(383402, "星期三"), getLabel(383403, "星期四"),
getLabel(383404, "星期五"), getLabel(383405, "星期六")
],
shortWeekdays: [getLabel(16106, "周日"), getLabel(16100, "周一"), getLabel(16101, "周二"), getLabel(16102, "周三"), getLabel(16103, "周四"), getLabel(16104, "周五"),
getLabel(16105, "周六")
],
veryShortWeekdays: [getLabel(82920, "日"), getLabel(82914, "一"), getLabel(82915, "二"), getLabel(82916, "三"), getLabel(82917, "四"), getLabel(82918, "五"), getLabel(82919, "六")],
ampms: [getLabel(383408, "上午"), getLabel(383409, "下午")],
datePatterns: [`yyyy'${getLabel(383372,"年")}'M'${getLabel(383373,"月")}'d'${getLabel(383374,"日")}' EEEE`, `yyyy'${getLabel(383372,"年")}'M'${getLabel(383373,"月")}'d'${getLabel(383374,"日")}'`, "yyyy-M-d", "yy-M-d"],
timePatterns: [`ahh'${getLabel(383411,"时")}'mm'${getLabel(383412,"分")}'ss'${getLabel(383414,"秒")}' 'GMT'Z`, `ahh'${getLabel(383411,"时")}'mm'${getLabel(383412,"分")}'ss'${getLabel(383414,"秒")}'`, "H:mm:ss", "ah:mm"],
dateTimePattern: '{date} {time}'
}
},
}
}
//dateCellRender={this.monthDateCellRender.bind(this)}
// locale={this.getLocale()}
// onSelect={this.onMonthSelect.bind(this)}
//
generateWeekView = () => {
const {
store
} = this.props;
const {
calendarData,
editFormInfo,
getFormInfo
} = store;
return (
<div className='weekView'>
<div className='th'>
<div>{getLabel(16106, "周日")}</div>
<div>{getLabel(16100, "周一")}</div>
<div>{getLabel(16101, "周二")}</div>
<div>{getLabel(16102, "周三")}</div>
<div>{getLabel(16103, "周四")}</div>
<div>{getLabel(16104, "周五")}</div>
<div>{getLabel(16105, "周六")}</div>
</div>
<div className='tb'>
{
store.toJS(calendarData).map((data, i) => {
const rest = indexOf([0, 6], moment(data.date).day()) >= 0;
const currDate = store.moment(data.date);
const formatDate = currDate.format('YYYY-MM-DD');
const className = classnames({
['date']: true,
['rest']: rest,
['working']: !rest,
['today']: moment().day() === moment(data.date).day()
})
return (
<div>
<div className={className}>
{currDate.date()}
</div>
<div className='list'>
<WeaNewScroll ecId={`${this && this.props && this.props.ecId || ''}_WeaNewScroll@nm9hes@${i}`} height={'100%'}>
{
data.datas && data.datas.length > 0 ? data.datas.map(d => {
return (
<div className='schedul'
onClick={() => editFormInfo({id: d.id, startDate: d.date, endDate: d.date, schedule: d.tips})}
style={{backgroundColor: d.bgColor}}>
{d.title}
</div>
)
})
:
<div className='empty' onClick={() => getFormInfo(true, {startDate: formatDate, endDate: formatDate})}></div>
}
</WeaNewScroll>
</div>
</div>
)
})
}
</div>
</div>
)
}
generateDayView = () => {
const {
store
} = this.props;
const {
calendarData,
editFormInfo
} = store;
let th = [];
for (let i = 0; i < 24; i++) th.push(<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@8wxs7k@${i}`} span={1}>{i}</Col>);
let start = 0,
colSpan = 1;
return (
<div className='dayView'>
<Row ecId={`${this && this.props && this.props.ecId || ''}_Row@zz8gd1`} className='th'>
{th}
</Row>
<Row ecId={`${this && this.props && this.props.ecId || ''}_Row@f0wtlk`} className='list'>
{
calendarData.map(data => {
if(has(data, 'cols')){
colSpan = data.cols;
start = 0;
}else if(colSpan != null){
if(colSpan === (start + 1)){
colSpan = 1;
start = 0;
}else{
start++;
}
}
if(start === 0)
return (
<Col ecId={`${this && this.props && this.props.ecId || ''}_Col@6sf27a@1`} className='schedul' span={colSpan} title={data.tips}
onClick={() => editFormInfo({id: data.id, startDate: data.date, endDate: data.date, schedule: data.tips})}
style={{backgroundColor: data.bgColor}}>
{data.title}
</Col>
)
})
}
</Row>
</div>
)
}
render() {
const {
store
} = this.props;
const {
calendarType,
currentDay,
calendarData,
yearDateCellRender,
monthDateCellRender,
changeView
} = store;
return (
<div>
{
calendarType === 'year' &&
<WeaYear ecId={`${this && this.props && this.props.ecId || ''}_WeaYear@f0lmnd`}
value={currentDay}
dateCellRender={yearDateCellRender}
onDateSelect={changeView}
/>
}
{
calendarType === 'month' &&
<div className='calendar-wrapper'>
<Calendar ecId={`${this && this.props && this.props.ecId || ''}_Calendar@wisiq8`}
mode="month"
locale={this.getLocale()}
dateCellRender={monthDateCellRender}
value={currentDay}
/>
</div>
}
{
calendarType === 'week' &&
this.generateWeekView()
}
{
calendarType === 'day' &&
this.generateDayView()
}
</div>
)
}
}

View File

@ -0,0 +1,144 @@
import React, {
Component
} from 'react';
import {
observer
} from 'mobx-react';
import {
WeaFormItem,
WeaSearchGroup,
WeaCheckbox
} from 'ecCom';
import {
WeaSwitch
} from 'comsMobx';
import findIndex from 'lodash/findIndex';
@observer
export default class FormInfo extends Component {
renderForm = () => {
const {
formFields,
form,
colCount,
itemRender,
onSelectedChangeHandle,
showLabel,
multiColumn,
custLabelCol,
childrenComponents
} = this.props;
let groupArr = [];
const formParams = form.getFormParams();
const labelVisible = showLabel == null || showLabel == true;
const col = colCount ? colCount : 1;
const labelCol = labelVisible ? (custLabelCol || `${window.HrmEngineLabelCol}`) : 0;
const itemProps = {
ratio1to2: labelVisible && custLabelCol == null,
style: {
marginLeft: 0 //labelVisible ? -30 : 0
},
tipPosition: 'bottom',
labelCol: {
span: labelCol
},
wrapperCol: {
span: 24 - labelCol
}
}
const textAreaProps = {
minRows: 4,
maxRows: 4
}
formFields.map((fields, i) => {
let formItems = [];
fields.items.map((field, j) => {
const customerRender = itemRender != null ? itemRender[field.domkey[0]] : null;
const showCheckbox = field.checkbox || false;
let label = field.label;
if (showCheckbox)
label = <WeaCheckbox ecId={`${this && this.props && this.props.ecId || ''}_WeaCheckbox@0wx75q@${j}`} content={label} value={field.checkboxValue} onChange={(v) => {field.checkboxValue = v === '1'; onSelectedChangeHandle && onSelectedChangeHandle(field, v)}}/>
let coms;
if (customerRender == null) {
coms = <WeaSwitch ecId={`${this && this.props && this.props.ecId || ''}_WeaSwitch@gkenmw@${j}`} fieldConfig={{...field, ...textAreaProps, hasBorder: field.viewAttr === 1}} form={form} formParams={formParams}/>;
} else {
coms = customerRender(field, textAreaProps, form, formParams);
}
Object.assign(itemProps, {label, error: form.getError(field)})
let col = 1;
if(multiColumn != null){//检查有哪些字段需要一行显示多个
const idx = findIndex(multiColumn, item => item.key === field.domkey[0]);
if(idx > -1){
col = field.colSpan || 1;
if(multiColumn[idx].labelCol != null)//检查字段是否有配置标题宽度
Object.assign(itemProps,{
labelCol: {
span: multiColumn[idx].labelCol
},
wrapperCol: {
span: 24 - multiColumn[idx].labelCol
}
})
}else{
Object.assign(itemProps,{
labelCol: {
span: labelCol
},
wrapperCol: {
span: 24 - labelCol
}
})
}
}
coms != null && formItems.push({
com: (
<WeaFormItem ecId={`${this && this.props && this.props.ecId || ''}_WeaFormItem@4ir25w@${j}`} {...itemProps}>
{coms}
</WeaFormItem>
),
col
})
if(childrenComponents && childrenComponents[field.domkey[0]]){
childrenComponents[field.domkey[0]]().map(child => formItems.push(child));
}
})
groupArr.push(
(
<WeaSearchGroup ecId={`${this && this.props && this.props.ecId || ''}_WeaSearchGroup@mvqzho@${i}`}
center={this.props.center != null ? this.props.center : true}
needTigger={true}
title={formFields.length < 2 ? null : fields.title}
showGroup={true}
items={formItems}
col={col}
fontSize={14}/>
)
)
});
return groupArr;
}
render() {
const {
formFields,
className,
showError
} = this.props;
if (formFields == null)
return (<div></div>)
return (
<div className={className}>
{this.renderForm()}
</div>
)
}
}

View File

@ -0,0 +1,47 @@
import React, {
Component
} from 'react';
import {
WeaOrgTree,
WeaLocaleProvider
} from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;
export default class OrganizationTree extends Component {
constructor(props) {
super(props);
this.state = {
checkStrictlyTitle: (this.props.showCheckStrictly ? this.getTitle(this.props.checkStrictly) : ''),
checkStrictly: this.props.checkStrictly || false
}
}
getTitle = (val) => {
if(this.props.checkStrictlyTitles != null){
if(val)
return this.props.checkStrictlyTitles[1];
return this.props.checkStrictlyTitles[0];
}else{
}
}
onCheckStrictlyChange = (val) => {
this.setState({checkStrictlyTitle: this.getTitle(val), checkStrictly: val});
this.props.onCheckStrictlyChangeCallback && this.props.onCheckStrictlyChangeCallback(val);
}
render() {
let checkableTypes = null;
if(this.props.getCheckableTypes)
checkableTypes = this.props.getCheckableTypes();
return (
<WeaOrgTree ecId={`${this && this.props && this.props.ecId || ''}_WeaOrgTree@yiuzce`} {...this.props} checkableTypes={checkableTypes}
inputLeftDom={`<div style="overflow: hidden;text-overflow:ellipsis;white-space: nowrap;"><b>${getLabel(25332, '组织结构')}</b></div>`}
checkStrictlyTitle={this.state.checkStrictlyTitle}
onCheckStrictlyChange={this.onCheckStrictlyChange}
checkStrictly={this.state.checkStrictly}
ref='tree'/>
)
}
}

View File

@ -0,0 +1,224 @@
import React, {
Component
} from 'react';
import {
WeaTab,
WeaLocaleProvider
} from 'ecCom';
import {
observer
} from 'mobx-react';
import {
Button
} from 'antd';
import AdvanceSearchFormInfo from './AdvanceSearchFormInfo';
import cloneDeep from 'lodash/cloneDeep';
const getLabel = WeaLocaleProvider.getLabel;
const calFormHeight = (groupLength, children) => {
let childrenLength = 0;
children.map(c => {
if (c.colSpan != null) {
childrenLength += c.colSpan == 2 ? 1 : 2;
} else
childrenLength += 1;
})
let height = (childrenLength / 2 + childrenLength % 2) * 52 + 10;
if (groupLength > 1)
height += groupLength * 45;
if (height > 300)
return 300;
return height;
}
@observer
export default class Tabs extends Component {
constructor(props) {
super(props);
this.state = {
showSearchAd: false,
};
}
componentWillReceiveProps(nextProps) {
this.setState({
showSearchAd: false,
})
}
doSearch = () => {
const {
conditionForm,
tabConfig,
activeTabInfo,
} = this.props;
let tabInfo = tabConfig.tabs[activeTabInfo.activeTabIndex];
tabInfo.doSearch(conditionForm.getFormParams());
this.setState({
showSearchAd: false
});
}
doReset = () => {
const {
conditionForm
} = this.props;
conditionForm.resetConditionValue();
}
doCancel = () => {
this.setState({
showSearchAd: false,
});
}
getTabButtonsAd() {
return [
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@h0rwb1@1`} type="primary" onClick={this.doSearch}>{getLabel(82529, '搜索')}</Button>),
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@qfvwa2@2`} type="ghost" onClick={this.doReset}>{getLabel(27088, '重置')}</Button>),
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@azojac@3`} type="ghost" onClick={this.doCancel}>{getLabel(32694, '取消')}</Button>)
]
}
renderForm = () => {
const {
conditionForm,
conditionFormFields,
itemRender
} = this.props;
const {
isFormInit
} = conditionForm;
if (isFormInit)
return <AdvanceSearchFormInfo ecId={`${this && this.props && this.props.ecId || ''}_AdvanceSearchFormInfo@goih39`} form={conditionForm} formFields={conditionFormFields} itemRender={itemRender}/>
else
return '';
}
initTab = (props) => {
return React.cloneElement(<WeaTab ecId={`${this && this.props && this.props.ecId || ''}_WeaTab@lrdwmh`}/>, {
...props
});
}
renderTabNav = () => {
//data
const {
activeTabInfo,
tabConfig,
tabChangeHandle,
tabBtnDef,
conditionForm,
conditionFormFields,
advanceHeight,
store
} = this.props;
let tabInfo = tabConfig.tabs[activeTabInfo.activeTabIndex];
let tabsData = cloneDeep(tabConfig.tabs) || [];
tabsData != null && tabsData.map(tab => {
if (typeof(tab.title) == 'function')
tab.title = tab.title();
delete tab.topButtonDef;
delete tab.tabButtonDef;
});
let tabProps = {
type: 'editable-inline',
datas: tabsData,
keyParam: tabConfig.keyParam,
selectedKey: tabConfig.activeTabKey,
onChange: tabChangeHandle
}
tabBtnDef && Object.assign(tabProps, {
buttons: tabBtnDef
});
const searchType = tabInfo.searchType || [];
if (searchType.length > 0) {
Object.assign(tabProps, {
searchType: searchType,
onSearch: (value) => {
if (searchType.indexOf('advanced') >= 0) {
tabInfo.doSearch(conditionForm.getFormParams());
} else {
tabInfo.doSearch({
[tabInfo.searchKey]: value
});
}
}
});
if (searchType.indexOf('advanced') >= 0 && conditionForm != null && conditionForm.isFormInit) {
const formParams = conditionForm.getFormParams();
Object.assign(tabProps, {
searchsBaseValue: formParams[tabInfo.searchKey] || '',
showSearchAd: this.state.showSearchAd,
setShowSearchAd: (bool) => {
this.setState({
showSearchAd: bool
})
},
onSearchChange: (value) => conditionForm.updateFields({
[tabInfo.searchKey]: {
value
}
}, false),
buttonsAd: this.getTabButtonsAd(),
searchsAd: <div
onKeyDown={(e) =>{
if (e.keyCode == 13 && e.target.tagName === "INPUT") {
tabInfo.doSearch(conditionForm.getFormParams());
this.setState({
showSearchAd: false
})
}
}}
>{this.renderForm()}</div>
});
Object.assign(tabProps, {
//advanceHeight: calFormHeight(conditionFormFields.length, _.keys(formParams).length)
advanceHeight: advanceHeight ? advanceHeight : calFormHeight(conditionFormFields.length, conditionForm.fieldArr)
});
}
}
tabConfig.onTabEdit && Object.assign(tabProps, {
onEdit: tabConfig.onTabEdit
});
return this.initTab(tabProps);
}
renderTabContent = () => {
const {
children,
activeTabInfo,
rightMenu,
store
} = this.props;
if (Array.isArray(children)) {
return React.cloneElement(children[activeTabInfo.activeTabIndex], {
rightMenu,
activeTabIndex: activeTabInfo.activeTabIndex,
store
});
} else {
return React.cloneElement(children, {
rightMenu,
activeTabIndex: activeTabInfo.activeTabIndex,
store
});
}
}
render() {
const {
tabConfig
} = this.props;
return (
<div style={{width: '100%', height: '100%'}}>
{tabConfig.tabs.length > 0 && this.renderTabNav()}
{tabConfig.tabs.length > 0 && this.renderTabContent()}
</div>
);
}
}

View File

@ -0,0 +1,13 @@
import AdvanceSearchFormInfo from './AdvanceSearchFormInfo';
import Calendar from './Calendar';
import FormInfo from './FormInfo';
import OrganizationTree from './OrganizationTree';
import Tabs from './Tabs';
module.exports = {
AdvanceSearchFormInfo,
Calendar,
FormInfo,
OrganizationTree,
Tabs,
}

View File

@ -0,0 +1,13 @@
import AdvanceSearchFormInfo from './components/AdvanceSearchFormInfo';
import Calendar from './components/Calendar';
import FormInfo from './components/FormInfo';
import OrganizationTree from './components/OrganizationTree';
import Tabs from './components/Tabs';
module.exports = {
AdvanceSearchFormInfo,
Calendar,
FormInfo,
OrganizationTree,
Tabs,
}

View File

@ -0,0 +1,63 @@
import {
WeaLocaleProvider
} from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;
export const i18n = {
label: {
pathSetting: () => getLabel(16483, '路径设置'),
showAllType: () => getLabel(385346, '显示全部类型'),
basicSetting: () => getLabel(130187, '基本设置'),
organization: () => getLabel(25332, '组织结构'),
collect: () => getLabel(28111, '收藏'),
helper: () => getLabel(275, '帮助'),
search: () => getLabel(82529, '搜索'),
reset: () => getLabel(27088, '重置'),
ok: () => getLabel(33703, '确定'),
cancel: () => getLabel(32694, '取消'),
create: () => getLabel(365, '新建'),
remove: () => getLabel(20230, '移除'),
delete: () => getLabel(131966, '删除'),
modify: () => getLabel(93, '编辑'),
transfer: () => getLabel(80, '转移'),
multiRemove: () => getLabel(383696, '批量移除'),
multiDelete: () => getLabel(32136, '批量删除'),
save: () => getLabel(30986, '保存'),
saveAndSetting: () => getLabel(32159, '保存并进入详细设置'),
add: () => getLabel(131201, '添加'),
copy: () => getLabel(77, '复制'),
log: () => getLabel(83, '日志'),
replace: () => getLabel(84563, '替换'),
columnVisibleSetting: () => getLabel(32535, '显示列定制'),
multiModify: () => getLabel(383518, '批量编辑'),
import: () => getLabel(18596, '导入'),
export: () => getLabel(28343, '导出Excel'),
},
confirm: {
defaultTitle: () => getLabel(131329, '信息确认'),
removeSelected: () => getLabel(385639, '确定要移除选择的记录吗?'),
deleteSelected: () => getLabel(385625, '确定要删除选择的记录吗?'),
selectedEmpty: () => getLabel(84093, '请至少选择一条记录!'),
cancelSelected: () => getLabel(384051, '确定要封存选中的记录吗?'),
doISCancelSelected: () => getLabel(384050, '确定要解封选中的记录吗?'),
remove: () => getLabel(83449, '确定要移除吗?'),
delete: () => getLabel(83877, '确定要删除吗?'),
cancel: () => getLabel(384052, '确定要封存吗?'),
doISCancel: () => getLabel(384053, '确定要解封吗?'),
forbidden: () => getLabel(385359, '确定要禁用吗?'),
active: () => getLabel(385033, '确认要启用吗?'),
checkGenForm: () => getLabel(84793, '将生成{param}表单,是否继续?'),
},
message: {
authFailed: () => getLabel(2012, '对不起,您暂时没有权限!'),
actionError: () => getLabel(132200, '操作失败!'),
opSuccess: () => getLabel(30700, '操作成功'),
saveSuccess: () => getLabel(83551, '保存成功!'),
saveFailed: () => getLabel(84544, '保存失败!'),
removeSuccess: () => getLabel(385950, '移除成功!'),
deleteSuccess: () => getLabel(83472, '删除成功!'),
uploadSuccess: () => getLabel('25388',"上传成功"),
autoGenFormFaild: () => getLabel(83398, '类型表单不支持自动生成,请选择已有表单!'),
plsSelect: () => getLabel(125389, '请先选择'),
}
}

View File

@ -0,0 +1,16 @@
export const logTypeDef = {
/**
* definition of log type
* key-value mode
*/
//simple
HRM_ENGINE_HRM_SCHEDULESIGN_IMPORT :20052,//外部集成考勤
HRM_ENGINE_SCHEDULECODE: 20068,//考勤编号维护
HRM_ENGINE_SCHEDULEDEVICE: 20069,//考勤机维护
HRM_ENGINE_SHIFTMANAGER: 20067,//班次设置
HRM_ENGINE_KQGROUP :20070,//考勤组管理
HRM_ENGINE_KQREPORT_DEFINED: 20075,//考勤汇总报表展示列定制
HRM_ENGINE_KQREPORT_DEFINED_GROUP: 20076,//考勤汇总报表展示列定制分组维护
HRM_ENGINE_KQREPORT_DEFINED_FIELD: 20078,//考勤汇总报表展示列定制字段维护
HRM_KQ_WORKFLOW: 20041,//考勤流程设置
}

View File

@ -0,0 +1,377 @@
import {
observable,
action
} from 'mobx';
import {
Button,
message,
Modal
} from 'antd';
import {
WeaForm,
WeaLogView
} from 'comsMobx';
import {
WeaLocaleProvider,
WeaLoadingGlobal
} from 'ecCom';
import classnames from 'classnames';
import * as mobx from 'mobx';
import {
authorized,
detachable,
checkAuthAndDetach,
getPinYin
} from '../apis/common';
import {
i18n
} from '../public/i18n';
import {
logTypeDef
} from '../public/logType';
import {findIndex} from 'lodash';
import moment from 'moment';
const getLabel = WeaLocaleProvider.getLabel;
const confirm = Modal.confirm;
const info = Modal.confirm;
const {
LogStore
} = WeaLogView;
export default class HrmBaseStore {
constructor(){
}
/********************* unobservable list *********************/
logTypeDef = logTypeDef;
getPinYin = getPinYin;
toJS = mobx.toJS;
moment = moment;
basicDialogParams = {
moduleName: 'hrm',
style: {
width: 520,
height: 300
},
visible: false,
title: '',
}
menuIconCollection = {
save: 'icon-coms-Preservation',
create: 'icon-coms-New-Flow',
modify: 'icon-coms-edit',
remove: 'icon-coms-Batch-delete',
copy: 'icon-coms-form-copy',
entry: 'icon-coms-edit',
setting: 'icon-coms-Flow-setting',
log: 'icon-coms-Print-log',
multiModify: 'icon-coms-BatchEditing',
import: ' icon-coms-leading-in',
export: 'icon-coms-export',
search: 'icon-coms-search',
sync: 'icon-coms-Update-synchronization',
done: 'icon-coms-Upload-successfully',
selectAll: 'icon-coms-batch',
add: "icon-coms-Add-to-o"
}
getBasicMenus = (logTypeKey, targetId = null) => {
let arr = [];
if(logTypeKey){
arr.push({
key: '99',
content: i18n.label.log(),
icon: <i className={this.menuIconCollection.log}/>,
onClick: () => this.showLog({logSmallType: this.logTypeDef[logTypeKey], targetId})
});
}
return arr;
}
dialogPropsDef = {
moduleName: 'hrm',
visible: false,
title: '',
moreBtn: {
datas: []
},
// hasScroll: true
}
refsDialogPropsDef = {
moduleName: 'hrm',
visible: false,
title: '',
}
dateSwitchTypeList = ['year', 'month', 'week', 'day'];
formTarget = {}; //form collection
opId = null; //数据操作对象主键ID
authorizationInfo = {};
/**
* 权限验证
* @param {String} moduleName [模块名]
* @param {Object} params [restful request url params]
* @param {Function} callback [验证通过后的callback function]
* @return {null}
*/
checkAuthorized = (moduleName, params, callback, apiMethod, needCheckDetachable = false) => {
if (needCheckDetachable) {
checkAuthAndDetach(moduleName, params, apiMethod).then(rs => {
rs.map((result, index) => {
if (result.status === '1') {
switch (index) {
case 0:
const init = !result.hasRight;
this.authorizationInfo = result;
this.containerInitFinished = {
...this.containerInitFinished,
init,
authorized: result.hasRight,
userId: result.userId
}
this.containerInitFinished.authorized && callback && callback();
break;
case 1:
this.containerInitFinished.detachable = result.detachable === '0' ? false : true
break;
}
}
})
})
} else {
authorized(moduleName, params, apiMethod).then((data) => {
if (data.status === '1') {
const init = !data.hasRight;
this.authorizationInfo = data;
this.containerInitFinished = {
init,
authorized: data.hasRight
}
this.containerInitFinished.authorized && callback && callback();
}
}, error => {
this.containerInitFinished = {
init: true,
authorized: false
}
});
}
}
/**
* 获取激活的tab页下标
* @param {Array} tabs [tabData数组]
* @param {String} key [tabKey]
* @return {Integer} [tab下标]
*/
getTabIndex(tabs, key) {
if (tabs != null && tabs.length > 0) {
return findIndex(tabs, {
viewCondition: key
})
}
return -1;
}
convertToMenus = (buttons) => {
let menus = [];
buttons.map((btn, index) => {
const {
props
} = btn;
menus.push({
key: index.toString(),
content: props.children,
icon: <i className={this.menuIconCollection[props.op]}/>,
onClick: props.onClick,
disabled: props.disabled || false
});
})
return menus;
}
/**
* 获取WeaTop按钮WeaTab按钮以及右键菜单列表
* @param {Object} tabConfig [description]
* @return {Object} [description]
*/
btnsAndMenus = (tabConfig) => {
let topBtnDef = [], //WeaTop按钮
menuDef = [], //右键菜单
tabBtnDef = []; //WeaTab按钮
const activeTabIndex = this.getTabIndex(tabConfig.tabs, tabConfig.activeTabKey);
if (tabConfig.activeTabKey === '' || activeTabIndex < 0) {
return {
btns: topBtnDef,
menus: menuDef,
tabBtnDef: tabBtnDef
}
}
const tab = tabConfig.tabs[activeTabIndex];
const {
topButtonDef,
tabButtonDef
} = tab;
topButtonDef && topButtonDef.map((def, idx) => { //组织WeaTop按钮
const lbl = (typeof(def.label) == 'function' ? def.label() : def.label);
switch (def.comType) {
case 'button':
let disabled = false;
if (def.checkAction)
disabled = this[def.checkAction];
topBtnDef.push(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@0j8j3o@${idx}`} type={def.type} onClick={def.onClickHandle} disabled={disabled || def.disabled}>{lbl}</Button>);
menuDef.push({ //组织右键菜单
key: `$top-btn-${idx}`,
content: lbl,
icon: <i className={def.rightMenuIcon || def.icon}/>,
onClick: def.onClickHandle,
disabled: disabled || def.disabled || false
})
break;
default:
break;
}
});
tabButtonDef && tabButtonDef.map((def, idx) => { //组织WeaTab按钮
const lab = (typeof(def.label) == 'function' ? def.label() : def.label);
switch (def.comType) {
case 'button':
let disabled = false;
if (def.checkAction)
disabled = this[def.checkAction];
const classes = classnames({
[def.icon]: true,
'tabBtn': true,
'tabBtn-active': !disabled,
'tabBtn-disable': disabled
});
tabBtnDef.push(
<i
className={classes}
title={lab}
onClick={!disabled ? def.onClickHandle : null}
/>
);
break;
default:
break;
}
});
return {
btns: topBtnDef,
menus: menuDef,
tabBtnDef: tabBtnDef
}
}
confirmInfo = (props) => {
confirm({ ...props,
title: props.title || i18n.confirm.defaultTitle(),
okText: i18n.label.ok(),
cancelText: i18n.label.cancel()
});
}
hint = (props) => {
info({ ...props,
title: i18n.confirm.defaultTitle(),
okText: i18n.label.ok(),
});
}
/**
* 初始化formStore
* @param {String} formName [form's name]
* @param {Array} fields [form field definition]
* @return {null}
*/
setFormData = (formName, fields) => {
this.formTarget[`${formName}Fields`] = fields;
this.formTarget[formName] = new WeaForm();
this.formTarget[formName].initFormFields(fields);
}
/**
* 获取表格数据的通用方法
* @param {String} tableStore [tableStore's name]
* @param {Function} api [restful api function]
* @param {Object} params [restful request url params]
* @return {null}
*/
requestTableData = (tableStore, api, params = {}, callback) => {
api(params).then(data => {
if (data.status === '1') {
tableStore.getDatas(data.sessionkey, 1);
callback && callback();
} else
message.error(data.message);
}, error => {
message.error(i18n.message.actionError());
});
}
showLog = (logTypeParams) => {
window.setLogViewProps({
...logTypeParams
});
}
/********************* unobservable list *********************/
/********************* observable list *********************/
@observable containerInitFinished = { //模块初始化状态
init: false,
authorized: false,
detachable: false
}
@observable showError = new Date().getTime(); //状态刷新组件引用该值监听变化重新render
@observable dialogParams = {}; //模态框参数
// monitorI18n = () => {
// this.i18nLoaded;
// }
// monitor = autorun(this.monitorI18n)
/********************* observable list *********************/
/********************* action list *********************/
@action definedColumn = (table) => {//显示列定义
table.setColSetVisible(true);
table.tableColSet(true);
}
@action showWeaLoadingGlobal = (tip = '') => WeaLoadingGlobal.start({tip});
@action hideWeaLoadingGlobal = () => {
WeaLoadingGlobal.end(); // 停止遮罩loading
WeaLoadingGlobal.destroy(); // 销毁遮罩loading
}
/********************* action list *********************/
getLocale() {
return {
firstDayOfWeek: 0,
lang: {
format: {
eras: [getLabel(383357, "公元前"), getLabel(383358, "公元")],
months: [getLabel(1492, "一月"), getLabel(1493, "二月"), getLabel(383385, "三月"), getLabel(383387, "四月"), getLabel(1496, "五月"), getLabel(383392, "六月"),
getLabel(383393, "七月"), getLabel(383394, "八月"), getLabel(383395, "九月"), getLabel(383396, "十月"), getLabel(383397, "十一月"), getLabel(383398, "十二月")
],
shortMonths: [getLabel(1492, "一月"), getLabel(1493, "二月"), getLabel(383385, "三月"), getLabel(383387, "四月"), getLabel(1496, "五月"), getLabel(383392, "六月"),
getLabel(383393, "七月"), getLabel(383394, "八月"), getLabel(383395, "九月"), getLabel(383396, "十月"), getLabel(383397, "十一月"), getLabel(383398, "十二月")
],
weekdays: [getLabel(398, "星期天"), getLabel(392, "星期一"), getLabel(393, "星期二"), getLabel(394, "星期三"), getLabel(395, "星期四"),
getLabel(396, "星期五"), getLabel(397, "星期六")
],
shortWeekdays: [getLabel(16106, "周日"), getLabel(16100, "周一"), getLabel(16101, "周二"), getLabel(16102, "周三"), getLabel(16103, "周四"), getLabel(16104, "周五"),
getLabel(16105, "周六")
],
veryShortWeekdays: [getLabel(82920, "日"), getLabel(82914, "一"), getLabel(82915, "二"), getLabel(82916, "三"), getLabel(82917, "四"), getLabel(82918, "五"), getLabel(82919, "六")],
ampms: [getLabel(383408, "上午"), getLabel(383409, "下午")],
datePatterns: [`yyyy'${getLabel(383372,"年")}'M'${getLabel(383373,"月")}'d'${getLabel(383374,"日")}' EEEE`, `yyyy'${getLabel(383372,"年")}'M'${getLabel(383373,"月")}'d'${getLabel(383374,"日")}'`, "yyyy-M-d", "yy-M-d"],
timePatterns: [`ahh'${getLabel(383411,"时")}'mm'${getLabel(383412,"分")}'ss'${getLabel(383414,"秒")}' 'GMT'Z`, `ahh'${getLabel(383411,"时")}'mm'${getLabel(383412,"分")}'ss'${getLabel(383414,"秒")}'`, "H:mm:ss", "ah:mm"],
dateTimePattern: '{date} {time}'
}
},
}
}
/********************* tableEdit props & functions *********************/
}

View File

@ -0,0 +1,289 @@
.calendar-wrapper {
width: 100%;
height: 100%;
//padding-right: 10px;
.ant-fullcalendar-header{
display:none;
}
.ant-fullcalendar-fullscreen {
.ant-fullcalendar-today{
.ant-fullcalendar-date{
background-color:#fefce9 !important;
// border-top:1px solid #eee !important;
}
}
.ant-fullcalendar-calendar-body{
padding:0;
table{
td{
border: 1px solid #eee;
}
tr>:first-child{
border-left: none !important;
}
thead{
.ant-fullcalendar-column-header{
border-left: 1px solid #eee;
border-right: 1px solid #eee;
border-bottom: 1px solid #eee;
padding-right: 0;
text-align: center;
padding-bottom: 0;
color:#333333;
}
tr{
height: 40px;
th{
background-color: #f5f5f5;
}
}
}
tbody{
tr{
height: 100px;
td{
height: 100px;
box-sizing: content-box;
}
}
.ant-fullcalendar-date{
padding:0;
padding-top: 5px;
margin: 0;
border-collapse:collapse;
border: 0;
height: 122px;
.ant-fullcalendar-value{
margin:0 16px 0 0;
}
.ant-fullcalendar-content{
overflow:hidden;
// height:100px;
}
}
.ant-fullcalendar-date:hover{
background-color:#ffffff;
}
}
}
}
}
.workTips{
position: absolute;
top: 7px;
left: 5px;
}
.list {
position: absolute;
top: 30px;
bottom: 5px;
left: 5px;
right: 5px;
.empty{
width: 100%;
height: 100%;
}
.schedul{
margin-bottom: 3px;
padding-left: 5px;
color: #fff;
&:last-child{
margin-bottom: 0px;
}
}
}
}
.wea-year {
.date-item {
.tip {
position: absolute;
top: -2px;
right: -5px;
font-size: 6px;
line-height: 1;
}
i {
font-size: 15px;
}
}
.year-cell-bottom {
position: absolute;
bottom: -2px;
width: 18px;
height: 4px;
}
.bottomTag{
position: absolute;
bottom: 0;
width: 100%;
height: 3px;
}
.workTips {
position: absolute;
top: -8px;
right: -8px;
}
}
.calendar-item {
.icon-wrapper {
position: absolute;
font-size: 14px;
top: 9px;
left: 10px;
i {
font-size: 17px;
}
}
.tip {
position: absolute;
font-size: 10px;
top: -1px;
right: 4px;
}
.workflow-item {
padding-left: 10px;
margin-top: 3px;
height: 24px;
line-height: 24px;
a {
color: inherit;
}
}
.workflow-item.shift-item {
color: #333;
filter:alpha(opacity=1000);
-moz-opacity: 1;
-khtml-opacity: 1;
opacity: 1;
}
}
.weekView{
display: table;
table-layout: fixed;
width: 100%;
.th{
font-size: 12px;
display: table-row;
height: 30px;
line-height: 30px;
&>div{
display: table-cell;
text-align: center;
border-bottom: 1px solid #59b0f2;
}
}
.tb{
display: table-row;
height: 135px;
&>div{
display: table-cell;
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
.date{
height: 30px;
}
.rest{
color: #ccc;
}
.working{
color: #000;
}
.today{
color: #39f;
}
.list{
height: 105px;
padding-left: 5px;
padding-right: 5px;
cursor: pointer;
.empty{
width: 100%;
height: 100%;
}
.schedul{
margin-bottom: 3px;
padding-left: 5px;
width: 100%;
text-align: center;
color: #fff;
&:last-child{
margin-bottom: 0px;
}
}
}
&:last-child{
border-right: none;
}
}
}
}
.dayView{
.th{
font-size: 12px;
height: 30px;
line-height: 30px;
text-align: center;
border-bottom: 1px solid #59b0f2;
&>div{
border-right: 1px solid #ccc;
&:last-child{
border-right: none;
}
}
}
.list{
font-size: 12px;
height: 30px;
line-height: 30px;
cursor: pointer;
.schedul{
color: #fff;
height: 100%;
border-right: 1px solid #ccc;
padding-left: 5px;
padding-right: 5px;
text-align: center;
white-space: nowrap;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
border-bottom: 1px solid #ccc;
&:last-child{
border-right: none;
}
}
}
}

View File

@ -0,0 +1,125 @@
import {
WeaTools
} from 'ecCom'
//新建国家
export const getCountryForm = (params) => {
return WeaTools.callApi('/api/hrm/area/getCountryForm?is_multilang_set=true', 'GET', params);
}
//新建省份
export const getProvinceForm = (params) => {
return WeaTools.callApi('/api/hrm/area/getProvinceForm?is_multilang_set=true', 'GET', params);
}
//新建城市
export const getCityForm = (params) => {
return WeaTools.callApi('/api/hrm/area/getCityForm?is_multilang_set=true', 'GET', params);
}
//新建区县
export const getCityTwoForm = (params) => {
return WeaTools.callApi('/api/hrm/area/getCityTwoForm?is_multilang_set=true', 'GET', params);
}
//国家新建保存
export const addCountry = (params) => {
return WeaTools.callApi('/api/hrm/area/addCountry', 'POST', params);
}
//国家编辑保存
export const editCountry = (params) => {
return WeaTools.callApi('/api/hrm/area/editCountry', 'POST', params);
}
//省份新建保存
export const addProvince = (params) => {
return WeaTools.callApi('/api/hrm/area/addProvince', 'POST', params);
}
//省份编辑保存
export const editProvince = (params) => {
return WeaTools.callApi('/api/hrm/area/editProvince', 'POST', params);
}
//城市新建保存
export const addCity = (params) => {
return WeaTools.callApi('/api/hrm/area/addCity', 'POST', params);
}
//城市编辑保存
export const editCity = (params) => {
return WeaTools.callApi('/api/hrm/area/editCity', 'POST', params);
}
//城市新建保存
export const addCityTwo = (params) => {
return WeaTools.callApi('/api/hrm/area/addCityTwo', 'POST', params);
}
//城市编辑保存
export const editCityTwo = (params) => {
return WeaTools.callApi('/api/hrm/area/editCityTwo', 'POST', params);
}
//获取国家表格数据
export const getCountryList = (params) => {
return WeaTools.callApi('/api/hrm/area/getCountryList', 'GET', params);
}
//获取省份表格数据
export const getProvinceList = (params) => {
return WeaTools.callApi('/api/hrm/area/getProvinceList', 'GET', params);
}
//获取城市表格数据
export const getCityList = (params) => {
return WeaTools.callApi('/api/hrm/area/getCityList', 'GET', params);
}
//获取区县表格数据
export const getCityTwoList = (params) => {
return WeaTools.callApi('/api/hrm/area/getCityTwoList', 'GET', params);
}
//获取高级搜索条件
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/area/getSearchCondition', 'GET', params);
}
//国家省份城市区县封存和解封
export const doblock = (params) => {
return WeaTools.callApi('/api/hrm/area/doblock', 'POST', params);
}
//国家删除(批量删除)
export const deleteCountry = (params) => {
return WeaTools.callApi('/api/hrm/area/deleteCountry', 'POST', params);
}
//省份删除(批量删除)
export const deleteProvince = (params) => {
return WeaTools.callApi('/api/hrm/area/deleteProvince', 'POST', params);
}
//城市删除(批量删除)
export const deleteCity = (params) => {
return WeaTools.callApi('/api/hrm/area/deleteCity', 'POST', params);
}
//区县删除(批量删除)
export const deleteCityTwo = (params) => {
return WeaTools.callApi('/api/hrm/area/deleteCityTwo', 'POST', params);
}
//国家、省份、城市和区县信息
export const getAreaDetail = (params) => {
return WeaTools.callApi('/api/hrm/area/getAreaDetail', 'GET', params);
}
//获取导入表单
export const getAreaImportForm = (params) => {
return WeaTools.callApi('/api/hrm/area/getAreaImportForm?is_multilang_set=true', 'GET', params);
}
//导入文件提交
export const saveAreaImport = (params) => {
return WeaTools.callApi('/api/hrm/area/saveAreaImport', 'POST', params);
}
//历史导入信息查询
export const getImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/area/getImportHistory', 'GET', params);
}
//功能按钮权限
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/area/getHasRight', 'GET', params);
}
//导入结果
export const getImportResultDetail = (params) => {
return WeaTools.callApi('/api/hrm/area/getImportRowResultLog', 'GET', params);
}
//导入日志
export const getImportLogDetail = (params) => {
return WeaTools.callApi('/api/hrm/area/getImportColResultLog', 'GET', params);
}
//导入日志 - 高级搜索
export const getImportLogSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/area/getHistorySearchCondition', 'GET', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from "ecCom";
export const getRegionSettingHasRight = (params) => {
return WeaTools.callApi('/api/hrm/browserDisplayField/getRegionSettingHasRight', 'POST', params);
}
export const getRegionDisplaySetting = (params) => {
return WeaTools.callApi('/api/hrm/browserDisplayField/getRegionDisplaySetting', 'GET', params);
}
export const saveRegionDisplaySetting = (params) => {
return WeaTools.callApi('/api/hrm/browserDisplayField/saveRegionDisplaySetting', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/detachmanagerset/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/detachmanagerset/getSettingForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/detachmanagerset/save', 'POST', params);
}

View File

@ -0,0 +1,42 @@
import {
WeaTools
} from 'ecCom';
export const getCondition = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getPLSManagerSetCondition', 'GET', params)
//有效期设置
export const getAnnualManagerSetList = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getAnnualManagerSetList', 'POST', params)
export const getAnnualManagerSetForm = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getAnnualManagerSetForm', 'GET', params)
export const saveAnnualManagerSet = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/saveAnnualManagerSet', 'POST', params)
export const deleteAnnualManagerSet = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/deleteAnnualManagerSet', 'POST', params)
export const synAnnualManagerSet = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/synAnnualManagerSet', 'POST', params)
//批量规则
export const getAnnualManagerBatchList = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getAnnualManagerBatchList', 'POST', params)
export const getAnnualManagerBatchForm = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getAnnualManagerBatchForm', 'GET', params)
export const saveAnnualManagerBatch = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/saveAnnualManagerBatch', 'POST', params)
export const deleteAnnualManagerBatch = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/deleteAnnualManagerBatch', 'POST', params)
export const synAnnualManagerBatch = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/synAnnualManagerBatch', 'POST', params)
//设置
export const getAnnualManagerList = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getAnnualManagerList', 'POST', params)
export const saveAnnualManager = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/saveAnnualManager', 'POST', params)
export const processAnnualManager = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/processAnnualManager', 'POST', params)
export const getImportForm = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/getImportForm', 'GET', params)
export const saveImport = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/saveImport?is_multilang_set=true', 'POST', params)
export const exportData = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/exportAnnualManagerExcel', 'POST', params)
export const addeddayssetting = (params = {}) => WeaTools.callApi('/api/hrm/annualmanager/addeddayssetting', 'POST', params)

View File

@ -0,0 +1,20 @@
import {
WeaTools
} from 'ecCom';
export const getGlobalSettingForm = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachSetForm', 'GET', params)
export const saveGlobalSetting = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/saveAppDetachSet', 'POST', params)
export const getAppDetachForm = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachForm?is_multilang_set=true', 'GET', params)
export const saveAppDetach = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/saveAppDetach', 'POST', params)
export const removeAppDetach = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/delAppDetach', 'POST', params)
export const getAppDetachCondition = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachCondition', 'GET', params)
export const getAppDetachList = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachList', 'POST', params)
export const getDetachDetailCondition = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachDetialCondition', 'GET', params)
export const getDetachDetail = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachDetialList', 'POST', params)
export const getAppDetachDetialForm = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/getAppDetachDetialForm', 'GET', params)
export const saveAppDetachDetial = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/saveAppDetachDetial', 'POST', params)
export const delAppDetachDetial = (params = {}) => WeaTools.callApi('/api/hrm/appdetach/delAppDetachDetial', 'POST', params)
export const initAppDetachListData = () => Promise.all([getAppDetachCondition(), getAppDetachList()])
export const initTargetListData = (params = {}) => Promise.all([getDetachDetailCondition(), getDetachDetail(params)])
export const initRangeListData = (params = {}) => Promise.all([getDetachDetailCondition(), getDetachDetail(params)])

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom';
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/archiveLogView/getHasRight', 'GET', params);
}
export const getRightMenu = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/archiveLogView/getRightMenu', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/archiveLogView/getSearchCondition', 'GET', params);
}
export const getLoginLogList = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/archiveLogView/getLoginLogList', 'GET', params);
}
export const getOperateLogList = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/archiveLogView/getOperateLogList', 'GET', params);
}
export const exportExcelLog = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/archiveLogView/exportExcelLog', 'POST', params);
}
export const viewdetail = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/transLog/viewDetail', 'GET', params);
}
export const trans = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/transLog/transLog', 'GET', params);
}

View File

@ -0,0 +1,27 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/checkinfo/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/checkinfo/getRightMenu', 'GET', params);
}
export const getMainTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checkinfo/getSearchList', 'GET', params);
}
export const getSubTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checkinfo/getCheckBasicInfoList', 'GET', params);
}
export const getThirdTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checkinfo/getCheckResourceInfoList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/checkinfo/getSearchCondition', 'GET', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/getSearchCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/getCheckItemForm?is_multilang_set=true', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/delete', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/checkitem/edit', 'POST', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/checktype/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/checktype/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checktype/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/checktype/getSearchCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/checktype/getCheckTypeForm?is_multilang_set=true', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/checktype/delete', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/checktype/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/checktype/edit', 'POST', params);
}

View File

@ -0,0 +1,10 @@
import {
WeaTools
} from 'ecCom';
export const getImportForm = (params = {}) => WeaTools.callApi('/api/hrm/schedulesignimport/getImportForm?is_multilang_set=true', 'GET', params)
export const importExternalData = (params = {}) => WeaTools.callApi('/api/hrm/schedulesignimport/saveImport', 'POST', params)
export const getImportFormSet = (params = {}) => WeaTools.callApi('/api/hrm/schedulesignimport/getImportSetForm', 'GET', params)
export const syncData = (params = {}) => WeaTools.callApi('/api/hrm/schedulesignimport/synData', 'POST', params)
export const saveImportSet = (params = {}) => WeaTools.callApi('/api/hrm/schedulesignimport/saveImportSet', 'POST', params)

View File

@ -0,0 +1,27 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/schedule/applicationSetting/getHasRight', 'GET', params);
}
export const getContentInfo = (params) => {
return WeaTools.callApi('/api/hrm/schedule/applicationSetting/getScheduleApplicationSettingForm', 'POST', params);
}
export const getSubFormInfo = (params) => {
return WeaTools.callApi('/api/hrm/schedule/applicationSetting/getScheduleApplicationRuleForm?is_multilang_set=true', 'POST', params);
}
export const saveMainForm = (params) => {
return WeaTools.callApi('/api/hrm/schedule/applicationSetting/saveScheduleApplicationSetting', 'POST', params);
}
export const saveSubForm = (params) => {
return WeaTools.callApi('/api/hrm/schedule/applicationSetting/saveScheduleApplicationRule', 'POST', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/schedule/applicationSetting/delScheduleApplicationRule', 'POST', params);
}

View File

@ -0,0 +1,24 @@
import {
WeaTools
} from 'ecCom';
/**
* 获取tab数据
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getFormInfo = (params = {}) => WeaTools.callApi('/api/hrm/permissiontoadjust/getPermissionToAdjustForm', 'GET', params)
export const getTableData = (params = {}) => WeaTools.callApi('/api/hrm/permissiontoadjust/getPermissionToAdjustList', 'POST', params)
export const processData = (params = {}) => WeaTools.callApi('/api/hrm/permissiontoadjust/processData', 'POST', params)
export const getCondition = (urlParams, params) => WeaTools.callApi(`/api/hrm/permissiontoadjustbrowser/condition/${urlParams}`, 'GET', params)
export const getList = (urlParams, params) => WeaTools.callApi(`/api/hrm/permissiontoadjustbrowser/list/${urlParams}`, 'GET', params)
export const getProcessLog = (params) => WeaTools.callApi('/api/hrm/permissiontoadjust/getProcessLog', 'GET', params)
export const checkFromId = (params) => WeaTools.callApi('/api/hrm/permissiontoadjust/checkFromId', 'GET', params)
export const initModuleData = (urlParams, params) => Promise.all([getCondition(urlParams), getList(urlParams, params)])

View File

@ -0,0 +1,18 @@
import {
WeaTools
} from 'ecCom';
/**
* 获取tab数据
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getFormInfo = (params = {}) => WeaTools.callApi('/api/hrm/permissionsearch/getPermissionSearchForm', 'GET', params)
export const getTableData = (params = {}) => WeaTools.callApi('/api/hrm/permissionsearch/getPermissionSearchResult', 'POST', params)
export const getCondition = (urlParams, params) => WeaTools.callApi(`/api/hrm/permissiontoadjustbrowser/condition/${urlParams}`, 'GET', params)
export const getList = (urlParams, params) => WeaTools.callApi(`/api/hrm/permissiontoadjustbrowser/list/${urlParams}`, 'GET', params)
export const initModuleData = (urlParams, params) => Promise.all([getCondition(urlParams), getList(urlParams, params)])

View File

@ -0,0 +1,107 @@
import {
WeaTools
} from 'ecCom';
/**
* 获取tab数据
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getTabInfo = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightGroupTabInfo', 'GET', params)
/********************* group api *********************/
/**
* 获取权限组查询条件
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getAuthorizationGroupCondition = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightGroupCondition', 'GET', params)
/**
* 获取权限组设置表单
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getAuthorizationGroupForm = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightGroupForm?is_multilang_set=true', 'GET', params)
/**
* 获取权限组数据
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getAuthorizationGroupList = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightGroupList', 'POST', params)
/**
* 保存权限组
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const saveAuthorizationGroup = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/saveSystemRightGroup', 'POST', params)
/**
* 删除权限组
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const removeAuthorizationGroup = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/delSystemRightGroup', 'POST', params)
/********************* group api *********************/
/********************* authorization api *********************/
/**
* 获取权限组查询条件
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getAuthorizationListCondition = (params = {}) => WeaTools.callApi('/api/hrm/systemrightauthority/getSystemRightAuthorityCondition', 'GET', params)
/**
* 获取全部权限数据
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const getAuthorizationList = (params = {}) => WeaTools.callApi('/api/hrm/systemrightauthority/getSystemRightAuthorityList', 'POST', params)
/**
* 保存权限组权限明细
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const saveGroupAuthorizatioRela = (params = {}) => WeaTools.callApi('/api/hrm/systemrightauthority/saveSystemRightAuthority', 'POST', params)
/**
* 移除权限组权限明细
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const removeGroupAuthorizatioRela = (params = {}) => WeaTools.callApi('/api/hrm/systemrightauthority/delSystemRightAuthority', 'POST', params)
/********************* authorization api *********************/
/********************* promise api *********************/
/**
* 初始权限设置化模块数据
* @return {[type]} [description]
*/
export const initData = () => Promise.all([getTabInfo(), getAuthorizationGroupCondition()])
/**
* 初始化权限组tab页数据
* @return {[type]} [description]
*/
export const initAuthorizationGroupData = () => Promise.all([getAuthorizationGroupCondition(), getAuthorizationGroupList()])
/**
* 初始化权限明细tab页数据
* @return {[type]} [description]
*/
export const initAuthorizationListData = () => Promise.all([getAuthorizationListCondition(), getAuthorizationList()])
export const initAuthorizationEditDialog = (params = {}) => Promise.all([getAuthorizationGroupForm(params), getAuthorizationListCondition(), getAuthorizationList(params)])
/********************* promise api *********************/
export const getSystemRightRolesCondition = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightRolesCondition', 'GET', params)
export const getSystemRightRolesList = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightRolesList', 'POST', params)
export const getSystemRightRolesForm = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/getSystemRightRolesForm', 'GET', params)
export const addSystemRightRoles = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/addSystemRightRoles', 'POST', params)
export const editSystemRightRoles = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/editSystemRightRoles', 'POST', params)
export const delSystemRightRoles = (params = {}) => WeaTools.callApi('/api/hrm/systemrightgroup/delSystemRightRoles', 'POST', params)

View File

@ -0,0 +1,8 @@
import {
WeaTools
} from 'ecCom';
export const getAvatarSettingForm = (params = {}) => WeaTools.callApi('/api/hrm/systemAvatarSetting/getStyleSettingForm', 'GET', params)
// 保存
export const saveForm = (params = {}) => WeaTools.callApi('/api/hrm/systemAvatarSetting/saveStyleSetting', 'POST', params)

View File

@ -0,0 +1,7 @@
import {
WeaTools
} from 'ecCom'
export const getBasicDataImportHasRight = (params) => {
return WeaTools.callApi('/api/hrm/import/resource/getBasicDataImportHasRight', 'GET', params);
}

View File

@ -0,0 +1,25 @@
import {
WeaTools
} from 'ecCom';
export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getRightMenu', 'POST', params)
export const batchSubCompany = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/batchSubcompany?is_multilang_set=true', 'POST', params)
export const batchDepartment = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/batchDepartment?is_multilang_set=true', 'POST', params)
export const batchResource = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/batchResource?is_multilang_set=true', 'POST', params)
export const saveBatchSubCompany = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/saveBatchSubcompany', 'POST', params)
export const saveBatchDepartment = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/saveBatchDepartment', 'POST', params)
export const saveBatchResource = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/saveBatchResource', 'POST', params)
export const getSubCompanyInfo = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getSubcompanyInfo', 'POST', params)
export const checkSubDeptAvailable = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/checkSubDeptAvailable', 'POST', params)
export const getTabInfo = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjust/get${type}Tab`, 'POST', params)
export const getConfirmInfo = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjust/${type}/getConfirmInfo`, 'POST', params)

View File

@ -0,0 +1,25 @@
import {
WeaTools
} from 'ecCom';
export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjustEdit/getRightMenu', 'POST', params)
export const getCondition = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/${type}/batchCondition`, 'POST', params)
export const batch = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/${type}/batch?is_multilang_set=true`, 'POST', params)
export const saveBatch = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/${type}/saveBatch`, 'POST', params)
export const getForm = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/getBatch${type}?is_multilang_set=true`, 'POST', params)
export const saveForm = (params = {}, type) => WeaTools.callApi(`/api/hrm/batchMaintenanceAdjustEdit/saveBatch${type}`, 'POST', params)
export const getSubCompanyInfo = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getSubcompanyInfo', 'POST', params)
export const checkSubDeptAvailable = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/checkSubDeptAvailable', 'POST', params)
export const hrmOffline = (params = {}) => WeaTools.callApi('/api/hrm/common/hrmOffline', 'POST', params)
export const saveBatchDefaultPwd = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjustEdit/saveBatchDefaultPwd', 'POST', params)
export const isWeakPassword = (params = {}) => WeaTools.callApi('/api/hrm/password/isWeakPassword', 'POST', params)

View File

@ -0,0 +1,21 @@
import {
WeaTools
} from 'ecCom';
export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getRightMenu', 'POST', params)
export const batchSubCompany = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/batchSubcompany', 'POST', params)
export const batchDepartment = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/batchDepartment', 'POST', params)
export const batchResource = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/batchResource', 'POST', params)
export const saveBatchSubCompany = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/saveBatchSubcompany', 'POST', params)
export const saveBatchDepartment = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/saveBatchDepartment', 'POST', params)
export const saveBatchResource = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/saveBatchResource', 'POST', params)
export const getSubCompanyInfo = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getSubcompanyInfo', 'POST', params)
export const getResourceTab = (params = {}) => WeaTools.callApi('/api/hrm/batchMaintenanceAdjust/getResourceTab', 'POST', params)

View File

@ -0,0 +1,18 @@
import {
WeaTools
} from 'ecCom';
export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/getRightMenu', 'POST', params)
export const getCondition = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/batchResourcePhotoSearchCondition', 'POST', params)
export const getList = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/batchResourcePhotoList', 'POST', params)
export const getForm = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/getPhotoImportForm', 'POST', params)
export const saveForm = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/savePhotoImport', 'POST', params)
export const deletePhoto = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/delPhoto', 'POST', params)
export const changePhoto = (params = {}) => WeaTools.callApi('/api/hrm/batchResourcePhoto/changePhoto', 'POST', params)

View File

@ -0,0 +1,55 @@
import {
WeaTools
} from 'ecCom'
export const getTabOneDatas = (params) => {
return WeaTools.callApi('/api/hrm/birthday/getSysRemindForm', 'GET', params);
}
export const getAuthForm = (params) => {
return WeaTools.callApi('/api/hrm/birthday/getSysRemindAddForm?is_multilang_set=true', 'GET', params);
}
export const getTabTwoForm = (params) => {
return WeaTools.callApi('/api/hrm/birthday/getEpRemindForm?is_multilang_set=true', 'GET', params);
}
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/birthday/getHasRight', 'GET', params);
}
export const tabTwoFormSave = (params) => {
return WeaTools.callApi('/api/hrm/birthday/saveStaffRemind', 'POST', params);
}
export const saveImg = (params) => {
return WeaTools.callApi('/api/hrm/birthday/saveImg', 'POST', params);
}
export const saveEntryRemind = (params) => {
return WeaTools.callApi('/api/hrm/entryremind/savePicChange', 'POST', params);
}
export const authSave = (params) => {
return WeaTools.callApi('/api/hrm/birthday/saveSysMember', 'POST', params);
}
export const tabOneSave = (params) => {
return WeaTools.callApi('/api/hrm/birthday/saveSysRemind', 'POST', params);
}
export const entryRemindSave = (params) => {
return WeaTools.callApi('/api/hrm/entryremind/save', 'POST', params);
}
export const delRows = (params) => {
return WeaTools.callApi('/api/hrm/birthday/deleteSysMember', 'POST', params);
}
export const getTable = (params) => {
return WeaTools.callApi('/api/hrm/birthday/getSysMemberList', 'GET', params);
}
export const getEntryDatas = (params) => {
return WeaTools.callApi('/api/hrm/entryremind/getEntryRemindForm', 'GET', params);
}

View File

@ -0,0 +1,9 @@
import {WeaTools} from 'ecCom';
export const getTabs = params => WeaTools.callApi('/api/hrm/browserDisplayField/getTabs', 'POST', params);
export const getFields = params => WeaTools.callApi('/api/hrm/browserDisplayField/getFields', 'POST', params);
export const save = params => WeaTools.callApi('/api/hrm/browserDisplayField/save', 'POST', params);

View File

@ -0,0 +1,23 @@
import {
WeaTools
} from 'ecCom'
export const getCardItemsData = (params) => {
return WeaTools.callApi('/api/hrm/carddisplay/getNodeList', 'GET', params);
}
export const cardItemsSettingSave = (params) => {
return WeaTools.callApi('/api/hrm/carddisplay/saveSystemCard', 'POST', params);
}
export const userDefineCardItemSave = (params) => {
return WeaTools.callApi('/api/hrm/carddisplay/saveCustomCard', 'POST', params);
}
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/carddisplay/getHasRight', 'GET', params);
}
export const getTableEdit = (params) => {
return WeaTools.callApi('/api/hrm/carddisplay/getCustomCardTable', 'GET', params);
}

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/area/getCityForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/area/editCity', 'POST', params);
}

View File

@ -0,0 +1,25 @@
import {
WeaTools
} from 'ecCom'
/**
* 获取权限
* @param {[type]} moduleName [模块名]
* @param {Object} params [description]
* @return {[type]} [description]
*/
export const authorized = (moduleName, params = {}, apiMethod = 'getHasRight') => WeaTools.callApi(`/api/hrm/${moduleName}/${apiMethod}`, 'POST', params);
/**
* 应用分权
*/
export const detachable = (params = {}) => WeaTools.callApi('/api/hrm/common/getDetachable', 'GET', params);
export const getDetachableAll = (params = {}) => WeaTools.callApi('/api/hrm/common/getDetachableAll', 'GET', params);
export const checkAuthAndDetach = (moduleName, params = {}, apiMethod = 'getHasRight') => Promise.all([authorized(moduleName, params = {}, apiMethod || 'getHasRight'), detachable()])
export const exportExcel = (params = {}) => WeaTools.callApi('/api/ec/dev/table/export', 'POST', params)
export const isEnableMultiLang = (params = {}) => WeaTools.callApi('/api/hrm/common/isEnableMultiLang', 'GET', params)
export const getPinYin = (params = {}) => WeaTools.callApi('/api/workflow/formSetting/fieldSet/getPinYin', 'POST', params)

View File

@ -0,0 +1,31 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/getRightMenu', 'GET', params);
}
export const getContentInfo = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/getSysRemindForm?is_multilang_set=true', 'GET', params);
}
export const getFormInfo = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/getSysMemberAddForm?is_multilang_set=true', 'GET', params);
}
export const saveMainForm = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/saveSysRemind', 'POST', params);
}
export const saveSubForm = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/addSysMember', 'POST', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contractsetting/deleteSysMember', 'POST', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/contract/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/contract/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contract/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/contract/getSearchCondition', 'GET', params);
}
export const getFormInfo = (params) => {
return WeaTools.callApi('/api/hrm/contract/getContractForm', 'GET', params);
}
export const getContractTypeInfo = (params) => {
return WeaTools.callApi('/api/hrm/contract/getContractTypeInfo', 'POST', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contract/deleteContract', 'POST', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/contract/saveContract', 'POST', params);
}

View File

@ -0,0 +1,31 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/getSearchCondition', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/delete', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/contractmodule/edit', 'POST', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/getSearchCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/getContractTypeForm?is_multilang_set=true', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/delete', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/contracttype/edit', 'POST', params);
}

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/area/getCountryForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/area/editCountry', 'POST', params);
}

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/area/getCityTwoForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/area/editCityTwo', 'POST', params);
}

View File

@ -0,0 +1,47 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/getHasRight', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/getAdminSearchList', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/getSearchCondition', 'GET', params);
}
export const getEditorForm = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/getAddorEditForm?is_multilang_set=true', 'GET', params);
}
export const getSecuritySetForm = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/getSecForm?is_multilang_set=true', 'GET', params);
}
export const addAdminInfo = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/add', 'POST', params);
}
export const deleteTableRows = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/delete', 'POST', params);
}
export const editAdminInfo = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/edit', 'POST', params);
}
export const securitySave = (params) => {
return WeaTools.callApi('/api/hrm/detachsysadmin/saveSec', 'POST', params);
}
export const isUseSecondaryPwd = (params) => {
return WeaTools.callApi('/api/hrm/secondarypwd/isUseSecondaryPwd', 'GET', params);
}
export const saveUseSecondaryPwd = (params) => {
return WeaTools.callApi('/api/hrm/secondarypwd/saveUseSecondaryPwd', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHrmFireForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/statechange/saveHrmFire', 'POST', params);
}

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobActivityForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/job/editeJobActivity', 'POST', params);
}

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobGroupForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/job/editeJobGroup', 'POST', params);
}

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/getEduForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/edit', 'POST', params);
}

View File

@ -0,0 +1,31 @@
import {
WeaTools
} from 'ecCom'
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/getHasRight', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/edit', 'POST', params);
}
export const deleteRows = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/delete', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/getSearchCondition', 'GET', params);
}
export const getSearchList = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/getSearchList', 'GET', params);
}
export const getNeForm = (params) => {
return WeaTools.callApi('/api/hrm/edulevel/getEduForm?is_multilang_set=true', 'GET', params);
}

View File

@ -0,0 +1,13 @@
import { WeaTools } from 'ecCom'
export const getHasRight = params => {
return WeaTools.callApi('/api/hrm/edulevel/getHasRight', 'GET', params);
}
export const getSearchCondition = params => {
return WeaTools.callApi('/api/hrm/edulevel/getSearchCondition', 'GET', params);
}
export const getSearchList = params => {
return WeaTools.callApi('/api/hrm/edulevel/getSearchList', 'POST', params);
}

View File

@ -0,0 +1,9 @@
//gai
import { WeaTools } from 'ecCom'
export const getelseSettingForm = params => {
return WeaTools.callApi('/api/hrm/accountcenter/othersettings/getOtherSettingForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/accountcenter/othersettings/save', 'POST', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/getRightMenu', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/getSearchCondition', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/delete', 'POST', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/getSearchList', 'GET', params);
}
export const getFormInfo = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/getUseDemandForm', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/usedemand/edit', 'POST', params);
}

View File

@ -0,0 +1,47 @@
import {
WeaTools
} from 'ecCom'
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/getHasRight', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/edit', 'POST', params);
}
export const deleteRows = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/delete', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/getSearchCondition', 'GET', params);
}
export const getSearchList = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/getSearchList', 'GET', params);
}
export const getNeForm = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/getOrgGroupForm?is_multilang_set=true', 'GET', params);
}
export const getAddGpMemForm = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/getOrgRelatedForm?is_multilang_set=true', 'GET', params);
}
export const memberSave = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/addRelated', 'POST', params);
}
export const getMemTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/getRelatedSearchList', 'GET', params);
}
export const memTableRowDel = (params) => {
return WeaTools.callApi('/api/hrm/orggroups/deleteRelated', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/entrymaintaince/getSettingTable?is_multilang_set=true', 'GET', params);
}
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/entrymaintaince/getHasRight', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/entrymaintaince/save', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHrmHireForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/statechange/saveHrmHire', 'POST', params);
}

View File

@ -0,0 +1,31 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/getSearchCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/getFormInfo?is_multilang_set=true', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/delete', 'POST', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/effectmanage/save', 'POST', params);
}

View File

@ -0,0 +1,29 @@
import { WeaTools } from 'ecCom'
//获取导入表单
export const getImportForm = (params) => {
return WeaTools.callApi('/api/hrm/importorg/getImportForm', 'GET', params);
}
//导入文件提交
export const saveImport = (params) => {
return WeaTools.callApi('/api/hrm/importorg/saveImport', 'POST', params);
}
//获取导入结果回调数据
export const getImportProcessLog = (params) => {
return WeaTools.callApi('/api/hrm/importorg/getImportProcessLog', 'GET', params);
}
//获取导入结果
export const getImportResult = (params) => {
return WeaTools.callApi('/api/hrm/importorg/getImportResult', 'GET', params);
}
//历史导入信息查询
export const getImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/importorg/getImportHistory', 'GET', params);
}
//导入日志
export const getImportLogDetail = (params) => {
return WeaTools.callApi('/api/hrm/importorg/getImportColResultLog', 'GET', params);
}
//导入日志 - 高级搜索
export const getImportLogSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/importorg/getHistorySearchCondition', 'GET', params);
}

View File

@ -0,0 +1,29 @@
import { WeaTools } from 'ecCom'
//获取导入表单
export const getImportForm = (params) => {
return WeaTools.callApi(`/api/hrm/import/resource/getImportForm`, 'GET', params);
}
//导入文件提交
export const saveImport = (params) => {
return WeaTools.callApi(`/api/hrm/import/resource/saveImport`, 'POST', params);
}
//获取导入结果回调数据
export const getImportProcessLog = (params) => {
return WeaTools.callApi(`/api/hrm/importlog/getImportProcessLog`, 'GET', params);
}
//获取导入结果
export const getImportResult = (params) => {
return WeaTools.callApi(`/api/hrm/importlog/getImportResult`, 'GET', params);
}
//历史导入信息查询
export const getImportHistory = (params) => {
return WeaTools.callApi(`/api/hrm/importlog/getImportHistory`, 'GET', params);
}
//导入日志
export const getImportLogDetail = (params) => {
return WeaTools.callApi(`/api/hrm/importlog/getImportColResultLog`, 'GET', params);
}
//导入日志 - 高级搜索
export const getImportLogSearchCondition = (params) => {
return WeaTools.callApi(`/api/hrm/importlog/getHistorySearchCondition`, 'GET', params);
}

View File

@ -0,0 +1,9 @@
import {
WeaTools
} from 'ecCom'
export const getList = (params = {}) => WeaTools.callApi('/api/hrm/schedule/leaveType/getLeaveTypeColorFrom?is_multilang_set=true', 'POST', params);
export const save = (params = {}) => WeaTools.callApi('/api/hrm/schedule/leaveType/saveLeaveTypeColorFrom', 'POST', params);
export const remove = (params = {}) => WeaTools.callApi('/api/hrm/schedule/leaveType/delLeaveTypeColorFrom', 'POST', params);

View File

@ -0,0 +1,36 @@
import {
WeaTools
} from 'ecCom'
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/getHasRight', 'GET', params);
}
export const getRightMenu = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/getRightMenu', 'GET', params);
}
export const getBasicInfo = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/getBasicInfo', 'GET', params);
}
export const getUserClassification = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/getUserClassification', 'GET', params);
}
export const getResourceClassification = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/getResourceClassification', 'GET', params);
}
export const saveBasicInfo = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/saveBasicInfo', 'POST', params);
}
export const saveUserClassification = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/saveUserClassification', 'POST', params);
}
export const saveResourceClassification = (params) => {
return WeaTools.callApi('/api/hrm/classifiedProtection/saveResourceClassification', 'POST', params);
}

View File

@ -0,0 +1,23 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/refuserp/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/refuserp/getRightMenu', 'GET', params);
}
export const getScope = (params) => {
return WeaTools.callApi('/api/hrm/refuserp/getSearchCondition', 'GET', params);
}
export const getMaxOnlineNumber = (params) => {
return WeaTools.callApi('/api/hrm/refuserp/getMaxNum', 'GET', params);
}
export const getEchartsDatas = (params) => {
return WeaTools.callApi('/api/hrm/refuserp/getSearchResult', 'GET', params);
}

View File

@ -0,0 +1,19 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/loginfailedlog/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/loginfailedlog/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/loginfailedlog/getSearchList', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/loginfailedlog/getSearchCondition', 'GET', params);
}

View File

@ -0,0 +1,19 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/loginlog/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/loginlog/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/loginlog/getSearchList', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/loginlog/getAdvanceCondition', 'GET', params);
}

View File

@ -0,0 +1,55 @@
import {
WeaTools
} from 'ecCom'
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getHasRight', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/speciality/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/speciality/edit', 'POST', params);
}
export const deleteRows = (params) => {
return WeaTools.callApi('/api/hrm/speciality/delete', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getSearchCondition', 'GET', params);
}
export const getSearchList = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getSearchList', 'GET', params);
}
export const getNeForm = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getSpecialityForm?is_multilang_set=true', 'GET', params);
}
export const getImportForm = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getImportForm?is_multilang_set=true', 'GET', params);
}
export const saveImport = (params) => {
return WeaTools.callApi('/api/hrm/speciality/saveImport', 'POST', params);
}
export const getImportResultDetail = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getImportRowResultLog', 'GET', params);
}
export const getImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getImportHistory', 'GET', params);
}
export const getImportLogDetail = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getImportColResultLog', 'GET', params);
}
export const getImportLogSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/speciality/getHistorySearchCondition', 'GET', params);
}

View File

@ -0,0 +1,67 @@
/*
* @Author: sunjsh
* @Date: 2020-11-04 13:35:25
* @LastEditTime: 2020-11-19 14:50:02
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /hrmengine/apis/matrix.js
*/
import {
WeaTools
} from 'ecCom';
//矩阵设置
export const getMatrixList = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixListSearchList', 'POST', params)
export const getMatrixListConditionList = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixListConditionList', 'POST', params)
export const getMatrixInfoForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixListSetForm?is_multilang_set=true', 'POST', params)
export const saveMatrixInfo = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/addMatrixList', 'POST', params)
export const removeMatrixInfo = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/delMatrixList', 'POST', params)
export const getMaintenanceForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintSetForm?is_multilang_set=true', 'POST', params)
export const getMaintenanceList = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintSearchList', 'POST', params)
export const saveMatrixMaintenance = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/addMatrixMaint', 'POST', params)
export const removeMatrixMaintenance = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/delMatrixMaint', 'POST', params)
export const getMatrixMaintRightLevelForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintRightLevelForm', 'POST', params)
export const saveMatrixMaintRightLevel = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/saveMatrixMaintRightLevel', 'POST', params)
export const getFieldForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixDesignSetForm?is_multilang_set=true', 'POST', params)
export const saveField = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/addMatrixDesign', 'POST', params)
export const getMatrixData = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixTableSetForm', 'POST', params)
export const saveMatrixData = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/addMatrixTable', 'POST', params)
export const removeMatrixData = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/delMatrixTable', 'POST', params)
export const matrixExport = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/matrixExport', 'POST', params)
export const getMatrixFile = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixFile', 'POST', params)
export const getMatrixTableStringForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixTableStringForm', 'POST', params)
export const getMatrixShowNameSetForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixShowNameSetForm', 'POST', params)
export const saveMatrixShowNameSetForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/saveMatrixShowNameSetForm', 'POST', params)
export const clearDimission = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/clearDimission', 'POST', params)
//矩阵分权
export const getMatrixMaintInfoListCondition = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintInfoListCondition', 'POST', params)
export const getMatrixMaintInfoList = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintInfoList', 'POST', params)
export const delMatrixMaintInfo = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/delMatrixMaintInfo', 'POST', params)
export const getMatrixMaintTab = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintTab', 'POST', params)
export const getMatrixMaintSearchCondition = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintSearchCondition', 'POST', params)
export const getMatrixMaintConditionForm = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintConditionForm', 'POST', params)
export const getMatrixMaintConditionList = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintConditionList', 'POST', params)
export const saveMatrixMaintCondition = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/saveMatrixMaintCondition', 'POST', params)
export const delMatrixMaintCondition = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/delMatrixMaintCondition', 'POST', params)
export const getMatrixMaintColList = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/getMatrixMaintColList', 'POST', params)
export const saveMatrixMaintCol = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/saveMatrixMaintCol', 'POST', params)
export const delMatrixMaintCol = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixList/delMatrixMaintCol', 'POST', params)
//old version
//export const initMaintenanceData = (params = {}) => Promise.all([getMaintenanceForm(params), getMaintenanceList(params)])
//new version
export const initMaintenanceData = (params = {}) => Promise.all([getMatrixMaintInfoListCondition(params), getMatrixMaintInfoList(params)])
export const initMaintenanceSettingData = (params = {}) => Promise.all([getMatrixMaintTab(params), getMatrixMaintSearchCondition(params), getMaintenanceForm()])
export const initConditionData = (params = {}) => Promise.all([getMatrixMaintConditionForm(params), getMatrixMaintConditionList(params)])
// export const initColumnData = (params = {}) => Promise.all([getMatrixMaintConditionForm(params), getMatrixMaintColList(params)])
export const initColumnData = (params = {}) => Promise.all([getMatrixMaintColList(params)])
export const initFieldData = (params = {}) => Promise.all([getFieldForm(), getFieldForm(params)])
export const initMatrixData = (params = {}) => Promise.all([getMatrixTableStringForm(params), getMatrixShowNameSetForm(params)])
//矩阵批量调整
export const getFormInfo = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixMassMaint/getMatrixListMassMaintForm', 'GET', params)
export const processData = (params = {}) => WeaTools.callApi('/api/hrm/matrix/pages/matrixMassMaint/addMatrixListMassMaintForm', 'POST', params)

View File

@ -0,0 +1,27 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/modulemanagerdetach/getHasRight', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/modulemanagerdetach/getAdminSearchList', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/modulemanagerdetach/getSearchCondition', 'GET', params);
}
export const getEditorForm = (params) => {
return WeaTools.callApi('/api/hrm/modulemanagerdetach/getAddorEditForm?is_multilang_set=true', 'GET', params);
}
export const addModuleManageInfo = (params) => {
return WeaTools.callApi('/api/hrm/modulemanagerdetach/save', 'POST', params);
}
export const deleteTableRows = (params) => {
return WeaTools.callApi('/api/hrm/modulemanagerdetach/delete', 'POST', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom';
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/normalLog/getHasRight', 'GET', params);
}
export const getRightMenu = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/normalLog/getRightMenu', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/normalLog/getSearchCondition', 'GET', params);
}
export const getLoginLogList = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/normalLog/getLoginLogList', 'GET', params);
}
export const getOperateLogList = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/normalLog/getOperateLogList', 'GET', params);
}
export const exportExcelLog = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/normalLog/exportExcelLog', 'POST', params);
}
export const viewdetail = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/transLog/viewDetail', 'GET', params);
}
export const trans = (params) => {
return WeaTools.callApi('/api/hrm/sanyuan/transLog/transLog', 'GET', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/location/getLocationForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/location/edit', 'POST', params);
}
export const getCountryDetail = (params) => {
return WeaTools.callApi('/api/hrm/location/getCountryDetail', 'GET', params);
}

View File

@ -0,0 +1,71 @@
import {
WeaTools
} from 'ecCom'
export const getSearchList = (params) => {
return WeaTools.callApi('/api/hrm/location/getSearchList', 'POST', params);
}
export const getAdvanceSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/location/getAdvanceSearchCondition', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/location/add', 'POST', params);
}
export const getLocationForm = (params) => {
return WeaTools.callApi('/api/hrm/location/getLocationForm?is_multilang_set=true', 'GET', params);
}
export const deleteTableData = (params) => {
return WeaTools.callApi('/api/hrm/location/delete', 'POST', params);
}
export const getImportForm = (params) => {
return WeaTools.callApi('/api/hrm/location/getImportForm?is_multilang_set=true', 'GET', params);
}
export const saveImport = (params) => {
return WeaTools.callApi('/api/hrm/location/saveImport', 'POST', params);
}
export const getImportLogList = (params) => {
return WeaTools.callApi('/api/hrm/location/getImportLogList', 'GET', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/location/edit', 'POST', params);
}
export const getImportResult = (params) => {
return WeaTools.callApi('/api/hrm/location/getImportResult', 'GET', params);
}
export const getCountryDetail = (params) => {
return WeaTools.callApi('/api/hrm/location/getCountryDetail', 'GET', params);
}
export const deleteImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/location/deleteImportHistory', 'POST', params);
}
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/location/getHasRight', 'GET', params);
}
export const getImportResultDetail = (params) => {
return WeaTools.callApi('/api/hrm/location/getImportRowResultLog', 'GET', params);
}
export const getImportLogDetail = (params) => {
return WeaTools.callApi('/api/hrm/location/getImportColResultLog', 'GET', params);
}
export const getImportLogSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/location/getHistorySearchCondition', 'GET', params);
}
export const getImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/location/getImportHistory', 'GET', params);
}

View File

@ -0,0 +1,23 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/onlinerp/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/onlinerp/getRightMenu', 'GET', params);
}
export const getScope = (params) => {
return WeaTools.callApi('/api/hrm/onlinerp/getSearchCondition', 'GET', params);
}
export const getMaxOnlineNumber = (params) => {
return WeaTools.callApi('/api/hrm/onlinerp/getMaxOnlineNum', 'GET', params);
}
export const getEchartsDatas = (params) => {
return WeaTools.callApi('/api/hrm/onlinerp/getSearchResult', 'GET', params);
}

View File

@ -0,0 +1,6 @@
import {
WeaTools
} from 'ecCom';
export const getForm = (params = {}) => WeaTools.callApi('/api/hrm/onlinekqsystemset/getOnlineKqSystemSetForm', 'GET', params)
export const save = (params = {}) => WeaTools.callApi('/api/hrm/onlinekqsystemset/saveOnlineKqSystemSet', 'POST', params)

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getOrgVirtualData = (params) => WeaTools.callApi('/api/hrm/orgchart/getOrgVirtualData', 'POST', params)
export const getOrgChartSet = (params) => WeaTools.callApi('/api/hrm/orgchart/getOrgChartSet', 'POST', params)
export const saveOrgChartSet = (params) => WeaTools.callApi('/api/hrm/orgchart/saveOrgChartSet', 'POST', params)
export const getOrgChartData = (params) => WeaTools.callApi('/api/hrm/orgchart/getOrgChartData', 'POST', params)
export const getOrgChartDataAjax = (params) => WeaTools.callApi('/api/hrm/orgchart/getOrgChartDataAjax', 'POST', params)
export const initData = (params = {}) => Promise.all([getOrgVirtualData(), getOrgChartSet()])

View File

@ -0,0 +1,19 @@
import {
WeaTools
} from 'ecCom';
export const getHasRight = params => {
return WeaTools.callApi('/api/hrm/organizationShowSet/getHasRight', 'GET', params);
}
export const getRightMenu = params => {
return WeaTools.callApi('/api/hrm/organizationShowSet/getRightMenu', 'GET', params);
}
export const getOrganizationShowSetForm = params => {
return WeaTools.callApi('/api/hrm/organizationShowSet/getOrganizationShowSetForm', 'GET', params);
}
export const saveOrganizationShowSet = params => {
return WeaTools.callApi('/api/hrm/organizationShowSet/saveOrganizationShowSet', 'POST', params);
}

View File

@ -0,0 +1,146 @@
import { WeaTools } from 'ecCom'
export const getHasRight = params => {
return WeaTools.callApi('/api/hrm/organization/getHasRight', 'POST', params);
}
export const getRightMenu = params => {
return WeaTools.callApi('/api/hrm/organization/getRightMenu', 'POST', params);
}
export const getTabs = params => {
return WeaTools.callApi('/api/hrm/organization/getTabs', 'POST', params);
}
export const getCompanyFormField = params => {
return WeaTools.callApi('/api/hrm/organization/getCompanyFormField?is_multilang_set=true', 'GET', params);
}
export const getSubCompanyFormField = params => {
return WeaTools.callApi('/api/hrm/organization/getSubCompanyFormField?is_multilang_set=true', 'GET', params);
}
export const getDepartmentFormField = params => {
return WeaTools.callApi('/api/hrm/organization/getDepartmentFormField?is_multilang_set=true', 'GET', params);
}
export const getSubCompanyFormFieldView = params => {
return WeaTools.callApi('/api/hrm/organization/getSubCompanyFormFieldView', 'GET', params);
}
export const getDepartmentFormFieldView = params => {
return WeaTools.callApi('/api/hrm/organization/getDepartmentFormFieldView', 'GET', params);
}
export const addSubCompany = params => {
return WeaTools.callApi('/api/hrm/organization/addSubCompany', 'POST', params);
}
export const addDepartment = params => {
return WeaTools.callApi('/api/hrm/organization/addDepartment', 'POST', params);
}
export const editCompany = params => {
return WeaTools.callApi('/api/hrm/organization/editCompany', 'POST', params);
}
export const editSubCompany = params => {
return WeaTools.callApi('/api/hrm/organization/editSubCompany', 'POST', params);
}
export const editDepartment = params => {
return WeaTools.callApi('/api/hrm/organization/editDepartment', 'POST', params);
}
export const delSubCompany = params => {
return WeaTools.callApi('/api/hrm/organization/delSubCompany', 'POST', params);
}
export const delDepartment = params => {
return WeaTools.callApi('/api/hrm/organization/delDepartment', 'POST', params);
}
export const getSubCompanySearchCondition = params => {
return WeaTools.callApi('/api/hrm/organization/getSubCompanySearchCondition', 'GET', params);
}
export const getDepartmentSearchCondition = params => {
return WeaTools.callApi('/api/hrm/organization/getDepartmentSearchCondition', 'GET', params);
}
export const getResourceSearchCondition = params => {
return WeaTools.callApi('/api/hrm/organization/getResourceSearchCondition', 'GET', params);
}
export const getSubCompanySearchList = params => {
return WeaTools.callApi('/api/hrm/organization/getSubCompanySearchList', 'POST', params);
}
export const getDepartmentSearchList = params => {
return WeaTools.callApi('/api/hrm/organization/getDepartmentSearchList', 'POST', params);
}
export const getResourceSearchList = params => {
return WeaTools.callApi('/api/hrm/organization/getResourceSearchList', 'POST', params);
}
export const doSubCompanyCancel = params => {
return WeaTools.callApi('/api/hrm/organization/doSubCompanyCancel', 'POST', params);
}
export const doDepartmentCancel = params => {
return WeaTools.callApi('/api/hrm/organization/doDepartmentCancel', 'POST', params);
}
export const doSubCompanyISCanceled = params => {
return WeaTools.callApi('/api/hrm/organization/doSubCompanyISCanceled', 'POST', params);
}
export const doDepartmentISCanceled = params => {
return WeaTools.callApi('/api/hrm/organization/doDepartmentISCanceled', 'POST', params);
}
export const saveBatchEdit = params => {
return WeaTools.callApi('/api/hrm/organization/saveBatchEdit', 'POST', params);
}
export const getResourceVirtualDepartmentSetFormField = params => {
return WeaTools.callApi('/api/hrm/organization/getResourceVirtualDepartmentSetFormField', 'POST', params);
}
export const saveResourceVirtualDepartmentSet = params => {
return WeaTools.callApi('/api/hrm/organization/saveResourceVirtualDepartmentSet', 'POST', params);
}
export const saveAddToGroup = params => {
return WeaTools.callApi('/api/hrm/organization/saveAddToGroup', 'POST', params);
}
//获取导入表单
export const getHrmResourceImportForm = (params) => {
return WeaTools.callApi('/api/hrm/organization/getHrmResourceImportForm', 'GET', params);
}
//导入文件提交
export const saveHrmResourceImport = (params) => {
return WeaTools.callApi('/api/hrm/organization/saveHrmResourceImport', 'POST', params);
}
//获取导入结果信息
export const getHrmResourceImportResult = (params) => {
return WeaTools.callApi('/api/hrm/organization/getHrmResourceImportResult', 'GET', params);
}
//历史导入信息查询
export const getHrmResourceImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/organization/getHrmResourceImportHistory', 'GET', params);
}
//下载历史导入信息
export const downloadHrmResourceImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/organization/downloadHrmResourceImportHistory', 'GET', params);
}
//删除历史导入日志
export const delHrmResourceImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/organization/delHrmResourceImportHistory', 'POST', params);
}
export const saveBatchDefaultPwd = (params) => {
return WeaTools.callApi('/api/hrm/organization/saveBatchDefaultPwd', 'POST', params);
}

View File

@ -0,0 +1,154 @@
import { WeaTools } from 'ecCom'
export const getHasRight = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getHasRight', 'POST', params);
}
export const getRightMenu = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getRightMenu', 'POST', params);
}
export const getTabs = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getTabs', 'POST', params);
}
export const getCompanyFormField = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getCompanyFormField?is_multilang_set=true', 'GET', params);
}
export const getSubCompanyFormField = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getSubCompanyFormField?is_multilang_set=true', 'GET', params);
}
export const getDepartmentFormField = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getDepartmentFormField?is_multilang_set=true', 'GET', params);
}
export const getSubCompanyFormFieldView = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getSubCompanyFormFieldView', 'GET', params);
}
export const getDepartmentFormFieldView = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getDepartmentFormFieldView', 'GET', params);
}
export const addCompany = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/addCompany', 'POST', params);
}
export const addSubCompany = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/addSubCompany', 'POST', params);
}
export const addDepartment = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/addDepartment', 'POST', params);
}
export const editCompany = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/editCompany', 'POST', params);
}
export const editSubCompany = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/editSubCompany', 'POST', params);
}
export const editDepartment = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/editDepartment', 'POST', params);
}
export const delCompany = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/delCompany', 'POST', params);
}
export const delSubCompany = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/delSubCompany', 'POST', params);
}
export const delDepartment = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/delDepartment', 'POST', params);
}
export const delResource = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/delResource', 'POST', params);
}
export const getSubCompanySearchCondition = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getSubCompanySearchCondition', 'GET', params);
}
export const getDepartmentSearchCondition = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getDepartmentSearchCondition', 'GET', params);
}
export const getResourceSearchCondition = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getResourceSearchCondition', 'GET', params);
}
export const getSubCompanySearchList = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getSubCompanySearchList', 'POST', params);
}
export const getDepartmentSearchList = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getDepartmentSearchList', 'POST', params);
}
export const getResourceSearchList = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getResourceSearchList', 'POST', params);
}
export const doSubCompanyCancel = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/doSubCompanyCancel', 'POST', params);
}
export const doDepartmentCancel = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/doDepartmentCancel', 'POST', params);
}
export const doSubCompanyISCanceled = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/doSubCompanyISCanceled', 'POST', params);
}
export const doDepartmentISCanceled = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/doDepartmentISCanceled', 'POST', params);
}
export const saveBatchEdit = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/saveBatchEdit', 'POST', params);
}
export const addResourceToVirtual = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/addResourceToVirtual', 'POST', params);
}
export const getBatchSetManagerFormField = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getBatchSetManagerFormField', 'POST', params);
}
export const saveBatchSetManager = params => {
return WeaTools.callApi('/api/hrm/organizationvirtual/saveBatchSetManager', 'POST', params);
}
//获取导入表单
export const getHrmResourceImportForm = (params) => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getHrmResourceImportForm', 'GET', params);
}
//导入文件提交
export const saveHrmResourceImport = (params) => {
return WeaTools.callApi('/api/hrm/organizationvirtual/saveHrmResourceImport', 'POST', params);
}
//获取导入结果信息
export const getHrmResourceImportResult = (params) => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getHrmResourceImportResult', 'GET', params);
}
//历史导入信息查询
export const getHrmResourceImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/organizationvirtual/getHrmResourceImportHistory', 'GET', params);
}
//下载历史导入信息
export const downloadHrmResourceImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/organizationvirtual/downloadHrmResourceImportHistory', 'GET', params);
}
//删除历史导入日志
export const delHrmResourceImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/organizationvirtual/delHrmResourceImportHistory', 'POST', params);
}

View File

@ -0,0 +1,19 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/othersetting/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/othersetting/getRightMenu', 'GET', params);
}
export const getFormInfo = (params) => {
return WeaTools.callApi('/api/hrm/othersetting/getOtherSettingForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/othersetting/save', 'POST', params);
}

View File

@ -0,0 +1,8 @@
import {
WeaTools
} from 'ecCom';
export const getForm = (params = {}) => WeaTools.callApi('/api/hrm/paidleave/getForm', 'GET', params)
export const save = (params = {}) => WeaTools.callApi('/api/hrm/paidleave/save', 'POST', params)
export const sync = (params = {}) => WeaTools.callApi('/api/hrm/paidleave/synChildSubCompany', 'POST', params)
export const getList = (params = {}) => WeaTools.callApi('/api/hrm/paidleave/getSearchList', 'POST', params)

View File

@ -0,0 +1,44 @@
import {
WeaTools
} from 'ecCom';
export const getCondition = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getPLSManagerSetCondition', 'GET', params)
//有效期设置
export const getPLSManagerSetList = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getPLSManagerSetList', 'POST', params)
export const getPLSManagerSetForm = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getPLSManagerSetForm', 'GET', params)
export const savePLSManagerSet = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/savePLSManagerSet', 'POST', params)
export const deletePLSManagerSet = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/deletePLSManagerSet', 'POST', params)
export const synPLSManagerSet = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/synPLSManagerSet', 'POST', params)
export const initPeriod = (params = {}) => Promise.all([getPLSManagerSetForm(), getCondition(params)])
//批量规则
export const getPLSManagerBatchList = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getPLSManagerBatchList', 'POST', params)
export const getPLSManagerBatchForm = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getPLSManagerBatchForm', 'GET', params)
export const savePLSManagerBatch = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/savePLSManagerBatch', 'POST', params)
export const deletePLSManagerBatch = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/deletePLSManagerBatch', 'POST', params)
export const synPLSManagerBatch = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/synPLSManagerBatch', 'POST', params)
export const initRule = (params = {}) => Promise.all([getPLSManagerBatchForm(), getCondition(params)])
//设置
export const getPLSManagerList = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getPLSManagerList', 'POST', params)
export const savePLSManager = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/savePLSManager', 'POST', params)
export const processPLSManager = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/processPLSManager', 'POST', params)
export const getImportForm = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/getImportForm?is_multilang_set=true', 'GET', params)
export const saveImport = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/saveImport', 'POST', params)
export const exportData = (params = {}) => WeaTools.callApi('/api/hrm/plsmanager/exportPLSManagerExcel', 'POST', params)

View File

@ -0,0 +1,63 @@
import {
WeaTools
} from 'ecCom'
export const getPageAuth = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getHasRight', 'GET', params);
}
export const getAllSubButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getListButtonMenu', 'GET', params);
}
export const getDeptButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getFormButtonMenu', 'POST', params);
}
export const getAllSubPayrollInfoTable = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getSalaryManageList', 'POST', params);
}
export const getDeptPayrollInfoTable = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getSalaryManageViewForm', 'POST', params);
}
export const getEditableDeptPayrollTable = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getSalaryManageEditForm', 'POST', params);
}
export const getAllSubSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getSalaryManageListCondition', 'POST', params);
}
export const getDeptSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getSalaryManageFormCondition', 'POST', params);
}
export const createPayroll = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/createSalaryManage', 'POST', params);
}
export const getSalaryManageTime = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/getSalaryManageTime', 'POST', params);
}
export const sendPayroll = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/sendSalaryManage', 'POST', params);
}
export const closePayroll = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/closeSalaryManage', 'POST', params);
}
export const adjustSalarySetting = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/changeSalaryManage', 'POST', params);
}
export const saveDeptPayrollInfo = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/editSalaryManage', 'POST', params);
}
export const exportExcel = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarymanage/exportExcel', 'POST', params);
}

View File

@ -0,0 +1,76 @@
import {
WeaTools
} from 'ecCom';
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getHasRight', 'POST', params);
}
export const getTemplateCondition = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getTemplateCondition', 'GET', params);
}
export const getTabs = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getTabs', 'GET', params);
}
export const getRightMenu = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getRightMenu', 'GET', params);
}
export const getDispatchForm = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getDispatchForm', 'GET', params);
}
export const dispatch = (params) => {
return WeaTools.callApi('/api/hrm/payroll/dispatch', 'POST', params);
}
export const getTemplateList = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getTemplateList', 'GET', params);
}
export const getTemplateForm = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getTemplateForm', 'GET', params);
}
export const saveTemplateForm = (params) => {
return WeaTools.callApi('/api/hrm/payroll/saveTemplateForm', 'POST', params);
}
export const saveDefaultTemplate = (params) => {
return WeaTools.callApi('/api/hrm/payroll/saveDefaultTemplate', 'POST', params);
}
export const deleteTemplate = (params) => {
return WeaTools.callApi('/api/hrm/payroll/deleteTemplate', 'POST', params);
}
export const getRecordCondition = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getRecordCondition', 'GET', params);
}
export const getRecordList = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getRecordList', 'GET', params);
}
export const getRecordDetailCondition = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getRecordDetailCondition', 'GET', params);
}
export const getRecordDetailList = (params) => {
return WeaTools.callApi('/api/hrm/payroll/getRecordDetailList', 'GET', params);
}
export const getImportProcessLog = (params) => {
return WeaTools.callApi('/api/hrm/importlog/getImportProcessLog', 'GET', params);
}
export const getImportResult = (params) => {
return WeaTools.callApi('/api/hrm/importlog/getImportResult', 'GET', params);
}
export const delRecordList = (params) => {
return WeaTools.callApi('/api/hrm/payroll/delRecordList', 'POST', params);
}

View File

@ -0,0 +1,27 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarychange/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarychange/getButtonMenu', 'POST', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarychange/getSalaryChangeLogList', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarychange/getSalaryChangeLogCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarychange/getSalaryChangeForm?is_multilang_set=true', 'POST', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarychange/saveSalaryChange', 'POST', params);
}

View File

@ -0,0 +1,110 @@
import {
WeaTools
} from 'ecCom'
export const getHasRight = (params) => {
return WeaTools.callApi('/api/hrm/job/getHasRight', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/job/getSearchCondition', 'GET', params);
}
export const getJobGroupList = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobGroupList', 'GET', params);
}
export const getJobActivityList = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobActivityList', 'GET', params);
}
export const getJobTitleList = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobTitleList', 'GET', params);
}
export const getJobGroupForm = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobGroupForm?is_multilang_set=true', 'GET', params);
}
export const getJobForm = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobActivityForm?is_multilang_set=true', 'GET', params);
}
export const getPostForm = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobTitleForm?is_multilang_set=true', 'GET', params);
}
export const addJobGroup = (params) => {
return WeaTools.callApi('/api/hrm/job/addJobGroup', 'POST', params);
}
export const addJob = (params) => {
return WeaTools.callApi('/api/hrm/job/addJobActivity', 'POST', params);
}
export const addPost = (params) => {
return WeaTools.callApi('/api/hrm/job/addJobTitle', 'POST', params);
}
export const editJobGroup = (params) => {
return WeaTools.callApi('/api/hrm/job/editeJobGroup', 'POST', params);
}
export const editJob = (params) => {
return WeaTools.callApi('/api/hrm/job/editeJobActivity', 'POST', params);
}
export const editPost = (params) => {
return WeaTools.callApi('/api/hrm/job/editeJobTitle', 'POST', params);
}
export const deleteJobGroup = (params) => {
return WeaTools.callApi('/api/hrm/job/deleteJobGroup', 'POST', params);
}
export const deleteJob = (params) => {
return WeaTools.callApi('/api/hrm/job/deleteJobActivity', 'POST', params);
}
export const deletePost = (params) => {
return WeaTools.callApi('/api/hrm/job/deleteJobTitle', 'POST', params);
}
export const getImportForm = (params) => {
return WeaTools.callApi('/api/hrm/job/getImportForm?is_multilang_set=true', 'GET', params);
}
export const saveImport = (params) => {
return WeaTools.callApi('/api/hrm/job/saveImport', 'POST', params);
}
export const getJobDetail = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobDetail', 'GET', params);
}
export const getImportResultDetail = (params) => {
return WeaTools.callApi('/api/hrm/job/getImportRowResultLog', 'GET', params);
}
export const getImportHistory = (params) => {
return WeaTools.callApi('/api/hrm/job/getImportHistory', 'GET', params);
}
export const getImportLogDetail = (params) => {
return WeaTools.callApi('/api/hrm/job/getImportColResultLog', 'GET', params);
}
export const getImportLogSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/job/getHistorySearchCondition', 'GET', params);
}
export const doCanceled = (params) => {
return WeaTools.callApi('/api/hrm/job/doCanceled', 'POST', params);
}
export const getJobTree = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobTree', 'GET', params);
}
export const doISCanceled = (params) => {
return WeaTools.callApi('/api/hrm/job/doISCanceled', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/job/getJobTitleForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/job/editeJobTitle', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/job/addJobTitle', 'POST', params);
}

View File

@ -0,0 +1,17 @@
import {
WeaTools
} from 'ecCom'
export const getRightMenu = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/getRightMenu', 'POST', params);
export const getPrivacySettingList = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/getPrivacySettingList', 'POST', params);
export const savePrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/savePrivacySetting', 'POST', params);
export const batchPrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/batchPrivacySetting', 'POST', params);
export const saveBatchPrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/saveBatchPrivacySetting', 'POST', params);
export const syncPrivacySetting = (params = {}) => WeaTools.callApi('/api/hrm/privacySetting/syncPrivacySetting', 'POST', params);
export const initData = (params = {}) => Promise.all([getRightMenu(), getPrivacySettingList()]);

View File

@ -0,0 +1,11 @@
import {
WeaTools
} from 'ecCom';
export const getFormElements = (params) => {
return WeaTools.callApi('/api/hrm/area/getProvinceForm', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/area/editProvince', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHrmDismissForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/statechange/saveHrmDismiss', 'POST', params);
}

View File

@ -0,0 +1,51 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getRightMenu', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getSearchCondition', 'GET', params);
}
export const getSearchConditionSub = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getSearchCondition', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/delete', 'POST', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getSearchList', 'GET', params);
}
export const getFormConditions = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getInviteInfoForm', 'GET', params);
}
export const getTableEditDatas = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getInviteSchedule', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/edit', 'POST', params);
}
export const saveInviteSchedule = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/saveInviteSchedule', 'POST', params);
}
export const getUseDemandInfo = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getUseDemandInfo', 'GET', params);
}

View File

@ -0,0 +1,131 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getRightMenu', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getSearchCondition', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/delete', 'POST', params);
}
export const getSearchList = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getSearchList', 'GET', params);
}
export const getHrmShareList = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getHrmShareList', 'GET', params);
}
export const getApplyInfoForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getApplyInfoForm', 'GET', params);
}
export const getHrmShareForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getHrmShareForm', 'GET', params);
}
export const getEmailInfoForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getEmailInfoForm', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/edit', 'POST', params);
}
export const sendEmail = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/sendEmail', 'POST', params);
}
export const getPersonalInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getPersonalInfo', 'GET', params);
}
export const getWorkInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getWorkInfo', 'GET', params);
}
export const addPersonalInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/addPersonalInfo', 'POST', params);
}
export const addWorkInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/addWorkInfo', 'POST', params);
}
export const getHrmResourceAddForm = (params) => {
return WeaTools.callApi('/api/hrm/resource/add/getHrmResourceAddForm', 'GET', params);
}
export const addEmploymentInfo = (params) => {
return WeaTools.callApi('/api/hrm/resource/add/save', 'POST', params);
}
export const printApplyInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/printApplyInfo', 'GET', params);
}
export const deleteHrmShare = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/deleteHrmShare', 'POST', params);
}
export const addHrmShare = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/addHrmShare', 'POST', params);
}
export const getEmploymentInfo = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getEmploymentInfo', 'GET', params);
}
export const getInterviewPlanForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getInterviewPlanForm', 'GET', params);
}
export const saveInterviewPlan = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/saveInterviewPlan', 'POST', params);
}
export const getInterviewResultForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getInterviewResultForm', 'GET', params);
}
export const getInterviewAssessList = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getInterviewAssessList', 'GET', params);
}
export const getInterviewTestList = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getInterviewTestList', 'GET', params);
}
export const saveInterviewResult = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/saveInterviewResult', 'POST', params);
}
export const getInterviewAssessForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getInterviewAssessForm', 'GET', params);
}
export const saveInterviewAssess = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/saveInterviewAssess', 'POST', params);
}
export const saveApplyInfoToResource = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/saveApplyInfoToResource', 'POST', params);
}
export const hrmResourceCheck = (params) => {
return WeaTools.callApi('/api/hrm/resource/hrmResourceCheck', 'GET', params);
}

View File

@ -0,0 +1,79 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getRightMenu', 'GET', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getSearchCondition', 'GET', params);
}
export const getSearchConditionSub = (params) => {
return WeaTools.callApi('/api/hrm/inviteinfo/getSearchCondition', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/delete', 'POST', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getSearchList', 'GET', params);
}
export const getApplyInfoListByPlanId = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getApplyInfoListByPlanId', 'GET', params);
}
export const getFormConditions = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getCareerPlanForm', 'GET', params);
}
export const getFinishForm = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getFinishForm', 'GET', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/edit', 'POST', params);
}
export const finish = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/finish', 'POST', params);
}
export const inform = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/inform', 'POST', params);
}
export const getTableEditDatas = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/getCareerStepForm', 'GET', params);
}
export const saveTableEditDatas = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/addCareerStep', 'POST', params);
}
export const addInviteInfo = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/addInviteInfo', 'POST', params);
}
export const getEmailInfoForm = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/getEmailInfoForm', 'GET', params);
}
export const sendEmail = (params) => {
return WeaTools.callApi('/api/hrm/applyinfo/sendEmail', 'POST', params);
}
export const updateApplyInfoIsInform = (params) => {
return WeaTools.callApi('/api/hrm/careerplan/updateApplyInfoIsInform', 'POST', params);
}

View File

@ -0,0 +1,19 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHrmReHireForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/statechange/saveHrmReHire', 'POST', params);
}
export const getReHireSource = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getReHireSource', 'POST', params);
}

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHrmExtendForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/statechange/saveHrmExtend', 'POST', params);
}

View File

@ -0,0 +1,5 @@
import {
WeaTools
} from 'ecCom'
export const getIndexInfo = (params) => WeaTools.callApi('/api/hrm/common/getIndexInfo', 'GET', params)

View File

@ -0,0 +1,15 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHasRight', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/statechange/getHrmRetireForm?is_multilang_set=true', 'GET', params);
}
export const save = (params) => {
return WeaTools.callApi('/api/hrm/statechange/saveHrmRetire', 'POST', params);
}

View File

@ -0,0 +1,63 @@
import {
WeaTools
} from 'ecCom';
export const getDetachable = (params = {}) => WeaTools.callApi('/api/hrm/common/getDetachableAll', 'GET', params)
export const getRoleCondition = (params = {}) => WeaTools.callApi('/api/hrm/role/getRoleSetCondition', 'GET', params)
export const getRoleList = (params = {}) => WeaTools.callApi('/api/hrm/role/getRoleSetList', 'POST', params)
export const getTabInfo = (params = {}) => WeaTools.callApi('/api/hrm/role/getRoleSetTabInfo', 'GET', params)
export const getRoleInfo = (params = {}) => WeaTools.callApi('/api/hrm/role/getRoleSetForm', 'GET', params)
export const saveRoleInfo = (params = {}) => WeaTools.callApi('/api/hrm/role/saveRoleSet', 'POST', params)
export const removeRoleInfo = (params = {}) => WeaTools.callApi('/api/hrm/role/delRoleSet', 'POST', params)
export const getAuthCondition = (params = {}) => WeaTools.callApi('/api/hrm/rolefucrightset/getRolesFucRightSetCondition', 'GET', params)
export const getAuthInfoForm = (params = {}) => WeaTools.callApi('/api/hrm/rolefucrightset/getRolesFucRightSetForm', 'GET', params)
export const getAuthList = (params = {}) => WeaTools.callApi('/api/hrm/rolefucrightset/getRolesFucRightSetList', 'POST', params)
export const saveAuth = (params = {}) => WeaTools.callApi('/api/hrm/rolefucrightset/saveRolesFucRightSet', 'POST', params)
export const removeAuth = (params = {}) => WeaTools.callApi('/api/hrm/rolefucrightset/delRolesFucRightSet', 'POST', params)
export const getDetachCondition = (params = {}) => WeaTools.callApi('/api/hrm/rolesstrrightset/getRolesStrRightSetCondition', 'GET', params)
export const getDetachInfoForm = (params = {}) => WeaTools.callApi('/api/hrm/rolesstrrightset/getRolesStrRightSetForm', 'GET', params)
export const getDetachList = (params = {}) => WeaTools.callApi('/api/hrm/rolesstrrightset/getRolesStrRightSetList', 'POST', params)
export const saveDetachAuth = (params = {}) => WeaTools.callApi('/api/hrm/rolesstrrightset/saveRolesStrRightSet', 'POST', params)
export const removeDetachAuth = (params = {}) => WeaTools.callApi('/api/hrm/rolesstrrightset/delRolesStrRightSet', 'POST', params)
export const getMemberCondition = (params = {}) => WeaTools.callApi('/api/hrm/rolesmembers/getRolesMembersCondition', 'GET', params)
export const getMemberInfoForm = (params = {}) => WeaTools.callApi('/api/hrm/rolesmembers/getRolesMembersForm', 'GET', params)
export const getMemberList = (params = {}) => WeaTools.callApi('/api/hrm/rolesmembers/getRolesMembersList', 'POST', params)
export const saveMemberAuth = (params = {}) => WeaTools.callApi('/api/hrm/rolesmembers/saveRolesMembers', 'POST', params)
export const removeMemberAuth = (params = {}) => WeaTools.callApi('/api/hrm/rolesmembers/delRolesMembers', 'POST', params)
export const saveAs = (params = {}) => WeaTools.callApi('/api/hrm/role/saveAsRoleSet', 'POST', params)
/********************* promise api *********************/
/**
* 初始权限设置化模块数据
* @return {[type]} [description]
*/
export const initData = () => Promise.all([getDetachable(), getRoleCondition(), getRoleList(), getRoleInfo()])
export const initAuthData = (params = {}) => Promise.all([getAuthCondition(), getAuthInfoForm(params), getAuthList(params)])
export const initDetachData = (params = {}) => Promise.all([getDetachCondition(), getDetachInfoForm(params), getDetachList(params)])
export const initMemberData = (params = {}) => Promise.all([getMemberCondition(), getMemberInfoForm(params), getMemberList(params)])
/********************* promise api *********************/

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/award/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/award/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/award/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/award/getSearchCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/award/getAwardForm?is_multilang_set=true', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/award/delete', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/award/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/award/edit', 'POST', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getAuth = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/getRightMenu', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/getSearchList', 'GET', params);
}
export const getSearchItems = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/getSearchCondition', 'GET', params);
}
export const getForm = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/getAwardTypeForm?is_multilang_set=true', 'GET', params);
}
export const deleteTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/delete', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/add', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/awardtype/edit', 'POST', params);
}

View File

@ -0,0 +1,19 @@
import {
WeaTools
} from 'ecCom';
export const fetchAuthority = (params) => {
return WeaTools.callApi('/api/hrm/finance/salaryappsetting/getHasRight', 'GET', params);
}
export const fetchRightMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/salaryappsetting/getButtonMenu', 'GET', params);
}
export const fetchForm = (params) => {
return WeaTools.callApi('/api/encrypt/secondauthhrmsetting/getSetting', 'GET', {...params, itemcode: 'SALARY'});
}
export const save = (params) => {
return WeaTools.callApi('/api/encrypt/secondauthhrmsetting/saveSetting', 'POST', {...params, itemcode: 'SALARY'});
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/getButtonMenu', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/getSalaryBankCondition', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/getSalaryBankList', 'POST', params);
}
export const getEditorForm = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/getSalaryBankForm?is_multilang_set=true', 'POST', params);
}
export const deleteTableRows = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/delSalaryBank', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/addSalaryBank', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/finance/salarybank/editSalaryBank', 'POST', params);
}

View File

@ -0,0 +1,55 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getButtonMenu', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getCompensationTargetMaintCondition', 'GET', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getCompensationTargetMaintList', 'POST', params);
}
export const getSubordinateTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getCompensationTargetMaint', 'POST', params);
}
export const getTableEditDatas = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getCompensationTargetMaintForm?is_multilang_set=true', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/addCompensationTargetMaint', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/editCompensationTargetMaint', 'POST', params);
}
export const deleteTableRows = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/delCompensationTargetMaint', 'POST', params);
}
export const getEditorForm = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getCompensationTargetMaintObj?is_multilang_set=true', 'POST', params);
}
export const getEditorAuth = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getTargetMaintButtonMenu', 'POST', params);
}
export const submit = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/importCompensationTargetMaint', 'POST', params);
}
export const getImportTemplate = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensationmaint/getImportTemplate', 'GET', params);
}

View File

@ -0,0 +1,35 @@
import {
WeaTools
} from 'ecCom'
export const getRight = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/getHasRight', 'GET', params);
}
export const getButtonsMenu = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/getButtonMenu', 'POST', params);
}
export const getTableInfo = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/getCompensationTargetSetList', 'POST', params);
}
export const getSearchCondition = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/getCompensationTargetSetCondition', 'GET', params);
}
export const getEditorForm = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/getCompensationTargetSetForm?is_multilang_set=true', 'POST', params);
}
export const deleteTableRows = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/delCompensationTargetSet', 'POST', params);
}
export const add = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/addCompensationTargetSet', 'POST', params);
}
export const edit = (params) => {
return WeaTools.callApi('/api/hrm/finance/compensation/editCompensationTargetSet', 'POST', params);
}

Some files were not shown because too many files have changed in this diff Show More