Files
wysite/output/sourcemaps/hc-etms.sqygj.cn/static/js/chunk-4407622a.8147cdad.js

784 lines
54 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-4407622a"], { "127f": function(e, t, a) {
"use strict";
a.d(t, "a", (function() {
return n;
}));
a("4057");
var n = function() {
function e2() {
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
}
return "".concat(+/* @__PURE__ */ new Date(), "_").concat(e2()).concat(e2());
};
}, "35a7": function(e, t, a) {
}, "3a37": function(e, t, a) {
"use strict";
a("6a7e");
}, 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 i;
})), 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 u;
})), a.d(t, "u", (function() {
return d;
})), a.d(t, "b", (function() {
return m;
})), a.d(t, "p", (function() {
return p;
})), a.d(t, "D", (function() {
return f;
})), a.d(t, "B", (function() {
return h;
})), a.d(t, "q", (function() {
return b;
})), a.d(t, "c", (function() {
return y;
})), a.d(t, "s", (function() {
return v;
})), a.d(t, "i", (function() {
return g;
})), a.d(t, "n", (function() {
return _;
})), a.d(t, "a", (function() {
return j;
})), a.d(t, "g", (function() {
return C;
})), a.d(t, "d", (function() {
return k;
})), a.d(t, "f", (function() {
return w;
})), a.d(t, "C", (function() {
return x;
})), a.d(t, "m", (function() {
return O;
})), a.d(t, "y", (function() {
return I;
})), a.d(t, "r", (function() {
return S;
})), a.d(t, "e", (function() {
return q;
})), a.d(t, "z", (function() {
return N;
})), a.d(t, "A", (function() {
return F;
})), a.d(t, "h", (function() {
return T;
})), a.d(t, "k", (function() {
return L;
}));
var n = a("b775");
function r() {
return Object(n["a"])({ url: "/company/organizationalStructure/updateOrgnization", method: "post" });
}
function o(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: e2 });
}
function i(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/findOsTreeV2", method: "post", data: e2 });
}
function s(e2) {
return Object(n["a"])({ url: "/company/OrganizationRoleRel/findProjectByRoleIdAndParent", method: "post", data: e2 });
}
function l(e2) {
return Object(n["a"])({ url: "/company/member/pageListByCompanyId", method: "post", data: e2 });
}
function c(e2) {
return Object(n["a"])({ url: "/company/member/findByProjectUuidAndJobUuid", method: "post", data: e2 });
}
function u(e2) {
return Object(n["a"])({ url: "/company/member/getList", method: "post", data: e2 });
}
function d(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/findOsPathList", method: "post", data: e2 });
}
function m(e2) {
return Object(n["a"])({ url: "/company/member/create", method: "post", data: e2 });
}
function p(e2) {
return Object(n["a"])({ url: "/company/member/findById", method: "post", data: e2 });
}
function f(e2) {
return Object(n["a"])({ url: "/company/member/update", method: "post", data: e2 });
}
function h(e2) {
return Object(n["a"])({ url: "/company/member/suspendMember", method: "post", data: e2 });
}
function b(e2) {
return Object(n["a"])({ url: "/enterprise/os/memberQuit/".concat(e2.memberUuid), method: "post" });
}
function y(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/create", method: "post", data: e2 });
}
function v(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/update", method: "post", data: e2 });
}
function g(e2) {
return Object(n["a"])({ url: "/company/member/findByProjectUuid", method: "post", data: e2 });
}
function _(e2) {
return Object(n["a"])({ url: "/hakocompany/Job/getJobList", method: "post", data: e2 });
}
function j(e2) {
return Object(n["a"])({ url: "/company/member/ChangeDepartment", method: "post", data: e2 });
}
function C(e2) {
return Object(n["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: e2 });
}
function k(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberRoleRel/create", method: "post", data: e2 });
}
function w(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberRoleRel/findByMemberId", method: "post", data: e2 });
}
function x(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberRoleRel/update", method: "post", data: e2 });
}
function O(e2) {
return Object(n["a"])({ url: "/company/member/getList", method: "POST", data: e2 });
}
function I(e2) {
return Object(n["a"])({ url: "/company/member/queryByStaff", method: "POST", data: e2 });
}
function S(e2) {
return Object(n["a"])({ url: "/company/member/memberQuit", method: "POST", data: e2 });
}
function q(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/delete", method: "POST", data: e2 });
}
function N(e2) {
return Object(n["a"])({ url: "/hakocompany/Space/queryInitData", method: "POST", data: e2 });
}
function F(e2) {
return Object(n["a"])({ url: "/hakocompany/Space/queryList", method: "POST", data: e2 });
}
function T(e2) {
return Object(n["a"])({ url: "/hakocompany/Space/findByProId", method: "POST", data: e2 });
}
function L(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/findOSListByRoleId", method: "POST", data: e2 });
}
}, "4d8a": function(e, t, a) {
}, 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 i;
})), 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 u;
})), a.d(t, "m", (function() {
return d;
})), a.d(t, "i", (function() {
return m;
})), a.d(t, "l", (function() {
return p;
})), a.d(t, "j", (function() {
return f;
})), a.d(t, "k", (function() {
return h;
})), a.d(t, "g", (function() {
return b;
}));
var n = a("b775");
function r(e2) {
return Object(n["a"])({ url: "/hakocompany/CertificateClassifyCompany/create", method: "post", data: e2 });
}
function o(e2) {
return Object(n["a"])({ url: "/hakocompany/CertificateClassifyCompany/uodate", method: "post", data: e2 });
}
function i(e2) {
return Object(n["a"])({ url: "/hakocompany/CertificateClassifyCompany/delete", method: "post", data: e2 });
}
function s(e2) {
return Object(n["a"])({ url: "/hakocompany/CertificateClassifyCompany/resume", method: "post", data: e2 });
}
function l(e2) {
return Object(n["a"])({ url: "/hakocompany/CertificateClassifyCompany/pageList", method: "post", data: e2 });
}
function c(e2) {
return Object(n["a"])({ url: "/hakocompany/CertificateClassifyCompany/cloudCertificateSync", method: "post", data: e2 });
}
function u(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberCertificate/create", method: "post", data: e2 });
}
function d(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberCertificate/update", method: "post", data: e2 });
}
function m(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberCertificate/delete", method: "post", data: e2 });
}
function p(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberCertificate/pageList", method: "post", data: e2 });
}
function f(e2) {
return Object(n["a"])({ url: "/hakocompany/MemberCertificate/exportExcel", method: "post", responseType: "blob", data: e2 });
}
function h(e2, t2) {
return Object(n["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 b(e2, t2) {
return Object(n["a"])({ url: "/hakocompany/MemberCertificate/appendixUpload" + t2, method: "post", isFile: true, headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
}
}, "67d5": function(e, t, a) {
"use strict";
a.d(t, "i", (function() {
return r;
})), a.d(t, "j", (function() {
return o;
})), a.d(t, "f", (function() {
return i;
})), a.d(t, "b", (function() {
return s;
})), a.d(t, "c", (function() {
return l;
})), a.d(t, "k", (function() {
return c;
})), a.d(t, "e", (function() {
return u;
})), a.d(t, "d", (function() {
return d;
})), a.d(t, "h", (function() {
return m;
})), a.d(t, "a", (function() {
return p;
})), a.d(t, "g", (function() {
return f;
}));
var n = a("b775");
function r(e2) {
return Object(n["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: e2 });
}
function o(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/selectOsList", method: "post", data: e2 });
}
function i(e2) {
return Object(n["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: e2 });
}
function s(e2) {
return Object(n["a"])({ url: "/hakocompany/Role/create", method: "post", data: e2 });
}
function l(e2) {
return Object(n["a"])({ url: "/hakocompany/Role/delete", method: "post", data: e2 });
}
function c(e2) {
return Object(n["a"])({ url: "/hakocompany/Role/update", method: "post", data: e2 });
}
function u(e2) {
return Object(n["a"])({ url: "/hakocompany/RoleMenuRel/findByRoleIdAndClienId", method: "post", data: e2 });
}
function d(e2) {
return Object(n["a"])({ url: "/hakocompany/OrganizationRoleRel/findByRoleId", method: "post", data: e2 });
}
function m(e2) {
return Object(n["a"])({ url: "/company/member/pageListForRole", method: "post", data: e2 });
}
function p(e2) {
return Object(n["a"])({ url: "/company/MemberRoleRel/batchDelete", method: "post", data: e2 });
}
function f(e2) {
return Object(n["a"])({ url: "/hakocompany/account/findProjectByRole", method: "post", data: e2 });
}
}, "6a7e": function(e, t, a) {
}, 7615: function(e, t, a) {
"use strict";
a("35a7");
}, "90e7": function(e, t, a) {
"use strict";
a.d(t, "g", (function() {
return r;
})), a.d(t, "m", (function() {
return o;
})), a.d(t, "f", (function() {
return i;
})), a.d(t, "l", (function() {
return s;
})), a.d(t, "h", (function() {
return l;
})), a.d(t, "n", (function() {
return c;
})), a.d(t, "a", (function() {
return u;
})), a.d(t, "b", (function() {
return d;
})), a.d(t, "c", (function() {
return m;
})), a.d(t, "e", (function() {
return p;
})), a.d(t, "d", (function() {
return f;
})), a.d(t, "i", (function() {
return h;
})), a.d(t, "j", (function() {
return b;
})), a.d(t, "o", (function() {
return y;
})), a.d(t, "k", (function() {
return v;
}));
var n = a("b775");
function r(e2) {
return Object(n["a"])({ url: "/hakocompany/DeductionInfo/findById", method: "post", data: e2 });
}
function o(e2) {
return Object(n["a"])({ url: "/hakocompany/DeductionInfo/update", method: "post", data: e2 });
}
function i(e2) {
return Object(n["a"])({ url: "/hakocompany/CollectionInfoApi/findById", method: "post", data: e2 });
}
function s(e2) {
return Object(n["a"])({ url: "/hakocompany/CollectionInfoApi/update", method: "post", data: e2 });
}
function l(e2) {
return Object(n["a"])({ url: "/hakocompany/ChargePushConfigApi/findById", method: "post", data: e2 });
}
function c(e2) {
return Object(n["a"])({ url: "/hakocompany/ChargePushConfigApi/update", method: "post", data: e2 });
}
function u(e2) {
return Object(n["a"])({ url: "/company/ProjectSatisfactionConfig/pageList", method: "post", data: e2 });
}
function d(e2) {
return Object(n["a"])({ url: "/company/ProjectSatisfactionConfig/update", method: "post", data: e2 });
}
function m(e2) {
return Object(n["a"])({ url: "/hakocompany/CockpitConfig/create", method: "post", data: e2 });
}
function p(e2) {
return Object(n["a"])({ url: "/hakocompany/CockpitConfig/findByCompanyIdAndType", method: "post", data: e2 });
}
function f(e2) {
return Object(n["a"])({ url: "/hakocompany/CockpitConfig/sceneMenuList", method: "post", data: e2 });
}
function h(e2) {
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/pageList", method: "post", data: e2 });
}
function b(e2) {
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/updateExponentByProjectUuid", method: "post", data: e2 });
}
function y(e2, t2) {
return Object(n["a"])({ url: "/oss/upload", isFile: true, isReturnResponse: true, headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, method: "post", data: e2, onUploadProgress: t2 && t2.onUploadProgress });
}
function v(e2) {
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid", method: "post", data: e2 });
}
}, bfee: function(e, t, a) {
"use strict";
a.r(t);
var n = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "contentStys" }, [a2("div", { staticClass: "page-container" }, [a2("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(t3) {
e2.activeName = t3;
}, expression: "activeName" } }, [a2("el-tab-pane", { attrs: { label: "资质管理", name: "qualificationIndex" } }, [a2("qualificationIndex", { directives: [{ name: "show", rawName: "v-show", value: "qualificationIndex" === e2.activeName, expression: "activeName==='qualificationIndex'" }] })], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "证书类型", name: "certificateType" } }, [a2("certificateType", { directives: [{ name: "show", rawName: "v-show", value: "certificateType" === e2.activeName, expression: "activeName==='certificateType'" }] })], 1)], 1)], 1)]);
}, r = [], o = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "headStys" }, [e2.viewlist ? a2("div", [a2("div", { staticClass: "formContent" }, [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [a2("el-form-item", { attrs: { prop: "name", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "证书名称", maxlength: "64" }, model: { value: e2.query.classifyName, callback: function(t3) {
e2.$set(e2.query, "classifyName", t3);
}, expression: "query.classifyName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "name", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "项目名称", maxlength: "64" }, model: { value: e2.query.projectName, callback: function(t3) {
e2.$set(e2.query, "projectName", t3);
}, expression: "query.projectName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "corporateCreditCode", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "员工姓名", maxlength: "64" }, model: { value: e2.query.memberName, callback: function(t3) {
e2.$set(e2.query, "memberName", t3);
}, expression: "query.memberName" } })], 1), e2._v(" "), a2("el-form-item", [a2("el-select", { attrs: { placeholder: "岗位", clearable: "" }, model: { value: e2.query.jobId, callback: function(t3) {
e2.$set(e2.query, "jobId", t3);
}, expression: "query.jobId" } }, e2._l(e2.jobList, (function(e3, t3) {
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.id } });
})), 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-select", { attrs: { placeholder: "状态", clearable: "" }, model: { value: e2.query.status, callback: function(t3) {
e2.$set(e2.query, "status", t3);
}, expression: "query.status" } }, e2._l(e2.statusList, (function(e3, t3) {
return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value } });
})), 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.resetForm();
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "contentStys" }, [a2("div", { staticClass: "planLst" }, [a2("span", [e2._v("资质证书列表")]), e2._v(" "), a2("span", { staticClass: "addPlan" }, [a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: e2.exportExcelTem } }, [e2._v("导出证书模板")]), e2._v(" "), a2("el-upload", { ref: "upload", staticClass: "importChargingBtn", attrs: { loading: e2.importDataBtn, "auto-upload": true, "show-file-list": false, accept: ".xls,.xlsx", "http-request": e2.importGoods, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2", attrs: { type: "primary" } }, [e2._v("导入证书")])], 1), e2._v(" "), a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "批量上传需先将图片名称改为证书编号后再压缩上传", placement: "top" } }, [a2("el-upload", { ref: "upload", staticClass: "importChargingBtn", attrs: { loading: e2.importDataBtn, "auto-upload": true, "show-file-list": false, accept: ".zip,.7z,.rar", "http-request": e2.importGoodsZip, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2", attrs: { type: "primary" } }, [e2._v("导入附件")])], 1)], 1), e2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: e2.addMemberCertificate } }, [e2._v("新增资质证书")])], 1)]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "96%", "margin-left": "2%" }, attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "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))])];
} }], null, false, 714878904) }), 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 ")];
} }], null, false, 2954305521) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "expireTime", "min-width": "200", label: "到期时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [t3.row.expireTime ? a2("div", [e2._v(e2._s(e2._f("formatDate")(t3.row.expireTime, "Y-M-D")))]) : a2("div", [e2._v("永久")])];
} }], null, false, 822234206) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "status", "min-width": "200", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("div", { class: e2.setStatusClass(t3.row.status) }, [e2._v(e2._s(e2._f("getItemType")(t3.row.status, e2.statusList)))])];
} }], null, false, 2337276398) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "150", label: "操作", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
return e2.viewItem(t3.row);
} } }, [e2._v("查看")]), e2._v(" "), a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
return e2.editItem(t3.row);
} } }, [e2._v("编辑")]), e2._v(" "), a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
return e2.deleteClick(t3.row);
} } }, [e2._v("删除")])];
} }], null, false, 1223297818) })], 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.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1)]) : e2._e(), e2._v(" "), e2.viewDetailes ? a2("div", [a2("qualificationDetailes", { ref: "qualificationDetailes", on: { goBack: e2.goBackList } })], 1) : e2._e(), e2._v(" "), a2("el-dialog", { attrs: { title: e2.title, visible: e2.addVisible, width: "45%", "close-on-click-modal": false, "close-on-press-escape": false }, on: { "update:visible": function(t3) {
e2.addVisible = t3;
} } }, [a2("div", [a2("el-form", { ref: "addForm", attrs: { model: e2.addForm, "label-width": "100px", rules: e2.addFromRules } }, [a2("el-row", [a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "选择项目", prop: "projectUuid" } }, [a2("el-select", { staticClass: "formItemWidth", attrs: { placeholder: "请选择项目", clearable: "" }, on: { change: e2.projectChange }, model: { value: e2.addForm.projectUuid, callback: function(t3) {
e2.$set(e2.addForm, "projectUuid", t3);
}, expression: "addForm.projectUuid" } }, e2._l(e2.projectList, (function(e3, t3) {
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.uuid } });
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "项目成员", prop: "memberId" } }, [a2("el-select", { staticClass: "formItemWidth", attrs: { placeholder: "请选择项目成员", clearable: "" }, model: { value: e2.addForm.memberId, callback: function(t3) {
e2.$set(e2.addForm, "memberId", t3);
}, expression: "addForm.memberId" } }, e2._l(e2.memberList, (function(e3, t3) {
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.id } });
})), 1)], 1)], 1)], 1), e2._v(" "), a2("el-row", [a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "证书类型", prop: "classifyNo" } }, [a2("el-select", { staticClass: "formItemWidth", attrs: { placeholder: "请选择需要绑定的证书类型", clearable: "" }, model: { value: e2.addForm.classifyNo, callback: function(t3) {
e2.$set(e2.addForm, "classifyNo", t3);
}, expression: "addForm.classifyNo" } }, e2._l(e2.classifyTypeList, (function(e3, t3) {
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.classifyNo } });
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "证书编号", prop: "certificateNo" } }, [a2("el-input", { staticClass: "formItemWidth", attrs: { placeholder: "请输入证书名称", clearable: "" }, model: { value: e2.addForm.certificateNo, callback: function(t3) {
e2.$set(e2.addForm, "certificateNo", t3);
}, expression: "addForm.certificateNo" } })], 1)], 1)], 1), e2._v(" "), a2("el-row", [a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "领证日期", prop: "receiveTime" } }, [a2("el-date-picker", { staticClass: "formItemWidth", attrs: { type: "date", placeholder: "选择领证日期", clearable: "", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd 23:59:59" }, model: { value: e2.addForm.receiveTime, callback: function(t3) {
e2.$set(e2.addForm, "receiveTime", t3);
}, expression: "addForm.receiveTime" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "到期日期", prop: "expireTime" } }, [a2("el-date-picker", { staticClass: "formItemWidth", attrs: { type: "date", placeholder: "选择到期日期", clearable: "", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd 23:59:59" }, model: { value: e2.addForm.expireTime, callback: function(t3) {
e2.$set(e2.addForm, "expireTime", t3);
}, expression: "addForm.expireTime" } })], 1)], 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "上传附件", prop: "addForm.appendixUrl" } }, [a2("AliOSSUpload", { attrs: { limit: 1, imgStore: e2.imgStore, accept: e2.accept, allowFileType: e2.allowFileType2, fileList: e2.fileListInfo, isChangeFileName: false, showFileList: true, listType: "text" }, on: { getUploadData: e2.getUploadData2 }, scopedSlots: e2._u([{ key: "uploadButton", fn: function() {
return [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload", attrs: { type: "primary", plain: "", size: "small" } }, [e2._v("证书证明")])];
}, proxy: true }]) }), e2._v(" "), a2("div", { staticClass: "uploadFileNotes" }, [a2("div", [a2("span", { staticClass: "el-icon-info" }), e2._v("到期日期为空即为永久证书。")]), e2._v(" "), a2("div", [a2("span", { staticClass: "el-icon-info" }), e2._v("支持附件扩展名: .jpg, .JPG, .jpeg, .gif, .GIF, .MPEG, .MPG, .png, .PNG等图片最多可上传 1 个附件。")])])], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { on: { click: function(t3) {
e2.addVisible = false;
} } }, [e2._v("取 消")]), e2._v(" "), "add" == e2.formbtn ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
return e2.addFormPost("addForm");
} } }, [e2._v("确 定")]) : e2._e(), e2._v(" "), "edit" == e2.formbtn ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
return e2.editFormPost("addForm");
} } }, [e2._v("保 存")]) : e2._e()], 1)], 1)], 1)]), e2._v(" "), e2.viewImport ? a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "查看导入详情", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, "destroy-on-close": "", visible: e2.viewImport }, on: { "update:visible": function(t3) {
e2.viewImport = t3;
} } }, [a2("div", { staticClass: "center2" }, [a2("span", [e2._v("上传成功!共上传")]), e2._v(" "), a2("span", { staticClass: "color1" }, [e2._v(e2._s(e2.totalCount))]), e2._v(" "), a2("span", [e2._v("条,成功")]), e2._v(" "), a2("span", { staticClass: "color2" }, [e2._v(e2._s(e2.successCount))]), e2._v(" "), a2("span", [e2._v("条,失败")]), e2._v(" "), a2("span", { staticClass: "color3" }, [e2._v(e2._s(e2.errorCount))]), e2._v(" "), a2("span", [e2._v("条")]), e2._v(" "), a2("span", [a2("el-button", { staticStyle: { "font-size": "16px" }, attrs: { type: "text" }, on: { click: e2.downloadImportDetailes } }, [e2._v(" 查看导入详情")])], 1)]), e2._v(" "), a2("div", { staticClass: "btnStsy" }, [a2("el-button", { attrs: { type: "info" }, on: { click: function(t3) {
e2.viewImport = false;
} } }, [e2._v("取消")])], 1)]) : e2._e()], 1);
}, i = [], s = (a("aa18"), a("982e"), a("1bc7"), a("a450"), a("e5b4"), a("333d")), l = a("5822"), c = a("4513"), u = a("67d5"), d = a("8988"), m = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "ruleGroupInfo" }, [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content }, on: { back: e2.goBack } }), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("基础信息")]), e2._v(" "), a2("div", { staticClass: "vote-form" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true } }, [a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "项目名称" } }, [a2("el-input", { attrs: { value: e2.detailes.projectName, disabled: "", placeholder: "项目名称" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "成员姓名" } }, [a2("el-input", { attrs: { value: e2.detailes.memberName, disabled: "", placeholder: "成员姓名" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "证书名称" } }, [a2("el-input", { attrs: { value: e2.detailes.classifyName, disabled: "", placeholder: "证书名称" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "发证单位" } }, [a2("el-input", { attrs: { value: e2.detailes.releaseUnit, disabled: "", placeholder: "发证单位" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "证书编号" } }, [a2("el-input", { attrs: { value: e2.detailes.certificateNo, disabled: "", placeholder: "证书编号" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "领证日期" } }, [a2("el-date-picker", { staticClass: "formItemWidth", attrs: { disabled: "", type: "date", placeholder: "选择到期日期", clearable: "", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd 23:59:59" }, model: { value: e2.detailes.expireTime, callback: function(t3) {
e2.$set(e2.detailes, "expireTime", t3);
}, expression: "detailes.expireTime" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "到期日期" } }, [a2("el-date-picker", { staticClass: "formItemWidth", attrs: { disabled: "", type: "date", placeholder: "选择到期日期", clearable: "", format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd 23:59:59" }, model: { value: e2.detailes.expireTime, callback: function(t3) {
e2.$set(e2.detailes, "expireTime", t3);
}, expression: "detailes.expireTime" } })], 1)], 1)], 1)], 1)], 1), e2._v(" "), e2.detailes.appendixUrl ? a2("div", { staticClass: "rule typeface" }, [e2._v("附件信息")]) : e2._e(), e2._v(" "), e2.detailes.appendixUrl ? a2("div", { staticClass: "vote-questions" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true } }, [a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 8 } }, [a2("el-link", { attrs: { type: "primary", href: e2.detailes.appendixUrl, target: "_blank" } }, [e2._v(e2._s(e2.reviewFile(e2.detailes.appendixUrl)))])], 1)], 1)], 1)], 1) : e2._e()], 1)], 1);
}, p = [], f = (a("fc02"), { name: "qualificationDetailes", data: function() {
return { content: "查看详情", detailes: {}, jobList: [], projectList: [], memberList: [], classifyTypeList: [], query: { companyId: 0 } };
}, methods: { getInfoLst: function(e2) {
this.detailes = e2, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId;
}, getJobList: function() {
var e2 = this;
Object(c["n"])({}).then((function(t2) {
t2.data.length > 0 ? e2.jobList = t2.data : e2.jobList = [];
})).catch((function(e3) {
console.log(e3);
}));
}, getProjectInfo: function() {
var e2 = this, t2 = this.query.companyId;
Object(u["j"])({ id: t2, attribute: 1 }).then((function(t3) {
0 === t3.code && t3.data ? e2.projectList = t3.data : e2.projectList = [];
}));
}, getProjectMemberByUuid: function(e2) {
var t2 = this, a2 = { projectUuid: e2, pageSize: -1, pageNumber: -1 };
Object(c["j"])(a2).then((function(e3) {
t2.memberList = e3.data;
}));
}, getCertificateTypeList: function() {
var e2 = this, t2 = { companyId: this.query.companyId, pageSize: -1, pageNumber: -1 };
Object(l["c"])(t2).then((function(t3) {
e2.classifyTypeList = t3.data.records;
}));
}, goBack: function() {
this.$emit("goBack");
}, reviewFile: function(e2) {
if (e2) {
if (e2.indexOf("test/") > 0) {
var t2 = e2.split("test/");
return t2[1];
}
var a2 = e2.split("/");
return decodeURI(a2[a2.length - 1]);
}
} } }), h = f, b = (a("3a37"), a("829d")), y = Object(b["a"])(h, m, p, false, null, "2376fd82", null), v = y.exports, g = { components: { Pagination: s["a"], AliOSSUpload: d["a"], qualificationDetailes: v }, data: function() {
return { viewlist: true, viewDetailes: false, jobList: [], pageTotal: 0, listLoading: false, listTable: [], query: { classifyName: "", projectName: "", memberName: "", jobId: "", status: "", companyId: 0, pageSize: 10, pageNumber: 1 }, projectList: [], memberList: [], classifyTypeList: [], addVisible: false, title: "新增资质证书", formbtn: "add", addForm: { companyId: "", projectUuid: "", memberId: "", classifyNo: "", certificateNo: "", receiveTime: "", expireTime: "", appendixUrl: "" }, addFromRules: { projectUuid: [{ required: true, message: "请选择项目", trigger: "change" }], memberId: [{ required: true, message: "请选择项目成员", trigger: "change" }], classifyNo: [{ required: true, message: "请选择证书类型", trigger: "change" }], certificateNo: [{ required: true, message: "请输入证书编号", trigger: "blur" }], receiveTime: [{ required: true, message: "请选择领证日期", trigger: "change" }] }, accept: ".jpg, .JPG, .jpeg, .gif, .GIF, .MPEG, .MPG, .png, .PNG", allowFileType2: ["image"], fileListInfo: [], imgStore: "certificateFile/", statusList: [{ label: "正常", value: 1 }, { label: "即将到期", value: 2 }, { label: "已过期", value: 3 }], importDataBtn: false, viewImport: false, totalCount: "", successCount: "", errorCount: "", downloadInfo: "" };
}, created: function() {
this.headClass();
}, mounted: function() {
this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.addForm.companyId = this.query.companyId, this.getJobList(), this.getlistData();
}, methods: { getJobList: function() {
var e2 = this;
Object(c["n"])({}).then((function(t2) {
t2.data.length > 0 ? e2.jobList = t2.data : e2.jobList = [];
})).catch((function(e3) {
console.log(e3);
}));
}, getlistData: function() {
var e2 = this;
this.listLoading = true, Object(l["l"])(this.query).then((function(t2) {
e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount, e2.listLoading = false;
})).catch((function() {
e2.listLoading = false;
}));
}, viewItem: function(e2) {
var t2 = this;
this.viewlist = false, this.viewDetailes = true, this.$nextTick((function() {
t2.$refs.qualificationDetailes.getInfoLst(e2);
}));
}, editItem: function(e2) {
this.title = "新增资质证书", this.addForm = e2, this.formbtn = "edit", this.getProjectInfo(), this.getCertificateTypeList(), this.addVisible = true;
}, addMemberCertificate: function() {
this.title = "新增资质证书", this.getProjectInfo(), this.getCertificateTypeList(), this.addVisible = true;
}, getProjectInfo: function() {
var e2 = this, t2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
Object(u["j"])({ id: t2, attribute: 1 }).then((function(t3) {
0 === t3.code && t3.data ? e2.projectList = t3.data : e2.projectList = [];
}));
}, projectChange: function(e2) {
this.getProjectMemberByUuid(e2);
}, getProjectMemberByUuid: function(e2) {
var t2 = this, a2 = { projectUuid: e2, pageSize: -1, pageNumber: -1 };
Object(c["j"])(a2).then((function(e3) {
t2.memberList = e3.data;
}));
}, getCertificateTypeList: function() {
var e2 = this, t2 = { companyId: this.query.companyId, isDelete: 0, pageSize: -1, pageNumber: -1 };
Object(l["c"])(t2).then((function(t3) {
e2.classifyTypeList = t3.data.records;
}));
}, addFormPost: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(e3) {
if (e3) {
var a2 = t2.projectList.find((function(e4) {
return e4.uuid === t2.addForm.projectUuid;
})), n2 = Object.assign(t2.addForm, { projectName: a2.name });
console.log("params", n2), Object(l["h"])(n2).then((function(e4) {
t2.$message({ type: "success", message: "添加成功!" }), t2.addVisible = false, t2.onSearch();
}));
}
}));
}, editFormPost: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(e3) {
if (e3) {
var a2 = t2.projectList.find((function(e4) {
return e4.uuid === t2.addForm.projectUuid;
})), n2 = Object.assign(t2.addForm, { projectName: a2.name });
Object(l["m"])(n2).then((function(e4) {
t2.$message({ type: "success", message: "更新成功!" }), t2.addVisible = false, t2.onSearch();
}));
}
}));
}, deleteClick: function(e2) {
var t2 = this;
this.$confirm("此操作将移除该成员的资质证书, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
Object(l["i"])({ id: e2.id }).then((function(e3) {
t2.$message({ message: "移除成功", type: "success" }), t2.onSearch();
}));
}));
}, onSearch: function() {
this.query.pageNumber = 1, this.getlistData();
}, resetForm: function() {
this.query.classifyName = "", this.query.projectName = "", this.query.memberName = "", this.query.jobId = "", this.query.status = "", this.query.pageNumber = 1, this.getlistData();
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getlistData();
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, setStatusClass: function(e2) {
return e2 ? 1 === e2 ? "statusBlock" : 2 === e2 ? "statusYellow" : "statusWaring" : "statusBlock";
}, goBackList: function() {
this.viewlist = true, this.viewDetailes = false, this.getlistData();
}, getUploadData2: function(e2) {
var t2 = [];
e2 && e2.length > 0 && e2.forEach((function(e3) {
t2.push(e3.filePath);
})), this.addForm.appendixUrl = t2.join(";");
}, exportExcelTem: function() {
Object(l["j"])({ companyId: this.query.companyId }).then((function(e2) {
var t2 = new Blob([e2], { type: "application/vnd.ms-excel;charset=UTF-8" }), a2 = (/* @__PURE__ */ new Date()).valueOf();
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2);
else {
var n2 = document.createElement("a");
n2.download = "员工资质证书导入模板_".concat(a2, ".xls"), n2.href = URL.createObjectURL(t2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2);
}
}));
}, importGoods: function(e2) {
var t2 = this, a2 = e2.file, n2 = a2.size / 1024 / 1024 < 10, r2 = a2.name.lastIndexOf("."), o2 = a2.name.length, i2 = a2.name.substring(r2 + 1, o2);
if ("xls" == i2 || "xlsx" == i2) if (n2) {
var s2 = new FormData();
this.fileName = a2.name, s2.append("multipartFile", a2, a2.name);
var c2 = "/".concat(this.query.companyId);
this.importDataBtn = true, Object(l["k"])(s2, c2).then((function(e3) {
console.log("response", e3);
var a3 = e3.headers, n3 = e3.data;
if (t2.downloadInfo = n3, a3.count) if (a3.count.includes(-1)) t2.importDataBtn = false, t2.teanslateResBlob(n3);
else {
var r3 = JSON.parse(a3.count);
r3 && (0 == r3.code ? (t2.importDataBtn = false, r3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = r3.totalCount, t2.successCount = r3.successCount, t2.errorCount = r3.errorCount) : t2.$message({ message: "导入成功", type: "success" }), t2.query.pageNumber = 1, t2.onSearch()) : t2.importDataBtn = false);
}
else t2.importDataBtn = false, t2.teanslateResBlob(n3);
})).catch((function() {
t2.importDataBtn = false;
}));
} else this.$message("上传文件大小不能超过10M!");
else this.$message("只能上传Excel文件!");
}, teanslateResBlob: function(e2) {
var t2 = this, a2 = new FileReader();
a2.readAsText(e2), a2.onload = function() {
var e3 = this.result;
e3 && (e3 = JSON.parse(e3), -1 === e3.code && t2.$message({ message: e3.message, type: "error" }));
};
}, downloadImportDetailes: function() {
var e2 = "application/vnd.ms-excel", t2 = new Blob([this.downloadInfo], { type: e2 }), a2 = "导入失败详情.xls";
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2);
else {
var n2 = document.createElement("a");
n2.download = a2, n2.style.display = "none", n2.href = URL.createObjectURL(t2), document.body.appendChild(n2), n2.click(), document.body.removeChild(n2);
}
}, importGoodsZip: function(e2) {
var t2 = this, a2 = e2.file, n2 = a2.size / 1024 / 1024 < 100, r2 = a2.name.lastIndexOf("."), o2 = a2.name.length, i2 = a2.name.substring(r2 + 1, o2);
if ("zip" == i2 || "7z" == i2 || "rar" == i2) if (n2) {
var s2 = new FormData();
this.fileName = a2.name, s2.append("file", a2, a2.name);
var c2 = "/".concat(this.query.companyId);
this.importDataBtn = true, Object(l["g"])(s2, c2).then((function(e3) {
0 === e3.code ? (t2.$message({ message: "导入成功", type: "success" }), t2.onSearch()) : t2.$message({ message: "导入失败", type: "error" }), t2.importDataBtn = false;
})).catch((function() {
t2.importDataBtn = false;
}));
} else this.$message("上传文件大小不能超过100M!");
else this.$message("只能上传压缩包文件!");
} } }, _ = g, j = (a("f7c9"), Object(b["a"])(_, o, i, false, null, "9db8f510", null)), C = j.exports, k = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "app-container" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "query", attrs: { model: e2.query } }, [a2("div", { ref: "form_box", staticClass: "searchBar" }, [a2("div", { staticClass: "searchInput" }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "classifyNo" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "证书编号" }, model: { value: e2.query.classifyNo, callback: function(t3) {
e2.$set(e2.query, "classifyNo", t3);
}, expression: "query.classifyNo" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "name" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "证书名称" }, model: { value: e2.query.name, callback: function(t3) {
e2.$set(e2.query, "name", t3);
}, expression: "query.name" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "releaseUnit" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "发证单位" }, model: { value: e2.query.releaseUnit, callback: function(t3) {
e2.$set(e2.query, "releaseUnit", t3);
}, expression: "query.releaseUnit" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "isDelete" } }, [a2("el-select", { attrs: { placeholder: "状态", clearable: "" }, model: { value: e2.query.isDelete, callback: function(t3) {
e2.$set(e2.query, "isDelete", t3);
}, expression: "query.isDelete" } }, [a2("el-option", { attrs: { label: "正常", value: 0 } }), e2._v(" "), a2("el-option", { attrs: { label: "已删除", value: 1 } })], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "searchBtn" }, [a2("el-form-item", [a2("el-button", { on: { click: function(t3) {
return e2.resetForm("query");
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")]), e2._v(" "), e2.is_show || "80px" == e2.height ? e2._e() : a2("el-button", { attrs: { type: "text" }, on: { click: e2.upAndDown } }, [e2._v("展开"), a2("i", { staticClass: "el-icon-arrow-down" })]), e2._v(" "), e2.is_show && "80px" != e2.height ? a2("el-button", { attrs: { type: "text" }, on: { click: e2.upAndDown } }, [e2._v("收起"), a2("i", { staticClass: "el-icon-arrow-up" })]) : e2._e()], 1)], 1)])])], 1), e2._v(" "), a2("div", [a2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [a2("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [a2("div", { staticClass: "cardHeader" }, [a2("span", [e2._v("证书类型列表")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: e2.asyncCertificateType } }, [e2._v("云下载")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: function(t3) {
return e2.detailView("add");
} } }, [e2._v("新增证书类型")])], 1)]), e2._v(" "), a2("div", [a2("el-table", { attrs: { "header-cell-style": { background: "#eef1f6", color: "#606266" }, data: e2.tableData, align: "center", border: "" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "100", 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", "min-width": "200", label: "证书编号", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(t3.row.classifyNo || "-"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "证书名称", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(t3.row.name || "-"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "发证单位" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(t3.row.releaseUnit || "-"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "创建来源" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(1 === t3.row.source ? "CT cloud" : "企业"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "版本号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s("V" + t3.row.edition || false))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "应用人数" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(t3.row.relMemberNum || "-"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "200", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(e2._s(0 == t3.row.isDelete ? "正常" : "已删除"))];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", width: "120", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [1 != t3.row.source ? a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
return e2.detailView("edit", t3.row);
} } }, [e2._v("编辑")]) : e2._e(), e2._v(" "), 0 == t3.row.isDelete ? a2("el-button", { attrs: { type: "text", disabled: t3.row.relMemberNum > 0 }, on: { click: function(a3) {
return e2.deleteClick(t3.row);
} } }, [e2._v("删除")]) : e2._e(), e2._v(" "), 1 == t3.row.isDelete ? a2("el-button", { attrs: { type: "text", disabled: t3.row.relMemberNum > 0 }, on: { click: function(a3) {
return e2.resetClick(t3.row);
} } }, [e2._v("恢复")]) : e2._e()];
} }]) })], 1)], 1), e2._v(" "), a2("div", { staticClass: "paginationSet" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 30, 50, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)])], 1), e2._v(" "), a2("el-dialog", { attrs: { title: e2.title, visible: e2.addVisible, width: "30%", "close-on-click-modal": false, "close-on-press-escape": false }, on: { "update:visible": function(t3) {
e2.addVisible = t3;
} } }, [a2("div", [a2("el-form", { ref: "addForm", attrs: { model: e2.addForm, "label-width": "80px" } }, [a2("el-form-item", { attrs: { label: "证书名称", rules: { required: true, message: "请输入证书名称", trigger: "blur" }, prop: "name" } }, [a2("el-input", { attrs: { placeholder: "请输入证书名称", clearable: "" }, model: { value: e2.addForm.name, callback: function(t3) {
e2.$set(e2.addForm, "name", t3);
}, expression: "addForm.name" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "发证单位", rules: { required: true, message: "请输入发证单位", trigger: "blur" }, prop: "releaseUnit" } }, [a2("el-input", { attrs: { placeholder: "请输入发证单位", clearable: "" }, model: { value: e2.addForm.releaseUnit, callback: function(t3) {
e2.$set(e2.addForm, "releaseUnit", t3);
}, expression: "addForm.releaseUnit" } })], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { on: { click: function(t3) {
e2.addVisible = false;
} } }, [e2._v("取 消")]), e2._v(" "), "add" == e2.formbtn ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
return e2.addFormPost("addForm");
} } }, [e2._v("确 定")]) : e2._e(), e2._v(" "), "edit" == e2.formbtn ? a2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
return e2.editFormPost("addForm");
} } }, [e2._v("保 存")]) : e2._e()], 1)], 1)], 1)])], 1);
}, w = [], x = { data: function() {
return { is_show: true, height: 80, addVisible: false, total: 0, title: "新增证书类型", query: { companyId: "", pageNumber: 1, pageSize: 10, name: "", classifyNo: "", releaseUnit: "", isDelete: "" }, formbtn: "add", addForm: { companyId: "", name: "", releaseUnit: "" }, tableData: [] };
}, mounted: function() {
this.addForm.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.getList();
}, methods: { getList: function() {
var e2 = this;
Object(l["c"])(this.query).then((function(t2) {
e2.tableData = t2.data.records, e2.total = t2.data.rowsCount;
}));
}, detailView: function(e2, t2) {
var a2 = this;
this.addVisible = true, this.formbtn = e2, "edit" == e2 ? (this.title = "编辑证书类型", this.$nextTick((function() {
a2.$refs["addForm"].resetFields();
var e3 = Object.assign({}, t2);
a2.addForm = e3;
}))) : (this.title = "新增证书类型", this.$nextTick((function() {
a2.$refs["addForm"].resetFields();
})));
}, addFormPost: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(e3) {
e3 && Object(l["a"])(t2.addForm).then((function(e4) {
t2.$message({ type: "success", message: "添加成功!" }), t2.addVisible = false, t2.onSearch();
}));
}));
}, editFormPost: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(e3) {
e3 && Object(l["f"])(t2.addForm).then((function(e4) {
t2.$message({ type: "success", message: "编辑成功!" }), t2.addVisible = false, t2.onSearch();
}));
}));
}, onSearch: function() {
this.query.pageNumber = 1, this.getList();
}, resetForm: function(e2) {
this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getList();
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.query.pageNumber = 1, this.getList();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getList();
}, upAndDown: function() {
this.is_show ? this.$refs.box.style.height = "80px" : this.$refs.box.style.height = this.height, this.is_show = !this.is_show;
}, getRealHeight: function() {
this.$nextTick((function() {
this.height = this.$refs.form_box.offsetHeight + "px", this.$refs.box.style.height = this.height;
}));
}, deleteClick: function(e2) {
var t2 = this;
this.$confirm("此操作将移除该证书类型, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
Object(l["b"])({ id: e2.id }).then((function(e3) {
t2.$message({ message: "移除成功", type: "success" }), t2.onSearch();
}));
}));
}, resetClick: function(e2) {
var t2 = this;
this.$confirm("此操作将恢复该证书类型, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
Object(l["d"])({ id: e2.id }).then((function(e3) {
t2.$message({ message: "恢复成功", type: "success" }), t2.onSearch();
}));
}));
}, asyncCertificateType: function() {
var e2 = this, t2 = { companyId: this.query.companyId };
Object(l["e"])(t2).then((function(t3) {
0 === t3.code ? (e2.$message({ message: "同步成功", type: "success" }), e2.onSearch()) : e2.$message({ message: "同步成功", type: "error" });
}));
} } }, O = x, I = Object(b["a"])(O, k, w, false, null, "2bfdd6bb", null), S = I.exports, q = { components: { qualificationIndex: C, certificateType: S }, data: function() {
return { activeName: "qualificationIndex" };
}, mounted: function() {
}, methods: { handleClick: function(e2, t2) {
console.log(e2, t2);
} } }, N = q, F = (a("7615"), Object(b["a"])(N, n, r, false, null, "45158820", null));
t["default"] = F.exports;
}, f7c9: function(e, t, a) {
"use strict";
a("4d8a");
} }]);