Commit 299dfa82 by 无尘

feat: 增加删除角色

parent 3250009a
.DS_Store
node_modules/
/build/
/config/
/dist/
/*.js
......@@ -21,8 +21,13 @@ module.exports = {
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: true,
// If true, eslint errors and warnings will also be shown in the error overlay
// in the browser.
showEslintErrorsInOverlay: false,
/**
* Source Maps
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.4bc1e63ff6b02fd8f0429f27a76691c8.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.2284a1b46b89596f960f.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.1f154f4457b9921bc4a6.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.2e32d89dc44e2f5f2faacaef181001ac.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.ac1a64beebc485165bdb.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.640efbec172e90469e94.js></script></body></html>
\ No newline at end of file
webpackJsonp([17],{"1nf3":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("ZcgF")},null,null).exports,f=r("c4uw"),v=r("Ie7z"),b=r("3E4D"),S=r("Ch4/"),g=r("PI0u"),C=r("P9l9"),k={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}},w={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")(k,w,!1,function(e){r("tHuS")},"data-v-4a5c44a6",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("1nf3")},"data-v-0223abaa",null);t.default=F.exports},ZcgF:function(e,t){},tHuS:function(e,t){}});
\ No newline at end of file
webpackJsonp([16],{"5Lm1":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("ZcgF")},null,null).exports,f=r("c4uw"),v=r("Ie7z"),b=r("3E4D"),S=r("Ch4/"),g=r("PI0u"),C=r("P9l9"),k={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}},w={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")(k,w,!1,function(e){r("tHuS")},"data-v-4a5c44a6",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("5Lm1")},"data-v-45b6909d",null);t.default=F.exports},ZcgF:function(e,t){},tHuS:function(e,t){}});
\ No newline at end of file
webpackJsonp([16],{"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){},V05t: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("V05t")},null,null);t.a=i.exports}});
\ No newline at end of file
webpackJsonp([17],{"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){},V05t: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("V05t")},null,null);t.a=i.exports}});
\ No newline at end of file
webpackJsonp([25],{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("MMuD")},"data-v-46cf11ed",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?"认证中":"认证失败")+"\n ")])]),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("kaFb")},"data-v-15128ae2",null);e.default=m.exports},MMuD:function(t,e){},kaFb:function(t,e){}});
\ No newline at end of file
webpackJsonp([23],{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("MMuD")},"data-v-46cf11ed",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?"认证中":"认证失败")+"\n ")])]),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("Ke3A")},"data-v-f24954be",null);e.default=m.exports},Ke3A:function(t,e){},MMuD:function(t,e){}});
\ No newline at end of file
webpackJsonp([23],{"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+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0ZBRkNGRjt9DQoJLnN0MXtmaWxsOiNEQkU1RjE7fQ0KCS5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XNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ 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("返回首页")])])])])},staticR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1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},GVON:function(M,L){}});
\ No newline at end of file
webpackJsonp([24],{I2Xw:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("mvHQ"),a=r.n(i),n=r("3Xzz"),u=r("l46T"),l=r("Mk6G"),o={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=l.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.a.getZhLen(this.itemValue)):(t=l.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.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=l.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=l.a.getZhLen(this.inputValue)}},s={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 h=r("VU/8")(o,s,!1,function(e){r("I2Xw")},"data-v-f6c8dcb4",null).exports,m=r("3E4D"),d=r("Ch4/"),c=r("PI0u"),p=r("P9l9"),f={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:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"}}},computed:{},methods:{submitForm:Object(c.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;var i=[];t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){i.push({rightId:e})}),r.postSave(i)})},500),postSave:function(e){var t=this,r={data:a()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId};Object(p.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return m.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(p.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 i=[];r.result.forEach(function(t,r){e.ruleForm.roleId&&(t.disabled=!0),t.display&&i.push(t)}),e.ruleForm.menuTree=e.treeData(i)}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(p.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.right.length){var i=t.ruleForm.right.map(function(e){return e.rightId}),a=[];r.result.menuRightList.forEach(function(e,t){i.includes(e.rightId)&&a.push(e.rightId)}),t.ruleForm.rightChecked=a}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),void t.$refs.tree.setCheckedKeys(n)}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 i=e.includes(t[0]);function a(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!i,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),a(),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,i){e.children&&e.children.length&&e.children.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!r)})})}},mounted:function(){this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0)),this.$route.query.hasOwnProperty("brandId")&&(this.ruleForm.brandId=this.$route.query.brandId),this.getMenuList()},components:{navCrumb:n.a,limitInput:u.a,limitTextarea:h}},g={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("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",[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 v=r("VU/8")(f,g,!1,function(e){r("m4si")},"data-v-22e6fae2",null);t.default=v.exports},m4si:function(e,t){}});
\ No newline at end of file
webpackJsonp([25],{I2Xw:function(e,t){},fZsz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("mvHQ"),a=r.n(i),n=r("3Xzz"),u=r("l46T"),l=r("Mk6G"),o={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=l.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.a.getZhLen(this.itemValue)):(t=l.a.getCharVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=l.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=l.a.getZhLen(this.itemValue)}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=l.a.getZhLen(this.inputValue)}},s={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 h=r("VU/8")(o,s,!1,function(e){r("I2Xw")},"data-v-f6c8dcb4",null).exports,m=r("3E4D"),d=r("Ch4/"),c=r("PI0u"),p=r("P9l9"),f={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:[]},rules:{roleName:[{required:!0,message:"请填写角色名称",trigger:"change"}],remark:[{required:!0,message:"请填写角色说明",trigger:"change"}]},defaultProps:{children:"children",label:"rightName"}}},computed:{},methods:{submitForm:Object(c.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(!e)return!1;var i=[];t.$refs.tree.getCheckedKeys().concat(t.$refs.tree.getHalfCheckedKeys()).forEach(function(e,t){i.push({rightId:e})}),r.postSave(i)})},500),postSave:function(e){var t=this,r={data:a()(e),roleId:t.ruleForm.roleId,roleName:t.ruleForm.roleName,remark:t.ruleForm.remark,brandId:t.ruleForm.brandId};Object(p.c)("/haoban-manage-web/save-role",r).then(function(e){var r=e.data;if(1==r.errorCode)return m.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(p.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 i=[];r.result.forEach(function(t,r){e.ruleForm.roleId&&(t.disabled=!0),t.display&&i.push(t)}),e.ruleForm.menuTree=e.treeData(i)}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(p.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.right.length){var i=t.ruleForm.right.map(function(e){return e.rightId}),a=[];r.result.menuRightList.forEach(function(e,t){i.includes(e.rightId)&&a.push(e.rightId)}),t.ruleForm.rightChecked=a}var n=[];return r.result.menuRightList.forEach(function(e,r){t.$refs.tree.getNode(e.rightId).isLeaf&&n.push(e.rightId)}),void t.$refs.tree.setCheckedKeys(n)}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 i=e.includes(t[0]);function a(){r.ruleForm.right=[],r.ruleForm.left.forEach(function(e,a){e.rightId.includes(t[0])&&(e.check=!!i,e.children&&e.children.length&&e.children.forEach(function(e,t){r.ruleForm.right.push(e)}))})}e.includes(t[0]),a(),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,i){e.children&&e.children.length&&e.children.forEach(function(e,i){e.rightId.includes(t[0])&&(e.check=!!r)})})}},mounted:function(){this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId,this.navpath[3].name="管理员角色","show"===this.$route.query.type&&(this.showFlag=!0)),this.$route.query.hasOwnProperty("brandId")&&(this.ruleForm.brandId=this.$route.query.brandId),this.getMenuList()},components:{navCrumb:n.a,limitInput:u.a,limitTextarea:h}},g={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("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",[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 v=r("VU/8")(f,g,!1,function(e){r("m4si")},"data-v-22e6fae2",null);t.default=v.exports},m4si:function(e,t){}});
\ No newline at end of file
webpackJsonp([33],{DYmq:function(e,t){},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("\n 查看权限 ")]):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("\n 删除角色 ")]),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("DYmq")},"data-v-5f7ce7dc",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([33],{"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("tyov")},"data-v-4dd7746a",null);t.default=h.exports},tyov:function(e,t){}});
\ No newline at end of file
webpackJsonp([34],{"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("tyov")},"data-v-4dd7746a",null);t.default=h.exports},tyov:function(e,t){}});
\ No newline at end of file
webpackJsonp([34],{"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([35],{"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([35],{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("WtsC")},null,null);t.default=d.exports},WtsC:function(e,t){}});
\ No newline at end of file
webpackJsonp([36],{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("WtsC")},null,null);t.default=d.exports},WtsC:function(e,t){}});
\ No newline at end of file
webpackJsonp([37],{SDdK:function(e,t){},VqB7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("3Xzz"),o=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)},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(i){i.value;a.postDelUser(t.userId,e)}).catch(function(){})},postDelUser:function(e,t){var a=this,i={roleId:a.activeId,userId:e,brandId:a.activeBrandId};Object(r.c)("/haoban-manage-web/del-role-user",i).then(function(e){var i=e.data;if(1==i.errorCode)return o.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);n.a.errorMsg(i)}).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:i.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,i){return a("div",{key:i,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(i,o){return a("li",{key:o,class:["role-cell border-bottom-1",t.brandId==e.activeBrandId&&i.roleId==e.activeId?"role-active":""],on:{click:function(a){a.stopPropagation(),e.selectRole(i,t.brandId)}}},[a("i",{staticClass:"iconfont icon-lizhi p-r-6"}),e._v("\n "+e._s(i.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("\n 查看权限 ")]):e._e(),"child_admin"==e.roleRightObj.roleCode?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("SDdK")},"data-v-3c437b6f",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([36],{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([37],{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([4],{"4aSh":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),o=a("ATfr"),r=a("P9l9"),n={name:"storeView",props:{tableData:{type:Array,default:function(){return[]}},departmentId:{type:[String,Number],default:""},brandId:{type:[String,Number],default:""}},data:function(){return{tableH:window.screen.availHeight-440-180-70,selectedList:[],showChildMember:!1,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],statusArr:["待审核","正常","审核失败","停业整顿","回收站","删除"]}},methods:{delStores:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this;a.$confirm("是否删除所选店铺","提示",{type:"warning"}).then(function(){var s="";if(t)s=e.storeId;else{var o=[];a.selectedList.forEach(function(e){o.push(e.storeId)}),s=o.join(",")}var r={ids:s};a.postDel(r)})},postDel:function(e){var t=this;Object(r.a)("/haoban-manage-web/store/delByIds",e).then(function(e){1==e.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功"}),t.$emit("getStoreList")):t.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},selectMember:function(e){this.selectedList=e},setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},cancelDelTag:function(e,t){t.popVisible=!1},toDelTag:function(e,t){var a={ids:t.storeId};this.postDel(a)}},computed:{disabledDel:function(){return this.selectedList.length<1}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"common-right-button-box"},[a("a",{attrs:{href:"#/storeInfo"}},[a("el-button",{attrs:{type:"primary"}},[e._v("添加门店")])],1),e._v(" "),a("a",{attrs:{href:"#/storeIo?importCode=store&departmentId="+e.departmentId+"&showChildMember="+1*e.showChildMember+"&brandId="+e.brandId}},[a("el-button",[e._v("批量导入/导出")])],1),e._v(" "),a("el-button",{attrs:{type:"danger",disabled:e.disabledDel},on:{click:e.delStores}},[e._v("批量删除")]),e._v(" "),a("span",{staticClass:"J_show-children el-button",attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子成员")]),a("a",{staticClass:"a-href"})],1)],1),e._v(" "),a("el-table",{ref:"table1",attrs:{height:e.tableData.length?e.tableH:"auto",data:e.tableData},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"门店",prop:"storeName",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType",width:"100"},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:"areaChainName","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.areaChainName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组",prop:"departmentName","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href m-r-20",attrs:{href:"#/storeInfo?storeId="+t.row.storeId}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.popVisible,callback:function(a){e.$set(t.row,"popVisible",a)},expression:"scope.row.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(t.$index,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(t.$index,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,l,!1,function(e){a("4aSh")},null,null).exports,c={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{tableH:window.screen.availHeight-440-180-70,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",showChildMember:!1}},methods:{setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},changeManager:function(e,t){var a=this,s={};e.clerks.some(function(e){return 1==e.isManager&&(s=e),1==e.isManager});var o={employeeClerkId:t.employeeClerkId,managerId:s.employeeClerkId};Object(r.a)("/haoban-manage-web/emp/setManager",o).then(function(e){1==e.data.errorCode?(s.isManager=0,t.isManager=1,a.$message.success({message:"操作成功"})):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},selectByStatus:function(e){this.$emit("selectByStatus",e)},selectByType:function(e){var t="";0!=e&&(t=1*e-1),this.$emit("selectByType",t)},delClerk:function(e,t){var a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var s={ids:e.employeeClerkId};a.postDel(s,t,e)})},postDel:function(e,t,a){var s=this;Object(r.a)("/haoban-manage-web/emp/del",e).then(function(e){1==e.data.errorCode?(t.clerks.forEach(function(e){e.employeeClerkId==a.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(e),1)}),s.$message.success({duration:1e3,message:"操作成功"})):s.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},cancelDelTag:function(e,t,a){t.popVisible=!1},toDelTag:function(e,t,a){var s={ids:t.employeeClerkId};this.postDel(s,a,t)}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"sf-right-button-box common-right-button-box"},[a("el-select",{attrs:{size:"small"},on:{change:e.selectByType},model:{value:e.storeType,callback:function(t){e.storeType=t},expression:"storeType"}},e._l(e.typeArr,function(e,t){return a("el-option",{key:e,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{attrs:{size:"small"},on:{change:e.selectByStatus},model:{value:e.storeStatus,callback:function(t){e.storeStatus=t},expression:"storeStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{attrs:{label:"停业整顿",value:3}})],1),e._v(" "),a("span",{staticClass:"J_show-children el-button",staticStyle:{"vertical-align":"middle"},attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子成员")]),a("a",{staticClass:"a-href"})],1)],1),e._v(" "),a("el-table",{ref:"clerkViewTable",staticClass:"diy-table",attrs:{height:e.tableData.length?e.tableH:"auto",data:e.tableData}},[a("el-table-column",{attrs:{label:"门店",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{staticClass:"m-b-10"},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",[a("a",{staticClass:"a-href",attrs:{href:"#/addClerk?storeId="+t.row.storeId}},[e._v("新增店员")])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode",width:"300"}}),e._v(" "),a("el-table-column",{attrs:{"min-width":"675"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("ul",e._l(t.row.clerks,function(s,o){return a("li",{key:s.employeeClerkId,staticClass:"clerk-obj-li"},[a("div",{staticClass:"clerk-name clerk-cell"},[a("el-radio",{attrs:{value:1,label:s.isManager},on:{change:function(a){e.changeManager(t.row,s)}}},[e._v(e._s(s.name))]),e._v(" "),1==s.isManager?a("span",{staticClass:"manager"},[e._v("店长")]):e._e()],1),e._v(" "),a("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s(s.phoneNumber))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(s.positionName||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-status"},[a("div",{staticClass:"status-icon",class:1==s.status?"is-active":""},[a("i",{staticClass:"iconfont icon-shouji"})])]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-handle"},[a("a",{staticClass:"a-href m-r-20",attrs:{href:"#/addClerk?storeId="+t.row.storeId+"&clerkId="+s.employeeClerkId}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:s.popVisible,callback:function(t){e.$set(s,"popVisible",t)},expression:"clerk.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(o,s,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(o,s,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)],1)])}))]}}])},[a("template",{slot:"header"},[a("ul",{staticClass:"diy-header"},[a("li",{staticClass:"name"},[e._v("姓名")]),e._v(" "),a("li",{staticClass:"phone"},[e._v("手机号")]),e._v(" "),a("li",{staticClass:"position"},[e._v("职位")]),e._v(" "),a("li",{staticClass:"status"},[e._v("状态")]),e._v(" "),a("li",{staticStyle:{width:"200px"}},[e._v("操作")])])])],2)],1)],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("cVaK")},"data-v-a26131a4",null).exports,m=a("qsKc"),p={name:"add-brand-dialog",data:function(){return{dialogVisible:!1,brandName:"",brand:""}},methods:{saveFn:function(){if(this.brandName){var e=this,t={brandName:e.brandName};Object(r.a)("/haoban-manage-web/brand/insert",t).then(function(t){1==t.data.errorCode?e.$emit("addSuccess"):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}else this.$message.error({message:"请输入品牌名称"})}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"新建品牌",width:"422px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("请输入品牌名称")]),e._v(" "),a("el-input",{staticClass:"m-t-20",model:{value:e.brandName,callback:function(t){e.brandName=t},expression:"brandName"}}),e._v(" "),a("div",{staticClass:"btn-box t-rt m-t-20 m-b-10"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var h=a("VU/8")(p,f,!1,function(e){a("fAiH")},null,null).exports,g=a("WSbm"),v=a("oncj"),b={name:"storeEstruturaContainer",components:{navCrumb:s.a,searchMenu:o.a,storeView:i,clerkView:u,employeeInfo:g.a,storeInfo:m.a,addBrand:h,clerkInfo:v.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:""}],windowH:window.screen.availHeight-440+"px",tableH:window.screen.availHeight-440-180+"px",boxHeight:window.screen.availHeight+"px",menuData:[],searchResult:{},loading:!0,groupInfo:{groupName:"",departmentId:""},total:0,showChildMember:!1,pageSize:20,pageNumber:1,storeList:[],tableView:1,showEmployee:"node",perId:"",storeInfo:{},disableBtn:!0,storeStatus:"",storeType:"",recycleList:[]}},beforeRouteUpdate:function(e,t,a){a()},methods:{handleSearchKey:function(e){var t=this,a={keyWord:e};Object(r.a)("/haoban-manage-web/store/searchpage",a).then(function(e){t.searchResult=e.data.result||{}}).catch(function(e){t.$message.error({message:e.message})})},handleEmployeeSelection:function(e,t){this.perId=e.employeeClerkId,this.showEmployee=t},addBrand:function(){this.$refs.add_brand.dialogVisible=!0},addSon:function(){location.href="#/addGroup?addnew=1&groupId="+this.groupInfo.departmentId},goToEdit:function(e){var t=0==e?"brand":"group";location.href="#/addGroup?groupId="+this.groupInfo.departmentId+"&type="+t},addSuccess:function(){this.getGroupData(),this.$refs.add_brand.dialogVisible=!1},handleStoreSelection:function(e){var t=this,a={storeId:e.storeId};Object(r.a)("/haoban-manage-web/store/findStoreById",a).then(function(e){1==e.data.errorCode?(t.storeInfo=e.data.result,t.showEmployee="store"):t.$message.error({message:e.data.message})})},handleSizeChange:function(e){this.pageSize=e,this.getStoreList()},handleCurrentChange:function(e){this.pageNumber=e,this.getStoreList()},switchView:function(e){this.pageSize=20,this.pageNumber=1,this.storeList=[],this.showChildMember=!1,this.storeStatus="",this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},getGroupData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptList",{isStoreGroup:1}).then(function(t){1==t.data.errorCode?(e.menuData=t.data.result||[],t.data.result.some(function(t){return 0==t.level&&(e.groupInfo.departmentId=t.groupId,e.groupInfo.groupName=t.name,e.groupInfo.hasPression=t.hasPression),0==t.level}),e.getStoreList()):(e.menuData=[],e.loading=!1,e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreList:function(){var e=this;e.loading=!0;var t={storeGroupId:e.groupInfo.departmentId,showChild:1*e.showChildMember,showType:e.tableView,pageSize:e.pageSize,pageNum:e.pageNumber,status:e.storeStatus,storeType:e.storeType};Object(r.a)("/haoban-manage-web/store/findSimplePage",t).then(function(a){1==a.data.errorCode?4==t.status?(e.recycleList=a.data.result.list||[],e.storeStatus="",e.loading=!1):(e.total=a.data.result.total,a.data.result.list&&a.data.result.list.length&&a.data.result.list.forEach(function(e,t){e.popVisible=!1,e.clerks&&e.clerks.length&&e.clerks.forEach(function(e,t){e.popVisible=!1})}),e.storeList=a.data.result.list||[],e.loading=!1,e.storeStatus=4,e.getStoreList()):(e.loading=!1,e.storeList=[],e.$message.error({duration:1e3,message:a.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},handleTreeSelection:function(e,t,a){this.groupInfo.departmentId=e.groupId,this.groupInfo.groupName=e.name,this.groupInfo.brandId=e.brandId,this.showEmployee=a,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.getStoreList()},selectByStatus:function(e){this.storeStatus=e,this.getStoreList()},selectByType:function(e){this.storeType=e,this.getStoreList()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},_={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap store-frame-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:"store-estrutura-container common-frame-container",style:{height:e.windowH}},[a("search-menu",{ref:"searchMenu",attrs:{storeFrame:!0,treeData:e.menuData,searchResult:e.searchResult},on:{handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection,handleStoreSelection:e.handleStoreSelection,handleEmployeeSelection:e.handleEmployeeSelection}},[a("template",{slot:"buttonBox"},[a("div",{staticClass:"slot-button"},[a("el-button",{attrs:{disabled:e.disableBtn},on:{click:e.addBrand}},[e._v("新建品牌")]),e._v(" "),a("el-popover",{attrs:{placement:"right",width:"200",content:"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面",trigger:"hover"}},[a("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)])],2),e._v(" "),"employee"==e.showEmployee?a("clerk-info",{attrs:{perId:e.perId}}):"store"==e.showEmployee?a("store-info",{ref:"store_info",attrs:{storeInfo:e.storeInfo}}):a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sf-right-container common-right-container"},[a("div",{staticClass:"sf-right-header common-right-header"},[a("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"家)")]),e._v(" "),a("span",{staticClass:"id-span"},[e._v("部门ID: "+e._s(e.groupInfo.departmentId))]),e._v(" "),a("span",{staticClass:"handle-area"},[a("el-button",{staticClass:"no-bdr-btn",attrs:{disabled:1!=e.groupInfo.hasPression},on:{click:e.addSon}},[e._v("\n 添加子分组 ")]),a("span",{staticClass:"hurdle"}),a("el-button",{staticClass:"no-bdr-btn",attrs:{href:"#/addGroup?level="+e.groupInfo.level+"&groupId="+e.groupInfo.departmentId,disabled:1!=e.groupInfo.hasPression},on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v("\n 编辑\n ")])],1)]),e._v(" "),a("div",{staticClass:"tab-div"},[a("el-radio-group",{on:{change:e.switchView},model:{value:e.tableView,callback:function(t){e.tableView=t},expression:"tableView"}},[a("el-radio-button",{attrs:{label:1}},[e._v("门店视图")]),e._v(" "),a("el-radio-button",{attrs:{label:2}},[e._v("店员视图")])],1),e._v(" "),a("a",{staticClass:"a-href fr",attrs:{href:"#/recycle?dept="+e.groupInfo.departmentId+"&showChild="+1*e.showChildMember+"&type="+e.storeType}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}},[e._v("回收站("+e._s(e.recycleList.length)+")")])],1)],1),e._v(" "),a("div",[1==e.tableView?[a("store-view",{attrs:{tableData:e.storeList,departmentId:e.groupInfo.departmentId,brandId:e.groupInfo.brandId},on:{setChildMemberShow:e.setChildMemberShow,getStoreList:e.getStoreList}})]:[a("clerk-view",{attrs:{tableData:e.storeList},on:{setChildMemberShow:e.setChildMemberShow,selectByStatus:e.selectByStatus,selectByType:e.selectByType}})]],2),e._v(" "),e.storeList.length?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()]),e._v(" "),a("add-brand",{ref:"add_brand",on:{addSuccess:e.addSuccess}})],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var I=a("VU/8")(b,_,!1,function(e){a("sJDJ")},null,null);t.default=I.exports},ATfr:function(e,t,a){"use strict";var s=a("0xDb"),o={name:"searchMenu",components:{},props:{treeData:{type:Array,required:!0},searchResult:{type:Object,required:!0},storeFrame:{type:Boolean,default:!1}},data:function(){return{searchKey:"",searchResultShow:!1,myProps:{children:"childrens",label:"label",disabled:"disabled"},menuData:[],defaultOpen:[],defaultId:""}},methods:{clearFn:function(){this.searchResultShow=!1,this.$nextTick(function(){document.querySelector(".el-tree-node").classList.add("is-current")})},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(e,t){e.id!=this.defaultId&&document.querySelector(".el-tree-node").classList.remove("is-current"),this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){this.$emit("handleEmployeeSelection",e,"employee")},handleStoreClick:function(e){this.$emit("handleStoreSelection",e,"store")}},filter:{},computed:{employeeList:function(){return this.searchResult.searchList?this.searchResult.searchList:[]},departmentList:function(){return this.searchResult.departmentList?this.searchResult.departmentList:[]},brandList:function(){return this.searchResult.brandList?this.searchResult.brandList:[]}},watch:{treeData:function(e,t){var a=this,o=Object(s.c)(e);a.defaultOpen=o.defaultOpen,a.menuData=o.menuArr,a.menuData.length&&a.$nextTick(function(){a.defaultId=a.menuData.length?a.menuData[0].id:"",document.querySelector(".el-tree-node").classList.add("is-current")})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"searh-menu-container"},[a("div",{staticClass:"p-0-15"},[a("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"姓名/手机号/部门名称",clearable:""},on:{clear:e.clearFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}}),e._v(" "),e._t("buttonBox"),e._v(" "),e.searchResultShow?e._e():a("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:e.menuData,"highlight-current":!0,"expand-on-click-node":!1,props:e.myProps},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.node;return t.data,a("span",{staticClass:"custom-tree-node"},[a("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),a("span",[e._v(e._s(s.label))])])}}])})],2),e._v(" "),e.searchResultShow?a("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,s){return t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?[a("div",{key:t.topDepartment.brandId+"_"+s},[a("p",{staticClass:"brand-title"},[e._v(e._s(t.topDepartment.name))]),e._v(" "),t.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("分组列表")]),e._v(" "),e._l(t.departmentList,function(t,s){return a("li",{key:s+"_"+t.groupId,staticClass:"group-item items",on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),t.storeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(t.storeList,function(t,s){return a("li",{key:s+"_"+t.storeGroupId,staticClass:"group-item items",on:{click:function(a){e.handleStoreClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.storeName)+"\n ")])})],2):e._e(),e._v(" "),t.searchList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("人员列表")]),e._v(" "),e._l(t.searchList,function(t,s){return a("li",{key:s+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e()])]:e._e()}),e._v(" "),e.brandList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]:[e.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,s){return a("li",{key:s+"_"+t.groupId,staticClass:"group-item items",on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,s){return a("li",{key:s+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("qu0B")},null,null);t.a=n.exports},V05t:function(e,t){},cVaK:function(e,t){},"f/ut":function(e,t){},fAiH:function(e,t){},oncj:function(e,t,a){"use strict";var s=a("Ie7z"),o=a("P9l9"),r={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""}},components:{vueSelectStore:s.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,a){if(t)return/^1[34578]\d{9}$/.test(t)?a():a(new Error("手机号格式不正确"));return a(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 a=this,s={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||""},r=a.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(r,s).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),1==t?a.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:a.$router.push("/storeFrame")):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){})},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)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"form-container bdr-box"},[a("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("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(" "),a("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[a("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(" "),a("el-form-item",{attrs:{label:"code",prop:"code"}},[a("el-input",{model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[a("el-input",{model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),e.isAddnew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),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:"store"},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=a("VU/8")(r,n,!1,function(e){a("V05t")},null,null);t.a=l.exports},qsKc:function(e,t,a){"use strict";var s=a("P9l9"),o={name:"store-detail",components:{vueSelectStore:a("Ie7z").a},props:{storeInfo:{type:Object,default:function(){return{}}}},data:function(){return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},selectType:"group"}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=e[0].id},selected:function(e){this.areaChainName=e.provinceName+"/"+e.cityName+"/"+e.countryName},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var a=e.storeInfo,o=[];e.imgs.forEach(function(e){o.push(e.url)}),a.imageUrls=o.join(","),Object(s.a)("/haoban-manage-web/store/update",a).then(function(t){console.log(t,"eidt result"),1==t.data.errorCode?e.$message.success({message:"操作成功!"}):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatStoreInfo:function(e){var t=(e.areaChainName||"").split("/");this.areaOptions={provinceName:t[0],provinceId:e.provinceId,cityName:t[1],cityId:e.cityId,countryName:t[2],countyId:e.countyId},this.imgs=e.imageUrl?e.imageUrl.split(","):[];var a=[];this.imgs.forEach(function(e){a.push({url:e})}),this.imgs=a,this.location=e.longitude+","+e.latitude}},mounted:function(){this.formatStoreInfo(this.storeInfo)},watch:{$route:function(e){console.log(e,"to")}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"store-info"},[a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("门店信息")]),e._v(" "),a("el-form",{staticClass:"store-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"门店名称",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.storeName,callback:function(t){e.$set(e.storeInfo,"storeName",t)},expression:"storeInfo.storeName"}},[a("template",{slot:"suffix"},[e._v(e._s(e.storeInfo.storeName?e.storeInfo.storeName.length:0)+"/20")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[a("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[a("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"门店图片(640*340)",prop:"imageUrls"}},[a("div",{staticClass:"member-upload-image"},[a("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1)]),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[a("el-time-select",{attrs:{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 "),a("el-time-select",{attrs:{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(" "),a("el-form-item",{attrs:{label:"门店类型"}},[a("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[a("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"门店地址"}},[a("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),a("el-input",{model:{value:e.storeInfo.postAddress,callback:function(t){e.$set(e.storeInfo,"postAddress",t)},expression:"storeInfo.postAddress"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.postAddress||"").length)+"/50")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"GPS坐标"}},[a("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"location"}}),e._v(" "),a("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),a("el-form-item",[a("template",{slot:"label"},[e._v("\n 门店代码\n "),a("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),a("el-input",{model:{value:e.storeInfo.storeCode,callback:function(t){e.$set(e.storeInfo,"storeCode",t)},expression:"storeInfo.storeCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.storeCode||"").length)+"/20")])],2)],2)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),a("el-form",{staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"店长姓名",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.managerName,callback:function(t){e.$set(e.storeInfo,"managerName",t)},expression:"storeInfo.managerName"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerName||"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[a("el-input",{attrs:{disabled:""},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"店长性别"}},[a("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[a("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"店长代码"}},[a("el-input",{model:{value:e.storeInfo.managerCode,callback:function(t){e.$set(e.storeInfo,"managerCode",t)},expression:"storeInfo.managerCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerCode||"").length)+"/20")])],2)],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),a("el-form",{staticClass:"operate-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"特色服务"}},[a("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(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),a("el-form-item",{attrs:{label:"人均消费"}},[a("el-input",{model:{value:e.storeInfo.personCost,callback:function(t){e.$set(e.storeInfo,"personCost",t)},expression:"storeInfo.personCost"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.personCost+"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"推荐商品"}},[a("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(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌介绍"}},[a("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(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),a("div",{staticClass:"handle-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType,forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("f/ut")},null,null);t.a=n.exports},qu0B:function(e,t){},sJDJ:function(e,t){}});
\ No newline at end of file
webpackJsonp([4],{"4aSh":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),o=a("ATfr"),r=a("P9l9"),n={name:"storeView",props:{tableData:{type:Array,default:function(){return[]}},departmentId:{type:[String,Number],default:""},brandId:{type:[String,Number],default:""}},data:function(){return{tableH:window.screen.availHeight-440-180-70,selectedList:[],showChildMember:!1,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],statusArr:["待审核","正常","审核失败","停业整顿","回收站","删除"]}},methods:{delStores:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this;a.$confirm("是否删除所选店铺","提示",{type:"warning"}).then(function(){var s="";if(t)s=e.storeId;else{var o=[];a.selectedList.forEach(function(e){o.push(e.storeId)}),s=o.join(",")}var r={ids:s};a.postDel(r)})},postDel:function(e){var t=this;Object(r.a)("/haoban-manage-web/store/delByIds",e).then(function(e){1==e.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功"}),t.$emit("getStoreList")):t.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},selectMember:function(e){this.selectedList=e},setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},cancelDelTag:function(e,t){t.popVisible=!1},toDelTag:function(e,t){var a={ids:t.storeId};this.postDel(a)}},computed:{disabledDel:function(){return this.selectedList.length<1}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"common-right-button-box"},[a("a",{attrs:{href:"#/storeInfo"}},[a("el-button",{attrs:{type:"primary"}},[e._v("添加门店")])],1),e._v(" "),a("a",{attrs:{href:"#/storeIo?importCode=store&departmentId="+e.departmentId+"&showChildMember="+1*e.showChildMember+"&brandId="+e.brandId}},[a("el-button",[e._v("批量导入/导出")])],1),e._v(" "),a("el-button",{attrs:{type:"danger",disabled:e.disabledDel},on:{click:e.delStores}},[e._v("批量删除")]),e._v(" "),a("span",{staticClass:"J_show-children el-button",attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子成员")]),a("a",{staticClass:"a-href"})],1)],1),e._v(" "),a("el-table",{ref:"table1",attrs:{height:e.tableData.length?e.tableH:"auto",data:e.tableData},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"门店",prop:"storeName",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType",width:"100"},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:"areaChainName","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.areaChainName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组",prop:"departmentName","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href m-r-20",attrs:{href:"#/storeInfo?storeId="+t.row.storeId}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.popVisible,callback:function(a){e.$set(t.row,"popVisible",a)},expression:"scope.row.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(t.$index,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(t.$index,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,l,!1,function(e){a("4aSh")},null,null).exports,c={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{tableH:window.screen.availHeight-440-180-70,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",showChildMember:!1}},methods:{setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},changeManager:function(e,t){var a=this,s={};e.clerks.some(function(e){return 1==e.isManager&&(s=e),1==e.isManager});var o={employeeClerkId:t.employeeClerkId,managerId:s.employeeClerkId};Object(r.a)("/haoban-manage-web/emp/setManager",o).then(function(e){1==e.data.errorCode?(s.isManager=0,t.isManager=1,a.$message.success({message:"操作成功"})):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},selectByStatus:function(e){this.$emit("selectByStatus",e)},selectByType:function(e){var t="";0!=e&&(t=1*e-1),this.$emit("selectByType",t)},delClerk:function(e,t){var a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var s={ids:e.employeeClerkId};a.postDel(s,t,e)})},postDel:function(e,t,a){var s=this;Object(r.a)("/haoban-manage-web/emp/del",e).then(function(e){1==e.data.errorCode?(t.clerks.forEach(function(e){e.employeeClerkId==a.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(e),1)}),s.$message.success({duration:1e3,message:"操作成功"})):s.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},cancelDelTag:function(e,t,a){t.popVisible=!1},toDelTag:function(e,t,a){var s={ids:t.employeeClerkId};this.postDel(s,a,t)}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"sf-right-button-box common-right-button-box"},[a("el-select",{attrs:{size:"small"},on:{change:e.selectByType},model:{value:e.storeType,callback:function(t){e.storeType=t},expression:"storeType"}},e._l(e.typeArr,function(e,t){return a("el-option",{key:e,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{attrs:{size:"small"},on:{change:e.selectByStatus},model:{value:e.storeStatus,callback:function(t){e.storeStatus=t},expression:"storeStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{attrs:{label:"停业整顿",value:3}})],1),e._v(" "),a("span",{staticClass:"J_show-children el-button",staticStyle:{"vertical-align":"middle"},attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子成员")]),a("a",{staticClass:"a-href"})],1)],1),e._v(" "),a("el-table",{ref:"clerkViewTable",staticClass:"diy-table",attrs:{height:e.tableData.length?e.tableH:"auto",data:e.tableData}},[a("el-table-column",{attrs:{label:"门店",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{staticClass:"m-b-10"},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",[a("a",{staticClass:"a-href",attrs:{href:"#/addClerk?storeId="+t.row.storeId}},[e._v("新增店员")])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode",width:"300"}}),e._v(" "),a("el-table-column",{attrs:{"min-width":"675"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("ul",{staticClass:"diy-header"},[a("li",{staticClass:"name"},[e._v("姓名")]),e._v(" "),a("li",{staticClass:"phone"},[e._v("手机号")]),e._v(" "),a("li",{staticClass:"position"},[e._v("职位")]),e._v(" "),a("li",{staticClass:"status"},[e._v("状态")]),e._v(" "),a("li",{staticStyle:{width:"200px"}},[e._v("操作")])])]}},{key:"default",fn:function(t){return[a("ul",e._l(t.row.clerks,function(s,o){return a("li",{key:s.employeeClerkId,staticClass:"clerk-obj-li"},[a("div",{staticClass:"clerk-name clerk-cell"},[a("el-radio",{attrs:{value:1,label:s.isManager},on:{change:function(a){e.changeManager(t.row,s)}}},[e._v(e._s(s.name))]),e._v(" "),1==s.isManager?a("span",{staticClass:"manager"},[e._v("店长")]):e._e()],1),e._v(" "),a("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s(s.phoneNumber))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(s.positionName||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-status"},[a("div",{staticClass:"status-icon",class:1==s.status?"is-active":""},[a("i",{staticClass:"iconfont icon-shouji"})])]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-handle"},[a("a",{staticClass:"a-href m-r-20",attrs:{href:"#/addClerk?storeId="+t.row.storeId+"&clerkId="+s.employeeClerkId}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:s.popVisible,callback:function(t){e.$set(s,"popVisible",t)},expression:"clerk.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(o,s,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(o,s,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)],1)])}))]}}])})],1)],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("v3V7")},null,null).exports,m=a("qsKc"),p={name:"add-brand-dialog",data:function(){return{dialogVisible:!1,brandName:"",brand:""}},methods:{saveFn:function(){if(this.brandName){var e=this,t={brandName:e.brandName};Object(r.a)("/haoban-manage-web/brand/insert",t).then(function(t){1==t.data.errorCode?e.$emit("addSuccess"):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}else this.$message.error({message:"请输入品牌名称"})}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"新建品牌",width:"422px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("请输入品牌名称")]),e._v(" "),a("el-input",{staticClass:"m-t-20",model:{value:e.brandName,callback:function(t){e.brandName=t},expression:"brandName"}}),e._v(" "),a("div",{staticClass:"btn-box t-rt m-t-20 m-b-10"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var h=a("VU/8")(p,f,!1,function(e){a("fAiH")},null,null).exports,g=a("WSbm"),v=a("oncj"),b={name:"storeEstruturaContainer",components:{navCrumb:s.a,searchMenu:o.a,storeView:i,clerkView:u,employeeInfo:g.a,storeInfo:m.a,addBrand:h,clerkInfo:v.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:""}],windowH:window.screen.availHeight-440+"px",tableH:window.screen.availHeight-440-180+"px",boxHeight:window.screen.availHeight+"px",menuData:[],searchResult:{},loading:!0,groupInfo:{groupName:"",departmentId:""},total:0,showChildMember:!1,pageSize:20,pageNumber:1,storeList:[],tableView:1,showEmployee:"node",perId:"",storeInfo:{},disableBtn:!0,storeStatus:"",storeType:"",recycleList:[]}},beforeRouteUpdate:function(e,t,a){a()},methods:{handleSearchKey:function(e){var t=this,a={keyWord:e};Object(r.a)("/haoban-manage-web/store/searchpage",a).then(function(e){t.searchResult=e.data.result||{}}).catch(function(e){t.$message.error({message:e.message})})},handleEmployeeSelection:function(e,t){this.perId=e.employeeClerkId,this.showEmployee=t},addBrand:function(){this.$refs.add_brand.dialogVisible=!0},addSon:function(){location.href="#/addGroup?addnew=1&groupId="+this.groupInfo.departmentId},goToEdit:function(e){var t=0==e?"brand":"group";location.href="#/addGroup?groupId="+this.groupInfo.departmentId+"&type="+t},addSuccess:function(){this.getGroupData(),this.$refs.add_brand.dialogVisible=!1},handleStoreSelection:function(e){var t=this,a={storeId:e.storeId};Object(r.a)("/haoban-manage-web/store/findStoreById",a).then(function(e){1==e.data.errorCode?(t.storeInfo=e.data.result,t.showEmployee="store"):t.$message.error({message:e.data.message})})},handleSizeChange:function(e){this.pageSize=e,this.getStoreList()},handleCurrentChange:function(e){this.pageNumber=e,this.getStoreList()},switchView:function(e){this.pageSize=20,this.pageNumber=1,this.storeList=[],this.showChildMember=!1,this.storeStatus="",this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},getGroupData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptList",{isStoreGroup:1}).then(function(t){1==t.data.errorCode?(e.menuData=t.data.result||[],t.data.result.some(function(t){return 0==t.level&&(e.groupInfo.departmentId=t.groupId,e.groupInfo.groupName=t.name,e.groupInfo.hasPression=t.hasPression),0==t.level}),e.getStoreList()):(e.menuData=[],e.loading=!1,e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreList:function(){var e=this;e.loading=!0;var t={storeGroupId:e.groupInfo.departmentId,showChild:1*e.showChildMember,showType:e.tableView,pageSize:e.pageSize,pageNum:e.pageNumber,status:e.storeStatus,storeType:e.storeType};Object(r.a)("/haoban-manage-web/store/findSimplePage",t).then(function(a){1==a.data.errorCode?4==t.status?(e.recycleList=a.data.result.list||[],e.storeStatus="",e.loading=!1):(e.total=a.data.result.total,a.data.result.list&&a.data.result.list.length&&a.data.result.list.forEach(function(e,t){e.popVisible=!1,e.clerks&&e.clerks.length&&e.clerks.forEach(function(e,t){e.popVisible=!1})}),e.storeList=a.data.result.list||[],e.loading=!1,e.storeStatus=4,e.getStoreList()):(e.loading=!1,e.storeList=[],e.$message.error({duration:1e3,message:a.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},handleTreeSelection:function(e,t,a){this.groupInfo.departmentId=e.groupId,this.groupInfo.groupName=e.name,this.groupInfo.brandId=e.brandId,this.showEmployee=a,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.getStoreList()},selectByStatus:function(e){this.storeStatus=e,this.getStoreList()},selectByType:function(e){this.storeType=e,this.getStoreList()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},_={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap store-frame-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:"store-estrutura-container common-frame-container",style:{height:e.windowH}},[a("search-menu",{ref:"searchMenu",attrs:{storeFrame:!0,treeData:e.menuData,searchResult:e.searchResult},on:{handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection,handleStoreSelection:e.handleStoreSelection,handleEmployeeSelection:e.handleEmployeeSelection}},[a("template",{slot:"buttonBox"},[a("div",{staticClass:"slot-button"},[a("el-button",{attrs:{disabled:e.disableBtn},on:{click:e.addBrand}},[e._v("新建品牌")]),e._v(" "),a("el-popover",{attrs:{placement:"right",width:"200",content:"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面",trigger:"hover"}},[a("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)])],2),e._v(" "),"employee"==e.showEmployee?a("clerk-info",{attrs:{perId:e.perId}}):"store"==e.showEmployee?a("store-info",{ref:"store_info",attrs:{storeInfo:e.storeInfo}}):a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sf-right-container common-right-container"},[a("div",{staticClass:"sf-right-header common-right-header"},[a("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"家)")]),e._v(" "),a("span",{staticClass:"id-span"},[e._v("部门ID: "+e._s(e.groupInfo.departmentId))]),e._v(" "),a("span",{staticClass:"handle-area"},[a("el-button",{staticClass:"no-bdr-btn",attrs:{disabled:1!=e.groupInfo.hasPression},on:{click:e.addSon}},[e._v("\n 添加子分组 ")]),a("span",{staticClass:"hurdle"}),a("el-button",{staticClass:"no-bdr-btn",attrs:{href:"#/addGroup?level="+e.groupInfo.level+"&groupId="+e.groupInfo.departmentId,disabled:1!=e.groupInfo.hasPression},on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v("\n 编辑\n ")])],1)]),e._v(" "),a("div",{staticClass:"tab-div"},[a("el-radio-group",{on:{change:e.switchView},model:{value:e.tableView,callback:function(t){e.tableView=t},expression:"tableView"}},[a("el-radio-button",{attrs:{label:1}},[e._v("门店视图")]),e._v(" "),a("el-radio-button",{attrs:{label:2}},[e._v("店员视图")])],1),e._v(" "),a("a",{staticClass:"a-href fr",attrs:{href:"#/recycle?dept="+e.groupInfo.departmentId+"&showChild="+1*e.showChildMember+"&type="+e.storeType}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}},[e._v("回收站("+e._s(e.recycleList.length)+")")])],1)],1),e._v(" "),a("div",[1==e.tableView?[a("store-view",{attrs:{tableData:e.storeList,departmentId:e.groupInfo.departmentId,brandId:e.groupInfo.brandId},on:{setChildMemberShow:e.setChildMemberShow,getStoreList:e.getStoreList}})]:[a("clerk-view",{attrs:{tableData:e.storeList},on:{setChildMemberShow:e.setChildMemberShow,selectByStatus:e.selectByStatus,selectByType:e.selectByType}})]],2),e._v(" "),e.storeList.length?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()]),e._v(" "),a("add-brand",{ref:"add_brand",on:{addSuccess:e.addSuccess}})],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var I=a("VU/8")(b,_,!1,function(e){a("sJDJ")},null,null);t.default=I.exports},ATfr:function(e,t,a){"use strict";var s=a("0xDb"),o={name:"searchMenu",components:{},props:{treeData:{type:Array,required:!0},searchResult:{type:Object,required:!0},storeFrame:{type:Boolean,default:!1}},data:function(){return{searchKey:"",searchResultShow:!1,myProps:{children:"childrens",label:"label",disabled:"disabled"},menuData:[],defaultOpen:[],defaultId:""}},methods:{clearFn:function(){this.searchResultShow=!1,this.$nextTick(function(){document.querySelector(".el-tree-node").classList.add("is-current")})},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(e,t){e.id!=this.defaultId&&document.querySelector(".el-tree-node").classList.remove("is-current"),this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){this.$emit("handleEmployeeSelection",e,"employee")},handleStoreClick:function(e){this.$emit("handleStoreSelection",e,"store")}},filter:{},computed:{employeeList:function(){return this.searchResult.searchList?this.searchResult.searchList:[]},departmentList:function(){return this.searchResult.departmentList?this.searchResult.departmentList:[]},brandList:function(){return this.searchResult.brandList?this.searchResult.brandList:[]}},watch:{treeData:function(e,t){var a=this,o=Object(s.c)(e);a.defaultOpen=o.defaultOpen,a.menuData=o.menuArr,a.menuData.length&&a.$nextTick(function(){a.defaultId=a.menuData.length?a.menuData[0].id:"",document.querySelector(".el-tree-node").classList.add("is-current")})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"searh-menu-container"},[a("div",{staticClass:"p-0-15"},[a("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"姓名/手机号/部门名称",clearable:""},on:{clear:e.clearFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}}),e._v(" "),e._t("buttonBox"),e._v(" "),e.searchResultShow?e._e():a("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:e.menuData,"highlight-current":!0,"expand-on-click-node":!1,props:e.myProps},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.node;return t.data,a("span",{staticClass:"custom-tree-node"},[a("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),a("span",[e._v(e._s(s.label))])])}}])})],2),e._v(" "),e.searchResultShow?a("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,s){return t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?[a("div",{key:t.topDepartment.brandId+"_"+s},[a("p",{staticClass:"brand-title"},[e._v(e._s(t.topDepartment.name))]),e._v(" "),t.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("分组列表")]),e._v(" "),e._l(t.departmentList,function(t,s){return a("li",{key:s+"_"+t.groupId,staticClass:"group-item items",on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),t.storeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(t.storeList,function(t,s){return a("li",{key:s+"_"+t.storeGroupId,staticClass:"group-item items",on:{click:function(a){e.handleStoreClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.storeName)+"\n ")])})],2):e._e(),e._v(" "),t.searchList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("人员列表")]),e._v(" "),e._l(t.searchList,function(t,s){return a("li",{key:s+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e()])]:e._e()}),e._v(" "),e.brandList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]:[e.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,s){return a("li",{key:s+"_"+t.groupId,staticClass:"group-item items",on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,s){return a("li",{key:s+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("qu0B")},null,null);t.a=n.exports},V05t:function(e,t){},"f/ut":function(e,t){},fAiH:function(e,t){},oncj:function(e,t,a){"use strict";var s=a("Ie7z"),o=a("P9l9"),r={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""}},components:{vueSelectStore:s.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,a){if(t)return/^1[34578]\d{9}$/.test(t)?a():a(new Error("手机号格式不正确"));return a(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 a=this,s={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||""},r=a.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(r,s).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),1==t?a.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:a.$router.push("/storeFrame")):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){})},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)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"form-container bdr-box"},[a("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("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(" "),a("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[a("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(" "),a("el-form-item",{attrs:{label:"code",prop:"code"}},[a("el-input",{model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[a("el-input",{model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),e.isAddnew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),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:"store"},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=a("VU/8")(r,n,!1,function(e){a("V05t")},null,null);t.a=l.exports},qsKc:function(e,t,a){"use strict";var s=a("P9l9"),o={name:"store-detail",components:{vueSelectStore:a("Ie7z").a},props:{storeInfo:{type:Object,default:function(){return{}}}},data:function(){return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},selectType:"group"}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=e[0].id},selected:function(e){this.areaChainName=e.provinceName+"/"+e.cityName+"/"+e.countryName},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var a=e.storeInfo,o=[];e.imgs.forEach(function(e){o.push(e.url)}),a.imageUrls=o.join(","),Object(s.a)("/haoban-manage-web/store/update",a).then(function(t){console.log(t,"eidt result"),1==t.data.errorCode?e.$message.success({message:"操作成功!"}):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatStoreInfo:function(e){var t=(e.areaChainName||"").split("/");this.areaOptions={provinceName:t[0],provinceId:e.provinceId,cityName:t[1],cityId:e.cityId,countryName:t[2],countyId:e.countyId},this.imgs=e.imageUrl?e.imageUrl.split(","):[];var a=[];this.imgs.forEach(function(e){a.push({url:e})}),this.imgs=a,this.location=e.longitude+","+e.latitude}},mounted:function(){this.formatStoreInfo(this.storeInfo)},watch:{$route:function(e){console.log(e,"to")}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"store-info"},[a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("门店信息")]),e._v(" "),a("el-form",{staticClass:"store-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"门店名称",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.storeName,callback:function(t){e.$set(e.storeInfo,"storeName",t)},expression:"storeInfo.storeName"}},[a("template",{slot:"suffix"},[e._v(e._s(e.storeInfo.storeName?e.storeInfo.storeName.length:0)+"/20")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[a("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[a("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"门店图片(640*340)",prop:"imageUrls"}},[a("div",{staticClass:"member-upload-image"},[a("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1)]),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[a("el-time-select",{attrs:{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 "),a("el-time-select",{attrs:{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(" "),a("el-form-item",{attrs:{label:"门店类型"}},[a("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[a("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"门店地址"}},[a("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),a("el-input",{model:{value:e.storeInfo.postAddress,callback:function(t){e.$set(e.storeInfo,"postAddress",t)},expression:"storeInfo.postAddress"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.postAddress||"").length)+"/50")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"GPS坐标"}},[a("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"location"}}),e._v(" "),a("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),a("el-form-item",[a("template",{slot:"label"},[e._v("\n 门店代码\n "),a("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),a("el-input",{model:{value:e.storeInfo.storeCode,callback:function(t){e.$set(e.storeInfo,"storeCode",t)},expression:"storeInfo.storeCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.storeCode||"").length)+"/20")])],2)],2)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),a("el-form",{staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"店长姓名",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.managerName,callback:function(t){e.$set(e.storeInfo,"managerName",t)},expression:"storeInfo.managerName"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerName||"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[a("el-input",{attrs:{disabled:""},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"店长性别"}},[a("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[a("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"店长代码"}},[a("el-input",{model:{value:e.storeInfo.managerCode,callback:function(t){e.$set(e.storeInfo,"managerCode",t)},expression:"storeInfo.managerCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerCode||"").length)+"/20")])],2)],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),a("el-form",{staticClass:"operate-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"特色服务"}},[a("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(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),a("el-form-item",{attrs:{label:"人均消费"}},[a("el-input",{model:{value:e.storeInfo.personCost,callback:function(t){e.$set(e.storeInfo,"personCost",t)},expression:"storeInfo.personCost"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.personCost+"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"推荐商品"}},[a("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(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌介绍"}},[a("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(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),a("div",{staticClass:"handle-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType,forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("f/ut")},null,null);t.a=n.exports},qu0B:function(e,t){},sJDJ:function(e,t){},v3V7:function(e,t){}});
\ No newline at end of file
webpackJsonp([42],{"/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"),m=n("5tgt"),d=n.n(m);r.default.use(s.a);var p=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:d()("login","index")},{path:"/index",name:"index",component:d()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:d()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:d()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:d()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:d()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:d()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:d()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:d()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:d()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:d()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:d()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:d()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:d()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:d()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:d()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:d()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:d()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:d()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:d()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",component:d()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:d()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:d()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:d()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:d()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:d()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:d()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:d()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:d()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:d()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:d()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:d()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:d()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:p},{path:"/404",name:"error404",component:p},{path:"/500",name:"error500",component:p},{path:"*",redirect:"/404",hidden:!0}],f=new s.a({routes:l,scrollBehavior:function(){return{y:0}}}),h=n("zL8q"),v=n.n(h),g=n("Rf8U"),w=n.n(g),y=n("mtWM"),C=n.n(y),A=n("bOdI"),I=n.n(A),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")),P=n.n(k),S=n("tyqE"),O=n.n(S),T=n("pRVe"),b=n.n(T),D=n("SE7k"),F=n.n(D),j=n("XsK6"),z=n.n(j),E=n("QRL9"),G=n.n(E),H=n("2Pnh"),q=n.n(H),J=n("l9mu"),X=n.n(J),N={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;q()(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),m=new X.a("","pt","a4");if(r<a)m.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)m.addImage(s,"JPEG",0,c,595.28,i),c-=841.89,(r-=a)>0&&m.addPage();m.save(e+".pdf")})}}};r.default.use(N),r.default.use(z.a),r.default.use(G.a),r.default.use(F.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.config.productionTip=!1,r.default.use(v.a,{size:"large"}),r.default.use(w.a,C.a),r.default.axios.defaults.withCredentials=!0,f.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")||C.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){h.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:f,store:R,components:{App:i},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,16],"./contacts/addDepartment.vue":["HHRu",0,14],"./contacts/addEmployee.vue":["00Sv",29],"./contacts/addGroup.vue":["mPjx",0,32],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,34],"./contacts/employeeIo.vue":["Rwbg",0,40],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,27],"./contacts/recordInfo.vue":["67iC",0,18],"./contacts/recordIo.vue":["738z",0,15],"./contacts/recycle.vue":["HkK0",0,22],"./contacts/shareAddDepartment.vue":["q5Ri",0,12],"./contacts/shareCode.vue":["JsWW",0,35],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,10],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,39],"./contacts/storeIo.vue":["RHxA",0,26],"./contacts/unemployee.vue":["TGrv",0,13],"./enterpriseApp/index.vue":["da9f",38],"./errorPage/403.vue":["6XGN",23],"./errorPage/404.vue":["AejC",21],"./errorPage/500.vue":["FskK",19],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,25],"./login/index.vue":["T+/8",0,7],"./reviewCenter/index.vue":["+lem",31],"./reviewCenter/reviewed.vue":["CLYF",0,11],"./reviewCenter/unreview.vue":["xCEU",0,9],"./setting/addAdmin.vue":["rs/A",0,33],"./setting/addAdminRole.vue":["fZsz",0,24],"./setting/companyAddress.vue":["SKyE",0,36],"./setting/companyCertify.vue":["3zYh",0,8],"./setting/index.vue":["VlR1",30],"./setting/replaceAdmin.vue":["ys9I",0,28],"./setting/setChildAdmin.vue":["VqB7",0,37],"./setting/staffDetails.vue":["Zyzf",0,20],"./setting/storePermission.vue":["Xwfy",0,17]};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([42],{"/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"),m=n("5tgt"),d=n.n(m);r.default.use(s.a);var p=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:d()("login","index")},{path:"/index",name:"index",component:d()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:d()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:d()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:d()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:d()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:d()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:d()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:d()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:d()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:d()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:d()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:d()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:d()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:d()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:d()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:d()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:d()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:d()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:d()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",component:d()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:d()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:d()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:d()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:d()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:d()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:d()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:d()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:d()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:d()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:d()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:d()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:d()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:p},{path:"/404",name:"error404",component:p},{path:"/500",name:"error500",component:p},{path:"*",redirect:"/404",hidden:!0}],f=new s.a({routes:l,scrollBehavior:function(){return{y:0}}}),h=n("zL8q"),v=n.n(h),g=n("Rf8U"),w=n.n(g),y=n("mtWM"),C=n.n(y),A=n("bOdI"),I=n.n(A),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")),P=n.n(k),S=n("tyqE"),O=n.n(S),T=n("pRVe"),b=n.n(T),D=n("SE7k"),F=n.n(D),j=n("XsK6"),z=n.n(j),E=n("QRL9"),G=n.n(E),H=n("2Pnh"),q=n.n(H),J=n("l9mu"),X=n.n(J),N={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;q()(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),m=new X.a("","pt","a4");if(r<a)m.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)m.addImage(s,"JPEG",0,c,595.28,i),c-=841.89,(r-=a)>0&&m.addPage();m.save(e+".pdf")})}}};r.default.use(N),r.default.use(z.a),r.default.use(G.a),r.default.use(F.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.config.productionTip=!1,r.default.use(v.a,{size:"large"}),r.default.use(w.a,C.a),r.default.axios.defaults.withCredentials=!0,f.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")||C.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){h.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:f,store:R,components:{App:i},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,17],"./contacts/addDepartment.vue":["HHRu",0,14],"./contacts/addEmployee.vue":["00Sv",29],"./contacts/addGroup.vue":["mPjx",0,32],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,35],"./contacts/employeeIo.vue":["Rwbg",0,40],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,27],"./contacts/recordInfo.vue":["67iC",0,18],"./contacts/recordIo.vue":["738z",0,15],"./contacts/recycle.vue":["HkK0",0,22],"./contacts/shareAddDepartment.vue":["q5Ri",0,12],"./contacts/shareCode.vue":["JsWW",0,36],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,10],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,39],"./contacts/storeIo.vue":["RHxA",0,26],"./contacts/unemployee.vue":["TGrv",0,13],"./enterpriseApp/index.vue":["da9f",38],"./errorPage/403.vue":["6XGN",24],"./errorPage/404.vue":["AejC",21],"./errorPage/500.vue":["FskK",19],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,23],"./login/index.vue":["T+/8",0,7],"./reviewCenter/index.vue":["+lem",31],"./reviewCenter/reviewed.vue":["CLYF",0,11],"./reviewCenter/unreview.vue":["xCEU",0,9],"./setting/addAdmin.vue":["rs/A",0,34],"./setting/addAdminRole.vue":["fZsz",0,25],"./setting/companyAddress.vue":["SKyE",0,37],"./setting/companyCertify.vue":["3zYh",0,8],"./setting/index.vue":["VlR1",30],"./setting/replaceAdmin.vue":["ys9I",0,28],"./setting/setChildAdmin.vue":["VqB7",0,33],"./setting/staffDetails.vue":["Zyzf",0,20],"./setting/storePermission.vue":["Xwfy",0,16]};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 a=window.webpackJsonp;window.webpackJsonp=function(c,r,d){for(var t,b,o,i=0,u=[];i<c.length;i++)b=c[i],f[b]&&u.push(f[b][0]),f[b]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(a&&a(c,r,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)o=n(n.s=d[i]);return o};var c={},f={44:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;var r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,n.nc&&d.setAttribute("nonce",n.nc),d.src=n.p+"static/js/"+e+"."+{0:"62d9e74a475a73baa751",1:"0ebe3ead93207dc78a78",2:"970f392d93da879509dd",3:"e49f6f4ff0a2e8b2f693",4:"5555c5daced8e8389ca2",5:"3e892a02f796598777b8",6:"1eb44f4a85c85146118b",7:"9a9487ae0bbf8cb3390e",8:"005d95ed893864df5d5c",9:"32c2e6c94b3452b4b98c",10:"80dbd82d2259a173f161",11:"5c0c50ad9d9e027bac4c",12:"7649add12a8e65f5ccc1",13:"f3a0ec39f1b499293aee",14:"a8eb3785476efb5902f1",15:"bb31eaee97b0d4230e8c",16:"964d924b905ea8b9e2ff",17:"fc82e9c8074eee834909",18:"18a630a76a3440a7cec2",19:"dabaaf4b65f9f75c9a0d",20:"36a5fc5727c37c2362ad",21:"68212dc5cb8b4a50f4fc",22:"fc1fa9909429159cb0ad",23:"5ed1b5fd3abff19ce342",24:"7d62bd4a0fa65349a25a",25:"2fb3ed62cef79aae6c26",26:"f03651b4ad39ca96ae51",27:"98c2e39e16978b0ce2a3",28:"4d225d27b0debfb48b02",29:"5b8aa1944b69578f0290",30:"95327e662813b4ac4a42",31:"983b54016f6fba593296",32:"41ea5b3ad46e17c23db8",33:"812d0f9a734f6fd27c80",34:"b603f335427d96d5a92c",35:"2d217e41fb5bd167101b",36:"4c04136e86c80ec1063a",37:"55d006aa01d138779a8b",38:"0cf0ed7e9bb4a1005322",39:"5c5c089705cc99bc73b0",40:"3183088ad97de249f765",43:"9eb64f94dd6725aad6a1"}[e]+".js";var t=setTimeout(b,12e4);function b(){d.onerror=d.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return d.onerror=d.onload=b,r.appendChild(d),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,f,t){for(var b,d,o,i=0,u=[];i<c.length;i++)d=c[i],n[d]&&u.push(n[d][0]),n[d]=0;for(b in f)Object.prototype.hasOwnProperty.call(f,b)&&(e[b]=f[b]);for(a&&a(c,f,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)o=r(r.s=t[i]);return o};var c={},n={44:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var f=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,r.nc&&t.setAttribute("nonce",r.nc),t.src=r.p+"static/js/"+e+"."+{0:"62d9e74a475a73baa751",1:"0ebe3ead93207dc78a78",2:"970f392d93da879509dd",3:"e49f6f4ff0a2e8b2f693",4:"167623ceccf92db78b1a",5:"3e892a02f796598777b8",6:"1eb44f4a85c85146118b",7:"9a9487ae0bbf8cb3390e",8:"005d95ed893864df5d5c",9:"32c2e6c94b3452b4b98c",10:"80dbd82d2259a173f161",11:"5c0c50ad9d9e027bac4c",12:"7649add12a8e65f5ccc1",13:"f3a0ec39f1b499293aee",14:"a8eb3785476efb5902f1",15:"bb31eaee97b0d4230e8c",16:"89e539b4ffc078e95a0a",17:"a1f227b6d1d9a239a073",18:"18a630a76a3440a7cec2",19:"dabaaf4b65f9f75c9a0d",20:"36a5fc5727c37c2362ad",21:"68212dc5cb8b4a50f4fc",22:"fc1fa9909429159cb0ad",23:"0bcd452969148d9748e4",24:"3ae82214b65939d3d2e0",25:"f6433a7be6aafaac0465",26:"f03651b4ad39ca96ae51",27:"98c2e39e16978b0ce2a3",28:"4d225d27b0debfb48b02",29:"5b8aa1944b69578f0290",30:"95327e662813b4ac4a42",31:"983b54016f6fba593296",32:"41ea5b3ad46e17c23db8",33:"ac7ae90446d1f2a0ee3a",34:"84dba32e7b37e2ee9b4f",35:"b2a185be237ecdbc19f9",36:"183ba805a28ad3c67a0e",37:"dec9ffc3b9c594135e2b",38:"0cf0ed7e9bb4a1005322",39:"5c5c089705cc99bc73b0",40:"3183088ad97de249f765",43:"9eb64f94dd6725aad6a1"}[e]+".js";var b=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(b);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return t.onerror=t.onload=d,f.appendChild(t),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -31,7 +31,7 @@
</el-table-column>
<el-table-column label="门店code" prop="storeCode" width="300"></el-table-column>
<el-table-column min-width="675">
<template slot="header" slot-scope="scope">
<template slot="header">
<ul class="diy-header">
<li class="name">姓名</li>
<li class="phone">手机号</li>
......@@ -89,6 +89,7 @@
</el-table>
</div>
</template>
<script>
import { getRequest } from '@/api/api';
export default {
......@@ -245,17 +246,23 @@ export default {
}
};
</script>
<style type="scss">
<style type="text/scss" lang="scss" scoped>
/* eslint-disable */
.el-button {
/* eslint-disable */
&.J_show-children {
/*eslint-disable*/
vertical-align: top;
margin-left: 0;
padding: 0 15px;
line-height: 29px;
height: 32px;
/deep/ .el-checkbox {
/*eslint-disable*/
vertical-align: 0;
&.is-checked {
/*eslint-disable*/
.el-checkbox__label {
color: #409eff;
}
......
......@@ -382,11 +382,6 @@ export default {
.right-content {
padding: 24px;
min-height: 480px;
.right-box {
/*background: #fff;*/
/*padding: 24px;*/
}
}
&.near-store-contain {
......
......@@ -39,13 +39,13 @@
@click="toRoleDetail('show')"
>
查看权限 </span
><span
class="font-14 color-1890ff pinter"
v-if="roleRightObj.roleCode == 'child_admin'"
@click="toRoleDetail('edit')"
>
><span v-if="roleRightObj.roleCode == 'child_admin'">
<span class="font-14 color-1890ff pinter p-r-6" @click="toDelRole" v-if="!tableData.length">
删除角色 </span
><span class="font-14 color-1890ff pinter" @click="toRoleDetail('edit')">
编辑权限
</span>
</span>
</div>
<div
class="role-tip "
......@@ -193,6 +193,47 @@ export default {
},
/**
* 删除 role
*/
toDelRole() {
const that = this;
that
.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
that.postToDelRole();
})
.catch(() => {});
},
postToDelRole() {
const that = this;
let para = {
roleId: that.activeId,
brandId: that.activeBrandId
};
postRequest('/haoban-manage-web/del-role', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('删除成功', 'success');
that.getRoles();
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 选择 role
*/
selectRole(item, brandId) {
......@@ -489,8 +530,8 @@ export default {
/*min-height: 500px;*/
.setChildAdmin-wrap {
&-body {
}
/* &-body {
} */
&-left {
min-width: 260px;
......
......@@ -253,13 +253,8 @@ export default {
.el-tabs__nav-scroll {
padding-left: 20px;
}
.el-tabs__item {
}
}
/deep/ .el-tabs__content {
/*display: none;*/
}
.el-tab-pane {
padding: 1px;
}
......
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