1130 lines
100 KiB
JavaScript
1130 lines
100 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-54fa7746"], { "13e2": function(e, t, a) {
|
||
}, "244d": function(e, t, a) {
|
||
"use strict";
|
||
var i = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "memberEdit" }, ["See" === e2.editType && 1 == e2.workInfoForm.onJobState ? a2("div", { staticStyle: { "text-align": "right" } }, [2 != e2.workInfoForm.onJobState ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "mini" }, on: { click: function(t3) {
|
||
return e2.changeType("Edit");
|
||
} } }, [e2._v("编辑")]) : e2._e()], 1) : e2._e(), e2._v(" "), a2("el-divider", { attrs: { "content-position": "left" } }, [e2._v("联系信息")]), e2._v(" "), a2("el-form", { ref: "memberForm", attrs: { model: e2.memberForm, "label-width": "120px", rules: e2.workInfoFormRules2 } }, [a2("el-row", { attrs: { gutter: 25 } }, [a2("el-col", { attrs: { span: 7, offset: 1 } }, ["Add" != e2.editType ? a2("el-form-item", { attrs: { prop: "codeNumber", label: "编号" } }, [a2("el-input", { attrs: { clearable: "", disabled: "" }, model: { value: e2.memberForm.codeNumber, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "codeNumber", t3);
|
||
}, expression: "memberForm.codeNumber" } })], 1) : e2._e(), e2._v(" "), a2("el-form-item", { attrs: { prop: "certificateType", label: "证件类型" } }, [a2("el-select", { attrs: { disabled: true, clearable: "", placeholder: "请选证件类型" }, model: { value: e2.memberForm.certificateType, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "certificateType", t3);
|
||
}, expression: "memberForm.certificateType" } }, e2._l(e2.IDTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "身份证号", prop: "idNumber" } }, [a2("el-input", { attrs: { maxlength: "18", placeholder: "身份证号码", clearable: "", disabled: "See" === e2.editType }, model: { value: e2.memberForm.idNumber, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "idNumber", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "memberForm.idNumber" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "国籍", prop: "country" } }, [a2("el-select", { attrs: { placeholder: "请选择", disabled: "See" === e2.editType }, model: { value: e2.memberForm.country, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "country", t3);
|
||
}, expression: "memberForm.country" } }, e2._l(e2.nationalityList, (function(t3) {
|
||
return a2("el-option-group", { key: t3.label, attrs: { label: t3.label } }, e2._l(t3.children, (function(t4) {
|
||
return a2("el-option", { key: t4, attrs: { label: t4.split("|")[1], value: t4.split("|")[1] } }, [a2("span", { staticStyle: { float: "left" } }, [e2._v(e2._s(t4.split("|")[1]))])]);
|
||
})), 1);
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "性别", prop: "sex" } }, [a2("el-select", { attrs: { placeholder: "请选择性别", disabled: "See" === e2.editType }, model: { value: e2.memberForm.sex, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "sex", t3);
|
||
}, expression: "memberForm.sex" } }, [a2("el-option", { attrs: { label: "男", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "女", value: 2 } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "体重", prop: "weight" } }, [a2("el-input", { attrs: { placeholder: "体重", disabled: "See" === e2.editType, clearable: "" }, model: { value: e2.memberForm.weight, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "weight", t3);
|
||
}, expression: "memberForm.weight" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "健康状况", prop: "healthCondition" } }, [a2("el-select", { attrs: { placeholder: "请选择健康状况", disabled: "See" === e2.editType }, model: { value: e2.memberForm.healthCondition, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "healthCondition", t3);
|
||
}, expression: "memberForm.healthCondition" } }, [a2("el-option", { attrs: { label: "良好", value: "0" } }), e2._v(" "), a2("el-option", { attrs: { label: "其他", value: "1" } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "个人专长", prop: "expertise" } }, [a2("el-input", { attrs: { placeholder: "个人专长", clearable: "", disabled: "See" === e2.editType, maxlength: "128" }, model: { value: e2.memberForm.expertise, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "expertise", t3);
|
||
}, expression: "memberForm.expertise" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "紧急联系人电话", prop: "urgentPhone" } }, [a2("el-input", { attrs: { placeholder: "请输入紧急联系人手机号", disabled: "See" === e2.editType, clearable: "", maxlength: "11" }, model: { value: e2.memberForm.urgentPhone, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "urgentPhone", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "memberForm.urgentPhone" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 7, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "name", label: "姓名" } }, [a2("el-input", { attrs: { placeholder: "成员姓名", clearable: "", disabled: "See" === e2.editType }, model: { value: e2.memberForm.name, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "name", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "memberForm.name" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "出生日期", prop: "birthday" } }, [a2("el-date-picker", { attrs: { disabled: "See" === e2.editType, clearable: "", "value-format": "yyyy-MM-dd", type: "date", placeholder: "选择出生日期" }, model: { value: e2.memberForm.birthday, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "birthday", t3);
|
||
}, expression: "memberForm.birthday" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "民族", prop: "nation" } }, [a2("el-select", { attrs: { placeholder: "请选择民族", disabled: "See" === e2.editType }, model: { value: e2.memberForm.nation, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "nation", t3);
|
||
}, expression: "memberForm.nation" } }, e2._l(e2.nation, (function(e3) {
|
||
return a2("el-option", { key: e3.name, attrs: { label: e3.name, value: e3.name } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "婚姻状况", prop: "maritalStatus" } }, [a2("el-select", { attrs: { placeholder: "请选择婚姻状况", disabled: "See" === e2.editType }, model: { value: e2.memberForm.maritalStatus, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "maritalStatus", t3);
|
||
}, expression: "memberForm.maritalStatus" } }, e2._l(e2.maritalStatus, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "星座", prop: "constellation" } }, [a2("el-select", { attrs: { placeholder: "请选择星座", disabled: "See" === e2.editType }, model: { value: e2.memberForm.constellation, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "constellation", t3);
|
||
}, expression: "memberForm.constellation" } }, e2._l(e2.constellation, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "政治面貌", prop: "politicCountenance" } }, [a2("el-select", { attrs: { placeholder: "请选择政治面貌", disabled: "See" === e2.editType }, model: { value: e2.memberForm.politicCountenance, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "politicCountenance", t3);
|
||
}, expression: "memberForm.politicCountenance" } }, e2._l(e2.politicalType, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "兴趣爱好", prop: "hobby" } }, [a2("el-input", { attrs: { placeholder: "请输入兴趣爱好", clearable: "", disabled: "See" === e2.editType, maxlength: "128" }, model: { value: e2.memberForm.hobby, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "hobby", t3);
|
||
}, expression: "memberForm.hobby" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "档案来源", prop: "archivesSource" } }, [a2("el-select", { attrs: { disabled: true }, model: { value: e2.memberForm.archivesSource, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "archivesSource", t3);
|
||
}, expression: "memberForm.archivesSource" } }, e2._l(e2.archivesSourceList, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 7, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "englishName", label: "英文名" } }, [a2("el-input", { attrs: { placeholder: "英文名", clearable: "", disabled: "See" === e2.editType }, model: { value: e2.memberForm.englishName, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "englishName", t3);
|
||
}, expression: "memberForm.englishName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "手机号", prop: "phoneNumber" } }, [a2("el-input", { attrs: { placeholder: "成员手机号", disabled: "Add" !== e2.editType, clearable: "" }, model: { value: e2.memberForm.phoneNumber, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "phoneNumber", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "memberForm.phoneNumber" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "籍贯", prop: "nativePlace" } }, [a2("el-select", { attrs: { placeholder: "请选择籍贯", disabled: "See" === e2.editType }, model: { value: e2.memberForm.nativePlace, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "nativePlace", t3);
|
||
}, expression: "memberForm.nativePlace" } }, e2._l(e2.provincesList, (function(e3) {
|
||
return a2("el-option", { key: e3, attrs: { label: e3, value: e3 } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "身高", prop: "height" } }, [a2("el-input", { attrs: { placeholder: "身高", disabled: "See" === e2.editType, clearable: "" }, model: { value: e2.memberForm.height, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "height", t3);
|
||
}, expression: "memberForm.height" } }, [a2("template", { slot: "append" }, [e2._v("cm")])], 2)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "生肖", prop: "zodiacSign" } }, [a2("el-select", { attrs: { placeholder: "请选择生肖", disabled: "See" === e2.editType }, model: { value: e2.memberForm.zodiacSign, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "zodiacSign", t3);
|
||
}, expression: "memberForm.zodiacSign" } }, e2._l(e2.zodiac, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "个人邮箱", prop: "email" } }, [a2("el-input", { attrs: { placeholder: "请输入个人邮箱账号", disabled: "See" === e2.editType, clearable: "" }, model: { value: e2.memberForm.email, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "email", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "memberForm.email" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "urgentPerson", label: "紧急联系人" } }, [a2("el-input", { attrs: { placeholder: "请输入紧急联系人姓名", clearable: "", disabled: "See" === e2.editType }, model: { value: e2.memberForm.urgentPerson, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "urgentPerson", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "memberForm.urgentPerson" } })], 1)], 1)], 1), e2._v(" "), a2("el-row", [a2("el-col", { attrs: { span: 20, offset: 1 } }, [a2("el-form-item", { attrs: { label: "详细地址", prop: "detailAddress" } }, [a2("el-input", { attrs: { type: "textarea", placeholder: "请输入本市详细住址", disabled: "See" === e2.editType, clearable: "" }, model: { value: e2.memberForm.detailAddress, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "detailAddress", t3);
|
||
}, expression: "memberForm.detailAddress" } })], 1)], 1)], 1)], 1), e2._v(" "), a2("el-divider", { attrs: { "content-position": "left" } }, [e2._v("工作信息")]), e2._v(" "), a2("el-row", { attrs: { gutter: 25 } }, [a2("el-form", { ref: "workInfoForm", attrs: { model: e2.workInfoForm, "label-width": "110px" } }, [a2("el-col", { attrs: { span: 20, offset: 1 } }, [a2("el-form-item", { attrs: { label: "组织机构" } }, [a2("el-cascader", { attrs: { options: e2.organizeList, disabled: "", props: { label: "name", children: "childs", value: "uid", checkStrictly: true } }, model: { value: e2.osUuid, callback: function(t3) {
|
||
e2.osUuid = t3;
|
||
}, expression: "osUuid" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 7, offset: 1 } }, [a2("el-form-item", { attrs: { label: "状态", prop: "onJobState" } }, [a2("el-select", { attrs: { placeholder: "请选择成员状态", disabled: "See" === e2.editType }, on: { change: e2.onJobStateChange }, model: { value: e2.workInfoForm.onJobState, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "onJobState", t3);
|
||
}, expression: "workInfoForm.onJobState" } }, [a2("el-option", { attrs: { label: "试用", value: 0 } }), e2._v(" "), a2("el-option", { attrs: { label: "在职", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "离职", value: 2 } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "职位/职级", prop: "position" } }, [a2("el-select", { attrs: { placeholder: "请选择成员状态", disabled: "See" === e2.editType }, model: { value: e2.workInfoForm.position, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "position", t3);
|
||
}, expression: "workInfoForm.position" } }, [a2("el-option", { attrs: { label: "良好", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "其他", value: 0 } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "直属领导", prop: "leaderId" } }, [a2("el-select", { attrs: { filterable: "", placeholder: "请选择直属领导", disabled: "See" === e2.editType }, model: { value: e2.workInfoForm.leaderId, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "leaderId", t3);
|
||
}, expression: "workInfoForm.leaderId" } }, e2._l(e2.searchList, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.value, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "转正日期", prop: "positiveDate" } }, [a2("el-date-picker", { attrs: { clearable: "", disabled: "See" === e2.editType, type: "date", format: "yyyy-MM-dd", "value-format": "timestamp", placeholder: "选择转正日期" }, model: { value: e2.workInfoForm.positiveDate, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "positiveDate", t3);
|
||
}, expression: "workInfoForm.positiveDate" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "合同有效期" } }, [a2("el-date-picker", { attrs: { type: "daterange", disabled: "See" === e2.editType, format: "yyyy-MM-dd", "value-format": "timestamp", "range-separator": "至", "start-placeholder": "开始日期", "end-placeholder": "结束日期" }, model: { value: e2.contractDate, callback: function(t3) {
|
||
e2.contractDate = t3;
|
||
}, expression: "contractDate" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 7, offset: 1 } }, [a2("el-form-item", { attrs: { label: "企业后台岗位" } }, [a2("div", { staticClass: "job-inline" }, [a2("el-radio-group", { staticClass: "job-radio", attrs: { size: "mini", disabled: "See" === e2.editType }, on: { change: e2.jobSelectChange }, model: { value: e2.jobType, callback: function(t3) {
|
||
e2.jobType = t3;
|
||
}, expression: "jobType" } }, [a2("el-radio-button", { attrs: { label: "常用" } }), e2._v(" "), a2("el-radio-button", { attrs: { label: "其他" } })], 1), e2._v(" "), "常用" === e2.jobType ? a2("el-select", { staticClass: "job-select", attrs: { "value-key": "id", filterable: "", placeholder: "请选择企业后台岗位", disabled: "See" === e2.editType }, on: { change: e2.jobSelect }, model: { value: e2.jobActive, callback: function(t3) {
|
||
e2.jobActive = t3;
|
||
}, expression: "jobActive" } }, e2._l(e2.jobList1, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3 } });
|
||
})), 1) : e2._e(), e2._v(" "), "其他" === e2.jobType ? a2("el-select", { staticClass: "job-select", attrs: { "value-key": "id", filterable: "", placeholder: "请选择企业后台岗位", disabled: "See" === e2.editType }, on: { change: e2.jobSelect }, model: { value: e2.jobActive, callback: function(t3) {
|
||
e2.jobActive = t3;
|
||
}, expression: "jobActive" } }, e2._l(e2.jobList2, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3 } });
|
||
})), 1) : e2._e()], 1)]), e2._v(" "), a2("el-form-item", { attrs: { label: "编制类型", prop: "formationType" } }, [a2("el-select", { attrs: { disabled: "See" === e2.editType, placeholder: "请选择合同编制类型", clearable: "" }, model: { value: e2.workInfoForm.formationType, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "formationType", t3);
|
||
}, expression: "workInfoForm.formationType" } }, [a2("el-option", { attrs: { label: "编外", value: 0 } }), e2._v(" "), a2("el-option", { attrs: { label: "编内", value: 1 } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "入职日期", prop: "entryDate" } }, [a2("el-date-picker", { attrs: { clearable: "", disabled: "See" === e2.editType, type: "date", format: "yyyy-MM-dd", "value-format": "timestamp", placeholder: "选择入职日期" }, model: { value: e2.workInfoForm.entryDate, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "entryDate", t3);
|
||
}, expression: "workInfoForm.entryDate" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "OA账号", prop: "oaAccount" } }, [a2("el-input", { attrs: { placeholder: "OA账号", disabled: "See" === e2.editType, clearable: "" }, model: { value: e2.workInfoForm.oaAccount, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "oaAccount", t3);
|
||
}, expression: "workInfoForm.oaAccount" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "企业微信ID", prop: "wxUserId" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", placeholder: "请选择企业微信成员", disabled: "See" === e2.editType }, model: { value: e2.workInfoForm.wxUserId, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "wxUserId", t3);
|
||
}, expression: "workInfoForm.wxUserId" } }, e2._l(e2.wechatArr, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.userId } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 7, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "hrPostName", label: "HR系统岗位" } }, [a2("el-input", { attrs: { disabled: "", placeholder: "请填写HR系统岗位" }, model: { value: e2.memberForm.hrPostName, callback: function(t3) {
|
||
e2.$set(e2.memberForm, "hrPostName", t3);
|
||
}, expression: "memberForm.hrPostName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "员工类别", prop: "staffType" } }, [a2("el-select", { attrs: { placeholder: "请选择员工类别", disabled: "See" === e2.editType }, model: { value: e2.workInfoForm.staffType, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "staffType", t3);
|
||
}, expression: "workInfoForm.staffType" } }, e2._l(e2.staffType, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "离职日期", prop: "quitDate" } }, [a2("el-date-picker", { attrs: { disabled: "", type: "date", placeholder: "选择日期" }, model: { value: e2.workInfoForm.quitDate, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "quitDate", t3);
|
||
}, expression: "workInfoForm.quitDate" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "合同类型", prop: "contractType" } }, [a2("el-select", { attrs: { placeholder: "请选择合同类型", disabled: "See" === e2.editType }, model: { value: e2.workInfoForm.contractType, callback: function(t3) {
|
||
e2.$set(e2.workInfoForm, "contractType", t3);
|
||
}, expression: "workInfoForm.contractType" } }, e2._l(e2.contractType, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("el-divider", { attrs: { "content-position": "left" } }, [e2._v("社保缴纳信息")]), e2._v(" "), a2("el-row", { attrs: { gutter: 25 } }, [a2("el-form", { ref: "workInfoForm", attrs: { model: e2.socialSecurity, "label-width": "110px", inline: true } }, [a2("el-col", { attrs: { span: 4, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "medical" } }, [a2("el-checkbox", { attrs: { disabled: "See" === e2.editType || 2 == e2.socialSecurity.specificWorkInjury, "true-label": 2, "false-label": 1 }, on: { change: e2.changeMedical }, model: { value: e2.socialSecurity.medical, callback: function(t3) {
|
||
e2.$set(e2.socialSecurity, "medical", t3);
|
||
}, expression: "socialSecurity.medical" } }, [e2._v("社保")])], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 4, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "specificWorkInjury" } }, [a2("el-checkbox", { attrs: { disabled: "See" === e2.editType || 2 == e2.socialSecurity.medical, "true-label": 2, "false-label": 1 }, on: { change: e2.changeMedical }, model: { value: e2.socialSecurity.specificWorkInjury, callback: function(t3) {
|
||
e2.$set(e2.socialSecurity, "specificWorkInjury", t3);
|
||
}, expression: "socialSecurity.specificWorkInjury" } }, [e2._v("特定人员工伤保险")])], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 4, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "employerLiability" } }, [a2("el-checkbox", { attrs: { disabled: "See" === e2.editType, "true-label": 2, "false-label": 1 }, model: { value: e2.socialSecurity.employerLiability, callback: function(t3) {
|
||
e2.$set(e2.socialSecurity, "employerLiability", t3);
|
||
}, expression: "socialSecurity.employerLiability" } }, [e2._v("雇主责任险")])], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 4, offset: 1 } }, [a2("el-form-item", { attrs: { prop: "housingFund" } }, [a2("el-checkbox", { attrs: { disabled: "See" === e2.editType, "true-label": 2, "false-label": 1 }, model: { value: e2.socialSecurity.housingFund, callback: function(t3) {
|
||
e2.$set(e2.socialSecurity, "housingFund", t3);
|
||
}, expression: "socialSecurity.housingFund" } }, [e2._v("住房公积金")])], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "dialog-footer btnSyts", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { attrs: { type: "primary" }, on: { click: e2.memberEditCancel } }, [e2._v("取 消")]), e2._v(" "), "See" != e2.editType ? a2("el-button", { attrs: { loading: e2.editDisabledBtn, type: "primary" }, on: { click: function(t3) {
|
||
return e2.editMemberBtn("memberForm");
|
||
} } }, [e2._v("确 定")]) : e2._e()], 1)], 1);
|
||
}, r = [], o = (a("e5b4"), a("1bc7"), a("a450"), a("e211")), n = a("4513"), s = a("dce5"), l = (a("61f7"), a("ed08")), c = a("b9f1"), m = (a("99d5"), { props: ["selectUid", "organizeList", "companyAdd"], data: function() {
|
||
var e2 = function(e3, t3, a2) {
|
||
var i2 = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
|
||
return t3 ? i2.test(t3) ? void a2() : a2(new Error("证件号码不正确")) : a2(new Error("idNumber is required"));
|
||
}, t2 = function(e3, t3, a2) {
|
||
/^1\d{10}$/.test(t3) ? a2() : a2(new Error("手机号格式错误"));
|
||
};
|
||
return { archivesSourceList: s["i"], areaData: o["c"], memberEditVisible: false, editDisabledBtn: false, editType: "Add", IDTypeList: s["b"], memberForm: { certificateType: 1, area: "", city: "", province: "", codeNumber: "", idNumber: "", country: "", sex: 1, weight: "", healthCondition: "", expertise: "", urgentPhone: "", name: "", birthday: "", nation: "", maritalStatus: "", constellation: "", politicCountenance: "", hobby: "", archivesSource: null, englishName: "", phoneNumber: "", nativePlace: "", height: "", zodiacSign: "", email: "", urgentPerson: "", detailAddress: "" }, jobActive: {}, jobType: "常用", member_area: [], osUuid: "", contractDate: "", workInfoForm: { contractBegDate: "", contractEndDate: "", contractType: 1, entryDate: "", leaderId: "", onJobState: 1, positiveDate: "", quitDate: "", wxUserId: "", roleType: "", workNumber: "", oaAccount: "", position: "", staffType: "", formationType: "" }, socialSecurity: { employerLiability: 2, housingFund: 2, medical: 2, specificWorkInjury: 1 }, nation: s["cb"], nationalityList: s["db"], maritalStatus: s["W"], contractType: s["x"], politicalType: s["nb"], staffType: s["Ab"], constellation: s["v"], zodiac: s["Ib"], provincesList: s["rb"], searchList: [], wechatArr: [], companyInfo: {}, jobList: [], jobList1: [], jobList2: [], workInfoFormRules1: { phoneNumber: [{ required: true, message: "手机号不能为空", trigger: "blur" }, { validator: t2, trigger: "blur" }], idNumber: [{ required: true, message: "身份证号不能为空", trigger: "blur" }, { validator: e2, trigger: "blur" }], name: [{ required: true, message: "姓名不能为空", trigger: "blur" }] }, workInfoFormRules2: { phoneNumber: [{ required: true, message: "手机号不能为空", trigger: "blur" }, { validator: t2, trigger: "blur" }], idNumber: [{ required: true, message: "身份证号不能为空", trigger: "blur" }, { validator: e2, trigger: "blur" }], name: [{ required: true, message: "姓名不能为空", trigger: "blur" }], birthday: [{ required: true, message: "出生日期不能为空", trigger: "change" }] }, workInfoFormRules: { formationType: [{ required: true, message: "请选择编制类型", trigger: "change" }], entryDate: [{ required: true, message: "请选择入职日期", trigger: "change" }], contractType: [{ required: true, message: "请选择合同类型", trigger: "change" }], staffType: [{ required: true, message: "请选择员工类型", trigger: "change" }], positiveDate: [{ required: true, message: "请选择转正日期", trigger: "change" }], leaderId: [{ required: true, message: "请选择直属领导", trigger: "change" }] } };
|
||
}, mounted: function() {
|
||
this.companyWechatUserList();
|
||
}, methods: { jobSelectChange: function() {
|
||
this.jobActive = {}, this.memberForm.postUuid = "", this.memberForm.postName = "";
|
||
}, changeMedical: function() {
|
||
2 == this.socialSecurity.medical && (this.socialSecurity.specificWorkInjury = 1), 2 == this.socialSecurity.specificWorkInjury && (this.socialSecurity.medical = 1);
|
||
}, init: function(e2, t2) {
|
||
this.$nextTick((function() {
|
||
if (this.$refs["memberForm"].resetFields(), this.jobActive = {}, this.$refs["workInfoForm"].resetFields(), this.member_area = [], this.contractDate = "", this.memberForm.postUuid = "", this.memberForm.postName = "", t2) {
|
||
if (Object.assign(this.memberForm, t2.memberAddReqDTO), Object.assign(this.workInfoForm, t2.memberWorkInfoAddReqDTO), Object.assign(this.socialSecurity, t2.memberSocialSecurityRespDTO), console.log(this.socialSecurity, "employerLiability"), this.workInfoForm.entryDate && (this.workInfoForm.entryDate = new Date(this.workInfoForm.entryDate).valueOf()), this.workInfoForm.positiveDate && (this.workInfoForm.positiveDate = new Date(this.workInfoForm.positiveDate).valueOf()), t2.memberWorkInfoAddReqDTO.contractBegDate) {
|
||
var a2 = new Date(t2.memberWorkInfoAddReqDTO.contractBegDate).valueOf(), i2 = new Date(t2.memberWorkInfoAddReqDTO.contractEndDate).valueOf();
|
||
this.contractDate = [a2, i2];
|
||
}
|
||
var r2 = this.memberForm, n2 = r2.province, s2 = r2.city, l2 = r2.area;
|
||
if (n2) if (/^[\u4e00-\u9fa5]+$/i.test(n2)) {
|
||
var c2 = o["textToCode"][n2], m2 = o["textToCode"][n2][s2], d2 = o["textToCode"][n2][s2][l2];
|
||
this.member_area.push(c2.code, m2.code, d2.code);
|
||
} else this.member_area.push(n2, s2, l2);
|
||
else this.member_area.length > 0 && (this.$refs.myCascader.$refs.panel.checkedValue = [], this.$refs.myCascader.$refs.panel.clearCheckedNodes(), this.$refs.myCascader.$refs.panel.activePath = [], this.$refs.myCascader.$refs.panel.syncActivePath());
|
||
this.osUuid = e2, this.jobActive = { id: this.memberForm.postUuid }, this.editType = "See";
|
||
} else this.editType = "Add", this.socialSecurity = { employerLiability: 2, housingFund: 2, medical: 2, specificWorkInjury: 1 }, this.memberForm.archivesSource = 3;
|
||
this.searchPersonManage(), this.getJobList();
|
||
}));
|
||
}, companyWechatUserList: function() {
|
||
var e2 = this, t2 = { pageNumbe: -1, pageSize: -1, mainDepartment: 1, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId };
|
||
Object(c["a"])(t2).then((function(t3) {
|
||
0 == t3.code && (e2.wechatArr = t3.data.records);
|
||
}));
|
||
}, showMember: function() {
|
||
this.memberEditVisible = true, this.osUuid = this.selectUid, this.companyInfo = JSON.parse(window.localStorage.getItem("companyInfo"));
|
||
}, hideMember: function() {
|
||
this.$emit("cancelMemberEdit", false);
|
||
}, jobSelect: function(e2) {
|
||
this.memberForm.postUuid = e2.id, this.memberForm.postName = e2.name;
|
||
}, areaChange: function(e2) {
|
||
this.memberForm.province = o["a"][e2[0]], this.memberForm.city = o["a"][e2[1]], this.memberForm.area = o["a"][e2[2]];
|
||
}, memberEditCancel: function() {
|
||
this.editDisabledBtn = false, this.$emit("cancelMemberEdit", false);
|
||
}, editMemberBtn: function(e2) {
|
||
var t2 = this;
|
||
this.$refs[e2].validate((function(e3) {
|
||
if (!e3) return false;
|
||
"Edit" === t2.editType ? (t2.editDisabledBtn = true, t2.saveMember()) : (t2.editDisabledBtn = true, t2.addMember());
|
||
}));
|
||
}, saveMember: function() {
|
||
var e2 = this;
|
||
this.contractDate ? (this.workInfoForm.contractBegDate = this.contractDate[0] ? this.contractDate[0] : null, this.workInfoForm.contractEndDate = this.contractDate[1] ? this.contractDate[1] : null) : (this.workInfoForm.contractBegDate = null, this.workInfoForm.contractEndDate = null);
|
||
var t2 = { memberAddReqDTO: this.memberForm, osUuid: this.memberForm.uuid, memberWorkInfoAddReqDTO: this.workInfoForm, memberSocialSecurityUpdateReqDTO: this.socialSecurity };
|
||
Object(n["D"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.$message({ message: "修改成功", type: "success" }), e2.editDisabledBtn = false, e2.$emit("cancelMemberEdit", false), e2.$parent.getMemberList());
|
||
})).catch((function(t3) {
|
||
e2.editDisabledBtn = false, e2.$message({ message: t3, type: "error" });
|
||
}));
|
||
}, addMember: function() {
|
||
var e2 = this;
|
||
this.memberForm.appId = 1, this.workInfoForm.appId = 1, this.memberForm.isStop = 1, this.contractDate ? (this.workInfoForm.contractBegDate = this.contractDate[0] ? this.contractDate[0] : null, this.workInfoForm.contractEndDate = this.contractDate[1] ? this.contractDate[1] : null) : (this.workInfoForm.contractBegDate = null, this.workInfoForm.contractEndDate = null);
|
||
var t2 = { memberAddReqDTO: this.memberForm, osUuid: this.osUuid, memberWorkInfoAddReqDTO: this.workInfoForm, memberSocialSecurityUpdateReqDTO: this.socialSecurity, tag: this.companyAdd ? "1" : "" };
|
||
Object(n["b"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.$message({ message: "添加成功", type: "success" }), e2.editDisabledBtn = false, e2.$emit("cancelMemberEdit", false), e2.$parent.getMemberList());
|
||
})).catch((function(t3) {
|
||
e2.editDisabledBtn = false, e2.$message({ message: t3, type: "error" });
|
||
}));
|
||
}, changeType: function(e2) {
|
||
this.memberForm.archivesSource = this.memberForm.archivesSource, this.editType = e2;
|
||
}, memberToQuit: function() {
|
||
var e2 = { uuid: this.memberForm.uuid, name: this.memberForm.name };
|
||
this.$parent.memberQuit(e2), this.$emit("cancelMemberEdit", false);
|
||
}, memberToSuspend: function() {
|
||
var e2 = { uuid: this.memberForm.uuid, name: this.memberForm.name };
|
||
this.$parent.memberSuspend(e2), this.$emit("cancelMemberEdit", false);
|
||
}, memberSuspendConfirms: function() {
|
||
var e2 = this;
|
||
this.$confirm("此操作将恢复此成员账号使用权限, 是否继续?", "账号恢复", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
|
||
e2.$parent.memberSuspendConfirm(1);
|
||
})).catch((function() {
|
||
}));
|
||
}, changeDepartment: function() {
|
||
var e2 = { uuid: this.memberForm.uuid, name: this.memberForm.name };
|
||
this.$parent.memberSuspend(e2), this.$emit("cancelMemberEdit", false);
|
||
}, memberToRecovery: function() {
|
||
var e2 = { uuid: this.memberForm.uuid };
|
||
this.$parent.memberRecovery(e2), this.$emit("cancelMemberEdit", false);
|
||
}, searchPersonManage: function() {
|
||
var e2 = this;
|
||
Object(n["t"])({ osId: this.companyInfo.osId, name: "", tag: 1, pageNumber: -1, pageSize: -1 }).then((function(t2) {
|
||
t2.data.records.length > 0 ? (t2.data.records.map((function(e3) {
|
||
e3.value = "".concat(e3.name, "-").concat(e3.phoneNumber).concat(e3.departmentName ? "-" + e3.departmentName : "");
|
||
})), e2.searchList = t2.data.records) : e2.searchList = [];
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, getJobList: function() {
|
||
var e2 = this;
|
||
Object(n["n"])({}).then((function(t2) {
|
||
if (t2.data.length > 0) {
|
||
if (e2.jobList = t2.data, e2.jobList1 = [], e2.jobList2 = [], e2.jobList.forEach((function(t3) {
|
||
1 == t3.commonlyUsed ? e2.jobList1.push(t3) : e2.jobList2.push(t3);
|
||
})), e2.memberForm.postUuid) {
|
||
var a2 = e2.jobList.find((function(t3) {
|
||
return t3.id == e2.memberForm.postUuid;
|
||
}));
|
||
a2 && (e2.jobActive = a2, e2.jobType = 1 == a2.commonlyUsed ? "常用" : "其他");
|
||
}
|
||
} else e2.jobList = [], e2.jobList1 = [], e2.jobList2 = [];
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, onJobStateChange: function(e2) {
|
||
if (2 === e2) {
|
||
var t2 = (/* @__PURE__ */ new Date()).getTime();
|
||
this.workInfoForm.quitDate = Object(l["h"])(t2);
|
||
} else this.workInfoForm.quitDate = "";
|
||
} } }), d = m, u = (a("d86c"), a("829d")), p = Object(u["a"])(d, i, r, false, null, null, null);
|
||
t["a"] = p.exports;
|
||
}, "3f16": function(e, t, a) {
|
||
}, 4513: function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "v", (function() {
|
||
return r;
|
||
})), a.d(t, "w", (function() {
|
||
return o;
|
||
})), a.d(t, "x", (function() {
|
||
return n;
|
||
})), a.d(t, "l", (function() {
|
||
return s;
|
||
})), a.d(t, "t", (function() {
|
||
return l;
|
||
})), a.d(t, "j", (function() {
|
||
return c;
|
||
})), a.d(t, "o", (function() {
|
||
return m;
|
||
})), a.d(t, "u", (function() {
|
||
return d;
|
||
})), a.d(t, "b", (function() {
|
||
return u;
|
||
})), a.d(t, "p", (function() {
|
||
return p;
|
||
})), a.d(t, "D", (function() {
|
||
return b;
|
||
})), a.d(t, "B", (function() {
|
||
return h;
|
||
})), a.d(t, "q", (function() {
|
||
return f;
|
||
})), a.d(t, "c", (function() {
|
||
return g;
|
||
})), a.d(t, "s", (function() {
|
||
return v;
|
||
})), a.d(t, "i", (function() {
|
||
return y;
|
||
})), a.d(t, "n", (function() {
|
||
return S;
|
||
})), a.d(t, "a", (function() {
|
||
return I;
|
||
})), a.d(t, "g", (function() {
|
||
return _;
|
||
})), a.d(t, "d", (function() {
|
||
return k;
|
||
})), a.d(t, "f", (function() {
|
||
return w;
|
||
})), a.d(t, "C", (function() {
|
||
return F;
|
||
})), a.d(t, "m", (function() {
|
||
return T;
|
||
})), a.d(t, "y", (function() {
|
||
return O;
|
||
})), a.d(t, "r", (function() {
|
||
return z;
|
||
})), a.d(t, "e", (function() {
|
||
return D;
|
||
})), a.d(t, "z", (function() {
|
||
return L;
|
||
})), a.d(t, "A", (function() {
|
||
return x;
|
||
})), a.d(t, "h", (function() {
|
||
return j;
|
||
})), a.d(t, "k", (function() {
|
||
return N;
|
||
}));
|
||
var i = a("b775");
|
||
function r() {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/updateOrgnization", method: "post" });
|
||
}
|
||
function o(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: e2 });
|
||
}
|
||
function n(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/findOsTreeV2", method: "post", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(i["a"])({ url: "/company/OrganizationRoleRel/findProjectByRoleIdAndParent", method: "post", data: e2 });
|
||
}
|
||
function l(e2) {
|
||
return Object(i["a"])({ url: "/company/member/pageListByCompanyId", method: "post", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(i["a"])({ url: "/company/member/findByProjectUuidAndJobUuid", method: "post", data: e2 });
|
||
}
|
||
function m(e2) {
|
||
return Object(i["a"])({ url: "/company/member/getList", method: "post", data: e2 });
|
||
}
|
||
function d(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/findOsPathList", method: "post", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(i["a"])({ url: "/company/member/create", method: "post", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(i["a"])({ url: "/company/member/findById", method: "post", data: e2 });
|
||
}
|
||
function b(e2) {
|
||
return Object(i["a"])({ url: "/company/member/update", method: "post", data: e2 });
|
||
}
|
||
function h(e2) {
|
||
return Object(i["a"])({ url: "/company/member/suspendMember", method: "post", data: e2 });
|
||
}
|
||
function f(e2) {
|
||
return Object(i["a"])({ url: "/enterprise/os/memberQuit/".concat(e2.memberUuid), method: "post" });
|
||
}
|
||
function g(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/create", method: "post", data: e2 });
|
||
}
|
||
function v(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/update", method: "post", data: e2 });
|
||
}
|
||
function y(e2) {
|
||
return Object(i["a"])({ url: "/company/member/findByProjectUuid", method: "post", data: e2 });
|
||
}
|
||
function S(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/Job/getJobList", method: "post", data: e2 });
|
||
}
|
||
function I(e2) {
|
||
return Object(i["a"])({ url: "/company/member/ChangeDepartment", method: "post", data: e2 });
|
||
}
|
||
function _(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: e2 });
|
||
}
|
||
function k(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberRoleRel/create", method: "post", data: e2 });
|
||
}
|
||
function w(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberRoleRel/findByMemberId", method: "post", data: e2 });
|
||
}
|
||
function F(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberRoleRel/update", method: "post", data: e2 });
|
||
}
|
||
function T(e2) {
|
||
return Object(i["a"])({ url: "/company/member/getList", method: "POST", data: e2 });
|
||
}
|
||
function O(e2) {
|
||
return Object(i["a"])({ url: "/company/member/queryByStaff", method: "POST", data: e2 });
|
||
}
|
||
function z(e2) {
|
||
return Object(i["a"])({ url: "/company/member/memberQuit", method: "POST", data: e2 });
|
||
}
|
||
function D(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/delete", method: "POST", data: e2 });
|
||
}
|
||
function L(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/Space/queryInitData", method: "POST", data: e2 });
|
||
}
|
||
function x(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/Space/queryList", method: "POST", data: e2 });
|
||
}
|
||
function j(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/Space/findByProId", method: "POST", data: e2 });
|
||
}
|
||
function N(e2) {
|
||
return Object(i["a"])({ url: "/company/organizationalStructure/findOSListByRoleId", method: "POST", data: e2 });
|
||
}
|
||
}, "4c94": function(e, t, a) {
|
||
"use strict";
|
||
var i = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "roleAssDialog" }, [a2("el-form", { ref: "form", attrs: { "label-position": e2.labelPosition, "label-width": "200px", model: e2.form } }, [e2._l(e2.resignationArr, (function(t3, i2) {
|
||
return a2("div", { key: i2 }, [t3 && t3.projectName ? a2("el-form-item", { attrs: { label: t3.projectName + "-事项继承人员" } }, [a2("el-select", { attrs: { filterable: "", "value-key": "id", loading: e2.selectLoading, clearable: "", placeholder: "请输入继承人名称关键词进行搜索" }, on: { change: function(a3) {
|
||
return e2.handleChange(a3, t3);
|
||
}, focus: function(a3) {
|
||
return e2.getEngineerList(t3);
|
||
} }, model: { value: e2.selectedEngineerList[t3.projectUuid], callback: function(a3) {
|
||
e2.$set(e2.selectedEngineerList, t3.projectUuid, a3);
|
||
}, expression: "selectedEngineerList[item.projectUuid]" } }, e2._l(e2.engineerList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3 } });
|
||
})), 1)], 1) : e2._e()], 1);
|
||
})), e2._v(" "), a2("el-form-item", { attrs: { label: "转交事项" } }, [a2("el-checkbox-group", { model: { value: e2.form.arrValue, callback: function(t3) {
|
||
e2.$set(e2.form, "arrValue", t3);
|
||
}, expression: "form.arrValue" } }, [a2("el-checkbox", { attrs: { label: "计划任务", name: "计划任务" } }), e2._v(" "), a2("el-checkbox", { attrs: { label: "工单", name: "工单" } })], 1)], 1), e2._v(" "), a2("el-form-item", { staticStyle: { "text-align": "center" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.cancelBtn } }, [e2._v("取消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSubmit } }, [e2._v("确定")])], 1)], 2)], 1);
|
||
}, r = [], o = (a("a450"), a("1bc7"), a("4513")), n = { name: "roleAssDialog", props: { dataInfo: { type: Object, default: null }, resignationArr: { type: Array, default: [] } }, data: function() {
|
||
return { labelPosition: "right", form: { seatValue: [], arrValue: ["计划任务", "工单"], seletValue: [] }, selectedEngineerList: {}, engineerList: [], selectLoading: false };
|
||
}, mounted: function() {
|
||
}, methods: { resetFields: function() {
|
||
this.selectedEngineerList = {}, this.form.seatValue = [], this.form.arrValue = [], this.form.seletValue = [];
|
||
}, getEngineerList: function(e2) {
|
||
var t2 = this;
|
||
this.selectLoading = true, Object(o["m"])({ uuid: e2.projectUuid }).then((function(e3) {
|
||
t2.selectLoading = false, 0 == e3.code && (t2.engineerList = e3.data);
|
||
}));
|
||
}, handleChange: function(e2, t2) {
|
||
this.selectedEngineerList[t2.projectUuid] = e2;
|
||
}, onSubmit: function() {
|
||
this.form.seletValue = [], this.form.seatValue = [];
|
||
var e2 = [];
|
||
this.form.arrValue.forEach((function(t3) {
|
||
"计划任务" === t3 ? t3 = "1" : "工单" === t3 && (t3 = "2"), e2.push(t3);
|
||
}));
|
||
var t2 = this.selectedEngineerList;
|
||
for (var a2 in t2) if (Object.hasOwnProperty.call(t2, a2)) {
|
||
var i2 = t2[a2], r2 = i2.id, o2 = i2.name, n2 = i2.uuid;
|
||
void 0 != r2 && this.form.seatValue.push({ projectUuid: a2, newStaffId: r2, newStaffName: o2, newStaffUuid: n2, oldStaffId: this.dataInfo.id, oldStaffUuid: this.dataInfo.uuid });
|
||
}
|
||
this.form.handoverTypeStr = e2.join(","), this.resignationArr.length == this.form.seatValue.length ? "" !== this.form.handoverTypeStr ? this.$emit("okSubmit", this.form) : this.$message({ message: "请至少选择一个转交事项", type: "error" }) : this.$message({ message: "事项继承人员不能为空", type: "error" });
|
||
}, cancelBtn: function() {
|
||
this.$emit("cancelBtn", false);
|
||
} } }, s = n, l = a("829d"), c = Object(l["a"])(s, i, r, false, null, "5290b2a2", null);
|
||
t["a"] = c.exports;
|
||
}, 5822: function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "a", (function() {
|
||
return r;
|
||
})), a.d(t, "f", (function() {
|
||
return o;
|
||
})), a.d(t, "b", (function() {
|
||
return n;
|
||
})), a.d(t, "d", (function() {
|
||
return s;
|
||
})), a.d(t, "c", (function() {
|
||
return l;
|
||
})), a.d(t, "e", (function() {
|
||
return c;
|
||
})), a.d(t, "h", (function() {
|
||
return m;
|
||
})), a.d(t, "m", (function() {
|
||
return d;
|
||
})), a.d(t, "i", (function() {
|
||
return u;
|
||
})), a.d(t, "l", (function() {
|
||
return p;
|
||
})), a.d(t, "j", (function() {
|
||
return b;
|
||
})), a.d(t, "k", (function() {
|
||
return h;
|
||
})), a.d(t, "g", (function() {
|
||
return f;
|
||
}));
|
||
var i = a("b775");
|
||
function r(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/CertificateClassifyCompany/create", method: "post", data: e2 });
|
||
}
|
||
function o(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/CertificateClassifyCompany/uodate", method: "post", data: e2 });
|
||
}
|
||
function n(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/CertificateClassifyCompany/delete", method: "post", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/CertificateClassifyCompany/resume", method: "post", data: e2 });
|
||
}
|
||
function l(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/CertificateClassifyCompany/pageList", method: "post", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/CertificateClassifyCompany/cloudCertificateSync", method: "post", data: e2 });
|
||
}
|
||
function m(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/create", method: "post", data: e2 });
|
||
}
|
||
function d(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/update", method: "post", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/delete", method: "post", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/pageList", method: "post", data: e2 });
|
||
}
|
||
function b(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/exportExcel", method: "post", responseType: "blob", data: e2 });
|
||
}
|
||
function h(e2, t2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/importExcel" + t2, method: "post", isReturnResponse: true, isFile: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
|
||
}
|
||
function f(e2, t2) {
|
||
return Object(i["a"])({ url: "/hakocompany/MemberCertificate/appendixUpload" + t2, method: "post", isFile: true, headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
|
||
}
|
||
}, "64ce": function(e, t, a) {
|
||
"use strict";
|
||
a("13e2");
|
||
}, "6c84": function(e, t, a) {
|
||
"use strict";
|
||
a("96c4");
|
||
}, 7341: function(e, t, a) {
|
||
}, "7bfb": function(e, t, a) {
|
||
"use strict";
|
||
var i = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [a2("el-row", { attrs: { gutter: 25 } }, [a2("el-col", { attrs: { span: 6 } }, [a2("el-card", { attrs: { shadow: "never" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "输入部门名称进行筛选" }, model: { value: e2.filterText, callback: function(t3) {
|
||
e2.filterText = t3;
|
||
}, expression: "filterText" } }), e2._v(" "), a2("el-tree", { ref: "tree", staticClass: "node-active", attrs: { "highlight-current": "", data: e2.treeList, props: e2.defaultProps, "expand-on-click-node": false, "node-key": "deptId", "current-node-key": e2.currentKey, "default-expanded-keys": e2.expandedKeys, "filter-node-method": e2.filterNode }, on: { "node-click": e2.nodeClick } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 18 } }, [a2("el-card", { attrs: { shadow: "never" } }, [a2("div", { staticClass: "navTop" }, [a2("div", { staticClass: "navTitle" }, [e2._v(e2._s(e2.saveData.name) + e2._s(e2.total ? "(" + e2.total + ")" : ""))]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "mini", loading: e2.syncLoad, icon: "el-icon-refresh" }, on: { click: e2.syncClick } }, [e2._v("同步数据")])], 1), e2._v(" "), a2("el-table", { staticStyle: { width: "100%" }, attrs: { data: e2.tableData, border: "", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "80", type: "index" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + " ")])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "姓名", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(t3.row.name || "-"))];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "职务", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(t3.row.position || "-"))];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "部门", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(t3.row.deptName || "-"))];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "联系方式", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(t3.row.telephone || "-"))];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "后台绑定", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [t3.row.relMembers && t3.row.relMembers.length > 0 ? a2("span", [a2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
||
return e2.seeList(t3.row);
|
||
} } }, [e2._v(e2._s(t3.row.relMembers.length))])], 1) : a2("span", [e2._v("0")])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticStyle: { "margin-top": "20px", "text-align": "right" } }, [a2("el-pagination", { attrs: { background: "", "page-sizes": [10, 20, 50, 100, 200], "page-size": e2.query.pageSize, "current-page": e2.query.pageNumber, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, 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)], 1)], 1), e2._v(" "), a2("el-dialog", { attrs: { title: "后台绑定", visible: e2.bindVisible }, on: { "update:visible": function(t3) {
|
||
e2.bindVisible = t3;
|
||
} } }, [a2("el-table", { attrs: { border: "", "header-cell-style": e2.headClass, data: e2.bindData, "max-height": "500" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", type: "index", width: "80" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "项目名称", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(t3.row.projectName || "-"))];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "姓名", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(t3.row.memberName || "-"))];
|
||
} }]) })], 1)], 1)], 1);
|
||
}, r = [], o = (a("a450"), a("b9f1")), n = { data: function() {
|
||
return { companyId: "", filterText: "", treeList: [], expandedKeys: [], currentKey: "", defaultProps: { children: "subDeptList", label: "name" }, syncLoad: false, total: 0, query: { pageNumber: 1, pageSize: 10 }, tableData: [], saveData: {}, bindVisible: false, bindData: [] };
|
||
}, mounted: function() {
|
||
this.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, this.getTree();
|
||
}, watch: { filterText: function(e2) {
|
||
this.$refs.tree.filter(e2);
|
||
} }, methods: { getTree: function() {
|
||
var e2 = this;
|
||
Object(o["c"])({ companyId: this.companyId }).then((function(t2) {
|
||
e2.treeList = t2.data, e2.saveData = t2.data[0], e2.currentKey = t2.data[0].deptId, e2.expandedKeys.push(t2.data[0].deptId), e2.$nextTick((function() {
|
||
this.$refs.tree.setCurrentKey(t2.data[0].deptId);
|
||
})), e2.getUserList();
|
||
}));
|
||
}, nodeClick: function(e2) {
|
||
this.saveData = e2, this.getUserList();
|
||
}, filterNode: function(e2, t2) {
|
||
return !e2 || -1 !== t2.name.indexOf(e2);
|
||
}, getUserList: function() {
|
||
var e2 = this;
|
||
this.query.mainDepartment = this.saveData.deptId, this.query.companyId = this.companyId, Object(o["a"])(this.query).then((function(t2) {
|
||
t2.data && t2.data.records ? (e2.tableData = t2.data.records, e2.total = t2.data.rowsCount) : (e2.tableData = [], e2.total = 0);
|
||
}));
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.query.pageNumber = 1, this.getUserList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getUserList();
|
||
}, syncClick: function() {
|
||
var e2 = this;
|
||
this.syncLoad = true, Object(o["b"])({ id: this.companyId }).then((function(t2) {
|
||
0 == t2.code && (e2.$message({ type: "success", message: "同步请求成功,请1分钟后刷新页面查看最新数据!" }), e2.getTree(), e2.syncLoad = false);
|
||
})).catch((function() {
|
||
e2.syncLoad = false;
|
||
}));
|
||
}, seeList: function(e2) {
|
||
this.bindVisible = true, this.bindData = e2.relMembers;
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} } }, s = n, l = (a("64ce"), a("829d")), c = Object(l["a"])(s, i, r, false, null, "1d658a76", null);
|
||
t["a"] = c.exports;
|
||
}, "96c4": function(e, t, a) {
|
||
}, 9946: function(e, t, a) {
|
||
"use strict";
|
||
a.r(t);
|
||
var i = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "page-container" }, [a2("div", { staticClass: "backgroundStys" }, [a2("el-tabs", { model: { value: e2.activeTabName, callback: function(t3) {
|
||
e2.activeTabName = t3;
|
||
}, expression: "activeTabName" } }, [a2("el-tab-pane", { attrs: { label: "组织", name: "organize" } })], 1), e2._v(" "), a2("div", [a2("div", [a2("div", [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true } }, [a2("el-form-item", { staticStyle: { float: "right" } }, [a2("el-button", { attrs: { loading: e2.loadingTable, type: "primary", size: "mini" }, on: { click: function(t3) {
|
||
return e2.addOrganize("Add", e2.TopOrg);
|
||
} } }, [e2._v("添加组织")])], 1)], 1)], 1), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.loadingTable, expression: "loadingTable" }], attrs: { data: e2.organizationList, "row-key": "id", "tree-props": { children: "childs" } } }, [a2("el-table-column", { attrs: { prop: "name", label: "组织名称", "min-width": "300" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "attribute", label: "组织属性", "min-width": "180" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [1 == t3.row.attribute ? a2("span", [e2._v("项目")]) : e2._e(), e2._v(" "), 2 == t3.row.attribute ? a2("span", [e2._v("部门")]) : e2._e()];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { prop: "peopleNumber", label: "组织人数", "min-width": "120" } }), e2._v(" "), a2("el-table-column", { attrs: { prop: "personName", label: "组织负责人", "min-width": "180" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "操作", fixed: "right", width: "140", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("el-dropdown", [a2("span", { staticClass: "el-dropdown-link el-button--lightblue dropbutton", staticStyle: { cursor: "pointer" } }, [a2("i", { staticClass: "el-icon-more el-icon--right" })]), e2._v(" "), a2("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [2 == t3.row.attribute || null == t3.row.attribute ? a2("el-dropdown-item", { nativeOn: { click: function(a3) {
|
||
return e2.addOrganize("Add", t3.row);
|
||
} } }, [e2._v("添加子组织")]) : e2._e(), e2._v(" "), a2("el-dropdown-item", { nativeOn: { click: function(a3) {
|
||
return e2.editOrganize("Edit", t3.row);
|
||
} } }, [e2._v("编辑组织")]), e2._v(" "), a2("el-dropdown-item", { nativeOn: { click: function(a3) {
|
||
return e2.delOrganize(t3.row);
|
||
} } }, [e2._v("删除组织")])], 1)], 1)];
|
||
} }]) })], 1)], 1)]), e2._v(" "), a2("Member", { directives: [{ name: "show", rawName: "v-show", value: e2.viewDisplay && "basic" == e2.activeTabNameView, expression: "viewDisplay && activeTabNameView == 'basic'" }], ref: "memberModel", attrs: { selectUid: e2.selectNodeUId, organizeList: e2.organizationList, companyAdd: e2.selectIsCompany }, on: { cancelMemberEdit: e2.cancelMemberEdit } }), e2._v(" "), a2("Organize", { ref: "organizeModel", attrs: { editData: e2.saveEditData, organizeList: e2.organizationList } }), e2._v(" "), a2("div", { staticClass: "viewDisplay" }, [e2.payrollDisplay && "wages" == e2.activeTabNameView ? a2("payroll", { ref: "payroView", attrs: { type: "wages" }, on: { cancelMemberEdit: e2.cancelMemberEdit } }) : e2._e()], 1), e2._v(" "), a2("div", { directives: [{ name: "show", rawName: "v-show", value: e2.viewDisplay && "qualification" == e2.activeTabNameView, expression: "viewDisplay && activeTabNameView == 'qualification'" }] }, [a2("div", { staticClass: "backBtnBox" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { size: "small", type: "primary" }, on: { click: e2.gobackTop } }, [e2._v("返回")])], 1), e2._v(" "), a2("el-table", { staticStyle: { width: "96%", "margin-left": "2%" }, attrs: { border: "", data: e2.carlistTable, "tooltip-effect": "dark" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "projectName", "min-width": "200", label: "项目名称", fixed: "", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "jobName", "min-width": "200", label: "岗位", fixed: "", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "memberName", "min-width": "200", label: "员工姓名" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "certificateNo", "min-width": "200", label: "证书编号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "classifyName", "min-width": "200", label: "证书名称" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "releaseUnit", "min-width": "200", label: "发证单位" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "receiveTime", "min-width": "200", label: "领证时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatDate")(t3.row.receiveTime, "Y-M-D")) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "expireTime", "min-width": "200", label: "到期时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatDate")(t3.row.receiveTime, "Y-M-D")) + "\n ")];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "status", "min-width": "200", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v("\n " + e2._s(e2._f("getItemType")(t3.row.status, e2.statusList)) + "\n ")];
|
||
} }]) })], 1)], 1), e2._v(" "), a2("el-dialog", { attrs: { visible: e2.memberSetVisible, width: "30%" }, on: { "update:visible": function(t3) {
|
||
e2.memberSetVisible = t3;
|
||
} } }, [a2("span", { staticClass: "memberSetTitle", attrs: { slot: "title" }, slot: "title" }, ["SUSPEND" == e2.memberSetType ? a2("h4", [e2._v("\n 暂停 " + e2._s(e2.memberSetName) + " 账号\n ")]) : e2._e(), e2._v(" "), "QUIT" == e2.memberSetType ? a2("h4", [e2._v("\n 将 " + e2._s(e2.memberSetName) + " 进行离职\n ")]) : e2._e(), e2._v(" "), a2("span", [a2("el-breadcrumb", { attrs: { separator: "/" } }, e2._l(e2.navList, (function(t3, i2) {
|
||
return a2("el-breadcrumb-item", { key: i2 }, [0 == i2 ? a2("span", [e2._v("来自: " + e2._s(t3.name))]) : e2._e(), e2._v(" "), 0 != i2 ? a2("span", [e2._v(e2._s(t3.name))]) : e2._e()]);
|
||
})), 1)], 1)]), e2._v(" "), a2("div", { staticClass: "memberSetContent" }, [a2("h5", [e2._v("注意:")]), e2._v(" "), a2("div", [e2._v("● 该帐号将无法登录平台")]), e2._v(" "), a2("div", [e2._v("● 暂停账号可以恢复,但操作离职不可恢复")])]), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.memberSetVisible = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.memberSetBtn } }, [e2._v("确 定")])], 1)]), e2._v(" "), a2("el-dialog", { attrs: { title: "变更部门", visible: e2.changeDepartmentVisible, width: "30%" }, on: { "update:visible": function(t3) {
|
||
e2.changeDepartmentVisible = t3;
|
||
} } }, [a2("div", { staticClass: "changeDepartmentSet" }, [a2("el-cascader", { attrs: { options: e2.organizationList, props: { label: "name", children: "childs", value: "uuid", checkStrictly: true, emitPath: false } }, model: { value: e2.changeOsuuid, callback: function(t3) {
|
||
e2.changeOsuuid = t3;
|
||
}, expression: "changeOsuuid" } })], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.changeDepartmentVisible = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.postChange } }, [e2._v("确 定")])], 1)]), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "成员角色分配", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.roleAssDialog, width: "40%" }, on: { "update:visible": function(t3) {
|
||
e2.roleAssDialog = t3;
|
||
} } }, [a2("span", { staticClass: "roleStys" }, [e2._v("成员加入到角色后,将拥有该角色的所有权限")]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.multipleLoading, expression: "multipleLoading" }], ref: "multipleTable", attrs: { data: e2.listTable, "row-key": "id", "header-cell-style": e2.headClass, "tooltip-effect": "dark", "default-expand-all": "" }, on: { "selection-change": e2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", "reserve-selection": true, width: "55" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "角色名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.roleName))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "角色状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [0 === t3.row.roleStatus ? a2("span", [a2("el-switch", { attrs: { disabled: "" }, model: { value: e2.value1, callback: function(t4) {
|
||
e2.value1 = t4;
|
||
}, expression: "value1" } })], 1) : e2._e(), e2._v(" "), 1 === t3.row.roleStatus ? a2("span", [a2("el-switch", { attrs: { disabled: "" }, model: { value: e2.value2, callback: function(t4) {
|
||
e2.value2 = t4;
|
||
}, expression: "value2" } })], 1) : e2._e()])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("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", 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.handleSize, "current-change": e2.handleCurren } })], 1), e2._v(" "), a2("div", { staticClass: "btnSyts" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.roleAssDialog = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.roleSubmitInfo } }, [e2._v("提 交")])], 1)], 1), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "离职转交", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.resignationDialog }, on: { close: e2.closeDialog, "update:visible": function(t3) {
|
||
e2.resignationDialog = t3;
|
||
} } }, [a2("resignationDialog", { ref: "editFormRef", attrs: { dataInfo: e2.infoData, resignationArr: e2.resignationArr, engineerList: e2.engineerList }, on: { okSubmit: e2.resignationSubmit, cancelBtn: function(t3) {
|
||
e2.resignationDialog = false;
|
||
} } })], 1)], 1)]);
|
||
}, r = [], o = (a("e680"), a("e5b4"), a("b5aa"), a("3ef1")), n = (a("a450"), a("1bc7"), a("4513")), s = a("4c94"), l = a("7bfb"), c = a("244d"), m = a("fa3df"), d = a("4d4e"), u = a("5822"), p = { components: { Member: c["a"], Organize: m["a"], resignationDialog: s["a"], payroll: d["a"], addressBook: l["a"] }, data: function() {
|
||
return { viewDisplay: false, payrollDisplay: false, displayIshow: true, infoData: {}, objInfo: {}, resignationArr: [], engineerList: [], resignationDialog: false, searchMembers: "", listTable: [], multipleUpata: [], companyInfo: {}, pageTotal: 0, roleAssDialog: false, multipleLoading: false, memberSetVisible: false, changeDepartmentVisible: false, memberSetName: "", memberSetType: "QUIT", activeTabName: "organize", activeTabNameView: "basic", memberSetuuid: "", memberSetId: "", organizePid: "", companyId: "", companyName: "", selectNodeId: "", selectNodeUId: "", companyOsId: "", searchName: "", treeData: [], navList: [], multipleSelection: [], saveEditData: {}, value1: true, value2: false, query: { pageNumber: 1, pageSize: 10 }, page: { pageSize: 10, pageNum: 1, total: 0 }, searchMember: { isStop: "", onJobState: 1 }, loadingTable: false, loadingTree: false, memberData: [], organizationList: [], selectIsCompany: true, isSelectOneTotal: true, tag: null, isAddDisabled: false, changeOsuuid: "", oldOsuuid: "", userUuid: "", userId: "", roleObj: {}, TopOrg: "", carlistTable: [], statusList: [{ label: "正常", value: 1 }, { label: "即将到期", value: 2 }, { label: "已过期", value: 3 }] };
|
||
}, mounted: function() {
|
||
this.companyInfo = JSON.parse(localStorage.getItem("companyInfo")), this.userInfo = JSON.parse(localStorage.getItem("userInfo")), this.companyId = this.companyInfo.id, this.companyName = this.companyInfo.fullName, this.companyOsId = this.companyInfo.osId, this.selectNodeId = this.companyInfo.osId, this.selectNodeUId = this.companyInfo.corpUuid, this.getTree(this.selectNodeId), this.getListPath(), this.getMemberList(), this.getOrganizeList(), this.selectIsCompany = true;
|
||
}, methods: { resignationSubmit: function(e2) {
|
||
var t2 = this, a2 = true, i2 = { memberUuid: this.infoData.uuid, memberId: this.infoData.id, osUuid: this.organizationList[0].uuid, handoverTypeStr: e2.handoverTypeStr, resignProjectChangeStaffDTO: e2.seatValue };
|
||
e2.seatValue.length > 0 ? e2.seatValue.forEach((function(e3) {
|
||
e3.newStaffUuid === t2.infoData.uuid && (a2 = false);
|
||
})) : a2 = true, a2 ? Object(n["r"])(i2).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ message: "操作成功", type: "success" }), t2.getMemberList(), t2.resignationDialog = false);
|
||
})) : this.$message({ message: "转交人不能是自己", type: "warning" });
|
||
}, closeDialog: function() {
|
||
this.$refs.editFormRef.resetFields();
|
||
}, membersChange: function() {
|
||
this.getMemberList();
|
||
}, updateList: function() {
|
||
Object(n["v"])().then((function(e2) {
|
||
}));
|
||
}, roleSubmitInfo: function() {
|
||
var e2 = this, t2 = {};
|
||
this.multipleSelection.forEach((function(t3) {
|
||
t3.roleId = t3.id, t3.appId = 1, t3.memberId = e2.roleObj.id, t3.memberName = e2.roleObj.name, t3.orgId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, t3.orgName = JSON.parse(window.localStorage.getItem("companyInfo")).fullName;
|
||
})), this.multipleUpata.length > 0 ? (t2 = { memberRoleRelUpdateReqDTO: this.multipleSelection }, this.updataRoleInfo(t2)) : (t2 = { memberRoleRelAddReqDTOS: this.multipleSelection }, this.createRoleInfo(t2));
|
||
}, updataRoleInfo: function(e2) {
|
||
var t2 = this;
|
||
e2.orgId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, e2.memberId = this.roleObj.id, e2.adClientId = 1, Object(n["C"])(e2).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ message: "分配成功", type: "success" }), t2.$refs.multipleTable.clearSelection(), t2.roleAssDialog = false);
|
||
}));
|
||
}, createRoleInfo: function(e2) {
|
||
var t2 = this;
|
||
Object(n["d"])(e2).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ message: "分配成功", type: "success" }), t2.$refs.multipleTable.clearSelection(), t2.roleAssDialog = false);
|
||
}));
|
||
}, resignation: function(e2) {
|
||
this.infoData = e2, this.resignationDialog = true, this.getEngineer(e2);
|
||
}, getEngineer: function(e2) {
|
||
var t2 = this, a2 = { id: e2.id, uuid: e2.uuid };
|
||
Object(n["y"])(a2).then((function(e3) {
|
||
0 == e3.code && (t2.resignationArr = e3.data);
|
||
}));
|
||
}, changeRoleAssignment: function(e2) {
|
||
var t2 = this;
|
||
this.headClass(), this.query.pageNumber = 1, this.query.pageSize = 10, this.getRoleInfo(), this.roleObj = e2, this.roleAssDialog = true, this.$nextTick((function() {
|
||
t2.$refs.multipleTable.clearSelection();
|
||
}));
|
||
}, handleSize: function(e2) {
|
||
this.query.pageSize = e2, this.getRoleInfo();
|
||
}, handleCurren: function(e2) {
|
||
this.query.pageNumber = e2, this.getRoleInfo();
|
||
}, getRoleInfo: function() {
|
||
var e2 = this;
|
||
this.multipleLoading = true, this.query.adOrgId = JSON.parse(window.localStorage.getItem("companyInfo")).osId, Object(n["g"])(this.query).then((function(t2) {
|
||
0 == t2.code ? (e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount, e2.listTable && e2.listTable.length > 0 ? e2.$nextTick((function() {
|
||
e2.findByMemberId();
|
||
})) : e2.multipleLoading = false) : e2.multipleLoading = false;
|
||
}));
|
||
}, findByMemberId: function() {
|
||
var e2 = this;
|
||
this.multipleUpata = [];
|
||
var t2 = { orgId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, memberId: this.roleObj.id };
|
||
Object(n["f"])(t2).then((function(t3) {
|
||
if (0 === t3.code) {
|
||
e2.multipleUpata = t3.data;
|
||
var a2 = [];
|
||
t3.data.forEach((function(e3) {
|
||
a2.push(e3.roleId);
|
||
})), a2.length > 0 ? e2.$nextTick((function() {
|
||
e2.listTable.forEach((function(t4, i2) {
|
||
a2.indexOf(t4.id) >= 0 && e2.$refs.multipleTable.toggleRowSelection(t4, true);
|
||
})), e2.multipleLoading = false;
|
||
})) : e2.multipleLoading = false;
|
||
} else e2.multipleLoading = false;
|
||
}));
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, onSubmit: function() {
|
||
this.getMemberList();
|
||
}, resetForm: function() {
|
||
this.$refs.searchMember.resetFields(), this.getMemberList();
|
||
}, selectCompany: function() {
|
||
this.isSelectOneTotal = true, this.selectNodeId = this.companyInfo.osId, this.selectNodeUId = this.companyInfo.corpUuid, this.selectIsCompany = true, this.getListPath(), this.getMemberList();
|
||
}, handleNodeClick: function(e2) {
|
||
e2.id != this.selectNodeId && (this.isSelectOneTotal = false, this.selectNodeId = e2.id, this.selectNodeUId = e2.uuid, this.selectIsCompany = false, this.getListPath(), this.getMemberList());
|
||
}, addMember: function() {
|
||
var e2 = this;
|
||
this.activeTabNameView = "basic", this.viewDisplay = true, this.displayIshow = false, this.payrollDisplay = false, this.$nextTick((function() {
|
||
e2.$refs.memberModel.showMember(), e2.$refs.memberModel.init();
|
||
}));
|
||
}, cancelMemberEdit: function() {
|
||
this.activeTabNameView = "basic", this.viewDisplay = false, this.payrollDisplay = false, this.displayIshow = true;
|
||
}, lookMember: (function() {
|
||
var e2 = Object(o["a"])(regeneratorRuntime.mark((function e3(t3) {
|
||
var a2, i2 = this;
|
||
return regeneratorRuntime.wrap((function(e4) {
|
||
while (1) switch (e4.prev = e4.next) {
|
||
case 0:
|
||
return this.viewDisplay = true, this.payrollDisplay = true, this.displayIshow = false, this.objInfo = t3, this.memberSetuuid = t3.uuid, e4.next = 1, Object(n["p"])({ id: t3.id }).then((function(e5) {
|
||
return e5.data;
|
||
}));
|
||
case 1:
|
||
a2 = e4.sent, this.$nextTick((function() {
|
||
i2.$refs.memberModel.showMember(), i2.$refs.memberModel.init(t3.osId, a2);
|
||
}));
|
||
case 2:
|
||
case "end":
|
||
return e4.stop();
|
||
}
|
||
}), e3, this);
|
||
})));
|
||
function t2(t3) {
|
||
return e2.apply(this, arguments);
|
||
}
|
||
return t2;
|
||
})(), addOrganize: function(e2, t2) {
|
||
this.cancelMemberEdit(), this.saveEditData = t2 = Object.assign(t2, { isSelectOneTotal: this.isSelectOneTotal }), this.$refs.organizeModel.showOrganize(), this.companyOsId === t2.id ? t2.isSelectOneTotal = true : t2.isSelectOneTotal = false, "Add" === e2 ? this.$refs.organizeModel.init(e2, t2, this.selectNodeId) : this.$refs.organizeModel.init(e2, t2);
|
||
}, flattenArray: function(e2) {
|
||
for (var t2 = [], a2 = 0; a2 < e2.length; a2++) t2.push(e2[a2]), e2[a2].childs && (t2 = t2.concat(this.flattenArray(e2[a2].childs)));
|
||
return t2;
|
||
}, cancelOrganize: function() {
|
||
this.$refs.organizeModel.cancel();
|
||
}, editOrganize: function(e2, t2) {
|
||
this.cancelMemberEdit(), this.$nextTick((function() {
|
||
if (Array.isArray(this.organizationList[0].childs)) {
|
||
var a2 = this.flattenArray(this.organizationList[0].childs);
|
||
console.log(a2, "list");
|
||
var i2 = a2.find((function(e3) {
|
||
return e3.id == t2.id;
|
||
}));
|
||
console.log(t2, "data.id"), console.log(i2, "info"), this.saveEditData = i2, t2 = i2;
|
||
}
|
||
this.$refs.organizeModel.showOrganize(), this.$refs.organizeModel.init(e2, t2);
|
||
}));
|
||
}, delOrganize: function(e2) {
|
||
var t2 = this;
|
||
e2.peopleNumber > 0 ? this.$message.error("该组织下还有用户,无法删除!!!") : this.$confirm("将永久删除该组织/项目,包含项目收费/房屋/住户等所有数据不可恢复,请谨慎操作!!! 确定是否继续删除?", "重要提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then((function() {
|
||
Object(n["e"])({ id: e2.id, tag: t2.companyInfo.osId == e2.id ? 1 : null }).then((function(e3) {
|
||
t2.$message({ type: "success", message: "删除成功!" }), t2.selectNodeId = t2.companyInfo.osId, t2.getTree(t2.selectNodeId), t2.getListPath(), t2.getMemberList(), t2.getOrganizeList();
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
}, getTree: function(e2) {
|
||
var t2 = this, a2 = { id: e2, roleId: Number(localStorage.getItem("roleId")) };
|
||
this.loadingTree = true, Object(n["l"])(a2).then((function(e3) {
|
||
t2.loadingTree = false, e3 && e3.data.length > 0 && (t2.TopOrg = e3.data[0], t2.treeData = e3.data[0].childs);
|
||
})).catch((function(e3) {
|
||
t2.loadingTree = false;
|
||
}));
|
||
}, getOrganizeList: function() {
|
||
var e2 = this;
|
||
this.loadingTable = true;
|
||
var t2 = { id: this.companyInfo.osId, roleId: Number(localStorage.getItem("roleId")) };
|
||
Object(n["x"])(t2).then((function(t3) {
|
||
e2.organizationList = e2.getTreeData(t3.data), console.log(e2.organizationList, " this.organizationList"), e2.loadingTable = false;
|
||
})).catch((function(t3) {
|
||
e2.loadingTable = false, console.log(t3);
|
||
}));
|
||
}, getTreeData: function(e2) {
|
||
for (var t2 = 0; t2 < e2.length; t2++) e2[t2].corpUuid && (e2[t2].uid = e2[t2].corpUuid), e2[t2].childs.map((function(e3) {
|
||
e3.uid = e3.uuid;
|
||
})), e2[t2].childs.length < 1 ? e2[t2].childs = void 0 : this.getTreeData(e2[t2].childs);
|
||
return e2;
|
||
}, getListPath: function() {
|
||
var e2 = this, t2 = { begId: this.companyId, endId: this.selectNodeId };
|
||
Object(n["u"])(t2).then((function(t3) {
|
||
e2.navList = t3.data;
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, getMemberList: function() {
|
||
var e2 = this;
|
||
true === this.isSelectOneTotal ? this.tag = 1 : this.tag = null;
|
||
var t2 = { osId: this.selectNodeId, pageNumber: this.page.pageNum, pageSize: this.page.pageSize, tag: this.tag, name: this.searchMembers, isStop: this.searchMember.isStop, onJobState: this.searchMember.onJobState };
|
||
Object(n["t"])(t2).then((function(t3) {
|
||
t3.data ? (e2.memberData = t3.data.records, e2.page.total = t3.data.rowsCount) : (e2.memberData = [], e2.page.total = 0);
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, memberSuspend: function(e2) {
|
||
this.memberSetuuid = e2.uuid, this.memberSetId = e2.id, this.memberSetType = "SUSPEND", this.memberSetName = e2.name, this.memberSetVisible = true;
|
||
}, memberQuit: function(e2) {
|
||
this.memberSetuuid = e2.uuid, this.memberSetId = e2.id, this.memberSetType = "QUIT", this.memberSetName = e2.name, this.memberSetVisible = true;
|
||
}, memberSetBtn: function() {
|
||
"SUSPEND" === this.memberSetType ? this.memberSuspendConfirm(0) : this.memberQuitConfirm();
|
||
}, memberSuspendConfirm: function(e2) {
|
||
var t2, a2 = this;
|
||
t2 = 1 === e2 ? 1 : 0, Object(n["B"])({ isStop: t2, memberUuid: this.memberSetuuid, memberId: this.memberSetId, type: e2 }).then((function(e3) {
|
||
0 === e3.code && (a2.$message({ message: "操作成功", type: "success" }), a2.memberSetVisible = false, a2.getMemberList(), a2.cancelMemberEdit());
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, memberQuitConfirm: function() {
|
||
var e2 = this;
|
||
Object(n["q"])({ memberUuid: this.memberSetuuid, memberId: this.memberSetId }).then((function(t2) {
|
||
e2.$message({ message: "操作成功", type: "success" }), e2.memberSetVisible = false, e2.getMemberList();
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, memberRecovery: function(e2) {
|
||
var t2 = this;
|
||
this.memberSetuuid = e2.uuid, this.memberSetId = e2.id, this.$confirm("此操作将恢复此成员账号使用权限, 是否继续?", "账号恢复", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
|
||
t2.memberSetuuid = e2.uuid, t2.memberSetId = e2.id, t2.memberSuspendConfirm(1);
|
||
})).catch((function() {
|
||
}));
|
||
}, organizePath: function() {
|
||
this.$router.push({ path: "/company/companyInfo" });
|
||
}, handleSelectionChange: function(e2) {
|
||
this.multipleSelection = e2;
|
||
}, changeDepartment: function(e2) {
|
||
console.log(e2), console.log(e2.osId), this.changeDepartmentVisible = true, this.oldOsuuid = e2.osId, this.changeOsuuid = e2.osId, this.userUuid = e2.uuid, this.userId = e2.id;
|
||
}, postChange: function() {
|
||
var e2 = this, t2 = { memberUuid: this.userUuid, memberId: this.userId, osUuid: this.changeOsuuid, osUuidOld: this.oldOsuuid };
|
||
console.log(t2), Object(n["a"])(t2).then((function(t3) {
|
||
e2.$message({ message: "操作成功", type: "success" }), e2.changeDepartmentVisible = false, e2.getMemberList();
|
||
}));
|
||
}, handleSizeChange: function(e2) {
|
||
this.page.pageSize = e2, this.page.pageNum = 1, this.getMemberList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.page.pageNum = e2, this.getMemberList();
|
||
}, queryMemberCertificate: function() {
|
||
var e2 = this, t2 = { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, memberId: this.objInfo.id, pageSize: -1, pageNumber: -1 };
|
||
Object(u["l"])(t2).then((function(t3) {
|
||
0 === t3.code && t3.data ? e2.carlistTable = t3.data.records : e2.carlistTable = [];
|
||
}));
|
||
}, gobackTop: function() {
|
||
this.cancelMemberEdit();
|
||
} } }, b = p, h = (a("dd65"), a("829d")), f = Object(h["a"])(b, i, r, false, null, null, null);
|
||
t["default"] = f.exports;
|
||
}, "99d5": function(e, t, a) {
|
||
"use strict";
|
||
}, b3d7: function(e, t, a) {
|
||
var i = a("e99b"), r = a("d3ef")(false);
|
||
i(i.S, "Object", { values: function(e2) {
|
||
return r(e2);
|
||
} });
|
||
}, b9f1: function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "b", (function() {
|
||
return r;
|
||
})), a.d(t, "c", (function() {
|
||
return o;
|
||
})), a.d(t, "a", (function() {
|
||
return n;
|
||
}));
|
||
var i = a("b775");
|
||
function r(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/QywxDepartment/syncDeptData", method: "post", data: e2 });
|
||
}
|
||
function o(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/QywxDepartment/treeList", method: "post", data: e2 });
|
||
}
|
||
function n(e2) {
|
||
return Object(i["a"])({ url: "/hakocompany/QywxUser/pageList", method: "post", data: e2 });
|
||
}
|
||
}, d3ef: function(e, t, a) {
|
||
var i = a("26df"), r = a("93ca"), o = a("3471"), n = a("35d4").f;
|
||
e.exports = function(e2) {
|
||
return function(t2) {
|
||
var a2, s = o(t2), l = r(s), c = l.length, m = 0, d = [];
|
||
while (c > m) a2 = l[m++], i && !n.call(s, a2) || d.push(e2 ? [a2, s[a2]] : s[a2]);
|
||
return d;
|
||
};
|
||
};
|
||
}, d852: function(e, t, a) {
|
||
e.exports = a.p + "static/img/help.6c252eeb.png";
|
||
}, d86c: function(e, t, a) {
|
||
"use strict";
|
||
a("3f16");
|
||
}, dd65: function(e, t, a) {
|
||
"use strict";
|
||
a("7341");
|
||
}, fa3df: function(e, t, a) {
|
||
"use strict";
|
||
var i = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "organizeEdit" }, [a2("el-dialog", { attrs: { "min-width": "50%", "show-close": false, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.organizeEditVisible }, on: { "update:visible": function(t3) {
|
||
e2.organizeEditVisible = t3;
|
||
} } }, [a2("el-form", { ref: "organizeForm", attrs: { model: e2.organizeForm, "label-width": "110px", rules: e2.rules } }, [a2("el-divider", { attrs: { "content-position": "left" } }, [e2._v(e2._s(e2.optType) + "组织")]), e2._v(" "), a2("el-row", { attrs: { gutter: 25 } }, [a2("el-col", { attrs: { span: 18, offset: 2 } }, ["Edit" == e2.editType ? a2("el-form-item", { attrs: { label: "组织编号" } }, [a2("el-input", { attrs: { disabled: "" }, model: { value: e2.organizeForm.codeNumber, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "codeNumber", t3);
|
||
}, expression: "organizeForm.codeNumber" } })], 1) : e2._e(), e2._v(" "), a2("el-form-item", { attrs: { label: "组织名称", prop: "name" } }, [a2("el-input", { attrs: { placeholder: "组织名称", clearable: "" }, model: { value: e2.organizeForm.name, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "name", t3);
|
||
}, expression: "organizeForm.name" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "组织属性", prop: "attribute" } }, [a2("el-select", { attrs: { disabled: "编辑" === e2.optType, placeholder: "请选择组织属性" }, model: { value: e2.organizeForm.attribute, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "attribute", t3);
|
||
}, expression: "organizeForm.attribute" } }, [a2("el-option", { attrs: { label: "项目", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "部门", value: 2 } })], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "上级组织" } }, [a2("el-cascader", { attrs: { disabled: "", options: e2.organizeList, props: { label: "name", children: "childs", value: "id", checkStrictly: true } }, model: { value: e2.organizeForm.pid, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "pid", t3);
|
||
}, expression: "organizeForm.pid" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "管理状态", prop: "manageType" } }, [a2("el-select", { attrs: { placeholder: "请选择管理状态" }, model: { value: e2.organizeForm.manageType, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "manageType", t3);
|
||
}, expression: "organizeForm.manageType" } }, e2._l(e2.manageTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1), e2._v(" "), "编辑" === e2.optType ? a2("el-form-item", { attrs: { label: "计划编制人数", prop: "planNum" } }, [a2("el-input", { attrs: { placeholder: "请输入计划编制人数", maxlength: "8", "show-word-limit": "", oninput: "value=value.replace(/[^\\d]/g,'')" }, model: { value: e2.organizeForm.planNum, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "planNum", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "organizeForm.planNum" } }, [a2("template", { slot: "append" }, [e2._v("人")])], 2)], 1) : e2._e(), e2._v(" "), "编辑" === e2.optType ? a2("el-form-item", { attrs: { label: "项目负责人", prop: "memberUuids" } }, [a2("el-select", { attrs: { filterable: "", placeholder: "搜索并选择组织负责人" }, on: { change: function(t3) {
|
||
return e2.$forceUpdate();
|
||
} }, model: { value: e2.organizeForm.memberUuids, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "memberUuids", t3);
|
||
}, expression: "organizeForm.memberUuids" } }, e2._l(e2.searchList, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.value, value: e3.uuid } });
|
||
})), 1)], 1) : e2._e(), e2._v(" "), "编辑" === e2.optType ? a2("el-form-item", { attrs: { label: "总部运营负责人", prop: "supervisorId" } }, [a2("el-select", { attrs: { filterable: "", placeholder: "搜索并选择总部运营负责人" }, on: { change: function(t3) {
|
||
return e2.$forceUpdate();
|
||
} }, model: { value: e2.organizeForm.supervisorId, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "supervisorId", t3);
|
||
}, expression: "organizeForm.supervisorId" } }, e2._l(e2.searchAllList, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.value, value: e3.id } });
|
||
})), 1)], 1) : e2._e(), e2._v(" "), a2("el-form-item", { attrs: { label: "所属区域", prop: "organize_area" } }, [a2("el-cascader", { ref: "myCascader", attrs: { options: e2.areaData, placeholder: "省/市/区/街道", props: { value: "code", label: "name", children: "children" } }, on: { change: e2.areaChange }, model: { value: e2.organize_area, callback: function(t3) {
|
||
e2.organize_area = t3;
|
||
}, expression: "organize_area" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "经纬度", prop: "organize_code" } }, [a2("div", { staticClass: "coordinate-set" }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入经纬度" }, model: { value: e2.organizeForm.organize_code, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "organize_code", t3);
|
||
}, expression: "organizeForm.organize_code" } }), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", icon: "el-icon-map-location" }, on: { click: e2.selectMap } }, [e2._v("地图选点")]), e2._v(" "), a2("el-button", { attrs: { type: "text" }, on: { click: function(t3) {
|
||
return e2.onPreview(e2.helpImg);
|
||
} } }, [a2("i", { staticClass: "el-icon-question" })])], 1)]), e2._v(" "), 1 == e2.organizeForm.attribute ? a2("el-form-item", { attrs: { label: "项目级别", prop: "star" } }, [a2("el-select", { attrs: { disabled: e2.disabledStar, placeholder: "项目级别" }, model: { value: e2.organizeForm.star, callback: function(t3) {
|
||
e2.$set(e2.organizeForm, "star", t3);
|
||
}, expression: "organizeForm.star" } }, e2._l(e2.optionsStar, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1) : e2._e(), e2._v(" "), 1 == e2.organizeForm.attribute && 0 !== e2.hideData ? a2("el-form-item", { attrs: { label: "项目业态", prop: "ptId" } }, [a2("el-select", { attrs: { filterable: "", placeholder: "选择项目业态", clearable: "" }, on: { change: e2.selectPt }, model: { value: e2.ptId, callback: function(t3) {
|
||
e2.ptId = t3;
|
||
}, expression: "ptId" } }, e2._l(e2.projecFormat, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.targetId } });
|
||
})), 1)], 1) : e2._e(), e2._v(" "), 1 == e2.organizeForm.attribute && 0 !== e2.hideData ? a2("el-form-item", { attrs: { label: "空间", prop: "spaceUuidList" } }, [a2("el-checkbox", { attrs: { disabled: 0 == e2.spaceUuidListInfo.length, indeterminate: e2.isIndeterminate }, on: { change: e2.handleCheckAllChange }, model: { value: e2.checkAll, callback: function(t3) {
|
||
e2.checkAll = t3;
|
||
}, expression: "checkAll" } }, [e2._v("全选")]), e2._v(" "), e2.spaceUuidListInfo.length > 0 ? a2("el-checkbox-group", { on: { change: e2.handleCheckedTypeChange }, model: { value: e2.spaceUuidList, callback: function(t3) {
|
||
e2.spaceUuidList = t3;
|
||
}, expression: "spaceUuidList" } }, e2._l(e2.spaceUuidListInfo, (function(t3) {
|
||
return a2("el-checkbox", { key: t3.spaceUuid, attrs: { label: t3.spaceUuid } }, [e2._v(e2._s(t3.name))]);
|
||
})), 1) : e2._e()], 1) : e2._e(), e2._v(" "), "Edit" == e2.editType ? a2("el-form-item", { attrs: { label: "项目业态", prop: "ptId" } }, [a2("el-select", { attrs: { filterable: "", placeholder: "选择项目业态", clearable: "", disabled: e2.ptdisabled }, on: { change: e2.selectPt }, model: { value: e2.ptId, callback: function(t3) {
|
||
e2.ptId = t3;
|
||
}, expression: "ptId" } }, e2._l(e2.projecFormat, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.targetId } });
|
||
})), 1)], 1) : e2._e()], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: e2.organizeEditCancel } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { attrs: { loading: e2.editDisabledBtn, type: "primary" }, on: { click: function(t3) {
|
||
return e2.editOrganizeBtn("organizeForm");
|
||
} } }, [e2._v("确 定")])], 1)], 1), e2._v(" "), e2.showViewer ? a2("el-image-viewer", { staticStyle: { "z-index": "2010" }, attrs: { "on-close": e2.closeViewer, "url-list": e2.srcList } }) : e2._e()], 1);
|
||
}, r = [], o = (a("ac67"), a("32ea"), a("1bc7"), a("fc02"), a("a450"), a("5821")), n = (a("e211"), a("dc63")), s = a("4513"), l = (a("4360"), a("f770")), c = a("dce5");
|
||
function m(e2, t2) {
|
||
var a2 = Object.keys(e2);
|
||
if (Object.getOwnPropertySymbols) {
|
||
var i2 = Object.getOwnPropertySymbols(e2);
|
||
t2 && (i2 = i2.filter((function(t3) {
|
||
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
||
}))), a2.push.apply(a2, i2);
|
||
}
|
||
return a2;
|
||
}
|
||
function d(e2) {
|
||
for (var t2 = 1; t2 < arguments.length; t2++) {
|
||
var a2 = null != arguments[t2] ? arguments[t2] : {};
|
||
t2 % 2 ? m(Object(a2), true).forEach((function(t3) {
|
||
Object(o["a"])(e2, t3, a2[t3]);
|
||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(a2)) : m(Object(a2)).forEach((function(t3) {
|
||
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(a2, t3));
|
||
}));
|
||
}
|
||
return e2;
|
||
}
|
||
s["c"];
|
||
var u = { props: ["editData", "organizeList"], components: { ElImageViewer: l["a"] }, data: function() {
|
||
return { manageTypeList: c["V"], areaData: n, editDisabledBtn: false, organizeEditVisible: false, organize_area: [], projecFormat: [], spaceUuidListInfo: [], spaceUuidList: [], ptId: "", editType: "Add", personSelect: "", hideData: 1, organizeForm: { area: "", attribute: 2, city: "", name: "", memberUuids: "", pid: 0, province: "", dbName: "", star: "", supervisorId: "", planNum: 0, street: "", streetCode: "", longitude: "", latitude: "", manageType: 1, organize_code: "" }, checkAll: false, isIndeterminate: false, optionsStar: [{ value: 1, label: "1A" }, { value: 2, label: "2A" }, { value: 3, label: "3A" }, { value: 4, label: "4A" }, { value: 5, label: "5A" }], disabledStar: false, searchList: [], searchAllList: [], companyInfo: {}, optType: "", isAttributeType: false, rules: { name: [{ required: true, message: "请输入组织名称", trigger: "blur" }], attribute: [{ required: true, message: "请选择组织属性", trigger: "change" }], star: [{ required: true, message: "请选择项目级别", trigger: "change" }], planNum: [{ required: true, message: "请输入计划编制人数", trigger: "blur" }], organize_code: [{ required: true, message: "请输入经纬度", trigger: "blur" }] }, ptdisabled: false, helpImg: a("d852"), showViewer: false, srcList: [] };
|
||
}, mounted: function() {
|
||
}, methods: { init: function(e2, t2, a2) {
|
||
this.editType = e2, this.optType = "Add" == e2 ? "添加" : "编辑", this.$nextTick((function() {
|
||
var i2 = this;
|
||
if (this.emptyOrganizeForm(), this.organize_area = [], this.searchPersonManage(t2.id, t2, ""), this.searchPersonManage(this.organizeList[0].id, t2, "all"), "Add" == e2 && (this.hideData = 1, this.queryListData()), "编辑" === this.optType && this.getFindByProId(t2), t2.star ? this.disabledStar = true : this.disabledStar = false, a2 && (this.organizeForm.pid = a2), t2 && (this.organizeForm.dbName = t2.dbName), "Edit" == e2) {
|
||
if (this.organizeForm = JSON.parse(JSON.stringify(this.editData)), t2.streetCode) {
|
||
var r2 = t2.streetCode, o2 = r2.substring(0, 2), n2 = r2.substring(0, 4), l2 = r2.substring(0, 6);
|
||
this.organize_area = [o2, n2, l2, r2];
|
||
} else this.organize_area = [];
|
||
this.organizeForm.longitude && this.organizeForm.latitude ? this.$set(this.organizeForm, "organize_code", "".concat(this.organizeForm.longitude, ",").concat(this.organizeForm.latitude)) : this.$set(this.organizeForm, "organize_code", ""), this.editType = e2, Object(s["i"])({ uuid: this.organizeForm.uuid, attribute: this.organizeForm.attribute }).then((function(e3) {
|
||
if (0 == e3.code && e3.data.length > 0) {
|
||
var t3 = e3.data[0].uuid;
|
||
i2.organizeForm.memberUuids = t3, i2.organizeForm = d({}, i2.organizeForm);
|
||
}
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
} else this.editData ? (this.organizeForm.pid = this.editData.id, this.editType = e2) : (this.organizeForm.pid = this.organizeList[0].id, this.editType = e2);
|
||
null !== t2.ptId && (this.ptId = t2.ptId, this.ptdisabled = true);
|
||
}));
|
||
}, emptyOrganizeForm: function() {
|
||
this.organizeForm = { area: "", attribute: 2, city: "", name: "", memberUuids: "", pid: 0, province: "", dbName: "", star: "", street: "", streetCode: "", manageType: 1, latitude: "", longitude: "", planNum: 0, organize_code: "" }, this.organize_area = [], this.checkAll = false, this.spaceUuidList = [], this.ptId = "", this.isIndeterminate = false;
|
||
}, showOrganize: function() {
|
||
this.companyInfo = JSON.parse(window.localStorage.getItem("companyInfo")), this.organizeEditVisible = true;
|
||
}, areaChange: function(e2) {
|
||
if (e2) {
|
||
var t2 = this.$refs["myCascader"].getCheckedNodes(), a2 = t2[0].pathLabels, i2 = t2[0].path;
|
||
this.organizeForm.province = a2[0], this.organizeForm.city = a2[1], this.organizeForm.area = a2[2], this.organizeForm.street = a2[3], this.organizeForm.streetCode = i2[3];
|
||
} else this.organizeForm.province = "", this.organizeForm.city = "", this.organizeForm.area = "", this.organizeForm.street = "", this.organizeForm.streetCode = "";
|
||
}, organizeEditCancel: function() {
|
||
this.emptyOrganizeForm(), this.organizeEditVisible = false, this.editDisabledBtn = false;
|
||
}, searchPersonManage: function(e2, t2, a2) {
|
||
var i2 = this, r2 = null;
|
||
this.searchList = [], "all" != a2 && true !== t2.isSelectOneTotal || (r2 = 1), Object(s["t"])({ osId: e2, name: "", tag: r2, pageNumber: -1, pageSize: -1, isStop: 1, onJobState: 1 }).then((function(e3) {
|
||
setTimeout((function() {
|
||
null !== e3.data && (e3.data && e3.data.records.length > 0 ? (e3.data.records.map((function(e4) {
|
||
e4.value = "".concat(e4.name, "-").concat(e4.phoneNumber).concat(e4.departmentName ? "-" + e4.departmentName : "");
|
||
})), "all" == a2 ? (i2.searchAllList = e3.data.records, i2.searchAllList.unshift({ id: 0, value: "无" })) : i2.searchList = e3.data.records) : (i2.searchList = [], i2.searchAllList = []));
|
||
}), 200);
|
||
})).catch((function(e3) {
|
||
console.log(e3);
|
||
}));
|
||
}, getFindByProId: function(e2) {
|
||
var t2 = this;
|
||
Object(s["h"])({ projectId: e2.uuid }).then((function(e3) {
|
||
0 == e3.code && (t2.hideData = e3.data, t2.queryListData());
|
||
}));
|
||
}, editOrganizeBtn: function(e2) {
|
||
var t2 = this;
|
||
this.ptId || 1 != this.organizeForm.attribute || 0 === this.hideData ? 0 != this.spaceUuidList.length || 1 != this.organizeForm.attribute || 0 === this.hideData ? this.$refs[e2].validate((function(e3) {
|
||
e3 && (t2.organizeForm.ptId = t2.ptId, t2.organizeForm.spaceUuidList = t2.spaceUuidList, t2.checkLogLat() && ("Edit" == t2.editType ? (t2.saveOrganize(), t2.editDisabledBtn = true) : (t2.addOrganize(), t2.editDisabledBtn = true)));
|
||
})) : this.$message({ message: "请选择空间", type: "error" }) : this.$message({ message: "请选择项目业态", type: "error" });
|
||
}, checkLogLat: function() {
|
||
if (this.organizeForm.organize_code) {
|
||
var e2 = this.organizeForm.organize_code.split(",");
|
||
if (2 === e2.length) {
|
||
var t2 = parseFloat(e2[0].trim()), a2 = parseFloat(e2[1].trim());
|
||
return isNaN(a2) || isNaN(t2) ? (this.$message("经纬度格式错误,请检查!"), false) : -90 <= a2 && a2 <= 90 ? -180 <= t2 && t2 <= 180 ? (this.organizeForm.longitude = t2, this.organizeForm.latitude = a2, true) : (this.$message("经纬度格式错误,请检查!"), false) : -180 <= a2 && a2 <= 180 && -90 <= t2 && t2 <= 90 ? (this.organizeForm.longitude = a2, this.organizeForm.latitude = t2, true) : (this.$message("经纬度格式错误,请检查!"), false);
|
||
}
|
||
return this.$message("经纬度格式错误,请检查!"), false;
|
||
}
|
||
return this.$message("请输入经纬度!"), false;
|
||
}, queryListData: function() {
|
||
var e2 = this;
|
||
this.projecFormat = [], Object(s["A"])().then((function(t2) {
|
||
e2.projecFormat = t2.data;
|
||
}));
|
||
}, selectPt: function(e2) {
|
||
this.getSpaceList(e2);
|
||
}, getSpaceList: function(e2) {
|
||
var t2 = this;
|
||
this.spaceUuidList = [], this.spaceUuidListInfo = [], this.checkAll = false, this.isIndeterminate = false, Object(s["z"])({ ptId: e2 }).then((function(e3) {
|
||
0 == e3.code && (t2.spaceUuidListInfo = e3.data);
|
||
}));
|
||
}, handleCheckAllChange: function(e2) {
|
||
var t2 = this;
|
||
this.spaceUuidListInfo.forEach((function(e3) {
|
||
t2.spaceUuidList.push(e3.spaceUuid);
|
||
})), this.spaceUuidList = e2 ? this.spaceUuidList : [], this.isIndeterminate = false;
|
||
}, handleCheckedTypeChange: function(e2) {
|
||
var t2 = e2.length;
|
||
this.checkAll = t2 === this.spaceUuidListInfo.length, this.isIndeterminate = t2 > 0 && t2 < this.spaceUuidListInfo.length;
|
||
}, addOrganize: function() {
|
||
var e2 = this, t2 = JSON.parse(localStorage.getItem("userInfo"));
|
||
this.organizeForm.memberUuid = t2.memberUuid, this.organizeForm.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
||
var a2 = this.organizeForm;
|
||
a2.memberUuids = null, a2 = d({}, a2), Object(s["c"])(this.organizeForm).then((function(t3) {
|
||
0 == t3.code && (e2.$message({ message: "添加成功", type: "success" }), e2.organizeForm = { area: "", attribute: 2, city: "", name: "", memberUuids: "", pid: 0, province: "", dbName: "", star: "", manageType: 1 }, e2.spaceUuidListInfo = [], e2.checkAll = false, e2.organizeForm.spaceUuidList = [], e2.organizeEditVisible = false, e2.editDisabledBtn = false, e2.$parent.getOrganizeList(), e2.$parent.getTree(e2.companyInfo.osId));
|
||
})).catch((function(t3) {
|
||
e2.editDisabledBtn = false, reject(t3);
|
||
}));
|
||
}, saveOrganize: function() {
|
||
var e2 = this;
|
||
this.organizeForm.memberUuid = this.organizeForm.memberUuids, Object(s["s"])(this.organizeForm).then((function(t2) {
|
||
if (0 == t2.code) {
|
||
e2.$message({ message: "修改成功", type: "success" }), e2.organizeForm = { area: "", attribute: 2, city: "", name: "", memberUuids: "", pid: 0, province: "", dbName: "", star: "", manageType: 1 }, e2.spaceUuidListInfo = [], e2.checkAll = false, e2.organizeForm.spaceUuidList = [], e2.organizeEditVisible = false, e2.editDisabledBtn = false, e2.$parent.getOrganizeList();
|
||
var a2 = JSON.parse(localStorage.getItem("companyInfo"));
|
||
e2.$parent.getTree(a2.osId), e2.$parent.getListPath();
|
||
}
|
||
})).catch((function(t2) {
|
||
e2.editDisabledBtn = false, console.log("错误", t2);
|
||
}));
|
||
}, selectMap: function() {
|
||
var e2 = "https://api.map.baidu.com/lbsapi/getpoint/index.html";
|
||
window.open(e2, "_blank");
|
||
}, onPreview: function(e2) {
|
||
this.srcList = [], this.srcList.push(e2), this.showViewer = true;
|
||
}, closeViewer: function() {
|
||
this.showViewer = false;
|
||
} } }, p = u, b = (a("6c84"), a("829d")), h = Object(b["a"])(p, i, r, false, null, null, null);
|
||
t["a"] = h.exports;
|
||
} }]);
|