(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-7df4958e"], { "0782": function(e, t, a) { "use strict"; a("7974"); }, "462d": function(e, t, a) { "use strict"; a.r(t); var o = function() { var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2; return a2("div", { staticClass: "app-container bgHeight" }, [a2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [a2("div", { attrs: { slot: "header" }, slot: "header" }, [a2("span", [e2._v("人事设置")])]), e2._v(" "), a2("el-form", { ref: "setForm", attrs: { model: e2.setForm } }, [a2("el-form-item", { attrs: { label: "特定工伤人事档案检测: ", prop: "verification" } }, [a2("el-switch", { attrs: { "active-color": "#13ce66", "inactive-color": "#ff4949", "active-value": 1, "inactive-value": 0, "active-text": "开启", "inactive-text": "关闭" }, model: { value: e2.setForm.verification, callback: function(t3) { e2.$set(e2.setForm, "verification", t3); }, expression: "setForm.verification" } })], 1), e2._v(" "), 1 == e2.setForm.verification ? a2("el-form-item", { attrs: { rules: [{ required: true, message: "请输入特定工伤(男)年龄", trigger: "change" }], label: "特定工伤(男)年龄: ", prop: "maleAge" } }, [a2("el-input-number", { attrs: { "controls-position": "right" }, model: { value: e2.setForm.maleAge, callback: function(t3) { e2.$set(e2.setForm, "maleAge", t3); }, expression: "setForm.maleAge" } })], 1) : e2._e(), e2._v(" "), 1 == e2.setForm.verification ? a2("el-form-item", { attrs: { rules: [{ required: true, message: "请输入特定工伤(女)年龄", trigger: "change" }], label: "特定工伤(女)年龄: ", prop: "womenAge" } }, [a2("el-input-number", { attrs: { "controls-position": "right" }, model: { value: e2.setForm.womenAge, callback: function(t3) { e2.$set(e2.setForm, "womenAge", t3); }, expression: "setForm.womenAge" } })], 1) : e2._e(), e2._v(" "), a2("el-form-item", [a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) { return e2.confirmSet(); } } }, [e2._v("保存")])], 1)], 1)], 1)], 1); }, n = [], r = (a("a450"), a("e862")), i = { data: function() { return { setForm: { verification: 0, maleAge: 0, womenAge: 0 } }; }, created: function() { this.getSet(); }, methods: { getSet: function() { var e2 = this, t2 = JSON.parse(localStorage.getItem("companyInfo")).osId; Object(r["e"])({ id: t2 }).then((function(t3) { 0 == t3.code && t3.data && (e2.setForm.verification = t3.data.verification, e2.setForm.womenAge = t3.data.womenAge, e2.setForm.maleAge = t3.data.maleAge); })); }, confirmSet: function() { var e2 = this, t2 = JSON.parse(window.localStorage.getItem("memberInfor")), a2 = JSON.parse(localStorage.getItem("companyInfo")).osId; this.$refs.setForm.validate((function(o2) { if (o2) { var n2 = { updateName: t2.name, verification: e2.setForm.verification, id: a2 }; e2.setForm.verification && (n2.maleAge = e2.setForm.maleAge, n2.womenAge = e2.setForm.womenAge), Object(r["i"])(n2).then((function(t3) { 0 == t3.code && (e2.$message.success("更新成功"), e2.getSet()); })); } })); } } }, c = i, m = (a("0782"), a("829d")), s = Object(m["a"])(c, o, n, false, null, "eda9bc48", null); t["default"] = s.exports; }, 7974: function(e, t, a) { }, e862: function(e, t, a) { "use strict"; a.d(t, "a", (function() { return n; })), a.d(t, "e", (function() { return r; })), a.d(t, "i", (function() { return i; })), a.d(t, "f", (function() { return c; })), a.d(t, "c", (function() { return m; })), a.d(t, "g", (function() { return s; })), a.d(t, "d", (function() { return u; })), a.d(t, "h", (function() { return l; })), a.d(t, "b", (function() { return d; })); var o = a("b775"); function n(e2) { return Object(o["a"])({ url: "/hakocompany/ProjectImageManagement/batchSetMultiCompany", method: "post", data: e2 }); } function r(e2) { return Object(o["a"])({ url: "/company/organizationalStructure/findById", method: "post", data: e2 }); } function i(e2) { return Object(o["a"])({ url: "/company/organizationalStructure/updateAgeConf", method: "post", data: e2 }); } function c(e2) { return Object(o["a"])({ url: "/company/organizationalStructure/findProjectListByCompanyId", method: "post", data: e2 }); } function m(e2) { return Object(o["a"])({ url: "/hakocompany/ProjectImageManagement/pageList", method: "post", data: e2 }); } function s(e2) { return Object(o["a"])({ url: "/hakocompany/ProjectImageManagement/sort", method: "post", data: e2 }); } function u(e2) { return Object(o["a"])({ url: "/hakocompany/ProjectImageManagement/enable", method: "post", data: e2 }); } function l(e2) { return Object(o["a"])({ url: "/hakocompany/ProjectImageManagement/stop", method: "post", data: e2 }); } function d(e2) { return Object(o["a"])({ url: "/hakocompany/ProjectImageManagement/deleteBatch", method: "post", data: e2 }); } } }]);