Commit fe3a900d by fairyly

fix: 修改组织架构接口

parent 733f6674
......@@ -4,15 +4,15 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘
* @LastEditTime : 2020-02-19 10:02:14
* @LastEditTime : 2020-02-19 15:20:29
*/
module.exports = {
proxyList: {
'/haoban-manage-web/': {
target: 'https://www.gicdev.com/haoban-manage-web/',
'/haoban-manage3-web/': {
target: 'https://www.gicdev.com/haoban-manage3-web/',
changeOrigin: true,
pathRewrite: {
'^/haoban-manage-web': ''
'^/haoban-manage3-web': ''
}
},
'/haoban-app-customer-web/': {
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.b575699c568aaa3299ca88ceaabe9199.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.b6b90d0b9e175d1a5e3c.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.b557eaa9e1baaab6a576.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 rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.dbc9921fccdc5dd6e37f86923a5ea711.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.92572cf09fc2ce355255.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.7d1911e81801125a9883.js></script></body></html>
\ No newline at end of file
webpackJsonp([11],{K8Yn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("mvHQ"),o=a.n(n),r=a("PI0u"),i=a("P9l9"),l=a("Ch4/"),c=a("3E4D"),u={props:{applicationId:{type:String,default:function(){return""}}},data:function(){return{setVisible:!0,treeData:[],searchSelect:"",selectId:""}},computed:{},mounted:function(){this.getData()},methods:{handleClose:function(e){this.$refs.form.resetFields(),e(),this.$emit("closeSet")},cancel:function(){this.$refs.form.resetFields(),this.$emit("closeSet")},toInput:Object(r.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(o()(this.storesCopy)));var a=JSON.parse(o()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.treeData=a},500),clearSearch:function(){this.treeData=JSON.parse(o()(this.storesCopy))},handleNodeClick:function(e){console.log(e),this.selectId=e.id},getData:function(){var e=this;Object(i.a)("/haoban-manage-web/dept/deptList",{}).then(function(t){"0000"===t.data.code&&(e.treeData=t.data.result||[]),l.a.errorMsg(resData)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},submitForm:function(){var e=this;if(!e.selectId)return c.a.showmsg("请选择部门","warning"),!1;var t={departmentId:e.selectId};Object(i.b)("/haoban-manage3-web/department-repair",t).then(function(t){"0000"===t.data.code&&e.$emit("closeSet",e.selectId),l.a.errorMsg(resData)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"设置成员所在部门",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"296px"},attrs:{placeholder:"请输入内容"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"select-tree-wrap m-t-20"},[a("el-tree",{ref:"setTree",attrs:{data:e.treeData,"node-key":"groupId","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},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("span",{class:["font-14 p-r-10 iconfont",1==s.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==s.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(s.label))])])}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(e){a("ayVr")},"data-v-320f8f41",null).exports,h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"回收站",path:""}],options:[],searchInput:"",searchType:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1}},computed:{},methods:{toRecover:function(){this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(e){this.$router.push(e)},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={keyWord:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize};Object(i.a)("/haoban-app-member-web/customer/find_message_list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){var e=this.$route.query.appIcon;e&&(this.appIcon=window.unescape(e)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:s.a,setDepartment:d}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content-right"},[e._m(0),e._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:e.changeType},model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.options,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})}),1)],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[e._v(e._s(t.row.departmentName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeCode||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.toRecover(t.$index,t.row)}}},[e._v("恢复")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"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(" "),e.setVisible?a("set-department",{on:{closeSet:e.closeSet}}):e._e()],1),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"overstore-tip"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),t("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var g=a("VU/8")(h,f,!1,function(e){a("e3op")},"data-v-0f3a7ce5",null);t.default=g.exports},ayVr:function(e,t){},e3op:function(e,t){}});
\ No newline at end of file
webpackJsonp([11],{K8Yn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("mvHQ"),o=a.n(n),i=a("PI0u"),r=a("P9l9"),l=a("Ch4/"),c=a("3E4D"),u={props:{applicationId:{type:String,default:function(){return""}}},data:function(){return{setVisible:!0,treeData:[],searchSelect:"",selectId:""}},computed:{},mounted:function(){this.getData()},methods:{handleClose:function(e){this.$refs.form.resetFields(),e(),this.$emit("closeSet")},cancel:function(){this.$refs.form.resetFields(),this.$emit("closeSet")},toInput:Object(i.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(o()(this.storesCopy)));var a=JSON.parse(o()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.treeData=a},500),clearSearch:function(){this.treeData=JSON.parse(o()(this.storesCopy))},handleNodeClick:function(e){console.log(e),this.selectId=e.id},getData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptList",{}).then(function(t){"0000"===t.data.code&&(e.treeData=t.data.result||[]),l.a.errorMsg(resData)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},submitForm:function(){var e=this;if(!e.selectId)return c.a.showmsg("请选择部门","warning"),!1;var t={departmentId:e.selectId};Object(r.b)("/haoban-web/department-repair",t).then(function(t){"0000"===t.data.code&&e.$emit("closeSet",e.selectId),l.a.errorMsg(resData)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},components:{}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"设置成员所在部门",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"296px"},attrs:{placeholder:"请输入内容"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"select-tree-wrap m-t-20"},[a("el-tree",{ref:"setTree",attrs:{data:e.treeData,"node-key":"groupId","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},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("span",{class:["font-14 p-r-10 iconfont",1==s.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==s.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(s.label))])])}}])})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(e){a("Wa/F")},"data-v-84fecc2c",null).exports,h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"回收站",path:""}],options:[],searchInput:"",searchType:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1}},computed:{},methods:{toRecover:function(){this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(e){this.$router.push(e)},toInput:Object(i.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={keyWord:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize};Object(r.a)("/haoban-app-member-web/customer/find_message_list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){var e=this.$route.query.appIcon;e&&(this.appIcon=window.unescape(e)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:s.a,setDepartment:d}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content-right"},[e._m(0),e._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:e.changeType},model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},e._l(e.options,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})}),1)],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[e._v(e._s(t.row.departmentName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeCode||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.toRecover(t.$index,t.row)}}},[e._v("恢复")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"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(" "),e.setVisible?a("set-department",{on:{closeSet:e.closeSet}}):e._e()],1),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"overstore-tip"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),t("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var g=a("VU/8")(h,f,!1,function(e){a("e3op")},"data-v-0f3a7ce5",null);t.default=g.exports},"Wa/F":function(e,t){},e3op:function(e,t){}});
\ No newline at end of file
webpackJsonp([14],{Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),r=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={wxEnterpriseRelatedId:e.brandId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(r.b)(n,a).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={wxEnterpriseRelatedId:t};Object(r.b)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("quv1")},"data-v-7f259169",null);e.default=c.exports},quv1:function(t,e){}});
\ No newline at end of file
webpackJsonp([12],{Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),r=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={wxEnterpriseRelatedId:e.brandId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(r.b)(n,a).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={wxEnterpriseRelatedId:t};Object(r.b)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("quv1")},"data-v-7f259169",null);e.default=c.exports},quv1:function(t,e){}});
\ No newline at end of file
webpackJsonp([12],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),o=a.n(s),i=a("NKg7"),n=a("P9l9"),r=a("Ch4/"),c={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",purchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"我的顾客",versionName:"基础版",date:(new Date).getTime(),describe:"应用描述应用描述应用描述应用描述应用描述"}],noPurchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"测试应用",describe:"应用描述应用描述应用描述应用描述应用描述"}],versionData:{id:1,name:"基础版",date:(new Date).getTime(),storeNum:100,storeAllNum:150},helpList:[{id:1,name:"测试帮助中心"}]}},methods:{changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){this.changeRoute(""+t.path)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(n.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",o()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={type:t};Object(n.a)("/haoban-web/application-list",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):e.dataOverview=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueOfficeHeader:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",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-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已订购的应用")]),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,s){return a("li",{key:s+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-version font-12 color-909399"},[t._v(t._s(e.versionName))]),t._v(" "),a("div",{staticClass:"app-date font-12 color-909399"},[t._v(t._s(t._f("timeStampToYmd")(e.date)))])])])])])}),0)]),t._v(" "),a("div",{staticClass:"index-body-left_bottom border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("未订购的应用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,s){return a("li",{key:s+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-describe font-12 color-909399"},[t._v(t._s(e.describe))])])])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.name))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("到期时间")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t._f("timeStampToYmd")(t.versionData.date)))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("门店容量")]),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeAllNum)+"/"+t._s(t.versionData.storeNum))]),t.versionData.storeAllNum>t.versionData.storeNum?a("span",{staticClass:" cursor-pointer font-12 p-l-10 color-f5222d",on:{click:t.toOverStore}},[t._v("("+t._s(t.versionData.storeAllNum-t.versionData.storeNum)+"家门店溢出)")]):t._e()]),t._v(" "),a("div",{staticClass:"serve-btn text-center m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goShopping}},[t._v("前往订购")])],1)])]),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box m-t-10"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list"},t._l(t.helpList,function(e,s){return a("li",{key:s+"help",staticClass:"font-14 color-606266"},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])])])]),t._v(" "),a("vue-gic-footer")],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,l,!1,function(t){a("Qld8")},"data-v-9c1bc86a",null);e.default=p.exports},Qld8:function(t,e){}});
\ No newline at end of file
webpackJsonp([13],{vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.a)("/haoban-manage3-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("wPOC")},"data-v-4d4471f2",null);e.default=c.exports},wPOC:function(t,e){}});
\ No newline at end of file
webpackJsonp([13],{"Cy+y":function(t,e){},vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.a)("/haoban-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("Cy+y")},"data-v-82648e34",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([16],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("kMRx")},"data-v-45a71088",null);e.default=o.exports},kMRx:function(t,e){}});
\ No newline at end of file
webpackJsonp([15],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("kMRx")},"data-v-45a71088",null);e.default=o.exports},kMRx:function(t,e){}});
\ No newline at end of file
webpackJsonp([17],{BgBI:function(t,e){},Y55K:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("BgBI")},"data-v-30d200c5",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([16],{BgBI:function(t,e){},Y55K:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("BgBI")},"data-v-30d200c5",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([17],{"4hLM":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),o=a.n(s),i=a("NKg7"),n=a("P9l9"),r=a("Ch4/"),c={name:"index",data:function(){return{projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",purchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"我的顾客",versionName:"基础版",date:(new Date).getTime(),describe:"应用描述应用描述应用描述应用描述应用描述"}],noPurchaseApp:[{applicationId:1,applicationUrl:"https://hope.demogic.com/mobile-haoban-file/images/appicon/workbench/customer_center.png",applicationName:"测试应用",describe:"应用描述应用描述应用描述应用描述应用描述"}],versionData:{id:1,name:"基础版",date:(new Date).getTime(),storeNum:100,storeAllNum:150},helpList:[{id:1,name:"测试帮助中心"}]}},methods:{changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){this.changeRoute(""+t.path)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getEnterpriseData:function(){var t=this;Object(n.a)("/haoban-manage-web/home/find-enterprise-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.balance=Number(a.result.balance).toFixed(2),0==a.result.yesterdayUseNumber&&(a.result.yesterdayUseNumber=String(a.result.yesterdayUseNumber)),t.companyObj=a.result,void t.$nextTick(function(){t.getUserData()});r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;Object(n.a)("/haoban-manage-web/emp/get-user-info",{}).then(function(e){var a=e.data;if(1==a.errorCode)return localStorage.setItem("userInfo",o()(a.result)),void t.$nextTick(function(){t.$refs.headerMenu.getHeaderMenu()});t.$message.error({duration:1e3,message:a.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={type:t};Object(n.a)("/haoban-manage3-web/application-list",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):e.dataOverview=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-204+"px"},components:{vueOfficeHeader:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",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-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已订购的应用")]),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,s){return a("li",{key:s+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-version font-12 color-909399"},[t._v(t._s(e.versionName))]),t._v(" "),a("div",{staticClass:"app-date font-12 color-909399"},[t._v(t._s(t._f("timeStampToYmd")(e.date)))])])])])])}),0)]),t._v(" "),a("div",{staticClass:"index-body-left_bottom border-box"},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("未订购的应用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,s){return a("li",{key:s+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info"},[a("div",{staticClass:"app-describe font-12 color-909399"},[t._v(t._s(e.describe))])])])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.name))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("到期时间")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t._f("timeStampToYmd")(t.versionData.date)))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("门店容量")]),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeAllNum)+"/"+t._s(t.versionData.storeNum))]),t.versionData.storeAllNum>t.versionData.storeNum?a("span",{staticClass:" cursor-pointer font-12 p-l-10 color-f5222d",on:{click:t.toOverStore}},[t._v("("+t._s(t.versionData.storeAllNum-t.versionData.storeNum)+"家门店溢出)")]):t._e()]),t._v(" "),a("div",{staticClass:"serve-btn text-center m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.goShopping}},[t._v("前往订购")])],1)])]),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box m-t-10"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list"},t._l(t.helpList,function(e,s){return a("li",{key:s+"help",staticClass:"font-14 color-606266"},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])])])]),t._v(" "),a("vue-gic-footer")],1)],1)},staticRenderFns:[]};var p=a("VU/8")(c,l,!1,function(t){a("4hLM")},"data-v-0e599eb6",null);e.default=p.exports}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var d,f,i,u=0,b=[];u<r.length;u++)f=r[u],t[f]&&b.push(t[f][0]),t[f]=0;for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&(e[d]=a[d]);for(n&&n(r,a,c);b.length;)b.shift()();if(c)for(u=0;u<c.length;u++)i=o(o.s=c[u]);return i};var r={},t={21:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"1a2514d3c933b2ce2263",1:"9a1776fdc262362d75b8",2:"18e57cb3150b8dd900d4",3:"d8e37aeae6d56520acad",4:"8744c290d4aba887e920",5:"76530a9ca8a8b1285221",6:"689a47e3c9b781d2fb24",7:"e0cce9483623d0364430",8:"8e77474758fd36663e34",9:"1e29ef199801738ed9ad",10:"de993e1c4bc498c9dbd6",11:"a8374649133a25199e44",12:"088b07815fe670e643cc",13:"610798bb673465353c40",14:"beb077e8e2edcbffb6a8",15:"b2964c8a20328a2a5e5f",16:"188fa59e318626239ae8",17:"213863e51a31745d52c8",18:"b918fbf8403d96eac90a"}[e]+".js";var d=setTimeout(f,12e4);function f(){c.onerror=c.onload=null,clearTimeout(d);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=f,a.appendChild(c),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var d,f,i,u=0,b=[];u<r.length;u++)f=r[u],t[f]&&b.push(t[f][0]),t[f]=0;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(e[d]=c[d]);for(n&&n(r,c,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=o(o.s=a[u]);return i};var r={},t={21:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"035ea7021e33c0dd73b9",1:"9a1776fdc262362d75b8",2:"68622a9ed4986b2b8923",3:"dc51a05b01654b321fd7",4:"8744c290d4aba887e920",5:"9a4a9a4fd418a3bd945f",6:"689a47e3c9b781d2fb24",7:"e0cce9483623d0364430",8:"8e77474758fd36663e34",9:"1e29ef199801738ed9ad",10:"de993e1c4bc498c9dbd6",11:"fdcc4372b9269461ec37",12:"288e7cf25f3d193dec99",13:"62ea976ed1291d674248",14:"93303daad2316878ae43",15:"5793eefc741dbcd593bd",16:"ceb943561fcf2e88bc01",17:"30b2bb1593a5d6e55f0a",18:"b918fbf8403d96eac90a"}[e]+".js";var d=setTimeout(f,12e4);function f(){a.onerror=a.onload=null,clearTimeout(d);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=f,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -45,10 +45,10 @@ Vue.axios.interceptors.response.use(
if (window.location.href.indexOf('gic-error') != -1) {
return false;
}
window.location.href = local + '/haoban-web/#/login';
window.location.href = local + '/haoban-manage3-web/#/login';
}
if (data.data.errorCode == 10 || data.data.errorCode == 7) {
window.location.href = local + '/haoban-web/#/index';
window.location.href = local + '/haoban-manage3-web/#/index';
}
return data;
}
......@@ -57,13 +57,13 @@ Vue.axios.interceptors.response.use(
err => {
// Message.error({message: err.response.message});
if (err.response.status == 504 || err.response.status == 404) {
// window.location.href= local + "/haoban-web/#/login"
// window.location.href= local + "/haoban-manage3-web/#/login"
// Message.error({message: '服务异常⊙﹏⊙∥'});
} else if (err.response.status == 403) {
// window.location.href= local + "/haoban-web/#/login"
// window.location.href= local + "/haoban-manage3-web/#/login"
// Message.error({message: '权限不足,请联系管理员!'});
} else {
// window.location.href= local + "/haoban-web/#/login"
// window.location.href= local + "/haoban-manage3-web/#/login"
// Message.error({message: '未知错误!'});
}
return Promise.resolve(err);
......
......@@ -18,11 +18,11 @@ export default {
} */
if (response.errorCode != 1) {
// if (response.errorCode == 4) {
// window.location.href = local + '/haoban-web/#/login';
// window.location.href = local + '/haoban-manage3-web/#/login';
// return false;
// }
if (response.errorCode == 10) {
window.location.href = local + '/haoban-web/#/index';
window.location.href = local + '/haoban-manage3-web/#/index';
return false;
}
Message.error({
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors : 无尘
* @LastEditTime : 2020-02-17 10:33:22
* @LastEditTime : 2020-02-19 16:38:38
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\add-enterprise.vue
-->
<!--
......@@ -15,7 +15,7 @@
<template>
<el-dialog width="600px" title="新增GIC商户授权" :visible.sync="memberVisible" append-to-body :before-close="handleClose">
<el-form :model="partForm" :rules="rules" ref="form" label-width="140px" class="dialog-form">
<el-form-item label="选择商户" prop="">
<el-form-item label="选择商户" prop="enterpriseName">
<el-autocomplete style="width: 363px;" v-model="partForm.enterpriseName" :fetch-suggestions="querySearchAsync" @select="handleSelect">
<el-select v-model="partForm.version" slot="prepend" class="w-95" :disabled="disflag" @change="changeCode">
<el-option v-for="(item, index) in versionList" :label="item.label" :value="item.value" :key="index + 'option'">{{ item.value }}</el-option>
......@@ -25,7 +25,7 @@
<el-form-item label="超级管理员">
{{ partForm.clerkName }}
</el-form-item>
<el-form-item label="超级管理员手机号" prop="sex"> {{ partForm.phoneNumber | formatPhoneNum }} <el-button type="primary" @click="sendCode()">点击短信验证</el-button> </el-form-item>
<el-form-item label="超级管理员手机号" prop="sex"> {{ partForm.phoneNumber | formatPhoneNum }} <el-button :disabled="!partForm.phoneNumber ? true : false" type="primary" @click="sendCode()">点击短信验证</el-button> </el-form-item>
<el-form-item label="短信验证码" prop="code">
<el-input style="width: 180px;" v-model="partForm.code" placeholder="请输入验证码"></el-input>
</el-form-item>
......@@ -43,7 +43,7 @@ import selectDepartment from '@/components/company/select-department.vue';
import { getRequest, postRequest } from '@/api/api';
import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg';
import PhoneNumber from 'awesome-phonenumber';
// import PhoneNumber from 'awesome-phonenumber';
export default {
name: 'add-enterprise',
components: {
......@@ -60,19 +60,6 @@ export default {
}
},
data() {
let checkPhone = (rule, value, callback) => {
if (value === '') {
callback(new Error('请输入手机号'));
} else {
let pn = new PhoneNumber('+' + this.partForm.nationCode + value);
if (!pn.isValid() || !pn.isMobile()) {
callback(new Error('手机号格式不正确'));
} else {
callback();
}
}
};
return {
versionList: [
{
......@@ -93,26 +80,19 @@ export default {
code: ''
},
rules: {
staffName: [
enterpriseName: [
{
required: true,
message: '请输入姓名',
message: '请选择商户',
trigger: 'blur'
}
],
phoneNumber: [
{
required: true,
validator: checkPhone,
trigger: 'change'
}
],
department: [
code: [
{
type: 'array',
required: true,
message: '请选择部门',
trigger: 'change'
message: '请输入验证码',
trigger: 'blur'
}
]
}
......@@ -129,7 +109,7 @@ export default {
nationCode: that.partForm.nationCode,
type: ''
};
getRequest('/haoban-web/send-code', params)
getRequest('/haoban-manage3-web/send-code', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -160,7 +140,7 @@ export default {
};
return new Promise((resolve, reject) => {
getRequest('/haoban-web/validate-code', params)
getRequest('/haoban-manage3-web/validate-code', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -182,17 +162,18 @@ export default {
/**
* 搜索查询列表
*/
getSearchList() {
getSearchList(queryString) {
const that = this;
let params = {
enterpriseName: queryString,
version: that.partForm.version
};
return new Promise((resolve, reject) => {
getRequest('/haoban-web/staff-add', params)
getRequest('/haoban-manage3-web/enterprise-search', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
resolve(resData.result);
resolve(resData.result || []);
return false;
}
errMsg.errorMsg(resData);
......@@ -212,7 +193,7 @@ export default {
*/
async querySearchAsync(queryString, cb) {
const that = this;
const res = await that.getSearchList();
const res = await that.getSearchList(queryString);
cb(res);
},
handleSelect(item) {
......@@ -255,12 +236,13 @@ export default {
*/
async submitForm(form) {
const that = this;
that.$refs[form].validate(async valid => {
if (valid) {
const flag = await that.checkCode();
if (!flag) {
return false;
}
that.$refs[form].validate(valid => {
if (valid) {
that.toAddPost();
} else {
return false;
......@@ -270,14 +252,11 @@ export default {
toAddPost() {
const that = this;
let params = {
staffId: that.partForm.staffId,
staffName: that.partForm.staffName,
nickName: that.partForm.nickName,
sex: that.partForm.sex,
nationCode: that.partForm.nationCode,
phoneNumber: that.partForm.phoneNumber
enterpriseId: that.partForm.enterpriseId,
wxEnterpriseId: '',
version: that.partForm.version
};
postRequest(that.partForm.staffId ? '/haoban-web/staff-edit' : '/haoban-web/staff-add', params)
postRequest('/haoban-manage3-web/wx-enterprise-bind', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -301,7 +280,7 @@ export default {
let params = {
staffId: that.partForm.staffId
};
getRequest('/haoban-web/staff-add', params)
getRequest('/haoban-manage3-web/staff-add', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -321,7 +300,6 @@ export default {
watch: {}
/* mounted() {
const that = this;
} */
};
</script>
......
......@@ -196,7 +196,7 @@ export default {
activeFlag: that.partForm.activeFlag,
syncPostionFlag: that.partForm.syncPostionFlag
};
postRequest(that.partForm.staffId ? '/haoban-web/staff-edit' : '/haoban-web/staff-add', params)
postRequest(that.partForm.staffId ? '/haoban-manage3-web/staff-edit' : '/haoban-manage3-web/staff-add', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -220,7 +220,7 @@ export default {
let params = {
staffId: that.partForm.staffId
};
getRequest('/haoban-web/staff-add', params)
getRequest('/haoban-manage3-web/staff-add', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 14:02:22
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 17:26:24
* @LastEditTime : 2020-02-19 15:34:38
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\depart-list.vue
-->
<!--
......@@ -200,7 +200,7 @@ export default {
parentId: that.departObj.departmentId,
departmentName: that.form.departmentName
};
postRequest('/haoban-web/department-add', params)
postRequest('/haoban-manage3-web/department-add', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -248,7 +248,7 @@ export default {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-web/department-list', para)
getRequest('/haoban-manage3-web/department-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -147,7 +147,7 @@ export default {
let params = {
currDepartmentIds: ''
};
postRequest('/haoban-web/staff-batch-edit-department', params)
postRequest('/haoban-manage3-web/staff-batch-edit-department', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -185,7 +185,7 @@ export default {
let params = {
staffIds: item ? item.staffId : that.multipleSelection.map(ele => ele.staffId).join(',')
};
postRequest('/haoban-web/staff-invite', params)
postRequest('/haoban-manage3-web/staff-invite', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -220,7 +220,7 @@ export default {
let params = {
staffDepartmentRelatedIds: ''
};
postRequest('/haoban-web/staff-batch-del', params)
postRequest('/haoban-manage3-web/staff-batch-del', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -296,7 +296,7 @@ export default {
parentId: that.departObj.departmentId,
departmentName: that.form.departmentName
};
postRequest('/haoban-web/department-add', params)
postRequest('/haoban-manage3-web/department-add', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -355,7 +355,7 @@ export default {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-web/staff-list', para)
getRequest('/haoban-manage3-web/staff-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -151,7 +151,7 @@ export default {
isStore: '',
keyword: ''
};
getRequest('/haoban-web/department-list', para)
getRequest('/haoban-manage3-web/department-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -32,20 +32,15 @@
</template>
<script>
/* eslint-disable */
import {
_debounce
} from '@/common/js/public';
import {
getRequest,
postRequest
} from '@/api/api';
import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg';
export default {
import { _debounce } from '@/common/js/public';
import { getRequest, postRequest } from '@/api/api';
import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg';
export default {
props: {
applicationId: {
type: String,
default () {
default() {
return '';
}
}
......@@ -142,7 +137,7 @@
let params = {
departmentId: that.selectId
};
postRequest('/haoban-web/department-repair', params)
postRequest('/haoban-manage3-web/department-repair', params)
.then(res => {
if (res.data.code === '0000') {
that.$emit('closeSet', that.selectId);
......@@ -158,63 +153,63 @@
}
},
components: {}
};
};
</script>
<style scoped>
.m-t-5 {
.m-t-5 {
margin-top: 5px;
}
}
.dialog-top {
.dialog-top {
margin-bottom: 20px;
}
}
.dialog-top img {
.dialog-top img {
width: 40px;
height: 40px;
border: 1px solid #e4e7ed;
border-radius: 50%;
vertical-align: middle;
margin-right: 10px;
}
}
.dialog-top span {
.dialog-top span {
font-size: 14px;
font-weight: 600;
color: #303133;
}
}
.select-info {
.select-info {
display: inline-block;
vertical-align: middle;
}
}
.dialog-operate {
.dialog-operate {
display: flex;
align-items: center;
justify-content: space-between;
}
}
.pagination-content {
.pagination-content {
text-align: right;
}
}
.dialog-form {
.dialog-form {
width: 430px;
padding-top: 20px;
}
}
.w-215 {
.w-215 {
width: 215px;
}
}
.w-115 {
.w-115 {
width: 115px;
}
}
.select-tree-wrap {
.select-tree-wrap {
height: 445px;
overflow-y: auto;
border: 1px solid #e4e7ed;
}
}
</style>
......@@ -148,7 +148,7 @@ export default {
let params = {
clerkId: obj.clerkId
};
postRequest('/haoban-web/staff-bind', params)
postRequest('/haoban-manage3-web/staff-bind', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -174,7 +174,7 @@ export default {
let params = {
departmentId: item.departmentId
};
getRequest('/haoban-web/staff-no-bind-list', params)
getRequest('/haoban-manage3-web/staff-no-bind-list', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -220,7 +220,7 @@ export default {
let params = {
currDepartmentIds: ''
};
postRequest('/haoban-web/staff-batch-edit-department', params)
postRequest('/haoban-manage3-web/staff-batch-edit-department', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -255,7 +255,7 @@ export default {
let params = {
staffIds: ''
};
postRequest('/haoban-web/staff-invite', params)
postRequest('/haoban-manage3-web/staff-invite', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -290,7 +290,7 @@ export default {
let params = {
staffDepartmentRelatedIds: ''
};
postRequest('/haoban-web/staff-batch-del', params)
postRequest('/haoban-manage3-web/staff-batch-del', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -367,7 +367,7 @@ export default {
parentId: that.departObj.departmentId,
departmentName: that.form.departmentName
};
postRequest('/haoban-web/department-add', params)
postRequest('/haoban-manage3-web/department-add', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -422,7 +422,7 @@ export default {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-web/department-list', para)
getRequest('/haoban-manage3-web/department-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -146,7 +146,7 @@ export default {
departmentId: item.departmentId
};
return new Promise((resolve, reject) => {
postRequest('/haoban-web/department-del', params)
postRequest('/haoban-manage3-web/department-del', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -128,7 +128,7 @@ export default {
type: 'success'
});
// 跳转登录页
window.location.href = window.location.origin + '/haoban-web/#/login';
window.location.href = window.location.origin + '/haoban-manage3-web/#/login';
return;
}
that.$message.error({
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 10:59:56
* @LastEditTime : 2020-02-19 15:30:47
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -17,7 +17,7 @@
<div class="content-gic flex">
<div class="gic-content-business">
<ul>
<li v-for="(item, index) in enterpriseData" :key="index + 'li'" @click="selectEnterprise(item)">
<li class="cursor-pointer" v-for="(item, index) in enterpriseData" :key="index + 'li'" @click="selectEnterprise(item)">
<div class="ul-li-cell flex">
<div class="cell-img">
<img :src="item.enterpriseLogo" alt="img" />
......@@ -89,34 +89,26 @@ export default {
path: ''
}
],
enterpriseData: [
{
enterpriseName: '11111111111',
version: '3.0',
nodeCount: 111
}
],
enterpriseData: [],
gicData: [],
wxData: [
{
id: 2,
level: 1,
expand: false,
isStore: 0,
label: '总部2',
bindFlag: 0,
children: [
{
id: 22,
level: 2,
expand: false,
isStore: 1,
label: '总部2',
bindFlag: 1,
children: []
}
]
}
//{
// id: 2,
// level: 1,
// expand: false,
// isStore: 0,
// label: '总部2',
// bindFlag: 0,
// children: [{
// id: 22,
// level: 2,
// expand: false,
// isStore: 1,
// label: '总部2',
// bindFlag: 1,
// children: []
// }]
// }
],
addShow: false
};
......@@ -133,7 +125,7 @@ export default {
postSaveData() {
const that = this;
let para = {};
postRequest('/haoban-web/wx-enterprise-bind', para)
postRequest('/haoban-manage3-web/wx-enterprise-bind', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -164,7 +156,7 @@ export default {
wxEnterpriseId: item.wxEnterpriseId, //
version: item.version
};
getRequest('/haoban-web/wx-enterprise-bind', para)
getRequest('/haoban-manage3-web/wx-enterprise-bind', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -188,7 +180,7 @@ export default {
wxEnterpriseId: item.wxEnterpriseId, //
version: item.version
};
getRequest('/haoban-web/wx-enterprise-bind', para)
getRequest('/haoban-manage3-web/wx-enterprise-bind', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -239,17 +231,12 @@ export default {
*/
getTableList(val) {
const that = this;
let para = {
keyWord: that.searchInput || '', // 搜索字段
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-app-member-web/customer/find_message_list', para)
let para = {};
getRequest('/haoban-manage3-web/wx-enterprise-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.tableData = resData.result.list || [];
that.total = resData.result.total;
that.enterpriseData = resData.result || [];
return false;
}
errMsg.errorMsg(resData);
......@@ -273,11 +260,8 @@ export default {
}
},
mounted() {
let that = this;
let iconUrl = that.$route.query.appIcon;
if (iconUrl) {
that.appIcon = window.unescape(iconUrl);
}
const that = this;
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 15:39:49
* @LastEditTime : 2020-02-19 15:32:09
-->
<template>
<div id="index">
......@@ -275,7 +275,7 @@ export default {
let para = {
type: type // 1已购买2未购买
};
getRequest('/haoban-web/application-list', para)
getRequest('/haoban-manage3-web/application-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘
* @LastEditTime : 2020-02-18 15:16:21
* @LastEditTime : 2020-02-19 15:15:48
-->
<template>
<div class="login-wrap">
......@@ -167,7 +167,7 @@ export default {
enterpriseId: that.enterpriseId,
userId: that.userId
};
postRequest('/haoban-web/login', para)
postRequest('/haoban-manage3-web/login', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -201,7 +201,7 @@ export default {
let para = {
qrcode: that.qrcodeNum
};
postRequest('/haoban-web/login-check', para)
postRequest('/haoban-manage3-web/login-check', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......@@ -253,13 +253,13 @@ export default {
*/
getQrcode() {
const that = this;
postRequest('/haoban-web/get-login-qrcode', {})
postRequest('/haoban-manage3-web/get-login-qrcode', {})
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.qrcodeNum = resData.result;
that.qrcode(that.qrcodeNum);
that.checkScan();
// that.checkScan();
return;
}
errMsg.errorMsg(resData);
......@@ -280,8 +280,8 @@ export default {
}
},
mounted() {
// const that = this;
// that.getQrcode();
const that = this;
that.getQrcode();
if (!!localStorage.getItem('userInfo')) {
localStorage.removeItem('userInfo');
}
......
......@@ -129,7 +129,7 @@ export default {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-web/store-full-list', para)
getRequest('/haoban-manage3-web/store-full-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
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