Commit c612d177 by 无尘

fix: 修改 bug

parent c252dff1
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.3fbb31db8519cf1275d390c2b8c98f91.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.15b36d93c1194e40471e.js></script><script type=text/javascript src=./static/js/vendor.907e093428953c324a31.js></script><script type=text/javascript src=./static/js/app.29e94afecc0bddf35217.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.6982a5e8fe8088f33fc3f4a1d4bfc727.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.4717f4770d7bf3c184ec.js></script><script type=text/javascript src=./static/js/vendor.907e093428953c324a31.js></script><script type=text/javascript src=./static/js/app.0eeb6ab9f82690d3b615.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([18],{"9vZ1":function(e,t){},HkK0:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("P9l9"),r={name:"clerkTbale",components:{vueSelectStore:s("Ie7z").a},props:{store:{type:Object,required:!0}},data:function(){return{treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0},selectType:"store",transArr:[],selectedList:[]}},methods:{goBack:function(){window.location.reload()},transClerk:function(e,t){this.transArr="single"==e?[t]:"all"==e?this.store.clerks:this.selectedList,this.treeSet.dialogVisible=!0},delClerk:function(e){this.$emit("delClerk",e)},selectMember:function(e){this.selectedList=e},handleSelectedList:function(e){var t=[];this.transArr.forEach(function(e){t.push(e.employeeClerkId)});var s={ids:t.join(","),storeId:e[0].id},r=this;Object(a.a)("/haoban-manage-web/emp/batchTransfer",s).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),r.store.clerks.forEach(function(e){if(t.indexOf(e.employeeClerkId)>-1){var s=r.store.clerks.indexOf(e);r.store.clerks.splice(s,1)}})):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})}}},n={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"recycle-bin"},[s("p",{staticClass:"r-b-top-header"},[s("a",{staticClass:"a-href title",on:{click:e.goBack}},[e._v("返回")]),e._v(" "),s("el-button",{attrs:{disabled:0==e.selectedList.length},on:{click:function(t){e.transClerk("group")}}},[e._v("批量转移")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.transClerk("all")}}},[e._v("全部转移")])],1),e._v(" "),s("el-table",{ref:"clerkTable",staticStyle:{width:"100%"},attrs:{data:e.store.clerks},on:{"selection-change":e.selectMember}},[s("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),s("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"}}),e._v(" "),s("el-table-column",{attrs:{label:"操作",width:"80",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("a",{staticClass:"a-href",on:{click:function(s){e.transClerk("single",t.row)}}},[s("i",{staticClass:"el-icon-sort"})]),e._v(" "),s("a",{staticClass:"a-href",on:{click:function(s){e.delClerk(t.row)}}},[s("i",{staticClass:"el-icon-delete"})])]}}])})],1),e._v(" "),s("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=s("VU/8")(r,n,!1,function(e){s("opHf")},null,null).exports,o={name:"recycle-bin",components:{navCrumb:s("3Xzz").a,clerkTable:l},data:function(){return{searchKey:"",typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],pageSize:20,pageNumber:1,recycleList:[],total:0,navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame?showRecycle=0"},{name:"门店回收站",path:""}],clerks:[],showClerks:!1,currentStore:{}}},methods:{getRecycleList:function(){var e=this,t=e.$route.query,s={storeGroupId:t.dept,showChild:1*t.showChild,showType:2,pageSize:e.pageSize,pageNumber:e.pageNumber,status:4,storeType:t.type};Object(a.a)("/haoban-manage-web/store/findSimplePage",s).then(function(t){1==t.data.errorCode?(e.total=t.data.result.total,e.recycleList=t.data.result.list||[],e.$message.success({duration:1e3,message:"操作成功!"})):(e.recycleList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},restore:function(e){var t=this;t.$confirm("确定要恢复到门店列表吗?","提示",{type:"warning"}).then(function(){var s={status:1,storeId:e.storeId};Object(a.a)("/haoban-manage-web/store/changeStatus",s).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),t.searchKey="",t.getRecycleList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.getRecycleList()},handleCurrentChange:function(e){this.pageNumber=e,this.getRecycleList()},showClerksFn:function(e){this.currentStore=e,this.clerks=null==e.clerks?[]:e.clerks,this.showClerks=!0},delClerk:function(e){var t=this.currentStore;console.log(e,e.employeeClerkId,t);var s=this;s.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};Object(a.a)("/haoban-manage-web/emp/del",r).then(function(a){console.log(a),1==a.data.errorCode?(t.clerks.forEach(function(s){s.employeeClerkId==e.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(s),1)}),s.$message.success({duration:1e3,message:"操作成功"})):s.$message.error({duration:1e3,message:a.data.message})}).catch(function(e){console.log(e,"error"),s.$message.error({duration:1e3,message:e.message})})})}},beforeMount:function(){this.getRecycleList()}},c={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"common-set-wrap"},[s("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),s("div",{staticClass:"right-content"},[s("div",{staticClass:"right-box"},[e.showClerks?s("clerk-table",{attrs:{store:e.currentStore},on:{delClerk:e.delClerk}}):s("div",{staticClass:"recycle-bin"},[s("div",{staticClass:"r-b-top-header"},[s("div",{staticClass:"title"},[e._v(e._s(e.recycleList.length)+"家门店")]),e._v(" "),s("el-input",{attrs:{placeholder:"请输入门店名","prefix-icon":"el-icon-search"},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}})],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.recycleList.filter(function(t){return!e.searchKey||t.storeName.toLowerCase().includes(e.searchKey.toLowerCase())})}},[s("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),e._v(" "),s("el-table-column",{attrs:{label:"代码",prop:"storeCode"}}),e._v(" "),s("el-table-column",{attrs:{label:"类型",prop:"storeType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"地址",prop:"postAddress"}}),e._v(" "),s("el-table-column",{attrs:{label:"待处理店员",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("a",{staticClass:"a-href",on:{click:function(s){e.showClerksFn(t.row)}}},[e._v("\n "+e._s(t.row.clerks.length)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("a",{staticClass:"a-href",on:{click:function(s){e.restore(t.row)}}},[e._v("恢复到门店列表")])]}}])})],1),e._v(" "),s("div",{staticClass:"pagination"},[s("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)],1)],1)])],1)},staticRenderFns:[]};var i=s("VU/8")(o,c,!1,function(e){s("9vZ1")},null,null);t.default=i.exports},opHf:function(e,t){}});
//# sourceMappingURL=18.9247370e2d3b5ea2195b.js.map
\ No newline at end of file
webpackJsonp([20],{HkK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("P9l9"),r={name:"clerkTbale",components:{vueSelectStore:a("Ie7z").a},props:{store:{type:Object,required:!0}},data:function(){return{treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!0},selectType:"store",transArr:[],selectedList:[]}},methods:{goBack:function(){window.location.reload()},transClerk:function(e,t){this.transArr="single"==e?[t]:"all"==e?this.store.clerks:this.selectedList,this.treeSet.dialogVisible=!0},delClerk:function(e){this.$emit("delClerk",e)},selectMember:function(e){this.selectedList=e},handleSelectedList:function(e){var t=[];this.transArr.forEach(function(e){t.push(e.employeeClerkId)});var a={ids:t.join(","),storeId:e[0].id},r=this;Object(s.a)("/haoban-manage-web/emp/batchTransfer",a).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),r.store.clerks.forEach(function(e){if(t.indexOf(e.employeeClerkId)>-1){var a=r.store.clerks.indexOf(e);r.store.clerks.splice(a,1)}})):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"recycle-bin"},[a("p",{staticClass:"r-b-top-header"},[a("a",{staticClass:"a-href title",on:{click:e.goBack}},[e._v("返回")]),e._v(" "),a("el-button",{attrs:{disabled:0==e.selectedList.length},on:{click:function(t){e.transClerk("group")}}},[e._v("批量转移")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.transClerk("all")}}},[e._v("全部转移")])],1),e._v(" "),a("el-table",{ref:"clerkTable",staticStyle:{width:"100%"},attrs:{data:e.store.clerks},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"80",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.transClerk("single",t.row)}}},[a("i",{staticClass:"el-icon-sort"})]),e._v(" "),a("a",{staticClass:"a-href",on:{click:function(a){e.delClerk(t.row)}}},[a("i",{staticClass:"el-icon-delete"})])]}}])})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=a("VU/8")(r,n,!1,function(e){a("opHf")},null,null).exports,o={name:"recycle-bin",components:{navCrumb:a("3Xzz").a,clerkTable:l},data:function(){return{tableH:window.screen.availHeight-440-180,searchKey:"",typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],pageSize:20,pageNumber:1,recycleList:[],total:0,navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame?showRecycle=0"},{name:"门店回收站",path:""}],clerks:[],showClerks:!1,currentStore:{}}},methods:{getRecycleList:function(){var e=this,t=e.$route.query,a={storeGroupId:t.dept,showChild:1*t.showChild,showType:2,pageSize:e.pageSize,pageNumber:e.pageNumber,status:4,storeType:t.type};Object(s.a)("/haoban-manage-web/store/findSimplePage",a).then(function(t){1==t.data.errorCode?(e.total=t.data.result.total,e.recycleList=t.data.result.list||[]):(e.recycleList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},restore:function(e){var t=this;t.$confirm("确定要恢复到门店列表吗?","提示",{type:"warning"}).then(function(){var a={status:1,storeId:e.storeId};Object(s.a)("/haoban-manage-web/store/changeStatus",a).then(function(e){1==e.data.errorCode?(t.searchKey="",t.getRecycleList()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch(function(e){})},handleSizeChange:function(e){this.pageSize=e,this.getRecycleList()},handleCurrentChange:function(e){this.pageNumber=e,this.getRecycleList()},showClerksFn:function(e){this.currentStore=e,this.clerks=null==e.clerks?[]:e.clerks,this.showClerks=!0},delClerk:function(e){var t=this.currentStore,a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};Object(s.a)("/haoban-manage-web/emp/del",r).then(function(s){1==s.data.errorCode?t.clerks.forEach(function(a){a.employeeClerkId==e.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(a),1)}):a.$message.error({duration:1e3,message:s.data.message})}).catch(function(e){console.log(e,"error"),a.$message.error({duration:1e3,message:e.message})})})}},beforeMount:function(){this.getRecycleList()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[e.showClerks?a("clerk-table",{attrs:{store:e.currentStore},on:{delClerk:e.delClerk}}):a("div",{staticClass:"recycle-bin"},[a("div",{staticClass:"r-b-top-header"},[a("div",{staticClass:"title"},[e._v(e._s(e.recycleList.length)+" 家门店")]),e._v(" "),a("el-input",{attrs:{placeholder:"请输入门店名","prefix-icon":"el-icon-search"},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{height:e.recycleList.length?e.tableH:"auto",data:e.recycleList.filter(function(t){return!e.searchKey||t.storeName.toLowerCase().includes(e.searchKey.toLowerCase())})}},[a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地址",prop:"postAddress"}}),e._v(" "),a("el-table-column",{attrs:{label:"待处理店员",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.showClerksFn(t.row)}}},[e._v("\n "+e._s(t.row.clerks.length)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",prop:"clerkCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href",on:{click:function(a){e.restore(t.row)}}},[e._v("恢复到门店列表")])]}}])})],1),e._v(" "),e.total?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var i=a("VU/8")(o,c,!1,function(e){a("OhvK")},null,null);t.default=i.exports},OhvK:function(e,t){},opHf:function(e,t){}});
//# sourceMappingURL=20.dcb3658964b5e13967bb.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,r,t){for(var d,o,b,i=0,u=[];i<f.length;i++)o=f[i],a[o]&&u.push(a[o][0]),a[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(f,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var f={},a={44:0};function n(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,n){c=a[e]=[f,n]});c[2]=f;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"589895e663cf279b4342",1:"26fc7c6e9b4ccca95f46",2:"61d9790344919baf48c5",3:"e63245626670017de933",4:"f4f0501dbe3155ce00e2",5:"83326270dfef0233c90a",6:"1d7830b4d55d08cb5ead",7:"fbeb3db819eec7392fd8",8:"1f9cc69f1d1455b4395a",9:"3466da9dc5776679b270",10:"7208d93b0fb81a57a978",11:"a637d7388af1e84b5565",12:"ff8b949463a1e4281bc8",13:"01693b96cf028e56cf1a",14:"6041281e059c0a18aff9",15:"9c4eb83d3a7630e2becd",16:"b0d2cc6fca689f99e4e2",17:"1c3793ca54eeb21da7c0",18:"9247370e2d3b5ea2195b",19:"7f1c8393b3bfef00b45d",20:"a67936fc14930635fda5",21:"52f0406512b49c4c4921",22:"39f5e1d81ccacdc34ac8",23:"9f05cfc644dbcf58019a",24:"f87968cd1809bd537de5",25:"41900b7b606ec81d1b49",26:"30beb66a68cf4670017a",27:"94b3fc65a52004cfda55",28:"ce30294345c96cf957b1",29:"3d2f67e201fb157fb15d",30:"a9e98de26f049b159f2b",31:"5cf0182fc424e8606c89",32:"e0dcc7cfee4fd78f294f",33:"74ac82b84ddd0a61f0c5",34:"d29c59b220221af0352b",35:"3a1287481845f3ab0f96",36:"6ec2d4074c84f920def4",37:"a0f44cfd120df62011c9",38:"bffc9417838d0b109405",39:"7eee96327266740f3019",40:"6ff12ea562cf0ae0f1ea",43:"13848f214bb993c20004"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.15b36d93c1194e40471e.js.map
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,r,t){for(var b,o,d,i=0,u=[];i<f.length;i++)o=f[i],a[o]&&u.push(a[o][0]),a[o]=0;for(b in r)Object.prototype.hasOwnProperty.call(r,b)&&(e[b]=r[b]);for(c&&c(f,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)d=n(n.s=t[i]);return d};var f={},a={44:0};function n(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,n){c=a[e]=[f,n]});c[2]=f;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"589895e663cf279b4342",1:"26fc7c6e9b4ccca95f46",2:"61d9790344919baf48c5",3:"098b660652f8f8ab930d",4:"a1c58a057960ff0a3b0c",5:"83326270dfef0233c90a",6:"1d7830b4d55d08cb5ead",7:"fbeb3db819eec7392fd8",8:"1f9cc69f1d1455b4395a",9:"3466da9dc5776679b270",10:"7208d93b0fb81a57a978",11:"a637d7388af1e84b5565",12:"ff8b949463a1e4281bc8",13:"01693b96cf028e56cf1a",14:"6041281e059c0a18aff9",15:"9c4eb83d3a7630e2becd",16:"b0d2cc6fca689f99e4e2",17:"1c3793ca54eeb21da7c0",18:"e91fc37ab664cecdb432",19:"39879d07beb4c6b71c52",20:"dcb3658964b5e13967bb",21:"52f0406512b49c4c4921",22:"39f5e1d81ccacdc34ac8",23:"9f05cfc644dbcf58019a",24:"f87968cd1809bd537de5",25:"41900b7b606ec81d1b49",26:"30beb66a68cf4670017a",27:"94b3fc65a52004cfda55",28:"ce30294345c96cf957b1",29:"3d2f67e201fb157fb15d",30:"a9e98de26f049b159f2b",31:"5cf0182fc424e8606c89",32:"e0dcc7cfee4fd78f294f",33:"74ac82b84ddd0a61f0c5",34:"d29c59b220221af0352b",35:"3a1287481845f3ab0f96",36:"6ec2d4074c84f920def4",37:"a0f44cfd120df62011c9",38:"bffc9417838d0b109405",39:"7eee96327266740f3019",40:"6ff12ea562cf0ae0f1ea",43:"13848f214bb993c20004"}[e]+".js";var b=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(b);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),f},n.m=e,n.c=f,n.d=function(e,c,f){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.4717f4770d7bf3c184ec.js.map
\ No newline at end of file
......@@ -256,6 +256,11 @@ export default {
opacity: 0.8;
}
}
.el-tree-node__children {
.iconfont {
opacity: 0.6;
}
}
}
}
}
......
......@@ -40,13 +40,13 @@
</template>
<template slot-scope="scope">
<ul>
<li v-for="clerk in scope.row.clerks" :key="clerk.employeeClerkId" class="clerk-obj-li">
<li v-for="(clerk,index) in scope.row.clerks" :key="clerk.employeeClerkId" class="clerk-obj-li">
<div class="clerk-name clerk-cell">
<el-radio :value="1" :label="clerk.isManager" @change="changeManager(scope.row, clerk)">{{clerk.name}}</el-radio>
<span class="manager" v-if="clerk.isManager == 1">店长</span>
</div>
<div class="clerk-cell clerk-phone">{{clerk.phoneNumber}}</div>
<div class="clerk-cell clerk-position">{{clerk.positionName}}</div>
<div class="clerk-cell clerk-position">{{clerk.positionName || '--'}}</div>
<div class="clerk-cell clerk-status">
<div class="status-icon" :class="clerk.status == 1 ? 'is-active' : ''">
<i class="iconfont icon-shouji"></i>
......@@ -54,7 +54,20 @@
</div>
<div class="clerk-cell clerk-handle">
<a class="a-href m-r-20" :href="'#/addClerk?storeId='+scope.row.storeId + '&clerkId=' + clerk.employeeClerkId">编辑</a>
<a class="a-href" @click="delClerk(clerk, scope.row)">删除</a>
<!-- <a class="a-href" @click="delClerk(clerk, scope.row)">删除</a> -->
<el-popover
placement="top"
width="160"
v-model="clerk.popVisible">
<p style="line-height: 1.5; padding: 10px 10px 20px;">确认删除吗?</p>
<div style="text-align: right; margin: 0">
<el-button size="mini" type="text" @click="cancelDelTag(index,clerk,scope.row)">取消</el-button>
<el-button type="primary" size="mini" @click="toDelTag(index,clerk,scope.row)">确定</el-button>
</div>
<el-button slot="reference" class="p-l-10" type="text" >
删除
</el-button>
</el-popover>
</div>
</li>
</ul>
......@@ -128,12 +141,14 @@ export default {
});
});
},
/**
* 根据状态筛选店铺
*/
selectByStatus(val) {
this.$emit("selectByStatus", val);
},
/**
* 根据店铺类型筛选店铺
*/
......@@ -144,46 +159,75 @@ export default {
}
this.$emit("selectByType", storeType);
},
/**
* 删除店员
*/
delClerk(clerk, store) {
console.log(clerk, clerk.employeeClerkId, store);
let _this = this;
_this.$confirm("是否要删除该员工?", "提示", {
// console.log(clerk, clerk.employeeClerkId, store);
let that = this;
that.$confirm("是否要删除该员工?", "提示", {
type: "warning"
}).then(() => {
let params = {
ids: clerk.employeeClerkId
}
getRequest("/haoban-manage-web/emp/del", params)
.then(res => {
console.log(res);
if (res.data.errorCode == 1) {
store.clerks.forEach(ele => {
if (ele.employeeClerkId == clerk.employeeClerkId) {
store.clerks.splice(store.clerks.indexOf(ele), 1);
}
});
_this.$message.success({
duration: 1000,
message: "操作成功"
});
} else {
_this.$message.error({
duration: 1000,
message: res.data.message
});
that.postDel(params,store,clerk);
});
},
/**
* 删除 -- api
*/
postDel(params,store,clerk) {
const that = this;
getRequest("/haoban-manage-web/emp/del", params)
.then(res => {
if (res.data.errorCode == 1) {
store.clerks.forEach(ele => {
if (ele.employeeClerkId == clerk.employeeClerkId) {
store.clerks.splice(store.clerks.indexOf(ele), 1);
}
})
.catch(e => {
_this.$message.error({
duration: 1000,
message: e.message
});
});
that.$message.success({
duration: 1000,
message: "操作成功"
});
} else {
that.$message.error({
duration: 1000,
message: res.data.message
});
}
})
.catch(e => {
that.$message.error({
duration: 1000,
message: e.message
});
});
}
},
/**
* 删除 -- 取消
*/
cancelDelTag(index,row,item) {
const that = this;
row.popVisible = false;
},
/**
* 删除 -- 确定
*/
toDelTag(index,row,item) {
const that = this;
let ids = "";
ids = row.employeeClerkId;
let params = {
ids
};
that.postDel(params,item,row);
},
}
};
......
......@@ -5,7 +5,7 @@
<el-button type="primary">添加门店</el-button>
</a>
<a :href="'#/storeIo?importCode=store&departmentId='+departmentId+'&showChildMember='+showChildMember*1+'&brandId='+brandId"><el-button>批量导入/导出</el-button></a>
<el-button type="danger" plain @click="delStores" :disabled="disabledDel">批量删除</el-button>
<el-button type="danger" @click="delStores" :disabled="disabledDel">批量删除</el-button>
<el-button class="J_show-children" size="small">
<el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox><a class="a-href"></a>
</el-button>
......@@ -23,12 +23,29 @@
{{typeArr[scope.row.storeType * 1 + 1]}}
</template>
</el-table-column>
<el-table-column label="地区" prop="areaChainName" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="地区" prop="areaChainName" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.areaChainName || '--'}}
</template>
</el-table-column>
<el-table-column label="所属分组" prop="departmentName" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="操作" width="120">
<template slot-scope="scope">
<a class="a-href m-r-20" :href="'#/storeInfo?storeId='+scope.row.storeId">编辑</a>
<a class="a-href" @click="delStores(scope.row, true)">删除</a>
<!-- <a class="a-href" @click="delStores(scope.row, true)">删除</a> -->
<el-popover
placement="top"
width="160"
v-model="scope.row.popVisible">
<p style="line-height: 1.5; padding: 10px 10px 20px;">确认删除吗?</p>
<div style="text-align: right; margin: 0">
<el-button size="mini" type="text" @click="cancelDelTag(scope.$index,scope.row)">取消</el-button>
<el-button type="primary" size="mini" @click="toDelTag(scope.$index,scope.row)">确定</el-button>
</div>
<el-button slot="reference" class="p-l-10" type="text" >
删除
</el-button>
</el-popover>
</template>
</el-table-column>
</el-table>
......@@ -86,37 +103,65 @@ export default {
let params = {
ids
};
getRequest("/haoban-manage-web/store/delByIds", params)
.then(res => {
console.log(res);
if (res.data.errorCode == 1) {
that.$message.success({
duration: 1000,
message: "操作成功"
});
that.$emit("getStoreList");
} else {
that.$message.error({
duration: 1000,
message: res.data.message
});
}
}).catch(e => {
that.$message.error({
duration: 1000,
message: e.message
});
})
that.postDel(params)
});
},
/**
* 删除 --- API
*/
postDel(params) {
const that = this;
getRequest("/haoban-manage-web/store/delByIds", params)
.then(res => {
if (res.data.errorCode == 1) {
that.$message.success({
duration: 1000,
message: "操作成功"
});
that.$emit("getStoreList");
} else {
that.$message.error({
duration: 1000,
message: res.data.message
});
}
}).catch(e => {
that.$message.error({
duration: 1000,
message: e.message
});
})
},
selectMember(selection) {
this.selectedList = selection;
},
// 是否显示子成员
setChildMemberShow() {
this.$emit("setChildMemberShow", this.showChildMember);
}
},
/**
* 删除 -- 取消
*/
cancelDelTag(index,row) {
const that = this;
row.popVisible = false;
},
/**
* 删除 -- 确定
*/
toDelTag(index,row) {
const that = this;
let ids = "";
ids = row.storeId;
let params = {
ids
};
that.postDel(params);
},
},
computed: {
disabledDel() {
......
......@@ -35,7 +35,7 @@
<el-button type="primary">添加成员</el-button>
</a>
<a :href="'#/employeeIo?importCode=employee&departmentId='+groupInfo.departmentId+'&showChildMember='+showChildMember*1"><el-button>批量导入/导出</el-button></a>
<el-button type="danger" plain @click="delMembers" :disabled="disabledDel">批量删除</el-button>
<el-button type="danger" @click="delMembers" :disabled="disabledDel">批量删除</el-button>
<el-button class="J_show-children">
<el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox>
</el-button>
......@@ -179,39 +179,47 @@ export default {
* 批量删除成员
*/
delMembers() {
let _this = this;
_this.$confirm("是否要删除选中的员工?", "提示", {
let that = this;
that.$confirm("是否要删除选中的员工?", "提示", {
type: "warning"
}).then(() => {
_this.loading = true;
that.loading = true;
let arr = [];
_this.selectedList.forEach(li => {
that.selectedList.forEach(li => {
arr.push(li.employeeClerkId);
});
if (!arr.length) {
that.$message({
message: '请选择员工',
type: 'warning'
});
that.loading = false;
return false;
}
let params = {
ids: arr.join(",")
}
getRequest("/haoban-manage-web/emp/del", params)
.then(res => {
if (res.data.errorCode == 1) {
let selected = _this.selectedList;
let originList = _this.employeeList;
let selected = that.selectedList;
let originList = that.employeeList;
let selSet = new Set(selected);
let originSet = new Set(originList);
_this.employeeList = selected.concat(originList).filter(v => !selSet.has(v) || !originSet.has(v)); // 两数组非交集部分即为剔除后剩下的数据
_this.$message.success({
that.employeeList = selected.concat(originList).filter(v => !selSet.has(v) || !originSet.has(v)); // 两数组非交集部分即为剔除后剩下的数据
that.$message.success({
message: res.data.message
});
} else {
_this.$message.error({
that.$message.error({
message: res.data.message
});
}
_this.loading = false;
that.loading = false;
})
.catch(e => {
_this.loading = false;
_this.$message.error({
that.loading = false;
that.$message.error({
message: e.message
});
});
......@@ -255,12 +263,12 @@ export default {
* 获取员工列表
*/
getEmployee() {
let _this = this;
let that = this;
let params = {
departmentId: _this.groupInfo.departmentId,
showChild: _this.showChildMember * 1,
pageSize: _this.pageSize,
pageNum: _this.currentPage,
departmentId: that.groupInfo.departmentId,
showChild: that.showChildMember * 1,
pageSize: that.pageSize,
pageNum: that.currentPage,
status: 1
};
getRequest("/haoban-manage-web/emp/findsimplepage", params)
......@@ -271,19 +279,19 @@ export default {
list = (!!res.data.result && !!res.data.result.list) ? res.data.result.list : [];
total = (!!res.data.result && !!res.data.result.total) ? res.data.result.total : 0;
}
_this.employeeList = list;
_this.total = total;
_this.loading = false;
that.employeeList = list;
that.total = total;
that.loading = false;
})
.catch(e => {
console.log(e, "error");
_this.loading = false;
that.loading = false;
});
}
},
computed: {
disabledDel() {
return this.selectedList.length < 1 && !this.setDisabledDel && this.groupInfo.hasPression != 1;
return !this.selectedList.length && !this.setDisabledDel && this.groupInfo.hasPression != 1;
}
}
};
......
......@@ -166,12 +166,12 @@ export default {
keyWord
};
getRequest("/haoban-manage-web/store/searchpage", params)
.then(res => {
this.searchResult = res.data.result || {};
})
.catch(e => {
console.log(e, "error");
});
.then(res => {
this.searchResult = res.data.result || {};
})
.catch(e => {
console.log(e, "error");
});
},
/**
* 树形搜索结果选人处理
......@@ -287,47 +287,52 @@ export default {
* 获取店铺列表
*/
getStoreList() {
let _this = this;
_this.loading = true;
let that = this;
that.loading = true;
let params = {
storeGroupId: _this.groupInfo.departmentId,
showChild: _this.showChildMember * 1,
showType: _this.tableView,
pageSize: _this.pageSize,
pageNum: _this.pageNumber,
status: _this.storeStatus,
storeType: _this.storeType
storeGroupId: that.groupInfo.departmentId,
showChild: that.showChildMember * 1,
showType: that.tableView,
pageSize: that.pageSize,
pageNum: that.pageNumber,
status: that.storeStatus,
storeType: that.storeType
};
getRequest("/haoban-manage-web/store/findSimplePage", params)
.then(res => {
if (res.data.errorCode == 1) {
if (params.status == 4) { // 获取回收站列表数据
_this.recycleList = res.data.result.list || [];
_this.storeStatus = "";
_this.loading = false;
that.recycleList = res.data.result.list || [];
that.storeStatus = "";
that.loading = false;
} else {
_this.total = res.data.result.total;
_this.storeList = res.data.result.list || [];
_this.loading = false;
_this.$message.success({
duration: 1000,
message: '操作成功!'
});
_this.storeStatus = 4;
_this.getStoreList();
that.total = res.data.result.total;
// 增加删除 popover 参数
res.data.result.list.forEach(function(ele,index){
ele.popVisible = false;
if(!!ele.clerks && !!ele.clerks.length) {
ele.clerks.forEach(function(el,key){
el.popVisible = false;
})
}
})
that.storeList = res.data.result.list || [];
that.loading = false;
that.storeStatus = 4;
that.getStoreList();
}
} else {
_this.loading = false;
_this.storeList = [];
_this.$message.error({
that.loading = false;
that.storeList = [];
that.$message.error({
duration: 1000,
message: res.data.message
});
}
})
.catch(e => {
_this.loading = false;
_this.$message.error({
that.loading = false;
that.$message.error({
duration: 1000,
message: e.message
});
......
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