1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1baac6f9"],{"07a9":function(e,t,a){"use strict";a("52d1")},"25f0":function(e,t,a){"use strict";var n=a("6eeb"),r=a("825a"),i=a("d039"),l=a("ad6d"),o="toString",s=RegExp.prototype,u=s[o],c=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=o;(c||d)&&n(RegExp.prototype,o,(function(){var e=r(this),t=String(e.source),a=e.flags,n=String(void 0===a&&e instanceof RegExp&&!("flags"in s)?l.call(e):a);return"/"+t+"/"+n}),{unsafe:!0})},"2ca1":function(e,t,a){},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[];a("a9e3");Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var n=o(),r=e-n,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var o=Math.easeInOutQuad(u,n,r,t);l(o),u<t?i(e):a&&"function"===typeof a&&a()};c()}var u={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},c=u,d=(a("c799"),a("2877")),m=Object(d["a"])(c,n,r,!1,null,"07f7dac8",null);t["a"]=m.exports},4834:function(e,t,a){"use strict";a.d(t,"l",(function(){return r})),a.d(t,"y",(function(){return i})),a.d(t,"A",(function(){return l})),a.d(t,"v",(function(){return o})),a.d(t,"o",(function(){return s})),a.d(t,"m",(function(){return u})),a.d(t,"w",(function(){return c})),a.d(t,"i",(function(){return d})),a.d(t,"h",(function(){return m})),a.d(t,"x",(function(){return p})),a.d(t,"D",(function(){return f})),a.d(t,"N",(function(){return g})),a.d(t,"f",(function(){return h})),a.d(t,"p",(function(){return b})),a.d(t,"q",(function(){return v})),a.d(t,"z",(function(){return y})),a.d(t,"B",(function(){return _})),a.d(t,"C",(function(){return x})),a.d(t,"j",(function(){return w})),a.d(t,"g",(function(){return S})),a.d(t,"b",(function(){return k})),a.d(t,"s",(function(){return C})),a.d(t,"r",(function(){return O})),a.d(t,"P",(function(){return j})),a.d(t,"O",(function(){return $})),a.d(t,"K",(function(){return T})),a.d(t,"H",(function(){return N})),a.d(t,"c",(function(){return A})),a.d(t,"I",(function(){return D})),a.d(t,"J",(function(){return P})),a.d(t,"u",(function(){return L})),a.d(t,"F",(function(){return z})),a.d(t,"a",(function(){return B})),a.d(t,"e",(function(){return I})),a.d(t,"E",(function(){return E})),a.d(t,"G",(function(){return F})),a.d(t,"k",(function(){return q})),a.d(t,"n",(function(){return M})),a.d(t,"d",(function(){return R})),a.d(t,"L",(function(){return V})),a.d(t,"M",(function(){return W})),a.d(t,"t",(function(){return U}));a("99af");var n=a("b775");function r(e){return Object(n["a"])({url:"/admin/auth/getAdminListNew",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/admin/auth/doGetAdmins",method:"post",data:e})}function l(){return Object(n["a"])({url:"/admin/auth/getAdminlist",method:"post"})}function o(){return Object(n["a"])({url:"/admin/areaCode/getProvince",method:"get",params:{}})}function s(e){return Object(n["a"])({url:"/admin/areaCode/getCity",method:"get",params:{areaCodeId:e}})}function u(e){return Object(n["a"])({url:"/admin/areaCode/getArea",method:"get",params:{areaCodeId:e}})}function c(e){return Object(n["a"])({url:"/admin/areaCode/getStreet",method:"get",params:{areaCodeId:e}})}function d(e){return Object(n["a"])({url:"/admin/auth/doEditAdmin",method:"post",data:e})}function m(e){return Object(n["a"])({url:"/admin/auth/doDeleteAdmin",method:"delete",params:{id:e}})}function p(e){return Object(n["a"])({url:"/admin/tag/getList",method:"get",params:{provinceId:e||null}})}function f(e){return Object(n["a"])({url:"/admin/tag/insert",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/admin/tag/update",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/admin/tag/delete",method:"get",params:{tagId:e}})}function b(e){return Object(n["a"])({url:"/admin/face/getContextById",method:"get",params:{adminId:e}})}function v(e){return Object(n["a"])({url:"/admin/face/getContextByWhiteId",method:"get",params:{id:e}})}function y(e){return Object(n["a"])({url:"/admin/face/getUserListFrom",method:"get",params:e})}function _(e){return Object(n["a"])({url:"/admin/face/getVisitorListFrom",method:"get",params:{id:e}})}function x(e){return Object(n["a"])({url:"/admin/face/getWhiteListFrom",method:"get",params:{id:e}})}function w(){return Object(n["a"])({url:"/admin/userWhitelis/doGetWhiteExcel",method:"get",responseType:"blob",params:{}})}function S(e){return Object(n["a"])({url:"/admin/userVisitorList/deleteVisitor",method:"get",params:{id:e}})}function k(e){return Object(n["a"])({url:"/admin/userVisitorList/addSingle",method:"get",params:{id:e}})}function C(e){return Object(n["a"])({url:"/admin/userVisitorList/getDetailPageList",method:"post",data:e})}function O(e){return Object(n["a"])({url:"/admin/userVisitorList/getDetailInfo/".concat(e),method:"get"})}function j(e){return Object(n["a"])({url:"/admin/userWhitelis/userWhitelistExcelOut",method:"post",data:e})}function $(e){return Object(n["a"])({url:"/admin/userVisitorList/userVisitorlistExcelOut",method:"post",data:e})}function T(e){return Object(n["a"])({url:"/admin/auth/saveEnterpriseAccount",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/admin/auth/queryAdminById/".concat(e),method:"get"})}function A(e,t){return Object(n["a"])({url:"/admin/auth/audit/".concat(e,"/").concat(t),method:"post"})}function D(e){return Object(n["a"])({url:"/admin/auth/queryEnterpriseAccount",method:"get"})}function P(e){return Object(n["a"])({url:"/admin/auth/queryPlaceInfos/".concat(e),method:"get"})}function L(e){return Object(n["a"])({url:"/admin/privateArea/getPrivateAreaList",method:"get",params:{adminId:e}})}function z(e){return Object(n["a"])({url:"/admin/privateArea/privateAreaPageList",method:"post",data:e})}function B(e){return Object(n["a"])({url:"/admin/privateArea/addOrUpdatePrivateArea",method:"post",data:e})}function I(e){return Object(n["a"])({url:"admin/privateArea/deletePrivateArea",method:"get",params:{privateAreaId:e}})}function E(e){return Object(n["a"])({url:"/admin/privateArea/privateAreaDevicePageList",method:"post",data:e})}function F(e){return Object(n["a"])({url:"/admin/privateArea/privateAreaWhitelistPageList",method:"post",data:e})}function q(e){return Object(n["a"])({url:"/admin/auth/punch/field-options",method:"get",params:{}})}function M(e){return Object(n["a"])({url:"/autoTaskInfo/getByPage",method:"post",data:e})}function R(e){return Object(n["a"])({url:"/autoTaskInfo/cancelTask",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post",params:{taskId:e}})}function V(e){return Object(n["a"])({url:"/systemNotice/edit",method:"post",data:e})}function W(e){return Object(n["a"])({url:"/systemNotice/getNotice",method:"post",data:e})}function U(e){return Object(n["a"])({url:"/admin/auth/getPlaceAreas",method:"get",params:{}})}},"52d1":function(e,t,a){},8806:function(e,t,a){"use strict";a("2ca1")},c49a:function(e,t,a){},c799:function(e,t,a){"use strict";a("c49a")},e24b:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.create}},[e._v("添加企业")]),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入账号名称"},model:{value:e.page.data.username,callback:function(t){e.$set(e.page.data,"username",t)},expression:"page.data.username"}}),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入姓名"},model:{value:e.page.data.name,callback:function(t){e.$set(e.page.data,"name",t)},expression:"page.data.name"}}),a("el-input",{staticClass:"margin-left input",attrs:{placeholder:"请输入手机号"},model:{value:e.page.data.phone,callback:function(t){e.$set(e.page.data,"phone",t)},expression:"page.data.phone"}}),a("el-button",{staticClass:"margin-left",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.fetchData}},[e._v("搜索")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table_form",staticClass:"table",attrs:{data:e.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"序号",align:"center",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.indexMethod(t.$index))+" ")]}}])}),a("el-table-column",{attrs:{label:"账号名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.username))+" ")]}}])}),a("el-table-column",{attrs:{label:"管理员姓名",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("matchNull")(t.row.name)))])]}}])}),a("el-table-column",{attrs:{label:"管理员手机号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.phone))+" ")]}}])}),a("el-table-column",{attrs:{label:"详细地址",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("matchNull")(t.row.address))+" ")]}}])}),a("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.reviewStatus?a("el-tag",{attrs:{effect:"plain",type:"success"}},[e._v("已通过")]):e._e(),1==t.row.reviewStatus?a("el-tag",{attrs:{effect:"plain",type:"warning"}},[e._v("已拒绝")]):e._e(),0==t.row.reviewStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(a){return a.stopPropagation(),e.audit(t.row)}}},[e._v("审核")]):e._e()]}}])}),e.codeType.indexOf("0")>-1?a("el-table-column",{attrs:{label:"企业通用码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:t.row.adminDetail.buildingCode,"preview-src-list":[t.row.adminDetail.buildingCode]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e._v(" "+e._s(t.row.adminDetail.buildingCode?"加载失败":"暂无照片")+" ")])])]}}],null,!1,1035738954)}):e._e(),e.codeType.indexOf("1")>-1?a("el-table-column",{attrs:{label:"企业员工码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"70px",height:"70px"},attrs:{src:t.row.adminDetail.buildingRegularCode,"preview-src-list":[t.row.adminDetail.buildingRegularCode]}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e._v(" "+e._s(t.row.adminDetail.buildingRegularCode?"加载失败":"暂无照片")+" ")])])]}}],null,!1,1838099952)}):e._e(),a("el-table-column",{attrs:{align:"center",prop:"",label:"操作区",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return e.deleteUser(t.row.adminId)}}},[e._v("删除")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.update(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.detail(t.row)}}},[e._v("详情")])]}}])})],1),e.showDialog?a("addEnterprise",{attrs:{showDialog:e.showDialog,dialogTitle:e.dialogTitle,updateList:e.updateList},on:{closeDialog:e.closeDialog}}):e._e(),a("detail",{attrs:{detailDialog:e.detailDialog,list:e.detailRow},on:{dialogVisible:function(t){e.detailDialog=!1}}}),a("pagination",{attrs:{total:e.total,page:e.page.pageNum,limit:e.page.pageSize},on:{"update:page":function(t){return e.$set(e.page,"pageNum",t)},"update:limit":function(t){return e.$set(e.page,"pageSize",t)},pagination:e.fetchData}})],1)},r=[],i=(a("d3b7"),a("25f0"),a("4834")),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.dialogTitle,width:"1200px",visible:e.showDialog,"before-close":e.cancel,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showDialog=t}}},["添加"===e.dialogTitle?a("el-steps",{attrs:{active:e.active-0,"finish-status":"success"}},[a("el-step",{attrs:{title:"基本信息",icon:"el-icon-warning-outline"}}),a("el-step",{attrs:{title:"补充信息",icon:"el-icon-more"}})],1):a("el-tabs",{attrs:{"before-leave":e.leaveTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"0"}}),a("el-tab-pane",{attrs:{label:"补充信息",name:"1"}})],1),0==e.active?a("el-form",{ref:"form",staticClass:"marTop",attrs:{model:e.form,rules:e.rules,"label-width":"130px","label-position":"right"}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"账号名称",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号名称(企业简称)"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username","string"===typeof t?t.trim():t)},expression:"form.username"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{"show-password":""},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password","string"===typeof t?t.trim():t)},expression:"form.password"}})],1)],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"管理员姓名",prop:"nickname"}},[a("el-input",{model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname","string"===typeof t?t.trim():t)},expression:"form.nickname"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"管理人手机号",prop:"phone"}},[a("el-input",{attrs:{maxlength:"11","show-word-limit":""},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone","string"===typeof t?t.trim():t)},expression:"form.phone"}})],1)],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"企业全称",prop:"enterpriseFullName"}},[a("el-input",{model:{value:e.form.enterpriseFullName,callback:function(t){e.$set(e.form,"enterpriseFullName","string"===typeof t?t.trim():t)},expression:"form.enterpriseFullName"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"详细地址",prop:"address"}},[a("el-input",{model:{value:e.form.address,callback:function(t){e.$set(e.form,"address","string"===typeof t?t.trim():t)},expression:"form.address"}})],1)],1),a("el-form-item",{attrs:{label:"是否可被搜索",prop:"isCanSearch"}},[a("el-radio-group",{model:{value:e.form.isCanSearch,callback:function(t){e.$set(e.form,"isCanSearch",t)},expression:"form.isCanSearch"}},[a("el-radio",{attrs:{label:1}},[e._v("是")]),a("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1)],1):e._e(),1==e.active?a("el-form",{ref:"form",staticClass:"marTop",attrs:{model:e.form,rules:e.rules,"label-width":"120px","label-position":"right"}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"实际控制人姓名",prop:"actualName"}},[a("el-input",{model:{value:e.form.actualName,callback:function(t){e.$set(e.form,"actualName","string"===typeof t?t.trim():t)},expression:"form.actualName"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"实际控制人电话",prop:"actualPhone"}},[a("el-input",{attrs:{maxlength:"11","show-word-limit":""},model:{value:e.form.actualPhone,callback:function(t){e.$set(e.form,"actualPhone","string"===typeof t?t.trim():t)},expression:"form.actualPhone"}})],1)],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"公司代码",prop:"companyCode"}},[a("el-input",{model:{value:e.form.companyCode,callback:function(t){e.$set(e.form,"companyCode","string"===typeof t?t.trim():t)},expression:"form.companyCode"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"公司法人",prop:"legalPerson"}},[a("el-input",{model:{value:e.form.legalPerson,callback:function(t){e.$set(e.form,"legalPerson","string"===typeof t?t.trim():t)},expression:"form.legalPerson"}})],1)],1),a("el-form-item",{attrs:{label:"主营范围",prop:"mainBusinessScope"}},[a("el-input",{attrs:{type:"textarea",rows:2,maxlength:"200","show-word-limit":""},model:{value:e.form.mainBusinessScope,callback:function(t){e.$set(e.form,"mainBusinessScope","string"===typeof t?t.trim():t)},expression:"form.mainBusinessScope"}})],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"注册资金",prop:"registeredCapital"}},[a("el-input",{model:{value:e.form.registeredCapital,callback:function(t){e.$set(e.form,"registeredCapital","string"===typeof t?t.trim():t)},expression:"form.registeredCapital"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"注册地址",prop:"registrationAddress"}},[a("el-input",{model:{value:e.form.registrationAddress,callback:function(t){e.$set(e.form,"registrationAddress","string"===typeof t?t.trim():t)},expression:"form.registrationAddress"}})],1)],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"注册时间",prop:"registrationTimeStr"}},[a("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:e.form.registrationTimeStr,callback:function(t){e.$set(e.form,"registrationTimeStr",t)},expression:"form.registrationTimeStr"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"员工人数",prop:"employeesNumber"}},[a("el-select",{staticClass:"margin-left input",attrs:{placeholder:"请选择员工人数",filterable:"",clearable:""},model:{value:e.form.employeesNumber,callback:function(t){e.$set(e.form,"employeesNumber",t)},expression:"form.employeesNumber"}},e._l(e.employeesNum,(function(e){return a("el-option",{key:e.name,attrs:{label:e.name,value:e.name}})})),1)],1)],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"租赁楼幢",prop:"leaseBuilding"}},[a("el-input",{model:{value:e.form.leaseBuilding,callback:function(t){e.$set(e.form,"leaseBuilding","string"===typeof t?t.trim():t)},expression:"form.leaseBuilding"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"租赁楼层",prop:"leaseFloor"}},[a("el-input",{model:{value:e.form.leaseFloor,callback:function(t){e.$set(e.form,"leaseFloor","string"===typeof t?t.trim():t)},expression:"form.leaseFloor"}})],1)],1),a("div",{staticClass:"flex"},[a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"租赁房间号",prop:"roomNumber"}},[a("el-input",{model:{value:e.form.roomNumber,callback:function(t){e.$set(e.form,"roomNumber","string"===typeof t?t.trim():t)},expression:"form.roomNumber"}})],1),a("el-form-item",{staticStyle:{flex:"0.5"},attrs:{label:"租赁有效期至",prop:"leaseTermStr"}},[a("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:e.form.leaseTermStr,callback:function(t){e.$set(e.form,"leaseTermStr",t)},expression:"form.leaseTermStr"}})],1)],1)],1):e._e(),e.active<1&&"添加"===e.dialogTitle?a("el-button",{staticClass:"float",attrs:{type:"primary"},on:{click:e.next}},[e._v("下一步")]):e._e(),e.active>0&&"添加"===e.dialogTitle?a("el-button",{staticClass:"float",attrs:{type:"primary",plain:""},on:{click:e.step}},[e._v("上一步")]):e._e(),1==e.active?a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handleSure}},[e._v("确 定")])],1):e._e()],1)],1)},o=[],s=(a("c24f"),{name:"",components:{},props:{dialogTitle:{type:String},showDialog:{type:Boolean},updateList:{type:Object}},data:function(){return{isOpenPrivateArea:this.$store.getters.isOpenPrivateArea,active:"0",adminId:null,form:{username:null,password:null,nickname:null,phone:null,enterpriseFullName:null,address:null,actualName:null,actualPhone:null,mainBusinessScope:null,companyCode:null,legalPerson:null,registeredCapital:null,registrationAddress:null,registrationTimeStr:null,employeesNumber:null,leaseBuilding:null,leaseFloor:null,roomNumber:null,leaseTermStr:null,isOpenPrivateArea:1,isCanSearch:1},rules:{username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{pattern:/^(((?=.*\d)(?=.*[a-z])(?=.*[A-Z]))|((?=.*\d)(?=.*[a-z])(?=.*[~!@#$%^&*]))|((?=.*\d)(?=.*[A-Z])(?=.*[~!@#$%^&*]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*]))|((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&*]))).{10,32}$/,message:"必须大小写字母、数字、特殊字符,4种组合中至少满足3种,且密码长度在10-32位之间"}],nickname:[{required:!0,message:"请输入管理员姓名",trigger:"blur"}],phone:[{required:!0,message:"请输入管理人手机号",trigger:"blur"},{pattern:/^1[3-9]\d{9}$/,message:"手机号格式错误"}],enterpriseFullName:[{required:!0,message:"请输入企业全称",trigger:"blur"}],enterpriseSimpleName:[{required:!0,message:"请输入企业简称",trigger:"blur"}]},employeesNum:[{name:"1-50人"},{name:"50-100人"},{name:"100-500人"},{name:"500-1000人"},{name:"1000人以上"}]}},created:function(){"编辑"===this.dialogTitle&&(this.form=Object.assign(this.form,this.updateList))},methods:{step:function(){this.active--},next:function(){var e=this;this.$refs["form"].validate((function(t){t&&e.active++>2&&(e.active=0)}))},cancel:function(e){this.$emit("closeDialog"),this.$refs["form"].clearValidate()},handleSure:function(){var e=this;if("编辑"==this.dialogTitle&&!this.form.password)return this.$message.error("请填写基本信息中的密码");Object(i["K"])(this.form).then((function(t){e.$emit("closeDialog",1),e.$message({type:"success",message:"".concat(e.dialogTitle,"成功!")})}))},leaveTab:function(e,t){}},computed:{},watch:{},mounted:function(){}}),u=s,c=(a("07a9"),a("2877")),d=Object(c["a"])(u,l,o,!1,null,"e857d534",null),m=d.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"详情",width:"1200px","destroy-on-close":"",visible:e.detailDialog,"before-close":e.cancel},on:{"update:visible":function(t){e.detailDialog=t}}},[e.list?a("el-descriptions",{attrs:{column:2,border:"",contentStyle:e.CS,"label-style":e.LS}},[a("el-descriptions-item",{attrs:{label:"账号名称"}},[e._v(e._s(e.list.username))]),a("el-descriptions-item",{attrs:{label:"管理员姓名"}},[e._v(e._s(e.list.nickname))]),a("el-descriptions-item",{attrs:{label:"管理员手机号"}},[e._v(e._s(e.list.phone))]),a("el-descriptions-item",{attrs:{label:"企业全称"}},[e._v(e._s(e.list.enterpriseFullName))]),a("el-descriptions-item",{attrs:{label:"详细地址"}},[e._v(e._s(e.list.address))]),a("el-descriptions-item",{attrs:{label:"实际控制人姓名"}},[e._v(e._s(e.list.actualName))]),a("el-descriptions-item",{attrs:{label:"实际控制人电话"}},[e._v(e._s(e.list.actualPhone))]),a("el-descriptions-item",{attrs:{label:"公司代码"}},[e._v(e._s(e.list.companyCode))]),a("el-descriptions-item",{attrs:{label:"公司法人"}},[e._v(e._s(e.list.legalPerson))]),a("el-descriptions-item",{attrs:{label:"主营范围"}},[e._v(e._s(e.list.mainBusinessScope))]),a("el-descriptions-item",{attrs:{label:"注册资金"}},[e._v(e._s(e.list.registeredCapital))]),a("el-descriptions-item",{attrs:{label:"注册地址"}},[e._v(e._s(e.list.registrationAddress))]),a("el-descriptions-item",{attrs:{label:"注册时间"}},[e._v(e._s(e.list.registrationTime))]),a("el-descriptions-item",{attrs:{label:"员工人数"}},[e._v(e._s(e.list.employeesNumber))]),a("el-descriptions-item",{attrs:{label:"租赁楼幢"}},[e._v(e._s(e.list.leaseBuilding))]),a("el-descriptions-item",{attrs:{label:"租赁楼层"}},[e._v(e._s(e.list.leaseFloor))]),a("el-descriptions-item",{attrs:{label:"租赁房间号"}},[e._v(e._s(e.list.roomNumber))]),a("el-descriptions-item",{attrs:{label:"租赁有效期至"}},[e._v(e._s(e.list.leaseTerm))])],1):e._e()],1)],1)},f=[],g={name:"",components:{},props:{list:{type:Object},detailDialog:{type:Boolean}},data:function(){return{CS:{"min-width":"250px","word-break":"break-all"},LS:{"text-align":"center",height:"40px","min-width":"110px","word-break":"keep-all"}}},methods:{cancel:function(){this.$emit("dialogVisible")}},computed:{},watch:{},created:function(){},mounted:function(){}},h=g,b=Object(c["a"])(h,p,f,!1,null,"216a1e34",null),v=b.exports,y=a("333d"),_={name:"",components:{addEnterprise:m,detail:v,Pagination:y["a"]},filters:{matchNull:function(e){return e||"未填写"}},data:function(){return{codeType:this.$store.getters.codeType,list:[],listLoading:!1,dialogTitle:"添加",showDialog:!1,updateList:null,detailRow:null,detailDialog:!1,page:{data:{username:null,name:null,phone:null},pageNum:1,pageSize:10},total:0}},methods:{fetchData:function(){var e=this;Object(i["y"])(this.page).then((function(t){e.list=t.data.list,e.total=t.data.total,e.listLoading=!1}))},deleteUser:function(e){var t=this;this.$confirm("确定要删除此企业账号吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(i["h"])(e).then((function(e){t.fetchData(),t.$message({type:"success",message:"删除成功!"})}))}))},create:function(){this.showDialog=!0,this.dialogTitle="添加"},update:function(e){var t=this;Object(i["H"])(e.adminId).then((function(e){t.updateList=e.data,t.dialogTitle="编辑",t.showDialog=!0}))},detail:function(e){var t=this;Object(i["H"])(e.adminId).then((function(e){t.detailRow=e.data,t.detailDialog=!0}))},audit:function(e){var t=this;this.$confirm("请选择","提示",{confirmButtonText:"同意",cancelButtonText:"拒绝",type:"warning",center:!0,showClose:!1,closeOnClickModal:!1}).then((function(){Object(i["c"])(e.adminId,2).then((function(e){t.fetchData(),t.$message({type:"success",message:"审核通过!"})}))})).catch((function(){Object(i["c"])(e.adminId,1).then((function(e){t.fetchData(),t.$message({type:"success",message:"驳回成功!"})}))}))},closeDialog:function(e){e&&this.fetchData(),this.showDialog=!1},saveEnterpriseAccount:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this;saveEnterpriseAccount().then((function(t){e.fetchData(),e.$message.success("操作成功!")}))})),indexMethod:function(e){return(this.page.pageNum-1)*this.page.pageSize+e+1}},computed:{},watch:{},created:function(){this.fetchData()},mounted:function(){}},x=_,w=(a("8806"),Object(c["a"])(x,n,r,!1,null,"15ababf7",null));t["default"]=w.exports}}]);
|