+
+
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/GroupSearch.js b/pc4backstage/hrmAttendance/components/groupSetting/GroupSearch.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/Info.js b/pc4backstage/hrmAttendance/components/groupSetting/Info.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/InfoSingle.js b/pc4backstage/hrmAttendance/components/groupSetting/InfoSingle.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/Map.js b/pc4backstage/hrmAttendance/components/groupSetting/Map.js
old mode 100644
new mode 100755
index b387e4c..f7805a6
--- a/pc4backstage/hrmAttendance/components/groupSetting/Map.js
+++ b/pc4backstage/hrmAttendance/components/groupSetting/Map.js
@@ -6,7 +6,7 @@ import has from 'lodash/has';
const getLabel = WeaLocaleProvider.getLabel;
import {i18n} from '../../public/i18n';
-let map, geolocation, geocoder;
+let map, geolocation, geocoder,MapAddress;
@observer
export default class Map extends Component {
@@ -32,13 +32,16 @@ export default class Map extends Component {
}
onSelectHandle = params => {
+ const{cityname,adname,business_area}=params
+ MapAddress=cityname+adname+business_area+params.address
const {store: {onPositionSelected}} = this.props;
let locationname = '', address = '', longitude = '', latitude = '';
locationname = params.name;
- address = params.address;
+ address = MapAddress
const latlng = params.location.split(',');
longitude = latlng[0];
latitude = latlng[1];
+
const data = {locationname,address,longitude,latitude}
onPositionSelected && onPositionSelected(data);
// this.setState({selectedPosition: data});
@@ -72,7 +75,8 @@ export default class Map extends Component {
const {store} = this.props;
const {rangeParams} = store;
const mapProps = {showGeolocation: true}
-
+ const {locationname:name} = rangeParams;
+
const {longitude, latitude} = rangeParams;
if(/^(\-)?\d+(\.\d+)?$/.test(longitude) && /^(\-)?\d+(\.\d+)?$/.test(latitude)){
Object.assign(mapProps,{position: [rangeParams.longitude, rangeParams.latitude]});
@@ -94,6 +98,7 @@ export default class Map extends Component {
gaodeRegeoCallback={this.gaodeRegeoCallback}
googleRegeoCallback={this.googleRegeoCallback}
{...mapProps}
+ info={{name, address:MapAddress}}
/>
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/SearchRadio.js b/pc4backstage/hrmAttendance/components/groupSetting/SearchRadio.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/illustrateDialog.js b/pc4backstage/hrmAttendance/components/groupSetting/illustrateDialog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/index.js b/pc4backstage/hrmAttendance/components/groupSetting/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/AttendanceType.js b/pc4backstage/hrmAttendance/components/groupSetting/info/AttendanceType.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/BaseInfo.js b/pc4backstage/hrmAttendance/components/groupSetting/info/BaseInfo.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/LocationEdit.js b/pc4backstage/hrmAttendance/components/groupSetting/info/LocationEdit.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/Member.js b/pc4backstage/hrmAttendance/components/groupSetting/info/Member.js
old mode 100644
new mode 100755
index ace3e91..0f57dc5
--- a/pc4backstage/hrmAttendance/components/groupSetting/info/Member.js
+++ b/pc4backstage/hrmAttendance/components/groupSetting/info/Member.js
@@ -1,10 +1,12 @@
import React, {Component} from 'react';
import {observer} from 'mobx-react';
-import {WeaAuth} from 'ecCom';
+import {WeaAuth,WeaDialog,WeaFormItem,WeaDatePicker,WeaHelpfulTip} from 'ecCom';
import classnames from 'classnames';
+import { Button } from "antd";
import {
WeaTableNew
} from 'comsMobx';
+import { i18n } from '../../../public/i18n';
const {
WeaTable
} = WeaTableNew;
@@ -13,19 +15,65 @@ const {
export default class Member extends Component{
doDel = id => this.props.store.deleteMember({ids: id});
+ doEdit = (id) => {
+ const {store} = this.props;
+ store.isNewMemberToAttendanceGroup = false;
+ store.getMemberForm({groupmemberId: id});
+ }
+
onOperatesClick = (record, index, operate) => {
const func = operate.href ? operate.href.split(':')[1].split('(')[0] : '';
const id = record.id ? record.id : '';
this[func] && this[func](id);
}
+ saveMember = () => {
+ const { store: { isDateInValidRange, doSaveMember, opId, memberForm, groupmemberId } } = this.props;
+ if (!isDateInValidRange(memberForm.getFormParams())) return;
+ doSaveMember({
+ ...memberForm.getFormParams(),
+ groupId: opId,
+ groupmemberId,
+ });
+ }
+
+ cancel = () => {
+ const { store: { memberAuthParams } } = this.props;
+ memberAuthParams.visible = false;
+ }
+
+ renderCol = (cols) => {
+ cols.map(c => {
+ if (['validatefrom', 'validateto'].includes(c.dataIndex)) {
+ c.render = (t, r) => {
+ return
{r[c.dataIndex]==r[c.dataIndex+'span'] ? r[c.dataIndex] : i18n.label[546200]()}
+ }
+ }
+ });
+ }
+
+ onDatePickerChange = (value) => {
+ const { store } = this.props;
+ store.validateDate = value;
+ }
+
+ onValidityDialogCancel = () => {
+ const { validityDialogParams } = this.props.store;
+ validityDialogParams.onCancel();
+ }
+
render(){
const {
store
} = this.props;
const {
refreshTab,
- memberAuthParams
+ memberAuthParams,
+ isNewMemberToAttendanceGroup,
+ memberForm,
+ validityDialogParams,
+ batchSetDateType,
+ saveValidateDate,
} = store;
const className = classnames({
['tabPane']: true,
@@ -44,11 +92,55 @@ export default class Member extends Component{
hasOrder={true}
needScroll={true}
{...tableProps}
+ getColumns={cols => this.renderCol(cols)}
onOperatesClick={(record, index, operate) => this.onOperatesClick(record, index, operate)}
/>
{
- memberAuthParams.visible &&
+ memberAuthParams.visible && (
+ isNewMemberToAttendanceGroup ?
+
:
+
{i18n.label.ok()},
+
+ ]
+ }
+ >
+ {memberForm.isFormInit && memberForm.render({ col: 1 } )}
+
+ )
}
+ {
+ validityDialogParams.visible && (
+
{i18n.label.ok()},
+
+ ]
+ }
+ >
+
+
+
+
+
+
+
+ )
+ }
+
)
}
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/SerialSetting.js b/pc4backstage/hrmAttendance/components/groupSetting/info/SerialSetting.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/SerialTableList.js b/pc4backstage/hrmAttendance/components/groupSetting/info/SerialTableList.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/groupSetting/info/WifiEdit.js b/pc4backstage/hrmAttendance/components/groupSetting/info/WifiEdit.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayRule/BalanceConversionRules.js b/pc4backstage/hrmAttendance/components/holidayRule/BalanceConversionRules.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayRule/Dialog.js b/pc4backstage/hrmAttendance/components/holidayRule/Dialog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayRule/Search.js b/pc4backstage/hrmAttendance/components/holidayRule/Search.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayRule/Table.js b/pc4backstage/hrmAttendance/components/holidayRule/Table.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayRule/Top.js b/pc4backstage/hrmAttendance/components/holidayRule/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayRule/index.js b/pc4backstage/hrmAttendance/components/holidayRule/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/Annotation.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/Annotation.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/ConditionGroup.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/ConditionGroup.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/Dialog.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/Dialog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/Tab.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/Tab.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/Table.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/Table.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/Top.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/Year.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/Year.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidaySettingNew/index.js b/pc4backstage/hrmAttendance/components/holidaySettingNew/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayType/Dialog.js b/pc4backstage/hrmAttendance/components/holidayType/Dialog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayType/DialogForm.js b/pc4backstage/hrmAttendance/components/holidayType/DialogForm.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayType/Search.js b/pc4backstage/hrmAttendance/components/holidayType/Search.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayType/Table.js b/pc4backstage/hrmAttendance/components/holidayType/Table.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayType/Top.js b/pc4backstage/hrmAttendance/components/holidayType/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/holidayType/index.js b/pc4backstage/hrmAttendance/components/holidayType/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importExternalAttendanceData/index.js b/pc4backstage/hrmAttendance/components/importExternalAttendanceData/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importRelatedComponet/ImportHistory.js b/pc4backstage/hrmAttendance/components/importRelatedComponet/ImportHistory.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importRelatedComponet/ImportLog.js b/pc4backstage/hrmAttendance/components/importRelatedComponet/ImportLog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importRelatedComponet/ImportResult.js b/pc4backstage/hrmAttendance/components/importRelatedComponet/ImportResult.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importRelatedComponet/index.js b/pc4backstage/hrmAttendance/components/importRelatedComponet/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/ImportHistory.js b/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/ImportHistory.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/ImportLog.js b/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/ImportLog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/ImportResult.js b/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/ImportResult.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/index.js b/pc4backstage/hrmAttendance/components/importScheduleCodeComponet/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/init/AnalysisResult.js b/pc4backstage/hrmAttendance/components/init/AnalysisResult.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/init/InitForm.js b/pc4backstage/hrmAttendance/components/init/InitForm.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/init/Top.js b/pc4backstage/hrmAttendance/components/init/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/init/confirmUtil.js b/pc4backstage/hrmAttendance/components/init/confirmUtil.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/init/index.js b/pc4backstage/hrmAttendance/components/init/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/CreateFieldDefine.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/CreateFieldDefine.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/CreateGroup.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/CreateGroup.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/FieldDataList.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/FieldDataList.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/FieldTabs.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/FieldTabs.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/GroupList.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/GroupList.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/GroupListSetting.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/GroupListSetting.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/kqMonthReportSetting/index.js b/pc4backstage/hrmAttendance/components/kqMonthReportSetting/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/BalanceConversionRules.js b/pc4backstage/hrmAttendance/components/newHolidayRule/BalanceConversionRules.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/Dialog.js b/pc4backstage/hrmAttendance/components/newHolidayRule/Dialog.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/DialogForm.js b/pc4backstage/hrmAttendance/components/newHolidayRule/DialogForm.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/Search.js b/pc4backstage/hrmAttendance/components/newHolidayRule/Search.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/Table.js b/pc4backstage/hrmAttendance/components/newHolidayRule/Table.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/Top.js b/pc4backstage/hrmAttendance/components/newHolidayRule/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/newHolidayRule/index.js b/pc4backstage/hrmAttendance/components/newHolidayRule/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/overtimeRule/Dialog.js b/pc4backstage/hrmAttendance/components/overtimeRule/Dialog.js
old mode 100644
new mode 100755
index a548966..92c31fb
--- a/pc4backstage/hrmAttendance/components/overtimeRule/Dialog.js
+++ b/pc4backstage/hrmAttendance/components/overtimeRule/Dialog.js
@@ -163,7 +163,7 @@ class Dialog extends React.Component {
if (cb[key].value === '0') {
[2, 3, 1].map(v => {
if (key === `overtimeEnable${v}`) {
- ['computingMode', 'paidLeaveEnable', 'minimumLen', 'lenOfOvertime', 'lenOfLeave', 'hasRestTime'].map((key, index) => {
+ ['computingMode', 'paidLeaveEnable', 'minimumLen', 'lenOfOvertime', 'lenOfLeave', 'hasRestTime','maxmumLen'].map((key, index) => {
let value;
if (index === 0) {
value = '1';
diff --git a/pc4backstage/hrmAttendance/components/overtimeRule/DirtyComponent.js b/pc4backstage/hrmAttendance/components/overtimeRule/DirtyComponent.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/overtimeRule/Form.js b/pc4backstage/hrmAttendance/components/overtimeRule/Form.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/overtimeRule/OvertimeRule.js b/pc4backstage/hrmAttendance/components/overtimeRule/OvertimeRule.js
old mode 100644
new mode 100755
index d61ac6c..b326315
--- a/pc4backstage/hrmAttendance/components/overtimeRule/OvertimeRule.js
+++ b/pc4backstage/hrmAttendance/components/overtimeRule/OvertimeRule.js
@@ -2,6 +2,7 @@ import {
WeaError,
WeaTimePicker,
WeaInputNumber,
+ WeaSelect,
} from 'ecCom'
import { i18n } from '../../public/i18n';
@@ -60,6 +61,29 @@ export default class OvertimeRule extends React.Component {
)
}
+ if ([ 'startType','endType'].includes(key) ) {
+ const options = [
+ {
+ key: "0",
+ selected: false,
+ showname: "今日"
+ },
+ {
+ key: "1",
+ selected: false,
+ showname: "次日"
+ },
+ ];
+ return (
+
onChange(val,index,key,groupType,ruleType)}
+ />
+ )
+ }
return (
this.setState({v: false}),
onSelectHandle: () => this.setState({op: true})
}
+ const onDropdownonClick = () => {
+ if (trigger.length == 0) {
+ message.warning(i18n.label[546185]())
+ }
+ }
return (
}
getPopupContainer={() => document.getElementById("scheduleSetting")}
trigger={trigger}
onVisibleChange={this.onVisibleChangeHandle}
+ onClick={onDropdownonClick}
>
onCellMouseEnter(colIndex)} onMouseLeave={onCellMouseLeave}>
{name}
diff --git a/pc4backstage/hrmAttendance/components/scheduleSetting/ListHeader.js b/pc4backstage/hrmAttendance/components/scheduleSetting/ListHeader.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/scheduleSetting/ScheduleList.js b/pc4backstage/hrmAttendance/components/scheduleSetting/ScheduleList.js
old mode 100644
new mode 100755
index 02ee641..4595964
--- a/pc4backstage/hrmAttendance/components/scheduleSetting/ScheduleList.js
+++ b/pc4backstage/hrmAttendance/components/scheduleSetting/ScheduleList.js
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { WeaTable } from 'ecCom';
import { i18n } from '../../public/i18n';
+import sticky from '../../util/sticky';
@observer
export default class ScheduleList extends Component {
@@ -21,6 +22,10 @@ export default class ScheduleList extends Component {
window.removeEventListener('resize', this.resizeHandle);
}
+ componentDidUpdate() {
+ sticky('.wea-new-top-content');
+ }
+
resizeHandle = (e) => {
this.calculateH();
}
diff --git a/pc4backstage/hrmAttendance/components/scheduleSetting/Setting.js b/pc4backstage/hrmAttendance/components/scheduleSetting/Setting.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/scheduleSetting/index.js b/pc4backstage/hrmAttendance/components/scheduleSetting/index.js
old mode 100644
new mode 100755
index 514756b..f83fadc
--- a/pc4backstage/hrmAttendance/components/scheduleSetting/index.js
+++ b/pc4backstage/hrmAttendance/components/scheduleSetting/index.js
@@ -18,7 +18,7 @@ export default class ScheduleSetting extends Component{
componentDidMount() {
this.init()
- }
+ }
componentWillReceiveProps(nextProps) {
if (this.props.location.key !== nextProps.location.key) {
@@ -33,7 +33,7 @@ export default class ScheduleSetting extends Component{
} = this.props;
store.init(params.id);
}
-
+
render(){
const {
hrmScheduleSetting: store
diff --git a/pc4backstage/hrmAttendance/components/schedulecode/Content.js b/pc4backstage/hrmAttendance/components/schedulecode/Content.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/schedulecode/DeviceEdit.js b/pc4backstage/hrmAttendance/components/schedulecode/DeviceEdit.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/schedulecode/DeviceList.js b/pc4backstage/hrmAttendance/components/schedulecode/DeviceList.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/schedulecode/Edit.js b/pc4backstage/hrmAttendance/components/schedulecode/Edit.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/schedulecode/index.js b/pc4backstage/hrmAttendance/components/schedulecode/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/Content.js b/pc4backstage/hrmAttendance/components/shiftManager/Content.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/Edit.js b/pc4backstage/hrmAttendance/components/shiftManager/Edit.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/LinkComs.js b/pc4backstage/hrmAttendance/components/shiftManager/LinkComs.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/Msg.js b/pc4backstage/hrmAttendance/components/shiftManager/Msg.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/WorkTimeAnalysis.js b/pc4backstage/hrmAttendance/components/shiftManager/WorkTimeAnalysis.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/index.js b/pc4backstage/hrmAttendance/components/shiftManager/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/reminder/ReminderContent.js b/pc4backstage/hrmAttendance/components/shiftManager/reminder/ReminderContent.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/reminder/ReminderSetting.js b/pc4backstage/hrmAttendance/components/shiftManager/reminder/ReminderSetting.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/shiftManager/reminder/ReminderTable.js b/pc4backstage/hrmAttendance/components/shiftManager/reminder/ReminderTable.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/test/index.js b/pc4backstage/hrmAttendance/components/test/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/timeSelection/index.js b/pc4backstage/hrmAttendance/components/timeSelection/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/travelRule/Top.js b/pc4backstage/hrmAttendance/components/travelRule/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/travelRule/index.js b/pc4backstage/hrmAttendance/components/travelRule/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/upgrade/Content.js b/pc4backstage/hrmAttendance/components/upgrade/Content.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/upgrade/Left.js b/pc4backstage/hrmAttendance/components/upgrade/Left.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/upgrade/Right.js b/pc4backstage/hrmAttendance/components/upgrade/Right.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/upgrade/UpgradeResult.js b/pc4backstage/hrmAttendance/components/upgrade/UpgradeResult.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/upgrade/index.js b/pc4backstage/hrmAttendance/components/upgrade/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationBalance/RadioGroup.js b/pc4backstage/hrmAttendance/components/vacationBalance/RadioGroup.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationBalance/Tab.js b/pc4backstage/hrmAttendance/components/vacationBalance/Tab.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationBalance/Table.js b/pc4backstage/hrmAttendance/components/vacationBalance/Table.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationBalance/Top.js b/pc4backstage/hrmAttendance/components/vacationBalance/Top.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationBalance/index.js b/pc4backstage/hrmAttendance/components/vacationBalance/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRemain/index.js b/pc4backstage/hrmAttendance/components/vacationRemain/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/Rule23th.js b/pc4backstage/hrmAttendance/components/vacationRule/Rule23th.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/Rule6th.js b/pc4backstage/hrmAttendance/components/vacationRule/Rule6th.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/Rules23th.js b/pc4backstage/hrmAttendance/components/vacationRule/Rules23th.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/Rules6th.js b/pc4backstage/hrmAttendance/components/vacationRule/Rules6th.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/Rules6thPanel.js b/pc4backstage/hrmAttendance/components/vacationRule/Rules6thPanel.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/Section.js b/pc4backstage/hrmAttendance/components/vacationRule/Section.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/components/vacationRule/index.js b/pc4backstage/hrmAttendance/components/vacationRule/index.js
old mode 100644
new mode 100755
index a18f183..7b9b8af
--- a/pc4backstage/hrmAttendance/components/vacationRule/index.js
+++ b/pc4backstage/hrmAttendance/components/vacationRule/index.js
@@ -51,6 +51,8 @@ export default class VacationRule extends React.Component {
tableListStore,
dialogStore,
formStore,
+ provinceDialogStore,
+ provinceFormStore,
} = vacationRuleStore;
return (
@@ -63,7 +65,7 @@ export default class VacationRule extends React.Component {
{
dialogStore.visible && (
-
);
},
+ overtime_type: (field, textAreaProps, form, formParams) => {
+ const radioStyle = {
+ display: 'block',
+ height: '30px',
+ lineHeight: '30px',
+ };
+ if (formParams.kqtype === "3")return null;
+ return (
+
+
+ form.updateFields({ overtime_type: { value: e.target.value } })} value={formParams.overtime_type}>
+ {
+ field.options.map((option, index) => {
+ return (
+
+
+ {option.showname}
+ {
+ formParams.overtime_type == '0' && option.key == '0' &&
+ {
+ form.updateFields(v)
+ }
+ }
+ />
+ }
+ { (option.key == '1' && field.helpfulTip )&& }
+
+
+ )
+ })
+ }
+
+
+
+ );
+ },
+ overtime_rule_id: () => null,
calmethod: (field, textAreaProps, form, formParams) => {
if (formParams.kqtype === "3")
return (
@@ -173,6 +218,21 @@ export class HrmGroupSetting extends HrmBaseStore {
}
return null;
},
+ self_shift: (field, textAreaProps, form, formParams) => {
+ if (formParams.kqtype === "2")
+ return (
+
+ );
+ return null;
+ },
shiftcycleday: (field, textAreaProps, form, formParams) => {
let info = i18n.label['389226']();
info = info.replace("{params}", formParams.shiftcycleday);
@@ -1022,6 +1082,9 @@ export class HrmGroupSetting extends HrmBaseStore {
}
};
+ //是否是新增考勤组成员
+ @observable isNewMemberToAttendanceGroup = true;
+
@observable
wifiDialogParams = {
...this.dialogPropsDef,
@@ -1040,14 +1103,39 @@ export class HrmGroupSetting extends HrmBaseStore {
iconBgcolor: "#217346",
title: i18n.label["125217"](),
visible: false,
- onOk: data =>
+ onOk: data =>{
+ if(!this.isDateInValidRange(data))return;
this.doSaveMember({
...data,
groupId: this.opId
- }),
+ })
+ },
+ onOkClose: false,
onCancel: () => (this.memberAuthParams.visible = false)
};
+ @observable batchSetDateType = 'effective';
+
+ @observable
+ validityDialogParams = {
+ icon: "icon-coms-hrm",
+ iconBgcolor: "#217346",
+ visible: false,
+ onOk: data =>{
+ },
+ onOkClose: false,
+ onCancel: () => {this.validityDialogParams.visible = false;this.validateDate = ''}
+ };
+
+ isDateInValidRange = (data) => {
+ const { validateFromDate, validateToDate } = data;
+ if (validateFromDate && validateToDate && (validateToDate < validateFromDate)) {
+ message.warning(i18n.label[546176]());
+ return;
+ }
+ return true;
+ }
+
@observable _editTabs = [];
@observable editTabsActiveKey = '1';
@observable refreshAttendanceForm = new Date().getTime();
@@ -1083,7 +1171,32 @@ export class HrmGroupSetting extends HrmBaseStore {
icon: "icon-coms-Add-to-hot",
label: i18n.label.create,
rightMenuIcon: this.menuIconCollection.create,
- onClickHandle: () => this.getMemberForm()
+ onClickHandle: () =>{
+ this.getMemberForm()
+ this.isNewMemberToAttendanceGroup = true;
+ }
+ });
+ this.canAdd && tabButtonDef.push({
+ comType: "button",
+ icon: "icon-coms-Planning-tasks",
+ label: i18n.label[546729](),
+ rightMenuIcon: this.menuIconCollection.remove,
+ onClickHandle: () => {
+ this.batchSetDateType = 'effective';
+ this.batchSetEffectiveDates();
+ },
+ checkAction: "memberRemoveable"
+ });
+ this.canAdd && tabButtonDef.push({
+ comType: "button",
+ icon: "icon-coms02-Warning-01",
+ label: i18n.label[546730](),
+ rightMenuIcon: this.menuIconCollection.remove,
+ onClickHandle: () => {
+ this.batchSetDateType = 'expiration';
+ this.batchSetExpirationDates();
+ },
+ checkAction: "memberRemoveable"
});
this.canAdd && tabButtonDef.push({
comType: "button",
@@ -1104,6 +1217,40 @@ export class HrmGroupSetting extends HrmBaseStore {
tabChangeHandle: key => this.setActiveTab(key)
}
};
+
+ @action
+ batchSetEffectiveDates = () => {
+ this.validityDialogParams.visible = true;
+ }
+
+ @action
+ batchSetExpirationDates = () => {
+ this.validityDialogParams.visible = true;
+ }
+
+ validateDate = '';
+
+ saveValidateDate = () => {
+ this.spinning = true;
+ const params = {
+ groupId:this.opId,
+ validateId:this.memberTable.selectedRowKeys,
+ updatevalidate:(this.batchSetDateType === 'effective') ? '0' : '1',
+ validateDate:this.validateDate
+ };
+ api.saveValidateDate(params).then(resp => {
+ this.spinning = false;
+ if (resp.status == '1') {
+ message.success(i18n.message.saveSuccess());
+ this.validityDialogParams.visible = false;
+ this.memberTable.getDatas(null, 1);
+ this.getTableData();
+ this.validateDate = '';
+ }else{
+ message.error(resp.message);
+ }
+ })
+ }
/********************* computed list *********************/
/********************* action list *********************/
@@ -1568,14 +1715,14 @@ export class HrmGroupSetting extends HrmBaseStore {
switch (formParams.kqtype) {
case "1":
window.e9HideFormFieldKeys.push(
- ...["serialids", "weekday", "signstart", "workhour"]
+ ...["serialids", "weekday", "signstart", "workhour", "self_shift"]
);
break;
case "2":
window.e9HideFormFieldKeys.push(...["serialids", "weekday", "signstart", "workhour"]);
break;
case "3":
- window.e9HideFormFieldKeys.push(...['serialids']);
+ window.e9HideFormFieldKeys.push(...['serialids', "self_shift"]);
break;
}
if (formParams.validity != '1') {
@@ -1712,7 +1859,7 @@ export class HrmGroupSetting extends HrmBaseStore {
this.dialogParams.title = i18n.label["389108"]();
this.dialogParams.opType = "edit";
this.dialogParams.style = {
- width: 800,
+ width: 900,
height: 680
};
this.dialogParams.visible = true;
@@ -2058,14 +2205,25 @@ export class HrmGroupSetting extends HrmBaseStore {
});
};
+ @observable memberForm = new WeaForm();
+ groupmemberId = '';
+
@action
- getMemberForm = () => {
- api.getMemberForm().then(
+ getMemberForm = (params = {}) => {
+ this.groupmemberId = params.groupmemberId || '';
+ this.memberForm = new WeaForm();
+ api.getMemberForm(params).then(
data => {
if (data.status === "1") {
this.memberAuthParams.title = i18n.label["125217"]();
this.memberAuthParams.conditions = data.conditions;
this.memberAuthParams.visible = true;
+ this.memberForm.setCondition([
+ {
+ defaultshow: true,
+ items: data.conditions
+ }
+ ]);
} else {
message.error(data.message);
}
diff --git a/pc4backstage/hrmAttendance/stores/holidayRule.js b/pc4backstage/hrmAttendance/stores/holidayRule.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/holidaySettingNew.js b/pc4backstage/hrmAttendance/stores/holidaySettingNew.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/holidayType.js b/pc4backstage/hrmAttendance/stores/holidayType.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/importCommon.js b/pc4backstage/hrmAttendance/stores/importCommon.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/importExternalAttendance.js b/pc4backstage/hrmAttendance/stores/importExternalAttendance.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/importScheduleCode.js b/pc4backstage/hrmAttendance/stores/importScheduleCode.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/index.js b/pc4backstage/hrmAttendance/stores/index.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/init.js b/pc4backstage/hrmAttendance/stores/init.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/kqMonthReportSetting.js b/pc4backstage/hrmAttendance/stores/kqMonthReportSetting.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/newHolidayRule.js b/pc4backstage/hrmAttendance/stores/newHolidayRule.js
old mode 100644
new mode 100755
diff --git a/pc4backstage/hrmAttendance/stores/overtimeRule.js b/pc4backstage/hrmAttendance/stores/overtimeRule.js
old mode 100644
new mode 100755
index 027f557..bcb86cc
--- a/pc4backstage/hrmAttendance/stores/overtimeRule.js
+++ b/pc4backstage/hrmAttendance/stores/overtimeRule.js
@@ -227,6 +227,8 @@ class HrmOvertimeRule {
}
}
+ @observable showSearchAd = false;
+
//***************标签页*****************
get tabStaticProps() {
return {
@@ -239,9 +241,47 @@ class HrmOvertimeRule {
}],
keyParam: 'key',
onChange: (key) => this.setSelectedKey(key),
+ searchType:["base", "advanced"],
+ showSearchAd:this.showSearchAd,
+ setShowSearchAd: (bool) => this.showSearchAd = bool,
+ advanceHeight: 200,
+ searchsAd:this.getSearchs(),
+ onAdSearch:()=> {
+ this.getSearchList();
+ this.searchsAd = false;
+ },
+ onSearch: (v)=> this.getSearchList({name:v}),
+ onAdReset: () => {
+ this.conditionForm.updateFields({name:'',groupIds:[],shift:[]});
+ },
+ onAdCancel: () => {
+ this.searchsAd = false;
+ }
}
}
+ getSearchs = () => {
+ return {
+ if (e.keyCode == 13 && e.target.tagName === "INPUT") {
+ this.getSearchList();
+ this.showSearchAd = false;
+ }
+ }}
+ >{this.renderForm()}
+ }
+
+
+ renderForm = () => {
+ const {
+ isFormInit
+ } = this.conditionForm;
+ if (isFormInit)
+ return this.conditionForm.render();
+ else
+ return '';
+ }
+
@observable tab = {
selectedKey: '0'
}
@@ -270,10 +310,14 @@ class HrmOvertimeRule {
}
//获取列表数据
- getSearchList = () => {
+ getSearchList = (data = {}) => {
fetch({
asyncFetch,
name: 'getSearchList',
+ fetchParams: {
+ ...this.conditionForm.getFormParams(),
+ ...data
+ },
logic: (cb) => {
const {
sessionkey
@@ -759,11 +803,30 @@ class HrmOvertimeRule {
//*************OvertimeRule**************
//重置页面
- refreshPage = () => {
+ refreshPage = async () => {
this.resetTab();
+ await this.getOvertimeSearchCondition();
this.getSearchList();
}
+ @observable conditionForm = new WeaForm();
+
+ getOvertimeSearchCondition = async () => {
+ await asyncFetch.getOvertimeSearchCondition().then(cb => {
+ const {
+ api_status,
+ status,
+ conditions,
+ } = cb;
+
+ if (api_status) {
+ this.conditionForm.setCondition(conditions);
+ } else {
+ message.error();
+ }
+ })
+ }
+
/** 选项名称定义 */
@observable timeSelectionDialogVisible = false;
@computed get timeSelectionDialog(){
diff --git a/pc4backstage/hrmAttendance/stores/overtimeRuleForm.js b/pc4backstage/hrmAttendance/stores/overtimeRuleForm.js
old mode 100644
new mode 100755
index f94edca..1fd3a0a
--- a/pc4backstage/hrmAttendance/stores/overtimeRuleForm.js
+++ b/pc4backstage/hrmAttendance/stores/overtimeRuleForm.js
@@ -40,7 +40,7 @@ export default class OvertimeRuleFormStore {
paidLeaveEnableDefaultType2Option = [] //【默认加班补偿规则】下拉选项
paidLeaveEnableFlowType2Option = [] //【根据员工在加班流程上选择的加班补偿类型进行补偿】下拉选项
//自定义渲染表单元素domkey值的集合
- customRenderKeyList = flatten(this.domkeySuffixs.map(v => ['startTime', 'before_startTime', 'minimumLen', 'paidLeaveEnable', 'lenOfOvertime', 'lenOfLeave', 'paidLeaveEnableDefaultType', 'paidLeaveEnableFlowType', 'cut_point', 'restTimeType'].map(key => `${key}${v}`)))
+ customRenderKeyList = flatten(this.domkeySuffixs.map(v => ['startTime', 'before_startTime', 'minimumLen', 'maxmumLen','paidLeaveEnable', 'lenOfOvertime', 'lenOfLeave', 'paidLeaveEnableDefaultType', 'paidLeaveEnableFlowType', 'cut_point', 'restTimeType'].map(key => `${key}${v}`)))
@observable demonstration = []
@observable overtimeCompensationRuleDefault2 = [] //工作日加班补偿规则
@@ -130,17 +130,20 @@ export default class OvertimeRuleFormStore {
)}
{this.renderMinimumLen(item, form, '2')}
+ {this.renderMaxmumLen(item, form, '2')}