webpackJsonp([33],{ /***/ "x32u": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _interopRequireDefault = __webpack_require__("ouCL"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectSpread2 = _interopRequireDefault(__webpack_require__("+TWC")); var _api = __webpack_require__("H/Zg"); function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); } function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); } var monthColumns = [{ title: '序号', dataIndex: 'perId', align: 'center', key: 'perId', width: 100, fixed: 'left' }, { title: '姓名', dataIndex: 'name', align: 'left', key: 'name', width: 100, fixed: 'left' }, { title: '手机号', dataIndex: 'mobilePhone', align: 'left', fixed: false, key: 'mobilePhone' }, { title: '部门', dataIndex: 'departName', tip: '说明:该人员所在的部门,若本月有调整过部门,则会生成两条记录', align: 'left', fixed: false, key: 'departName', width: 300 }, { title: '统计时段', dataIndex: 'attendDateSection', tip: '说明:该条数据统计的时间范围', align: 'left', fixed: false, key: 'attendDateSection' }, { title: '出勤天数', dataIndex: 'attendDays', tip: '说明:有排班并且打卡一次的天数', align: 'left', fixed: false, key: 'attendDays' }, { title: '休息天数', dataIndex: 'restDays', tip: '说明:安排休息班的天数', align: 'left', fixed: false, key: 'restDays' }, { title: '工作总时长', dataIndex: 'workHours', tip: '说明:合计工作时长,每轮上下班都打卡才会记录时长,否则记0', align: 'left', fixed: false, key: 'workHours' }, { title: '迟到次数', dataIndex: 'lateTimes', tip: '说明:合计迟到卡次数', align: 'left', fixed: false, key: 'lateTimes' }, { title: '迟到总分钟', dataIndex: 'totalLateTime', tip: '说明:合计迟到总分钟数', align: 'left', fixed: false, key: 'totalLateTime' }, { title: '早退次数', dataIndex: 'leaveEarlyTimes', tip: '说明:合计早退次数', align: 'left', fixed: false, key: 'leaveEarlyTimes' }, { title: '早退总分钟', dataIndex: 'totalLeaveEarlyTime', tip: '说明:合计早退总分钟数', align: 'left', fixed: false, key: 'totalLeaveEarlyTime' }, { title: '漏卡次数', dataIndex: 'missCardTimes', tip: '说明:合计漏卡次数', align: 'left', fixed: false, key: 'missCardTimes' }, { title: '缺勤天数', dataIndex: 'absenteeismDays', tip: '说明:有排班但未打卡一次的天数', align: 'left', fixed: false, key: 'absenteeismDays' }, { title: '缺勤时长', dataIndex: 'absenceTime', tip: '说明:缺勤的班次总时长', align: 'left', fixed: false, key: 'absenceTime' }, { title: '请假时长(小时)', dataIndex: 'askforleave', tip: '说明:合计驻勤请假审批通过的驻勤请假时长', align: 'center', fixed: false, key: 'askforleave', children: [{ title: '事假', dataIndex: 'absenceLeaveTime', tip: false, align: 'left', fixed: false, key: 'absenceLeaveTime' }, { title: '病假', dataIndex: 'sickLeaveTime', tip: false, align: 'left', fixed: false, key: 'sickLeaveTime' }, { title: '年假', dataIndex: 'yearLeaveTime', tip: false, align: 'left', fixed: false, key: 'yearLeaveTime' }, { title: '婚假', dataIndex: 'marriageLeaveTime', tip: false, align: 'left', fixed: false, key: 'marriageLeaveTime' }, { title: '调休', dataIndex: 'breakOffTime', tip: false, align: 'left', fixed: false, key: 'breakOffTime' }, { title: '产假', dataIndex: 'maternityLeaveTime', tip: false, align: 'left', fixed: false, key: 'maternityLeaveTime' }, { title: '公假', dataIndex: 'publicLeaveTime', tip: false, align: 'left', fixed: false, key: 'publicLeaveTime' }, { title: '主管假', dataIndex: 'chargeLeaveTime', tip: false, align: 'left', fixed: false, key: 'chargeLeaveTime' }] }]; var dayColumns = [{ title: '序号', dataIndex: 'perId', align: 'center', key: 'perId', fixed: 'left' }, { title: '姓名', dataIndex: 'name', align: 'left', key: 'name', fixed: 'left' }, { title: '手机号', dataIndex: 'mobilePhone', align: 'left', fixed: false, key: 'mobilePhone' }, { title: '部门', dataIndex: 'departName', tip: '说明:该人员所在的部门,若本月有调整过部门,则会生成两条记录', align: 'left', fixed: false, key: 'departName', width: 300 }, { title: '日期', dataIndex: 'attendDate', align: 'left', fixed: false, key: 'attendDate' }, { title: '驻勤组', dataIndex: 'taskName', align: 'left', fixed: false, key: 'taskName' }, { title: '第1轮上班', dataIndex: 'firstRoundOnWork', align: 'left', fixed: false, key: 'firstRoundOnWork' }, { title: '第1轮下班', dataIndex: 'firstRoundOffWork', align: 'left', fixed: false, key: 'firstRoundOffWork' }, { title: '第2轮上班', dataIndex: 'secondRoundOnWork', align: 'left', fixed: false, key: 'secondRoundOnWork' }, { title: '第2轮下班', dataIndex: 'secondRoundOffWork', align: 'left', fixed: false, key: 'secondRoundOffWork' }, { title: '第3轮上班', dataIndex: 'thirdRoundOnWork', align: 'left', fixed: false, key: 'thirdRoundOnWork' }, { title: '第3轮下班', dataIndex: 'thirdRoundOffWork', align: 'left', fixed: false, key: 'thirdRoundOffWork' }, { title: '第4轮上班', dataIndex: 'fourthRoundOnWork', align: 'left', fixed: false, key: 'fourthRoundOnWork' }, { title: '第4轮下班', dataIndex: 'fourthRoundOffWork', align: 'left', fixed: false, key: 'fourthRoundOffWork' }, { title: '第5轮上班', dataIndex: 'fifthRoundOnWork', align: 'left', fixed: false, key: 'fifthRoundOnWork' }, { title: '第5轮下班', dataIndex: 'fifthRoundOffWork', align: 'left', fixed: false, key: 'fifthRoundOffWork' }, { title: '出勤天数', dataIndex: 'attendDays', tip: '说明:有排班并且打卡一次的天数', align: 'left', fixed: false, key: 'attendDays' }, { title: '休息天数', dataIndex: 'restDays', tip: '说明:安排休息班的天数', align: 'left', fixed: false, key: 'restDays' }, { title: '工作总时长', dataIndex: 'workHours', tip: '说明:合计工作时长,每轮上下班都打卡才会记录时长,否则记0', align: 'left', fixed: false, key: 'workHours' }, { title: '迟到次数', dataIndex: 'lateTimes', tip: '说明:合计迟到次数', align: 'left', fixed: false, key: 'lateTimes' }, { title: '迟到总分钟', dataIndex: 'totalLateTime', tip: '说明:合计迟到总分钟数', align: 'left', fixed: false, key: 'totalLateTime' }, { title: '早退次数', dataIndex: 'leaveEarlyTimes', tip: '说明:合计早退次数', align: 'left', fixed: false, key: 'leaveEarlyTimes' }, { title: '早退总分钟', dataIndex: 'totalLeaveEarlyTime', tip: '说明:合计早退总分钟数', align: 'left', fixed: false, key: 'totalLeaveEarlyTime' }, { title: '漏卡次数', dataIndex: 'missCardTimes', tip: '说明:合计漏卡次数', align: 'left', fixed: false, key: 'missCardTimes' }, { title: '缺勤天数', dataIndex: 'absenteeismDays', tip: '说明:有排班但未打卡一次的天数', align: 'left', fixed: false, key: 'absenteeismDays' }, { title: '缺勤时长', dataIndex: 'absenceTime', tip: '说明:缺勤的班次总时长', align: 'left', fixed: false, key: 'absenceTime' }, { title: '请假时长', dataIndex: 'askforleave', tip: '说明:合计驻勤请假审批通过的驻勤请假时长', align: 'center', fixed: false, key: 'askforleave', children: [{ title: '事假', dataIndex: 'absenceLeaveTime', tip: false, align: 'left', fixed: false, key: 'absenceLeaveTime' }, { title: '病假', dataIndex: 'sickLeaveTime', tip: false, align: 'left', fixed: false, key: 'sickLeaveTime' }, { title: '年假', dataIndex: 'yearLeaveTime', tip: false, align: 'left', fixed: false, key: 'yearLeaveTime' }, { title: '婚假', dataIndex: 'marriageLeaveTime', tip: false, align: 'left', fixed: false, key: 'marriageLeaveTime' }, { title: '调休', dataIndex: 'breakOffTime', tip: false, align: 'left', fixed: false, key: 'breakOffTime' }, { title: '产假', dataIndex: 'maternityLeaveTime', tip: false, align: 'left', fixed: false, key: 'maternityLeaveTime' }, { title: '公假', dataIndex: 'publicLeaveTime', tip: false, align: 'left', fixed: false, key: 'publicLeaveTime' }, { title: '主管假', dataIndex: 'chargeLeaveTime', tip: false, align: 'left', fixed: false, key: 'chargeLeaveTime' }] }, { title: '操作', dataIndex: 'operation', fixed: 'right', tip: false, align: 'center', key: 'operation' }]; var _default = exports.default = { namespace: 'task', state: { tags: [], monthStatisticsData: { data: [], columns: monthColumns, pagination: { pageNumber: 1, pageSize: 10, total: 0 } }, dayStatisticsData: { data: [], columns: dayColumns, pagination: { pageNumber: 1, pageSize: 10, total: 0 } }, departmentData: [], detailData: { data: [], avatar: 'assets/images/avatar.png', personalInfo: { name: '', attendDate: '', departName: '', attendGroupName: '' } } }, effects: { getdayStatisticsData: function getdayStatisticsData(_ref, _ref2) { var payload = _ref.payload; var call = _ref2.call, put = _ref2.put; return /*#__PURE__*/_regenerator().m(function _callee() { var response, _t; return _regenerator().w(function (_context) { while (1) switch (_context.p = _context.n) { case 0: response = {}; _context.p = 1; _context.n = 2; return call(_api.getdayStatisticsDataTask, payload); case 2: response = _context.v; _context.n = 4; break; case 3: _context.p = 3; _t = _context.v; console.log('error', _t); case 4: if (response.data) { _context.n = 5; break; } return _context.a(2); case 5: _context.n = 6; return put({ type: 'dayStatisticsData', payload: response.data }); case 6: return _context.a(2); } }, _callee, null, [[1, 3]]); })(); }, getmonthStatisticsData: function getmonthStatisticsData(_ref3, _ref4) { var payload = _ref3.payload; var call = _ref4.call, put = _ref4.put; return /*#__PURE__*/_regenerator().m(function _callee2() { var response, _t2; return _regenerator().w(function (_context2) { while (1) switch (_context2.p = _context2.n) { case 0: response = {}; _context2.p = 1; _context2.n = 2; return call(_api.getmonthStatisticsDataTask, payload); case 2: response = _context2.v; _context2.n = 4; break; case 3: _context2.p = 3; _t2 = _context2.v; console.log('error', _t2); case 4: if (response.data) { _context2.n = 5; break; } return _context2.a(2); case 5: _context2.n = 6; return put({ type: 'monthStatisticsData', payload: response.data }); case 6: return _context2.a(2); } }, _callee2, null, [[1, 3]]); })(); }, getDepartMentData: function getDepartMentData(_, _ref5) { var call = _ref5.call, put = _ref5.put; return /*#__PURE__*/_regenerator().m(function _callee3() { var response, _t3; return _regenerator().w(function (_context3) { while (1) switch (_context3.p = _context3.n) { case 0: response = {}; _context3.p = 1; _context3.n = 2; return call(_api.getDepartmentData); case 2: response = _context3.v; _context3.n = 4; break; case 3: _context3.p = 3; _t3 = _context3.v; console.log('error', _t3); case 4: if (response.data) { _context3.n = 5; break; } return _context3.a(2); case 5: _context3.n = 6; return put({ type: 'saveDepartmentData', payload: response.data }); case 6: return _context3.a(2); } }, _callee3, null, [[1, 3]]); })(); }, getAttendRecordDetail: function getAttendRecordDetail(_ref6, _ref7) { var payload = _ref6.payload; var call = _ref7.call, put = _ref7.put; return /*#__PURE__*/_regenerator().m(function _callee4() { var perId, comTaskId, attendDate, name, departName, attendGroupName, response, _t4; return _regenerator().w(function (_context4) { while (1) switch (_context4.p = _context4.n) { case 0: perId = payload.perId, comTaskId = payload.comTaskId, attendDate = payload.attendDate, name = payload.name, departName = payload.departName, attendGroupName = payload.attendGroupName; response = {}; _context4.p = 1; _context4.n = 2; return call(_api.getAttendRecordDetailTask, { perId: perId, comTaskId: comTaskId, attendDate: attendDate }); case 2: response = _context4.v; _context4.n = 4; break; case 3: _context4.p = 3; _t4 = _context4.v; console.log('error', _t4); case 4: if (response.data) { _context4.n = 5; break; } return _context4.a(2); case 5: _context4.n = 6; return put({ type: 'saveAttendRecordDetail', payload: { data: response.data, other: { perId: perId, comTaskId: comTaskId, name: name, departName: departName, attendGroupName: attendGroupName, attendDate: attendDate } } }); case 6: return _context4.a(2); } }, _callee4, null, [[1, 3]]); })(); }, changeRecordDetail: function changeRecordDetail(_ref8, _ref9) { var payload = _ref8.payload; var call = _ref9.call, put = _ref9.put; return /*#__PURE__*/_regenerator().m(function _callee5() { var response, perId, comTaskId, attendDate, response1, _t5; return _regenerator().w(function (_context5) { while (1) switch (_context5.p = _context5.n) { case 0: response = {}; _context5.p = 1; _context5.n = 2; return call(_api.changeRecordDetailTask, payload); case 2: response = _context5.v; _context5.n = 4; break; case 3: _context5.p = 3; _t5 = _context5.v; console.log('error', _t5); case 4: if (!(response.retType !== '0')) { _context5.n = 5; break; } return _context5.a(2); case 5: perId = payload.perId, comTaskId = payload.comTaskId, attendDate = payload.attendDate; _context5.n = 6; return call(_api.getAttendRecordDetailTask, { perId: perId, comTaskId: comTaskId, attendDate: attendDate }); case 6: response1 = _context5.v; if (response1.data) { _context5.n = 7; break; } return _context5.a(2); case 7: _context5.n = 8; return put({ type: 'saveAttendRecordDetail', payload: { data: response1.data } }); case 8: return _context5.a(2); } }, _callee5, null, [[1, 3]]); })(); } }, reducers: { dayStatisticsData: function dayStatisticsData(state, _ref0) { var payload = _ref0.payload; return (0, _objectSpread2.default)({}, state, { dayStatisticsData: (0, _objectSpread2.default)({}, state.dayStatisticsData, { data: payload.data, pagination: { pageNumber: payload.pageNumber, pageSize: payload.pageSize, total: payload.total } }) }); }, monthStatisticsData: function monthStatisticsData(state, _ref1) { var payload = _ref1.payload; return (0, _objectSpread2.default)({}, state, { monthStatisticsData: (0, _objectSpread2.default)({}, state.monthStatisticsData, { data: payload.data, pagination: { pageNumber: payload.pageNumber, pageSize: payload.pageSize, total: payload.total } }) }); }, saveDepartmentData: function saveDepartmentData(state, _ref10) { var payload = _ref10.payload; return (0, _objectSpread2.default)({}, state, { departmentData: payload }); }, saveAttendRecordDetail: function saveAttendRecordDetail(state, _ref11) { var payload = _ref11.payload; return (0, _objectSpread2.default)({}, state, { detailData: (0, _objectSpread2.default)({}, state.detailData, { avatar: payload.data.photoUrl || '', data: payload.data.list, personalInfo: (0, _objectSpread2.default)({}, state.detailData.personalInfo, payload.other) }) }); }, resetModel: function resetModel() { return { tags: [], departmentData: [], monthStatisticsData: { data: [], columns: monthColumns, pagination: { pageNumber: 1, pageSize: 10, total: 0 } }, dayStatisticsData: { data: [], columns: dayColumns, pagination: { pageNumber: 1, pageSize: 10, total: 0 } }, detailData: { data: [], avatar: '', personalInfo: { name: '', attendDate: '', departName: '', attendGroupName: '' } } }; } } }; /***/ }) });