Commit dc6d8fcd by 无尘

feat: 我的顾客介绍,增加云日报

parent 74a8ad8f
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.b9ea0986b2472ab36f72ef34e57ae6ee.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.ae782a5a3dab8ede4c0a.js></script><script type=text/javascript src=./static/js/vendor.91920afd2c3be1b535d6.js></script><script type=text/javascript src=./static/js/app.277431a77d1b675f4b1e.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.eb20d4e58909b601a2e90d16db081d1c.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.6736bcf73831714588d0.js></script><script type=text/javascript src=./static/js/vendor.91920afd2c3be1b535d6.js></script><script type=text/javascript src=./static/js/app.a09f4d066b10942b44da.js></script></body></html>
\ No newline at end of file
webpackJsonp([10],{Bpxv:function(a,t){a.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAACuCAMAAACoXtf9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUxpcVSn/nW6/8nk/63T/2Gt/5PH/8nj/8rk/8rk/2y0/5/N/4XB/0Kf/X+9/V2o+Mrk/4K58SiU/ovD/srl/8nj/0mf+crl/1Gm/yiU/ieS+srl/y+U+CaS+hOI+cHg/8nj/73Z/yCO+SiT/ieU/Vqs/jGX/CWQ+SSN9MXi/7/d/yeQ+iqU/mCv/1+v/7jb/6nR/srl/wKI/8nk/2Cu/9nq/8nk/xiQ/ymV/ymU/iiU/iyW/lqs/tXq/2Gx/yuV/WKx/z2d/kGf/lOp/mKx/yqW/gt432Kx/2Gw/5bI/8vm/5zP/2Cu/wp23mGw/12u/yqK6IK//1Sq/lqt/2Ky/wp330qm/zqd/1aq/UOh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MmWvmQQ3AeqQN/Q5B/9KpaxdaYg4b17zAqBpuYntNjHR0y92cJHI0Ag9vtVZ5KvSnk9DeC6/1MzY6MxnVNwop6nAN5o5NO7ubsUymkWkU04mfkX675OqEDl5K8a0Rj+qWGM17vyaZ/ye82cjpCQmACi196IS+vApWftdj50or3k+/hk3DoNFuyhS+9NHlvdmW91LLQA35tf3kqJYPGHoEhIZVas1JaP+l12XDfL+p7pQxfB+AeswSev0ndG8UpsTcD6dx3TMmiOhRcytmgv647vLpyL7eqSMXGJ2YjOpuYIja/iefqnSB9vdWyb7A+O9Ty8YsT+yvsfHdY9Drqzp0D1ZHVN1Awy8hqMM9aDyigRa0rzcLUQ6NeQy/RFvF1grFyl/xAwJff+HyuXuU2fBLHt9eMaYd6r9/vz4J4QjaPRzA+npZw76JacMOJCj1oBJ89YW7r/eF6XZgyzZevTPWdyUUGJ2ZMlZV+OqDK1LqWOeeRNGOvvkz0HeVNOaZxp0eW/rgD6bHtoPPQz3TAAAAAElFTkSuQmCC"},CSjr:function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("3Xzz"),i={name:"staff-info-set",data:function(){return{windowH:window.screen.availHeight-500+"px"}},methods:{},components:{}},s={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"staff-info-panel",style:{height:a.windowH}},[e("div",{staticClass:"info-title m-b-50 font-16 color-303133"},[a._v("员工档案信息将应用在以下两个地方")]),a._v(" "),a._m(0),a._v(" "),e("div",{staticClass:"info-btn m-t-60 font-14"},[e("el-button",{attrs:{type:"primary"},on:{click:function(t){a.$router.push("/staffRecordsTemplate")}}},[a._v("进入档案设置")])],1)])},staticRenderFns:[function(){var a=this.$createElement,t=this._self._c||a;return t("div",{staticClass:"flex flex-align-center"},[t("div",{staticClass:"flex-1"},[t("img",{attrs:{src:e("aNcm"),alt:""}}),this._v(" "),t("p",{staticClass:"m-t-20 font-14 color-606266"},[this._v("个人信息页展示")])]),this._v(" "),t("div",{staticClass:"flex-1"},[t("img",{attrs:{src:e("Bpxv"),alt:""}}),this._v(" "),t("p",{staticClass:"m-t-20 font-14 color-606266"},[this._v("员工档案")])])])}]};var r=e("VU/8")(i,s,!1,function(a){e("v1/W")},"data-v-3f2a8238",null).exports,o=e("3E4D"),c=e("Ch4/"),m=e("PI0u"),l=e("P9l9"),u={name:"staff-info-set",data:function(){return{windowH:window.screen.availHeight-500-48+"px",activeName:"",brandList:[],probObj:{probationDay:"",probationMonth:""}}},methods:{handleChange:function(a){},saveSet:Object(m.a)(function(){var a=this;if(""!=a.probObj.probationDay&&""!=a.probObj.probationMonth){var t={day:a.probObj.probationDay,month:a.probObj.probationMonth};Object(l.c)("/haoban-manage-web/enterprise-probation-period-setting.json",t).then(function(a){var t=a.data;1!=t.errorCode?c.a.errorMsg(t):o.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}else a.$message.error({duration:1e3,message:"请设置时间"})},500),getBrandData:function(){var a=this;Object(l.c)("/haoban-manage-web/brand/list",{}).then(function(t){var e=t.data;1!=e.errorCode?c.a.errorMsg(e):e.result&&e.result.length&&(a.brandList=e.result,a.activeName=e.result[0].groupId,a.getStoreAuth(e.result[0].groupId,0))}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getProbData:function(){var a=this;Object(l.c)("/haoban-manage-web/find-enterprise-probation-period",{}).then(function(t){var e=t.data;1!=e.errorCode?c.a.errorMsg(e):e.result&&e.result.length&&(a.probObj=e.result)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getProbData()},components:{}},b={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"staff-prob-panel",style:{height:a.windowH}},[e("div",{staticClass:"depart-cell"},[e("div",{staticClass:"m-t-24"},[e("span",{staticClass:"font-14 color-606266 p-r-12"},[a._v("设置企业试用期时间")]),e("el-input-number",{attrs:{"controls-position":"right",min:0,max:31},on:{change:a.handleChange},model:{value:a.probObj.probationDay,callback:function(t){a.$set(a.probObj,"probationDay",t)},expression:"probObj.probationDay"}}),e("span",{staticClass:"font-14 color-606266 p-l-12"},[a._v(" 天 ")]),e("span",{staticClass:"font-14 color-606266 p-l-12 p-r-12"},[a._v(" + ")]),e("el-input-number",{attrs:{"controls-position":"right",min:0,max:6},on:{change:a.handleChange},model:{value:a.probObj.probationMonth,callback:function(t){a.$set(a.probObj,"probationMonth",t)},expression:"probObj.probationMonth"}}),e("span",{staticClass:"font-14 color-606266 p-l-12"},[a._v("月")])],1),a._v(" "),e("div",{staticClass:"p-l-138 m-t-24"},[e("el-button",{attrs:{type:"primary"},on:{click:a.saveSet}},[a._v("保 存")])],1)])])},staticRenderFns:[]};var p=e("VU/8")(u,b,!1,function(a){e("Ka3U")},"data-v-7451e91e",null).exports,A={name:"fileSet",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"档案设置",path:""}],activeName:"first"}},computed:{},methods:{},mounted:function(){},components:{navCrumb:n.a,staffInfoSet:r,staffProbSet:p}},d={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"fileSet-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath}}),a._v(" "),e("div",{staticClass:"staff-contain-set"},[e("el-tabs",{model:{value:a.activeName,callback:function(t){a.activeName=t},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"档案字段设置",name:"first"}},[e("staffInfoSet")],1),a._v(" "),e("el-tab-pane",{attrs:{label:"试用期时间设置",name:"second"}},[e("staffProbSet")],1)],1)],1),a._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var h=e("VU/8")(A,d,!1,function(a){e("hQDO")},"data-v-f7de2056",null);t.default=h.exports},Ka3U:function(a,t){},aNcm:function(a,t){a.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAADACAMAAADob9thAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUxpcbvf/cnj/y+Y/rTX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tJxPoBBKEowubmtpp1CebhP4TJ0n9nMZGL/dCPigwZ4rlYiALRyDSr/QQCDaw2S+a7hTDIhwCyDkCW++tlzGqjwtfEolmXSYGszDRbPlwg99crbUVy1Mz6ArI60zL8ewSSACAasV7pJxJo743CvUWjyVmdUJ2wOkejWZk2jDQjlqX673WpKm2qQhBL0ubNuZu3bPlTWO7m3NyPGv6YhP4ZppD78ZXDIm0KBPQsLJrc+Vg2JlGfG5LotiXFr++QjQYWsfcwStpIgWg+5oIgpSgJv4oIbOTdd3M3btgwfyN8fgyfLAh4itzfg7dKa8yQeVaMRpMEgj4l+JOtzP4nARa1AYzkY96VyJREIESkNOiRxwiHEWcE7J330VqjXgHds0AaiZYIoIBmshQ6cZgAO4XJiQCLSq01ZilgsvCKI9ZFE29AQlVquTElQ4cndYmbsVA7qyXenKhEaq0hNStDoZNwnvpAAVdkyUXEmxf0KE4pN6SmpmTps1JSDVo1S/F/Yg/RynYfc/EAAAAASUVORK5CYII="},hQDO:function(a,t){},"v1/W":function(a,t){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([12],{SldL:function(e,t){!function(t){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",u="object"==typeof e,c=t.regeneratorRuntime;if(c)u&&(e.exports=c);else{(c=t.regeneratorRuntime=u?e.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",m="executing",d="completed",h={},g={};g[i]=function(){return this};var v=Object.getPrototypeOf,I=v&&v(v(T([])));I&&I!==o&&n.call(I,i)&&(g=I);var y=C.prototype=_.prototype=Object.create(g);x.prototype=y.constructor=C,C.constructor=x,C[l]=x.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},c.awrap=function(e){return{__await:e}},S(L.prototype),L.prototype[s]=function(){return this},c.AsyncIterator=L,c.async=function(e,t,r,o){var n=new L(b(e,t,r,o));return c.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},S(y),y[l]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},c.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach($),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return s.type="throw",s.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),$(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;$(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),h}}}function b(e,t,r,o){var n=t&&t.prototype instanceof _?t:_,a=Object.create(n.prototype),i=new k(o||[]);return a._invoke=function(e,t,r){var o=f;return function(n,a){if(o===m)throw new Error("Generator is already running");if(o===d){if("throw"===n)throw a;return O()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=N(i,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=w(e,t,r);if("normal"===l.type){if(o=r.done?d:p,l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=d,r.method="throw",r.arg=l.arg)}}}(e,r,i),a}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function _(){}function x(){}function C(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function L(e){var t;this._invoke=function(r,o){function a(){return new Promise(function(t,a){!function t(r,o,a,i){var s=w(e[r],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(u).then(function(e){l.value=e,a(l)},i)}i(s.arg)}(r,o,t,a)})}return t=t?t.then(a,a):a()}}function N(e,t){var o=e.iterator[t.method];if(o===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,N(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=w(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},Xxa5:function(e,t,r){e.exports=r("jyFz")},exGp:function(e,t,r){"use strict";t.__esModule=!0;var o,n=r("//Fk"),a=(o=n)&&o.__esModule?o:{default:o};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function o(n,i){try{var s=t[n](i),l=s.value}catch(e){return void r(e)}if(!s.done)return a.default.resolve(l).then(function(e){o("next",e)},function(e){o("throw",e)});e(l)}("next")})}}},"h/6A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("mvHQ"),n=r.n(o),a=r("Xxa5"),i=r.n(a),s=r("//Fk"),l=r.n(s),u=r("exGp"),c=r.n(u),f=r("3Xzz"),p=r("l46T"),m=r("P9l9"),d=r("Ie7z"),h={name:"store-info",components:{navCrumb:f.a,vueSelectStore:d.a,limitInput:p.a},data:function(){var e=this;return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},storeInfo:{storeName:"",storeGroupId:"",imageUrls:[],phoneNumber:"",openTime:"",closeTime:"",shopHours:"",storeType:0,countryId:"",provinceId:"",cityId:"",areaId:"",postAddress:"",longitude:"",latitude:"",location:"",storeArea:"",mangerName:"",storeManagerId:"",managerPhone:"",managerCode:"",maangerSex:"",storeCode:"",storeId:""},areaChainName:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],storeGroupId:[{required:!0,message:"请输选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,r,o){return r&&e.storeInfo.closeTime?o():o(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){if(t)return/^1[34578]\d{9}$/.test(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)?r():r(new Error("联系电话格式不正确"));return r(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,message:"请输入门店代码",trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(e,t,r){if(t)return/^1[34578]\d{9}$/.test(t)?r():r(new Error("手机号码格式不正确"));return r(new Error("请输入手机号码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,r){if(t)return/^\d+(\.\d+)?$/.test(1*t)?r():r(new Error("人均消费只能为非负整数或者小数"));return r()},trigger:"blur"}]}}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.storeGroupId=e[0].label,this.storeInfo.storeGroupId=e[0].id},selected:function(e){this.storeInfo.provinceId=e.province,this.storeInfo.cityId=e.city||"",this.storeInfo.areaId=e.areaId||""},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(m.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this;return c()(i.a.mark(function t(){var r,o,n,a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e,o=new l.a(function(e,t){r.$refs.storeInfo.validate(function(t){t&&e()})}),n=new l.a(function(e,t){r.$refs.storeManager.validate(function(t){t&&e()})}),a=new l.a(function(e,t){r.$refs.storeOperate.validate(function(t){t&&e()})}),l.a.all([o,n,a]).then(function(){r.save()});case 5:case"end":return t.stop()}},t,e)}))()},formatStoreInfo:function(e){var t=this;return c()(i.a.mark(function r(){var o,n,a;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:o=t,n=(e.areaChainName||"").split("/"),o.areaOptions={provinceName:n[0],provinceId:e.provinceId,cityName:n[1],cityId:e.cityId,countryName:n[2],countyId:e.countryId},o.imgs=e.imageUrl?e.imageUrl.split(","):[],a=[],o.imgs.forEach(function(e){a.push({url:e})}),e.imageUrls=a,e.location=e.longitude+","+e.latitude,o.storeInfo=e;case 9:case"end":return r.stop()}},r,t)}))()},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfo.imageUrls=e},deleteImage:function(e){this.storeInfo.imageUrls.splice(e,1)},save:function(){var e=this,t=e.storeInfo.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1];var r=JSON.parse(n()(e.storeInfo)),o=[];e.storeInfo.imageUrls.forEach(function(e){o.push(e.url)}),r.imageUrls=o.join(",");var a=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(m.a)(a,r).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",[r("div",{staticClass:"store-info"},[r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),r("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分组",prop:"storeGroupId"}},[r("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.storeGroupId,callback:function(t){e.$set(e.storeInfo,"storeGroupId",t)},expression:"storeInfo.storeGroupId"}},[r("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),r("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[r("div",{staticClass:"member-upload-image"},[r("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfo.imageUrls,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),r("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340)")])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[r("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[r("el-time-select",{attrs:{editable:!1,placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),r("el-time-select",{attrs:{editable:!1,placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[r("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[r("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),r("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[r("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),r("div",{staticClass:"m-t-15"},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[r("el-input",{staticClass:"m-r-10",model:{value:e.storeInfo.location,callback:function(t){e.$set(e.storeInfo,"location",t)},expression:"storeInfo.location"}}),e._v(" "),r("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank",rel:"nofollow noopener noreferrer"}},[e._v("经纬度测试工具")])],1),e._v(" "),r("el-form-item",{attrs:{prop:"storeCode"}},[r("template",{slot:"label"},[e._v("\n 门店代码\n "),r("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),r("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[r("el-input",{attrs:{disabled:!e.isNew},model:{value:e.storeInfo.managerPhone,callback:function(t){e.$set(e.storeInfo,"managerPhone",t)},expression:"storeInfo.managerPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"店长性别"}},[r("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),r("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[r("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),r("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),r("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"推荐商品"}},[r("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),r("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),r("el-form-item",{attrs:{label:"品牌介绍"}},[r("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),r("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),r("div",{staticClass:"handle-area"},[r("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var v=r("VU/8")(h,g,!1,function(e){r("tV88")},null,null);t.default=v.exports},jyFz:function(e,t,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,a=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=r("SldL"),n)o.regeneratorRuntime=a;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},tV88:function(e,t){}});
\ No newline at end of file
webpackJsonp([13],{BDQR:function(e,t){},LbEI:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJod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VscnaJazEr54UP3VIfADl57R/EFgIuvf3VrmJ5n8knGDhvihncFYZOnvBXMqZPqzksoTdlyCvFx6Jkm0FVojlH0EGNes8ZTC5RDaegwSLmH+hI4yQLt15VVojHLrZwbis7PWblZTzm5ZlGuSZu+jWP7I9pQhuoaYwgk614umG8Ez70GZMDaBkWJ7N04G26DI9t0kiX4ln65ecXWVjVaeKFsww4pWMGqBLPPbOXdyCQy9oJCfSnmdzcQWzhvFj40GdS2poYs57EossQKWofXJJyzwBwz3rP7438i+JZr+twgtZUqumQwh0P9sDsLfhedqQFTDrwpP7Tyx6v/qqzxgBaPLj07KCES/ugpHkjuFKifBqb+4C72Jvk/5ZPAnz7yj1QO3JlwUxNSbEtYFjw6sRmnR33+5fQoWUsmmFiXilMxEQlXHrd8wx/u4EKYx92xgyT9rZVe6F2ElioaInJKbhR218hSCxrW+Heq1NH1JoeEbQ44/GFFmZQJVSppMstJjPOawVWn2OVQyLLhF3xcC9ADxuln2hbEkZTrBIWvENP3d9wbFYuQ1S5Z7/28OFudnjU4CVctC7rMMtezhH4tof7UNxeKRiR9gTs5jiGZ1NFhftvTWH6BOvYQP/bkJC481EBzpY/c1ricNoTlYVAwcN9Swnc+t+W5qFCK57ppof64G07DLgtBmdicgTwPdcnMKP9vz+9sMP08pufZaG6c76s+SdvjSEytQKsGRIrrj064NCht/yULwNbLPHR6bUVYNb05VfH0Tnp6J/WmGFCNzZZ5WbImVoTPPigacrisqui6JxshTJPqNA3X8HVdZ3jN0TWuKjfdkrG3Hh5JBQPjwn0iXUmVj3ZBLfW8kVdexrXLrQxe6oV5jQYk6emP+zy8NK7BdywOIJ5062wT4+qfNRrogqHQBeqjDkt0JurDPpngV5bZdBrJRFlnS3vETuqAPhH2mzxtLzduhTBG9HjeciLz8XCO6wePbQ5tLtp30uHeZyAZko8wjW7xIm/BBgAwTyDjBM754wAAAAASUVORK5CYII="},Y7wY:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAA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Yy13XXbg+vBhuXCZGNjQ3sZybNz9gzxfMULo6miGUiVxpW+AzpQj8YJ5XXLHBtpkZ2bYC07/Ld3Fb25G1jecj6iynazwoRaj1mZSvqamqhVcPJKOp6eHGxrW2a+7OE3UUQlhiu/jQN1zSkNB6e2NhInIl+ZPKqvVwqxO5pIJCE7l+/etdVWPXsGqor/Wd5KsMi8ZXtjt3bKfmDlSeUMVaMtoYNN6Uzi+sCcLw83JssJD+yle+hOWErmtSOUnucp3um65+s61XmMTpd2ym4Xp7exusRRr9IsEeVrkWxJ4S2+4SZln8uf14V5ZxHtJ/9CMfR8/CwReodP3mmlsTS5YZqZ6bmh664T03utrUOnf0A4q4Wov0Z2w2bTM/Ysa999wX2LDbtm0ro2E2RRfJlOxB02k3be9oN977G6yQym1cBB5zTrsbDavIdUl3YFk8i14mZURnFu4B7dRu5qN42H3GATMiUw+k0A5mx0vQjrnAe2hkbZm/ZKvXNDICBArU2S4eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},bZ1Z:function(e,t){},lFAe:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),n=i("gBtx"),l=i.n(n),d=i("mvHQ"),o=i.n(d),c=i("DAYN"),r=i.n(c),f=i("Mk6G"),u={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){var t="",i={};return t=f.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=f.a.getZhLen(this.itemValue),this.childFlag?(i.child=this.childFlag,i.value=this.itemValue,"title"==this.titleFlag&&(i.title=this.titleFlag),"k303"==this.c3Flag&&(i.c3Index=this.c3Index,i.flag=this.c3Flag),void this.$emit("itemInput",i)):"title"==this.titleFlag?(i.value=this.itemValue,i.title=this.titleFlag,void this.$emit("itemInput",i)):"k303"==this.c3Flag?(i.value=this.itemValue,i.flag=this.c3Flag,i.c3Index=this.c3Index,void this.$emit("itemInput",i)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=f.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=f.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return i=t,e.toInput(i);var i}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var p=i("VU/8")(u,m,!1,function(e){i("BDQR")},"data-v-25bcaf42",null).exports,g=i("l46T"),h=i("MJLE"),v=i.n(h),C=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}],I=function(){return C},y=i("3E4D"),x=i("Ch4/"),b=i("P9l9"),N={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:I(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[],qrcodeCase:"",qrcodeNum:""}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},cloneDefine:function(e){},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addItem:function(){},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},checkedChange:function(e,t){},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeRadio:function(e,t,i){},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(b.c)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return y.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");x.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(b.c)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.qrcode(s),void(t.dialogVisible=!0)}x.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},qrcode:function(e){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear());var t={type:"record",data:e};this.qrcodeCase=new v.a("qrcode",{width:210,height:210,text:o()(t)})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(b.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?x.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(b.c)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));x.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===l()(e.fixed),e.isMust=1===l()(e.isMust),e.systemFlag=1===l()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:r.a,AddInput:p,limitInput:g.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},w={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd,clone:e.cloneDefine}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},on:{add:e.addItem},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,n){return s("li",{key:"li"+n,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==n?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,n,t.children)}}},["clerkPhone"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,n,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},on:{change:function(i){e.changeRadio(i,a,t)}},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,n){return[s("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogVisible,expression:"dialogVisible"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[s("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),s("div",{staticClass:"qr-dialog"},[s("div",{staticClass:"qr-dialog__hd"},[s("strong",{staticClass:"qr-dialog__title"},[e._v("预览")]),e._v(" "),s("i",{staticClass:"el-icon-close",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})]),e._v(" "),e._m(1),e._v(" "),s("div",{staticClass:"qr--dialog__ft"})])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qr-dialog__bd"},[t("div",{attrs:{id:"qrcode"}}),this._v(" "),t("div",{staticClass:"qr-dialog__p"},[this._v("请使用好办 APP 扫一扫预览")])])}]};var M=i("VU/8")(N,w,!1,function(e){i("bZ1Z")},"data-v-7701a072",null);t.default=M.exports}});
\ No newline at end of file
webpackJsonp([10],{"3zYh":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("fZjL"),i=r.n(a),s=r("BO1k"),n=r.n(s),o=r("woOf"),l=r.n(o),u=r("mvHQ"),c=r.n(u),m=r("3Xzz"),d=r("l46T"),p=r("//Fk"),g=r.n(p),f=r("Ch4/"),v={name:"single-upload",props:{imgSrc:{type:String,default:""},field:{type:String,default:""},uploadLimit:{type:Number,default:2}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:""}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://www.gicdev.com":e,this.upUrl=t+"/haoban-manage-web/upload-img",this.upUrl},handleAvatarSuccess:function(e,t,r){1==e.errorCode?this.$emit("update:imgSrc",e.result[0].qcloudImageUrl):f.a.errorMsg(e)},beforeAvatarUpload:function(e){var t="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type||"image/gif"===e.type||"image/bmg"===e.type,r=e.size/1024/1024<this.uploadLimit;return r||this.$message.error("上传头像图片大小不能超过 "+this.uploadLimit+"MB!"),t&&r&&new g.a(function(t,r){var a=new FileReader;a.onload=function(e){var r=new Image;r.onload=function(){this.width,this.height;t()},r.src=e.target.result},a.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"single-upload-wrap"},[r("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imgSrc?r("img",{staticClass:"avatar",attrs:{src:e.imgSrc},on:{mouseover:function(t){e.showImage(e.imgSrc)}}}):r("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),"businessCard"==e.field?r("p",{staticClass:"upload-tip w-500"},[e._v("\n 上传营业执照复印件加盖公章,手写“仅用于好办认证”字样;照片搜索信息要求清晰可见,内容真实有效,不得做任何修改;支持jpp、jpeg、bmg、gif、png格式,大小不超过8M。\n ")]):e._e(),e._v(" "),"cardUrl"==e.field?r("p",{staticClass:"upload-tip w-500"},[e._v("\n 支持jpg、jpeg、pdf、bmg、gif格式照片,大小不超过2M,只能上传一张,再次上传覆盖前一张\n ")]):e._e(),e._v(" "),"authUrl"==e.field?r("p",{staticClass:"upload-tip w-500"},[e._v("点击可以"),r("a",{staticClass:"color-1890ff"},[e._v("下载授权书")]),e._v("模板,支持jpg、jpeg、pdf、bmg、gif格式照片,大小不超过2M,只能上传一张,再次上传覆盖前一张")]):e._e(),e._v(" "),r("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[]};var b=r("VU/8")(v,h,!1,function(e){r("c42+")},"data-v-0563e986",null).exports,y=r("3E4D"),F=r("PI0u"),U=r("P9l9"),w={name:"companyCertify",data:function(){return{projectName:"haoban-manage-web",postUrl:"/haoban-manage-web/dict-district-list",navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{enterpriseName:"",region:"",detailAddress:"",businessLicenseNum:"",cardType:"0",businessLicenseUrl:"",cardUrl:"",authUrl:"",authenticationStatus:0,refuseReason:""},rules:{enterpriseName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],detailAddress:[{required:!0,message:"请输入详细地址",trigger:"blur"}],businessLicenseNum:[{required:!0,message:"请输入营业执照注册号",trigger:"blur"}],region:[{required:!0,message:"请选择地区",trigger:"blur"}],cardType:[{required:!0,message:"请选择证件类型",trigger:"blur"}],businessLicenseUrl:[{required:!0,message:"请上传营业执照",trigger:"blur"}],cardUrl:[{required:!0,message:"请上传照片",trigger:"blur"}],authUrl:[{required:!0,message:"请上传授权书",trigger:"blur"}]},areaOptions:{provinceName:"",provinceId:"",cityName:"",cityId:"",countryName:"",countyId:""},baseUrl:""}},computed:{},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{selected:function(e){e.country?(this.ruleForm.region=e,this.ruleForm.areaId=e.areaIdl):this.ruleForm.region=""},submitForm:Object(F.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=JSON.parse(c()(t.ruleForm));t.postSave(r,!0)})},500),postSave:function(e,t){var r=this,a={enterpriseName:e.enterpriseName,enterpriseCode:e.enterpriseCode,provinceId:e.region.province,cityId:e.region.city,areaId:e.region.areaId,detailAddress:e.detailAddress,cardType:e.cardType,cardUrl:e.cardUrl,businessLicenseUrl:e.businessLicenseUrl,businessLicenseNum:e.businessLicenseNum,authUrl:e.authUrl,saveOnly:t};Object(U.b)("/haoban-manage-web/enterprise-authentication/update-authentication",a).then(function(e){var a=e.data;if(1==a.errorCode)return y.a.showmsg("保存成功","success"),void(!1===t&&r.getCompanyInfo());f.a.errorMsg(a)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},submitReview:Object(F.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=JSON.parse(c()(t.ruleForm));t.postSave(r,!1)})},500),postReview:function(){},getCompanyInfo:function(){var e=this;Object(U.c)("/haoban-manage-web/enterprise-authentication/find-detail",{}).then(function(t){var r=t.data;if(1==r.errorCode){var a=!0,s=!1,o=void 0;try{for(var u,c=n()(i()(r.result));!(a=(u=c.next()).done);a=!0){var m=u.value;null!=r.result[m]&&"null"!=r.result[m]||(r.result[m]="")}}catch(e){s=!0,o=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw o}}var d={provinceName:r.result.provinceName,provinceId:r.result.provinceId,cityName:r.result.cityName,cityId:r.result.cityId,countryName:r.result.areaName,countyId:r.result.areaId};return e.areaOptions=d,r.result.region=d,r.result.cardType=String(r.result.cardType),void(e.ruleForm=l()(e.ruleForm,r.result))}f.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getCompanyInfo()},components:{navCrumb:m.a,limitInput:d.a,singleUpload:b}},_={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyCertify-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"企业名称",prop:"enterpriseName"}},[r("limitInput",{attrs:{inputWidth:495,inputValue:e.ruleForm.enterpriseName,holder:"请输入企业名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"enterpriseName",t)}}})],1),e._v(" "),r("el-form-item",{staticClass:"city-area",attrs:{label:"所在地区",prop:"region"}},[r("vue-office-area",{attrs:{projectName:e.projectName,postUrl:e.postUrl,areaOptions:e.areaOptions},on:{selected:e.selected}})],1),e._v(" "),r("el-form-item",{attrs:{label:"详细地址",prop:"detailAddress"}},[r("limitInput",{attrs:{inputWidth:495,inputValue:e.ruleForm.detailAddress,holder:"请输入详细地址",maxLength:40},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"detailAddress",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业执照注册号",prop:"businessLicenseNum"}},[r("limitInput",{attrs:{inputWidth:495,inputValue:e.ruleForm.businessLicenseNum,holder:"请输入营业执照注册号",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"businessLicenseNum",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"证件类型",prop:"cardType"}},[r("div",[r("el-radio",{attrs:{label:"0"},model:{value:e.ruleForm.cardType,callback:function(t){e.$set(e.ruleForm,"cardType",t)},expression:"ruleForm.cardType"}},[e._v("多证合一营业执照(原“注册号”字样,调整为18位的“统一社会信用代码”)")])],1),e._v(" "),r("div",[r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.cardType,callback:function(t){e.$set(e.ruleForm,"cardType",t)},expression:"ruleForm.cardType"}},[e._v("普通营业执照(仍然标识为15位的“注册号”)")])],1)]),e._v(" "),r("el-form-item",{attrs:{label:"营业执照",prop:"businessLicenseUrl"}},[r("single-upload",{attrs:{imgSrc:e.ruleForm.businessLicenseUrl,uploadLimit:8,field:"businessCard"},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"businessLicenseUrl",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手持证件照片",prop:"cardUrl"}},[r("single-upload",{attrs:{imgSrc:e.ruleForm.cardUrl,field:"cardUrl"},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"cardUrl",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"授权书",prop:"authUrl"}},[r("single-upload",{attrs:{imgSrc:e.ruleForm.authUrl,field:"authUrl"},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"authUrl",t)}}})],1),e._v(" "),0!=e.ruleForm.authenticationStatus?r("el-form-item",{staticClass:"status-item",attrs:{label:"状态",prop:"status"}},[1==e.ruleForm.authenticationStatus?r("el-tag",[r("i",{staticClass:"el-icon-loading"}),e._v("审核中")]):e._e(),e._v(" "),2==e.ruleForm.authenticationStatus?r("el-tag",{attrs:{type:"success"}},[r("i",{staticClass:"el-icon-success"}),e._v("审核成功")]):e._e(),e._v(" "),3==e.ruleForm.authenticationStatus?r("el-tag",{attrs:{type:"danger"}},[r("i",{staticClass:"el-icon-error"}),e._v("审核失败")]):e._e(),3==e.ruleForm.authenticationStatus?r("span",{staticClass:"color-606266 error-text"},[e._v(e._s(e.ruleForm.refuseReason))]):e._e()],1):e._e(),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:0!=e.ruleForm.authenticationStatus&&3!=e.ruleForm.authenticationStatus,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v(" 保 存 ")]),r("el-button",{attrs:{disabled:0!=e.ruleForm.authenticationStatus&&3!=e.ruleForm.authenticationStatus,type:"primary"},on:{click:function(t){e.submitReview("ruleForm")}}},[e._v("\n 提交审核\n ")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var S=r("VU/8")(w,_,!1,function(e){r("uyWL")},"data-v-63035075",null);t.default=S.exports},BO1k:function(e,t,r){e.exports={default:r("fxRn"),__esModule:!0}},"c42+":function(e,t){},fxRn:function(e,t,r){r("+tPU"),r("zQR9"),e.exports=r("g8Ux")},g8Ux:function(e,t,r){var a=r("77Pl"),i=r("3fs2");e.exports=r("FeBl").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return a(t.call(e))}},uyWL:function(e,t){}});
\ No newline at end of file
webpackJsonp([13],{"3zYh":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("fZjL"),i=r.n(a),s=r("BO1k"),n=r.n(s),o=r("woOf"),l=r.n(o),u=r("mvHQ"),c=r.n(u),m=r("3Xzz"),d=r("l46T"),p=r("//Fk"),g=r.n(p),f=r("Ch4/"),v={name:"single-upload",props:{imgSrc:{type:String,default:""},field:{type:String,default:""},uploadLimit:{type:Number,default:2}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:""}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://www.gicdev.com":e,this.upUrl=t+"/haoban-manage-web/upload-img",this.upUrl},handleAvatarSuccess:function(e,t,r){1==e.errorCode?this.$emit("update:imgSrc",e.result[0].qcloudImageUrl):f.a.errorMsg(e)},beforeAvatarUpload:function(e){var t="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type||"image/gif"===e.type||"image/bmg"===e.type,r=e.size/1024/1024<this.uploadLimit;return r||this.$message.error("上传头像图片大小不能超过 "+this.uploadLimit+"MB!"),t&&r&&new g.a(function(t,r){var a=new FileReader;a.onload=function(e){var r=new Image;r.onload=function(){this.width,this.height;t()},r.src=e.target.result},a.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"single-upload-wrap"},[r("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imgSrc?r("img",{staticClass:"avatar",attrs:{src:e.imgSrc},on:{mouseover:function(t){e.showImage(e.imgSrc)}}}):r("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),"businessCard"==e.field?r("p",{staticClass:"upload-tip w-500"},[e._v("\n 上传营业执照复印件加盖公章,手写“仅用于好办认证”字样;照片搜索信息要求清晰可见,内容真实有效,不得做任何修改;支持jpp、jpeg、bmg、gif、png格式,大小不超过8M。\n ")]):e._e(),e._v(" "),"cardUrl"==e.field?r("p",{staticClass:"upload-tip w-500"},[e._v("\n 支持jpg、jpeg、pdf、bmg、gif格式照片,大小不超过2M,只能上传一张,再次上传覆盖前一张\n ")]):e._e(),e._v(" "),"authUrl"==e.field?r("p",{staticClass:"upload-tip w-500"},[e._v("点击可以"),r("a",{staticClass:"color-1890ff"},[e._v("下载授权书")]),e._v("模板,支持jpg、jpeg、pdf、bmg、gif格式照片,大小不超过2M,只能上传一张,再次上传覆盖前一张")]):e._e(),e._v(" "),r("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)},staticRenderFns:[]};var b=r("VU/8")(v,h,!1,function(e){r("c42+")},"data-v-0563e986",null).exports,y=r("3E4D"),F=r("PI0u"),U=r("P9l9"),w={name:"companyCertify",data:function(){return{projectName:"haoban-manage-web",postUrl:"/haoban-manage-web/dict-district-list",navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{enterpriseName:"",region:"",detailAddress:"",businessLicenseNum:"",cardType:"0",businessLicenseUrl:"",cardUrl:"",authUrl:"",authenticationStatus:0,refuseReason:""},rules:{enterpriseName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],detailAddress:[{required:!0,message:"请输入详细地址",trigger:"blur"}],businessLicenseNum:[{required:!0,message:"请输入营业执照注册号",trigger:"blur"}],region:[{required:!0,message:"请选择地区",trigger:"blur"}],cardType:[{required:!0,message:"请选择证件类型",trigger:"blur"}],businessLicenseUrl:[{required:!0,message:"请上传营业执照",trigger:"blur"}],cardUrl:[{required:!0,message:"请上传照片",trigger:"blur"}],authUrl:[{required:!0,message:"请上传授权书",trigger:"blur"}]},areaOptions:{provinceName:"",provinceId:"",cityName:"",cityId:"",countryName:"",countyId:""},baseUrl:""}},computed:{},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{selected:function(e){e.country?(this.ruleForm.region=e,this.ruleForm.areaId=e.areaIdl):this.ruleForm.region=""},submitForm:Object(F.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=JSON.parse(c()(t.ruleForm));t.postSave(r,!0)})},500),postSave:function(e,t){var r=this,a={enterpriseName:e.enterpriseName,enterpriseCode:e.enterpriseCode,provinceId:e.region.province,cityId:e.region.city,areaId:e.region.areaId,detailAddress:e.detailAddress,cardType:e.cardType,cardUrl:e.cardUrl,businessLicenseUrl:e.businessLicenseUrl,businessLicenseNum:e.businessLicenseNum,authUrl:e.authUrl,saveOnly:t};Object(U.b)("/haoban-manage-web/enterprise-authentication/update-authentication",a).then(function(e){var a=e.data;if(1==a.errorCode)return y.a.showmsg("保存成功","success"),void(!1===t&&r.getCompanyInfo());f.a.errorMsg(a)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},submitReview:Object(F.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=JSON.parse(c()(t.ruleForm));t.postSave(r,!1)})},500),postReview:function(){},getCompanyInfo:function(){var e=this;Object(U.c)("/haoban-manage-web/enterprise-authentication/find-detail",{}).then(function(t){var r=t.data;if(1==r.errorCode){var a=!0,s=!1,o=void 0;try{for(var u,c=n()(i()(r.result));!(a=(u=c.next()).done);a=!0){var m=u.value;null!=r.result[m]&&"null"!=r.result[m]||(r.result[m]="")}}catch(e){s=!0,o=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw o}}var d={provinceName:r.result.provinceName,provinceId:r.result.provinceId,cityName:r.result.cityName,cityId:r.result.cityId,countryName:r.result.areaName,countyId:r.result.areaId};return e.areaOptions=d,r.result.region=d,r.result.cardType=String(r.result.cardType),void(e.ruleForm=l()(e.ruleForm,r.result))}f.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getCompanyInfo()},components:{navCrumb:m.a,limitInput:d.a,singleUpload:b}},_={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyCertify-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"企业名称",prop:"enterpriseName"}},[r("limitInput",{attrs:{inputWidth:495,inputValue:e.ruleForm.enterpriseName,holder:"请输入企业名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"enterpriseName",t)}}})],1),e._v(" "),r("el-form-item",{staticClass:"city-area",attrs:{label:"所在地区",prop:"region"}},[r("vue-office-area",{attrs:{projectName:e.projectName,postUrl:e.postUrl,areaOptions:e.areaOptions},on:{selected:e.selected}})],1),e._v(" "),r("el-form-item",{attrs:{label:"详细地址",prop:"detailAddress"}},[r("limitInput",{attrs:{inputWidth:495,inputValue:e.ruleForm.detailAddress,holder:"请输入详细地址",maxLength:40},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"detailAddress",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业执照注册号",prop:"businessLicenseNum"}},[r("limitInput",{attrs:{inputWidth:495,inputValue:e.ruleForm.businessLicenseNum,holder:"请输入营业执照注册号",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"businessLicenseNum",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"证件类型",prop:"cardType"}},[r("div",[r("el-radio",{attrs:{label:"0"},model:{value:e.ruleForm.cardType,callback:function(t){e.$set(e.ruleForm,"cardType",t)},expression:"ruleForm.cardType"}},[e._v("多证合一营业执照(原“注册号”字样,调整为18位的“统一社会信用代码”)")])],1),e._v(" "),r("div",[r("el-radio",{attrs:{label:"1"},model:{value:e.ruleForm.cardType,callback:function(t){e.$set(e.ruleForm,"cardType",t)},expression:"ruleForm.cardType"}},[e._v("普通营业执照(仍然标识为15位的“注册号”)")])],1)]),e._v(" "),r("el-form-item",{attrs:{label:"营业执照",prop:"businessLicenseUrl"}},[r("single-upload",{attrs:{imgSrc:e.ruleForm.businessLicenseUrl,uploadLimit:8,field:"businessCard"},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"businessLicenseUrl",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手持证件照片",prop:"cardUrl"}},[r("single-upload",{attrs:{imgSrc:e.ruleForm.cardUrl,field:"cardUrl"},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"cardUrl",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"授权书",prop:"authUrl"}},[r("single-upload",{attrs:{imgSrc:e.ruleForm.authUrl,field:"authUrl"},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"authUrl",t)}}})],1),e._v(" "),0!=e.ruleForm.authenticationStatus?r("el-form-item",{staticClass:"status-item",attrs:{label:"状态",prop:"status"}},[1==e.ruleForm.authenticationStatus?r("el-tag",[r("i",{staticClass:"el-icon-loading"}),e._v("审核中")]):e._e(),e._v(" "),2==e.ruleForm.authenticationStatus?r("el-tag",{attrs:{type:"success"}},[r("i",{staticClass:"el-icon-success"}),e._v("审核成功")]):e._e(),e._v(" "),3==e.ruleForm.authenticationStatus?r("el-tag",{attrs:{type:"danger"}},[r("i",{staticClass:"el-icon-error"}),e._v("审核失败")]):e._e(),3==e.ruleForm.authenticationStatus?r("span",{staticClass:"color-606266 error-text"},[e._v(e._s(e.ruleForm.refuseReason))]):e._e()],1):e._e(),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:0!=e.ruleForm.authenticationStatus&&3!=e.ruleForm.authenticationStatus,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v(" 保 存 ")]),r("el-button",{attrs:{disabled:0!=e.ruleForm.authenticationStatus&&3!=e.ruleForm.authenticationStatus,type:"primary"},on:{click:function(t){e.submitReview("ruleForm")}}},[e._v("\n 提交审核\n ")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var S=r("VU/8")(w,_,!1,function(e){r("uyWL")},"data-v-63035075",null);t.default=S.exports},BO1k:function(e,t,r){e.exports={default:r("fxRn"),__esModule:!0}},"c42+":function(e,t){},fxRn:function(e,t,r){r("+tPU"),r("zQR9"),e.exports=r("g8Ux")},g8Ux:function(e,t,r){var a=r("77Pl"),i=r("3fs2");e.exports=r("FeBl").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return a(t.call(e))}},uyWL:function(e,t){}});
\ No newline at end of file
webpackJsonp([11],{"5gt+":function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),l=i("//Fk"),o=i.n(l),n=i("DAYN"),r={name:"vue-office-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:""},maxImageLength:{type:Number,default:5},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:this.imageList,initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var e,t=window.location.origin,i=void 0;return e=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",i="-1"!=t.indexOf("localhost")?"http://www.gicdev.com":t,this.upUrl=i+this.actionUrl+"?"+e+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(e){var t=this,i=("image/jpeg"===e.type||"image/jpg"===e.type||e.type,e.size/1024/1024<2);return i||t.$message.error("上传图片大小不能超过 2MB!"),i&&new o.a(function(i,a){var s=new FileReader;s.onload=function(e){var s=new Image;s.onload=function(){var e=this.width,s=this.height;t.imgRate&&""!==t.imgRate&&(Number(t.imgRate.split(":")[0])/Number(t.imgRate.split(":")[1])!=Number(e)/Number(s)&&(t.$message.error("上传图片比例不正确!"),a()));t.imgRate&&""!=t.imgRate||!t.limitW||!t.limitH||e===t.limitW||s===t.limitH||(t.$message.error("上传图片尺寸不正确!"),a()),i()},s.src=e.target.result},s.readAsDataURL(e)})},uploadOnSuccess:function(e,t){this.pass=!0,1==e.errorCode?(this.$message.success("上传成功"),this.$emit("uploadOnSuccess",{res:e,file:t},this.imageList)):this.$message.error(e.message)},uploadOnProgress:function(e,t){e&&e.percent&&(this.progress=Math.floor(e.percent))},uploadOnChange:function(e){"ready"===e.status?(this.pass=null,this.progress=0):"fail"===e.status&&this.$message.error("图片上传失败,请重试!")},uploadOnError:function(){},previewImage:function(e){this.isEnlargeImage=!0,this.initialImg=e},deleteImage:function(e){this.$emit("deleteImage",e);var t=JSON.parse(s()(this.imageList));t.splice(e,1),this.$emit("update:imageList",t)},handleClose:function(e){e()},itemMoveEnd:function(e){this.$emit("sortImg",this.dragImageList),this.$emit("update:imageList",this.dragImageList)}},watch:{imageList:function(e,t){this.dragImageList=e}},mounted:function(){},components:{draggable:i.n(n).a}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gic-upload__img"},[i("div",{staticClass:"gic-upload__img__drag"},[i("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:e.itemMoveEnd},model:{value:e.dragImageList,callback:function(t){e.dragImageList=t},expression:"dragImageList"}},[i("transition-group",{attrs:{name:"slide-fade"}},e._l(e.imageList,function(t,a){return i("div",{key:a,class:["img-content",a>=6?"m-t-8":""]},[i("a",{staticClass:"item-img",attrs:{href:t.url}},[i("img",{attrs:{src:t.url,alt:"上传图片"}})]),e._v(" "),i("div",{staticClass:"upload-icon__btn"},[i("i",{staticClass:"el-icon-view",on:{click:function(t){e.previewImage(a)}}}),e._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(t){e.deleteImage(a)}}})])])}))],1),e._v(" "),e.pass||0===e.progress?e._e():i("div",{class:["img-content","img-progress",e.imageList.length>=6?"m-t-8":""]},[i("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:e.progress,status:e.propStatus}})],1),e._v(" "),e.imageList&&e.imageList.length<e.maxImageLength?i("div",{class:["img-upload",e.imageList.length>=6?"m-t-8":""]},[i("el-upload",{staticClass:"loader",attrs:{accept:"image/jpg,image/jpeg,image/png,image/gif",action:e.uploadUrl(),"list-type":"picture-card","on-change":e.uploadOnChange,"before-upload":e.beforeAvatarUpload,"on-success":e.uploadOnSuccess,"on-error":e.uploadOnError,"on-progress":e.uploadOnProgress}},[i("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"图片预览",visible:e.isEnlargeImage,"modal-append-to-body":!1,"before-close":e.handleClose,width:"520px"},on:{"update:visible":function(t){e.isEnlargeImage=t}}},[e.isEnlargeImage?i("el-carousel",{attrs:{trigger:"click","initial-index":e.initialImg,autoplay:!1,height:"500px"}},e._l(e.imageList,function(t,a){return i("el-carousel-item",{key:a,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[i("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:t.url},on:{click:function(t){e.isEnlargeImage=!1}}})])})):e._e()],1)],1)},staticRenderFns:[]};var f=i("VU/8")(r,d,!1,function(e){i("FKG6")},null,null);t.a=f.exports},"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("P9l9"),l=i("0xDb"),o=i("KzHU"),n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-cell-container"},[i("div",{staticClass:"title-div"},[i("span",{staticClass:"font-w-500"},[e._v(e._s(e.title))]),e._v(" "),i("div",{staticClass:"hurdle"}),e._v(" "),i("a",{staticClass:"a-href",on:{click:function(t){e.showEdit=!0}}},[e._v("编辑")])]),e._v(" "),i("el-form",{ref:"cell_form",staticClass:"info-form",attrs:{rules:e.rules,inline:"","label-width":"150px",model:e.fieldsInfo}},[e._l(e.fieldList,function(t,a){return[i("el-form-item",{key:t.fieldCode+"_"+a,staticClass:"item-width",attrs:{label:t.title+":",prop:t.fieldCode}},[e.showEdit?[0==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):e._e(),e._v(" "),6==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):1==t.fieldType?i("el-input",{attrs:{type:"textarea",autosize:"",disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):2==t.fieldType||3==t.fieldType?[1==t.systemFlag?i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e){return i("el-option",{key:e.key,attrs:{label:e.name,value:e.key}})})):i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e,t){return i("el-option",{key:e.key+"_"+t,attrs:{label:e.name,value:e.name}})}))]:4==t.fieldType?i("el-date-picker",{attrs:{type:"date",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):5==t.fieldType?i("el-date-picker",{attrs:{type:"daterange","range-separator":"至",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,"start-placeholder":t.fieldOperations.startDescription,"end-placeholder":t.fieldOperations.endDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):7==t.fieldType?i("uploadImage",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.fieldsInfo[t.fieldCode],limitW:500,limitH:500,maxImageLength:5},on:{"update:imageList":function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[0==t.fieldType||1==t.fieldType||6==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode])+"\n ")]):2==t.fieldType?[1==t.systemFlag?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1]?t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1].name:"")+"\n ")]):i("div",{staticClass:"field-value color-606266"},[e._v(e._s(e.fieldsInfo[t.fieldCode]))])]:3==t.fieldType?i("div",{staticClass:"field-value color-606266"}):4==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e._f("formatDate")(e.fieldsInfo[t.fieldCode],t.fieldOperations.typeValue))+"\n ")]):5==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode].join("至"))+"\n ")]):7==t.fieldType?i("div",{staticClass:"img-box"},e._l(e.fieldsInfo[t.fieldCode],function(e,t){return i("div",{key:t+e.url,staticClass:"item-imgs"},[i("a",{attrs:{href:""}},[i("img",{attrs:{src:e.url}})])])})):e._e()]],2)]})],2),e._v(" "),e.showEdit?i("div",{staticClass:"handle-form-btns t-ct m-b-60"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])],1):e._e()],1)},staticRenderFns:[]};var r=function(e){i("X+Zo")},d=i("VU/8")(o.a,n,!1,r,null,null).exports,f=i("IVno"),c={name:"recordInfo",components:{navCrumb:a.a,editableCell:d,handleDialog:f.a},filters:{formatDate:l.b},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"编辑员工信息",path:""}],editNavpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:"/unemployee"},{name:"编辑员工信息",path:""}],dialogVisible:!1,htmlTitle:"员工档案",info:{},staticInfo:{},statusList:["正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],items:[],fieldList:[],mileStone:[],historyStatus:["新入职","转正","离职","转岗","再入职"],editHisObj:{}}},methods:{handleSuccess:function(){this.dialogVisible=!1},getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){1==t.data.errorCode?e.getTemplate(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},subSuccess:function(){this.getEmployeeDetail()},getTemplate:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(i){1==i.data.errorCode?t.formatTemplateList(i.data.result,e):t.$message.error({message:i.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(e,t){var i=[],a=e,s=JSON.parse(t.defineString),o=Object(l.a)(t);for(var n in s)o[n]=s[n];e.forEach(function(e){if(0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),5==e.fieldType&&(o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):["",""],t[e.fieldCode]=t[e.fieldCode]?t[e.fieldCode].split(","):["",""]),6==e.fieldType&&(o[e.fieldCode]*=1,t[e.fieldCode]*=1),7==e.fieldType){var s=[];o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):[],o[e.fieldCode].forEach(function(e){s.push({url:e})}),t[e.fieldCode]=s,o[e.fieldCode]=s.slice(0)}e.title=e.fieldName;var l=[];a.forEach(function(t){t.parentCode==e.fieldCode&&l.push(t)}),l.sort(function(e,t){return 1*e.sort-1*t.sort}),l.length>0&&(e.childrens=l),0==e.parentCode&&i.push(e)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),this.fieldList=i,this.info=o,this.staticInfo=t},getHistoryList:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/history-record-list",t).then(function(t){if(1==t.data.errorCode){var i=t.data.result;e.formatMileStone(i)}else e.$message({message:t.data.message})}).catch(function(t){e.$message({message:t.message})})},formatMileStone:function(e){e.sort(function(e,t){return 1*e.historyDate-1*t.historyDate});for(var t=[],i=0,a=e.length;i<a;i+=4)t.push(e.slice(i,i+4));this.mileStone=t},editHis:function(e){this.editHisObj.historyId=e.historyId,this.editHisObj.recordId=this.$route.query.recordId,this.dialogVisible=!0}},beforeMount:function(){this.getEmployeeDetail(),this.getHistoryList()},mounted:function(){var e=this.$route.query.type;e&&"unemployee"==e&&(this.navpath=this.editNavpath),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},u={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{"min-height":e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"commom-container clerk-detail-container"},[i("p",{staticClass:"t-rt"},[i("a",{staticClass:"a-href font-14",on:{click:function(t){e.getPdf()}}},[e._v("打印员工档案")])]),e._v(" "),i("div",{style:{"min-height":e.windowH},attrs:{id:"pdfDom"}},[i("div",{staticClass:"employee-detail-cell"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[e.info.headPic?i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}}):i("span",{staticClass:"head-img-null"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v("\n "+e._s(e.info.clerkName)),i("span",[e._v(e._s("-1"==e.info.clerkStatus?"无状态":e.statusList[e.info.clerkStatus-1]))])]),e._v(" "),i("p",{staticClass:"head-cell c-303133"},[e._v(e._s(e.info.groupName)+e._s(e.info.positionName))]),e._v(" "),i("p",{staticClass:"head-cell color-606266"},[e._v("已在"+e._s(e.info.enterpriseName)+"工作了"+e._s(e.info.days)+"天")])])]),e._v(" "),e._l(e.fieldList,function(t){return[t.childrens?i("editable-cell",{key:t.fieldCode,attrs:{info:e.info,staticInfo:e.staticInfo,items:e.items,title:t.title,fieldList:t.childrens},on:{subSuccess:e.subSuccess}}):e._e()]}),e._v(" "),i("div",{staticClass:"mile-stone-container"},[e._m(0),e._v(" "),i("ul",{staticClass:"mile-stone"},e._l(e.mileStone,function(t,a){return i("li",{key:a,staticClass:"stone-group",class:a%2==0?"column":"column-reverse"},[4==t.length&&a!=e.mileStone.length-1?i("div",{staticClass:"column-hurdle"}):e._e(),e._v(" "),e._l(t,function(t,s){return i("div",{key:s,staticClass:"stone",class:a%2==1&&3==s||a%2==0&&0==s&&0!=a?"no-radio":""},[i("p",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.historyDate,"YY-MM-DD")))]),e._v(" "),e._m(1,!0),e._v(" "),i("p",{staticClass:"position"},[e._v(e._s(t.positionName))]),e._v(" "),i("p",{staticClass:"font-16 "},[e._v(e._s(e.historyStatus[1*t.historyStatus-1])),3==t.historyStatus?i("a",{staticClass:"a-href m-l-10 fs-12",on:{click:function(i){e.editHis(t)}}},[e._v("编辑")]):e._e()]),e._v(" "),3==t.historyStatus?i("p",[e._v("离职理由:"+e._s(e.reasons[t.fireReason]))]):e._e(),e._v(" "),i("p",{staticClass:"color-606266"},[e._v(e._s(t.storeName?t.storeName:t.groupName))])])})],2)}))])],2),e._v(" "),i("el-dialog",{attrs:{title:"修改离职信息",visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.editHisObj,handleType:"changeFireInfo",typeTitle:"修改离职信息"},on:{handleSuccess:e.handleSuccess}})],1)],1)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"m-s-title"},[t("span",{staticClass:"font-w-500"},[this._v("员工记录")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hurdle-box"},[t("span",{staticClass:"radio"}),this._v(" "),t("div",{staticClass:"hurdle"})])}]};var _=i("VU/8")(c,u,!1,function(e){i("JV+2")},null,null);t.default=_.exports},FKG6:function(e,t){},"JV+2":function(e,t){},KzHU:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__=__webpack_require__("pFYg"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__=__webpack_require__("5gt+"),__WEBPACK_IMPORTED_MODULE_3__utils_index__=__webpack_require__("0xDb"),__WEBPACK_IMPORTED_MODULE_4__api_api__=__webpack_require__("P9l9");__webpack_exports__.a={name:"editableCell",props:{info:{type:Object,required:!0},staticInfo:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},components:{uploadImage:__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__.a},filters:{formatDate:__WEBPACK_IMPORTED_MODULE_3__utils_index__.b},data:function(){return{showEdit:!1,uploadUrl:"/haoban-manage-web/upload-img",fieldsInfo:{}}},methods:{uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},deleteImage:function(e){this.imageList=this.imageList?this.imageList:[],this.imageList.splice(e,1)},sortImg:function(e){this.imageList=e},saveEdit:function saveEdit(){var that=this;that.$refs.cell_form.validate(function(valid){if(valid){var newInfo=Object(__WEBPACK_IMPORTED_MODULE_3__utils_index__.a)(that.fieldsInfo),params={},regFlag=[],fieldList=that.fieldList,objToString=[];if(fieldList.forEach(function(field){if(params[field.fieldCode]=newInfo[field.fieldCode],5==field.fieldType&&(params[field.fieldCode]=newInfo[field.fieldCode].join(",")),7==field.fieldType){var arr=[];newInfo[field.fieldCode].forEach(function(e){arr.push(e.url)}),params[field.fieldCode]=arr.join(",")}if(1!=field.systemFlag){if(objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode]}),5==field.fieldType&&objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode].join(",")}),7==field.fieldType){var _arr=[];newInfo[field.fieldCode].forEach(function(e){_arr.push(e.url)}),objToString.push({fieldCode:field.fieldCode,fieldValue:_arr.join(",")})}delete params[field.fieldCode]}field.regular&&newInfo[field.fieldCode]&&regFlag.push(eval(field.regular).test(newInfo[field.fieldCode]))}),regFlag.length&&regFlag.includes(!1))return that.$message.error("请输入正确格式的字段值!"),!1;params.jsonString="[]"==__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString)?"":__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString),params.recordId=that.$route.query.recordId,that.submitEdit(params)}})},submitEdit:function(e){var t=this;Object(__WEBPACK_IMPORTED_MODULE_4__api_api__.a)("/haoban-manage-web/record/save-record-detail",e).then(function(e){1==e.data.errorCode?(t.showEdit=!1,t.$emit("subSuccess"),t.$message({message:e.data.message,type:"success"})):t.$message.error(e.data.message)}).catch(function(e){t.$message.error(e.message)})},cancelEdit:function(){this.$refs.cell_form.clearValidate();var e=this.fieldsInfo,t=this.staticInfo;for(var i in e)e[i]=t[i];this.showEdit=!1}},computed:{defineObj:function(){return JSON.parse(this.clerkInfo.defineString)},rules:function(){var e={},t=function(e,t,i){return t?new RegExp("^[0-9]*$").test(1*t)?i():i(new Error("请输入数字!")):i()};return this.fieldList.forEach(function(i){var a=[];0!=i.fieldType&&1!=i.fieldType||(i.minCount&&i.maxCount&&a.push({min:i.minCount,message:"至少填写"+i.minCount+"个字符",trigger:"change"}),!i.minCount&&i.maxCount&&a.push({max:i.maxCount,message:"至多填写"+i.maxCount+"个字符",trigger:"change"}),i.minCount&&i.maxCount&&a.push({min:i.minCount,max:i.maxCount,message:"长度在 "+i.minCount+" 到 "+i.maxCount+"个字符",trigger:"change"})),6==i.fieldType&&a.push({validator:t,message:i.fieldName+"必须为数字",trigger:"change"}),e[i.fieldCode]=a}),e}},beforeMount:function(){var e=JSON.parse(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(this.info));for(var t in e)e[t]=null==e[t]?"":"object"===__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(e[t])?e[t]:String(e[t]);this.fieldsInfo=e}}},"X+Zo":function(e,t){}});
\ No newline at end of file
webpackJsonp([14],{"5gt+":function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),l=i("//Fk"),o=i.n(l),n=i("DAYN"),r={name:"vue-office-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:""},maxImageLength:{type:Number,default:5},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:this.imageList,initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var e,t=window.location.origin,i=void 0;return e=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",i="-1"!=t.indexOf("localhost")?"http://www.gicdev.com":t,this.upUrl=i+this.actionUrl+"?"+e+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(e){var t=this,i=("image/jpeg"===e.type||"image/jpg"===e.type||e.type,e.size/1024/1024<2);return i||t.$message.error("上传图片大小不能超过 2MB!"),i&&new o.a(function(i,a){var s=new FileReader;s.onload=function(e){var s=new Image;s.onload=function(){var e=this.width,s=this.height;t.imgRate&&""!==t.imgRate&&(Number(t.imgRate.split(":")[0])/Number(t.imgRate.split(":")[1])!=Number(e)/Number(s)&&(t.$message.error("上传图片比例不正确!"),a()));t.imgRate&&""!=t.imgRate||!t.limitW||!t.limitH||e===t.limitW||s===t.limitH||(t.$message.error("上传图片尺寸不正确!"),a()),i()},s.src=e.target.result},s.readAsDataURL(e)})},uploadOnSuccess:function(e,t){this.pass=!0,1==e.errorCode?(this.$message.success("上传成功"),this.$emit("uploadOnSuccess",{res:e,file:t},this.imageList)):this.$message.error(e.message)},uploadOnProgress:function(e,t){e&&e.percent&&(this.progress=Math.floor(e.percent))},uploadOnChange:function(e){"ready"===e.status?(this.pass=null,this.progress=0):"fail"===e.status&&this.$message.error("图片上传失败,请重试!")},uploadOnError:function(){},previewImage:function(e){this.isEnlargeImage=!0,this.initialImg=e},deleteImage:function(e){this.$emit("deleteImage",e);var t=JSON.parse(s()(this.imageList));t.splice(e,1),this.$emit("update:imageList",t)},handleClose:function(e){e()},itemMoveEnd:function(e){this.$emit("sortImg",this.dragImageList),this.$emit("update:imageList",this.dragImageList)}},watch:{imageList:function(e,t){this.dragImageList=e}},mounted:function(){},components:{draggable:i.n(n).a}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gic-upload__img"},[i("div",{staticClass:"gic-upload__img__drag"},[i("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:e.itemMoveEnd},model:{value:e.dragImageList,callback:function(t){e.dragImageList=t},expression:"dragImageList"}},[i("transition-group",{attrs:{name:"slide-fade"}},e._l(e.imageList,function(t,a){return i("div",{key:a,class:["img-content",a>=6?"m-t-8":""]},[i("a",{staticClass:"item-img",attrs:{href:t.url}},[i("img",{attrs:{src:t.url,alt:"上传图片"}})]),e._v(" "),i("div",{staticClass:"upload-icon__btn"},[i("i",{staticClass:"el-icon-view",on:{click:function(t){e.previewImage(a)}}}),e._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(t){e.deleteImage(a)}}})])])}))],1),e._v(" "),e.pass||0===e.progress?e._e():i("div",{class:["img-content","img-progress",e.imageList.length>=6?"m-t-8":""]},[i("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:e.progress,status:e.propStatus}})],1),e._v(" "),e.imageList&&e.imageList.length<e.maxImageLength?i("div",{class:["img-upload",e.imageList.length>=6?"m-t-8":""]},[i("el-upload",{staticClass:"loader",attrs:{accept:"image/jpg,image/jpeg,image/png,image/gif",action:e.uploadUrl(),"list-type":"picture-card","on-change":e.uploadOnChange,"before-upload":e.beforeAvatarUpload,"on-success":e.uploadOnSuccess,"on-error":e.uploadOnError,"on-progress":e.uploadOnProgress}},[i("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"图片预览",visible:e.isEnlargeImage,"modal-append-to-body":!1,"before-close":e.handleClose,width:"520px"},on:{"update:visible":function(t){e.isEnlargeImage=t}}},[e.isEnlargeImage?i("el-carousel",{attrs:{trigger:"click","initial-index":e.initialImg,autoplay:!1,height:"500px"}},e._l(e.imageList,function(t,a){return i("el-carousel-item",{key:a,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[i("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:t.url},on:{click:function(t){e.isEnlargeImage=!1}}})])})):e._e()],1)],1)},staticRenderFns:[]};var f=i("VU/8")(r,d,!1,function(e){i("FKG6")},null,null);t.a=f.exports},"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("P9l9"),l=i("0xDb"),o=i("KzHU"),n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-cell-container"},[i("div",{staticClass:"title-div"},[i("span",{staticClass:"font-w-500"},[e._v(e._s(e.title))]),e._v(" "),i("div",{staticClass:"hurdle"}),e._v(" "),i("a",{staticClass:"a-href",on:{click:function(t){e.showEdit=!0}}},[e._v("编辑")])]),e._v(" "),i("el-form",{ref:"cell_form",staticClass:"info-form",attrs:{rules:e.rules,inline:"","label-width":"150px",model:e.fieldsInfo}},[e._l(e.fieldList,function(t,a){return[i("el-form-item",{key:t.fieldCode+"_"+a,staticClass:"item-width",attrs:{label:t.title+":",prop:t.fieldCode}},[e.showEdit?[0==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):e._e(),e._v(" "),6==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):1==t.fieldType?i("el-input",{attrs:{type:"textarea",autosize:"",disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):2==t.fieldType||3==t.fieldType?[1==t.systemFlag?i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e){return i("el-option",{key:e.key,attrs:{label:e.name,value:e.key}})})):i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e,t){return i("el-option",{key:e.key+"_"+t,attrs:{label:e.name,value:e.name}})}))]:4==t.fieldType?i("el-date-picker",{attrs:{type:"date",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):5==t.fieldType?i("el-date-picker",{attrs:{type:"daterange","range-separator":"至",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,"start-placeholder":t.fieldOperations.startDescription,"end-placeholder":t.fieldOperations.endDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):7==t.fieldType?i("uploadImage",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.fieldsInfo[t.fieldCode],limitW:500,limitH:500,maxImageLength:5},on:{"update:imageList":function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[0==t.fieldType||1==t.fieldType||6==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode])+"\n ")]):2==t.fieldType?[1==t.systemFlag?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1]?t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1].name:"")+"\n ")]):i("div",{staticClass:"field-value color-606266"},[e._v(e._s(e.fieldsInfo[t.fieldCode]))])]:3==t.fieldType?i("div",{staticClass:"field-value color-606266"}):4==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e._f("formatDate")(e.fieldsInfo[t.fieldCode],t.fieldOperations.typeValue))+"\n ")]):5==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode].join("至"))+"\n ")]):7==t.fieldType?i("div",{staticClass:"img-box"},e._l(e.fieldsInfo[t.fieldCode],function(e,t){return i("div",{key:t+e.url,staticClass:"item-imgs"},[i("a",{attrs:{href:""}},[i("img",{attrs:{src:e.url}})])])})):e._e()]],2)]})],2),e._v(" "),e.showEdit?i("div",{staticClass:"handle-form-btns t-ct m-b-60"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])],1):e._e()],1)},staticRenderFns:[]};var r=function(e){i("X+Zo")},d=i("VU/8")(o.a,n,!1,r,null,null).exports,f=i("IVno"),c={name:"recordInfo",components:{navCrumb:a.a,editableCell:d,handleDialog:f.a},filters:{formatDate:l.b},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"编辑员工信息",path:""}],editNavpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:"/unemployee"},{name:"编辑员工信息",path:""}],dialogVisible:!1,htmlTitle:"员工档案",info:{},staticInfo:{},statusList:["正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],items:[],fieldList:[],mileStone:[],historyStatus:["新入职","转正","离职","转岗","再入职"],editHisObj:{}}},methods:{handleSuccess:function(){this.dialogVisible=!1},getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){1==t.data.errorCode?e.getTemplate(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},subSuccess:function(){this.getEmployeeDetail()},getTemplate:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(i){1==i.data.errorCode?t.formatTemplateList(i.data.result,e):t.$message.error({message:i.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(e,t){var i=[],a=e,s=JSON.parse(t.defineString),o=Object(l.a)(t);for(var n in s)o[n]=s[n];e.forEach(function(e){if(0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),5==e.fieldType&&(o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):["",""],t[e.fieldCode]=t[e.fieldCode]?t[e.fieldCode].split(","):["",""]),6==e.fieldType&&(o[e.fieldCode]*=1,t[e.fieldCode]*=1),7==e.fieldType){var s=[];o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):[],o[e.fieldCode].forEach(function(e){s.push({url:e})}),t[e.fieldCode]=s,o[e.fieldCode]=s.slice(0)}e.title=e.fieldName;var l=[];a.forEach(function(t){t.parentCode==e.fieldCode&&l.push(t)}),l.sort(function(e,t){return 1*e.sort-1*t.sort}),l.length>0&&(e.childrens=l),0==e.parentCode&&i.push(e)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),this.fieldList=i,this.info=o,this.staticInfo=t},getHistoryList:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/history-record-list",t).then(function(t){if(1==t.data.errorCode){var i=t.data.result;e.formatMileStone(i)}else e.$message({message:t.data.message})}).catch(function(t){e.$message({message:t.message})})},formatMileStone:function(e){e.sort(function(e,t){return 1*e.historyDate-1*t.historyDate});for(var t=[],i=0,a=e.length;i<a;i+=4)t.push(e.slice(i,i+4));this.mileStone=t},editHis:function(e){this.editHisObj.historyId=e.historyId,this.editHisObj.recordId=this.$route.query.recordId,this.dialogVisible=!0}},beforeMount:function(){this.getEmployeeDetail(),this.getHistoryList()},mounted:function(){var e=this.$route.query.type;e&&"unemployee"==e&&(this.navpath=this.editNavpath),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},u={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{"min-height":e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"commom-container clerk-detail-container"},[i("p",{staticClass:"t-rt"},[i("a",{staticClass:"a-href font-14",on:{click:function(t){e.getPdf()}}},[e._v("打印员工档案")])]),e._v(" "),i("div",{style:{"min-height":e.windowH},attrs:{id:"pdfDom"}},[i("div",{staticClass:"employee-detail-cell"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[e.info.headPic?i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}}):i("span",{staticClass:"head-img-null"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v("\n "+e._s(e.info.clerkName)),i("span",[e._v(e._s("-1"==e.info.clerkStatus?"无状态":e.statusList[e.info.clerkStatus-1]))])]),e._v(" "),i("p",{staticClass:"head-cell c-303133"},[e._v(e._s(e.info.groupName)+e._s(e.info.positionName))]),e._v(" "),i("p",{staticClass:"head-cell color-606266"},[e._v("已在"+e._s(e.info.enterpriseName)+"工作了"+e._s(e.info.days)+"天")])])]),e._v(" "),e._l(e.fieldList,function(t){return[t.childrens?i("editable-cell",{key:t.fieldCode,attrs:{info:e.info,staticInfo:e.staticInfo,items:e.items,title:t.title,fieldList:t.childrens},on:{subSuccess:e.subSuccess}}):e._e()]}),e._v(" "),i("div",{staticClass:"mile-stone-container"},[e._m(0),e._v(" "),i("ul",{staticClass:"mile-stone"},e._l(e.mileStone,function(t,a){return i("li",{key:a,staticClass:"stone-group",class:a%2==0?"column":"column-reverse"},[4==t.length&&a!=e.mileStone.length-1?i("div",{staticClass:"column-hurdle"}):e._e(),e._v(" "),e._l(t,function(t,s){return i("div",{key:s,staticClass:"stone",class:a%2==1&&3==s||a%2==0&&0==s&&0!=a?"no-radio":""},[i("p",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.historyDate,"YY-MM-DD")))]),e._v(" "),e._m(1,!0),e._v(" "),i("p",{staticClass:"position"},[e._v(e._s(t.positionName))]),e._v(" "),i("p",{staticClass:"font-16 "},[e._v(e._s(e.historyStatus[1*t.historyStatus-1])),3==t.historyStatus?i("a",{staticClass:"a-href m-l-10 fs-12",on:{click:function(i){e.editHis(t)}}},[e._v("编辑")]):e._e()]),e._v(" "),3==t.historyStatus?i("p",[e._v("离职理由:"+e._s(e.reasons[t.fireReason]))]):e._e(),e._v(" "),i("p",{staticClass:"color-606266"},[e._v(e._s(t.storeName?t.storeName:t.groupName))])])})],2)}))])],2),e._v(" "),i("el-dialog",{attrs:{title:"修改离职信息",visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.editHisObj,handleType:"changeFireInfo",typeTitle:"修改离职信息"},on:{handleSuccess:e.handleSuccess}})],1)],1)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"m-s-title"},[t("span",{staticClass:"font-w-500"},[this._v("员工记录")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hurdle-box"},[t("span",{staticClass:"radio"}),this._v(" "),t("div",{staticClass:"hurdle"})])}]};var _=i("VU/8")(c,u,!1,function(e){i("JV+2")},null,null);t.default=_.exports},FKG6:function(e,t){},"JV+2":function(e,t){},KzHU:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__=__webpack_require__("pFYg"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__=__webpack_require__("5gt+"),__WEBPACK_IMPORTED_MODULE_3__utils_index__=__webpack_require__("0xDb"),__WEBPACK_IMPORTED_MODULE_4__api_api__=__webpack_require__("P9l9");__webpack_exports__.a={name:"editableCell",props:{info:{type:Object,required:!0},staticInfo:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},components:{uploadImage:__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__.a},filters:{formatDate:__WEBPACK_IMPORTED_MODULE_3__utils_index__.b},data:function(){return{showEdit:!1,uploadUrl:"/haoban-manage-web/upload-img",fieldsInfo:{}}},methods:{uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},deleteImage:function(e){this.imageList=this.imageList?this.imageList:[],this.imageList.splice(e,1)},sortImg:function(e){this.imageList=e},saveEdit:function saveEdit(){var that=this;that.$refs.cell_form.validate(function(valid){if(valid){var newInfo=Object(__WEBPACK_IMPORTED_MODULE_3__utils_index__.a)(that.fieldsInfo),params={},regFlag=[],fieldList=that.fieldList,objToString=[];if(fieldList.forEach(function(field){if(params[field.fieldCode]=newInfo[field.fieldCode],5==field.fieldType&&(params[field.fieldCode]=newInfo[field.fieldCode].join(",")),7==field.fieldType){var arr=[];newInfo[field.fieldCode].forEach(function(e){arr.push(e.url)}),params[field.fieldCode]=arr.join(",")}if(1!=field.systemFlag){if(objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode]}),5==field.fieldType&&objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode].join(",")}),7==field.fieldType){var _arr=[];newInfo[field.fieldCode].forEach(function(e){_arr.push(e.url)}),objToString.push({fieldCode:field.fieldCode,fieldValue:_arr.join(",")})}delete params[field.fieldCode]}field.regular&&newInfo[field.fieldCode]&&regFlag.push(eval(field.regular).test(newInfo[field.fieldCode]))}),regFlag.length&&regFlag.includes(!1))return that.$message.error("请输入正确格式的字段值!"),!1;params.jsonString="[]"==__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString)?"":__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString),params.recordId=that.$route.query.recordId,that.submitEdit(params)}})},submitEdit:function(e){var t=this;Object(__WEBPACK_IMPORTED_MODULE_4__api_api__.a)("/haoban-manage-web/record/save-record-detail",e).then(function(e){1==e.data.errorCode?(t.showEdit=!1,t.$emit("subSuccess"),t.$message({message:e.data.message,type:"success"})):t.$message.error(e.data.message)}).catch(function(e){t.$message.error(e.message)})},cancelEdit:function(){this.$refs.cell_form.clearValidate();var e=this.fieldsInfo,t=this.staticInfo;for(var i in e)e[i]=t[i];this.showEdit=!1}},computed:{defineObj:function(){return JSON.parse(this.clerkInfo.defineString)},rules:function(){var e={},t=function(e,t,i){return t?new RegExp("^[0-9]*$").test(1*t)?i():i(new Error("请输入数字!")):i()};return this.fieldList.forEach(function(i){var a=[];0!=i.fieldType&&1!=i.fieldType||(i.minCount&&i.maxCount&&a.push({min:i.minCount,message:"至少填写"+i.minCount+"个字符",trigger:"change"}),!i.minCount&&i.maxCount&&a.push({max:i.maxCount,message:"至多填写"+i.maxCount+"个字符",trigger:"change"}),i.minCount&&i.maxCount&&a.push({min:i.minCount,max:i.maxCount,message:"长度在 "+i.minCount+" 到 "+i.maxCount+"个字符",trigger:"change"})),6==i.fieldType&&a.push({validator:t,message:i.fieldName+"必须为数字",trigger:"change"}),e[i.fieldCode]=a}),e}},beforeMount:function(){var e=JSON.parse(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(this.info));for(var t in e)e[t]=null==e[t]?"":"object"===__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(e[t])?e[t]:String(e[t]);this.fieldsInfo=e}}},"X+Zo":function(e,t){}});
\ No newline at end of file
webpackJsonp([12],{"2FlR":function(e,t,a){e.exports=a.p+"static/img/test.50e4091.png"},H6a4:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:Object}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}],rightData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),n=s.getMonth()+1,o=s.getDate();return i+t+a(n)+t+a(o)+t},handleData:function(){}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){}},mounted:function(){}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店环境图变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e.src,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e.src,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("uyId")},"data-v-5bdf7830",null);t.a=n.exports},uyId:function(e,t){},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),i=a("Zx22"),n=a("3E4D"),o=a("Ch4/"),l=a("PI0u"),r=a("P9l9"),c={name:"unreview",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"待审核",path:""}],filterValue:"",filterOptions:[{label:"全部事项",value:""},{label:"新增成员",value:"1"},{label:"成员离职",value:"2"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{},approveVisible:!1,refuseVisible:!1}},filters:{formatTimeYMD:function(e){return"--"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return"--"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){this.selectId=t.enterpriseAuditingId,a?this.refuseVisible=!0:this.approveVisible=!0},sendApprove:function(){this.postApprove(this.selectId)},approveAll:function(){var e=this.multipleSelection.length?this.multipleSelection.map(function(e){return e.enterpriseAuditingId}):"";if(!e)return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.postAllApprove(e)},postApprove:function(e){var t=this,a={enterpriseAuditingId:e};Object(r.c)("/haoban-manage-web/audit/approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),t.approveVisible=!1,void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={enterpriseAuditingIds:e};Object(r.c)("/haoban-manage-web/audit/batch-approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},postRefuse:function(){var e=this,t={enterpriseAuditingId:e.selectId,refuseReason:e.ruleForm.refuseReason};Object(r.a)("/haoban-manage-web/audit/refuse.json",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),e.refuseVisible=!1,void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){},showStoreChange:function(e){this.showStoreDialog=!0,this.storeChangeData=e},getTableList:function(e){var t=this,a={auditingType:t.filterValue,auditingStatus:"0",search:"",pageNum:t.currentPage,pageSize:t.pageSize};Object(r.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(e,t){e.createTime&&(e.createTime=Object(l.b)(e.createTime))}),t.tableData=a.result.list,void(t.total=a.result.total);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:s.a,storeChange:i.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.applyName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.code))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),0==t.row.auditingType?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")]):e._e()],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(c,u,!1,function(e){a("H6a4")},"data-v-2f5ac2c0",null);t.default=p.exports}});
\ No newline at end of file
webpackJsonp([15],{"2FlR":function(e,t,a){e.exports=a.p+"static/img/test.50e4091.png"},H6a4:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:Object}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}],rightData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),n=s.getMonth()+1,o=s.getDate();return i+t+a(n)+t+a(o)+t},handleData:function(){}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){}},mounted:function(){}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店环境图变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e.src,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e.src,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("uyId")},"data-v-5bdf7830",null);t.a=n.exports},uyId:function(e,t){},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),i=a("Zx22"),n=a("3E4D"),o=a("Ch4/"),l=a("PI0u"),r=a("P9l9"),c={name:"unreview",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"待审核",path:""}],filterValue:"",filterOptions:[{label:"全部事项",value:""},{label:"新增成员",value:"1"},{label:"成员离职",value:"2"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{},approveVisible:!1,refuseVisible:!1}},filters:{formatTimeYMD:function(e){return"--"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return"--"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){this.selectId=t.enterpriseAuditingId,a?this.refuseVisible=!0:this.approveVisible=!0},sendApprove:function(){this.postApprove(this.selectId)},approveAll:function(){var e=this.multipleSelection.length?this.multipleSelection.map(function(e){return e.enterpriseAuditingId}):"";if(!e)return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.postAllApprove(e)},postApprove:function(e){var t=this,a={enterpriseAuditingId:e};Object(r.c)("/haoban-manage-web/audit/approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),t.approveVisible=!1,void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={enterpriseAuditingIds:e};Object(r.c)("/haoban-manage-web/audit/batch-approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},postRefuse:function(){var e=this,t={enterpriseAuditingId:e.selectId,refuseReason:e.ruleForm.refuseReason};Object(r.a)("/haoban-manage-web/audit/refuse.json",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),e.refuseVisible=!1,void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){},showStoreChange:function(e){this.showStoreDialog=!0,this.storeChangeData=e},getTableList:function(e){var t=this,a={auditingType:t.filterValue,auditingStatus:"0",search:"",pageNum:t.currentPage,pageSize:t.pageSize};Object(r.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(e,t){e.createTime&&(e.createTime=Object(l.b)(e.createTime))}),t.tableData=a.result.list,void(t.total=a.result.total);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:s.a,storeChange:i.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.applyName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.code))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),0==t.row.auditingType?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")]):e._e()],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var p=a("VU/8")(c,u,!1,function(e){a("H6a4")},"data-v-2f5ac2c0",null);t.default=p.exports}});
\ No newline at end of file
webpackJsonp([14],{"2FlR":function(t,e,a){t.exports=a.p+"static/img/test.50e4091.png"},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),n=a("Zx22"),i=a("Ch4/"),l=a("PI0u"),o=a("P9l9"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"已审核",path:""}],filterValue:"99",filterOptions:[{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"已审核",value:"99"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{}}},filters:{formatTimeYMD:function(t){return"--"!=t?t.split(" ")[0]:"--"},formatTimeHMS:function(t){return"--"!=t?t.split(" ")[1]:"--"},formatNum:function(t){return(t+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{clearSearch:function(){this.getTableList()},searchEnterFun:function(t){if(!String(t.target.value).trim())return!1;this.getTableList()},toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){},showStoreChange:function(t){this.showStoreDialog=!0,this.storeChangeData=t},getTableList:function(t){var e=this,a={auditingType:"",auditingStatus:e.filterValue,search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(o.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(t,e){t.createTime&&(t.createTime=Object(l.b)(t.createTime))}),e.tableData=a.result.list,void(e.total=a.result.total);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:s.a,storeChange:n.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-input",{staticClass:"w-250 m-l-10",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.auditingType?"门店信息变更":1==e.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(e.row.applyName)+"\n "),a("i",{class:[2==e.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),t._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[t._v("员工代码:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.code))])]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[t._v("职位:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.positionName))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属门店:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.storeName))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[t._v(t._s(e.row.applyName))]),t._v(" "),a("span",{staticClass:"font-13"},[t._v(t._s(e.row.storeName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),0==e.row.auditingType?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeYMD")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeHMS")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:[2==e.row.auditingStatus?"color-FF585C":""]},[t._v(t._s(1==e.row.auditingStatus?"超级管理员已同意":"超级管理员已拒绝"))]),t._v(" "),a("el-popover",{staticClass:"inline-block",attrs:{placement:"top",width:"150",trigger:"hover"}},[a("div",{staticClass:"tooltip-text"},[t._v(t._s(e.row.refuseReason))]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[2==e.row.auditingStatus?a("i",{staticClass:"el-icon-question",on:{click:function(a){t.toggleReason(e.row)}}}):t._e()])])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var u=a("VU/8")(r,c,!1,function(t){a("rkzg")},"data-v-2521eff3",null);e.default=u.exports},Zx22:function(t,e,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:Object}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}],rightData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var s=new Date(t),n=s.getFullYear(),i=s.getMonth()+1,l=s.getDate();return n+e+a(i)+e+a(l)+e},handleData:function(){}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){}},mounted:function(){}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店环境图变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t.src,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t.src,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(t){a("uyId")},"data-v-5bdf7830",null);e.a=i.exports},rkzg:function(t,e){},uyId:function(t,e){}});
\ No newline at end of file
webpackJsonp([16],{"2FlR":function(t,e,a){t.exports=a.p+"static/img/test.50e4091.png"},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),n=a("Zx22"),i=a("Ch4/"),l=a("PI0u"),o=a("P9l9"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"已审核",path:""}],filterValue:"99",filterOptions:[{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"已审核",value:"99"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{}}},filters:{formatTimeYMD:function(t){return"--"!=t?t.split(" ")[0]:"--"},formatTimeHMS:function(t){return"--"!=t?t.split(" ")[1]:"--"},formatNum:function(t){return(t+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{clearSearch:function(){this.getTableList()},searchEnterFun:function(t){if(!String(t.target.value).trim())return!1;this.getTableList()},toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){},showStoreChange:function(t){this.showStoreDialog=!0,this.storeChangeData=t},getTableList:function(t){var e=this,a={auditingType:"",auditingStatus:e.filterValue,search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(o.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(t,e){t.createTime&&(t.createTime=Object(l.b)(t.createTime))}),e.tableData=a.result.list,void(e.total=a.result.total);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:s.a,storeChange:n.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-input",{staticClass:"w-250 m-l-10",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.auditingType?"门店信息变更":1==e.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(e.row.applyName)+"\n "),a("i",{class:[2==e.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),t._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[t._v("员工代码:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.code))])]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[t._v("职位:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.positionName))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属门店:")]),a("span",{staticClass:"w-130"},[t._v(t._s(e.row.storeName))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headPic?a("img",{attrs:{src:e.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[t._v(t._s(e.row.applyName))]),t._v(" "),a("span",{staticClass:"font-13"},[t._v(t._s(e.row.storeName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),0==e.row.auditingType?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeYMD")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("formatTimeHMS")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:[2==e.row.auditingStatus?"color-FF585C":""]},[t._v(t._s(1==e.row.auditingStatus?"超级管理员已同意":"超级管理员已拒绝"))]),t._v(" "),a("el-popover",{staticClass:"inline-block",attrs:{placement:"top",width:"150",trigger:"hover"}},[a("div",{staticClass:"tooltip-text"},[t._v(t._s(e.row.refuseReason))]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[2==e.row.auditingStatus?a("i",{staticClass:"el-icon-question",on:{click:function(a){t.toggleReason(e.row)}}}):t._e()])])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var u=a("VU/8")(r,c,!1,function(t){a("rkzg")},"data-v-2521eff3",null);e.default=u.exports},Zx22:function(t,e,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:Object}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}],rightData:[{src:a("2FlR")},{src:a("2FlR")},{src:a("2FlR")}]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var s=new Date(t),n=s.getFullYear(),i=s.getMonth()+1,l=s.getDate();return n+e+a(i)+e+a(l)+e},handleData:function(){}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){}},mounted:function(){}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店环境图变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t.src,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column flex-space-between"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t.src,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(t){a("uyId")},"data-v-5bdf7830",null);e.a=i.exports},rkzg:function(t,e){},uyId:function(t,e){}});
\ No newline at end of file
webpackJsonp([15],{K4Vl:function(e,t){},NNAT:function(e,t,i){"use strict";var a=i("fZjL"),o=i.n(a),s=i("mvHQ"),l=i.n(s),n=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var p=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,h=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:p,handleDialog:h.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[l()(e)]=e}),e=o()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,a=this.selectionList.indexOf(e);this.selectionList.splice(a,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",a={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(i,a).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},y={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,a){return[i("li",{key:a+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,y,!1,function(e){i("K4Vl")},null,null);t.a=g.exports},TGrv:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),o=i("NNAT"),s={name:"employeeRecord",components:{navCrumb:a.a,employeeList:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},l={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=i("VU/8")(s,l,!1,function(e){i("xnej")},null,null);t.default=n.exports},edn0:function(e,t){},xnej:function(e,t){}});
\ No newline at end of file
webpackJsonp([17],{K4Vl:function(e,t){},NNAT:function(e,t,i){"use strict";var a=i("fZjL"),o=i.n(a),s=i("mvHQ"),l=i.n(s),n=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var p=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,h=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:p,handleDialog:h.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[l()(e)]=e}),e=o()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,a=this.selectionList.indexOf(e);this.selectionList.splice(a,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",a={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(i,a).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},y={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,a){return[i("li",{key:a+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,y,!1,function(e){i("K4Vl")},null,null);t.a=g.exports},TGrv:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),o=i("NNAT"),s={name:"employeeRecord",components:{navCrumb:a.a,employeeList:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},l={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=i("VU/8")(s,l,!1,function(e){i("xnej")},null,null);t.default=n.exports},edn0:function(e,t){},xnej:function(e,t){}});
\ No newline at end of file
webpackJsonp([16],{"6Aq2":function(e,t){},HKlq:function(e,t){},n7j5:function(e,t,a){"use strict";var i=a("mvHQ"),s=a.n(i),n={name:"select-area",components:{vueSelectEmployee:a("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var a=this[t];a.splice(a.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-area"},[a("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[a("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),a("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[a("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:a("VU/8")(n,r,!1,function(e){a("HKlq")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,a){e&&(this[a]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var a=e.type;this.visibleThere=!(1!=a),this.visibleSelf=!(2!=a)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"jurisdiction-setting"},[a("div",{staticClass:"only-visivble-there permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),a("div",{staticClass:"only-visivble-self permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见自己")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=a("VU/8")(l,o,!1,function(e){a("wVEX")},null,null);t.a=c.exports},q5Ri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("n7j5"),s=a("c4uw"),n=a("P9l9"),r={name:"addDepartment",components:{permissionSetting:i.a,vueSelectEmployee:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(n.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var a=t.data.result.chainName.split("/"),i=a.length;e.departInfo.parentName=1==i?"":a[i-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var i=e,s={parentId:i.departInfo.parentId,name:i.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){1==e.data.errorCode?(i.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(i.departInfo={name:"",parentName:"",parentId:""},i.disabled=!0,i.getGroupData()):window.history.go(-1)):i.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],i=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:a,personData:i},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell depart-info"},[a("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,l,!1,function(e){a("6Aq2")},null,null);t.default=o.exports},wVEX:function(e,t){}});
\ No newline at end of file
webpackJsonp([18],{"6Aq2":function(e,t){},HKlq:function(e,t){},n7j5:function(e,t,a){"use strict";var i=a("mvHQ"),s=a.n(i),n={name:"select-area",components:{vueSelectEmployee:a("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var a=this[t];a.splice(a.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-area"},[a("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"butList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[a("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),a("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),a("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,i){return[t.employeeClerkId?a("li",{key:i+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?a("img",{attrs:{src:t.headPic}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})]):a("li",{key:i+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),a("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[a("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:a("VU/8")(n,r,!1,function(e){a("HKlq")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,a){e&&(this[a]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var a=e.type;this.visibleThere=!(1!=a),this.visibleSelf=!(2!=a)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"jurisdiction-setting"},[a("div",{staticClass:"only-visivble-there permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),a("div",{staticClass:"only-visivble-self permission-div"},[a("div",{staticClass:"permission-div-title"},[a("span",[e._v("本部门员工仅可见自己")]),e._v(" "),a("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?a("div",{staticClass:"particular-setting"},[a("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=a("VU/8")(l,o,!1,function(e){a("wVEX")},null,null);t.a=c.exports},q5Ri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("n7j5"),s=a("c4uw"),n=a("P9l9"),r={name:"addDepartment",components:{permissionSetting:i.a,vueSelectEmployee:s.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[]}},methods:{getDepartInfo:function(){var e=this,t={groupId:e.$route.query.departmentId};Object(n.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){if(1==t.data.errorCode){e.departInfo.name=t.data.result.name,e.departInfo.parentId=t.data.result.parentId;var a=t.data.result.chainName.split("/"),i=a.length;e.departInfo.parentName=1==i?"":a[i-2],e.defaultParent=[{label:e.departInfo.parentName,id:t.data.result.parentId,groupId:t.data.result.parentId}]}else e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}},handleSelectedList:function(e){this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:""},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var i=e,s={parentId:i.departInfo.parentId,name:i.departInfo.name};Object(n.a)("/haoban-manage-web/dept/insert",s).then(function(e){1==e.data.errorCode?(i.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(i.departInfo={name:"",parentName:"",parentId:""},i.disabled=!0,i.getGroupData()):window.history.go(-1)):i.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],i=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:a,personData:i},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo()},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell depart-info"},[a("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,l,!1,function(e){a("6Aq2")},null,null);t.default=o.exports},wVEX:function(e,t){}});
\ No newline at end of file
webpackJsonp([17],{"3fSj":function(e,t){},HHRu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("n7j5"),n=i("c4uw"),r=i("P9l9"),l={name:"addDepartment",components:{navCrumb:a.a,permissionSetting:s.a,vueSelectEmployee:n.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加子分组",path:""}],departInfo:{parentName:"",chainName:"",managerClerkList:[]},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],chainName:[{required:!0,message:"请选择父级部门",trigger:"blur"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[],butList:[],specialList:[],selfButList:[],selfSpecialList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(r.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},delCurrentManager:function(e){var t=this.departInfo.managerClerkList;t.splice(t.indexOf(e),1)},getDepartInfo:function(){var e=this,t=this,i={groupId:t.$route.query.departmentId};Object(r.a)("/haoban-manage-web/dept/findDeptById",i).then(function(i){1==i.data.errorCode?e.formatGroupInfo(i.data.result):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},formatGroupInfo:function(e){this.departInfo.parentName=e.chainName,this.defaultParent=[{label:this.departInfo.parentName,id:e.parentId,groupId:e.parentId}],e.managerClerkList=e.managerClerkList?e.managerClerkList:[],e.managerClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.noPreClerkList=e.noPreClerkList||[],e.allowClerkList=e.allowClerkList||[],e.allowDeptList=e.allowDeptList||[],e.noPreClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowDeptList.forEach(function(e){e.label=e.name,e.id=e.groupId}),1==e.type?(this.butList=e.noPreClerkList,this.specialList=e.allowDeptList.concat(e.allowClerkList),this.selfButList=[],this.selfSpecialList=[]):2==e.type&&(this.butList=[],this.specialList=[],this.selfButList=e.noPreClerkList,this.selfSpecialList=e.allowDeptList.concat(e.allowClerkList)),this.departInfo=e},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){"but"==e||"selectManager"==e?(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!1,this.onlyGroup=[],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0})},handleSelectedList:function(e){"parent"==this.changed?(this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:"",this.departInfo.chainName=e?e.label:""):"but"==this.changed?2==this.departInfo.type?this.selfButList=e:this.butList=e:"special"==this.changed?2==this.departInfo.type?this.selfSpecialList=e:this.specialList=e:"selectManager"==this.changed&&(this.departInfo.managerClerkList=e)},saveEdit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;this.$refs.departForm.validate(function(i){if(!i)return!1;var a=t.departInfo.type,s=[];""!=a&&t[1==a?"butList":"selfButList"].forEach(function(e){s.push(e.id)});var n=[],l=[];t.specialList.forEach(function(e){e.employeeClerkId?n.push(e.id):l.push(e.id)}),t.selfSpecialList.forEach(function(e){e.employeeClerkId?n.push(e.id):l.push(e.id)});var o=s.join(","),c=[];t.departInfo.managerClerkList.forEach(function(e){c.push(e.id)});var d={type:a,managerClerkIds:c=c.join(","),noPreCherkIds:o,allowCherkIds:n.join(","),allowDepartIds:l.join(","),parentId:t.departInfo.parentId,name:t.departInfo.name};t.isAddNew||(d.groupId=t.$route.query.departmentId);var u=t.isAddNew?"/haoban-manage-web/dept/insert":"/haoban-manage-web/dept/update";Object(r.a)(u,d).then(function(i){1==i.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功!"}),"continue"==e?(t.departInfo={name:"",parentName:"",parentId:""},t.disabled=!0,t.getGroupData()):window.history.go(-1)):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"add-department-container"},["group"==e.$route.query.type?i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),e.isAddNew?e._e():i("el-form-item",{attrs:{label:"部门负责人"}},[i("ul",{staticClass:"particular-list",staticStyle:{"margin-bottom":"0",width:"380px"}},[e._l(e.departInfo.managerClerkList,function(t,a){return[i("li",{key:a+"_"+t.id,staticClass:"item person-item",staticStyle:{"margin-top":"0"}},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrentManager(t)}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",staticStyle:{"margin-top":"0"},on:{click:function(t){e.callPerSelector("selectManager",e.departInfo.managerClerkList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)]),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"chainName"}},[i("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.chainName,callback:function(t){e.$set(e.departInfo,"chainName",t)},expression:"departInfo.chainName"}})],1)],1)],1):i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("企业信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"企业名称",prop:"name"}},[i("el-input",{attrs:{disabled:""},model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1)],1)],1),e._v(" "),e.isAddNew?e._e():i("div",{staticClass:"setting-cell m-b-48"},[i("p",{staticClass:"title"},[e._v("权限设置")]),e._v(" "),e.disabled?e._e():i("permission-setting",{attrs:{departInfo:e.departInfo,selfButList:e.selfButList,selfSpecialList:e.selfSpecialList,butList:e.butList,specialList:e.specialList,visibleSpecialLsit:e.testList,onlySelfApartList:e.testList,treeData:e.treeData},on:{callPerSelector:e.callPerSelector}})],1),e._v(" "),i("div",{staticClass:"setting-cell fixed-footer"},[i("div",{staticClass:"btn-area"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保 存")]),e._v(" "),e.isAddNew?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):"group"==e.$route.query.type?i("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删 除")]):e._e(),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)]),e._v(" "),i("vue-select-employee",{attrs:{changed:e.changed,onlyPerson:e.onlyPerson,onlyGroup:e.onlyGroup,defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("3fSj")},null,null);t.default=c.exports},HKlq:function(e,t){},n7j5:function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),n={name:"select-area",components:{vueSelectEmployee:i("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:i("VU/8")(n,r,!1,function(e){i("HKlq")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,i){e&&(this[i]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("wVEX")},null,null);t.a=c.exports},wVEX:function(e,t){}});
\ No newline at end of file
webpackJsonp([19],{"3fSj":function(e,t){},HHRu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("n7j5"),n=i("c4uw"),r=i("P9l9"),l={name:"addDepartment",components:{navCrumb:a.a,permissionSetting:s.a,vueSelectEmployee:n.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加子分组",path:""}],departInfo:{parentName:"",chainName:"",managerClerkList:[]},testList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],chainName:[{required:!0,message:"请选择父级部门",trigger:"blur"}]},treeData:{},disabled:!0,defaultSelection:[],defaultParent:[],selectorType:"parent",changed:"parent",onlyPerson:!1,onlyGroup:[],butList:[],specialList:[],selfButList:[],selfSpecialList:[]}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(r.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},delCurrentManager:function(e){var t=this.departInfo.managerClerkList;t.splice(t.indexOf(e),1)},getDepartInfo:function(){var e=this,t=this,i={groupId:t.$route.query.departmentId};Object(r.a)("/haoban-manage-web/dept/findDeptById",i).then(function(i){1==i.data.errorCode?e.formatGroupInfo(i.data.result):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},formatGroupInfo:function(e){this.departInfo.parentName=e.chainName,this.defaultParent=[{label:this.departInfo.parentName,id:e.parentId,groupId:e.parentId}],e.managerClerkList=e.managerClerkList?e.managerClerkList:[],e.managerClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.noPreClerkList=e.noPreClerkList||[],e.allowClerkList=e.allowClerkList||[],e.allowDeptList=e.allowDeptList||[],e.noPreClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowClerkList.forEach(function(e){e.label=e.name,e.id=e.employeeClerkId}),e.allowDeptList.forEach(function(e){e.label=e.name,e.id=e.groupId}),1==e.type?(this.butList=e.noPreClerkList,this.specialList=e.allowDeptList.concat(e.allowClerkList),this.selfButList=[],this.selfSpecialList=[]):2==e.type&&(this.butList=[],this.specialList=[],this.selfButList=e.noPreClerkList,this.selfSpecialList=e.allowDeptList.concat(e.allowClerkList)),this.departInfo=e},callGroupSelector:function(){this.selectorType="parent",this.defaultSelection=this.defaultParent,this.onlyPerson=!1,this.onlyGroup=[],this.changed="parent",this.treeSet={dialogVisible:!0,isSingle:!0,isSelectPerson:!1}},callPerSelector:function(e,t){"but"==e||"selectManager"==e?(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!0,this.onlyGroup=[this.$route.query.departmentId],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):(this.selectorType=e,this.defaultSelection=t,this.onlyPerson=!1,this.onlyGroup=[],this.changed=e,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0})},handleSelectedList:function(e){"parent"==this.changed?(this.departInfo.parentId=e?e.id:"",this.departInfo.parentName=e?e.label:"",this.departInfo.chainName=e?e.label:""):"but"==this.changed?2==this.departInfo.type?this.selfButList=e:this.butList=e:"special"==this.changed?2==this.departInfo.type?this.selfSpecialList=e:this.specialList=e:"selectManager"==this.changed&&(this.departInfo.managerClerkList=e)},saveEdit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;this.$refs.departForm.validate(function(i){if(!i)return!1;var a=t.departInfo.type,s=[];""!=a&&t[1==a?"butList":"selfButList"].forEach(function(e){s.push(e.id)});var n=[],l=[];t.specialList.forEach(function(e){e.employeeClerkId?n.push(e.id):l.push(e.id)}),t.selfSpecialList.forEach(function(e){e.employeeClerkId?n.push(e.id):l.push(e.id)});var o=s.join(","),c=[];t.departInfo.managerClerkList.forEach(function(e){c.push(e.id)});var d={type:a,managerClerkIds:c=c.join(","),noPreCherkIds:o,allowCherkIds:n.join(","),allowDepartIds:l.join(","),parentId:t.departInfo.parentId,name:t.departInfo.name};t.isAddNew||(d.groupId=t.$route.query.departmentId);var u=t.isAddNew?"/haoban-manage-web/dept/insert":"/haoban-manage-web/dept/update";Object(r.a)(u,d).then(function(i){1==i.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功!"}),"continue"==e?(t.departInfo={name:"",parentName:"",parentId:""},t.disabled=!0,t.getGroupData()):window.history.go(-1)):t.$message.error({duration:1e3,message:i.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})})},getGroupData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isAddNew||this.getDepartInfo(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"add-department-container"},["group"==e.$route.query.type?i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("部门信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[i("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),e.isAddNew?e._e():i("el-form-item",{attrs:{label:"部门负责人"}},[i("ul",{staticClass:"particular-list",staticStyle:{"margin-bottom":"0",width:"380px"}},[e._l(e.departInfo.managerClerkList,function(t,a){return[i("li",{key:a+"_"+t.id,staticClass:"item person-item",staticStyle:{"margin-top":"0"}},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrentManager(t)}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",staticStyle:{"margin-top":"0"},on:{click:function(t){e.callPerSelector("selectManager",e.departInfo.managerClerkList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)]),e._v(" "),i("el-form-item",{attrs:{label:"部门排序调整",prop:"chainName"}},[i("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.chainName,callback:function(t){e.$set(e.departInfo,"chainName",t)},expression:"departInfo.chainName"}})],1)],1)],1):i("div",{staticClass:"setting-cell depart-info"},[i("p",{staticClass:"title"},[e._v("企业信息")]),e._v(" "),i("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[i("el-form-item",{attrs:{label:"企业名称",prop:"name"}},[i("el-input",{attrs:{disabled:""},model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1)],1)],1),e._v(" "),e.isAddNew?e._e():i("div",{staticClass:"setting-cell m-b-48"},[i("p",{staticClass:"title"},[e._v("权限设置")]),e._v(" "),e.disabled?e._e():i("permission-setting",{attrs:{departInfo:e.departInfo,selfButList:e.selfButList,selfSpecialList:e.selfSpecialList,butList:e.butList,specialList:e.specialList,visibleSpecialLsit:e.testList,onlySelfApartList:e.testList,treeData:e.treeData},on:{callPerSelector:e.callPerSelector}})],1),e._v(" "),i("div",{staticClass:"setting-cell fixed-footer"},[i("div",{staticClass:"btn-area"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保 存")]),e._v(" "),e.isAddNew?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):"group"==e.$route.query.type?i("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删 除")]):e._e(),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)]),e._v(" "),i("vue-select-employee",{attrs:{changed:e.changed,onlyPerson:e.onlyPerson,onlyGroup:e.onlyGroup,defaultSelection:e.defaultSelection,treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("3fSj")},null,null);t.default=c.exports},HKlq:function(e,t){},n7j5:function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),n={name:"select-area",components:{vueSelectEmployee:i("c4uw").a},props:{treeData:{type:Object,default:function(){return{}}},butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}}},data:function(){return{copyTreeData:JSON.parse(s()(this.treeData))}},methods:{delCurrent:function(e,t){var i=this[t];i.splice(i.indexOf(e),1)},handleSelectedList:function(e){this.butList=e},callSelector:function(e,t){this.$emit("callPerSelector",e,t)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-area"},[i("div",{staticClass:"setting-name"},[e._v("\n 个别员工不设置该权限\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.butList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"butList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("but",e.butList)}}},[i("i",{staticClass:"el-icon-plus"})])],2),e._v(" "),i("div",{staticClass:"setting-name"},[e._v("\n 允许指定部门/人员可见\n ")]),e._v(" "),i("ul",{staticClass:"particular-list"},[e._l(e.specialList,function(t,a){return[t.employeeClerkId?i("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[t.headPic?i("img",{attrs:{src:t.headPic}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),i("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})]):i("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(i){e.delCurrent(t,"specialList")}}})])]}),e._v(" "),i("li",{staticClass:"item J_add-btn",on:{click:function(t){e.callSelector("special",e.specialList)}}},[i("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var l={name:"permissionSetting",components:{selectArea:i("VU/8")(n,r,!1,function(e){i("HKlq")},null,null).exports},props:{butList:{type:Array,default:function(){return[]}},specialList:{type:Array,default:function(){return[]}},selfButList:{type:Array,default:function(){return[]}},selfSpecialList:{type:Array,default:function(){return[]}},visibleSpecialLsit:{type:Array,default:function(){return[]}},onlySelfApartList:{type:Array,default:function(){return[]}},treeData:{type:Object,default:function(){return{}}},departInfo:{type:Object,default:function(){return{}}}},data:function(){return{visibleThere:!1,visibleSelf:!1}},methods:{switchPermission:function(e,t,i){e&&(this[i]=!e),this.visibleSelf?this.departInfo.type=2:this.visibleThere?this.departInfo.type=1:this.departInfo.type=""},callPerSelector:function(e,t){this.$emit("callPerSelector",e,t)}},mounted:function(){var e=this.departInfo.type;this.visibleThere=!(1!=e),this.visibleSelf=!(2!=e)},watch:{departInfo:{handler:function(e,t){var i=e.type;this.visibleThere=!(1!=i),this.visibleSelf=!(2!=i)},deep:!0}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"jurisdiction-setting"},[i("div",{staticClass:"only-visivble-there permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见本部门员工")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleThere,"visibleThere","visibleSelf")}},model:{value:e.visibleThere,callback:function(t){e.visibleThere=t},expression:"visibleThere"}})],1),e._v(" "),e.visibleThere?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.butList,specialList:e.specialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()]),e._v(" "),i("div",{staticClass:"only-visivble-self permission-div"},[i("div",{staticClass:"permission-div-title"},[i("span",[e._v("本部门员工仅可见自己")]),e._v(" "),i("el-switch",{attrs:{"active-color":"#409EFF","inactive-color":"#DCDFE6"},on:{change:function(t){e.switchPermission(e.visibleSelf,"visibleSelf","visibleThere")}},model:{value:e.visibleSelf,callback:function(t){e.visibleSelf=t},expression:"visibleSelf"}})],1),e._v(" "),e.visibleSelf?i("div",{staticClass:"particular-setting"},[i("select-area",{attrs:{treeData:e.treeData,butList:e.selfButList,specialList:e.selfSpecialList},on:{callPerSelector:e.callPerSelector}})],1):e._e()])])},staticRenderFns:[]};var c=i("VU/8")(l,o,!1,function(e){i("wVEX")},null,null);t.a=c.exports},wVEX:function(e,t){}});
\ No newline at end of file
webpackJsonp([18],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1}},beforeMount:function(){this.$route.query.clerkId?this.isAddnew=!1:this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{isAddnew:this.isAddnew}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var s=r("VU/8")(o,a,!1,function(e){r("GrJx")},null,null);t.default=s.exports},GrJx:function(e,t){},X8e4:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("Ie7z"),o=r("P9l9"),a={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""}},components:{vueSelectStore:n.a},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){if(t)return/^1[34578]\d{9}$/.test(t)?r():r(new Error("手机号格式不正确"));return r(new Error("请输入手机号"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"blur"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e[0].label,this.clerkInfo.storeId=e[0].id},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||""},a=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(a,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?e.clerkInfo=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},s={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("el-input",{attrs:{disabled:!e.isAddnew},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("el-input",{model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("el-input",{model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"store"},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var i=r("VU/8")(a,s,!1,function(e){r("X8e4")},null,null);t.a=i.exports}});
\ No newline at end of file
webpackJsonp([20],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1}},beforeMount:function(){this.$route.query.clerkId?this.isAddnew=!1:this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{isAddnew:this.isAddnew}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var s=r("VU/8")(o,a,!1,function(e){r("GrJx")},null,null);t.default=s.exports},GrJx:function(e,t){},X8e4:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("Ie7z"),o=r("P9l9"),a={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""}},components:{vueSelectStore:n.a},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){if(t)return/^1[34578]\d{9}$/.test(t)?r():r(new Error("手机号格式不正确"));return r(new Error("请输入手机号"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"blur"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e[0].label,this.clerkInfo.storeId=e[0].id},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||""},a=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(a,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?e.clerkInfo=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},s={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("el-input",{attrs:{disabled:!e.isAddnew},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("el-input",{model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("el-input",{model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"store"},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var i=r("VU/8")(a,s,!1,function(e){r("X8e4")},null,null);t.a=i.exports}});
\ No newline at end of file
webpackJsonp([19],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),o=i("P9l9"),n=i("O3H5"),l={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:n.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"在职员工",path:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.raw.type,i="application/vnd.ms-excel"===e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e;return i||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),i},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.raw.type;if(!("application/vnd.ms-excel"===a||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===a))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[i("div",{staticClass:"tip"}),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("cHyZ")},null,null);e.default=r.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),o=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("wEsK")},null,null);e.a=r.exports},cHyZ:function(t,e){},wEsK:function(t,e){}});
\ No newline at end of file
webpackJsonp([21],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),o=i("P9l9"),n=i("O3H5"),l={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:n.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"在职员工",path:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.raw.type,i="application/vnd.ms-excel"===e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e;return i||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),i},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.raw.type;if(!("application/vnd.ms-excel"===a||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===a))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[i("div",{staticClass:"tip"}),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("cHyZ")},null,null);e.default=r.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),o=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("wEsK")},null,null);e.a=r.exports},cHyZ:function(t,e){},wEsK:function(t,e){}});
\ No newline at end of file
webpackJsonp([20],{"/spz":function(e,t){},NdyB:function(e,t){},Xwfy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),l=r("mvHQ"),i=r.n(l),o=r("gBtx"),n=r.n(o),c=r("3Xzz"),d=r("fZjL"),u=r.n(d),h={name:"set-permiss-data",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},title:{type:String}},data:function(){return{defaultSelection:this.value||[]}},methods:{delCurrent:function(e,t){t.splice(e,1)},updateList:function(e){this.$emit("input",e)},handleSelectedList:function(e){},showSelector:function(){this.$emit("showSelect")}},watch:{value:function(e,t){this.defaultSelection=e}},mounted:function(){this.defaultSelection=this.value}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"select-area"},[r("div",{staticClass:"setting-name",staticStyle:{"font-size":"14px",color:"#606266"}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),r("ul",{staticClass:"particular-list"},[e._l(e.defaultSelection,function(t,a){return[1==t.type||t.employeeClerkId?r("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[r("div",{class:["img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]),e._v(" "),r("p",{staticClass:"name"},[e._v(e._s(t.name||t.label))])]):e._e(),e._v(" "),2==t.type||3==t.type||t.storeId||t.groupId?r("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.name||t.label)+"\n "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]):e._e()]}),e._v(" "),r("li",{staticClass:"item J_add-btn flex flex-align-center flex-pack-center",on:{click:e.showSelector}},[r("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var p=r("VU/8")(h,m,!1,function(e){r("swl9")},null,null).exports,f=r("c4uw"),v=r("Ie7z"),b=r("3E4D"),S=r("Ch4/"),g=r("PI0u"),C=r("P9l9"),w={name:"",props:{authData:{type:[Object,Array],default:function(){return{}}},permType:{type:[Number,String]}},data:function(){return{projectName:"",ruleForm:{radio:1,visibleAll:[],visibleStoreAll:[]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,changed:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{changeRadio:function(e){this.ruleForm.visibleAll=[],this.ruleForm.visibleStoreAll=[]},submitForm:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r={allowCherkIds:[],allowDepartIds:[],allowStoreIds:[],brandId:t.ruleForm.brandId,groupId:t.ruleForm.groupId,radio:t.ruleForm.radio};3!=t.ruleForm.radio||t.ruleForm.visibleAll.length&&t.ruleForm.visibleStoreAll.length?(3==t.ruleForm.radio&&(t.ruleForm.visibleAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)&&r.allowDepartIds.push(e.id)}),t.ruleForm.visibleStoreAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):e.hasOwnProperty("storeId")?r.allowStoreIds.push(e.storeId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)?r.allowDepartIds.push(e.id):3===n()(e.type)&&r.allowStoreIds.push(e.id)})),t.setStoreAuth(r,t.permType)):t.$message.error({duration:1e3,message:"请选择指定部门/人员"})})},500),setStoreAuth:function(e,t){var r=this,a={type:t,brandId:e.brandId,groupId:e.groupId,storeEmployeeAuth:e.radio,storeManagerAuth:e.radio,allowCherkIds:e.allowCherkIds.join(","),allowDepartIds:e.allowDepartIds.join(","),allowStoreIds:e.allowStoreIds.join(",")};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",a).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleAuthData:function(e){var t=this;u()(e).length&&(t.ruleForm.brandId=e.brandId,t.ruleForm.groupId=e.groupId,1===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeEmployeeAuth||1,e.employeeAuthList.length&&e.employeeAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.employeeAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll),2===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeManagerAuth||1,e.managerAuthList.length&&e.managerAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.managerAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll))},showSelect:function(e){if("store"===e)return this.defaultStoreList=this.ruleForm.visibleStoreAll,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},this.defaultSelection=this.ruleForm.visibleAll},handleSelectedList:function(e){this.defaultSelection=e,this.ruleForm.visibleAll=e},handleSelectedStoreList:function(e){this.defaultStoreList=e,this.ruleForm.visibleStoreAll=e},getDepartData:function(e){var t=this;Object(C.c)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(e){var r=e.data;if(1!=r.errorCode)S.a.errorMsg(r);else if(r.result){var a=[],s=[];1==e.data.errorCode&&(a=e.data.result.departmentList||[],s=e.data.result.searchList||[]),t.treeData={treeData:a,personData:s},t.$forceUpdate()}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{authData:function(e,t){this.handleAuthData(e)}},mounted:function(){this.handleAuthData(this.authData),this.getDepartData()},components:{setPermissData:p,vueSelectEmployee:f.a,vueSelectStore:v.a}},k={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"permiss-wrap"},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",model:e.ruleForm}},[r("el-radio-group",{on:{change:e.changeRadio},model:{value:e.ruleForm.radio,callback:function(t){e.$set(e.ruleForm,"radio",t)},expression:"ruleForm.radio"}},[r("el-form-item",{attrs:{label:1==e.permType?"店员可见权限":"店长可见权限"}},[r("el-radio",{attrs:{label:1}},[e._v("可见所有品牌门店架构和行政架构")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:2}},[e._v("门店仅可见自己门店")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:3}},[e._v("自定义可见权限")])],1),e._v(" "),3==e.ruleForm.radio?r("div",{staticClass:"permiss-child-cell"},[r("setPermissData",{attrs:{title:"允许行政架构可见"},on:{showSelect:function(t){e.showSelect("depart")}},model:{value:e.ruleForm.visibleAll,callback:function(t){e.$set(e.ruleForm,"visibleAll",t)},expression:"ruleForm.visibleAll"}}),e._v(" "),r("setPermissData",{attrs:{title:"允许门店架构可见"},on:{showSelect:function(t){e.showSelect("store")}},model:{value:e.ruleForm.visibleStoreAll,callback:function(t){e.$set(e.ruleForm,"visibleStoreAll",t)},expression:"ruleForm.visibleStoreAll"}})],1):e._e()],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedStoreList}})],1)},staticRenderFns:[]};var I=r("VU/8")(w,k,!1,function(e){r("NdyB")},"data-v-4e62f171",null).exports,y={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"",brandList:[],switchList:{addName:"新增门店成员",addStoreClerkCheck:!1,delName:"删除门店成员",deleteStoreClerkCheck:!1,modName:"门店信息变更",storeInformationChangeCheck:!1}}},computed:{},methods:{handleClick:function(e,t){this.getStoreAuth(e.name,n()(e.index)),this.activeName=e.name},saveSwitch:Object(g.a)(function(){var e=JSON.parse(i()(this.switchList));e.addStoreClerkCheck=1==e.addStoreClerkCheck?1:0,e.deleteStoreClerkCheck=1==e.deleteStoreClerkCheck?1:0,e.storeInformationChangeCheck=1==e.storeInformationChangeCheck?1:0,this.setStoreAuth(e)},600),setStoreAuth:function(e){var t=this,r={brandId:e.brandId,groupId:t.activeName,addStoreClerkCheck:e.addStoreClerkCheck,deleteStoreClerkCheck:e.deleteStoreClerkCheck,storeInformationChangeCheck:e.storeInformationChangeCheck};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",r).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreAuth:function(e,t){var r=this,a={groupId:e};Object(C.c)("/haoban-manage-web/brand/storeAuth",a).then(function(e){var t=e.data;if(1!=t.errorCode)S.a.errorMsg(t);else if(t.result){r.brandList.clerkData=t.result,r.brandList.managerData=t.result;var a=t.result.brandDTO;a.addStoreClerkCheck=1==a.addStoreClerkCheck,a.deleteStoreClerkCheck=1==a.deleteStoreClerkCheck,a.storeInformationChangeCheck=1==a.storeInformationChangeCheck,r.switchList=s()(r.switchList,a),r.$forceUpdate()}}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getBrandData:function(){var e=this;Object(C.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?S.a.errorMsg(r):r.result&&r.result.length&&(e.brandList=r.result,e.activeName=r.result[0].groupId,e.getStoreAuth(r.result[0].groupId,0))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData()},components:{navCrumb:c.a,setPermiss:I}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storePermission-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{background:"unset",padding:"0"}},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.brandList,function(e,t){return[r("el-tab-pane",{key:"name"+t,attrs:{label:e.name,name:e.groupId}})]})],2),e._v(" "),r("div",{staticClass:"storePermission-title font-w-500"},[e._v("\n 门店成员通讯录可见权限\n ")]),e._v(" "),r("div",{staticClass:"bg-fff permiss-contain"},[r("set-permiss",{attrs:{permType:1,authData:e.brandList.clerkData}}),e._v(" "),r("div",{staticClass:"b-l"}),e._v(" "),r("set-permiss",{attrs:{permType:2,authData:e.brandList.managerData}})],1),e._v(" "),r("div",{staticClass:"storePermission-wrap-switch m-t-24"},[r("div",{staticClass:"storePermission-switch-title font-w-500"},[e._v("\n 门店信息变更是否需要审核\n ")]),e._v(" "),r("div",{staticClass:"storePermission-switch-body"},[r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.addName},model:{value:e.switchList.addStoreClerkCheck,callback:function(t){e.$set(e.switchList,"addStoreClerkCheck",t)},expression:"switchList.addStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.delName},model:{value:e.switchList.deleteStoreClerkCheck,callback:function(t){e.$set(e.switchList,"deleteStoreClerkCheck",t)},expression:"switchList.deleteStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell p-l-94"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveSwitch}},[e._v("保 存")])],1)])])],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var F=r("VU/8")(y,A,!1,function(e){r("/spz")},"data-v-3879a8f2",null);t.default=F.exports},swl9:function(e,t){}});
\ No newline at end of file
webpackJsonp([22],{"/spz":function(e,t){},NdyB:function(e,t){},Xwfy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),l=r("mvHQ"),i=r.n(l),o=r("gBtx"),n=r.n(o),c=r("3Xzz"),d=r("fZjL"),u=r.n(d),h={name:"set-permiss-data",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},title:{type:String}},data:function(){return{defaultSelection:this.value||[]}},methods:{delCurrent:function(e,t){t.splice(e,1)},updateList:function(e){this.$emit("input",e)},handleSelectedList:function(e){},showSelector:function(){this.$emit("showSelect")}},watch:{value:function(e,t){this.defaultSelection=e}},mounted:function(){this.defaultSelection=this.value}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"select-area"},[r("div",{staticClass:"setting-name",staticStyle:{"font-size":"14px",color:"#606266"}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),r("ul",{staticClass:"particular-list"},[e._l(e.defaultSelection,function(t,a){return[1==t.type||t.employeeClerkId?r("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[r("div",{class:["img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]),e._v(" "),r("p",{staticClass:"name"},[e._v(e._s(t.name||t.label))])]):e._e(),e._v(" "),2==t.type||3==t.type||t.storeId||t.groupId?r("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.name||t.label)+"\n "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]):e._e()]}),e._v(" "),r("li",{staticClass:"item J_add-btn flex flex-align-center flex-pack-center",on:{click:e.showSelector}},[r("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var p=r("VU/8")(h,m,!1,function(e){r("swl9")},null,null).exports,f=r("c4uw"),v=r("Ie7z"),b=r("3E4D"),S=r("Ch4/"),g=r("PI0u"),C=r("P9l9"),w={name:"",props:{authData:{type:[Object,Array],default:function(){return{}}},permType:{type:[Number,String]}},data:function(){return{projectName:"",ruleForm:{radio:1,visibleAll:[],visibleStoreAll:[]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,changed:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{changeRadio:function(e){this.ruleForm.visibleAll=[],this.ruleForm.visibleStoreAll=[]},submitForm:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r={allowCherkIds:[],allowDepartIds:[],allowStoreIds:[],brandId:t.ruleForm.brandId,groupId:t.ruleForm.groupId,radio:t.ruleForm.radio};3!=t.ruleForm.radio||t.ruleForm.visibleAll.length&&t.ruleForm.visibleStoreAll.length?(3==t.ruleForm.radio&&(t.ruleForm.visibleAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)&&r.allowDepartIds.push(e.id)}),t.ruleForm.visibleStoreAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):e.hasOwnProperty("storeId")?r.allowStoreIds.push(e.storeId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)?r.allowDepartIds.push(e.id):3===n()(e.type)&&r.allowStoreIds.push(e.id)})),t.setStoreAuth(r,t.permType)):t.$message.error({duration:1e3,message:"请选择指定部门/人员"})})},500),setStoreAuth:function(e,t){var r=this,a={type:t,brandId:e.brandId,groupId:e.groupId,storeEmployeeAuth:e.radio,storeManagerAuth:e.radio,allowCherkIds:e.allowCherkIds.join(","),allowDepartIds:e.allowDepartIds.join(","),allowStoreIds:e.allowStoreIds.join(",")};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",a).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleAuthData:function(e){var t=this;u()(e).length&&(t.ruleForm.brandId=e.brandId,t.ruleForm.groupId=e.groupId,1===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeEmployeeAuth||1,e.employeeAuthList.length&&e.employeeAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.employeeAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll),2===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeManagerAuth||1,e.managerAuthList.length&&e.managerAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.managerAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll))},showSelect:function(e){if("store"===e)return this.defaultStoreList=this.ruleForm.visibleStoreAll,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},this.defaultSelection=this.ruleForm.visibleAll},handleSelectedList:function(e){this.defaultSelection=e,this.ruleForm.visibleAll=e},handleSelectedStoreList:function(e){this.defaultStoreList=e,this.ruleForm.visibleStoreAll=e},getDepartData:function(e){var t=this;Object(C.c)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(e){var r=e.data;if(1!=r.errorCode)S.a.errorMsg(r);else if(r.result){var a=[],s=[];1==e.data.errorCode&&(a=e.data.result.departmentList||[],s=e.data.result.searchList||[]),t.treeData={treeData:a,personData:s},t.$forceUpdate()}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{authData:function(e,t){this.handleAuthData(e)}},mounted:function(){this.handleAuthData(this.authData),this.getDepartData()},components:{setPermissData:p,vueSelectEmployee:f.a,vueSelectStore:v.a}},k={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"permiss-wrap"},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",model:e.ruleForm}},[r("el-radio-group",{on:{change:e.changeRadio},model:{value:e.ruleForm.radio,callback:function(t){e.$set(e.ruleForm,"radio",t)},expression:"ruleForm.radio"}},[r("el-form-item",{attrs:{label:1==e.permType?"店员可见权限":"店长可见权限"}},[r("el-radio",{attrs:{label:1}},[e._v("可见所有品牌门店架构和行政架构")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:2}},[e._v("门店仅可见自己门店")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:3}},[e._v("自定义可见权限")])],1),e._v(" "),3==e.ruleForm.radio?r("div",{staticClass:"permiss-child-cell"},[r("setPermissData",{attrs:{title:"允许行政架构可见"},on:{showSelect:function(t){e.showSelect("depart")}},model:{value:e.ruleForm.visibleAll,callback:function(t){e.$set(e.ruleForm,"visibleAll",t)},expression:"ruleForm.visibleAll"}}),e._v(" "),r("setPermissData",{attrs:{title:"允许门店架构可见"},on:{showSelect:function(t){e.showSelect("store")}},model:{value:e.ruleForm.visibleStoreAll,callback:function(t){e.$set(e.ruleForm,"visibleStoreAll",t)},expression:"ruleForm.visibleStoreAll"}})],1):e._e()],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedStoreList}})],1)},staticRenderFns:[]};var I=r("VU/8")(w,k,!1,function(e){r("NdyB")},"data-v-4e62f171",null).exports,y={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"",brandList:[],switchList:{addName:"新增门店成员",addStoreClerkCheck:!1,delName:"删除门店成员",deleteStoreClerkCheck:!1,modName:"门店信息变更",storeInformationChangeCheck:!1}}},computed:{},methods:{handleClick:function(e,t){this.getStoreAuth(e.name,n()(e.index)),this.activeName=e.name},saveSwitch:Object(g.a)(function(){var e=JSON.parse(i()(this.switchList));e.addStoreClerkCheck=1==e.addStoreClerkCheck?1:0,e.deleteStoreClerkCheck=1==e.deleteStoreClerkCheck?1:0,e.storeInformationChangeCheck=1==e.storeInformationChangeCheck?1:0,this.setStoreAuth(e)},600),setStoreAuth:function(e){var t=this,r={brandId:e.brandId,groupId:t.activeName,addStoreClerkCheck:e.addStoreClerkCheck,deleteStoreClerkCheck:e.deleteStoreClerkCheck,storeInformationChangeCheck:e.storeInformationChangeCheck};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",r).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreAuth:function(e,t){var r=this,a={groupId:e};Object(C.c)("/haoban-manage-web/brand/storeAuth",a).then(function(e){var t=e.data;if(1!=t.errorCode)S.a.errorMsg(t);else if(t.result){r.brandList.clerkData=t.result,r.brandList.managerData=t.result;var a=t.result.brandDTO;a.addStoreClerkCheck=1==a.addStoreClerkCheck,a.deleteStoreClerkCheck=1==a.deleteStoreClerkCheck,a.storeInformationChangeCheck=1==a.storeInformationChangeCheck,r.switchList=s()(r.switchList,a),r.$forceUpdate()}}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getBrandData:function(){var e=this;Object(C.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?S.a.errorMsg(r):r.result&&r.result.length&&(e.brandList=r.result,e.activeName=r.result[0].groupId,e.getStoreAuth(r.result[0].groupId,0))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData()},components:{navCrumb:c.a,setPermiss:I}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storePermission-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{background:"unset",padding:"0"}},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.brandList,function(e,t){return[r("el-tab-pane",{key:"name"+t,attrs:{label:e.name,name:e.groupId}})]})],2),e._v(" "),r("div",{staticClass:"storePermission-title font-w-500"},[e._v("\n 门店成员通讯录可见权限\n ")]),e._v(" "),r("div",{staticClass:"bg-fff permiss-contain"},[r("set-permiss",{attrs:{permType:1,authData:e.brandList.clerkData}}),e._v(" "),r("div",{staticClass:"b-l"}),e._v(" "),r("set-permiss",{attrs:{permType:2,authData:e.brandList.managerData}})],1),e._v(" "),r("div",{staticClass:"storePermission-wrap-switch m-t-24"},[r("div",{staticClass:"storePermission-switch-title font-w-500"},[e._v("\n 门店信息变更是否需要审核\n ")]),e._v(" "),r("div",{staticClass:"storePermission-switch-body"},[r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.addName},model:{value:e.switchList.addStoreClerkCheck,callback:function(t){e.$set(e.switchList,"addStoreClerkCheck",t)},expression:"switchList.addStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.delName},model:{value:e.switchList.deleteStoreClerkCheck,callback:function(t){e.$set(e.switchList,"deleteStoreClerkCheck",t)},expression:"switchList.deleteStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell p-l-94"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveSwitch}},[e._v("保 存")])],1)])])],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var F=r("VU/8")(y,A,!1,function(e){r("/spz")},"data-v-3879a8f2",null);t.default=F.exports},swl9:function(e,t){}});
\ No newline at end of file
webpackJsonp([21],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("wJ+N")},"data-v-d1f21788",null);s.default=r.exports},"wJ+N":function(t,s){}});
\ No newline at end of file
webpackJsonp([23],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("wJ+N")},"data-v-d1f21788",null);s.default=r.exports},"wJ+N":function(t,s){}});
\ No newline at end of file
webpackJsonp([22],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("OomG")},"data-v-8b7bcf04",null);s.default=c.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},OomG:function(t,s){}});
\ No newline at end of file
webpackJsonp([24],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("OomG")},"data-v-8b7bcf04",null);s.default=c.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"},OomG:function(t,s){}});
\ No newline at end of file
webpackJsonp([23],{"+XV0":function(t,e){},t1ZC:function(t,e){},yuVF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("gBtx"),o=a.n(i),l=a("mvHQ"),r=a.n(l),n=a("c4uw"),c=a("Ie7z"),p=a("P9l9"),d=a("3E4D"),u=a("Ch4/"),m={name:"visiable-dialog",props:{showDialog:{type:Boolean,default:!1},appId:{type:String,default:""},appName:{type:String,default:""}},components:{vueSelectEmployee:n.a,vueSelectStore:c.a},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{appId:this.appId,displayType:"0",data:[],departList:[],storeList:[]},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDialog")},showDialogLayer:function(t,e){if(this.selectType=t,this.changed=t,"store"===t)return this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},"people"===t&&(this.onlyPerson=!1,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}),this.defaultSelection=e,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(t){console.log(t),"store"===this.selectType?this.formData.storeList=t:this.formData.departList=t},customConfirm:function(){if(0!=this.formData.displayType)if(this.formData.departList.length||this.formData.storeList.length){var t=[];this.formData.departList.length&&this.formData.departList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.formData.storeList.length&&this.formData.storeList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.setData(t)}else this.$message.error({duration:1e3,message:"请选择可见人员"});else this.setData([])},setData:function(t){var e=this,a={appId:this.appId,displayType:parseInt(e.formData.displayType),data:r()(t)};Object(p.c)("/haoban-manage-web/application-right-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("设置成功","success"),void e.hideDialog();u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getSetData:function(){var t=this,e={appId:t.formData.appId};Object(p.c)("/haoban-manage-web/application-right-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.formData.displayType=String(a.result.displayType),void(a.result.displayRelation&&a.result.displayRelation.length&&(t.formData.departList=[],t.formData.storeList=[],a.result.displayRelation.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.lable=e.name,e.isStore?t.formData.storeList.push(e):t.formData.departList.push(e)}),t.defaultSelection=t.formData.departList,t.defaultStoreList=t.formData.storeList));u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showDialog:function(t,e){this.customDialog=t},appId:function(t,e){this.formData.appId=t,t&&this.getSetData()}},mounted:function(){this.customDialog=this.showDialog,this.appId&&this.getSetData()}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"app-dialog",attrs:{title:t.appName,visible:t.customDialog,width:"476px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"app-dialog-body"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"可见范围"}},[a("div",[a("el-radio",{attrs:{label:"0"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("全部员工")])],1),t._v(" "),a("div",[a("el-radio",{attrs:{label:"1"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("部分员工")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.displayType,expression:"formData.displayType == 1"}]},[a("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(e){t.showDialogLayer("depart",t.formData.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.departList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.departList)}}})])]})],2)])])])])]),t._v(" "),a("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.formData.storeList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.storeList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.storeList)}}})])]})],2)])])])])])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)]),t._v(" "),a("vue-select-employee",{attrs:{defaultSelection:t.defaultSelection,onlyPerson:t.onlyPerson,treeSet:t.treeSet,changed:t.changed},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:t.storeTreeSet,selectType:"all",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(m,f,!1,function(t){a("+XV0")},"data-v-51fc52ae",null).exports,g={name:"apps",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"企业应用",path:""}],appList:[],roleCode:"",appName:"",appId:"",showDialog:!1}},computed:{},methods:{showPeople:function(t){if("master_admin"!=this.roleCode&&"admin"!=this.roleCode)return this.$message.error({duration:1e3,message:"暂无操作权限"}),!1;this.appName=t.name,this.appId=t.appId,this.showDialog=!0},hideDialog:function(){this.appName="",this.showDialog=!1},changeSwitch:function(t){var e=this;if("master_admin"!=e.roleCode)return e.$message.error({duration:1e3,message:"暂无操作权限"}),!1;e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){})},postSwitch:function(t){var e=this,a={appId:t.appId,status:2==t.status?1:2};Object(p.a)("/haoban-manage-web/application-on-off",a).then(function(t){var e=t.data;1!=e.errorCode?u.a.errorMsg(e):d.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toAppDetail:function(t){0==t.appType?this.$router.push(t.appUrl+"?appId="+t.id):window.open(t.appUrl)},getAppList:function(t){var e=this;Object(p.a)("/haoban-manage-web/application-rigth-list",{}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):a.result&&a.result.appList&&(e.appList=a.result.appList,e.roleCode=a.result.roleCode)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppList()},components:{navCrumb:s.a,visiableDialog:h}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"apps-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"apps-content"},[a("div",{staticClass:"apps-content-title"},[t._v("基础应用")]),t._v(" "),a("div",{staticClass:"apps-content-body m-t-24"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.appList,function(e,s){return a("li",{key:e.appId+s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.appBackgroudColor},on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("i",{class:["iconfont",e.appIcon]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-8",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[t._v(t._s(e.appName))]),t._v(" "),a("div",{staticClass:"cell-arrow-down"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right color-909399"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.showPeople(e)}}},[t._v("可见人群")])]),t._v(" "),a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.status?"停用":"启用"))])])],1)],1)],1)])}))])])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("visiableDialog",{attrs:{appId:t.appId,appName:t.appName,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(g,v,!1,function(t){a("t1ZC")},"data-v-d8e4c8ec",null);e.default=D.exports}});
\ No newline at end of file
webpackJsonp([25],{"+XV0":function(t,e){},MuPa:function(t,e){},yuVF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("gBtx"),o=a.n(i),l=a("mvHQ"),r=a.n(l),n=a("c4uw"),p=a("Ie7z"),c=a("P9l9"),d=a("3E4D"),u=a("Ch4/"),m={name:"visiable-dialog",props:{showDialog:{type:Boolean,default:!1},appId:{type:String,default:""},appName:{type:String,default:""}},components:{vueSelectEmployee:n.a,vueSelectStore:p.a},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,formData:{appId:this.appId,displayType:"0",data:[],departList:[],storeList:[]},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){},methods:{handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDialog")},showDialogLayer:function(t,e){if(this.selectType=t,this.changed=t,"store"===t)return this.defaultStoreList=e,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},"people"===t&&(this.onlyPerson=!1,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}),this.defaultSelection=e,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(t){console.log(t),"store"===this.selectType?this.formData.storeList=t:this.formData.departList=t},customConfirm:function(){if(0!=this.formData.displayType)if(this.formData.departList.length||this.formData.storeList.length){var t=[];this.formData.departList.length&&this.formData.departList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.formData.storeList.length&&this.formData.storeList.forEach(function(e){t.push({id:e.id,type:e.hasOwnProperty("employeeClerkId")?1:e.hasOwnProperty("groupId")?2:3})}),this.setData(t)}else this.$message.error({duration:1e3,message:"请选择可见人员"});else this.setData([])},setData:function(t){var e=this,a={appId:this.appId,displayType:parseInt(e.formData.displayType),data:r()(t)};Object(c.c)("/haoban-manage-web/application-right-save",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("设置成功","success"),void e.hideDialog();u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getSetData:function(){var t=this,e={appId:t.formData.appId};Object(c.c)("/haoban-manage-web/application-right-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.formData.displayType=String(a.result.displayType),void(a.result.displayRelation&&a.result.displayRelation.length&&(t.formData.departList=[],t.formData.storeList=[],a.result.displayRelation.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.lable=e.name,e.isStore?t.formData.storeList.push(e):t.formData.departList.push(e)}),t.defaultSelection=t.formData.departList,t.defaultStoreList=t.formData.storeList));u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showDialog:function(t,e){this.customDialog=t},appId:function(t,e){this.formData.appId=t,t&&this.getSetData()}},mounted:function(){this.customDialog=this.showDialog,this.appId&&this.getSetData()}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"app-dialog",attrs:{title:t.appName,visible:t.customDialog,width:"476px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"app-dialog-body"},[a("el-form",{ref:"form",attrs:{model:t.formData,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"可见范围"}},[a("div",[a("el-radio",{attrs:{label:"0"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("全部员工")])],1),t._v(" "),a("div",[a("el-radio",{attrs:{label:"1"},model:{value:t.formData.displayType,callback:function(e){t.$set(t.formData,"displayType",e)},expression:"formData.displayType"}},[t._v("部分员工")])],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.formData.displayType,expression:"formData.displayType == 1"}]},[a("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(e){t.showDialogLayer("depart",t.formData.departList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.departList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.departList)}}})])]})],2)])])])])]),t._v(" "),a("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[a("div",{staticClass:"flex w-380 flex-column item-cell-select"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.formData.storeList)}}},[a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.formData.storeList,function(e,s){return[a("span",{key:s,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(s,t.formData.storeList)}}})])]})],2)])])])])])],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)]),t._v(" "),a("vue-select-employee",{attrs:{defaultSelection:t.defaultSelection,onlyPerson:t.onlyPerson,treeSet:t.treeSet,changed:t.changed},on:{handleSelectedList:t.handleSelectedList}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:t.storeTreeSet,selectType:"all",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var h=a("VU/8")(m,f,!1,function(t){a("+XV0")},"data-v-51fc52ae",null).exports,g={name:"apps",data:function(){return{tableH:window.screen.availHeight-464-126+"px",navpath:[{name:"首页",path:"/index"},{name:"企业应用",path:""}],appList:[],roleCode:"",appName:"",appId:"",showDialog:!1}},computed:{},methods:{showPeople:function(t){if("master_admin"!=this.roleCode&&"admin"!=this.roleCode)return this.$message.error({duration:1e3,message:"暂无操作权限"}),!1;this.appName=t.name,this.appId=t.appId,this.showDialog=!0},hideDialog:function(){this.appName="",this.showDialog=!1},changeSwitch:function(t){var e=this;if("master_admin"!=e.roleCode)return e.$message.error({duration:1e3,message:"暂无操作权限"}),!1;e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){})},postSwitch:function(t){var e=this,a={appId:t.appId,status:2==t.status?1:2};Object(c.a)("/haoban-manage-web/application-on-off",a).then(function(t){var e=t.data;1!=e.errorCode?u.a.errorMsg(e):d.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toAppDetail:function(t){0==t.appType?this.$router.push(t.appUrl+"?appId="+t.appId):window.open(t.appUrl)},getAppList:function(t){var e=this;Object(c.a)("/haoban-manage-web/application-rigth-list",{}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):a.result&&a.result.appList&&(e.appList=a.result.appList,e.roleCode=a.result.roleCode)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getAppList()},components:{navCrumb:s.a,visiableDialog:h}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"apps-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"apps-content"},[a("div",{staticClass:"apps-content-title"},[t._v("基础应用")]),t._v(" "),a("div",{staticClass:"apps-content-body m-t-24"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.appList,function(e,s){return a("li",{key:e.appId+s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.appBackgroudColor},on:{click:function(a){a.stopPropagation(),t.toAppDetail(e)}}},[a("i",{class:["iconfont",e.appIcon]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-8",on:{click:function(a){if(a.target!==a.currentTarget)return null;t.toAppDetail(e)}}},[t._v(t._s(e.appName))]),t._v(" "),a("div",{staticClass:"cell-arrow-down"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right color-909399"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.showPeople(e)}}},[t._v("可见人群")])]),t._v(" "),a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.status?"停用":"启用"))])])],1)],1)],1)])}))])])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("visiableDialog",{attrs:{appId:t.appId,appName:t.appName,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var D=a("VU/8")(g,v,!1,function(t){a("MuPa")},"data-v-75bc6d7b",null);e.default=D.exports}});
\ No newline at end of file
webpackJsonp([24],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFj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LTAuNS0xLjQtMS4zDQoJYy0wLjEtMC43LDAuNS0xLjQsMS4zLTEuNEMxOTcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([26],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("GVON")},"data-v-34b4b20b",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5zdDJ7ZmlsbDojREVFN0Y0O30NCgkuc3Qze2ZpbGw6I0I5QzdEQjt9DQoJLnN0NHtmaWxsOiNGRkZGRkY7fQ0KCS5zdDV7ZmlsbDpub25lO3N0cm9rZTojQjlDN0RCO3N0cm9rZS13aWR0aDo0O3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Q2e2ZpbGw6bm9uZTtzdHJva2U6I0I2QzdEODtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg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C40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([25],{Z46G:function(t,e){},Zyzf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),o=a("gBtx"),n=a.n(o),l=a("3Xzz"),c=a("PI0u"),r=a("P9l9"),d=a("3E4D"),f=a("Ch4/"),u={name:"staff-detail-field",props:{showCustomDialog:{type:Boolean,default:!1},detailData:{type:Array,default:function(){return[]}},dataType:{type:Number,default:1}},data:function(){return{repProjectName:"gic-web",customDialog:!1,fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],customData:[],checkList:[],baseUrl:""}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},computed:{},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm","hide")},customConfirm:Object(c.a)(function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},500),customChange:function(t){},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(r.c)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");f.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(t){var e=t.filter(function(e){var a=t.filter(function(t){return e.fieldCode==t.parentCode});return a.length>0&&(e.children=a),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},getAllFields:function(){var t=this;Object(r.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.handleAllFields(a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this.treeData(t);e.forEach(function(t,e){t.checkList=[]}),this.customData=e},handleDetailData:function(){var t=this;t.customData.forEach(function(e,a){e.checkList=[],e.children.forEach(function(a,i){t.checkList.includes(a.fieldCode)&&e.checkList.push(a.fieldCode),a.disable=1==t.dataType?t.fixData.includes(a.fieldCode):t.fixDataStore.includes(a.fieldCode)})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},detailData:function(t,e){this.checkList=t&&t.length?t:[],this.handleDetailData()}},mounted:function(){this.customDialog=this.showCustomDialog,this.getAllFields()}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"员工个人详情页展示字段设置",visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("tips:添加后的字段将在员工个人详情页展示出来,个人敏感信息不建议添加")])]),t._v(" "),a("div",{staticClass:"custom-dialog-body"},[t._l(t.customData,function(e,i){return[a("div",{key:i,staticClass:"detail-field-cell flex"},[a("div",{staticClass:"detail-field-left"},[t._v(t._s(e.fieldName))]),t._v(" "),a("div",{staticClass:"detail-field-right flex"},[a("el-checkbox-group",{staticClass:"flex flex-wrap",on:{change:t.customChange},model:{value:e.checkList,callback:function(a){t.$set(e,"checkList",a)},expression:"item.checkList"}},t._l(e.children,function(e,i){return a("el-checkbox",{key:e.fieldCode+i,attrs:{label:e.fieldCode,disabled:e.disable,name:"type"}},[t._v("\n "+t._s(e.fieldName)+"\n ")])}))],1)])]})],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,m,!1,function(t){a("kzBV")},"data-v-1d469d6c",null).exports,v={name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"员工详细字段",path:""}],fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],adminStruct:{name:"行政架构通讯录员工详情字段",fixedList:[],defineList:[]},storeStruct:{name:"门店架构通讯录员工详情字段",fixedList:[],defineList:[]},showCustomDialog:!1,detailData:[],dataType:null}},computed:{},methods:{showDialogLayer:function(t){this.showCustomDialog=!0,this.dataType=t,this.detailData=1===t?this.adminStruct.fixedList.map(function(t){return t.fields}).concat(this.adminStruct.defineList.map(function(t){return t.fields})):this.storeStruct.fixedList.map(function(t){return t.fields}).concat(this.storeStruct.defineList.map(function(t){return t.fields}))},customHandleConfirm:function(t){if(this.showCustomDialog=!1,t)return!1;this.getSaveFields(this.dataType)},delField:function(t,e,a,i){var s=this;s.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;s.postDlField(e.fields,i,a,t)}).catch(function(){})},postDlField:function(t,e,a,i){var s=this,o={fields:t,type:e};Object(r.c)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return d.a.showmsg("删除成功","success"),void a.splice(i,1);f.a.errorMsg(e)}).catch(function(t){s.$message.error({duration:1e3,message:t.message})})},getSaveFields:function(t){var e=this;1===t?(e.adminStruct.fixedList=[],e.adminStruct.defineList=[]):(e.storeStruct.fixedList=[],e.storeStruct.defineList=[]);var a={type:t};Object(r.c)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?f.a.errorMsg(i):i.result.forEach(function(a,i){1===n()(t)?e.fixData.includes(a.fields)?e.adminStruct.fixedList.push(a):e.adminStruct.defineList.push(a):e.fixDataStore.includes(a.fields)?e.storeStruct.fixedList.push(a):e.storeStruct.defineList.push(a)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:h}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"staffDetails-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight,"overflow-y":"auto"}},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.adminStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.adminStruct.fixedList,function(e,i){return[a("el-button",{key:"btn1"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.adminStruct.defineList,function(e,i){return[a("el-tag",{key:"tag1"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.adminStruct.defineList,1)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(1)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.storeStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.storeStruct.fixedList,function(e,i){return[a("el-button",{key:"btn"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.storeStruct.defineList,function(e,i){return[a("el-tag",{key:"tag"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.storeStruct.defineList,2)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(2)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("staff-detail-field",{attrs:{detailData:t.detailData,showCustomDialog:t.showCustomDialog,dataType:t.dataType},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[]};var g=a("VU/8")(v,p,!1,function(t){a("Z46G")},"data-v-575a9b1d",null);e.default=g.exports},kzBV:function(t,e){}});
\ No newline at end of file
webpackJsonp([27],{Z46G:function(t,e){},Zyzf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),o=a("gBtx"),n=a.n(o),l=a("3Xzz"),c=a("PI0u"),r=a("P9l9"),d=a("3E4D"),f=a("Ch4/"),u={name:"staff-detail-field",props:{showCustomDialog:{type:Boolean,default:!1},detailData:{type:Array,default:function(){return[]}},dataType:{type:Number,default:1}},data:function(){return{repProjectName:"gic-web",customDialog:!1,fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],customData:[],checkList:[],baseUrl:""}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=t},computed:{},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm","hide")},customConfirm:Object(c.a)(function(){this.checkList=this.customData.map(function(t){return t.checkList}).flat(),this.saveFields(this.dataType)},500),customChange:function(t){},saveFields:function(t){var e=this,a={fields:e.checkList,type:t};Object(r.c)("/haoban-manage-web/record/employee-show-field-save.json",a).then(function(t){var a=t.data;if(1==a.errorCode)return d.a.showmsg("添加成功","success"),void e.$emit("customHandleConfirm");f.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},treeData:function(t){var e=t.filter(function(e){var a=t.filter(function(t){return e.fieldCode==t.parentCode});return a.length>0&&(e.children=a),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},getAllFields:function(){var t=this;Object(r.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.handleAllFields(a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this.treeData(t);e.forEach(function(t,e){t.checkList=[]}),this.customData=e},handleDetailData:function(){var t=this;t.customData.forEach(function(e,a){e.checkList=[],e.children.forEach(function(a,i){t.checkList.includes(a.fieldCode)&&e.checkList.push(a.fieldCode),a.disable=1==t.dataType?t.fixData.includes(a.fieldCode):t.fixDataStore.includes(a.fieldCode)})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},detailData:function(t,e){this.checkList=t&&t.length?t:[],this.handleDetailData()}},mounted:function(){this.customDialog=this.showCustomDialog,this.getAllFields()}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"员工个人详情页展示字段设置",visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("tips:添加后的字段将在员工个人详情页展示出来,个人敏感信息不建议添加")])]),t._v(" "),a("div",{staticClass:"custom-dialog-body"},[t._l(t.customData,function(e,i){return[a("div",{key:i,staticClass:"detail-field-cell flex"},[a("div",{staticClass:"detail-field-left"},[t._v(t._s(e.fieldName))]),t._v(" "),a("div",{staticClass:"detail-field-right flex"},[a("el-checkbox-group",{staticClass:"flex flex-wrap",on:{change:t.customChange},model:{value:e.checkList,callback:function(a){t.$set(e,"checkList",a)},expression:"item.checkList"}},t._l(e.children,function(e,i){return a("el-checkbox",{key:e.fieldCode+i,attrs:{label:e.fieldCode,disabled:e.disable,name:"type"}},[t._v("\n "+t._s(e.fieldName)+"\n ")])}))],1)])]})],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,m,!1,function(t){a("kzBV")},"data-v-1d469d6c",null).exports,v={name:"staffDetails",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"员工详细字段",path:""}],fixData:["clerkName","clerkPhone","groupName","positionName"],fixDataStore:["clerkName","clerkPhone","groupName","positionName","clerkCode"],adminStruct:{name:"行政架构通讯录员工详情字段",fixedList:[],defineList:[]},storeStruct:{name:"门店架构通讯录员工详情字段",fixedList:[],defineList:[]},showCustomDialog:!1,detailData:[],dataType:null}},computed:{},methods:{showDialogLayer:function(t){this.showCustomDialog=!0,this.dataType=t,this.detailData=1===t?this.adminStruct.fixedList.map(function(t){return t.fields}).concat(this.adminStruct.defineList.map(function(t){return t.fields})):this.storeStruct.fixedList.map(function(t){return t.fields}).concat(this.storeStruct.defineList.map(function(t){return t.fields}))},customHandleConfirm:function(t){if(this.showCustomDialog=!1,t)return!1;this.getSaveFields(this.dataType)},delField:function(t,e,a,i){var s=this;s.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;s.postDlField(e.fields,i,a,t)}).catch(function(){})},postDlField:function(t,e,a,i){var s=this,o={fields:t,type:e};Object(r.c)("/haoban-manage-web/record/employee-show-field-delete.json",o).then(function(t){var e=t.data;if(1==e.errorCode)return d.a.showmsg("删除成功","success"),void a.splice(i,1);f.a.errorMsg(e)}).catch(function(t){s.$message.error({duration:1e3,message:t.message})})},getSaveFields:function(t){var e=this;1===t?(e.adminStruct.fixedList=[],e.adminStruct.defineList=[]):(e.storeStruct.fixedList=[],e.storeStruct.defineList=[]);var a={type:t};Object(r.c)("/haoban-manage-web/record/employee-show-field-detail.json",a).then(function(a){var i=a.data;1!=i.errorCode?f.a.errorMsg(i):i.result.forEach(function(a,i){1===n()(t)?e.fixData.includes(a.fields)?e.adminStruct.fixedList.push(a):e.adminStruct.defineList.push(a):e.fixDataStore.includes(a.fields)?e.storeStruct.fixedList.push(a):e.storeStruct.defineList.push(a)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){s.a.all([this.getSaveFields(1),this.getSaveFields(2)])},components:{navCrumb:l.a,staffDetailField:h}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"staffDetails-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight,"overflow-y":"auto"}},[a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.adminStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.adminStruct.fixedList,function(e,i){return[a("el-button",{key:"btn1"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.adminStruct.defineList,function(e,i){return[a("el-tag",{key:"tag1"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.adminStruct.defineList,1)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(1)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)]),t._v(" "),a("div",{staticClass:"staffDetails-cell"},[a("h2",{staticClass:"m-b-25 font-w-500"},[t._v(t._s(t.storeStruct.name))]),t._v(" "),a("div",{staticClass:"staffDetails-cell-fixed"},[t._l(t.storeStruct.fixedList,function(e,i){return[a("el-button",{key:"btn"+i,staticClass:"staffDetails-cell-btn",attrs:{disabled:""}},[t._v(t._s(e.fieldName))])]})],2),t._v(" "),a("div",{staticClass:"staffDetails-cell-add font-0"},[t._l(t.storeStruct.defineList,function(e,i){return[a("el-tag",{key:"tag"+i,staticClass:"staffDetails-cell-btn"},[t._v(t._s(e.fieldName)+" "),a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){a.stopPropagation(),t.delField(i,e,t.storeStruct.defineList,2)}}})])]}),t._v(" "),a("el-button",{staticClass:"el-tag m-l-8 staffDetails-cell-btn",on:{click:function(e){e.stopPropagation(),t.showDialogLayer(2)}}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加字段")])],2)])])]),t._v(" "),a("vue-gic-footer"),t._v(" "),a("staff-detail-field",{attrs:{detailData:t.detailData,showCustomDialog:t.showCustomDialog,dataType:t.dataType},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[]};var g=a("VU/8")(v,p,!1,function(t){a("Z46G")},"data-v-575a9b1d",null);e.default=g.exports},kzBV:function(t,e){}});
\ No newline at end of file
webpackJsonp([26],{"1iH0":function(t,e){},"4WGk":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),o=a.n(s),n=a("P9l9"),i=a("3E4D"),c=a("Ch4/"),r={name:"custom-dialog",props:{showCustomDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:""}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,customData:[],checkList:[]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(t){},setData:function(t){var e=this,a={viewIdList:t},s="data"==e.customType?"/haoban-manage-web/home/set-display-enterprise-data":"/haoban-manage-web/home/set-display-quick-entry";Object(n.b)(s,a).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("设置成功","success"),void e.$emit("customHandleConfirm");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(){var t=this,e={all:!0};"data"==t.customType&&(e.fetchData=!1);var a="data"==t.customType?"/haoban-manage-web/home/find-enterprise-data":"/haoban-manage-web/home/find-quick-entry";t.checkList=[],Object(n.c)(a,e).then(function(e){var a=e.data;if(1==a.errorCode){var s=[];return a.result.forEach(function(e,a){e.homeDisplay&&("data"==t.customType?s.push(e.dataViewId):s.push(e.settingViewId))}),t.customData=a.result,void(t.checkList=s)}c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},customType:function(t,e){t&&this.getCardList()}},mounted:function(){this.customDialog=this.showCustomDialog}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"自定义"+t.customTitle,visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("\n 请选择您想在首页展示的"+t._s(t.customTitle)+",还可以再勾选"),a("span",[t._v(" "+t._s(8-t.checkList.length)+" ")]),t._v("个\n ")])]),t._v(" "),a("div",{staticClass:"custom-dialog__checkbox"},[a("el-checkbox-group",{attrs:{max:8},on:{change:t.customChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},["data"===t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.dataViewId,attrs:{label:e.dataViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e(),t._v(" "),"data"!=t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.settingViewId,attrs:{label:e.settingViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e()],2)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var u={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",bannerList:[],companyObj:{},dataOverview:[],entryData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},showDialogLayer:function(t){this.showCustomDialog=!0,this.customType=t,this.customTitle="data"==t?"数据概览":"快捷操作"},customHandleConfirm:function(t){this.showCustomDialog=!1,"data"===this.customType?this.getDataOverview():this.getEntryData()},toCertify:function(t){1!=t&&this.changeRoute("/companyCertify")},getBannerData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-advertisement",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.bannerList=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.companyObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getDataOverview:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-data",{all:!1,fetchData:!0}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.dataOverview=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEntryData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-quick-entry",{all:!1}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.entryData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",o.a.all([this.getBannerData(),this.getDataOverview(),this.getEntryData(),this.getEnterpriseData()])},components:{customDialog:a("VU/8")(r,l,!1,function(t){a("1iH0")},"data-v-15921097",null).exports}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-swiper"},[a("el-carousel",{attrs:{trigger:"click",height:"250px",arrow:"never",autoplay:!1}},t._l(t.bannerList,function(t,e){return a("el-carousel-item",{key:e},[a("a",{staticClass:"index-swiper-bg",style:{backgroundImage:"url("+t.imgUrl+")"},attrs:{href:1==t.linkType?"#"+t.linkUrl:t.linkUrl,target:"_blank",rel:"nofollow noopener noreferrer"}})])}))],1),t._v(" "),a("div",{staticClass:"index-company flex flex-row m-t-24"},[a("div",{staticClass:"index-company-left m-r-24 border-box radius-2"},[a("div",{staticClass:"index-company-logo"},[t.companyObj.logoUrl?a("div",{staticClass:"index-company-logo_img"},[a("img",{attrs:{src:t.companyObj.logoUrl,alt:"log"}})]):a("div",{staticClass:"default-logo-bg"},[a("i",{staticClass:"iconfont icon-2zuzhijiagou default-logo"})])]),t._v(" "),a("div",{staticClass:"index-company-name color-303133"},[t._v(t._s(t.companyObj.enterpriseName))]),t._v(" "),a("ul",[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("账户余额")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.balance))])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业编码")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.enterpriseCode))])]),t._v(" "),a("li",{staticClass:"flex flex-between",on:{click:function(e){t.toCertify(t.companyObj.authenticationStatus)}}},[a("span",[t._v("企业认证")]),a("span",{class:[1==t.companyObj.authenticationStatus?"authActive":0==t.companyObj.authenticationStatus?"unAuth":2==t.companyObj.authenticationStatus?"auth-ing":"auth-fail"]},[1==t.companyObj.authenticationStatus||0==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-renzheng p-r-6 "}):t._e(),2==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng1 p-r-6 "}):t._e(),3==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng2 p-r-6 "}):t._e(),t._v(t._s(1==t.companyObj.authenticationStatus?"已认证":0==t.companyObj.authenticationStatus?"未认证":2==t.companyObj.authenticationStatus?"认证中":"认证失败")+" ")])]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"index-company-right radius-2"},[a("div",{staticClass:"index-company-right__head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("数据概览")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("data")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-company-right__body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.dataOverview,function(e,s){return a("li",{key:s},[a("div",{staticClass:"color-606266 font-16 data-name"},[t._v(t._s(e.fieldTitle))]),t._v(" "),a("div",{staticClass:"color-303133 font-30 data-num font-w-500"},[t._v(t._s(e.fieldData))])])}))])])]),t._v(" "),a("div",{staticClass:"index-entry m-t-24 radius-2"},[a("div",{staticClass:"index-entry-head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("快捷入口")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("entry")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-entry-body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.entryData,function(e,s){return a("li",{key:s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){t.changeRoute(e.fieldUrl)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.fieldIconBgColor}},[a("i",{class:["iconfont",e.fieldIconUrl]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-20"},[t._v(t._s(e.fieldTitle))])])}))])])]),t._v(" "),a("vue-gic-footer")],1),t._v(" "),a("custom-dialog",{attrs:{customTitle:t.customTitle,customType:t.customType,showCustomDialog:t.showCustomDialog},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex flex-between"},[e("span",[this._v("帮助手册")]),e("a",{attrs:{href:"../../assets/1.pdf",download:"帮助手册.pdf"}},[e("span",{staticClass:"color-1890ff"},[this._v("立即下载"),e("i",{staticClass:"el-icon-arrow-right"})])])])}]};var m=a("VU/8")(u,d,!1,function(t){a("4WGk")},"data-v-3c3d91d6",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([28],{"1iH0":function(t,e){},"4WGk":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),o=a.n(s),n=a("P9l9"),i=a("3E4D"),c=a("Ch4/"),r={name:"custom-dialog",props:{showCustomDialog:{type:Boolean,default:!1},customType:{type:String,default:""},customTitle:{type:String,default:""}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:!1,customData:[],checkList:[]}},beforeMount:function(){},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("customHandleConfirm")},customConfirm:function(){if(!this.checkList.length)return this.$message.error({duration:1e3,message:"请选择操作"}),!1;this.setData(this.checkList)},customChange:function(t){},setData:function(t){var e=this,a={viewIdList:t},s="data"==e.customType?"/haoban-manage-web/home/set-display-enterprise-data":"/haoban-manage-web/home/set-display-quick-entry";Object(n.b)(s,a).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("设置成功","success"),void e.$emit("customHandleConfirm");c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(){var t=this,e={all:!0};"data"==t.customType&&(e.fetchData=!1);var a="data"==t.customType?"/haoban-manage-web/home/find-enterprise-data":"/haoban-manage-web/home/find-quick-entry";t.checkList=[],Object(n.c)(a,e).then(function(e){var a=e.data;if(1==a.errorCode){var s=[];return a.result.forEach(function(e,a){e.homeDisplay&&("data"==t.customType?s.push(e.dataViewId):s.push(e.settingViewId))}),t.customData=a.result,void(t.checkList=s)}c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{showCustomDialog:function(t,e){this.customDialog=t},customType:function(t,e){t&&this.getCardList()}},mounted:function(){this.customDialog=this.showCustomDialog}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"自定义"+t.customTitle,visible:t.customDialog,width:"761px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"custom-dialog__title"},[a("p",{staticClass:"custom-dialog__p"},[t._v("\n 请选择您想在首页展示的"+t._s(t.customTitle)+",还可以再勾选"),a("span",[t._v(" "+t._s(8-t.checkList.length)+" ")]),t._v("个\n ")])]),t._v(" "),a("div",{staticClass:"custom-dialog__checkbox"},[a("el-checkbox-group",{attrs:{max:8},on:{change:t.customChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},["data"===t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.dataViewId,attrs:{label:e.dataViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e(),t._v(" "),"data"!=t.customType?t._l(t.customData,function(e){return a("el-checkbox",{key:e.settingViewId,attrs:{label:e.settingViewId,name:"type"}},[t._v(t._s(e.fieldTitle))])}):t._e()],2)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.customConfirm}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var u={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",bannerList:[],companyObj:{},dataOverview:[],entryData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},showDialogLayer:function(t){this.showCustomDialog=!0,this.customType=t,this.customTitle="data"==t?"数据概览":"快捷操作"},customHandleConfirm:function(t){this.showCustomDialog=!1,"data"===this.customType?this.getDataOverview():this.getEntryData()},toCertify:function(t){1!=t&&this.changeRoute("/companyCertify")},getBannerData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-advertisement",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.bannerList=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.companyObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getDataOverview:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-data",{all:!1,fetchData:!0}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.dataOverview=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getEntryData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-quick-entry",{all:!1}).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.entryData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px",o.a.all([this.getBannerData(),this.getDataOverview(),this.getEntryData(),this.getEnterpriseData()])},components:{customDialog:a("VU/8")(r,l,!1,function(t){a("1iH0")},"data-v-15921097",null).exports}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body",style:{minHeight:t.contentHeight}},[a("div",{staticClass:"index-swiper"},[a("el-carousel",{attrs:{trigger:"click",height:"250px",arrow:"never",autoplay:!1}},t._l(t.bannerList,function(t,e){return a("el-carousel-item",{key:e},[a("a",{staticClass:"index-swiper-bg",style:{backgroundImage:"url("+t.imgUrl+")"},attrs:{href:1==t.linkType?"#"+t.linkUrl:t.linkUrl,target:"_blank",rel:"nofollow noopener noreferrer"}})])}))],1),t._v(" "),a("div",{staticClass:"index-company flex flex-row m-t-24"},[a("div",{staticClass:"index-company-left m-r-24 border-box radius-2"},[a("div",{staticClass:"index-company-logo"},[t.companyObj.logoUrl?a("div",{staticClass:"index-company-logo_img"},[a("img",{attrs:{src:t.companyObj.logoUrl,alt:"log"}})]):a("div",{staticClass:"default-logo-bg"},[a("i",{staticClass:"iconfont icon-2zuzhijiagou default-logo"})])]),t._v(" "),a("div",{staticClass:"index-company-name color-303133"},[t._v(t._s(t.companyObj.enterpriseName))]),t._v(" "),a("ul",[a("li",{staticClass:"flex flex-between"},[a("span",[t._v("账户余额")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.balance))])]),t._v(" "),a("li",{staticClass:"flex flex-between"},[a("span",[t._v("企业编码")]),a("span",{staticClass:"color-303133 font-16"},[t._v(t._s(t.companyObj.enterpriseCode))])]),t._v(" "),a("li",{staticClass:"flex flex-between",on:{click:function(e){t.toCertify(t.companyObj.authenticationStatus)}}},[a("span",[t._v("企业认证")]),a("span",{class:[1==t.companyObj.authenticationStatus?"authActive":0==t.companyObj.authenticationStatus?"unAuth":2==t.companyObj.authenticationStatus?"auth-ing":"auth-fail"]},[1==t.companyObj.authenticationStatus||0==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-renzheng p-r-6 "}):t._e(),2==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng1 p-r-6 "}):t._e(),3==t.companyObj.authenticationStatus?a("i",{staticClass:"iconfont icon-qiyerenzheng2 p-r-6 "}):t._e(),t._v(t._s(1==t.companyObj.authenticationStatus?"已认证":0==t.companyObj.authenticationStatus?"未认证":2==t.companyObj.authenticationStatus?"认证中":"认证失败")+" ")])]),t._v(" "),t._m(0)])]),t._v(" "),a("div",{staticClass:"index-company-right radius-2"},[a("div",{staticClass:"index-company-right__head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("数据概览")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("data")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-company-right__body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.dataOverview,function(e,s){return a("li",{key:s},[a("div",{staticClass:"color-606266 font-16 data-name"},[t._v(t._s(e.fieldTitle))]),t._v(" "),a("div",{staticClass:"color-303133 font-30 data-num font-w-500"},[t._v(t._s(e.fieldData))])])}))])])]),t._v(" "),a("div",{staticClass:"index-entry m-t-24 radius-2"},[a("div",{staticClass:"index-entry-head flex flex-between border-box border-b-e4e7e7"},[a("span",{staticClass:"color-303133 font-16 font-w-500"},[t._v("快捷入口")]),a("span",{staticClass:"auto-define",on:{click:function(e){t.showDialogLayer("entry")}}},[a("i",{staticClass:"iconfont icon-zidingyi color-909399"})])]),t._v(" "),a("div",{staticClass:"index-entry-body p-24 border-box"},[a("ul",{staticClass:"flex flex-row flex-wrap"},t._l(t.entryData,function(e,s){return a("li",{key:s,staticClass:"flex flex-align-center border-box flex",on:{click:function(a){t.changeRoute(e.fieldUrl)}}},[a("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:e.fieldIconBgColor}},[a("i",{class:["iconfont",e.fieldIconUrl]})]),t._v(" "),a("span",{staticClass:"color-303133 font-16 p-l-20"},[t._v(t._s(e.fieldTitle))])])}))])])]),t._v(" "),a("vue-gic-footer")],1),t._v(" "),a("custom-dialog",{attrs:{customTitle:t.customTitle,customType:t.customType,showCustomDialog:t.showCustomDialog},on:{customHandleConfirm:t.customHandleConfirm}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"flex flex-between"},[e("span",[this._v("帮助手册")]),e("a",{attrs:{href:"../../assets/1.pdf",download:"帮助手册.pdf"}},[e("span",{staticClass:"color-1890ff"},[this._v("立即下载"),e("i",{staticClass:"el-icon-arrow-right"})])])])}]};var m=a("VU/8")(u,d,!1,function(t){a("4WGk")},"data-v-3c3d91d6",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([27],{"9me0":function(e,t){},HkK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),r={name:"clerkTbale",components:{vueSelectStore:a("Ie7z").a},props:{store:{type:Object,required:!0}},data:function(){return{treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0},selectType:"store",transArr:[],selectedList:[]}},methods:{goBack:function(){window.location.reload()},transClerk:function(e,t){this.transArr="single"==e?[t]:"all"==e?this.store.clerks:this.selectedList,this.treeSet.dialogVisible=!0},delClerk:function(e){this.$emit("delClerk",e)},selectMember:function(e){this.selectedList=e},handleSelectedList:function(e){var t=[];this.transArr.forEach(function(e){t.push(e.employeeClerkId)});var a={ids:t.join(","),storeId:e[0].id},r=this;Object(s.a)("/haoban-manage-web/emp/batchTransfer",a).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),r.store.clerks.forEach(function(e){if(t.indexOf(e.employeeClerkId)>-1){var a=r.store.clerks.indexOf(e);r.store.clerks.splice(a,1)}})):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recycle-bin"},[a("p",{staticClass:"r-b-top-header"},[a("a",{staticClass:"a-href title",on:{click:e.goBack}},[e._v("返回")]),e._v(" "),a("el-button",{attrs:{disabled:0==e.selectedList.length},on:{click:function(t){e.transClerk("group")}}},[e._v("批量转移")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.transClerk("all")}}},[e._v("全部转移")])],1),e._v(" "),a("el-table",{ref:"clerkTable",staticStyle:{width:"100%"},attrs:{data:e.store.clerks},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"80",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.transClerk("single",t.row)}}},[a("i",{staticClass:"el-icon-sort"})]),e._v(" "),a("a",{staticClass:"a-href",on:{click:function(a){e.delClerk(t.row)}}},[a("i",{staticClass:"el-icon-delete"})])]}}])})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=a("VU/8")(r,n,!1,function(e){a("9me0")},null,null).exports,o={name:"recycle-bin",components:{navCrumb:a("3Xzz").a,clerkTable:l},data:function(){return{tableH:window.screen.availHeight-440-180,searchKey:"",typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],pageSize:20,pageNumber:1,recycleList:[],total:0,navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame?showRecycle=0"},{name:"门店回收站",path:""}],clerks:[],showClerks:!1,currentStore:{}}},methods:{getRecycleList:function(){var e=this,t=e.$route.query,a={storeGroupId:t.dept,showChild:1*t.showChild,showType:2,pageSize:e.pageSize,pageNumber:e.pageNumber,status:4,storeType:t.type};Object(s.a)("/haoban-manage-web/store/findSimplePage",a).then(function(t){1==t.data.errorCode?(e.total=t.data.result.total,e.recycleList=t.data.result.list||[]):(e.recycleList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},restore:function(e){var t=this;t.$confirm("确定要恢复到门店列表吗?","提示",{type:"warning"}).then(function(){var a={status:1,storeId:e.storeId};Object(s.a)("/haoban-manage-web/store/changeStatus",a).then(function(e){1==e.data.errorCode?(t.searchKey="",t.getRecycleList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.getRecycleList()},handleCurrentChange:function(e){this.pageNumber=e,this.getRecycleList()},showClerksFn:function(e){this.currentStore=e,this.clerks=null==e.clerks?[]:e.clerks,this.showClerks=!0},delClerk:function(e){var t=this.currentStore,a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};Object(s.a)("/haoban-manage-web/emp/del",r).then(function(s){1==s.data.errorCode?t.clerks.forEach(function(a){a.employeeClerkId==e.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(a),1)}):a.$message.error({duration:1e3,message:s.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})}},beforeMount:function(){this.getRecycleList()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap recycle-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[e.showClerks?a("clerk-table",{attrs:{store:e.currentStore},on:{delClerk:e.delClerk}}):a("div",{staticClass:"recycle-bin"},[a("div",{staticClass:"r-b-top-header"},[a("div",{staticClass:"title"},[e._v(e._s(e.recycleList.length)+" 家门店")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入门店名","prefix-icon":"el-icon-search"},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{height:e.recycleList.length?e.tableH:"auto",data:e.recycleList.filter(function(t){return!e.searchKey||t.storeName.toLowerCase().includes(e.searchKey.toLowerCase())})}},[a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地址",prop:"postAddress"}}),e._v(" "),a("el-table-column",{attrs:{label:"待处理店员",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.showClerksFn(t.row)}}},[e._v("\n "+e._s(t.row.clerks.length)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.restore(t.row)}}},[e._v("恢复到门店列表")])]}}])})],1),e._v(" "),e.total?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var i=a("VU/8")(o,c,!1,function(e){a("c3Wn")},null,null);t.default=i.exports},c3Wn:function(e,t){}});
\ No newline at end of file
webpackJsonp([29],{"9me0":function(e,t){},HkK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),r={name:"clerkTbale",components:{vueSelectStore:a("Ie7z").a},props:{store:{type:Object,required:!0}},data:function(){return{treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0},selectType:"store",transArr:[],selectedList:[]}},methods:{goBack:function(){window.location.reload()},transClerk:function(e,t){this.transArr="single"==e?[t]:"all"==e?this.store.clerks:this.selectedList,this.treeSet.dialogVisible=!0},delClerk:function(e){this.$emit("delClerk",e)},selectMember:function(e){this.selectedList=e},handleSelectedList:function(e){var t=[];this.transArr.forEach(function(e){t.push(e.employeeClerkId)});var a={ids:t.join(","),storeId:e[0].id},r=this;Object(s.a)("/haoban-manage-web/emp/batchTransfer",a).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),r.store.clerks.forEach(function(e){if(t.indexOf(e.employeeClerkId)>-1){var a=r.store.clerks.indexOf(e);r.store.clerks.splice(a,1)}})):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recycle-bin"},[a("p",{staticClass:"r-b-top-header"},[a("a",{staticClass:"a-href title",on:{click:e.goBack}},[e._v("返回")]),e._v(" "),a("el-button",{attrs:{disabled:0==e.selectedList.length},on:{click:function(t){e.transClerk("group")}}},[e._v("批量转移")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.transClerk("all")}}},[e._v("全部转移")])],1),e._v(" "),a("el-table",{ref:"clerkTable",staticStyle:{width:"100%"},attrs:{data:e.store.clerks},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"80",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.transClerk("single",t.row)}}},[a("i",{staticClass:"el-icon-sort"})]),e._v(" "),a("a",{staticClass:"a-href",on:{click:function(a){e.delClerk(t.row)}}},[a("i",{staticClass:"el-icon-delete"})])]}}])})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=a("VU/8")(r,n,!1,function(e){a("9me0")},null,null).exports,o={name:"recycle-bin",components:{navCrumb:a("3Xzz").a,clerkTable:l},data:function(){return{tableH:window.screen.availHeight-440-180,searchKey:"",typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],pageSize:20,pageNumber:1,recycleList:[],total:0,navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame?showRecycle=0"},{name:"门店回收站",path:""}],clerks:[],showClerks:!1,currentStore:{}}},methods:{getRecycleList:function(){var e=this,t=e.$route.query,a={storeGroupId:t.dept,showChild:1*t.showChild,showType:2,pageSize:e.pageSize,pageNumber:e.pageNumber,status:4,storeType:t.type};Object(s.a)("/haoban-manage-web/store/findSimplePage",a).then(function(t){1==t.data.errorCode?(e.total=t.data.result.total,e.recycleList=t.data.result.list||[]):(e.recycleList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},restore:function(e){var t=this;t.$confirm("确定要恢复到门店列表吗?","提示",{type:"warning"}).then(function(){var a={status:1,storeId:e.storeId};Object(s.a)("/haoban-manage-web/store/changeStatus",a).then(function(e){1==e.data.errorCode?(t.searchKey="",t.getRecycleList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.getRecycleList()},handleCurrentChange:function(e){this.pageNumber=e,this.getRecycleList()},showClerksFn:function(e){this.currentStore=e,this.clerks=null==e.clerks?[]:e.clerks,this.showClerks=!0},delClerk:function(e){var t=this.currentStore,a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};Object(s.a)("/haoban-manage-web/emp/del",r).then(function(s){1==s.data.errorCode?t.clerks.forEach(function(a){a.employeeClerkId==e.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(a),1)}):a.$message.error({duration:1e3,message:s.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})})}},beforeMount:function(){this.getRecycleList()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap recycle-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[e.showClerks?a("clerk-table",{attrs:{store:e.currentStore},on:{delClerk:e.delClerk}}):a("div",{staticClass:"recycle-bin"},[a("div",{staticClass:"r-b-top-header"},[a("div",{staticClass:"title"},[e._v(e._s(e.recycleList.length)+" 家门店")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入门店名","prefix-icon":"el-icon-search"},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{height:e.recycleList.length?e.tableH:"auto",data:e.recycleList.filter(function(t){return!e.searchKey||t.storeName.toLowerCase().includes(e.searchKey.toLowerCase())})}},[a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地址",prop:"postAddress"}}),e._v(" "),a("el-table-column",{attrs:{label:"待处理店员",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.showClerksFn(t.row)}}},[e._v("\n "+e._s(t.row.clerks.length)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.restore(t.row)}}},[e._v("恢复到门店列表")])]}}])})],1),e._v(" "),e.total?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var i=a("VU/8")(o,c,!1,function(e){a("c3Wn")},null,null);t.default=i.exports},c3Wn:function(e,t){}});
\ No newline at end of file
webpackJsonp([28],{"S7+X":function(e,t){},TkWn:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("//Fk"),i=r.n(a),n=r("mvHQ"),l=r.n(n),o=r("3Xzz"),s=r("l46T"),u=r("Mk6G"),c={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){},toInput:function(e){var t="";"word"==this.getByType?(t=u.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=u.a.getZhLen(this.itemValue)):(t=u.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=u.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=u.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=u.a.getZhLen(this.inputValue)}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3,disabled:e.disInput},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var m=r("VU/8")(c,h,!1,function(e){r("S7+X")},"data-v-4e422042",null).exports,p=r("3E4D"),d=r("Ch4/"),f=r("PI0u"),g=r("P9l9"),v={name:"addAdminRole",data:function(){return{menuH:window.screen.availHeight-695+"px",navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[],appRightList:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"},appDataList:[{appId:"1",appName:"签到",appDesc:"签到",appBackgroudColor:"#1890ff",appIcon:"icon-hangzhengjiagou",appType:0,status:3,remark:"",check:!1}]}},computed:{},methods:{selectApp:function(e){if(this.showFlag)return!1;e.check=!e.check},submitForm:Object(f.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;var a=[];if(t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){a.push({rightId:e})}),r.ruleForm.appRightList=[],r.appDataList.forEach(function(e){1==e.check&&r.ruleForm.appRightList.push(e.appId)}),!r.ruleForm.appRightList.length)return r.$message.error({duration:1e3,message:" 请选择应用权限"}),!1;r.postSave(a)})},500),postSave:function(e){var t=this,r={data:l()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId,appRightList:t.ruleForm.appRightList.join(",")};Object(g.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return p.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(g.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1!=r.errorCode)d.a.errorMsg(r);else{if(r.result&&r.result.length){var a=[];r.result.forEach(function(t,r){e.ruleForm.roleId&&(t.disabled=!0),t.display&&a.push(t)}),e.ruleForm.menuTree=e.treeData(a)}e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId)}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(g.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.appRightList=r.result.appRightList||[],t.ruleForm.right.length){var a=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){a.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),t.$refs.tree.setCheckedKeys(n),void t.appDataList.forEach(function(e){t.ruleForm.appRightList.includes(e.appId)&&(e.check=!0)})}d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var a=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!a,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,a){e.children&&e.children.length&&e.children.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!r)})})},getAppList:function(){var e=this;Object(g.c)("/haoban-manage-web/application-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.check=!1}),void(e.appDataList=r.result||[]);d.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("roleId")&&(e.ruleForm.roleId=e.$route.query.roleId,e.navpath[3].name="管理员角色","show"===e.$route.query.type&&(e.showFlag=!0)),e.$route.query.hasOwnProperty("brandId")&&(e.ruleForm.brandId=e.$route.query.brandId),i.a.all([e.getAppList()]).then(function(t){e.getMenuList()}).catch(function(e){})},components:{navCrumb:o.a,limitInput:s.a,limitTextarea:m}},F={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,disflag:!!e.showFlag,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",disInput:!!e.showFlag,maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{staticClass:"m-t-44",attrs:{label:"菜单权限",prop:"leftChecked"}},[r("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu",style:{"max-height":e.menuH}},[r("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],1)]),e._v(" "),r("el-form-item",{attrs:{label:"应用权限",prop:""}},[r("div",{staticClass:"apps-content"},[r("ul",{staticClass:"flex flex-row flex-wrap"},e._l(e.appDataList,function(t,a){return r("li",{key:a,class:["flex flex-align-center border-box flex",t.check?"border-active":""],on:{click:function(r){e.selectApp(t)}}},[r("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:t.appBackgroudColor}},[r("i",{class:["iconfont",t.appIcon]})]),e._v(" "),r("span",{staticClass:"color-303133 font-14 p-l-8"},[e._v(e._s(t.appName))]),e._v(" "),t.check?r("div",{staticClass:"common-cell_radio"},[r("div",{staticClass:"box-triangle"},[r("div",{staticClass:"wrap__box__outer"},[r("i",{staticClass:"el-icon-upload-success el-icon-check"})])])]):e._e()])}))])]),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var b=r("VU/8")(v,F,!1,function(e){r("TkWn")},"data-v-04a0216b",null);t.default=b.exports}});
\ No newline at end of file
webpackJsonp([30],{"S7+X":function(e,t){},TkWn:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("//Fk"),i=r.n(a),n=r("mvHQ"),l=r.n(n),o=r("3Xzz"),s=r("l46T"),u=r("Mk6G"),c={name:"limittextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},methods:{inputFocus:function(e){},toInput:function(e){var t="";"word"==this.getByType?(t=u.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=u.a.getZhLen(this.itemValue)):(t=u.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=u.a.getByteLen(this.itemValue)),this.$emit("update:inputValue",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=u.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=u.a.getZhLen(this.inputValue)}},h={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"input-line-cell",style:{width:e.inputWidth+"px"}},[r("el-input",{style:{width:e.inputWidth+"px"},attrs:{placeholder:e.holder,type:"textarea",rows:3,disabled:e.disInput},on:{focus:function(t){e.inputFocus()}},nativeOn:{keyup:function(t){return r=t,e.toInput(r);var r}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),r("span",{staticClass:"tip"},[r("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var m=r("VU/8")(c,h,!1,function(e){r("S7+X")},"data-v-4e422042",null).exports,p=r("3E4D"),d=r("Ch4/"),f=r("PI0u"),g=r("P9l9"),v={name:"addAdminRole",data:function(){return{menuH:window.screen.availHeight-695+"px",navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"新增管理员角色",path:""}],showFlag:!1,ruleForm:{roleId:"",roleName:"",remark:"角色说明",leftChecked:[],menuTree:[],left:[],rightChecked:[],right:[],leftCheckedApp:[],leftApp:[],rightCheckedApp:[],rightApp:[],appRightList:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"},appDataList:[{appId:"1",appName:"签到",appDesc:"签到",appBackgroudColor:"#1890ff",appIcon:"icon-hangzhengjiagou",appType:0,status:3,remark:"",check:!1}]}},computed:{},methods:{selectApp:function(e){if(this.showFlag)return!1;e.check=!e.check},submitForm:Object(f.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;var a=[];if(t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){a.push({rightId:e})}),r.ruleForm.appRightList=[],r.appDataList.forEach(function(e){1==e.check&&r.ruleForm.appRightList.push(e.appId)}),!r.ruleForm.appRightList.length)return r.$message.error({duration:1e3,message:" 请选择应用权限"}),!1;r.postSave(a)})},500),postSave:function(e){var t=this,r={data:l()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId,appRightList:t.ruleForm.appRightList.join(",")};Object(g.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return p.a.showmsg("操作成功","success"),void t.$router.push("/setChildAdmin");d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getMenuList:function(){var e=this;Object(g.c)("/haoban-manage-web/menu-list",{}).then(function(t){var r=t.data;if(1!=r.errorCode)d.a.errorMsg(r);else{if(r.result&&r.result.length){var a=[];r.result.forEach(function(t,r){e.ruleForm.roleId&&(t.disabled=!0),t.display&&a.push(t)}),e.ruleForm.menuTree=e.treeData(a)}e.ruleForm.roleId&&e.getRoleDetail(e.ruleForm.roleId)}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){return e.filter(function(t){var r=e.filter(function(e){return t.haobanMenuRightId==e.parentRightId});return r.length>0&&(t.children=r),-1==t.parentRightId})},getRoleDetail:function(e){var t=this,r={roleId:e};Object(g.c)("/haoban-manage-web/role-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){if(t.ruleForm.roleId=r.result.role.roleId,t.ruleForm.roleName=r.result.role.roleName,t.ruleForm.roleCode=r.result.role.roleCode,t.ruleForm.remark=r.result.role.remark,t.ruleForm.appRightList=r.result.appRightList||[],t.ruleForm.right.length){var a=t.ruleForm.right.map(function(e){return e.rightId}),i=[];r.result.menuRightList.forEach(function(e,t){a.includes(e.rightId)&&i.push(e.rightId)}),t.ruleForm.rightChecked=i}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),t.$refs.tree.setCheckedKeys(n),void t.appDataList.forEach(function(e){t.ruleForm.appRightList.includes(e.appId)&&(e.check=!0)})}d.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},leftChange:function(e,t){var r=this;r.ruleForm.leftChecked=e;var a=e.includes(t[0]);function i(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!a,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),i(),r.ruleForm.rightChecked=r.ruleForm.right.map(function(e){if(!0===e.check)return e.rightId})},rightChange:function(e,t){var r=e.includes(t[0]);this.ruleForm.rightChecked=e,this.ruleForm.left.forEach(function(e,a){e.children&&e.children.length&&e.children.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!r)})})},getAppList:function(){var e=this;Object(g.c)("/haoban-manage-web/application-list",{}).then(function(t){var r=t.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.check=!1}),void(e.appDataList=r.result||[]);d.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var e=this;e.$route.query.hasOwnProperty("roleId")&&(e.ruleForm.roleId=e.$route.query.roleId,e.navpath[3].name="管理员角色","show"===e.$route.query.type&&(e.showFlag=!0)),e.$route.query.hasOwnProperty("brandId")&&(e.ruleForm.brandId=e.$route.query.brandId),i.a.all([e.getAppList()]).then(function(t){e.getMenuList()}).catch(function(e){})},components:{navCrumb:o.a,limitInput:s.a,limitTextarea:m}},F={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.ruleForm.roleName,disflag:!!e.showFlag,holder:"请输入角色名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"roleName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色说明",prop:"remark"}},[r("limitTextarea",{attrs:{inputWidth:500,inputValue:e.ruleForm.remark,holder:"请输入角色说明",disInput:!!e.showFlag,maxLength:50},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"remark",t)}}})],1),e._v(" "),r("el-form-item",{staticClass:"m-t-44",attrs:{label:"菜单权限",prop:"leftChecked"}},[r("div",{staticClass:"w-500 border-1 p-10 border-box el-form-item_menu",style:{"max-height":e.menuH}},[r("el-tree",{ref:"tree",attrs:{data:e.ruleForm.menuTree,"show-checkbox":"","default-expand-all":"","node-key":"rightId","highlight-current":"",props:e.defaultProps}})],1)]),e._v(" "),r("el-form-item",{attrs:{label:"应用权限",prop:""}},[r("div",{staticClass:"apps-content"},[r("ul",{staticClass:"flex flex-row flex-wrap"},e._l(e.appDataList,function(t,a){return r("li",{key:a,class:["flex flex-align-center border-box flex",t.check?"border-active":""],on:{click:function(r){e.selectApp(t)}}},[r("span",{staticClass:"square-item flex flex-align-center flex-pack-center",style:{background:t.appBackgroudColor}},[r("i",{class:["iconfont",t.appIcon]})]),e._v(" "),r("span",{staticClass:"color-303133 font-14 p-l-8"},[e._v(e._s(t.appName))]),e._v(" "),t.check?r("div",{staticClass:"common-cell_radio"},[r("div",{staticClass:"box-triangle"},[r("div",{staticClass:"wrap__box__outer"},[r("i",{staticClass:"el-icon-upload-success el-icon-check"})])])]):e._e()])}))])]),e._v(" "),r("el-form-item",[r("el-button",{attrs:{disabled:!!e.showFlag,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var b=r("VU/8")(v,F,!1,function(e){r("TkWn")},"data-v-04a0216b",null);t.default=b.exports}});
\ No newline at end of file
webpackJsonp([29],{Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),l=a("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.raw.type;if(!("application/vnd.ms-excel"===s||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===s))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改好的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[t._m(1),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 如需更新已存在的员工,可逐个进行修改,或请先导出通讯录,在导出表格里进行修改\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var n=a("VU/8")(o,r,!1,function(t){a("qA8Y")},null,null);e.default=n.exports},qA8Y:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),l=a("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.raw.type;if(!("application/vnd.ms-excel"===s||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===s))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改通讯录")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改好的员工信息表\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[t._m(1),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 如需更新已存在的员工,可逐个进行修改,或请先导出通讯录,在导出表格里进行修改\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var n=a("VU/8")(o,r,!1,function(t){a("qA8Y")},null,null);e.default=n.exports},qA8Y:function(t,e){}});
\ No newline at end of file
webpackJsonp([30],{VlR1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-wrap"},[n("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:t.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("tUyM")},null,null);e.default=i.exports},tUyM:function(t,e){}});
\ No newline at end of file
webpackJsonp([32],{VlR1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"setting",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-wrap"},[n("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:t.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:t.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:t.projectName,collapseFlag:t.collapseFlag}})],1),t._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("tUyM")},null,null);e.default=i.exports},tUyM:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("ZPXI")},null,null);e.default=s.exports},ZPXI:function(t,e){}});
\ No newline at end of file
webpackJsonp([33],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("ZPXI")},null,null);e.default=s.exports},ZPXI:function(t,e){}});
\ No newline at end of file
webpackJsonp([32],{lZ7q:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]}}},computed:{},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(s.a)(function(e){this.disableBtn=!0;var t=String(e).substr(0,3)+"****"+e.substr(7,11);this.countDown(),this.$message({message:"验证码已发送到您的手机:+86 "+t,type:"success"})},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active,t.$nextTick(function(){console.log(t.$refs.newRuleForm)})})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(!e.disableBtn&&e.countNum?"获取验证码":e.countNum)+" ")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),r("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var o=r("VU/8")(n,l,!1,function(e){r("lZ7q")},"data-v-97fd277c",null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([34],{lZ7q:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]}}},computed:{},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(s.a)(function(e){this.disableBtn=!0;var t=String(e).substr(0,3)+"****"+e.substr(7,11);this.countDown(),this.$message({message:"验证码已发送到您的手机:+86 "+t,type:"success"})},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active,t.$nextTick(function(){console.log(t.$refs.newRuleForm)})})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(!e.disableBtn&&e.countNum?"获取验证码":e.countNum)+" ")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),r("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var o=r("VU/8")(n,l,!1,function(e){r("lZ7q")},"data-v-97fd277c",null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([33],{"m/Og":function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),s=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},o="";n.isAddNew?o="/haoban-manage-web/dept/insert":(o="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(s.a)(o,r).then(function(e){1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(s.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(o,i,!1,function(e){a("m/Og")},null,null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([35],{"m/Og":function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),s=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},o="";n.isAddNew?o="/haoban-manage-web/dept/insert":(o="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(s.a)(o,r).then(function(e){1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(s.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(o,i,!1,function(e){a("m/Og")},null,null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([34],{VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("3E4D"),n=a("Ch4/"),r=a("P9l9"),l={name:"setChildAdmin",data:function(){return{windowH:window.screen.availHeight-440+"px",tableH:window.screen.availHeight-440-180,navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight-20+"px",isAddAdmin:"",activeId:"",activeBrandId:"",roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:"",isEdit:0},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminRole?roleId="+this.activeId+"&type="+e+"&brandId="+this.activeBrandId)},toDelRole:function(){var e=this;e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postToDelRole()}).catch(function(){})},postToDelRole:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId};Object(r.c)("/haoban-manage-web/del-role",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("删除成功","success"),void e.getRoles();n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectRole:function(e,t){this.activeId=e.roleId,this.activeBrandId=t,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(e){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+e+"&brandId="+this.activeBrandId)},handleDel:function(e,t){var a=this;a.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,o={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.c)("/haoban-manage-web/del-role-user",o).then(function(e){var o=e.data;if(1==o.errorCode)return i.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);n.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleShow:function(e,t,a){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+a+"&userId="+t.userId+"&brandId="+this.activeBrandId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.c)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.tableData=[],!1);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(r.c)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.activeBrandId=e.roleListData[0].brandId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:o.a}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content",style:{height:e.windowH}},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},e._l(e.roleListData,function(t,o){return a("div",{key:o,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head flex"},[a("div",{staticClass:"flex-1 max-half role-cell-head_name"},[e._v(e._s(t.brandName))]),e._v(" "),t.canAddRole?a("div",{staticClass:"text-right flex-1 "},[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.changeRoute("/addAdminRole?brandId="+t.brandId)}}},[e._v("新增角色")])],1):e._e()]),e._v(" "),a("ul",e._l(t.roleList,function(o,i){return a("li",{key:i,class:["role-cell border-bottom-1",t.brandId==e.activeBrandId&&o.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(o,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(o.roleName)+"\n ")])}))])})),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between m-b-25"},[a("span",{staticClass:"font-20 color-303133"},[e._v(" "+e._s(e.roleRightObj.roleName)+" ")]),"child_admin"!=e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v(" 查看权限 ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?a("span",[e.tableData.length?e._e():a("span",{staticClass:"font-14 color-1890ff pinter p-r-6",on:{click:e.toDelRole}},[e._v(" 删除角色 ")]),a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("\n 编辑权限\n ")])]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip "},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"admin"===e.roleRightObj.roleCode?"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个":"",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.roleRightObj.isEdit?a("div",{staticClass:"role-add m-t-27"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toAddRole(e.roleRightObj.roleCode)}}},[e._v("添加成员")])],1):e._e(),e._v(" "),a("div",{class:["role-table",e.roleRightObj.isEdit?"":"m-t-27"]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:e.tableData.length?e.tableH:"auto"}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"clerkPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1==t.row.canEdit?[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleShow(t.$index,t.row,e.roleRightObj.roleCode)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]:void 0}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(l,s,!1,function(e){a("wUdP")},"data-v-879ae6c8",null);t.default=d.exports},wUdP:function(e,t){}});
\ No newline at end of file
webpackJsonp([36],{VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("3E4D"),n=a("Ch4/"),r=a("P9l9"),l={name:"setChildAdmin",data:function(){return{windowH:window.screen.availHeight-440+"px",tableH:window.screen.availHeight-440-180,navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:""}],boxHeight:window.screen.availHeight-20+"px",isAddAdmin:"",activeId:"",activeBrandId:"",roleListData:[],roleRightObj:{roleName:"超级管理员",tip:"企业的创建者,拥有企业的所有权限,只会有一个",roleCode:"",isEdit:0},tableData:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},toRoleDetail:function(e){this.changeRoute("/addAdminRole?roleId="+this.activeId+"&type="+e+"&brandId="+this.activeBrandId)},toDelRole:function(){var e=this;e.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postToDelRole()}).catch(function(){})},postToDelRole:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId};Object(r.c)("/haoban-manage-web/del-role",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("删除成功","success"),void e.getRoles();n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectRole:function(e,t){this.activeId=e.roleId,this.activeBrandId=t,this.roleRightObj=e,this.getRoleUsers()},toAddRole:function(e){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+e+"&brandId="+this.activeBrandId)},handleDel:function(e,t){var a=this;a.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(o){o.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,o={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.c)("/haoban-manage-web/del-role-user",o).then(function(e){var o=e.data;if(1==o.errorCode)return i.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);n.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleShow:function(e,t,a){this.changeRoute("/addAdmin?roleId="+this.activeId+"&roleCode="+a+"&userId="+t.userId+"&brandId="+this.activeBrandId)},handleSizeChange:function(e){this.pageSize=e,this.getRoleUsers()},handleCurrentChange:function(e){this.currentPage=e,this.getRoleUsers()},getRoleUsers:function(){var e=this,t={roleId:e.activeId,brandId:e.activeBrandId,pageSize:e.pageSize,pageNum:e.currentPage};Object(r.c)("/haoban-manage-web/role-user-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.result?(e.tableData=a.result.result,void(e.total=a.result.totalCount)):(e.tableData=[],!1);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getRoles:function(){var e=this;Object(r.c)("/haoban-manage-web/role-list",{}).then(function(t){var a=t.data;if(1==a.errorCode)return e.isAddAdmin=a.result.isAddAdmin,e.roleListData=a.result.roleList||[],void(a.result&&a.result.roleList.length&&(e.activeId=e.roleListData[0].roleList[0].roleId,e.activeBrandId=e.roleListData[0].brandId,e.roleRightObj=e.roleListData[0].roleList[0],e.getRoleUsers()));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.boxHeight=window.screen.availHeight-430+"px",this.getRoles()},components:{navCrumb:o.a}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setChildAdmin-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content",style:{height:e.windowH}},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"setChildAdmin-wrap-body flex"},[a("div",{staticClass:"setChildAdmin-wrap-left w-260",style:{height:e.boxHeight}},e._l(e.roleListData,function(t,o){return a("div",{key:o,staticClass:"m-t-20"},[a("div",{staticClass:"role-cell-head flex"},[a("div",{staticClass:"flex-1 max-half role-cell-head_name"},[e._v(e._s(t.brandName))]),e._v(" "),t.canAddRole?a("div",{staticClass:"text-right flex-1 "},[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.changeRoute("/addAdminRole?brandId="+t.brandId)}}},[e._v("新增角色")])],1):e._e()]),e._v(" "),a("ul",e._l(t.roleList,function(o,i){return a("li",{key:i,class:["role-cell border-bottom-1",t.brandId==e.activeBrandId&&o.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(o,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(o.roleName)+"\n ")])}))])})),e._v(" "),a("div",{staticClass:"setChildAdmin-wrap-right box-sizing"},[a("div",{staticClass:"role-title flex flex-between m-b-25"},[a("span",{staticClass:"font-20 color-303133"},[e._v(" "+e._s(e.roleRightObj.roleName)+" ")]),"child_admin"!=e.roleRightObj.roleCode?a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("show")}}},[e._v(" 查看权限 ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?a("span",[e.tableData.length?e._e():a("span",{staticClass:"font-14 color-1890ff pinter p-r-6",on:{click:e.toDelRole}},[e._v(" 删除角色 ")]),a("span",{staticClass:"font-14 color-1890ff pinter",on:{click:function(t){e.toRoleDetail("edit")}}},[e._v("\n 编辑权限\n ")])]):e._e()]),e._v(" "),"master_admin"===e.roleRightObj.roleCode||"admin"===e.roleRightObj.roleCode?a("div",{staticClass:"role-tip "},[a("el-alert",{attrs:{title:"master_admin"===e.roleRightObj.roleCode?"企业的创建者,拥有企业的所有权限,只会有一个":"admin"===e.roleRightObj.roleCode?"企业管理员,拥有企业的所有权限,不能创建企业管理员,可以有多个":"",type:"info",closable:!1,"show-icon":""}})],1):e._e(),e._v(" "),e.roleRightObj.isEdit?a("div",{staticClass:"role-add m-t-27"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toAddRole(e.roleRightObj.roleCode)}}},[e._v("添加成员")])],1):e._e(),e._v(" "),a("div",{class:["role-table",e.roleRightObj.isEdit?"":"m-t-27"]},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:e.tableData.length?e.tableH:"auto"}},[a("el-table-column",{attrs:{prop:"clerkName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"clerkPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"部门"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1==t.row.canEdit?[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleShow(t.$index,t.row,e.roleRightObj.roleCode)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")])]:void 0}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(l,s,!1,function(e){a("wUdP")},"data-v-879ae6c8",null);t.default=d.exports},wUdP:function(e,t){}});
\ No newline at end of file
webpackJsonp([35],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([37],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([36],{pG1l:function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),l=r.n(a),s=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.departList.length&&t.ruleForm.peopleList.length&&t.ruleForm.brandValue.length;if(a){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var l=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,l)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:l()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId,brandId:e.ruleForm.brandId};Object(d.c)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:s.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("pG1l")},"data-v-631d4238",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([38],{pG1l:function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),l=r.n(a),s=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=r("3E4D"),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.departList.length&&t.ruleForm.peopleList.length&&t.ruleForm.brandValue.length;if(a){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var l=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,l)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:l()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId,brandId:e.ruleForm.brandId};Object(d.c)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[])}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:s.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("pG1l")},"data-v-631d4238",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([37],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}});
\ No newline at end of file
webpackJsonp([39],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}});
\ No newline at end of file
webpackJsonp([38],{"7FRW":function(e,a){},AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("7FRW")},null,null);a.default=m.exports}});
\ No newline at end of file
webpackJsonp([40],{"7FRW":function(e,a){},AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("7FRW")},null,null);a.default=m.exports}});
\ No newline at end of file
webpackJsonp([39],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("P9l9"),r=a("MJLE"),i=a.n(r),o={name:"shareCode",components:{navCrumb:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=this,t={regenerate:arguments.length>0&&void 0!==arguments[0]&&arguments[0]};Object(n.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",t).then(function(t){1==t.data.errorCode?e.qrcode(t.data.result.qrCodeContent):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new i.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(n.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(n.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(o,c,!1,function(e){a("X8hA")},null,null);t.default=d.exports},X8hA:function(e,t){}});
\ No newline at end of file
webpackJsonp([41],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("P9l9"),r=a("MJLE"),i=a.n(r),o={name:"shareCode",components:{navCrumb:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=this,t={regenerate:arguments.length>0&&void 0!==arguments[0]&&arguments[0]};Object(n.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",t).then(function(t){1==t.data.errorCode?e.qrcode(t.data.result.qrCodeContent):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new i.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(n.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(n.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(o,c,!1,function(e){a("X8hA")},null,null);t.default=d.exports},X8hA:function(e,t){}});
\ No newline at end of file
webpackJsonp([40],{PlfP:function(t,e){},SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:a.a}},o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("PlfP")},"data-v-41e825a3",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([42],{PlfP:function(t,e){},SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:a.a}},o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("PlfP")},"data-v-41e825a3",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([41],{QeNa:function(t,e){},RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),l={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(o.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){},handlePreview:function(t){},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){this.fileList=e}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),a("div",{staticClass:"d-u-btn "},[a("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("\n 上传\n ")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"}),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var r=a("VU/8")(l,n,!1,function(t){a("QeNa")},null,null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([43],{QeNa:function(t,e){},RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),l={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"storeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(o.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){},handlePreview:function(t){},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){this.fileList=e}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),a("div",{staticClass:"d-u-btn "},[a("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("\n 上传\n ")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"}),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var r=a("VU/8")(l,n,!1,function(t){a("QeNa")},null,null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([43],{IA9l:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([42],{TdSt:function(t,e){},da9f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("TdSt")},"data-v-01b94d58",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([44],{TdSt:function(t,e){},da9f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("TdSt")},"data-v-01b94d58",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([44],{"5x7s":function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([5],{"28mM":function(t,a){},"2eFk":function(t,a,e){"use strict";var n={name:"common-detail-top",props:{topMenuData:{type:Array,default:function(){return[]}},activeId:{type:[String,Number],default:function(){return""}}},data:function(){return{projectName:"",topData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")}},watch:{topMenuData:function(t,a){this.topData=t}},mounted:function(){this.topData=this.topMenuData}},c={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-top"},[e("div",{staticClass:"el-tabs__header is-top"},[e("div",{staticClass:"el-tabs__nav-wrap is-top"},[e("div",{staticClass:"el-tabs__nav-scroll"},[e("ul",t._l(t.topData,function(a,n){return e("li",{key:n,class:["top-cell",a.id==t.activeId?"cell-active":""]},[t._v(t._s(a.name)+" "),t.topData.length>1?e("i",{staticClass:"el-icon-arrow-right p-lr-11"}):t._e()])}))])])])])},staticRenderFns:[]};var s=e("VU/8")(n,c,!1,function(t){e("jrfM")},"data-v-fcb7a8de",null).exports,i=e("3E4D"),r=e("Ch4/"),o=e("PI0u"),l=e("P9l9"),d={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1,chatFlag:!1},topMenuData:[{id:"1",name:"在线沟通设置"}],activeId:"1"}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=t},methods:{handleClick:function(t,a){console.log(t,a)},submit:Object(o.a)(function(t){this.setData(t)},500),setData:function(t){var a=this,e={brandId:a.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId};e[t]=a.myCustomData[t]?1:0;var n="/haoban-app-member-web/customer/save-online-chat-setting";"searchFlag"===t&&(n="/haoban-app-member-web/customer/save-customer-setting"),Object(l.c)(n,e).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):i.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={brandId:t};Object(l.c)("/haoban-app-member-web/customer/find-customer-setting",e).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):e.result&&(a.myCustomData.searchFlag=!!e.result.searchFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var a=this,e={brandId:t};Object(l.c)("/haoban-app-member-web/customer/find-online-chat-setting",e).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):e.result&&(a.myCustomData.chatFlag=!!e.result.chatFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){this.getChatSet(t),this.getCustomerSet(t)},tabType:function(t,a){1==t?(this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},components:{commonDetailTop:s}},u={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[1==t.tabType?e("div",[e("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),e("div",{staticClass:"app-detail-pane border-box p-45"},[e("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(a){t.$set(t.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[t._v("会员搜索设置")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)],1):t._e(),t._v(" "),2==t.tabType?e("div",[e("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),e("div",{staticClass:"app-detail-pane border-box p-45"},[e("el-checkbox",{model:{value:t.myCustomData.chatFlag,callback:function(a){t.$set(t.myCustomData,"chatFlag",a)},expression:"myCustomData.chatFlag"}},[t._v("在线沟通设置")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.submit("chatFlag")}}},[t._v("保 存")])],1)],1)],1):t._e()])},staticRenderFns:[]};var p=e("VU/8")(d,u,!1,function(t){e("kmB9")},"data-v-434d2ae2",null);a.a=p.exports},"5x7s":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),c=e("fvdr"),s=e("Qie6"),i={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"云日报",appIcon:"icon-ribao",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao"},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]},{tabId:"22",tabName:"任务下发设置",icon:""}]}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:s.a}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(i,r,!1,function(t){e("CESs")},"data-v-fefb5732",null);a.default=o.exports},CESs:function(t,a){},Qie6:function(t,a,e){"use strict";var n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1"}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t){this.activeTab=t.tabId,this.$emit("setSelectTab",t)}}},c={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabListData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+n,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var s=e("VU/8")(n,c,!1,function(t){e("28mM")},"data-v-2d389478",null);a.a=s.exports},"b/rC":function(t,a){},fvdr:function(t,a,e){"use strict";var n=e("Ch4/"),c=e("P9l9"),s={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(c.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;1!=e.errorCode?n.a.errorMsg(e):e.result&&e.result.length&&(t.brandListData=e.result,t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var r=e("VU/8")(s,i,!1,function(t){e("b/rC")},"data-v-61366abc",null);a.a=r.exports},jrfM:function(t,a){},kmB9:function(t,a){}});
\ No newline at end of file
webpackJsonp([6],{"28mM":function(t,a){},"2eFk":function(t,a,e){"use strict";var n={name:"common-detail-top",props:{topMenuData:{type:Array,default:function(){return[]}},activeId:{type:[String,Number],default:function(){return""}}},data:function(){return{projectName:"",topData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")}},watch:{topMenuData:function(t,a){this.topData=t}},mounted:function(){this.topData=this.topMenuData}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-top"},[e("div",{staticClass:"el-tabs__header is-top"},[e("div",{staticClass:"el-tabs__nav-wrap is-top"},[e("div",{staticClass:"el-tabs__nav-scroll"},[e("ul",t._l(t.topData,function(a,n){return e("li",{key:n,class:["top-cell",a.id==t.activeId?"cell-active":""]},[t._v(t._s(a.name)+" "),t.topData.length>1?e("i",{staticClass:"el-icon-arrow-right p-lr-11"}):t._e()])}))])])])])},staticRenderFns:[]};var c=e("VU/8")(n,s,!1,function(t){e("jrfM")},"data-v-fcb7a8de",null).exports,r=e("3E4D"),i=e("Ch4/"),o=e("PI0u"),l=e("P9l9"),u={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1,chatFlag:!1},topMenuData:[{id:"1",name:"在线沟通设置"}],activeId:"1"}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=t},methods:{handleClick:function(t,a){console.log(t,a)},submit:Object(o.a)(function(t){this.setData(t)},500),setData:function(t){var a=this,e={brandId:a.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId};e[t]=a.myCustomData[t]?1:0;var n="/haoban-app-member-web/customer/save-online-chat-setting";"searchFlag"===t&&(n="/haoban-app-member-web/customer/save-customer-setting"),Object(l.c)(n,e).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):r.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={brandId:t};Object(l.c)("/haoban-app-member-web/customer/find-customer-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):e.result&&(a.myCustomData.searchFlag=!!e.result.searchFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var a=this,e={brandId:t};Object(l.c)("/haoban-app-member-web/customer/find-online-chat-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):e.result&&(a.myCustomData.chatFlag=!!e.result.chatFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){this.getChatSet(t),this.getCustomerSet(t)},tabType:function(t,a){1==t?(this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},components:{commonDetailTop:c}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[1==t.tabType?e("div",[e("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),e("div",{staticClass:"app-detail-pane border-box p-45"},[e("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(a){t.$set(t.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[t._v("会员搜索设置")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)],1):t._e(),t._v(" "),2==t.tabType?e("div",[e("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),e("div",{staticClass:"app-detail-pane border-box p-45"},[e("el-checkbox",{model:{value:t.myCustomData.chatFlag,callback:function(a){t.$set(t.myCustomData,"chatFlag",a)},expression:"myCustomData.chatFlag"}},[t._v("在线沟通设置")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.submit("chatFlag")}}},[t._v("保 存")])],1)],1)],1):t._e()])},staticRenderFns:[]};var p=e("VU/8")(u,d,!1,function(t){e("kmB9")},"data-v-434d2ae2",null);a.a=p.exports},KZgM:function(t,a){},Qie6:function(t,a,e){"use strict";var n={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1"}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t){this.activeTab=t.tabId,this.$emit("setSelectTab",t)}}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabListData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+n,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var c=e("VU/8")(n,s,!1,function(t){e("28mM")},"data-v-2d389478",null);a.a=c.exports},"b/rC":function(t,a){},cuIN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),s=e("fvdr"),c=e("Qie6"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"我的顾客",appIcon:"icon-gukedown",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员搜索设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:s.a,commonDetailLeft:c.a}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var o=e("VU/8")(r,i,!1,function(t){e("KZgM")},"data-v-65ba2204",null);a.default=o.exports},fvdr:function(t,a,e){"use strict";var n=e("Ch4/"),s=e("P9l9"),c={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(s.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;1!=e.errorCode?n.a.errorMsg(e):e.result&&e.result.length&&(t.brandListData=e.result,t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var i=e("VU/8")(c,r,!1,function(t){e("b/rC")},"data-v-61366abc",null);a.a=i.exports},jrfM:function(t,a){},kmB9:function(t,a){}});
\ No newline at end of file
webpackJsonp([6],{Bpxv:function(a,t){a.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAACuCAMAAACoXtf9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUxpcVSn/nW6/8nk/63T/2Gt/5PH/8nj/8rk/8rk/2y0/5/N/4XB/0Kf/X+9/V2o+Mrk/4K58SiU/ovD/srl/8nj/0mf+crl/1Gm/yiU/ieS+srl/y+U+CaS+hOI+cHg/8nj/73Z/yCO+SiT/ieU/Vqs/jGX/CWQ+SSN9MXi/7/d/yeQ+iqU/mCv/1+v/7jb/6nR/srl/wKI/8nk/2Cu/9nq/8nk/xiQ/ymV/ymU/iiU/iyW/lqs/tXq/2Gx/yuV/WKx/z2d/kGf/lOp/mKx/yqW/gt432Kx/2Gw/5bI/8vm/5zP/2Cu/wp23mGw/12u/yqK6IK//1Sq/lqt/2Ky/wp330qm/zqd/1aq/UOh/9Ho/zGY/1Op/wt33wt44GKx/0ql/wx336DQ/zyd/j2e/BOI9rrc/5bM/5XL/5nM/9Pq/5XL/6XT/0uk/R+L9At33v///ymU/dTq/2qz/7fZ+yWU/yaT/V+v/xaM/02n/wCI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M17vyaZ/ye82cjpCQmACi196IS+vApWftdj50or3k+/hk3DoNFuyhS+9NHlvdmW91LLQA35tf3kqJYPGHoEhIZVas1JaP+l12XDfL+p7pQxfB+AeswSev0ndG8UpsTcD6dx3TMmiOhRcytmgv647vLpyL7eqSMXGJ2YjOpuYIja/iefqnSB9vdWyb7A+O9Ty8YsT+yvsfHdY9Drqzp0D1ZHVN1Awy8hqMM9aDyigRa0rzcLUQ6NeQy/RFvF1grFyl/xAwJff+HyuXuU2fBLHt9eMaYd6r9/vz4J4QjaPRzA+npZw76JacMOJCj1oBJ89YW7r/eF6XZgyzZevTPWdyUUGJ2ZMlZV+OqDK1LqWOeeRNGOvvkz0HeVNOaZxp0eW/rgD6bHtoPPQz3TAAAAAElFTkSuQmCC"},CSjr:function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("3Xzz"),i={name:"staff-info-set",data:function(){return{windowH:window.screen.availHeight-500+"px"}},methods:{},components:{}},s={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"staff-info-panel",style:{height:a.windowH}},[e("div",{staticClass:"info-title m-b-50 font-16 color-303133"},[a._v("员工档案信息将应用在以下两个地方")]),a._v(" "),a._m(0),a._v(" "),e("div",{staticClass:"info-btn m-t-60 font-14"},[e("el-button",{attrs:{type:"primary"},on:{click:function(t){a.$router.push("/staffRecordsTemplate")}}},[a._v("进入档案设置")])],1)])},staticRenderFns:[function(){var a=this.$createElement,t=this._self._c||a;return t("div",{staticClass:"flex flex-align-center"},[t("div",{staticClass:"flex-1"},[t("img",{attrs:{src:e("aNcm"),alt:""}}),this._v(" "),t("p",{staticClass:"m-t-20 font-14 color-606266"},[this._v("个人信息页展示")])]),this._v(" "),t("div",{staticClass:"flex-1"},[t("img",{attrs:{src:e("Bpxv"),alt:""}}),this._v(" "),t("p",{staticClass:"m-t-20 font-14 color-606266"},[this._v("员工档案")])])])}]};var r=e("VU/8")(i,s,!1,function(a){e("v1/W")},"data-v-3f2a8238",null).exports,o=e("3E4D"),c=e("Ch4/"),m=e("PI0u"),l=e("P9l9"),u={name:"staff-info-set",data:function(){return{windowH:window.screen.availHeight-500-48+"px",activeName:"",brandList:[],probObj:{probationDay:"",probationMonth:""}}},methods:{handleChange:function(a){},saveSet:Object(m.a)(function(){var a=this;if(""!=a.probObj.probationDay&&""!=a.probObj.probationMonth){var t={day:a.probObj.probationDay,month:a.probObj.probationMonth};Object(l.c)("/haoban-manage-web/enterprise-probation-period-setting.json",t).then(function(a){var t=a.data;1!=t.errorCode?c.a.errorMsg(t):o.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}else a.$message.error({duration:1e3,message:"请设置时间"})},500),getBrandData:function(){var a=this;Object(l.c)("/haoban-manage-web/brand/list",{}).then(function(t){var e=t.data;1!=e.errorCode?c.a.errorMsg(e):e.result&&e.result.length&&(a.brandList=e.result,a.activeName=e.result[0].groupId,a.getStoreAuth(e.result[0].groupId,0))}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getProbData:function(){var a=this;Object(l.c)("/haoban-manage-web/find-enterprise-probation-period",{}).then(function(t){var e=t.data;1!=e.errorCode?c.a.errorMsg(e):e.result&&e.result.length&&(a.probObj=e.result)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getProbData()},components:{}},b={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"staff-prob-panel",style:{height:a.windowH}},[e("div",{staticClass:"depart-cell"},[e("div",{staticClass:"m-t-24"},[e("span",{staticClass:"font-14 color-606266 p-r-12"},[a._v("设置企业试用期时间")]),e("el-input-number",{attrs:{"controls-position":"right",min:0,max:31},on:{change:a.handleChange},model:{value:a.probObj.probationDay,callback:function(t){a.$set(a.probObj,"probationDay",t)},expression:"probObj.probationDay"}}),e("span",{staticClass:"font-14 color-606266 p-l-12"},[a._v(" 天 ")]),e("span",{staticClass:"font-14 color-606266 p-l-12 p-r-12"},[a._v(" + ")]),e("el-input-number",{attrs:{"controls-position":"right",min:0,max:6},on:{change:a.handleChange},model:{value:a.probObj.probationMonth,callback:function(t){a.$set(a.probObj,"probationMonth",t)},expression:"probObj.probationMonth"}}),e("span",{staticClass:"font-14 color-606266 p-l-12"},[a._v("月")])],1),a._v(" "),e("div",{staticClass:"p-l-138 m-t-24"},[e("el-button",{attrs:{type:"primary"},on:{click:a.saveSet}},[a._v("保 存")])],1)])])},staticRenderFns:[]};var p=e("VU/8")(u,b,!1,function(a){e("Ka3U")},"data-v-7451e91e",null).exports,A={name:"fileSet",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"档案设置",path:""}],activeName:"first"}},computed:{},methods:{},mounted:function(){},components:{navCrumb:n.a,staffInfoSet:r,staffProbSet:p}},d={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"fileSet-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath}}),a._v(" "),e("div",{staticClass:"staff-contain-set"},[e("el-tabs",{model:{value:a.activeName,callback:function(t){a.activeName=t},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"档案字段设置",name:"first"}},[e("staffInfoSet")],1),a._v(" "),e("el-tab-pane",{attrs:{label:"试用期时间设置",name:"second"}},[e("staffProbSet")],1)],1)],1),a._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var h=e("VU/8")(A,d,!1,function(a){e("hQDO")},"data-v-f7de2056",null);t.default=h.exports},Ka3U:function(a,t){},aNcm:function(a,t){a.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAADACAMAAADob9thAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUxpcbvf/cnj/y+Y/rTX+7TW+8rk/7TW+8nj/8rl/4S68bTW+8nk/7za/SOS/rTW+7ra+7DT/LHW/CmV/rzb/DphkiaT/rDV/CSS/bjY+rTW+ySS/B+P/Mnj/yGR/U2n/47D9yqV/SiU/R2P/cnk/7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pJxJo743CvUWjyVmdUJ2wOkejWZk2jDQjlqX673WpKm2qQhBL0ubNuZu3bPlTWO7m3NyPGv6YhP4ZppD78ZXDIm0KBPQsLJrc+Vg2JlGfG5LotiXFr++QjQYWsfcwStpIgWg+5oIgpSgJv4oIbOTdd3M3btgwfyN8fgyfLAh4itzfg7dKa8yQeVaMRpMEgj4l+JOtzP4nARa1AYzkY96VyJREIESkNOiRxwiHEWcE7J330VqjXgHds0AaiZYIoIBmshQ6cZgAO4XJiQCLSq01ZilgsvCKI9ZFE29AQlVquTElQ4cndYmbsVA7qyXenKhEaq0hNStDoZNwnvpAAVdkyUXEmxf0KE4pN6SmpmTps1JSDVo1S/F/Yg/RynYfc/EAAAAASUVORK5CYII="},hQDO:function(a,t){},"v1/W":function(a,t){}});
\ No newline at end of file
webpackJsonp([7],{"1qFo":function(t,a){},"28mM":function(t,a){},KZgM:function(t,a){},cuIN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n={name:"common-detail-top",props:{topMenuData:{type:Array,default:function(){return[]}},activeId:{type:[String,Number],default:function(){return""}}},data:function(){return{projectName:"",topData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")}},watch:{topMenuData:function(t,a){this.topData=t}},mounted:function(){this.topData=this.topMenuData}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-top"},[e("div",{staticClass:"el-tabs__header is-top"},[e("div",{staticClass:"el-tabs__nav-wrap is-top"},[e("div",{staticClass:"el-tabs__nav-scroll"},[e("ul",t._l(t.topData,function(a,n){return e("li",{key:n,class:["top-cell",a.id==t.activeId?"cell-active":""]},[t._v(t._s(a.name)+" "),t.topData.length>1?e("i",{staticClass:"el-icon-arrow-right p-lr-11"}):t._e()])}))])])])])},staticRenderFns:[]};var c=e("VU/8")(n,s,!1,function(t){e("jrfM")},"data-v-fcb7a8de",null).exports,i=e("3E4D"),r=e("Ch4/"),o=e("PI0u"),l=e("P9l9"),u={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1,chatFlag:!1},topMenuData:[{id:"1",name:"在线沟通设置"}],activeId:"1"}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=t},methods:{handleClick:function(t,a){console.log(t,a)},submit:Object(o.a)(function(t){this.setData(t)},500),setData:function(t){var a=this,e={brandId:a.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId};e[t]=a.myCustomData[t]?1:0;var n="/haoban-app-member-web/customer/save-online-chat-setting";"searchFlag"===t&&(n="/haoban-app-member-web/customer/save-customer-setting"),Object(l.c)(n,e).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):i.a.showmsg("保存成功","success")}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={brandId:t};Object(l.c)("/haoban-app-member-web/customer/find-customer-setting",e).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):e.result&&(a.myCustomData.searchFlag=!!e.result.searchFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var a=this,e={brandId:t};Object(l.c)("/haoban-app-member-web/customer/find-online-chat-setting",e).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):e.result&&(a.myCustomData.chatFlag=!!e.result.chatFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){this.getChatSet(t),this.getCustomerSet(t)},tabType:function(t,a){1==t?(this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},components:{commonDetailTop:c}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[1==t.tabType?e("div",[e("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),e("div",{staticClass:"app-detail-pane border-box p-45"},[e("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(a){t.$set(t.myCustomData,"searchFlag",a)},expression:"myCustomData.searchFlag"}},[t._v("会员搜索设置")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)],1):t._e(),t._v(" "),2==t.tabType?e("div",[e("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),e("div",{staticClass:"app-detail-pane border-box p-45"},[e("el-checkbox",{model:{value:t.myCustomData.chatFlag,callback:function(a){t.$set(t.myCustomData,"chatFlag",a)},expression:"myCustomData.chatFlag"}},[t._v("在线沟通设置")]),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.submit("chatFlag")}}},[t._v("保 存")])],1)],1)],1):t._e()])},staticRenderFns:[]};var p=e("VU/8")(u,d,!1,function(t){e("kmB9")},"data-v-434d2ae2",null).exports,m={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){this.$emit("selectBrandId",t)},getBrandData:function(){var t=this;Object(l.c)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):e.result&&e.result.length&&(t.brandListData=e.result,t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},b={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("i",{class:["iconfont",t.appIcon]})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),e("div",{staticClass:"my-customer-brand"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}))],1)],1)])},staticRenderFns:[]};var f=e("VU/8")(m,b,!1,function(t){e("1qFo")},"data-v-223308e3",null).exports,v={name:"common-detail-left",props:{appName:{type:String,default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1"}},methods:{returnBack:function(){this.$router.push("appcenter")},selectTab:function(t){this.activeTab=t.tabId,this.$emit("setSelectTab",t)}}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{staticClass:"tab-left-list"},[t._l(t.tabListData,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[e("i",{class:["p-r-10 color-303133 iconfont",a.icon]}),t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(a.children,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[t._v(t._s(a.tabName))]),t._v(" "),e("ul",{key:"thirditem"+n,staticClass:"third-tab-left-list"},[t._l(a.children,function(a,n){return[e("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box",a.tabId==t.activeTab?"active-tab":""],on:{click:function(e){t.selectTab(a)}}},[t._v(t._s(a.tabName))])]})],2)]})],2)]})],2)])},staticRenderFns:[]};var g={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"我的顾客",appIcon:"icon-gukedown",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员搜索设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,a){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:p,commonAppTop:f,commonDetailLeft:e("VU/8")(v,h,!1,function(t){e("28mM")},"data-v-2d389478",null).exports}},_={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var C=e("VU/8")(g,_,!1,function(t){e("KZgM")},"data-v-65ba2204",null);a.default=C.exports},jrfM:function(t,a){},kmB9:function(t,a){}});
\ No newline at end of file
webpackJsonp([5],{K4Vl:function(e,t){},NNAT:function(e,t,i){"use strict";var o=i("fZjL"),a=i.n(o),s=i("mvHQ"),n=i.n(s),l=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var h=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,p=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],o=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:i,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=a()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,o=this.selectionList.indexOf(e);this.selectionList.splice(o,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(l.a)(i,o).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[i("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("K4Vl")},null,null);t.a=g.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(e){this.checkedList.splice(e,1);var t=this.checkedList.map(function(e){return e.fieldCode});this.origin.forEach(function(e,i){t.includes(e.fieldCode)?e.checked=!0:e.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(e){var t=this;e.checked?t.checkedList.push(e):t.checkedList.forEach(function(i,o){i.fieldCode===e.fieldCode&&t.checkedList.splice(o,1)}),t.checkHalf()},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,i){t.checked=e,e&&(t.order=i+1)}),e&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=[],i=[],o=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var i=[];o.forEach(function(t){t.parentCode==e.fieldCode&&i.push(t)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),i.length>0&&(e.childrens=i),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){i=i.concat(e.childrens)}),this.origin=i,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});a()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+a()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t,o){return[t.checked?i("div",{key:t.fieldCode+o,staticClass:"cho"},[e._v(e._s(t.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.deleteField(o)}}})]):e._e()]})],2)],1),e._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),e._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,o){return i("div",{key:t.fieldCode+o,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),i("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(o){return[o.parentCode==t.fieldCode?i("li",{key:o.fieldCode},[i("el-checkbox",{key:o.fieldCode,attrs:{label:o.fieldName},on:{change:function(t){e.checkThis(o)}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"items.checked"}},[e._v(e._s(o.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[e._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),i("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(l,r,!1,function(e){i("wEsK")},null,null);t.a=c.exports},edn0:function(e,t){},rHG8:function(e,t){},wEsK:function(e,t){},zGJY:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("3Xzz"),a=i("P9l9"),s=i("O3H5"),n=i("NNAT"),l={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(a.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[i("div",{staticClass:"top-area"},[i("div",{staticClass:"top-title"},[i("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),i("a",{attrs:{href:"#/recordIo?importCode=record"}},[i("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),i("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,o){return i("div",{key:o,staticClass:"type-cell",class:"onWorkCout"==o||"noTypeWorkCount"==o?"with-bdr":""},[i("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[o]))]),e._v(" "),i("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"e-record-container"},[e.showExportSet?[i("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[i("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[]};var c=i("VU/8")(l,r,!1,function(e){i("rHG8")},null,null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([7],{K4Vl:function(e,t){},NNAT:function(e,t,i){"use strict";var o=i("fZjL"),a=i.n(o),s=i("mvHQ"),n=i.n(s),l=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var h=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,p=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],o=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:i,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=a()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,o=this.selectionList.indexOf(e);this.selectionList.splice(o,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(l.a)(i,o).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[i("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("K4Vl")},null,null);t.a=g.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(e){this.checkedList.splice(e,1);var t=this.checkedList.map(function(e){return e.fieldCode});this.origin.forEach(function(e,i){t.includes(e.fieldCode)?e.checked=!0:e.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(e){var t=this;e.checked?t.checkedList.push(e):t.checkedList.forEach(function(i,o){i.fieldCode===e.fieldCode&&t.checkedList.splice(o,1)}),t.checkHalf()},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,i){t.checked=e,e&&(t.order=i+1)}),e&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=[],i=[],o=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var i=[];o.forEach(function(t){t.parentCode==e.fieldCode&&i.push(t)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),i.length>0&&(e.childrens=i),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){i=i.concat(e.childrens)}),this.origin=i,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});a()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+a()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t,o){return[t.checked?i("div",{key:t.fieldCode+o,staticClass:"cho"},[e._v(e._s(t.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.deleteField(o)}}})]):e._e()]})],2)],1),e._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),e._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,o){return i("div",{key:t.fieldCode+o,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),i("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(o){return[o.parentCode==t.fieldCode?i("li",{key:o.fieldCode},[i("el-checkbox",{key:o.fieldCode,attrs:{label:o.fieldName},on:{change:function(t){e.checkThis(o)}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"items.checked"}},[e._v(e._s(o.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[e._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),i("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(l,r,!1,function(e){i("wEsK")},null,null);t.a=c.exports},edn0:function(e,t){},rHG8:function(e,t){},wEsK:function(e,t){},zGJY:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("3Xzz"),a=i("P9l9"),s=i("O3H5"),n=i("NNAT"),l={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(a.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[i("div",{staticClass:"top-area"},[i("div",{staticClass:"top-title"},[i("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),i("a",{attrs:{href:"#/recordIo?importCode=record"}},[i("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),i("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,o){return i("div",{key:o,staticClass:"type-cell",class:"onWorkCout"==o||"noTypeWorkCount"==o?"with-bdr":""},[i("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[o]))]),e._v(" "),i("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"e-record-container"},[e.showExportSet?[i("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[i("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[]};var c=i("VU/8")(l,r,!1,function(e){i("rHG8")},null,null);t.default=c.exports}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([8],{"8UlM":function(e,t){},BDQR:function(e,t){},IA9l:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),n=i("gBtx"),l=i.n(n),d=i("mvHQ"),o=i.n(d),r=i("DAYN"),c=i.n(r),f=i("Isrn"),u=i("l46T"),m=i("MJLE"),p=i.n(m),g=i("qdhi"),h=i("3E4D"),v=i("Ch4/"),C=i("P9l9"),I={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:g.a.defineInfo(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[],qrcodeCase:"",qrcodeNum:""}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},cloneDefine:function(e){},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addItem:function(){},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},checkedChange:function(e,t){},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeRadio:function(e,t,i){},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(C.c)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return h.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");v.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(C.c)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.qrcode(s),void(t.dialogVisible=!0)}v.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},qrcode:function(e){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear());var t={type:"record",data:e};this.qrcodeCase=new p.a("qrcode",{width:210,height:210,text:o()(t)})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(C.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?v.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(C.c)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));v.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===l()(e.fixed),e.isMust=1===l()(e.isMust),e.systemFlag=1===l()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:c.a,AddInput:f.a,limitInput:u.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},y={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd,clone:e.cloneDefine}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},on:{add:e.addItem},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,n){return s("li",{key:"li"+n,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==n?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,n,t.children)}}},["clerkPhone"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,n,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},on:{change:function(i){e.changeRadio(i,a,t)}},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,n){return[s("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogVisible,expression:"dialogVisible"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[s("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),s("div",{staticClass:"qr-dialog"},[s("div",{staticClass:"qr-dialog__hd"},[s("strong",{staticClass:"qr-dialog__title"},[e._v("预览")]),e._v(" "),s("i",{staticClass:"el-icon-close",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})]),e._v(" "),e._m(1),e._v(" "),s("div",{staticClass:"qr--dialog__ft"})])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qr-dialog__bd"},[t("div",{attrs:{id:"qrcode"}}),this._v(" "),t("div",{staticClass:"qr-dialog__p"},[this._v("请使用好办 APP 扫一扫预览")])])}]};var x=i("VU/8")(I,y,!1,function(e){i("8UlM")},"data-v-7b832518",null);t.default=x.exports},Isrn:function(e,t,i){"use strict";var s=i("Mk6G"),a={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){var t="",i={};return t=s.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=s.a.getZhLen(this.itemValue),this.childFlag?(i.child=this.childFlag,i.value=this.itemValue,"title"==this.titleFlag&&(i.title=this.titleFlag),"k303"==this.c3Flag&&(i.c3Index=this.c3Index,i.flag=this.c3Flag),void this.$emit("itemInput",i)):"title"==this.titleFlag?(i.value=this.itemValue,i.title=this.titleFlag,void this.$emit("itemInput",i)):"k303"==this.c3Flag?(i.value=this.itemValue,i.flag=this.c3Flag,i.c3Index=this.c3Index,void this.$emit("itemInput",i)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=s.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=s.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return i=t,e.toInput(i);var i}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(a,n,!1,function(e){i("BDQR")},"data-v-25bcaf42",null);t.a=l.exports},LbEI:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjlEODYzRUYxN0FEMTFFOThFM0NFNTRBM0RCN0VBMDAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjlEODYzRjAxN0FEMT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eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},qdhi:function(e,t,i){"use strict";var s=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}];t.a={defineInfo:function(){return s}}}});
\ No newline at end of file
webpackJsonp([9],{BDQR:function(e,t){},Isrn:function(e,t,i){"use strict";var s=i("Mk6G"),a={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){var t="",i={};return t=s.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=s.a.getZhLen(this.itemValue),this.childFlag?(i.child=this.childFlag,i.value=this.itemValue,"title"==this.titleFlag&&(i.title=this.titleFlag),"k303"==this.c3Flag&&(i.c3Index=this.c3Index,i.flag=this.c3Flag),void this.$emit("itemInput",i)):"title"==this.titleFlag?(i.value=this.itemValue,i.title=this.titleFlag,void this.$emit("itemInput",i)):"k303"==this.c3Flag?(i.value=this.itemValue,i.flag=this.c3Flag,i.c3Index=this.c3Index,void this.$emit("itemInput",i)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=s.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=s.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return i=t,e.toInput(i);var i}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(a,n,!1,function(e){i("BDQR")},"data-v-25bcaf42",null);t.a=l.exports},LbEI:function(e,t){e.exports="data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RdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},bZ1Z:function(e,t){},lFAe:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("//Fk"),a=i.n(s),n=i("gBtx"),l=i.n(n),d=i("mvHQ"),o=i.n(d),r=i("DAYN"),c=i.n(r),f=i("Isrn"),u=i("l46T"),m=i("MJLE"),p=i.n(m),g=i("qdhi"),h=i("3E4D"),v=i("Ch4/"),C=i("P9l9"),I={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:g.a.defineInfo(),currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"baseInfo",fieldName:"基本信息",fieldEdited:!1,fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"jobInfo",fieldName:"工作信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"selfInfo",fieldName:"个人信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"eduInfo",fieldName:"学历信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contractInfo",fieldName:"合同信息",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"contactInfo",fieldName:"紧急联系人",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""},{parentCode:"0",fieldTemplateId:"",parentFieldTemplateId:"0",minCount:10,maxCount:20,fieldCode:"personalInfo",fieldName:"个人资料",fieldEdited:!1,isMust:!1,fieldDescription:"",children:[],fieldType:"",staffRecordsIds:{},status:""}],fieldParent:{baseInfo:{},jobInfo:{},selfInfo:{},eduInfo:{},contractInfo:{},contactInfo:{},personalInfo:{}},setList:[],qrcodeCase:"",qrcodeNum:""}},created:function(){},methods:{baseInfoClone:function(){},clickItem:function(e){this.tempaletDataList.map(function(e){return e.fieldCode}).includes(e.parentCode)||"defineInfo"===e.parentCode||(this.tempaletDataList.push(this.fieldParent[e.parentCode]),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)))},checkMove:function(e){var t=!0;return"baseInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("baseInfo")||(t=!1),"jobInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("jobInfo")||(t=!1),"selfInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("selfInfo")||(t=!1),"eduInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("eduInfo")||(t=!1),"contractInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contractInfo")||(t=!1),"contactInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("contactInfo")||(t=!1),"personalInfo"!=e.draggedContext.element.parentCode||e.to.className.includes("personalInfo")||(t=!1),t},onMove:function(e){return!!this.checkMove(e)&&!e.draggedContext.element.fixed},onChildMove:function(e){return-1!=e.dragged.className.indexOf("block-class")&&e.to.className.indexOf("block-wrap"),!0},itemMoveEnd:function(e){var t=this;t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.type,t.tempaletDataList.forEach(function(e,i){e.children.forEach(function(e,i){var s;e.systemFlag&&e.fieldCode==t.selectKey&&(s=e.parentCode,t[s].forEach(function(e,i){e.fieldCode==t.selectKey&&(e.fixed=!0)}))})}),t.selectKey="",t.tempaletDataList=JSON.parse(o()(t.tempaletDataList)),t.$forceUpdate()},cloneDefine:function(e){},selectItem:function(e,t){this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t){this.tempaletDataList.splice(t,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,t){e.fixed=!1})},addItem:function(){},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,s){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,s,a){this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].fieldCode,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(o()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),this[a.parentCode].forEach(function(t,i){t.fieldCode===e&&(t.fixed=!1)})},checkedChange:function(e,t){},delChildItem:function(e,t,i){i.fieldOperations.fieldContent.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){var s="radio";i.systemFlag||3!==parseInt(i.fieldType)||(s="checkbox"),i.fieldOperations.fieldContent.push({type:s,name:"请输入选项"});var a=i.fieldOperations.fieldContent.map(function(e){return e.name});this.isRepeat(a)&&(i.fieldOperations.fieldContent.splice(i.fieldOperations.fieldContent.length-1,1),a.splice(i.fieldOperations.fieldContent.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeRadio:function(e,t,i){},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e,s){if(""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;e.children.length&&e.children.forEach(function(e,s){if(e.systemFlag&&""==e.fieldName)return t.filedFlag=!1,t.name=e.fieldName||"",!1;i.push(e.fieldName)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:function(e){var t=JSON.parse(o()(this.tempaletDataList)),i=this.checkTag(t),s=[];if(i.filedFlag)if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.fixed=!0===e.fixed?1:0,e.isMust=!0===e.isMust?1:0,e.systemFlag=!0===e.systemFlag?1:0,e.parentFieldTemplateId=e.parentFieldTemplateId?e.parentFieldTemplateId:-1,e.fieldTemplateId=e.fieldTemplateId?e.fieldTemplateId:-1,e.children.forEach(function(t,i){s.push(t),t.sort=i,t.fixed=!0===t.fixed?1:0,t.isMust=!0===t.isMust?1:0,t.systemFlag=!0===t.systemFlag?1:0,e.systemFlag||(t.fieldEdited=1),2!==parseInt(t.fieldType)&&3!==parseInt(t.fieldType)||t.fieldOperations.fieldContent.forEach(function(e,i){e.key=String(e.key)?String(e.key):"",t.systemFlag||e.hasOwnProperty("key")&&""!=e.key&&"undefined"!=e.key||(e.key=e.name)}),t.systemFlag||(t.parentCode=e.fieldCode),t.fieldTemplateId=t.fieldTemplateId?t.fieldTemplateId:-1,t.parentFieldTemplateId=e.fieldTemplateId})}),s.length>40)return this.$message.error({duration:1e3,message:"最多设置 40 个字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}else this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"})},saveAllData:function(e){var t=this,i={templateContent:o()(e)};Object(C.c)("/haoban-manage-web/record/record-template-save.json",i).then(function(e){var i=e.data;if(1==i.errorCode)return h.a.showmsg("保存成功","success"),void t.changeRoute("/fileSet");v.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateContent:o()(e)};Object(C.c)("/haoban-manage-web/record/record-template-preview.json",i).then(function(e){var i=e.data;if(1==i.errorCode){var s=window.location.origin+"/office-mobile/#/staffRecordsTemplate?enterpriseId="+i.result;return t.qrcode(s),void(t.dialogVisible=!0)}v.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},qrcode:function(e){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear());var t={type:"record",data:e};this.qrcodeCase=new p.a("qrcode",{width:210,height:210,text:o()(t)})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var e=this;Object(C.c)("/haoban-manage-web/record/employee-find-system-template.json",{}).then(function(t){var i=t.data;1!=i.errorCode?v.a.errorMsg(i):e.handleAllFields(i.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e,i){t.hasOwnProperty(e.parentCode)&&(e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],t[e.parentCode].push(e)),t.fieldParent.hasOwnProperty(e.fieldCode)&&(e.children=[],t.fieldParent[e.fieldCode]=e,e.systemFlag=!0)})},getInfo:function(){var e=this;Object(C.c)("/haoban-manage-web/record/employee-find-template.json",{}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],void(i.result&&i.result.length&&e.handleGetInfo(i.result));v.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(o()(e));t.setParent=[],i.forEach(function(e,i){e.fixed=1===l()(e.fixed),e.isMust=1===l()(e.isMust),e.systemFlag=1===l()(e.systemFlag),e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[],e.systemFlag&&0==e.parentCode&&t.setParent.push(e.fieldCode),e.systemFlag&&0!=e.parentCode&&t.setList.push(e.fieldCode)}),t.tempaletDataList=t.treeData(i),setTimeout(function(){t.setFixed()},100)},setFixed:function(){var e=this;e.setParent.forEach(function(t,i){e[t].forEach(function(t,i){e.setList.includes(t.fieldCode)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})}},components:{draggable:c.a,AddInput:f.a,limitInput:u.a},mounted:function(){a.a.all([this.getAllFields(),this.getInfo()]),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}}},y={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[e._m(0),e._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.saveAndBack("preview")}}},[e._v("预 览")]),e._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.changeRoute("/fileSet")}}},[e._v("返 回")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l"},[s("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[e._v("基本信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.baseInfo,options:e.leftOption,move:e.onMove},on:{clone:e.baseInfoClone,start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.baseInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode,"aria-hidden":"true"},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("工作信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.jobInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.jobInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.selfInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.selfInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("学历信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.eduInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.eduInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("合同信息")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contractInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contractInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("紧急联系人")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.contactInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.contactInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1),e._v(" "),s("div",{staticClass:"filed-item-title"},[e._v("个人材料")]),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.personalInfo,options:e.leftOption,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personalInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[s("span",[e._v(e._s(t.fieldName))])])}))],1)]),e._v(" "),s("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[s("div",{staticClass:"filed-item-title"}),e._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd,clone:e.cloneDefine}},e._l(e.defineInfo,function(t,i){return s("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-type":t.fieldCode},on:{mousedown:function(i){e.clickItem(t)}}},[t.systemFlag||0!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("span",[e._v(e._s(t.fieldName))]),e._v(" "),t.systemFlag||0!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-one"}),e._v(" "),t.systemFlag||1!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-two"}),e._v(" "),t.systemFlag||2!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-three"}),e._v(" "),t.systemFlag||3!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-four"}),e._v(" "),t.systemFlag||4!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-five"}),e._v(" "),t.systemFlag||5!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-six"}),e._v(" "),t.systemFlag||6!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-seven"}),e._v(" "),t.systemFlag||7!=t.fieldType?e._e():s("i",{staticClass:"bg-icon bg-icon-eight"})])}))],1)])],1)],1),e._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!0}},on:{add:e.addItem},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return s("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(s){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),e.deleteItem(t.fieldCode,i)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),[s("div",{staticClass:"block"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),s("ul",{staticClass:"view-content"},[s("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(a,n){return s("li",{key:"li"+n,class:["filed-item","child-filed-item",e.currentChildKey==a.fieldCode&&e.currentChildIndex==n?"active-item":""],on:{click:function(s){s.stopPropagation(),e.selectChildItem(a.fieldCode,i,n,t.children)}}},["clerkPhone"!=a.fieldCode?s("span",{staticClass:"item-close child-item-close",on:{click:function(s){s.stopPropagation(),e.deleteChildItem(a.fieldCode,i,n,t.children,a)}}},[s("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),2==a.fieldType||3==a.fieldType||4==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldDescription)+" "),s("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==a.fieldType?s("div",[s("div",[s("div",{class:["opencard-item-title",a.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.startName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.startDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),s("div",{staticClass:"b-t-1"},[s("div",{class:["opencard-item-title",a.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldOperations.endName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(a.fieldOperations.endDescription)),s("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[s("i",{staticClass:"iconfont icon-icon"})])])]):e._e(),e._v(" "),0==a.fieldType||1==a.fieldType||6==a.fieldType?s("div",[s("div",{class:["opencard-item-title",a.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(a.fieldName))]),e._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(a.fieldDescription))])])]):e._e()])}))],1)])]],2)}))],2)])])])])]),e._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:e.rightName,callback:function(t){e.rightName=t},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex==i&&"0"==t.parentCode?[s("div",{key:"parent"+i,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:!0,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}})],1)]:e._e(),e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,a){return[e.currentChildIndex==a?[s("div",{key:"child"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"fieldName",i)}}}),e._v(" "),7==t.fieldType?s("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n "+e._s(t.fieldDescription)+"\n ")]):e._e()],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5!=t.fieldType&&7!=t.fieldType?[s("div",{key:"child1"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"fieldDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&5==t.fieldType?[s("div",{key:"child2"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("开始时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startName",i)}}})],1),e._v(" "),s("div",{key:"child3"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.startDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"startDescription",i)}}})],1),e._v(" "),s("div",{key:"child4"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("结束时间")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endName,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endName",i)}}})],1),e._v(" "),s("div",{key:"child5"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("提示文字")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.endDescription,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"endDescription",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex==a&&6==t.fieldType?[s("div",{key:"child6"+a,staticClass:"edit-item test-title limit-w-340"},[s("div",{staticClass:"edit-item-title"},[e._v("单位")]),e._v(" "),s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.fieldOperations.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t.fieldOperations,"unit",i)}}})],1)]:e._e(),e._v(" "),e.currentChildIndex!=a||4!=t.fieldType&&5!=t.fieldType?e._e():[s("div",{key:"child7"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),e._l(t.fieldOperations.ruleContent,function(i,a){return[s("el-radio",{key:"child8"+a,attrs:{label:i.key},on:{change:function(i){e.changeRadio(i,a,t)}},model:{value:t.fieldOperations.typeValue,callback:function(i){e.$set(t.fieldOperations,"typeValue",i)},expression:"childItem.fieldOperations.typeValue"}},[e._v("\n "+e._s(i.name)+"\n ")])]})],2)],e._v(" "),e.currentChildIndex!=a||"2"!=t.fieldType&&"3"!=t.fieldType?e._e():[s("div",{key:"child9"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():s("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.fieldOperations.fieldContent,function(a,n){return[s("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[s("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:a.name,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(a,"name",t)}}}),e._v(" "),!t.systemFlag&&t.fieldOperations.fieldContent.length>1?s("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(s){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.fieldOperations.fieldContent.length-1?s("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(s){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2)],e._v(" "),e.currentChildIndex==a?[s("div",{key:"child11"+a,staticClass:"edit-item"},[s("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),s("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex==a?[s("div",{key:"parent2"+a,staticClass:"edit-item "},[s("div",{staticClass:"edit-item-title"},[e._v("员工档案中")]),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{label:"1"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工可见")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{label:"0"},model:{value:t.staffRecordsIds.staffVisible,callback:function(i){e.$set(t.staffRecordsIds,"staffVisible",i)},expression:"childItem.staffRecordsIds.staffVisible"}},[e._v("对员工不可见")])],1),e._v(" "),s("div",{staticClass:"staffRecords-limit"},[s("el-radio",{staticClass:"label-cell",attrs:{label:"1"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工可修改")]),e._v(" "),s("el-radio",{staticClass:"label-cell",attrs:{label:"0"},model:{value:t.staffRecordsIds.staffModify,callback:function(i){e.$set(t.staffRecordsIds,"staffModify",i)},expression:"childItem.staffRecordsIds.staffModify"}},[e._v("对员工不可修改")])],1)])]:e._e()]})]:e._e()]})],2)])])],1)],1)])]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogVisible,expression:"dialogVisible"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[s("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),s("div",{staticClass:"qr-dialog"},[s("div",{staticClass:"qr-dialog__hd"},[s("strong",{staticClass:"qr-dialog__title"},[e._v("预览")]),e._v(" "),s("i",{staticClass:"el-icon-close",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})]),e._v(" "),e._m(1),e._v(" "),s("div",{staticClass:"qr--dialog__ft"})])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"template-title flex-1"},[t("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"template-title-span"},[this._v("员工档案设置")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"qr-dialog__bd"},[t("div",{attrs:{id:"qrcode"}}),this._v(" "),t("div",{staticClass:"qr-dialog__p"},[this._v("请使用好办 APP 扫一扫预览")])])}]};var x=i("VU/8")(I,y,!1,function(e){i("bZ1Z")},"data-v-7701a072",null);t.default=x.exports},qdhi:function(e,t,i){"use strict";var s=[{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单行输入框",systemFlag:!1,fieldEdited:1,fieldType:"0",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多行输入框",systemFlag:!1,fieldEdited:1,fieldType:"1",fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"单选框",systemFlag:!1,fieldEdited:1,fieldType:"2",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"radio",name:"选项1"},{type:"radio",name:"选项2"},{type:"radio",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"多选框",systemFlag:!1,fieldEdited:1,fieldType:"3",fixed:!1,fieldDescription:"请选择",fieldOperations:{ruleContent:[],fieldContent:[{type:"checkbox",name:"选项1"},{type:"checkbox",name:"选项2"},{type:"checkbox",name:"选项3"}]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期",systemFlag:!1,fieldEdited:1,fieldType:"4",fixed:!1,fieldDescription:"请选择",fieldOperations:{typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"日期区间",systemFlag:!1,fieldEdited:1,fieldType:"5",fixed:!1,fieldOperations:{startName:"开始时间",endName:"结束时间",startDescription:"请选择开始时间",endDescription:"请选择结束时间",typeValue:"yyyy-MM-dd",ruleContent:[{type:"radio",name:"年-月-日",key:"yyyy-MM-dd",isEdit:1},{type:"radio",name:"年-月",key:"yyyy-MM",isEdit:1}],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"数字输入框",systemFlag:!1,fieldType:"6",fieldEdited:1,fixed:!1,fieldDescription:"请输入",fieldOperations:{ruleContent:[],fieldContent:[],unit:"元"},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}},{parentCode:"defineInfo",fieldCode:"-1",fieldName:"图片",systemFlag:!1,fieldType:"7",fieldEdited:1,fixed:!1,fieldDescription:"最多上传9张图片",fieldOperations:{ruleContent:[],fieldContent:[]},isMust:!1,staffRecordsIds:{staffVisible:"1",staffModify:"1"}}];t.a={defineInfo:function(){return s}}}});
\ No newline at end of file
webpackJsonp([9],{SldL:function(e,t){!function(t){"use strict";var r,o=Object.prototype,n=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag",u="object"==typeof e,c=t.regeneratorRuntime;if(c)u&&(e.exports=c);else{(c=t.regeneratorRuntime=u?e.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",m="executing",d="completed",h={},g={};g[i]=function(){return this};var v=Object.getPrototypeOf,I=v&&v(v(T([])));I&&I!==o&&n.call(I,i)&&(g=I);var y=C.prototype=_.prototype=Object.create(g);x.prototype=y.constructor=C,C.constructor=x,C[l]=x.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},c.awrap=function(e){return{__await:e}},S(L.prototype),L.prototype[s]=function(){return this},c.AsyncIterator=L,c.async=function(e,t,r,o){var n=new L(b(e,t,r,o));return c.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},S(y),y[l]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},c.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach($),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,n){return s.type="throw",s.arg=e,t.next=o,n&&(t.method="next",t.arg=r),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),$(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;$(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=r),h}}}function b(e,t,r,o){var n=t&&t.prototype instanceof _?t:_,a=Object.create(n.prototype),i=new k(o||[]);return a._invoke=function(e,t,r){var o=f;return function(n,a){if(o===m)throw new Error("Generator is already running");if(o===d){if("throw"===n)throw a;return O()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var s=N(i,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=w(e,t,r);if("normal"===l.type){if(o=r.done?d:p,l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=d,r.method="throw",r.arg=l.arg)}}}(e,r,i),a}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function _(){}function x(){}function C(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function L(e){var t;this._invoke=function(r,o){function a(){return new Promise(function(t,a){!function t(r,o,a,i){var s=w(e[r],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,a,i)},function(e){t("throw",e,a,i)}):Promise.resolve(u).then(function(e){l.value=e,a(l)},i)}i(s.arg)}(r,o,t,a)})}return t=t?t.then(a,a):a()}}function N(e,t){var o=e.iterator[t.method];if(o===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,N(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=w(o,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return a.next=a}}return{next:O}}function O(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},Xxa5:function(e,t,r){e.exports=r("jyFz")},exGp:function(e,t,r){"use strict";t.__esModule=!0;var o,n=r("//Fk"),a=(o=n)&&o.__esModule?o:{default:o};t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,r){return function o(n,i){try{var s=t[n](i),l=s.value}catch(e){return void r(e)}if(!s.done)return a.default.resolve(l).then(function(e){o("next",e)},function(e){o("throw",e)});e(l)}("next")})}}},"h/6A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("mvHQ"),n=r.n(o),a=r("Xxa5"),i=r.n(a),s=r("//Fk"),l=r.n(s),u=r("exGp"),c=r.n(u),f=r("3Xzz"),p=r("l46T"),m=r("P9l9"),d=r("Ie7z"),h={name:"store-info",components:{navCrumb:f.a,vueSelectStore:d.a,limitInput:p.a},data:function(){var e=this;return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},storeInfo:{storeName:"",storeGroupId:"",imageUrls:[],phoneNumber:"",openTime:"",closeTime:"",shopHours:"",storeType:0,countryId:"",provinceId:"",cityId:"",areaId:"",postAddress:"",longitude:"",latitude:"",location:"",storeArea:"",mangerName:"",storeManagerId:"",managerPhone:"",managerCode:"",maangerSex:"",storeCode:"",storeId:""},areaChainName:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],storeGroupId:[{required:!0,message:"请输选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,r,o){return r&&e.storeInfo.closeTime?o():o(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,r){if(t)return/^1[34578]\d{9}$/.test(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)?r():r(new Error("联系电话格式不正确"));return r(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,message:"请输入门店代码",trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(e,t,r){if(t)return/^1[34578]\d{9}$/.test(t)?r():r(new Error("手机号码格式不正确"));return r(new Error("请输入手机号码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,r){if(t)return/^\d+(\.\d+)?$/.test(1*t)?r():r(new Error("人均消费只能为非负整数或者小数"));return r()},trigger:"blur"}]}}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.storeGroupId=e[0].label,this.storeInfo.storeGroupId=e[0].id},selected:function(e){this.storeInfo.provinceId=e.province,this.storeInfo.cityId=e.city||"",this.storeInfo.areaId=e.areaId||""},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(m.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this;return c()(i.a.mark(function t(){var r,o,n,a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e,o=new l.a(function(e,t){r.$refs.storeInfo.validate(function(t){t&&e()})}),n=new l.a(function(e,t){r.$refs.storeManager.validate(function(t){t&&e()})}),a=new l.a(function(e,t){r.$refs.storeOperate.validate(function(t){t&&e()})}),l.a.all([o,n,a]).then(function(){r.save()});case 5:case"end":return t.stop()}},t,e)}))()},formatStoreInfo:function(e){var t=this;return c()(i.a.mark(function r(){var o,n,a;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:o=t,n=(e.areaChainName||"").split("/"),o.areaOptions={provinceName:n[0],provinceId:e.provinceId,cityName:n[1],cityId:e.cityId,countryName:n[2],countyId:e.countryId},o.imgs=e.imageUrl?e.imageUrl.split(","):[],a=[],o.imgs.forEach(function(e){a.push({url:e})}),e.imageUrls=a,e.location=e.longitude+","+e.latitude,o.storeInfo=e;case 9:case"end":return r.stop()}},r,t)}))()},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfo.imageUrls=e},deleteImage:function(e){this.storeInfo.imageUrls.splice(e,1)},save:function(){var e=this,t=e.storeInfo.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1];var r=JSON.parse(n()(e.storeInfo)),o=[];e.storeInfo.imageUrls.forEach(function(e){o.push(e.url)}),r.imageUrls=o.join(",");var a=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(m.a)(a,r).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",[r("div",{staticClass:"store-info"},[r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),r("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分组",prop:"storeGroupId"}},[r("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.storeGroupId,callback:function(t){e.$set(e.storeInfo,"storeGroupId",t)},expression:"storeInfo.storeGroupId"}},[r("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),r("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[r("div",{staticClass:"member-upload-image"},[r("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfo.imageUrls,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),r("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340)")])]),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[r("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[r("el-time-select",{attrs:{editable:!1,placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),r("el-time-select",{attrs:{editable:!1,placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[r("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[r("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),r("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),r("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[r("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),r("div",{staticClass:"m-t-15"},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[r("el-input",{staticClass:"m-r-10",model:{value:e.storeInfo.location,callback:function(t){e.$set(e.storeInfo,"location",t)},expression:"storeInfo.location"}}),e._v(" "),r("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank",rel:"nofollow noopener noreferrer"}},[e._v("经纬度测试工具")])],1),e._v(" "),r("el-form-item",{attrs:{prop:"storeCode"}},[r("template",{slot:"label"},[e._v("\n 门店代码\n "),r("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),r("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[r("el-input",{attrs:{disabled:!e.isNew},model:{value:e.storeInfo.managerPhone,callback:function(t){e.$set(e.storeInfo,"managerPhone",t)},expression:"storeInfo.managerPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"店长性别"}},[r("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),r("div",{staticClass:"info-cell"},[r("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),r("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[r("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[r("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),r("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),r("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[r("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"推荐商品"}},[r("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),r("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),r("el-form-item",{attrs:{label:"品牌介绍"}},[r("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),r("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),r("div",{staticClass:"handle-area"},[r("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var v=r("VU/8")(h,g,!1,function(e){r("tV88")},null,null);t.default=v.exports},jyFz:function(e,t,r){var o=function(){return this}()||Function("return this")(),n=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,a=n&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=r("SldL"),n)o.regeneratorRuntime=a;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},tV88:function(e,t){}});
\ No newline at end of file
webpackJsonp([51],{"/NA0":function(e,t){},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,s=n("/ocq"),p=n("5tgt"),m=n.n(p);r.default.use(s.a);var d=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var u,l=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:m()("login","index")},{path:"/index",name:"index",component:m()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:m()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:m()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:m()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:m()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:m()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:m()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:m()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:m()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:m()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:m()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:m()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:m()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:m()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:m()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:m()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:m()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:m()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:m()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:m()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:m()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:m()("enterpriseApp","mycustomer")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:m()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:m()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:m()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:m()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:m()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:m()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:m()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:m()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:m()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:m()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:m()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:m()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:m()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:d},{path:"/404",name:"error404",component:d},{path:"/500",name:"error500",component:d},{path:"*",redirect:"/404",hidden:!0}],v=new s.a({routes:l,scrollBehavior:function(){return{y:0}}}),f=n("zL8q"),h=n.n(f),g=n("Rf8U"),y=n.n(g),A=n("mtWM"),w=n.n(A),C=n("bOdI"),I=n.n(C),x=n("NYxO");r.default.use(x.a);var R=new x.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(u={},I()(u,"login",function(e,t){sessionStorage.token=t,e.token=t}),I()(u,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),I()(u,"title",function(e,t){e.title=t}),I()(u,"show",function(e,t){e.show=t}),u)}),k=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),D=n.n(k),S=n("tyqE"),P=n.n(S),F=n("pRVe"),O=n.n(F),T=n("SE7k"),b=n.n(T),j=n("XsK6"),E=n.n(j),z=n("QRL9"),G=n.n(z),H=n("2Pnh"),N=n.n(H),U=n("l9mu"),q=n.n(U),J={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;N()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,a=n/592.28*841.89,r=o,c=0,i=592.28/n*o,s=t.toDataURL("image/jpeg",1),p=new q.a("","pt","a4");if(r<a)p.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)p.addImage(s,"JPEG",0,c,595.28,i),c-=841.89,(r-=a)>0&&p.addPage();p.save(e+".pdf")})}}};r.default.use(J),r.default.use(E.a),r.default.use(G.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.use(D.a),r.default.config.productionTip=!1,r.default.use(h.a,{size:"large"}),r.default.use(y.a,w.a),r.default.axios.defaults.withCredentials=!0,v.beforeEach(function(e,t,n){var o=void 0,r=window.location.origin;o="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||w.a.get(o+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",a()(t.result))}).catch(function(e){f.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:v,store:R,components:{App:i},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,18],"./contacts/addDepartment.vue":["HHRu",0,17],"./contacts/addEmployee.vue":["00Sv",35],"./contacts/addGroup.vue":["mPjx",0,33],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,38],"./contacts/employeeIo.vue":["Rwbg",0,29],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,31],"./contacts/recordInfo.vue":["67iC",0,11],"./contacts/recordIo.vue":["738z",0,19],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,16],"./contacts/shareCode.vue":["JsWW",0,39],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,13],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,9],"./contacts/storeIo.vue":["RHxA",0,41],"./contacts/unemployee.vue":["TGrv",0,15],"./enterpriseApp/appcenter.vue":["yuVF",0,23],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",49],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",48],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",47],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",46],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",45],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",44],"./enterpriseApp/cloudDaily/template.vue":["IA9l",43],"./enterpriseApp/index.vue":["da9f",42],"./enterpriseApp/mycustomer.vue":["cuIN",0,7],"./errorPage/403.vue":["6XGN",24],"./errorPage/404.vue":["AejC",22],"./errorPage/500.vue":["FskK",21],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,26],"./login/index.vue":["T+/8",0,8],"./reviewCenter/index.vue":["+lem",37],"./reviewCenter/reviewed.vue":["CLYF",0,14],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,36],"./setting/addAdminRole.vue":["fZsz",0,28],"./setting/companyAddress.vue":["SKyE",0,40],"./setting/companyCertify.vue":["3zYh",0,10],"./setting/index.vue":["VlR1",30],"./setting/replaceAdmin.vue":["ys9I",0,32],"./setting/setChildAdmin.vue":["VqB7",0,34],"./setting/staffDetails.vue":["Zyzf",0,25],"./setting/storePermission.vue":["Xwfy",0,20]};function a(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Xcu2:function(e,t){},uKUT:function(e,t){}},["NHnr"]);
\ No newline at end of file
webpackJsonp([51],{"/NA0":function(e,t){},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,s=n("/ocq"),p=n("5tgt"),m=n.n(p);r.default.use(s.a);var d=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var u,l=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:m()("login","index")},{path:"/index",name:"index",component:m()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:m()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:m()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:m()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:m()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:m()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:m()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:m()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:m()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:m()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:m()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:m()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:m()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:m()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:m()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:m()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:m()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:m()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:m()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:m()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:m()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:m()("enterpriseApp","mycustomer")},{path:"/dailyRecorde",name:"云日报记录",component:m()("enterpriseApp/cloudDaily","dailyRecorde")},{path:"/dailyDetail",name:"日报详情",component:m()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:m()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:m()("enterpriseApp/cloudDaily","systemReport")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:m()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:m()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:m()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:m()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:m()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:m()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:m()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:m()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:m()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:m()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:m()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:m()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:m()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:m()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:m()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:d},{path:"/404",name:"error404",component:d},{path:"/500",name:"error500",component:d},{path:"*",redirect:"/404",hidden:!0}],h=new s.a({routes:l,scrollBehavior:function(){return{y:0}}}),v=n("zL8q"),f=n.n(v),y=n("Rf8U"),g=n.n(y),A=n("mtWM"),w=n.n(A),C=n("bOdI"),I=n.n(C),R=n("NYxO");r.default.use(R.a);var x=new R.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(u={},I()(u,"login",function(e,t){sessionStorage.token=t,e.token=t}),I()(u,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),I()(u,"title",function(e,t){e.title=t}),I()(u,"show",function(e,t){e.show=t}),u)}),D=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),k=n.n(D),S=n("tyqE"),P=n.n(S),F=n("pRVe"),O=n.n(F),T=n("SE7k"),b=n.n(T),j=n("XsK6"),E=n.n(j),z=n("QRL9"),G=n.n(z),H=n("2Pnh"),N=n.n(H),U=n("l9mu"),q=n.n(U),J={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;N()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,a=n/592.28*841.89,r=o,c=0,i=592.28/n*o,s=t.toDataURL("image/jpeg",1),p=new q.a("","pt","a4");if(r<a)p.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)p.addImage(s,"JPEG",0,c,595.28,i),c-=841.89,(r-=a)>0&&p.addPage();p.save(e+".pdf")})}}};r.default.use(J),r.default.use(E.a),r.default.use(G.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.use(k.a),r.default.config.productionTip=!1,r.default.use(f.a,{size:"large"}),r.default.use(g.a,w.a),r.default.axios.defaults.withCredentials=!0,h.beforeEach(function(e,t,n){var o=void 0,r=window.location.origin;o="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||w.a.get(o+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",a()(t.result))}).catch(function(e){v.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:h,store:x,components:{App:i},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,20],"./contacts/addDepartment.vue":["HHRu",0,19],"./contacts/addEmployee.vue":["00Sv",37],"./contacts/addGroup.vue":["mPjx",0,35],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,40],"./contacts/employeeIo.vue":["Rwbg",0,31],"./contacts/employeeRecord.vue":["zGJY",0,7],"./contacts/fileSet.vue":["CSjr",0,10],"./contacts/index.vue":["41Rh",0,33],"./contacts/recordInfo.vue":["67iC",0,14],"./contacts/recordIo.vue":["738z",0,21],"./contacts/recycle.vue":["HkK0",0,29],"./contacts/shareAddDepartment.vue":["q5Ri",0,18],"./contacts/shareCode.vue":["JsWW",0,41],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,9],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,12],"./contacts/storeIo.vue":["RHxA",0,43],"./contacts/unemployee.vue":["TGrv",0,17],"./enterpriseApp/appcenter.vue":["yuVF",0,25],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",49],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",48],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",47],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",46],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",45],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,5],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,8],"./enterpriseApp/index.vue":["da9f",44],"./enterpriseApp/mycustomer.vue":["cuIN",0,6],"./errorPage/403.vue":["6XGN",26],"./errorPage/404.vue":["AejC",24],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,28],"./login/index.vue":["T+/8",0,11],"./reviewCenter/index.vue":["+lem",39],"./reviewCenter/reviewed.vue":["CLYF",0,16],"./reviewCenter/unreview.vue":["xCEU",0,15],"./setting/addAdmin.vue":["rs/A",0,38],"./setting/addAdminRole.vue":["fZsz",0,30],"./setting/companyAddress.vue":["SKyE",0,42],"./setting/companyCertify.vue":["3zYh",0,13],"./setting/index.vue":["VlR1",32],"./setting/replaceAdmin.vue":["ys9I",0,34],"./setting/setChildAdmin.vue":["VqB7",0,36],"./setting/staffDetails.vue":["Zyzf",0,27],"./setting/storePermission.vue":["Xwfy",0,22]};function a(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Xcu2:function(e,t){},uKUT:function(e,t){}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={53:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"3954f618bd91fb8ab352",1:"0ebe3ead93207dc78a78",2:"a3034ac019ab3b076959",3:"7f87f1f60c09bb6ad371",4:"7dd9b3bb0689b9db1cf3",5:"b0a187aaf1e459460244",6:"a1105921d42aebded6b4",7:"e2adc4d7afcbe0a7ed52",8:"4e644faa66d9e9fa603c",9:"e11292258757e4723ddc",10:"e814eb130da46ab8f9ac",11:"16cc3dd06e4ac2270b1c",12:"1320a9134a2a1fd198b7",13:"f0eeeb571414f7729a5b",14:"03b6a6249c86c65ed92f",15:"e0b74d60b14247754cb3",16:"d2f23967b1247f2207ec",17:"9cfaee8d66ae728ea464",18:"81ae347a12f75b90e007",19:"cc8c9552f7ea84249be2",20:"379b89d1e0c7cf9f8849",21:"5b641ccd48d8549c5794",22:"e5afaf479f07c6e415ce",23:"9efbbc6dd315a676ce09",24:"bf6f0ff86766a16c7dbd",25:"0f3d8bc9463f0407a036",26:"8f0bb144b5e757399727",27:"5c2be06a9f9acecd442d",28:"a1ba14dc47dcc5f85d3e",29:"7997e8a2ccbd7372a45d",30:"710e83baeca710acf795",31:"7a90fd36c3dbb5351218",32:"1698f86a851d84bc6e8e",33:"5526970631a630fe7d39",34:"faebf976540c43a270ad",35:"8425bf13fae43f58bbc3",36:"b4d48c4b28ba43575533",37:"afe582df1ffb8bcacac1",38:"c7191356e3b440f1f1b9",39:"0a06f6de652e6a136094",40:"7eccc58d1fa84f809d9f",41:"9c142f757fe9d07f5d3a",42:"82be8bf4c2e9f01fe99a",43:"c3f55d00fa43dc478661",44:"b0cd6b9187585f5dce54",45:"9c5c08df1bc33dbfc6ea",46:"b222c4332a4cf5840638",47:"e6ccd434d3ea909230e3",48:"f9e91ea7f902b6470b0e",49:"0df5908297e9d9424ad4",52:"9163f5ddf1d6ca64674f"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,f,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);for(c&&c(a,f,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},d={53:0};function b(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,b),d.l=!0,d.exports}b.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=d[e]=[a,b]});c[2]=a;var f=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"3954f618bd91fb8ab352",1:"0ebe3ead93207dc78a78",2:"a3034ac019ab3b076959",3:"7f87f1f60c09bb6ad371",4:"7dd9b3bb0689b9db1cf3",5:"3417bcae84d670c66db1",6:"fbd06ea78358b8144d70",7:"7c1bf143dac1217bebda",8:"2802b9d08c6d36ac726b",9:"f60e2a9e3d74bed6d4ec",10:"465947c35e2b0d45a332",11:"10216a10688d7d359b3e",12:"6a1e5c087135ab3f6bbd",13:"19c2359fcbed64c729b1",14:"5933ddb584aedc5e1dbd",15:"5a0fb78476b8434c284c",16:"6112f39c8d0397aec337",17:"65d62147154533f97d6c",18:"97dd749662557b114059",19:"bd7c14bc0f4459a3a721",20:"4d70c0564454879d9554",21:"95b9e75e267a37620b22",22:"6bd2fd67be2a1fc55b35",23:"e4f495cfe628e0c60b35",24:"3ae82214b65939d3d2e0",25:"cb22142c5e2b828424d1",26:"946cc918f475a07dd2b2",27:"af4b1ef4511f15e9c04e",28:"c9b4be5e0415344fed0a",29:"731cdbbcbc197992aba6",30:"e16084cc0e35a7c402f8",31:"743217a1dc32ca721406",32:"faa38975542bc7439c1e",33:"71d24e2917d0cfc30265",34:"6951bb991ea4f8a5cfc1",35:"7692c079aaf76398a760",36:"c8a08885fa6a54ac84a2",37:"e7f74117ff2d1e3b9781",38:"29ef9e6cee274a843033",39:"e88ae2403ae8b36c870c",40:"8bd5da6dd9557890e3e4",41:"c317a0ca7070f29cd2bd",42:"600344d365afaed17bae",43:"dbe6d1101c00e580ff00",44:"de7b257065e6e6e2aaa3",45:"9c5c08df1bc33dbfc6ea",46:"b222c4332a4cf5840638",47:"e6ccd434d3ea909230e3",48:"f9e91ea7f902b6470b0e",49:"0df5908297e9d9424ad4",52:"30a499ad61529da8e8e7"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,f.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -154,9 +154,9 @@ export default {
line-height: 22px;
text-align: center;
border-radius: 4px;
background: -webkit-linear-gradient(left, #7ab6fb, #508bfe);
background: -moz-linear-gradient(left, #7ab6fb, #508bfe);
background: linear-gradient(left, #7ab6fb, #508bfe);
background: -webkit-linear-gradient(right, #7ab6fb, #508bfe);
background: -moz-linear-gradient(right, #7ab6fb, #508bfe);
background: linear-gradient(right, #7ab6fb, #508bfe);
}
}
}
......
......@@ -156,6 +156,26 @@ export const constantRouterMap = [
name: '我的顾客',
component: _import('enterpriseApp', 'mycustomer')
},
{
path: '/dailyRecorde',
name: '云日报记录',
component: _import('enterpriseApp/cloudDaily', 'dailyRecorde')
},
{
path: '/dailyDetail',
name: '日报详情',
component: _import('enterpriseApp/cloudDaily', 'dailyDetail')
},
{
path: '/taskAssign',
name: '任务下发设置',
component: _import('enterpriseApp/cloudDaily', 'taskAssign')
},
{
path: '/systemReport',
name: '系统报表',
component: _import('enterpriseApp/cloudDaily', 'systemReport')
},
]
},
{
......@@ -232,6 +252,16 @@ export const constantRouterMap = [
component: _import('contacts', 'staffRecordsTemplate')
},
{
path: '/systemReportSet',
name: '系统报表设置',
component: _import('enterpriseApp/cloudDaily', 'systemReportSet')
},
{
path: '/template',
name: '模板设置',
component: _import('enterpriseApp/cloudDaily', 'template')
},
{
path: '/403',
name: '无权访问',
component: errorPage
......
......@@ -154,7 +154,7 @@ export default {
let that = this;
if (item.appType == 0) {
// 本地
that.$router.push(`${item.appUrl}?appId=${item.id}`);
that.$router.push(`${item.appUrl}?appId=${item.appId}`);
} else {
window.open(item.appUrl);
}
......
<template>
<div class="my-customer-wrap common-set-wrap">
<!-- <nav-crumb :navpath="navpath"> </nav-crumb> -->
<div class="right-content">
<common-app-top :appName="appName" :appIcon="appIcon" @selectBrandId="selectBrandId"> </common-app-top>
<div class="right-box" :style="{ 'min-height': $store.state.bgHeight }">
<div class="apps-content flex" :style="{ height: $store.state.bgHeight }">
<div class="apps-content-left w-157">
<common-detail-left :tabListData="tabListData" @setSelectTab="setSelectTab"></common-detail-left>
</div>
<div class="apps-content-right">
<app-detail :brandId="activeBrand" :tabType="activeTab"></app-detail>
</div>
</div>
</div>
</div>
<vue-gic-footer></vue-gic-footer>
<!-- 公共组件 -->
</div>
</template>
<script>
// import navCrumb from '@/components/nav/nav.vue';
import appDetail from '@/components/app/app-detail.vue';
import commonAppTop from '@/components/app/common-app-top.vue';
import commonDetailLeft from '@/components/app/app-detail-left.vue';
export default {
name: 'reviewed',
data() {
return {
tableH: window.screen.availHeight - 464 - 126 + 'px',
// 面包屑参数
/* navpath: [
{
name: '首页',
path: '/index'
},
{
name: '企业应用',
path: ''
}
], */
appName: '云日报',
appIcon: 'icon-ribao',
activeTab: '1',
tabListData: [
{
tabId: '1',
tabName: '云日报记录',
icon: 'icon-ribao'
},
{
tabId: '2',
tabName: '云日报设置',
icon: 'icon-ribaoshezhi',
children: [
{
tabId: '21',
tabName: '模板配置',
icon: '',
children: [
{
tabId: '211',
tabName: '系统报表',
icon: ''
},
{
tabId: '212',
tabName: '自定义报表',
icon: ''
}
]
},
{
tabId: '22',
tabName: '任务下发设置',
icon: ''
}
]
}
],
activeBrand: '1' // 商户(品牌) id
};
},
computed: {},
methods: {
/**
* 返回 的 brandId
*/
selectBrandId(id) {
let that = this;
that.activeBrand = id;
},
setSelectTab(item) {
let that = this;
that.activeTab = item.tabId;
}
},
watch: {
activeBrand: function(newData, oldData) {
const that = this;
that.activeBrand = newData;
}
},
mounted() {
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
// navCrumb,
appDetail,
commonAppTop,
commonDetailLeft
}
};
</script>
<style type="text/scss" lang="scss" scoped>
.bg-82C5FF {
background: #82c5ff;
}
.color-508CEE {
color: #508cee;
}
.color-FF585C {
color: #ff585c;
}
.line-h-18 {
line-height: 18px;
}
.tooltip-text {
width: 100%;
white-space: pre-wrap;
word-break: break-all;
}
.right-content {
/*width: 100%;*/
padding: 24px;
min-height: calc(100% - 240px);
.my-customer-top {
position: relative;
height: 43px;
line-height: 43px;
.my-customer-return {
position: absolute;
left: 0px;
bottom: 10px;
width: 78px;
height: 32px;
border-radius: 18px;
}
.my-customer-brand {
position: absolute;
right: 0;
bottom: 18px;
width: 93px;
height: 32px;
}
.my-customer-name {
width: 200px;
margin: 0 auto;
i {
font-size: 14px;
color: #fff;
}
span {
font-size: 16px;
color: #000;
}
.app-icon {
display: inline-block;
width: 22px;
height: 22px;
line-height: 22px;
text-align: center;
border-radius: 4px;
background: -webkit-linear-gradient(left, #7ab6fb, #508bfe);
background: -moz-linear-gradient(left, #7ab6fb, #508bfe);
background: linear-gradient(left, #7ab6fb, #508bfe);
}
}
}
.right-box {
// background: #fff;
min-height: 500px;
padding: 0px;
.apps-content {
.apps-content-left {
height: 100%;
background: #fff;
overflow-x: hidden;
overflow-y: auto;
.apps-content-left__title {
height: 55px;
line-height: 55px;
padding: 0 0 0 18px;
}
.tab-left-list-cell {
position: relative;
text-align: left;
margin-top: 15px;
height: 30px;
line-height: 30px;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
&:hover {
background: rgba(24, 144, 255, 0.06);
i {
color: #1890ff;
}
}
&.active-tab {
background: rgba(24, 144, 255, 0.06);
&::before {
content: ' ';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 2px;
background: #1890ff;
z-index: 1;
}
i {
color: #1890ff;
}
}
.child-tab-left-list {
li {
position: relative;
text-align: left;
height: 30px;
line-height: 30px;
white-space: nowrap;
overflow: hidden;
cursor: pointer;
&:hover {
background: rgba(24, 144, 255, 0.06);
i {
color: #1890ff;
}
}
&.active-tab {
background: rgba(24, 144, 255, 0.06);
&::before {
content: ' ';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 2px;
background: #1890ff;
z-index: 1;
}
i {
color: #1890ff;
}
}
}
}
}
}
.apps-content-right {
width: calc(100% - 10px);
margin-left: 10px;
background: #fff;
}
}
}
}
</style>
<template>
<div class="template-wrap" :style="{ height: bodyHeight }">
<div class="template-contain">
<!-- 头部标题 -->
<div class="template-head">
<div class="template-title flex-1">
<img src="../../../assets/logo45_45.png" alt="logo" />
<span class="template-title-span">员工档案设置</span>
</div>
<div class="template-btns flex-1 flex-r">
<el-button type="primary" plain @click="saveAndBack('preview')">预 览</el-button>
<el-button type="primary" plain @click="changeRoute('/fileSet')">返 回</el-button>
<el-button type="primary" @click="saveAndBack('save')">保存并启用</el-button>
</div>
</div>
<!-- 模板body -->
<div class="template-body">
<!-- 左侧 -->
<div class="template-cell template-cell-l">
<!-- tab 切换 -->
<el-tabs v-model="activeName">
<el-tab-pane label="系统字段" name="first">
<div class="filed-item-title">基本信息</div>
<ul>
<draggable id="list1" @clone="baseInfoClone" :list="baseInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd"
><!-- @end="itemMoveEnd" -->
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in baseInfo" :key="index" @mousedown="clickItem(item)" aria-hidden="true">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
<div class="filed-item-title">工作信息</div>
<ul>
<draggable id="list2" :list="jobInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in jobInfo" :key="index" @mousedown="clickItem(item)">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
<div class="filed-item-title">个人信息</div>
<ul>
<draggable id="list3" :list="selfInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in selfInfo" :key="index" @mousedown="clickItem(item)">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
<div class="filed-item-title">学历信息</div>
<ul>
<draggable id="list4" :list="eduInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in eduInfo" :key="index" @mousedown="clickItem(item)">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
<div class="filed-item-title">合同信息</div>
<ul>
<draggable id="list5" :list="contractInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in contractInfo" :key="index" @mousedown="clickItem(item)">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
<div class="filed-item-title">紧急联系人</div>
<ul>
<draggable id="list5" :list="contactInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in contactInfo" :key="index" @mousedown="clickItem(item)">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
<div class="filed-item-title">个人材料</div>
<ul>
<draggable id="list5" :list="personalInfo" class="compenent" :options="leftOption" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in personalInfo" :key="index" @mousedown="clickItem(item)">
<span>{{ item.fieldName }}</span>
</li>
</draggable>
</ul>
</el-tab-pane>
<el-tab-pane label="自定义字段" name="second">
<div class="filed-item-title"><!-- 其他信息 --></div>
<ul>
<draggable id="list5" :list="defineInfo" class="compenent" :options="leftDefineOption" :move="onChildMove" @start="isDragging = true" @end="itemMoveEnd" @clone="cloneDefine">
<li :class="['compenent-item', item.fixed == true ? 'fixed-item' : '']" :data-type="item.fieldCode" v-for="(item, index) in defineInfo" :key="index" @mousedown="clickItem(item)">
<span v-if="!item.systemFlag && item.fieldType == 0">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 1">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 2">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 3">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 4">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 5">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 6">{{ item.fieldName }}</span>
<span v-if="!item.systemFlag && item.fieldType == 7">{{ item.fieldName }}</span>
<i v-if="!item.systemFlag && item.fieldType == 0" class="bg-icon bg-icon-one"></i>
<i v-if="!item.systemFlag && item.fieldType == 1" class="bg-icon bg-icon-two"></i>
<i v-if="!item.systemFlag && item.fieldType == 2" class="bg-icon bg-icon-three"></i>
<i v-if="!item.systemFlag && item.fieldType == 3" class="bg-icon bg-icon-four"></i>
<i v-if="!item.systemFlag && item.fieldType == 4" class="bg-icon bg-icon-five"></i>
<i v-if="!item.systemFlag && item.fieldType == 5" class="bg-icon bg-icon-six"></i>
<i v-if="!item.systemFlag && item.fieldType == 6" class="bg-icon bg-icon-seven"></i>
<i v-if="!item.systemFlag && item.fieldType == 7" class="bg-icon bg-icon-eight"></i>
</li>
</draggable>
</ul>
</el-tab-pane>
</el-tabs>
</div>
<!-- 中间 -->
<div class="template-cell template-cell-m">
<div class="phone-view">
<div class="phone-show-content">
<!-- 拖拽展示区域 -->
<div class="drag-show-content">
<div class="view-container">
<ul class="view-content" id="showPhoneView">
<template v-if="tempaletDataList.length == 0">
<img class="templet-null-img" src="../../../assets/templet_null_img.png" />
</template>
<draggable :options="{ group: { name: 'people', pull: false, put: false }, sort: true }" v-model="tempaletDataList" class="drag-wrap" @add="addItem">
<li :class="['filed-item', currentIndex == index ? 'active-item' : '', 'li-block']" v-for="(item, index) in tempaletDataList" :key="'li1' + index" @click="selectItem(item.fieldCode, index)">
<!-- 删除 -->
<span v-if="item.fieldCode != 'baseInfo'" class="item-close p-item-close" @click.stop="deleteItem(item.fieldCode, index)">
<i class="el-icon-close"></i>
</span>
<template>
<div class="block">
<div class="block-head">
<div :class="['opencard-item-title', item.fieldName.length > 6 ? 'block-pre-wrap' : '']">{{ item.fieldName }}</div>
</div>
<ul class="view-content">
<draggable :options="{ group: { name: 'people', pull: false, put: true }, sort: true }" v-model="item.children" :class="['drag-wrap', 'block-wrap', item.fieldCode]" @add="addDragItem">
<li :class="['filed-item', 'child-filed-item', currentChildKey == childItem.fieldCode && currentChildIndex == ind ? 'active-item' : '']" v-for="(childItem, ind) in item.children" :key="'li' + ind" @click.stop="selectChildItem(childItem.fieldCode, index, ind, item.children)">
<!-- 删除 -->
<span class="item-close child-item-close" @click.stop="deleteChildItem(childItem.fieldCode, index, ind, item.children, childItem)" v-if="childItem.fieldCode != 'clerkPhone'"
><!--手机号禁止删除-->
<i class="el-icon-close"></i>
</span>
<!-- item -->
<!-- 单择/多选/日期 -->
<div v-if="childItem.fieldType == 2 || childItem.fieldType == 3 || childItem.fieldType == 4">
<div :class="['opencard-item-title', childItem.fieldName.length > 6 ? 'title-pre-wrap' : '']">{{ childItem.fieldName }}</div>
<div class="draged-item-show">
<span class="show-warm-text show-warm-text-flag select-flag">{{ childItem.fieldDescription }} <i class="el-icon-arrow-right"></i></span>
</div>
</div>
<!-- 日期区间 -->
<div v-if="childItem.fieldType == 5">
<div>
<div :class="['opencard-item-title', childItem.fieldOperations.startName.length > 6 ? 'title-pre-wrap' : '']">{{ childItem.fieldOperations.startName }}</div>
<div class="draged-item-show">
<span class="show-warm-text show-warm-text-flag select-flag">{{ childItem.fieldOperations.startDescription }}<i class="el-icon-arrow-right"></i></span>
</div>
</div>
<div class="b-t-1">
<div :class="['opencard-item-title', childItem.fieldOperations.endName.length > 6 ? 'title-pre-wrap' : '']">{{ childItem.fieldOperations.endName }}</div>
<div class="draged-item-show">
<span class="show-warm-text show-warm-text-flag select-flag">{{ childItem.fieldOperations.endDescription }}<i class="el-icon-arrow-right"></i></span>
</div>
</div>
</div>
<!-- 图片 -->
<div v-if="childItem.fieldType == 7">
<div :class="['opencard-item-title', childItem.fieldName.length > 6 ? 'title-pre-wrap' : '']">{{ childItem.fieldName }}</div>
<div class="draged-item-show">
<span class="show-warm-text show-warm-text-flag select-flag"><i class="iconfont icon-icon"></i></span>
</div>
</div>
<!-- 单行/多行/数字输入框 -->
<div v-if="childItem.fieldType == 0 || childItem.fieldType == 1 || childItem.fieldType == 6">
<div :class="['opencard-item-title', childItem.fieldName.length > 6 ? 'title-pre-wrap' : '']">{{ childItem.fieldName }}</div>
<div class="draged-item-show">
<span class="show-warm-text show-warm-text-flag">{{ childItem.fieldDescription }}</span>
</div>
</div>
</li>
</draggable>
</ul>
</div>
</template>
</li>
</draggable>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧 -->
<div class="template-cell template-cell-r">
<el-tabs v-model="rightName">
<el-tab-pane label="控件设置" name="first">
<div id="edit-box">
<div class="edit-view baby-info-flag baby-info">
<template v-for="(item, index) in tempaletDataList">
<!-- 公共 -->
<template v-if="currentIndex == index && item.parentCode == '0'">
<div class="edit-item " :key="'parent' + index">
<div class="edit-item-title edit-title-padding">标题</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="item.fieldName" :holder="''" :disflag="true" :getByType="'word'" :maxLength="10"> </limitInput>
</div>
</template>
<!-- 组块内部 -->
<template v-if="childIndex == index && !!item.children && !!item.children.length">
<template v-for="(childItem, ind) in item.children">
<!-- 标题 日期区间例外-->
<template v-if="currentChildIndex == ind">
<div class="edit-item test-title limit-w-340" :key="'child' + ind">
<div class="edit-item-title">标题</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldName" :holder="''" :disflag="childItem.systemFlag" :getByType="'word'" :maxLength="10"> </limitInput>
<p v-if="childItem.fieldType == 7" style="margin-top: 8px;font-size: 12px;color: rgba(255, 255, 255, 0.7)">
{{ childItem.fieldDescription }}
</p>
</div>
</template>
<!-- 提示 -->
<template v-if="currentChildIndex == ind && !(childItem.fieldType == 5 || childItem.fieldType == 7)">
<div class="edit-item test-title limit-w-340" :key="'child1' + ind">
<div class="edit-item-title">提示文字</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldDescription" :holder="''" :disflag="false" :getByType="'word'" :maxLength="20"> </limitInput>
</div>
</template>
<template v-if="currentChildIndex == ind && childItem.fieldType == 5">
<div class="edit-item test-title limit-w-340" :key="'child2' + ind">
<div class="edit-item-title">开始时间</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldOperations.startName" :holder="''" :disflag="childItem.systemFlag" :getByType="'word'" :maxLength="10"> </limitInput>
</div>
<div class="edit-item test-title limit-w-340" :key="'child3' + ind">
<div class="edit-item-title">提示文字</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldOperations.startDescription" :holder="''" :disflag="false" :getByType="'word'" :maxLength="20"> </limitInput>
</div>
<div class="edit-item test-title limit-w-340" :key="'child4' + ind">
<div class="edit-item-title">结束时间</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldOperations.endName" :holder="''" :disflag="childItem.systemFlag" :getByType="'word'" :maxLength="10"> </limitInput>
</div>
<div class="edit-item test-title limit-w-340" :key="'child5' + ind">
<div class="edit-item-title">提示文字</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldOperations.endDescription" :holder="''" :disflag="false" :getByType="'word'" :maxLength="20"> </limitInput>
</div>
</template>
<!-- 单位 -->
<template v-if="currentChildIndex == ind && childItem.fieldType == 6">
<div class="edit-item test-title limit-w-340" :key="'child6' + ind">
<div class="edit-item-title">单位</div>
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="childItem.fieldOperations.unit" :holder="''" :disflag="false" :getByType="'word'" :maxLength="20"> </limitInput>
</div>
</template>
<!-- 类型 -->
<template v-if="currentChildIndex == ind && (childItem.fieldType == 4 || childItem.fieldType == 5)">
<div class="edit-item " :key="'child7' + ind">
<div class="edit-item-title">日期类型</div>
<!-- 日期 -->
<template v-for="(types, ind) in childItem.fieldOperations.ruleContent">
<el-radio v-model="childItem.fieldOperations.typeValue" :label="types.key" :key="'child8' + ind" @change="changeRadio($event, ind, childItem)">
{{ types.name }}
</el-radio>
</template>
</div>
</template>
<!-- 选项 -->
<template v-if="currentChildIndex == ind && (childItem.fieldType == '2' || childItem.fieldType == '3')">
<div class="edit-item " :key="'child9' + ind">
<div class="edit-item-title">选项 <span v-if="!childItem.systemFlag">最多20项,每项最多10个字</span></div>
<template v-for="(types, ind) in childItem.fieldOperations.fieldContent">
<div class="margin-t-15 limit-w-340" :style="ind == 0 ? 'margin-top: 0' : ''" :key="'child10' + ind">
<limitInput :inputWidth="340" :limitClass="'limit-color'" :inputValue.sync="types.name" :holder="''" :disflag="childItem.systemFlag" :getByType="'word'" :maxLength="10"> </limitInput>
<i class="opt-btn el-icon-remove del-item" v-if="!childItem.systemFlag && childItem.fieldOperations.fieldContent.length > 1" @click="delChildItem(index, ind, childItem)"></i>
<template v-if="!childItem.systemFlag && ind < 19">
<i class="opt-btn el-icon-circle-plus add-item" v-if="ind == childItem.fieldOperations.fieldContent.length - 1" @click="addChildItem(index, ind, childItem)"></i>
</template>
</div>
</template>
</div>
</template>
<!-- 必填 -->
<template v-if="currentChildIndex == ind">
<div class="edit-item" :key="'child11' + ind">
<div class="edit-item-title">验证</div>
<el-checkbox v-model="childItem.isMust">必填</el-checkbox>
</div>
</template>
<!-- 公共 -->
<template v-if="currentChildIndex == ind">
<!-- 员工档案中 -->
<div class="edit-item " :key="'parent2' + ind">
<div class="edit-item-title">员工档案中</div>
<div class="staffRecords-limit">
<el-radio class="label-cell" v-model="childItem.staffRecordsIds.staffVisible" label="1">对员工可见</el-radio>
<el-radio class="label-cell" v-model="childItem.staffRecordsIds.staffVisible" label="0">对员工不可见</el-radio>
</div>
<div class="staffRecords-limit">
<el-radio class="label-cell" v-model="childItem.staffRecordsIds.staffModify" label="1">对员工可修改</el-radio>
<el-radio class="label-cell" v-model="childItem.staffRecordsIds.staffModify" label="0">对员工不可修改</el-radio>
</div>
</div>
</template>
</template>
</template>
<!-- 组块内部 -->
</template>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
<div class="qr-dialog-content" style="opacity: 1;" v-show="dialogVisible">
<div class="qr-mask" @click.stop="closeDialog"></div>
<div class="qr-dialog">
<div class="qr-dialog__hd">
<strong class="qr-dialog__title">预览</strong>
<i class="el-icon-close" @click.stop="closeDialog"></i>
</div>
<div class="qr-dialog__bd">
<div id="qrcode"></div>
<div class="qr-dialog__p">请使用好办 APP 扫一扫预览</div>
</div>
<div class="qr--dialog__ft"></div>
</div>
</div>
<!-- <vue-gic-footer></vue-gic-footer> -->
</div>
</template>
<script>
import draggable from 'vuedraggable';
import AddInput from '@/components/templateSet/add-input';
import limitInput from '@/components/limit-input.vue';
import QRCode from 'qrcodejs2';
import allInfo from '@/components/contacts/staffInfoTemplate';
import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error';
// import strLength from '@/common/js/strlen';
// import { _debounce } from '@/common/js/public';
import { postRequest } from '@/api/api';
export default {
name: 'staffRecordsTemplate',
data() {
return {
// tab
activeName: 'first',
// right tab
rightName: 'first',
dialogVisible: false,
bodyHeight: (document.documentElement.clientHeight || document.body.clientHeight) + 'px',
// option
isDragging: false,
delayedDragging: false,
// leftOption
leftOption: {
group: { name: 'people', pull: 'clone', put: false },
sort: false,
disabled: false
},
leftDefineOption: {
group: { name: 'people', pull: 'clone', put: false },
sort: false,
disabled: false
},
// rightOption
selectKey: '',
// 基本信息
baseInfo: [],
// 工作信息
jobInfo: [],
// 个人信息
selfInfo: [],
// 学历信息
eduInfo: [],
// 合同信息
contractInfo: [],
// 紧急联系人
contactInfo: [],
// 个人材料
personalInfo: [],
// 自定义
defineInfo: allInfo.defineInfo(),
// 中间数据集合
currentIndex: 0, //当前选择的 item
// children
currentChildKey: null,
currentChildIndex: null,
childIndex: 0,
tempaletDataList: [
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'baseInfo',
fieldName: '基本信息',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
fieldOperations: {
ruleContent: [], // 单选 日期有
fieldContent: [] // 选项
},
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
},
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'jobInfo',
fieldName: '工作信息',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
},
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'selfInfo',
fieldName: '个人信息',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
},
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'eduInfo',
fieldName: '学历信息',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
},
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'contractInfo',
fieldName: '合同信息',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
},
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'contactInfo',
fieldName: '紧急联系人',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
},
{
parentCode: '0',
fieldTemplateId: '',
parentFieldTemplateId: '0',
minCount: 10,
maxCount: 20,
fieldCode: 'personalInfo',
fieldName: '个人资料',
fieldEdited: false, // 修改(0:不可修改,1:可修改)
isMust: false,
fieldDescription: '',
children: [],
fieldType: '',
staffRecordsIds: {},
status: ''
}
],
// 添加父级集合
fieldParent: {
baseInfo: {},
jobInfo: {},
selfInfo: {},
eduInfo: {},
contractInfo: {},
contactInfo: {},
personalInfo: {}
},
// 已经选择的字段集合
setList: [],
// 二维码
qrcodeCase: '', // 二维码实例
qrcodeNum: ''
};
},
created() {
// this.selectReplayStyle()
},
methods: {
/**
* baseInfoClone
*/
baseInfoClone() {
// const that = this;
// that.baseInfo = JSON.parse(JSON.stringify(that.baseInfo))
},
/**
* 点击左侧字段 item
*/
clickItem(item) {
const that = this;
// item.fixed = !item.fixed
// 判断 中间数据中是否存在父级
let fieldArr = that.tempaletDataList.map(item => item.fieldCode);
if (!fieldArr.includes(item.parentCode) && item.parentCode !== 'defineInfo') {
that.tempaletDataList.push(that.fieldParent[item.parentCode]);
that.tempaletDataList = JSON.parse(JSON.stringify(that.tempaletDataList));
}
},
/**
* move 检查对应所在组
*/
checkMove(evt) {
let flag = true;
if (evt.draggedContext.element.parentCode == 'baseInfo' && !evt.to.className.includes('baseInfo')) {
flag = false;
}
if (evt.draggedContext.element.parentCode == 'jobInfo' && !evt.to.className.includes('jobInfo')) {
flag = false;
}
if (evt.draggedContext.element.parentCode == 'selfInfo' && !evt.to.className.includes('selfInfo')) {
flag = false;
}
if (evt.draggedContext.element.parentCode == 'eduInfo' && !evt.to.className.includes('eduInfo')) {
flag = false;
}
if (evt.draggedContext.element.parentCode == 'contractInfo' && !evt.to.className.includes('contractInfo')) {
flag = false;
}
if (evt.draggedContext.element.parentCode == 'contactInfo' && !evt.to.className.includes('contactInfo')) {
flag = false;
}
if (evt.draggedContext.element.parentCode == 'personalInfo' && !evt.to.className.includes('personalInfo')) {
flag = false;
}
return flag;
},
/**
* move{relatedContext, draggedContext}
*/
onMove(evt) {
const that = this;
// 判断中间是否存在父级
if (!that.checkMove(evt)) {
return false;
}
// const relatedElement = evt.relatedContext.element;
const draggedElement = evt.draggedContext.element;
//console.log(draggedElement.fixed)(!relatedElement || !relatedElement.fixed) &&
return !draggedElement.fixed;
},
/**
* move child
*/
onChildMove(evt) {
let tag = true;
if (evt.dragged.className.indexOf('block-class') != -1) {
if (evt.to.className.indexOf('block-wrap') != -1) {
// tag = false
}
}
return tag;
},
/**
* move end
*/
itemMoveEnd(evt) {
const that = this;
that.isDragging = false;
that.selectKey = '';
that.selectKey = evt.clone.dataset.type;
// 判断中间是否已经添加
that.tempaletDataList.forEach(function(ele, index) {
ele.children.forEach(function(child, key) {
if (!!child.systemFlag && child.fieldCode == that.selectKey) {
setKey(child.parentCode);
}
});
});
/* eslint-disable */
function setKey(parentCode) {
/* eslint-disable */
that[parentCode].forEach(function(ele, index) {
/* eslint-disable */
if (ele.fieldCode == that.selectKey) {
ele.fixed = true;
}
});
}
that.selectKey = '';
that.tempaletDataList = JSON.parse(JSON.stringify(that.tempaletDataList));
that.$forceUpdate();
},
cloneDefine(evt) {
},
// 中间部分方法
/**
* 选择 item 即父级 item
*/
selectItem(key, index) {
const that = this;
that.currentIndex = index; // 父级:当前选中的索引
that.currentChildIndex = null; // 子级未有选中
},
/**
* 删除 item 即父级 item
*/
deleteItem(key, index) {
const that = this;
that.tempaletDataList.splice(index, 1);
that.currentIndex--;
if (that.currentIndex <= 0) {
that.currentIndex = 0;
}
// 删除后重新设置 fixed 值
that[key].forEach(function(ele, index) {
ele.fixed = false;
});
},
/**
* 添加 item
*/
/* eslint-disable */
addItem() {
},
/**
* 添加 child
*/
addDragItem(evt) {
return false;
},
/**
* 选择 item 即子级 item
*/
selectChildItem(key, index, ind, list) {
const that = this;
that.currentIndex = null;
that.currentChildKey = key;
that.childIndex = index;
that.currentChildIndex = ind;
},
/**
* 删除 item 即子级 item
*/
deleteChildItem(key, index, ind, list, childItem) {
const that = this;
that.childIndex = index;
that.currentIndex = null;
that.currentChildKey = that.tempaletDataList[index].children[ind].fieldCode;
that.currentChildIndex--;
if (that.currentChildIndex <= 0) {
that.currentChildIndex = 0;
}
// list.splice(ind,1)
that.tempaletDataList = JSON.parse(JSON.stringify(that.tempaletDataList));
that.tempaletDataList[index].children.splice(ind, 1);
// 重新设置左侧的 fixed
that[childItem.parentCode].forEach(function(ele, index) {
if (ele.fieldCode === key) {
ele.fixed = false;
}
});
},
/**
* 右侧方法
*/
/* eslint-disable */
checkedChange(e, item) {
// const that = this;
},
/**
* 添加删除选项
*/
delChildItem(index, ind, item) {
item.fieldOperations.fieldContent.splice(ind, 1);
},
addChildItem(index, ind, item) {
const that = this;
// 多选
if (ind == 19) {
that.$message.error({
duration: 1000,
message: '最多可添加 20 项'
});
return;
} else {
let type = 'radio';
if (!item.systemFlag && parseInt(item.fieldType) === 3) {
type = 'checkbox';
}
item.fieldOperations.fieldContent.push({ type: type, name: '请输入选项' });
// 判断重复字段
let arrValues = item.fieldOperations.fieldContent.map(ite => ite.name); // 返回对象中键值集合的数组
if (that.isRepeat(arrValues)) {
item.fieldOperations.fieldContent.splice(item.fieldOperations.fieldContent.length - 1, 1);
arrValues.splice(item.fieldOperations.fieldContent.length - 1, 1);
that.$message.error({
duration: 1000,
message: '选项不能重复'
});
}
}
},
/**
* 自定义单选(日期)
*/
/* eslint-disable */
changeRadio(e, ind, item) {
// const that = this;
},
/**
* 判断添加重复字段
*/
isRepeat(arr) {
let hash = {};
for (let i in arr) {
if (hash[arr[i]]) {
return true;
}
hash[arr[i]] = true;
}
return false;
},
/**
* 路由跳转
*/
changeRoute(route) {
this.$router.push(route);
},
/**
* 检查
*/
checkTag(data) {
const that = this;
let tag = {};
tag.filedFlag = true;
tag.filedRepeat = false;
let filedArr = [];
data.forEach(function(ele, index) {
if (ele.fieldName == '') {
tag.filedFlag = false;
tag.name = ele.fieldName || '';
return false;
}
// 判断子级
if (!!ele.children.length) {
ele.children.forEach(function(el, index) {
if (!!el.systemFlag && el.fieldName == '') {
tag.filedFlag = false;
tag.name = el.fieldName || '';
return false;
}
filedArr.push(el.fieldName);
});
}
});
// 判断重复 fieldName
if (that.isRepeat(filedArr)) {
tag.filedRepeat = true;
}
return tag;
},
/**
* 获取 uuid
*/
getUuid() {
return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
let r = (Math.random() * 16) | 0;
let v = c == 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
},
/**
* 保存
*/
saveAndBack(opt) {
const that = this;
let data = JSON.parse(JSON.stringify(that.tempaletDataList));
let tagObj = that.checkTag(data);
let allLengthData = [];
// 检查空字段
if (!tagObj.filedFlag) {
that.$message.error({
duration: 1000,
message: tagObj.name + '字段标题不能为空'
});
return;
}
if (tagObj.filedRepeat) {
that.$message.error({
duration: 1000,
message: '字段标题不能重复'
});
return;
}
data.forEach(function(ele, index) {
ele.sort = index;
ele.fixed = ele.fixed === true ? 1 : 0;
ele.isMust = ele.isMust === true ? 1 : 0;
ele.systemFlag = ele.systemFlag === true ? 1 : 0;
ele.parentFieldTemplateId = ele.parentFieldTemplateId ? ele.parentFieldTemplateId : -1;
ele.fieldTemplateId = ele.fieldTemplateId ? ele.fieldTemplateId : -1;
ele.children.forEach(function(el, ind) {
allLengthData.push(el);
el.sort = ind;
el.fixed = el.fixed === true ? 1 : 0;
el.isMust = el.isMust === true ? 1 : 0;
el.systemFlag = el.systemFlag === true ? 1 : 0;
if (!ele.systemFlag) {
el.fieldEdited = 1;
}
// 选项 key
if (parseInt(el.fieldType) === 2 || parseInt(el.fieldType) === 3) {
el.fieldOperations.fieldContent.forEach(function(child, key) {
child.key = !!String(child.key) ? String(child.key) : '';
if (!el.systemFlag && (!child.hasOwnProperty('key') || child.key == '' || child.key == 'undefined')) {
child.key = child.name;
}
});
}
// 设置自定义
if (!el.systemFlag) {
el.parentCode = ele.fieldCode;
}
// 设置 uuid
el.fieldTemplateId = el.fieldTemplateId ? el.fieldTemplateId : -1;
el.parentFieldTemplateId = ele.fieldTemplateId;
// data.push(el)
});
});
// data.forEach(function(ele,index){
// if (ele.hasOwnProperty('children')) {
// delete ele.children;
// }
// })
if (allLengthData.length >40) {
that.$message.error({
duration: 1000,
message: '最多设置 40 个字段'
});
return false;
}
// console.log(JSON.stringify(data))
if (opt === 'save') {
that.saveAllData(data);
} else {
that.postPreview(data);
}
},
/**
* 保存---api
*/
saveAllData(data) {
const that = this;
let para = {
templateContent: JSON.stringify(data)
};
postRequest('/haoban-manage-web/record/record-template-save.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('保存成功', 'success');
that.changeRoute('/fileSet');
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 预览---api
*/
postPreview(data) {
const that = this;
let para = {
templateContent: JSON.stringify(data)
};
postRequest('/haoban-manage-web/record/record-template-preview.json', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
// 生成二维码需要的 url
let webUrl = `${window.location.origin}/office-mobile/#/staffRecordsTemplate?enterpriseId=${resData.result}`;
that.qrcode(webUrl);
that.dialogVisible = true;
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 生成二维码
*/
qrcode(text) {
const that = this;
if (!!that.qrcodeCase) {
document.getElementById('qrcode').innerHTML = '';
that.qrcodeCase.clear(); // 先清除原有的
}
let qrObj = {
type: 'record',
data: text
};
that.qrcodeCase = new QRCode('qrcode', {
width: 210,
height: 210, // 高度
text: JSON.stringify(qrObj) // 二维码内容 //
//render: 'canvas', // 设置渲染方式(有两种方式 table和canvas,默认是canvas) //
//background: '#f0f',
//foreground: '#ff0'
});
},
/**
* 关闭预览窗口
*/
closeDialog() {
const that = this;
that.dialogVisible = false;
},
/**
* 获取所有字段
*/
getAllFields() {
const that = this;
postRequest('/haoban-manage-web/record/employee-find-system-template.json', {})
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.handleAllFields(resData.result);
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 处理所有系统模板信息
*/
handleAllFields(result) {
const that = this;
result.forEach(function(ele, index) {
if (!!that.hasOwnProperty(ele.parentCode)) {
ele.fixed = parseInt(ele.fixed) === 1 ? true : false;
ele.isMust = parseInt(ele.isMust) === 1 ? true : false;
ele.systemFlag = true;
ele.fieldOperations = !!ele.fieldOperations ? JSON.parse(ele.fieldOperations) : {};
ele.staffRecordsIds = !!ele.staffRecordsIds ? JSON.parse(ele.staffRecordsIds) : [];
that[ele.parentCode].push(ele);
}
// 设置 fieldParent
if (!!that.fieldParent.hasOwnProperty(ele.fieldCode)) {
ele.children = [];
that.fieldParent[ele.fieldCode] = ele;
ele.systemFlag = true;
}
});
},
/**
* 获取已经保存模板信息---api
*/
getInfo() {
const that = this;
postRequest('/haoban-manage-web/record/employee-find-template.json', {})
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.setList = [];
if (!!resData.result && !!resData.result.length) {
that.handleGetInfo(resData.result);
}
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 简单数组-->父子数组对象
*/
treeData(data) {
let tree = data.filter(father => {
//循环所有项
let branchArr = data.filter(child => {
return father.fieldCode == child.parentCode; //返回每一项的子级数组
});
if (branchArr.length > 0) {
father.children = branchArr; //如果存在子级,则给父级添加一个children属性,并赋值
}
return father.parentCode == 0; //返回第一层
});
// 排序
tree.sort(function(a, b) {
return a.sort - b.sort;
});
tree.forEach(function(ele, index) {
ele.children.sort(function(a, b) {
return a.sort - b.sort;
});
});
return tree;
},
/**
* 处理已存配置信息
*/
handleGetInfo(result) {
const that = this;
let data = JSON.parse(JSON.stringify(result));
that.setParent = [];
data.forEach(function(ele, index) {
ele.fixed = Number.parseInt(ele.fixed) === 1 ? true : false;
ele.isMust = Number.parseInt(ele.isMust) === 1 ? true : false;
ele.systemFlag = Number.parseInt(ele.systemFlag) === 1 ? true : false;
ele.fieldOperations = !!ele.fieldOperations ? JSON.parse(ele.fieldOperations) : {};
ele.staffRecordsIds = !!ele.staffRecordsIds ? JSON.parse(ele.staffRecordsIds) : [];
// 设置禁止拖拽
if (!!ele.systemFlag && ele.parentCode == 0) {
that.setParent.push(ele.fieldCode);
}
if (!!ele.systemFlag && ele.parentCode != 0) {
that.setList.push(ele.fieldCode);
}
});
// console.log(JSON.stringify(that.treeData(data)))
that.tempaletDataList = that.treeData(data);
setTimeout(function() {
that.setFixed();
}, 100);
},
/**
* 设置禁止拖拽
*/
setFixed() {
const that = this;
// console.log("that.setParent:",that.setParent,that.setList)
that.setParent.forEach(function(ele, index) {
that[ele].forEach(function(obj, key) {
if (that.setList.includes(obj.fieldCode)) {
obj.fixed = true;
}
});
});
}
},
watch: {
isDragging(newValue) {
const that = this;
if (newValue) {
that.delayedDragging = true;
return;
}
that.$nextTick(() => {
that.delayedDragging = false;
});
}
},
components: {
draggable,
AddInput,
limitInput
},
mounted() {
const that = this;
// 获取已经配置的数据
// that.getInfo()
Promise.all([that.getAllFields(), that.getInfo()]);
document.body.ondrop = function(event) {
event.preventDefault();
event.stopPropagation();
};
}
};
</script>
<style lang="less" scoped>
.template-wrap {
width: 100%;
/*height: 100%;*/
min-height: 860px;
padding: 0;
margin: 0;
background: url('../../../assets/template-bg.jpg') no-repeat center center;
background-size: 100% 100%;
.b-t-1 {
border-top: 1px solid #e4e7ed;
}
.template-contain {
width: 1200px;
margin: 0 auto;
}
.qr-mask {
position: fixed;
z-index: 1000;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
cursor: pointer;
}
.qr-dialog {
position: fixed;
z-index: 5000;
width: 80%;
max-width: 300px;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background-color: #fff;
text-align: center;
border-radius: 3px;
overflow: hidden;
.qr-dialog__hd {
position: relative;
.qr-dialog__title {
display: block;
padding: 32px 0;
font-size: 18px;
color: #303133;
}
i {
position: absolute;
top: 0;
right: 0;
display: block;
width: 46px;
height: 46px;
line-height: 46px;
text-align: center;
font-size: 10px;
color: #9b9da3;
cursor: pointer;
}
}
.qr-dialog__bd {
padding: 0 1.6em 0.8em;
min-height: 40px;
font-size: 15px;
line-height: 1.3;
word-wrap: break-word;
word-break: break-all;
color: #808080;
#qrcode {
display: -webkit-flex;
display: flex;
justify-content: center;
align-items: center;
}
.qr-dialog__p {
padding: 20px 0;
font-size: 14px;
color: #606266;
}
}
.qr-dialog__ft {
}
}
.template-head {
display: -webkit-box;
display: -webkit-flex;
display: flex;
justify-content: space-between;
height: 80px;
align-items: center;
.flex-1 {
-webkit-flex: 1;
-moz-flex: 1;
-ms-flex: 1;
-o-flex: 1;
flex: 1;
display: -webkit-box;
display: -webkit-flex;
display: flex;
align-items: center;
}
.flex-r {
justify-content: flex-end;
}
.template-title-span {
color: #fff;
font-size: 30px;
padding-left: 18px;
}
.el-button--default.is-plain {
background: rgba(255, 255, 255, 0);
color: #fff;
&:hover {
color: #fff;
background: #1890ff;
}
}
.el-button--primary.is-plain {
background: transparent;
border-color: #1890ff;
&:hover {
background: #1890ff;
}
}
}
.template-body {
width: 100%;
position: relative;
overflow: hidden;
.template-cell {
}
.el-tab-pane {
height: 660px;
overflow-y: scroll;
}
/* 左侧 */
.template-cell-l {
width: 350px;
float: left;
height: 740px;
padding-top: 40px;
.el-tabs {
/deep/ .el-tabs__item {
width: 50%;
width: 175px;
/*padding: 0;*/
color: rgba(255, 255, 255, 0.5);
&.is-active {
color: #1890ff;
}
}
}
.compenent-item {
position: relative;
width: 148px;
height: 42px;
margin: 0 15px 15px 0;
line-height: 40px;
padding: 0 10px;
display: inline-block;
text-align: center;
cursor: move;
color: #fff;
padding: 0;
overflow: hidden;
font-size: 12px;
border: 1px dashed rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.1);
&.fixed-item {
opacity: 0.5;
cursor: not-allowed;
}
}
#list5 {
.compenent-item {
text-align: left;
padding: 0 16px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
span,
.bg-icon {
display: inline-block;
vertical-align: middle;
}
.bg-icon {
position: absolute;
top: 50%;
right: 16px;
-webkit-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-o-transform: translate(0, -50%);
transform: translate(0, -50%);
width: 17px;
height: 17px;
background: url('../../../assets/icon-template.png') no-repeat center center;
background-size: 35px;
&.bg-icon-one {
background-position: 0 -16px;
}
&.bg-icon-two {
background-position: 0 0;
}
&.bg-icon-three {
background-position: 0 -50px;
}
&.bg-icon-four {
background-position: 0 -180px;
}
&.bg-icon-five {
background-position: 0 -66.5px;
}
&.bg-icon-six {
background-position: 0 -83px;
}
&.bg-icon-seven {
background-position: 0 -33px;
}
&.bg-icon-eight {
background-position: 0 -98px;
}
}
&:hover {
color: #1890ff;
border-color: #1890ff;
.bg-icon {
&.bg-icon-one {
background-position: -18px -16px;
}
&.bg-icon-two {
background-position: -18px 0;
}
&.bg-icon-three {
background-position: -18px -50px;
}
&.bg-icon-four {
background-position: -18px -180px;
}
&.bg-icon-five {
background-position: -18px -66px;
}
&.bg-icon-six {
background-position: -18px -83px;
}
&.bg-icon-seven {
background-position: -18px -33px;
}
&.bg-icon-eight {
background-position: -18px -98px;
}
}
}
}
}
.filed-item-title {
padding: 15px 0;
font-size: 14px;
color: #ffffff;
}
}
/* 中间 */
/* 模板 */
.template-cell-m {
float: left;
width: 410px;
height: 740px;
margin: 0 20px;
position: relative;
.view-content {
position: relative;
}
.templet-null-img {
width: 249px;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
}
.drag-wrap {
min-height: 530px;
overflow-x: hidden;
overflow-y: auto;
}
.phone-container {
margin-top: 40px;
}
.phone-view {
background: url(../../../assets/iphone.png) no-repeat;
background-size: 100%;
width: 410px;
height: 740px;
/*margin: 0 20px;*/
position: relative;
}
.phone-show-content {
width: 330px;
height: 537px;
position: absolute;
left: 41px;
top: 83px;
overflow-y: auto;
}
.opend-card-item {
height: 46px;
line-height: 46px;
background: #fff;
border-bottom: 1px solid #e7e7eb;
font-size: 14px;
position: relative;
&.sex::after {
content: '';
width: 100%;
height: 100%;
z-index: 2;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
}
.opend-card-group-title {
height: 40px;
line-height: 40px;
padding-left: 10px;
}
.opend-card-item {
height: 46px;
line-height: 46px;
background: #fff;
border-bottom: 1px solid #e7e7eb;
}
.phone-list-item {
height: 44px;
line-height: 44px;
background: #fff;
margin-bottom: 5px;
}
.item-title {
width: 100px;
float: left;
padding-left: 10px;
}
.filed-item {
background: #fff;
height: 46px;
width: 100%;
height: auto;
background: #fff;
position: relative;
cursor: move;
padding: 0px;
margin: 0;
font-size: 12px;
color: #292929;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
&.active-item {
border: 1px solid #1890ff;
}
& + .filed-item {
margin-top: 5px;
&.li-block {
margin-top: 15px;
}
}
/*删除*/
.item-close {
position: absolute;
top: 0;
right: 0;
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
background: #1890ff;
color: #fff;
font-size: 14px;
font-weight: 700;
cursor: pointer;
display: none;
z-index: 2;
}
&:hover {
border: 1px dashed #1890ff;
.p-item-close {
display: block;
}
}
&.child-filed-item {
&:hover {
.child-item-close {
display: block;
}
}
}
}
/* 组块 */
.block {
min-height: 308px;
background: #f0eff4;
.block-head {
width: 100%;
background: #f5f5f8;
padding: 0;
height: 35px;
.opencard-item-title {
height: 35px;
line-height: 35px;
/* &.block-pre-wrap{
line-height: 12px;
word-break: break-all;
white-space: pre-wrap;
padding-top: 7px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}*/
}
}
.drag-wrap {
min-height: 250px;
}
}
.opencard-drag {
background: #fff;
height: 46px;
}
.opencard-item-title {
width: 90px;
height: 46px;
line-height: 46px;
text-align: left;
float: left;
padding-left: 10px;
overflow: hidden;
white-space: nowrap;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-size: 14px;
&.title-pre-wrap {
line-height: 15px;
word-break: break-all;
white-space: pre-wrap;
padding-top: 9px;
}
/*&.block-pre-wrap{
line-height: 12px;
word-break: break-all;
white-space: pre-wrap;
padding-top: 9px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}*/
}
.show-warm-text {
color: #c0c4cc;
width: 185px;
text-align: left;
display: inline-block;
white-space: nowrap;
height: 46px;
line-height: 46px;
font-size: 14px;
.el-icon-arrow-right {
font-size: 20px;
vertical-align: middle;
}
.iconfont.icon-icon {
font-size: 20px;
color: #808995;
}
&.select-flag {
width: 225px;
text-align: right;
}
}
.limit-w-340 {
/deep/ .el-input__inner {
font-size: 12px;
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
.tip {
color: rgba(255, 255, 255, 0.7);
}
}
/* 右侧 */
.template-cell-r {
width: 400px;
float: left;
overflow: hidden;
padding-top: 40px;
.input-line-cell {
.tip {
color: rgba(255, 255, 255, 0.7);
}
}
.limit-w-340 {
/deep/ .el-input__inner {
font-size: 12px;
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
.tip {
color: rgba(255, 255, 255, 0.7);
}
}
.el-tabs {
/deep/.el-tabs__item {
width: 175px;
/* padding: 0; */
/*color: rgba(255, 255, 255, 0.5);*/
}
/deep/.el-tabs__nav-wrap::after {
content: none;
}
}
.label-txt {
margin: 0 10px;
font-size: 14px;
color: #fff;
}
.margin-t-15 {
margin-top: 15px;
}
.margin-t-30 {
margin-top: 30px;
}
.margin-l-15 {
margin-left: 15px;
}
.margin-b-15 {
margin-bottom: 15px;
}
.w-60 {
width: 60px;
}
.w-120 {
width: 120px;
}
.w-316 {
width: 316px;
}
.limit-w-340 {
/deep/ .el-input__inner {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
}
.opt-btn {
cursor: pointer;
color: #c9d3df;
vertical-align: middle;
&.add-item:hover {
/*color: #1890ff;*/
}
&.del-item:hover {
/*color: #F56C6C;*/
}
}
.flex {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.flex-wrap {
-webkit-flex-wrap: wrap;
-moz-flex-wrap: wrap;
-ms-flex-wrap: wrap;
-o-flex-wrap: wrap;
flex-wrap: wrap;
}
.staffRecords-limit {
.flex();
.flex-wrap();
.label-cell {
min-width: 50%;
max-width: 50%;
margin-left: 0;
}
}
.label-cell {
margin-bottom: 15px;
color: #fff;
}
.el-checkbox {
/deep/ span.el-checkbox__label {
color: #fff;
}
&.is-disabled {
/deep/ span.el-checkbox__label {
color: #fff;
}
}
}
.el-radio {
/deep/ span.el-radio__label {
color: #fff;
}
&.is-disabled {
/deep/ span.el-radio__label {
color: #fff;
}
}
}
.el-input {
/deep/ .el-input__inner {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
.is-disabled {
/deep/ .el-input__inner {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
}
}
.el-checkbox {
color: #fff;
}
.edit-view {
/*height: 700px;*/
/*overflow-y: auto;*/
/*margin-top:40px;*/
}
.edit-item {
color: #fff;
padding-bottom: 10px;
.tip {
margin-left: -40px;
color: rgba(255, 255, 255, 0.7);
width: 30px;
display: inline-block;
text-align: right;
margin-right: 10px;
font-size: 12px;
}
}
.edit-item-title {
color: #ffffff;
font-size: 14px;
font-weight: normal;
padding: 20px 0;
&.edit-title-padding {
padding-top: 15px;
}
}
.edit-item-title span {
font-size: 12px;
margin-left: 5px;
}
}
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment