(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-3afaafac"], { "01e1": function (e, l, t) { "use strict"; t("d9a8") }, "0792": function (e, l, t) { "use strict"; t.d(l, "b", (function () { return c })), t.d(l, "a", (function () { return n })); t("d9e2"); function a(e) { return !e || ("{}" === JSON.stringify(e) || "[]" === JSON.stringify(e)) } const o = () => (e, l, t) => { if (l) { const e = /^1[3|4|5|7|8][0-9]\d{8}$/; if (!e.test(l)) return t(new Error("请输入正确的手机号")); t() } else; }, c = (e, l = "phone") => { if (a(e)) return []; const { require: t, validator: c } = e && { ...e }, r = []; t && r.push({ required: !0, message: "请输入手机号", trigger: "blur" }), c && r.push({ min: 11, message: "手机号格式不正确", trigger: "blur" }, { trigger: "blur", validator: o() }); const n = {}; return n[l] = r, { ...n } }, r = () => (e, l, t) => { l && (/(^\d{15}$)|(^\d{17}(\d|X|x)$)/.test(l) || t(new Error("输入的身份证长度或格式错误"))); var a = { 11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古", 21: "辽宁", 22: "吉林", 23: "黑龙江", 31: "上海", 32: "江苏", 33: "浙江", 34: "安徽", 35: "福建", 36: "江西", 37: "山东", 41: "河南", 42: "湖北", 43: "湖南", 44: "广东", 45: "广西", 46: "海南", 50: "重庆", 51: "四川", 52: "贵州", 53: "云南", 54: "西藏", 61: "陕西", 62: "甘肃", 63: "青海", 64: "宁夏", 65: "新疆", 71: "台湾", 81: "香港", 82: "澳门", 91: "国外" }; a[parseInt(null === l || void 0 === l ? void 0 : l.substr(0, 2))] || t(new Error("身份证地区非法")); var o = (l.substr(6, 4) + "-" + Number(l.substr(10, 2)) + "-" + Number(l.substr(12, 2))).replace(/-/g, "/"), c = new Date(o); o !== c.getFullYear() + "/" + (c.getMonth() + 1) + "/" + c.getDate() && t(new Error("身份证上的出生日期非法")); for (var r = 0, n = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], p = "10X98765432", d = 0; d < l.length - 1; d++)r += l[d] * n[d]; var u = p[r % 11]; l[l.length - 1] !== u && t(new Error("输入的身份证号非法")), t() }, n = (e, l = "idEntityCard") => { if (a(e)) return []; const { require: t, validator: o } = e && { ...e }, c = []; t && c.push({ required: !0, message: "请输入身份证号", trigger: "blur" }), o && c.push({ trigger: "blur", validator: r() }); const n = {}; return n[l] = c, { ...n } } }, "0e0e": function (e, l, t) { "use strict"; t("26fd") }, "1d22": function (e, l, t) { "use strict"; var a = t("7a23"), o = t("7902"), c = { __name: "FormMessage", props: { formList: { default: [[]], type: Array }, rules: { default: {}, type: Object }, labelWidth: { default: "100px", type: String }, disabled: { type: Boolean, default: !1 }, modelValue: { type: Object, default: {} } }, emits: ["update:modelValue", "change"], setup(e, { expose: l, emit: t }) { const c = e, r = Object(a["ref"])(), n = Object(a["ref"])({}), p = e => { r.value.validate(l => { if (!l) return !1; e(n.value) }) }, d = () => { n.value = {}, r.value.resetFields() }, u = e => { t("change", n.value) }; return Object(a["watch"])(() => c.modelValue, e => { n.value = e, console.log(e, "===newVal") }, { immediate: !0, deep: !0 }), Object(a["watch"])(() => n.value, e => { t("update:modelValue", e), console.log(e, "===newVal111") }, { immediate: !0, deep: !0 }), l({ submit: p, reset: d }), (l, t) => { const p = Object(a["resolveComponent"])("el-input-number"), d = Object(a["resolveComponent"])("el-radio"), i = Object(a["resolveComponent"])("el-radio-group"), b = Object(a["resolveComponent"])("el-switch"), s = Object(a["resolveComponent"])("el-date-picker"), m = Object(a["resolveComponent"])("el-time-picker"), j = Object(a["resolveComponent"])("el-form-item"), O = Object(a["resolveComponent"])("el-form"); return Object(a["openBlock"])(), Object(a["createBlock"])(O, { ref_key: "elform", ref: r, model: n.value, disabled: e.disabled, "label-width": c.labelWidth, rules: c.rules, inline: !0, "label-position": "right" }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(c.formList, (e, t) => (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", { class: "form-row", key: t, style: Object(a["normalizeStyle"])({ width: "[object Object]" === Object.prototype.toString.call(e) ? e.width : "" }) }, [Array.isArray(e) ? (Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], { key: 0 }, Object(a["renderList"])(e, (t, c) => (Object(a["openBlock"])(), Object(a["createBlock"])(j, { key: c, prop: t.prop, label: t.label, "label-width": t.labelWidth, style: Object(a["normalizeStyle"])({ width: e.width }) }, { default: Object(a["withCtx"])(() => ["input" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["d"], { key: 0, type: t.lx, rows: t.rows || 4, width: "100%", clearable: "", modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, placeholder: "请输入" + t.label, disabled: t.disabled }, null, 8, ["type", "rows", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : "number" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(p, { key: 1, onChange: u, modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, style: { width: "100%" }, min: t.min || 0, max: t.max || 1e3 }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : "select" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["f"], { key: 2, onChange: u, filterable: "", multiple: t.multiple, modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, dictEnum: t.options, width: "100%", clearable: "", placeholder: "请选择" + t.label }, null, 8, ["multiple", "modelValue", "onUpdate:modelValue", "dictEnum", "placeholder"])) : "Sex" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["g"], { key: 3, sex: n.value[t.prop], "onUpdate:sex": e => n.value[t.prop] = e, width: "100%", clearable: "", placeholder: "请选择" + t.label }, null, 8, ["sex", "onUpdate:sex", "placeholder"])) : "other" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["e"], { key: 4, dictEnum: t.lx, width: "100%", modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, clearable: "", filterable: "" }, null, 8, ["dictEnum", "modelValue", "onUpdate:modelValue"])) : "department" === t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["c"], { key: 5, style: { width: "100%" }, clearable: "", placeholder: n.value.ssbm ? n.value.ssbm : "请选择" + t.label, modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e }, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])) : "date" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["b"], { key: 6, type: t.lx ? t.lx : "date", width: "100%", clearable: "", modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e }, null, 8, ["type", "modelValue", "onUpdate:modelValue"])) : "upload" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["h"], { isAll: t.isAll, key: t.prop, showBtn: t.showBtn, isImg: t.isImg, limit: t.limit, width: "100%", modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e }, null, 8, ["isAll", "showBtn", "isImg", "limit", "modelValue", "onUpdate:modelValue"])) : "checkbox" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["CheckBox"], { key: 8, width: "100%", clearable: "", modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, checkList: t.options, placeholder: "请选择" + t.label }, null, 8, ["modelValue", "onUpdate:modelValue", "checkList", "placeholder"])) : "radio" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(i, { key: 9, modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(t.options, e => (Object(a["openBlock"])(), Object(a["createBlock"])(d, { key: e.value, label: e.value }, { default: Object(a["withCtx"])(() => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label), 1)]), _: 2 }, 1032, ["label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : "switch" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(b, { key: 10, modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, class: "ml-2", style: { "--el-switch-on-color": "#13ce66", "--el-switch-off-color": "#ff4949" } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "daterange" === t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(s, { key: 11, modelValue: l.searchObj[t.prop], "onUpdate:modelValue": e => l.searchObj[t.prop] = e, type: "daterange", "unlink-panels": "", "range-separator": t.rangeSeparator, "start-placeholder": t.startPlaceholder, "end-placeholder": t.endPlaceholder, shortcuts: t.shortcuts, "value-format": "YYYY-MM-DD" }, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder", "shortcuts"])) : "datetime" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(s, { key: 12, modelValue: l.searchObj[null === t || void 0 === t ? void 0 : t.prop], "onUpdate:modelValue": e => l.searchObj[null === t || void 0 === t ? void 0 : t.prop] = e, type: "datetime", "value-format": "YYYY-MM-DD HH:mm:ss", placeholder: "请选择时间" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "date" === t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(s, { key: 13, modelValue: l.searchObj[t.prop], "onUpdate:modelValue": e => l.searchObj[t.prop] = e, type: "date", placeholder: t.placeholder, shortcuts: t.shortcuts, "value-format": "YYYY-MM-DD" }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "shortcuts"])) : "time" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(m, { key: 14, modelValue: n.value[t.prop], "onUpdate:modelValue": e => n.value[t.prop] = e, placeholder: "请选择时间" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "slot" === t.type ? Object(a["renderSlot"])(l.$slots, t.prop, { key: 15 }) : Object(a["createCommentVNode"])("", !0)]), _: 2 }, 1032, ["prop", "label", "label-width", "style"]))), 128)) : (Object(a["openBlock"])(), Object(a["createElementBlock"])(a["Fragment"], { key: 1 }, ["slot" != e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(j, { key: 0, prop: e.prop, label: e.label, style: Object(a["normalizeStyle"])({ width: e.width }) }, { default: Object(a["withCtx"])(() => ["input" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["d"], { key: 0, type: e.lx, rows: e.rows || 4, width: "100%", clearable: "", modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l, placeholder: "请输入" + e.label }, null, 8, ["type", "rows", "modelValue", "onUpdate:modelValue", "placeholder"])) : "number" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(p, { key: 1, onChange: u, modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l, style: { width: "100%" }, min: e.min || 0, max: e.max || 1e3 }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : "select" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["f"], { key: 2, onChange: u, filterable: "", multiple: e.multiple, modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l, dictEnum: e.options, width: "100%", clearable: "", placeholder: "请选择" + e.label }, null, 8, ["multiple", "modelValue", "onUpdate:modelValue", "dictEnum", "placeholder"])) : "department" === e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["c"], { key: 3, style: { width: "100%" }, clearable: "", modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "date" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["b"], { key: 4, type: e.lx ? e.lx : "date", width: "100%", clearable: "", modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l }, null, 8, ["type", "modelValue", "onUpdate:modelValue"])) : "upload" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["h"], { key: 5, isImg: e.isImg, limit: e.limit, width: "100%", modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l }, null, 8, ["isImg", "limit", "modelValue", "onUpdate:modelValue"])) : "checkbox" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["CheckBox"], { key: 6, width: "100%", clearable: "", modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l, checkList: e.options, placeholder: "请选择" + e.label }, null, 8, ["modelValue", "onUpdate:modelValue", "checkList", "placeholder"])) : "radio" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(i, { key: 7, modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(e.options, e => (Object(a["openBlock"])(), Object(a["createBlock"])(d, { key: e.value, label: e.value }, { default: Object(a["withCtx"])(() => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label), 1)]), _: 2 }, 1032, ["label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : "switch" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(b, { key: 8, modelValue: n.value[e.prop], "onUpdate:modelValue": l => n.value[e.prop] = l, class: "ml-2", style: { "--el-switch-on-color": "#13ce66", "--el-switch-off-color": "#ff4949" } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : Object(a["createCommentVNode"])("", !0)]), _: 2 }, 1032, ["prop", "label", "style"])) : Object(a["createCommentVNode"])("", !0), "slot" === e.type ? Object(a["renderSlot"])(l.$slots, "default", { key: 1 }) : Object(a["createCommentVNode"])("", !0)], 64))], 4))), 128))]), _: 3 }, 8, ["model", "disabled", "label-width", "rules"]) } } }, r = (t("0e0e"), t("d959")), n = t.n(r); const p = n()(c, [["__scopeId", "data-v-74e6bb4a"]]); l["a"] = p }, "26fd": function (e, l, t) { }, "2e9d": function (e, l, t) { "use strict"; var a = t("7a23"); const o = { class: "title" }, c = { key: 0, class: "font" }, r = { key: 1, class: "flex", style: { "align-items": "center" } }, n = { class: "cnetr" }, p = { class: "right" }; var d = { __name: "PageTitle", props: { title: { type: String || Array, default: [] }, active: { type: Number, default: 0 }, marginBottom: { type: Number, default: 0 }, backgroundColor: { type: String, default: "rgb(255, 255, 255, 0)" } }, emits: ["change", "update:active"], setup(e, { emit: l }) { function t(e, t) { l("update:active", t), l("change", e) } return (l, d) => { const u = Object(a["resolveComponent"])("el-button"); return Object(a["openBlock"])(), Object(a["createElementBlock"])("div", { class: "pageTitle", style: Object(a["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`) }, [Object(a["createElementVNode"])("div", o, ["string" === typeof e.title ? (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", c, Object(a["toDisplayString"])(e.title), 1)) : (Object(a["openBlock"])(), Object(a["createElementBlock"])("ul", r, [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(e.title, (l, o) => (Object(a["openBlock"])(), Object(a["createBlock"])(u, { onClick: e => t(l, o), type: e.active == o ? "primary" : "", key: o }, { default: Object(a["withCtx"])(() => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(l), 1)]), _: 2 }, 1032, ["onClick", "type"]))), 128))]))]), Object(a["createElementVNode"])("div", n, [Object(a["renderSlot"])(l.$slots, "center")]), Object(a["createElementVNode"])("div", p, [Object(a["renderSlot"])(l.$slots, "default")])], 4) } } }, u = (t("01e1"), t("d959")), i = t.n(u); const b = i()(d, [["__scopeId", "data-v-817ee360"]]); l["a"] = b }, cf96: function (e, l, t) { }, d9a8: function (e, l, t) { }, fd16: function (e, l, t) { "use strict"; t("cf96") }, ffc6: function (e, l, t) { "use strict"; t.r(l); var a = t("7a23"), o = t("ad28"), c = t("1090"), r = t("2d16"), n = t("2e9d"), p = t("c5cb"), d = t("1d22"), u = t("0792"); const i = { key: 0, class: "dialog" }, b = { class: "head_box" }, s = { class: "title" }, m = Object(a["createTextVNode"])("保存"), j = Object(a["createTextVNode"])("关闭"), O = { class: "cntinfo" }; var h = { __name: "addPractitionerDialog", props: { modelValue: { type: Boolean, default: !1 } }, emits: ["update:modelValue", "refresh"], setup(e, { expose: l, emit: t }) { const { proxy: o } = Object(a["getCurrentInstance"])(), { D_BZ_WHCD: c, D_BAXX_GWLX: r } = o.$dict("D_BZ_WHCD", "D_BAXX_GWLX"), n = Object(a["ref"])("新增从业人员"), h = Object(a["ref"])(!1), g = Object(a["ref"])(!1), y = Object(a["ref"])(null), k = Object(a["ref"])(!1), v = Object(a["reactive"])([[{ label: "姓名", prop: "xm", type: "input" }, { label: "证件号码", prop: "sfzh", type: "input" }, { label: "联系电话", prop: "lxdh", type: "input" }, { label: "居住地址", prop: "jzdz", type: "input" }], [{ label: "入职时间", prop: "rzsj", type: "date" }, { label: "离职时间", prop: "lzsj", type: "slot" }, { label: "文化程度", prop: "whcd", type: "select", options: c }, { label: "资格证编号", prop: "zgzbh", type: "input" }], [{ label: "资格证类型", prop: "zgzlx", type: "input" }, { label: "资格证起始日期", prop: "zgzKssj", type: "date" }, { label: "资格证截至日期", prop: "zgzJssj", type: "date" }, { label: "岗位", prop: "gw", type: "select", options: r }], [{ label: "外派单位", prop: "wpdw", type: "input" }], { label: "从业人员照片", prop: "tp", type: "upload", limit: 2 }, { label: "保安证件", prop: "bazzp", type: "upload", limit: 1 }]), f = { xm: [{ required: !0, message: "请输入姓名", trigger: "change" }], ...u["b"]({ validator: !0, message: "请输入联系电话", require: !0 }, "lxdh"), ...u["a"]({ validator: !0, message: "请输入身份证号", require: !0 }, "sfzh"), jzdz: [{ required: !0, message: "请输入居住地址", trigger: "change" }], rzsj: [{ required: !0, message: "请选择入职时间", trigger: "change" }], zgzbh: [{ required: !0, message: "请输入资格证编号", trigger: "change" }], gw: [{ required: !0, message: "请输入岗位", trigger: "change" }], wpdw: [{ required: !0, message: "请输入外派单位", trigger: "change" }], zgzlx: [{ required: !0, message: "请输入资格证类型", trigger: "change" }], zgzKssj: [{ required: !0, message: "请选择资格证起始日期", trigger: "change" }], zgzJssj: [{ required: !0, message: "请选择资格证截至日期", trigger: "blur" }], whcd: [{ required: !0, message: "请选择文化程度", trigger: "change" }] }, V = Object(a["ref"])({}), w = () => { var e; null === (e = y.value) || void 0 === e || e.reset(), V.value = {}, k.value = !1 }, B = (e = {}, l = "add") => { k.value = !0, g.value = !1; const t = ["tp", "bazzp"]; t.forEach(l => { e[l] = "string" === typeof e[l] ? e[l].split(",") : e[l] }), V.value = { ...e }, "add" === l ? n.value = "新增从业人员" : "edit" === l ? n.value = "编辑从业人员" : (g.value = !0, n.value = "查看详情") }, C = () => { y.value.submit(() => { var e; h.value = !0; const l = null !== (e = V.value) && void 0 !== e && e.id ? "/mosty-base/baxx/cyry/edit" : "/mosty-base/baxx/cyry/add"; let a = { ...V.value }; a.tp = a.tp ? a.tp.join(",") : "", a.bazzp = a.bazzp ? a.bazzp.join(",") : "", Object(p["b"])(a, l).then(() => { h.value = !1, o.$message.success("保存成功"), t("refresh"), w() }).catch(() => { h.value = !1 }) }) }; return l({ open: B }), (e, l) => { const t = Object(a["resolveComponent"])("el-button"), o = Object(a["resolveComponent"])("el-input"); return k.value ? (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", i, [Object(a["createElementVNode"])("div", b, [Object(a["createElementVNode"])("span", s, Object(a["toDisplayString"])(n.value), 1), Object(a["createElementVNode"])("div", null, [g.value ? Object(a["createCommentVNode"])("", !0) : (Object(a["openBlock"])(), Object(a["createBlock"])(t, { key: 0, size: "small", onClick: C, type: "primary", loading: h.value }, { default: Object(a["withCtx"])(() => [m]), _: 1 }, 8, ["loading"])), Object(a["createVNode"])(t, { size: "small", onClick: w }, { default: Object(a["withCtx"])(() => [j]), _: 1 })])]), Object(a["createElementVNode"])("div", O, [Object(a["createVNode"])(d["a"], { ref_key: "FormRef", ref: y, disabled: g.value, modelValue: V.value, "onUpdate:modelValue": l[1] || (l[1] = e => V.value = e), rules: f, formList: v, labelWidth: 120 }, { lzsj: Object(a["withCtx"])(() => [Object(a["createVNode"])(o, { modelValue: V.value.lzsj, "onUpdate:modelValue": l[0] || (l[0] = e => V.value.lzsj = e), disabled: "", placeholder: "请选择离职时间" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["disabled", "modelValue", "formList"])])])) : Object(a["createCommentVNode"])("", !0) } } }, g = (t("fd16"), t("d959")), y = t.n(g); const k = y()(h, [["__scopeId", "data-v-9f764c64"]]); var v = k; const f = { class: "titleBox" }, V = Object(a["createTextVNode"])("新增"), w = { class: "tabBox" }, B = Object(a["createTextVNode"])("编辑"), C = Object(a["createTextVNode"])("删除"), x = Object(a["createTextVNode"])("详情"), z = Object(a["createTextVNode"])("离职"); var _ = { __name: "index", setup(e) { const { proxy: l } = Object(a["getCurrentInstance"])(), { D_BZ_SF: t, D_BAXX_GWLX: d } = l.$dict("D_BZ_SF", "D_BAXX_GWLX"), u = Object(a["ref"])(null), i = Object(a["ref"])({}), b = Object(a["ref"])(!1), s = Object(a["ref"])(null), m = Object(a["ref"])([{ label: "人员姓名", prop: "xm", placeholder: "请输入人员姓名", showType: "input" }, { label: "证件号码", prop: "sfzh", placeholder: "请输入证件号码", showType: "input" }, { label: "联系电话", prop: "lxdh", placeholder: "请输入联系电话", showType: "input" }, { label: "是否在职", prop: "sflz", placeholder: "请选择是否在职", showType: "select", options: t }]), j = Object(a["reactive"])({ tableData: [], keyCount: 0, tableConfiger: { rowHieght: 61, showSelectType: "null", loading: !1 }, total: 0, pageConfiger: { pageSize: 20, pageCurrent: 1 }, controlsWidth: 180, tableColumn: [{ label: "姓名", prop: "xm" }, { label: "证件号码", prop: "sfzh" }, { label: "联系方式", prop: "lxdh" }, { label: "岗位", prop: "gw", showSolt: !0 }, { label: "入职时间", prop: "rzsj" }, { label: "外派单位", prop: "wpdw" }, { label: "是否在职", prop: "sflz", showSolt: !0 }] }), O = () => { j.tableHeight = window.innerHeight - s.value.offsetHeight - 250, window.onresize = function () { O() } }, h = (e, l) => { u.value.open(l, e) }, g = e => { i.value = e, j.pageConfiger.pageCurrent = 1, _() }, y = async ({ xm: e = "", id: t = "" }) => { await l.$modal.confirm(`是否确认处理${e}离职吗?`); try { await Object(p["b"])({ id: t, sflz: 1 }, "/mosty-base/baxx/cyry/szlzzt"), l.$modal.msgSuccess("离职成功"), await _() } catch (a) { console.log(a) } }, k = async e => { await l.$modal.confirm("是否确认删除该从业人员?"); try { await Object(p["b"])({ idList: e }, "/mosty-base/baxx/cyry/remove"), l.$modal.msgSuccess("删除成功"), _() } catch (t) { console.log(t) } }, _ = async () => { try { j.tableConfiger.loading = !0; const l = await Object(p["b"])({ ...j.pageConfiger, ...i.value }, "/mosty-base/baxx/cyry/page"); var e; if (l) j.tableData = (null === (e = l.records) || void 0 === e ? void 0 : e.map(e => ({ ...e, newSflz: null === (null === e || void 0 === e ? void 0 : e.sflz) ? 0 : e.sflz }))) || [], j.total = l.total } finally { j.tableConfiger.loading = !1 } }, U = e => { j.pageConfiger.pageNum = e, _() }, N = e => { j.pageConfiger.pageSize = e, _() }; return Object(a["onMounted"])(() => { O(), _() }), (e, l) => { const p = Object(a["resolveComponent"])("el-button"), i = Object(a["resolveComponent"])("DictTag"), O = Object(a["resolveComponent"])("el-link"); return Object(a["openBlock"])(), Object(a["createElementBlock"])("div", null, [Object(a["createElementVNode"])("div", f, [Object(a["createVNode"])(n["a"], { title: "从业人员管理" }), Object(a["createVNode"])(p, { type: "primary", onClick: l[0] || (l[0] = l => h("add", e.row)) }, { default: Object(a["withCtx"])(() => [V]), _: 1 })]), Object(a["createElementVNode"])("div", { ref_key: "searchBox", ref: s }, [Object(a["createVNode"])(r["a"], { searchArr: m.value, onSubmit: g }, null, 8, ["searchArr"])], 512), Object(a["createElementVNode"])("div", w, [(Object(a["openBlock"])(), Object(a["createBlock"])(o["a"], { tableData: j.tableData, tableColumn: j.tableColumn, tableHeight: j.tableHeight, key: j.keyCount, tableConfiger: j.tableConfiger, controlsWidth: j.controlsWidth }, { sflz: Object(a["withCtx"])(({ row: e }) => [Object(a["createVNode"])(i, { value: e.newSflz, options: Object(a["unref"])(t) }, null, 8, ["value", "options"])]), gw: Object(a["withCtx"])(({ row: e }) => [Object(a["createVNode"])(i, { value: e.gw, options: Object(a["unref"])(d) }, null, 8, ["value", "options"])]), controls: Object(a["withCtx"])(({ row: e }) => [Object(a["createVNode"])(O, { type: "primary", onClick: l => h("edit", e) }, { default: Object(a["withCtx"])(() => [B]), _: 2 }, 1032, ["onClick"]), Object(a["createVNode"])(O, { type: "danger", onClick: l => k([e.id]) }, { default: Object(a["withCtx"])(() => [C]), _: 2 }, 1032, ["onClick"]), Object(a["createVNode"])(O, { type: "warning", onClick: l => h("view", e) }, { default: Object(a["withCtx"])(() => [x]), _: 2 }, 1032, ["onClick"]), e.sflz && 0 !== e.sflz ? Object(a["createCommentVNode"])("", !0) : (Object(a["openBlock"])(), Object(a["createBlock"])(O, { key: 0, type: "primary", onClick: l => y(e) }, { default: Object(a["withCtx"])(() => [z]), _: 2 }, 1032, ["onClick"]))]), _: 1 }, 8, ["tableData", "tableColumn", "tableHeight", "tableConfiger", "controlsWidth"])), Object(a["createVNode"])(c["a"], { onChangeNo: U, onChangeSize: N, tableHeight: j.tableHeight, pageConfiger: { ...j.pageConfiger, total: j.total } }, null, 8, ["tableHeight", "pageConfiger"])]), Object(a["createVNode"])(v, { modelValue: b.value, "onUpdate:modelValue": l[1] || (l[1] = e => b.value = e), ref_key: "addPractitionerRef", ref: u, onRefresh: _ }, null, 8, ["modelValue"])]) } } }; const U = _; l["default"] = U } }]);