(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-4d2d65ae"], { 2269: function(e, t, n) { "use strict"; n("411b"); }, "3bb9": function(e, t, n) { }, "411b": function(e, t, n) { }, 4513: function(e, t, n) { "use strict"; n.d(t, "v", (function() { return o; })), n.d(t, "w", (function() { return r; })), n.d(t, "x", (function() { return l; })), n.d(t, "l", (function() { return i; })), n.d(t, "t", (function() { return s; })), n.d(t, "j", (function() { return c; })), n.d(t, "o", (function() { return u; })), n.d(t, "u", (function() { return d; })), n.d(t, "b", (function() { return m; })), n.d(t, "p", (function() { return f; })), n.d(t, "D", (function() { return p; })), n.d(t, "B", (function() { return h; })), n.d(t, "q", (function() { return v; })), n.d(t, "c", (function() { return b; })), n.d(t, "s", (function() { return _; })), n.d(t, "i", (function() { return y; })), n.d(t, "n", (function() { return w; })), n.d(t, "a", (function() { return g; })), n.d(t, "g", (function() { return k; })), n.d(t, "d", (function() { return S; })), n.d(t, "f", (function() { return x; })), n.d(t, "C", (function() { return D; })), n.d(t, "m", (function() { return O; })), n.d(t, "y", (function() { return I; })), n.d(t, "r", (function() { return M; })), n.d(t, "e", (function() { return j; })), n.d(t, "z", (function() { return L; })), n.d(t, "A", (function() { return q; })), n.d(t, "h", (function() { return N; })), n.d(t, "k", (function() { return C; })); var a = n("b775"); function o() { return Object(a["a"])({ url: "/company/organizationalStructure/updateOrgnization", method: "post" }); } function r(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: e2 }); } function l(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/findOsTreeV2", method: "post", data: e2 }); } function i(e2) { return Object(a["a"])({ url: "/company/OrganizationRoleRel/findProjectByRoleIdAndParent", method: "post", data: e2 }); } function s(e2) { return Object(a["a"])({ url: "/company/member/pageListByCompanyId", method: "post", data: e2 }); } function c(e2) { return Object(a["a"])({ url: "/company/member/findByProjectUuidAndJobUuid", method: "post", data: e2 }); } function u(e2) { return Object(a["a"])({ url: "/company/member/getList", method: "post", data: e2 }); } function d(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/findOsPathList", method: "post", data: e2 }); } function m(e2) { return Object(a["a"])({ url: "/company/member/create", method: "post", data: e2 }); } function f(e2) { return Object(a["a"])({ url: "/company/member/findById", method: "post", data: e2 }); } function p(e2) { return Object(a["a"])({ url: "/company/member/update", method: "post", data: e2 }); } function h(e2) { return Object(a["a"])({ url: "/company/member/suspendMember", method: "post", data: e2 }); } function v(e2) { return Object(a["a"])({ url: "/enterprise/os/memberQuit/".concat(e2.memberUuid), method: "post" }); } function b(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/create", method: "post", data: e2 }); } function _(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/update", method: "post", data: e2 }); } function y(e2) { return Object(a["a"])({ url: "/company/member/findByProjectUuid", method: "post", data: e2 }); } function w(e2) { return Object(a["a"])({ url: "/hakocompany/Job/getJobList", method: "post", data: e2 }); } function g(e2) { return Object(a["a"])({ url: "/company/member/ChangeDepartment", method: "post", data: e2 }); } function k(e2) { return Object(a["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: e2 }); } function S(e2) { return Object(a["a"])({ url: "/hakocompany/MemberRoleRel/create", method: "post", data: e2 }); } function x(e2) { return Object(a["a"])({ url: "/hakocompany/MemberRoleRel/findByMemberId", method: "post", data: e2 }); } function D(e2) { return Object(a["a"])({ url: "/hakocompany/MemberRoleRel/update", method: "post", data: e2 }); } function O(e2) { return Object(a["a"])({ url: "/company/member/getList", method: "POST", data: e2 }); } function I(e2) { return Object(a["a"])({ url: "/company/member/queryByStaff", method: "POST", data: e2 }); } function M(e2) { return Object(a["a"])({ url: "/company/member/memberQuit", method: "POST", data: e2 }); } function j(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/delete", method: "POST", data: e2 }); } function L(e2) { return Object(a["a"])({ url: "/hakocompany/Space/queryInitData", method: "POST", data: e2 }); } function q(e2) { return Object(a["a"])({ url: "/hakocompany/Space/queryList", method: "POST", data: e2 }); } function N(e2) { return Object(a["a"])({ url: "/hakocompany/Space/findByProId", method: "POST", data: e2 }); } function C(e2) { return Object(a["a"])({ url: "/company/organizationalStructure/findOSListByRoleId", method: "POST", data: e2 }); } }, "4cfb": function(e, t, n) { "use strict"; n.d(t, "e", (function() { return o; })), n.d(t, "h", (function() { return r; })), n.d(t, "f", (function() { return l; })), n.d(t, "g", (function() { return i; })), n.d(t, "d", (function() { return s; })), n.d(t, "a", (function() { return c; })), n.d(t, "b", (function() { return u; })), n.d(t, "c", (function() { return d; })); var a = n("b775"); function o(e2) { return Object(a["a"])({ url: "/hakocompany/QywxContact/pageList", method: "post", data: e2 }); } function r(e2) { return Object(a["a"])({ url: "/hakocompany/QywxContact/syncContactData", method: "post", data: e2 }); } function l(e2) { return Object(a["a"])({ url: "/hakocompany/QywxContractTagGroup/pageList", method: "post", data: e2 }); } function i(e2) { return Object(a["a"])({ url: "/hakocompany/QywxUser/pageList", method: "post", data: e2 }); } function s(e2) { return Object(a["a"])({ url: "/hakocompany/QywxUserCheckin/pageList", method: "post", data: e2 }); } function c(e2) { return Object(a["a"])({ url: "/hakocompany/MemberManualAttendance/pageList", method: "post", data: e2 }); } function u(e2) { return Object(a["a"])({ url: "/hakocompany/MemberManualAttendance/out/excel", method: "post", responseType: "blob", data: e2 }); } function d(e2, t2) { return Object(a["a"])({ url: "/hakocompany/MemberManualAttendance/input/excel/".concat(t2), method: "post", isReturnResponse: true, isFile: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 }); } }, 7246: function(e, t, n) { "use strict"; n("3bb9"); }, b9f1: function(e, t, n) { "use strict"; n.d(t, "b", (function() { return o; })), n.d(t, "c", (function() { return r; })), n.d(t, "a", (function() { return l; })); var a = n("b775"); function o(e2) { return Object(a["a"])({ url: "/hakocompany/QywxDepartment/syncDeptData", method: "post", data: e2 }); } function r(e2) { return Object(a["a"])({ url: "/hakocompany/QywxDepartment/treeList", method: "post", data: e2 }); } function l(e2) { return Object(a["a"])({ url: "/hakocompany/QywxUser/pageList", method: "post", data: e2 }); } }, c466: function(e, t, n) { "use strict"; n.d(t, "a", (function() { return a; })); n("4057"), n("fc02"), n("3269"), n("8dee"); function a(e2, t2) { /(y+)/.test(t2) && (t2 = t2.replace(RegExp.$1, (e2.getFullYear() + "").substr(4 - RegExp.$1.length))); var n2 = { "M+": e2.getMonth() + 1, "d+": e2.getDate(), "h+": e2.getHours(), "m+": e2.getMinutes(), "s+": e2.getSeconds() }; for (var a2 in n2) if (new RegExp("(".concat(a2, ")")).test(t2)) { var r = n2[a2] + ""; t2 = t2.replace(RegExp.$1, 1 === RegExp.$1.length ? r : o(r)); } return t2; } function o(e2) { return ("00" + e2).substr(e2.length); } }, d1a7: function(e, t, n) { "use strict"; n.r(t); var a = function() { var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2; return n2("div", { staticClass: "app-container bgHeight checkMain" }, [n2("el-tabs", { attrs: { value: e2.activeName, type: "border-card" }, on: { "tab-click": e2.handleClick } }, [n2("el-tab-pane", { attrs: { label: "考勤管理", name: "sys" } }, ["sys" === e2.activeName ? n2("sysCheck") : e2._e()], 1), e2._v(" "), n2("el-tab-pane", { attrs: { label: "人工考勤", name: "hand" } }, ["hand" === e2.activeName ? n2("handCheck") : e2._e()], 1)], 1)], 1); }, o = [], r = (n("a450"), function() { var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2; return n2("div", [n2("div", { staticClass: "formContent" }, [n2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [n2("el-form-item", [n2("el-date-picker", { attrs: { type: "daterange", "range-separator": "至", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", "start-placeholder": "开始日期", "end-placeholder": "结束日期", "picker-options": e2.pickerOptions }, model: { value: e2.query.time, callback: function(t3) { e2.$set(e2.query, "time", t3); }, expression: "query.time" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "deptId", label: "" } }, [n2("el-cascader", { staticStyle: { width: "400px" }, attrs: { options: e2.treeList, props: { children: "subDeptList", label: "name", value: "deptId", checkStrictly: true, emitPath: false } }, model: { value: e2.query.deptId, callback: function(t3) { e2.$set(e2.query, "deptId", t3); }, expression: "query.deptId" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "username", label: "" } }, [n2("el-input", { attrs: { clearable: "", placeholder: "成员名称", maxlength: "64" }, model: { value: e2.query.username, callback: function(t3) { e2.$set(e2.query, "username", t3); }, expression: "query.username" } })], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) { return e2.resetForm("query"); } } }, [e2._v("重置")])], 1)], 1)], 1), e2._v(" "), n2("div", { staticClass: "contentStys" }, [e2._m(0), e2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], ref: "tableData", attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark", "cell-class-name": e2.cellSet } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [n2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "username", "show-overflow-tooltip": "", "min-width": "150", label: "姓名", fixed: "" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "deptName", "show-overflow-tooltip": "", "min-width": "150", label: "部门" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "position", "show-overflow-tooltip": "", "min-width": "150", label: "职务" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "groupName", "show-overflow-tooltip": "", "min-width": "150", label: "所属规则" } }), e2._v(" "), e2._l(e2.checkList, (function(t3, a2) { return n2("el-table-column", { key: a2, attrs: { align: "center", width: "150", index: a2 }, scopedSlots: e2._u([{ key: "default", fn: function(t4) { return [n2("div", { staticClass: "checkMsgSet", on: { click: function(n3) { return e2.seeDetail(t4.row, t4.row.checkinData[a2]); } } }, [e2._v(e2._s(e2.checkStatus(t4.row.checkinData[a2])))])]; } }], null, true) }, [n2("template", { slot: "header" }, [n2("div", [e2._v(e2._s(e2.moment(t3.date).format("MM-DD")))]), e2._v(" "), n2("div", [e2._v(e2._s(e2._f("getItemType")(e2.moment(t3.date).weekday() + 1, e2.weeks)))])])], 2); }))], 2), e2._v(" "), n2("div", { staticClass: "pagination" }, [n2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) { return e2.$set(e2.query, "pageNumber", t3); }, "update:current-page": function(t3) { return e2.$set(e2.query, "pageNumber", t3); }, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), n2("el-dialog", { attrs: { title: e2.title, visible: e2.checkVisible, width: "50%", "before-close": e2.checkClose }, on: { "update:visible": function(t3) { e2.checkVisible = t3; } } }, [n2("div", [n2("div", { staticClass: "checkTop" }, [n2("b", [e2._v(e2._s(e2.saveData.username))]), e2._v(" "), n2("div", [e2._v(e2._s(e2.saveData.deptName))])]), e2._v(" "), n2("div", [n2("div", { staticClass: "checkRule" }, [e2._v("上下班打卡"), n2("span", [e2._v("(规则:" + e2._s(e2.saveData.groupName) + ")")])]), e2._v(" "), n2("div", [n2("el-descriptions", { staticClass: "margin-top", attrs: { title: "", column: 4, direction: "vertical", border: "" } }, [n2("el-descriptions-item", { attrs: { label: "标准打卡时间" } }, [e2.saveDateVal.checkinData && e2.saveDateVal.checkinData.length > 0 ? n2("div", e2._l(e2.saveDateVal.checkinData, (function(t3, a2) { return n2("div", { key: a2 }, [n2("div", [e2._v(e2._s(t3.checkinType.substr(0, 2)) + ":" + e2._s(t3.schCheckinTime ? e2.moment(t3.schCheckinTime).format("HH:mm") : "-"))])]); })), 0) : n2("div", [e2._v("-")])]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "实际打卡时间" } }, [e2.saveDateVal.checkinData && e2.saveDateVal.checkinData.length > 0 ? n2("div", e2._l(e2.saveDateVal.checkinData, (function(t3, a2) { return n2("div", { key: a2 }, [n2("div", [e2._v(e2._s(t3.checkinType.substr(0, 2)) + ":" + e2._s(e2.checkinTimeSet(t3)))])]); })), 0) : n2("div", [e2._v("-")])]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "打卡地点" } }, [e2.saveDateVal.checkinData && e2.saveDateVal.checkinData.length > 0 ? n2("div", e2._l(e2.saveDateVal.checkinData, (function(t3, a2) { return n2("div", { key: a2 }, [n2("div", [e2._v(e2._s(t3.locationDetail || "-"))])]); })), 0) : n2("div", [e2._v("-")])]), e2._v(" "), n2("el-descriptions-item", { attrs: { label: "备注" } }, [e2.saveMark.length > 0 ? n2("div", e2._l(e2.saveMark, (function(t3, a2) { return n2("div", { key: a2 }, [e2._v(e2._s(t3))]); })), 0) : n2("div", [e2._v("-")])])], 1)], 1)])])])], 1); }), l = [function() { var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2; return n2("div", { staticClass: "planLst" }, [n2("span", [e2._v("企业考勤统计列表")])]); }], i = (n("4057"), n("1bc7"), n("4cfb")), s = n("b9f1"), c = n("dd26"), u = n.n(c), d = n("dce5"), m = { data: function() { return { moment: u.a, weeks: d["Hb"], exceptionTypeList: d["F"], pageTotal: 0, listLoading: false, listTable: [], checkList: [], treeList: [], saveData: {}, saveDateVal: {}, saveMark: [], title: "", query: { time: "", pageSize: 10, pageNumber: 1, username: "", deptId: "" }, pickerOptions: { disabledDate: function(e2) { return e2.getTime() > Date.now() - 864e5; } }, checkVisible: false }; }, mounted: function() { this.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.getNowData(), this.getlistData(), this.getTree(); }, methods: { getNowData: function() { var e2 = u()(/* @__PURE__ */ new Date()).subtract(1, "days").startOf("month").format("YYYY-MM-DD"), t2 = u()(/* @__PURE__ */ new Date()).subtract(1, "days").format("YYYY-MM-DD"); this.query.time = [e2, t2]; }, getTree: function() { var e2 = this; Object(s["c"])({ companyId: this.companyId }).then((function(t2) { t2 && t2.data.length > 0 ? e2.treeList = t2.data : e2.treeList = []; })); }, getlistData: function() { var e2 = this; this.listLoading = true, this.checkList = []; var t2 = { startTime: this.query.time ? this.query.time[0] : "", endTime: this.query.time ? this.query.time[1] : "", companyId: this.companyId, pageSize: this.query.pageSize, pageNumber: this.query.pageNumber, username: this.query.username, deptId: this.query.deptId }; Object(i["d"])(t2).then((function(t3) { if (t3.data.records && t3.data.records.length > 0) { e2.listTable = t3.data.records, e2.pageTotal = t3.data.rowsCount; var n2 = t3.data.records[0].checkinData; n2.forEach((function(t4) { e2.checkList.push(t4); })); } else e2.listTable = [], e2.pageTotal = 0; e2.listLoading = false, e2.$nextTick((function() { e2.$refs.tableData.doLayout(); })); })).catch((function() { e2.listLoading = false, e2.listTable = [], e2.pageTotal = 0; })); }, onSearch: function() { this.query.pageNumber = 1, this.getlistData(); }, resetForm: function(e2) { this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getNowData(), this.getlistData(); }, handleSizeChange: function(e2) { this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData(); }, handleCurrentChange: function(e2) { this.query.pageNumber = e2, this.getlistData(); }, headClass: function() { return "text-align:center;background:#FAFAFA;"; }, checkStatus: function(e2) { var t2 = JSON.parse(e2.exceptionInfo), n2 = JSON.parse(e2.holidayInfo), a2 = JSON.parse(e2.summaryInfo); if (t2 || n2 || a2) { if (0 == a2.checkin_count && 0 == t2.length && 0 == n2.length) return "休息"; if (t2.length > 0) { var o2 = []; return t2.forEach((function(e3) { switch (e3.exception) { case 1: o2.push("迟到".concat(u.a.duration(e3.duration, "seconds").asMinutes(), "分钟")); break; case 2: o2.push("早退".concat(u.a.duration(e3.duration, "seconds").asMinutes(), "分钟")); break; case 3: o2.push("缺卡".concat(e3.count, "次")); break; case 4: o2.push("旷工".concat(u.a.duration(e3.duration, "seconds").asMinutes(), "分钟")); break; default: o2.push("打卡异常"); break; } })), o2.toString(); } if (n2.length > 0) { var r2 = []; return n2.forEach((function(e3) { r2.push(e3.sp_title.data[0].text.substr(0, 2)); })), "正常(".concat(r2.toString(), ")"); } return "正常"; } return "-"; }, cellSet: function(e2) { var t2 = e2.row, n2 = e2.column, a2 = (e2.rowIndex, e2.columnIndex, t2.checkinData[n2.index]); if (a2) { var o2 = JSON.parse(a2.exceptionInfo); if (o2 && o2.length > 0) return "cell-bgc-r"; } }, seeDetail: function(e2, t2) { this.saveData = e2, this.saveDateVal = t2, this.title = "打卡详情【".concat(t2.date, " ").concat(d["Hb"][u()(t2.date).weekday()].label, "】"); var n2 = JSON.parse(t2.holidayInfo), a2 = []; n2 && n2.length > 0 ? n2.forEach((function(e3) { a2.push("[".concat(e3.sp_title.data[0].text, "]-").concat(e3.sp_description.data[0].text)); })) : a2 = [], this.saveMark = a2, this.checkVisible = true; }, checkinTimeSet: function(e2) { return "" != e2.exceptionType ? "时间异常" == e2.exceptionType ? u()(e2.checkinTime).format("HH:mm") : e2.exceptionType : u()(e2.checkinTime).format("HH:mm"); }, checkClose: function() { this.checkVisible = false; } } }, f = m, p = (n("2269"), n("829d")), h = Object(p["a"])(f, r, l, false, null, "7136c067", null), v = h.exports, b = function() { var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2; return n2("div", [n2("div", { staticClass: "formContent" }, [n2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [n2("el-form-item", { attrs: { prop: "dateBatch" } }, [n2("el-date-picker", { attrs: { type: "month", format: "yyyy-MM", "value-format": "yyyy-MM", placeholder: "选择月" }, model: { value: e2.query.dateBatch, callback: function(t3) { e2.$set(e2.query, "dateBatch", t3); }, expression: "query.dateBatch" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "projectName" } }, [n2("el-input", { attrs: { placeholder: "项目名称", clearable: "" }, model: { value: e2.query.projectName, callback: function(t3) { e2.$set(e2.query, "projectName", t3); }, expression: "query.projectName" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "memberName" } }, [n2("el-input", { attrs: { placeholder: "姓名", clearable: "" }, model: { value: e2.query.memberName, callback: function(t3) { e2.$set(e2.query, "memberName", t3); }, expression: "query.memberName" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "memberPhone" } }, [n2("el-input", { attrs: { placeholder: "手机号", clearable: "" }, model: { value: e2.query.memberPhone, callback: function(t3) { e2.$set(e2.query, "memberPhone", t3); }, expression: "query.memberPhone" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { prop: "onSearch" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1), e2._v(" "), n2("el-form-item", [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) { return e2.resetForm("query"); } } }, [e2._v("重置")])], 1)], 1)], 1), e2._v(" "), n2("div", { staticClass: "contentStys" }, [n2("div", { staticClass: "planLst" }, [n2("span", [e2._v("人工考勤列表")]), e2._v(" "), n2("div", [n2("el-button", { attrs: { type: "warning", disabled: e2.exportExcelLoading }, on: { click: e2.exportExecl } }, [e2._v("导出模板")]), e2._v(" "), n2("el-upload", { ref: "upload", staticClass: "importSpaceTmpBtn", attrs: { loading: e2.importDataBtn, "auto-upload": true, "show-file-list": false, accept: ".xlsx,.xls", "http-request": e2.importSpaceTmp, action: "" } }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" } }, [e2._v("导入数据")])], 1)], 1)]), e2._v(" "), n2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], ref: "tableData", attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [n2("el-table-column", { attrs: { align: "center", "min-width": "80", "show-overflow-tooltip": "", label: "日期", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [n2("span", [e2._v(e2._s(t3.row.dateBatch || "-"))])]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "项目", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [n2("span", [e2._v(e2._s(t3.row.projectName || "-"))])]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "姓名", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [n2("span", [e2._v(e2._s(t3.row.memberName || "-"))])]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "员工ID", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [n2("span", [e2._v(e2._s(t3.row.memberId || "-"))])]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "手机号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.memberPhone || "-") + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "岗位", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.postName || "-") + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "证件类型", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("getItemType")(t3.row.certificateType, e2.IDTypeList)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "180", label: "证件号", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.idNumber || "-") + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "工资总额(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.shouldSalary)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "基本工资(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.baseSalary)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "应出勤(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.shouldDayNum || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "实出勤(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.actuallyDayNum || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "迟到I(次)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.lateDayNum || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "迟到II(次)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.lateDayNum2 || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "病假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.sickLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "事假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.personalLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "婚假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.marriageLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "丧假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.funeralLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "年休假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.annualLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "公假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.publicLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "工伤假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.workInjuryLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "探亲假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.familyLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "产假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.maternityLeave1 || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "产检假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.maternityLeave2 || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "陪产假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.maternityLeave3 || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "其它假(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.otherLeave || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "加班工资(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.overtimeSalary)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "养老保险-公司(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.endowmentInsuranceC)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "养老保险-个人(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.endowmentInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "医疗保险-公司(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.medicalInsuranceC)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "医疗保险-个人(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.medicalInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "失业保险-公司(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.unemploymentInsuranceC)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "失业保险-个人(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.unemploymentInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "工伤保险-公司(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.workInjuryInsuranceC)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "工伤保险-个人(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.workInjuryInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "生育保险-公司(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.maternityInsuranceC)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "生育保险-个人(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.maternityInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "住房公积金-公司(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n                " + e2._s(e2._f("formatMoney")(t3.row.housingFundC)) + "\n            ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "住房公积金-个人(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n                " + e2._s(e2._f("formatMoney")(t3.row.housingFund)) + "\n            ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "其它加项(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.otherInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "雇主责任险(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.empLiaInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "特定人员工伤(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.speInjuryInsurance)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "专项抵扣(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.specialAmount)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "住宿(天)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.stayDay || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "旷工天数", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.absenteeism || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "无需考勤天数", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.needNotAttendance || 0) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "公摊水电(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.utilityAmount)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "服装折旧费(元)", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.cloDepAmount)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义1", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined1)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义2", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined2)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义3", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined3)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义4", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined4)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义5", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined5)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义6", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined6)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义7", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined7)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义8", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined8)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义9", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined9)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "自定义10", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(e2._f("formatMoney")(t3.row.undefined10)) + "\n ")]; } }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", "min-width": "180", label: "更新完成时间", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) { return [e2._v("\n " + e2._s(t3.row.updateDate) + "\n ")]; } }]) })], 1), e2._v(" "), n2("div", { staticClass: "pagination" }, [n2("el-pagination", { attrs: { "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", background: "", total: e2.pageTotal }, on: { "update:currentPage": function(t3) { return e2.$set(e2.query, "pageNumber", t3); }, "update:current-page": function(t3) { return e2.$set(e2.query, "pageNumber", t3); }, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), n2("el-dialog", { attrs: { title: "导出模板", visible: e2.exportDialog, "destroy-on-close": "", width: "40%" }, on: { "update:visible": function(t3) { e2.exportDialog = t3; }, close: e2.closeVisible } }, [n2("el-form", { ref: "exportForm", attrs: { model: e2.exportForm, rules: e2.exportFormRules, "label-width": "120px" } }, [n2("el-form-item", { attrs: { label: "组织/部门", prop: "osIdList" } }, [n2("el-select", { staticStyle: { width: "220px" }, attrs: { placeholder: "请选择组织/部门", filterable: "", clearable: "", multiple: "", "collapse-tags": true }, on: { change: e2.selectChange }, model: { value: e2.exportForm.osIdList, callback: function(t3) { e2.$set(e2.exportForm, "osIdList", t3); }, expression: "exportForm.osIdList" } }, [n2("el-option", { attrs: { label: "全选", value: "all" } }), e2._v(" "), e2._l(e2.treeList, (function(e3, t3) { return n2("el-option", { key: t3, attrs: { label: e3.name, value: e3.id } }); }))], 2)], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "考勤月份", prop: "attendanceYM" } }, [n2("el-date-picker", { attrs: { type: "month", placeholder: "选择月", "value-format": "yyyy-MM" }, model: { value: e2.exportForm.attendanceYM, callback: function(t3) { e2.$set(e2.exportForm, "attendanceYM", t3); }, expression: "exportForm.attendanceYM" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "离职人员月份", prop: "quitDate" } }, [n2("el-date-picker", { attrs: { type: "month", placeholder: "选择月", "value-format": "yyyy-MM" }, model: { value: e2.exportForm.quitDate, callback: function(t3) { e2.$set(e2.exportForm, "quitDate", t3); }, expression: "exportForm.quitDate" } })], 1)], 1), e2._v(" "), n2("span", { attrs: { slot: "footer" }, slot: "footer" }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.closeVisible } }, [e2._v("取 消")]), e2._v(" "), n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { loading: e2.exportExcelLoading, type: "primary" }, on: { click: e2.submitExport } }, [e2._v("确 定")])], 1)], 1)], 1); }, _ = [], y = (n("ac67"), n("32ea"), n("5821")), w = (n("aa18"), n("982e"), n("c466")), g = n("4513"); function k(e2, t2) { var n2 = Object.keys(e2); if (Object.getOwnPropertySymbols) { var a2 = Object.getOwnPropertySymbols(e2); t2 && (a2 = a2.filter((function(t3) { return Object.getOwnPropertyDescriptor(e2, t3).enumerable; }))), n2.push.apply(n2, a2); } return n2; } function S(e2) { for (var t2 = 1; t2 < arguments.length; t2++) { var n2 = null != arguments[t2] ? arguments[t2] : {}; t2 % 2 ? k(Object(n2), true).forEach((function(t3) { Object(y["a"])(e2, t3, n2[t3]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : k(Object(n2)).forEach((function(t3) { Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); })); } return e2; } var x = { data: function() { return { IDTypeList: d["b"], moment: u.a, pageTotal: 0, exportExcelLoading: false, importDataBtn: false, listLoading: false, listTable: [], query: { dateBatch: "", projectName: "", memberName: "", memberPhone: "", pageSize: 10, pageNumber: 1 }, exportDialog: false, exportForm: { osIdList: [], attendanceYM: "", quitDate: "" }, exportFormRules: { osIdList: [{ required: true, message: "请选择该企业下存在的组织/部门", trigger: "change" }], attendanceYM: [{ required: true, message: "请选择考勤年月", trigger: "change" }] }, companyId: "", treeList: [] }; }, mounted: function() { this.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.getNowData(), this.getlistData(), this.getTree(); }, methods: { getTree: function() { var e2 = this; Object(g["k"])({ id: localStorage.getItem("roleId") }).then((function(t2) { t2 && t2.data.length > 0 ? e2.treeList = t2.data : e2.treeList = []; })); }, selectChange: function(e2) { var t2; (this.exportForm.osIdList = [], e2.length) && (t2 = e2.includes("all") ? this.treeList.map((function(e3) { return e3.id; })) : this.treeList.map((function(t3) { if (e2.includes(t3.id)) return t3.id; })), this.exportForm.osIdList = t2.filter((function(e3) { return e3; }))); }, closeVisible: function() { this.$refs.exportForm.resetFields(), this.exportDialog = false; }, getNowData: function() { this.query.dateBatch = u()(/* @__PURE__ */ new Date()).format("YYYY-MM"); }, submitExport: function() { var e2 = this, t2 = /* @__PURE__ */ new Date(), n2 = Object(w["a"])(t2, "yyyy-MM-dd"), a2 = "人工考勤导入模板".concat(n2, ".xls"); this.exportExcelLoading = true, this.$refs.exportForm.validate((function(t3) { if (t3) { var n3 = S({ companyId: JSON.parse(localStorage.getItem("companyInfo")).osId }, e2.exportForm); n3.quitDate ? n3.quitDate = n3.quitDate + "-01 23:59:59" : n3.quitDate = "", Object(i["b"])(n3).then((function(t4) { e2.exportExcelLoading = false; var n4 = new Blob([t4], { type: "application/vnd.ms-excel;charset=UTF-8" }); if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(n4); else { var o2 = document.createElement("a"); o2.download = a2, o2.href = URL.createObjectURL(n4), o2.click(), URL.revokeObjectURL(o2.href), document.body.removeChild(o2); } })).catch((function(t4) { e2.exportExcelLoading = false; })); } else e2.exportExcelLoading = false; })); }, exportExecl: function() { this.exportDialog = true; }, getlistData: function() { var e2 = this; this.listLoading = true, this.query.roleId = parseInt(JSON.parse(window.localStorage.getItem("roleId"))), Object(i["a"])(this.query).then((function(t2) { t2.data.records && t2.data.records.length > 0 ? (e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount) : (e2.listTable = [], e2.pageTotal = 0), e2.listLoading = false; })).catch((function() { e2.listLoading = false, e2.listTable = [], e2.pageTotal = 0; })); }, onSearch: function() { this.query.pageNumber = 1, this.getlistData(); }, resetForm: function(e2) { this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getNowData(), this.getlistData(); }, handleSizeChange: function(e2) { this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData(); }, handleCurrentChange: function(e2) { this.query.pageNumber = e2, this.getlistData(); }, importSpaceTmp: function(e2) { var t2 = this, n2 = e2.file, a2 = n2.size / 1024 / 1024 < 20, o2 = n2.name.lastIndexOf("."), r2 = n2.name.length, l2 = n2.name.substring(o2 + 1, r2); if ("xls" == l2 || "xlsx" == l2) if (a2) { var s2 = new FormData(), c2 = JSON.parse(window.localStorage.getItem("memberInfor")); this.fileName = n2.name, s2.append("file", n2, n2.name); var u2 = "".concat(JSON.parse(window.localStorage.getItem("companyInfo")).osId, "/").concat(c2.name); this.importDataBtn = true, Object(i["c"])(s2, u2).then((function(e3) { var n3 = e3.headers, a3 = e3.data; if (n3.count) { var o3 = JSON.parse(n3.count); 0 == o3.code ? o3.errorCount > 0 ? (t2.$message({ message: "上传结果:总条数".concat(o3.totalCount, "条,成功").concat(o3.successCount, "条,失败").concat(o3.errorCount, "条。"), type: "warning" }), t2.downloadImportDetailes(a3), t2.query.pageNumber = 1, t2.getlistData()) : (t2.$message({ message: "导入数据成功!", type: "success" }), t2.query.pageNumber = 1, t2.getlistData()) : t2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), t2.importDataBtn = false; } else t2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), t2.importDataBtn = false; })).catch((function() { t2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), t2.importDataBtn = false; })); } else this.$message("上传文件大小不能超过20M!"); else this.$message("只能上传Excel文件!"); }, downloadImportDetailes: function(e2) { var t2 = "application/vnd.ms-excel", n2 = new Blob([e2], { type: t2 }), a2 = "人工考勤导入失败列表.xls"; if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(n2); else { var o2 = document.createElement("a"); o2.download = a2, o2.style.display = "none", o2.href = URL.createObjectURL(n2), document.body.appendChild(o2), o2.click(), document.body.removeChild(o2); } }, headClass: function() { return "text-align:center;background:#FAFAFA;"; } } }, D = x, O = (n("7246"), Object(p["a"])(D, b, _, false, null, "80b04a52", null)), I = O.exports, M = { components: { sysCheck: v, handCheck: I }, data: function() { return { activeName: "sys" }; }, methods: { handleClick: function(e2) { this.activeName = e2.name; } } }, j = M, L = Object(p["a"])(j, a, o, false, null, null, null); t["default"] = L.exports; } }]);