Commit 06f40d47 by 无尘

fix: 修改接口字段

parent 1665982d
.navwrap[data-v-69bcb2f7]{padding:12px 20px}.boxbttom[data-v-69bcb2f7],.boxshow[data-v-69bcb2f7]{border-bottom:1px solid #e4e7ed}.boxshow[data-v-69bcb2f7]{-webkit-box-shadow:5px -1px 5px #dfdfdf;box-shadow:5px -1px 5px #dfdfdf}.navtitle[data-v-69bcb2f7]{margin:24px 0 0 0;font-size:20px;color:#303133;font-weight:500}.navtip[data-v-69bcb2f7]{width:100%;height:38px;line-height:38px;font-size:13px;border-radius:2px;color:#606266;background-color:#f4f4f5}.navmTop[data-v-69bcb2f7]{margin-top:25px}.navtipcolor[data-v-69bcb2f7]{margin:0 12px;color:#2f54eb}.el-breadcrumb__inner.is-link[data-v-69bcb2f7]:hover,.el-breadcrumb__inner a[data-v-69bcb2f7]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-69bcb2f7],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-69bcb2f7]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-69bcb2f7],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-69bcb2f7]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.auth-step-body[data-v-a7d9b548]{width:400px;margin:0 auto}.el-alert__title[data-v-c9f514f8]{line-height:23px}.color-f5222d[data-v-c9f514f8]{color:#f5222d}.auth-commit-success[data-v-50c222ef]{margin-top:154px}.auth-commit-success .color-49c958[data-v-50c222ef]{color:#49c958}.auth-commit-success .font-60[data-v-50c222ef]{font-size:60px}.auth-commit-success .m-t-12[data-v-50c222ef]{margin-top:12px}.auth-commit-success .m-t-28[data-v-50c222ef]{margin-top:28px}.input-line-cell[data-v-2859c084]{position:relative;display:inline-block}.w-340[data-v-2859c084]{width:340px}.w-340[data-v-2859c084] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-2859c084] .el-textarea__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1);resize:none;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}.el-textarea.is-disabled[data-v-2859c084]{opacity:.5}.el-input .is-disabled[data-v-2859c084] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-2859c084]{position:absolute;bottom:-5px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#909399}.auth-commit-admin[data-v-39260500]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-39260500]{color:#49c958}.auth-commit-admin .font-60[data-v-39260500]{font-size:60px}.auth-commit-admin .m-t-12[data-v-39260500]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-39260500]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-39260500]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-39260500]{width:198px}.bind-store-body[data-v-1beac852]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-1beac852]{width:215px}.bind-store-body .w-115[data-v-1beac852]{width:115px}.bind-store-body .select-tree-wrap[data-v-1beac852]{height:323px;overflow-y:auto}.daily-store-select[data-v-94a84606]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.select-tree-wrap[data-v-0a37b202]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.span-dot[data-v-415a99b5]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-415a99b5]{background:#52c41a}.span-dot.bg-f5222d[data-v-415a99b5]{background:#f5222d}.bg-82c5ff[data-v-415a99b5]{background:#82c5ff}.color-508cee[data-v-415a99b5]{color:#508cee}.color-ff585c[data-v-415a99b5]{color:#ff585c}.line-h-18[data-v-415a99b5]{line-height:18px}.tooltip-text[data-v-415a99b5]{width:100%;white-space:pre-wrap;word-break:break-all}.my-customer-wrap[data-v-415a99b5]{height:100%}.my-customer-wrap .w-227[data-v-415a99b5]{width:227px}.my-customer-wrap .auth-tip-body[data-v-415a99b5]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-415a99b5]{display:inline-block;vertical-align:top;width:76px;height:32px;margin-right:-1px;background:#f5f7fa;border-radius:2px 0 0 2px;border:1px solid #c4c6cf;border-right:0;font-size:14px;color:#c0c4cc;text-align:center}.my-customer-wrap .store-item-content[data-v-415a99b5]{position:relative;width:302px;height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.right-content[data-v-415a99b5]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-415a99b5]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-415a99b5]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-415a99b5]{height:100%;background:#fff} .navwrap[data-v-69bcb2f7]{padding:12px 20px}.boxbttom[data-v-69bcb2f7],.boxshow[data-v-69bcb2f7]{border-bottom:1px solid #e4e7ed}.boxshow[data-v-69bcb2f7]{-webkit-box-shadow:5px -1px 5px #dfdfdf;box-shadow:5px -1px 5px #dfdfdf}.navtitle[data-v-69bcb2f7]{margin:24px 0 0 0;font-size:20px;color:#303133;font-weight:500}.navtip[data-v-69bcb2f7]{width:100%;height:38px;line-height:38px;font-size:13px;border-radius:2px;color:#606266;background-color:#f4f4f5}.navmTop[data-v-69bcb2f7]{margin-top:25px}.navtipcolor[data-v-69bcb2f7]{margin:0 12px;color:#2f54eb}.el-breadcrumb__inner.is-link[data-v-69bcb2f7]:hover,.el-breadcrumb__inner a[data-v-69bcb2f7]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-69bcb2f7],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-69bcb2f7]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-69bcb2f7],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-69bcb2f7]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.auth-step-body[data-v-a7d9b548]{width:400px;margin:0 auto}.el-alert__title[data-v-c9f514f8]{line-height:23px}.color-f5222d[data-v-c9f514f8]{color:#f5222d}.auth-commit-success[data-v-50c222ef]{margin-top:154px}.auth-commit-success .color-49c958[data-v-50c222ef]{color:#49c958}.auth-commit-success .font-60[data-v-50c222ef]{font-size:60px}.auth-commit-success .m-t-12[data-v-50c222ef]{margin-top:12px}.auth-commit-success .m-t-28[data-v-50c222ef]{margin-top:28px}.input-line-cell[data-v-2859c084]{position:relative;display:inline-block}.w-340[data-v-2859c084]{width:340px}.w-340[data-v-2859c084] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-2859c084] .el-textarea__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1);resize:none;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}.el-textarea.is-disabled[data-v-2859c084]{opacity:.5}.el-input .is-disabled[data-v-2859c084] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-2859c084]{position:absolute;bottom:-5px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#909399}.auth-commit-admin[data-v-cd2c1ecc]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-cd2c1ecc]{color:#49c958}.auth-commit-admin .font-60[data-v-cd2c1ecc]{font-size:60px}.auth-commit-admin .m-t-12[data-v-cd2c1ecc]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-cd2c1ecc]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-cd2c1ecc]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-cd2c1ecc]{width:198px}.bind-store-body[data-v-6988205b]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-6988205b]{width:215px}.bind-store-body .w-115[data-v-6988205b]{width:115px}.bind-store-body .select-tree-wrap[data-v-6988205b]{height:323px;overflow-y:auto}.daily-store-select[data-v-474c4968]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.select-tree-wrap[data-v-09dd7352]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.span-dot[data-v-4bd053ca]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-4bd053ca]{background:#52c41a}.span-dot.bg-f5222d[data-v-4bd053ca]{background:#f5222d}.bg-82c5ff[data-v-4bd053ca]{background:#82c5ff}.color-508cee[data-v-4bd053ca]{color:#508cee}.color-ff585c[data-v-4bd053ca]{color:#ff585c}.line-h-18[data-v-4bd053ca]{line-height:18px}.tooltip-text[data-v-4bd053ca]{width:100%;white-space:pre-wrap;word-break:break-all}.my-customer-wrap[data-v-4bd053ca]{height:100%}.my-customer-wrap .w-227[data-v-4bd053ca]{width:227px}.my-customer-wrap .auth-tip-body[data-v-4bd053ca]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-4bd053ca]{display:inline-block;vertical-align:top;width:76px;height:32px;margin-right:-1px;background:#f5f7fa;border-radius:2px 0 0 2px;border:1px solid #c4c6cf;border-right:0;font-size:14px;color:#c0c4cc;text-align:center}.my-customer-wrap .store-item-content[data-v-4bd053ca]{position:relative;width:302px;height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.right-content[data-v-4bd053ca]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-4bd053ca]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-4bd053ca]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-4bd053ca]{height:100%;background:#fff}
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.39.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-012f395e.d11e9162.css rel=prefetch><link href=css/chunk-08cf78ee.9cb54b4c.css rel=prefetch><link href=css/chunk-103dbe9d.810639b9.css rel=prefetch><link href=css/chunk-16a8dcde.2a3bfb87.css rel=prefetch><link href=css/chunk-19db1fc6.ba890a33.css rel=prefetch><link href=css/chunk-1b93a01a.01549a8d.css rel=prefetch><link href=css/chunk-2ad47fe6.9010b5cb.css rel=prefetch><link href=css/chunk-3f8ce3a6.3d609251.css rel=prefetch><link href=css/chunk-4a8be49a.e6fc8e8f.css rel=prefetch><link href=css/chunk-6037aaac.55f5bd62.css rel=prefetch><link href=css/chunk-63cd2773.5fbdcef6.css rel=prefetch><link href=css/chunk-63f006ce.8845f3f9.css rel=prefetch><link href=css/chunk-6cbf2ecc.b8081d66.css rel=prefetch><link href=css/chunk-7756bb34.84a9ca44.css rel=prefetch><link href=css/chunk-7ea1f4c1.2edbc58c.css rel=prefetch><link href=css/chunk-8da245a2.0d5615a8.css rel=prefetch><link href=css/chunk-aa1934dc.f09a3777.css rel=prefetch><link href=css/chunk-aef383e6.eec4d489.css rel=prefetch><link href=css/chunk-be528a18.e2991b7b.css rel=prefetch><link href=css/chunk-ea9d6bee.492c0f7d.css rel=prefetch><link href=js/chunk-012f395e.7ec3c726.js rel=prefetch><link href=js/chunk-08cf78ee.ce8918f8.js rel=prefetch><link href=js/chunk-103dbe9d.9b0b2f1a.js rel=prefetch><link href=js/chunk-16a8dcde.422b0989.js rel=prefetch><link href=js/chunk-19db1fc6.10fbf935.js rel=prefetch><link href=js/chunk-1b93a01a.19b25334.js rel=prefetch><link href=js/chunk-2ad47fe6.31f3e75a.js rel=prefetch><link href=js/chunk-2d0b5d69.68a52501.js rel=prefetch><link href=js/chunk-3f8ce3a6.4151e870.js rel=prefetch><link href=js/chunk-4a8be49a.279f41dc.js rel=prefetch><link href=js/chunk-6037aaac.86b14f2d.js rel=prefetch><link href=js/chunk-63cd2773.7c931d9c.js rel=prefetch><link href=js/chunk-63f006ce.76da3faa.js rel=prefetch><link href=js/chunk-6cbf2ecc.acc17c28.js rel=prefetch><link href=js/chunk-737eaf4a.50394394.js rel=prefetch><link href=js/chunk-7756bb34.aa303a7e.js rel=prefetch><link href=js/chunk-7ea1f4c1.fd6c8daa.js rel=prefetch><link href=js/chunk-8da245a2.30d70f2a.js rel=prefetch><link href=js/chunk-aa1934dc.45cf020a.js rel=prefetch><link href=js/chunk-aef383e6.bf56b9fa.js rel=prefetch><link href=js/chunk-be528a18.ba45b8c3.js rel=prefetch><link href=js/chunk-ea9d6bee.51f6b850.js rel=prefetch><link href=css/app.8820c75f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.639c3eba.js rel=preload as=script><link href=js/chunk-vendors.e7b30cab.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.8820c75f.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.41.js></script><script src=js/chunk-vendors.e7b30cab.js></script><script src=js/app.639c3eba.js></script></body></html> <!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.39.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-012f395e.d11e9162.css rel=prefetch><link href=css/chunk-08cf78ee.9cb54b4c.css rel=prefetch><link href=css/chunk-16a8dcde.2a3bfb87.css rel=prefetch><link href=css/chunk-19db1fc6.ba890a33.css rel=prefetch><link href=css/chunk-1b93a01a.01549a8d.css rel=prefetch><link href=css/chunk-2597f646.e1f83f6a.css rel=prefetch><link href=css/chunk-2ad47fe6.9010b5cb.css rel=prefetch><link href=css/chunk-3f8ce3a6.3d609251.css rel=prefetch><link href=css/chunk-4a8be49a.e6fc8e8f.css rel=prefetch><link href=css/chunk-6037aaac.55f5bd62.css rel=prefetch><link href=css/chunk-63cd2773.5fbdcef6.css rel=prefetch><link href=css/chunk-63f006ce.8845f3f9.css rel=prefetch><link href=css/chunk-6cbf2ecc.b8081d66.css rel=prefetch><link href=css/chunk-7756bb34.84a9ca44.css rel=prefetch><link href=css/chunk-7ea1f4c1.2edbc58c.css rel=prefetch><link href=css/chunk-8da245a2.0d5615a8.css rel=prefetch><link href=css/chunk-aa1934dc.f09a3777.css rel=prefetch><link href=css/chunk-aef383e6.eec4d489.css rel=prefetch><link href=css/chunk-be528a18.e2991b7b.css rel=prefetch><link href=css/chunk-ea9d6bee.492c0f7d.css rel=prefetch><link href=js/chunk-012f395e.7ec3c726.js rel=prefetch><link href=js/chunk-08cf78ee.ce8918f8.js rel=prefetch><link href=js/chunk-16a8dcde.422b0989.js rel=prefetch><link href=js/chunk-19db1fc6.10fbf935.js rel=prefetch><link href=js/chunk-1b93a01a.19b25334.js rel=prefetch><link href=js/chunk-2597f646.ed48aff2.js rel=prefetch><link href=js/chunk-2ad47fe6.31f3e75a.js rel=prefetch><link href=js/chunk-2d0b5d69.68a52501.js rel=prefetch><link href=js/chunk-3f8ce3a6.4151e870.js rel=prefetch><link href=js/chunk-4a8be49a.279f41dc.js rel=prefetch><link href=js/chunk-6037aaac.86b14f2d.js rel=prefetch><link href=js/chunk-63cd2773.7c931d9c.js rel=prefetch><link href=js/chunk-63f006ce.76da3faa.js rel=prefetch><link href=js/chunk-6cbf2ecc.acc17c28.js rel=prefetch><link href=js/chunk-737eaf4a.50394394.js rel=prefetch><link href=js/chunk-7756bb34.aa303a7e.js rel=prefetch><link href=js/chunk-7ea1f4c1.fd6c8daa.js rel=prefetch><link href=js/chunk-8da245a2.30d70f2a.js rel=prefetch><link href=js/chunk-aa1934dc.45cf020a.js rel=prefetch><link href=js/chunk-aef383e6.bf56b9fa.js rel=prefetch><link href=js/chunk-be528a18.ba45b8c3.js rel=prefetch><link href=js/chunk-ea9d6bee.51f6b850.js rel=prefetch><link href=css/app.8820c75f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.527c7e46.js rel=preload as=script><link href=js/chunk-vendors.e7b30cab.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.8820c75f.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.41.js></script><script src=js/chunk-vendors.e7b30cab.js></script><script src=js/app.527c7e46.js></script></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
* @Author : 无尘 * @Author : 无尘
* @Date : 2020-02-13 14:02:40 * @Date : 2020-02-13 14:02:40
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-27 16:22:26 * @LastEditTime: 2020-07-28 12:18:17
* @FilePath : j:\公司\haoban-4\src\components\company\auth-commit-success.vue * @FilePath : j:\公司\haoban-4\src\components\company\auth-commit-success.vue
--> -->
<!-- <!--
提交审核 提交审核
<auth-commit :adminList="adminList" @changeStep="changeStep"></auth-commit> <auth-commit :adminList="adminList" @changeStep="changeStep" @returnStep="returnStep"></auth-commit>
import authCommitSuccess from '@/components/company/auth-commit.vue'; import authCommitSuccess from '@/components/company/auth-commit.vue';
--> -->
<template> <template>
...@@ -74,6 +74,13 @@ export default { ...@@ -74,6 +74,13 @@ export default {
}, },
methods: { methods: {
/** /**
* 取消
*/
cancel() {
const that = this;
that.$emit('returnStep');
},
/**
* 提交审核 * 提交审核
*/ */
submitForm(form) { submitForm(form) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-21 10:10:57 * @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-28 11:14:24 * @LastEditTime: 2020-07-28 14:27:32
--> -->
<!-- <!--
授权选择门店绑定弹窗 授权选择门店绑定弹窗
...@@ -54,18 +54,12 @@ export default { ...@@ -54,18 +54,12 @@ export default {
type: [String, Number], type: [String, Number],
default: '0' // 0 全部 1部分分组 2 部分门店 default: '0' // 0 全部 1部分分组 2 部分门店
}, },
bindRange: { rangeData: {
type: [Object, Array], type: [Object, Array],
default () { default () {
return []; return [];
} }
}, }
shareRange: {
type: [Object, Array],
default () {
return [];
}
},
}, },
data() { data() {
return { return {
...@@ -86,10 +80,21 @@ export default { ...@@ -86,10 +80,21 @@ export default {
selectMode(val) { selectMode(val) {
const that = this; const that = this;
that.formData.sendRange = val; that.formData.sendRange = val;
},
rangeData(val) {
const that = this;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(val)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(val)) : [];
} }
}, },
methods: { methods: {
/**
* 改变选择范围
*/
changeRange(e) {
const that = this;
that.formData.selectList = [];
},
/** /**
* 关闭弹窗 * 关闭弹窗
*/ */
...@@ -128,14 +133,23 @@ export default { ...@@ -128,14 +133,23 @@ export default {
that.groupData = JSON.parse(JSON.stringify(that.groupDataCopy)); that.groupData = JSON.parse(JSON.stringify(that.groupDataCopy));
}, },
/** /**
* 选择 tree 节点,获取选择节点信息 * 每次选择分组
*/ */
checkGroup: function(e) { checkGroupIds: function(nodes) {
const that = this; const that = this;
that.groupIds = that.$refs.groupTree.getCheckedNodes(); console.log(nodes);
that.$emit('checkGroupIds', that.$refs.groupTree.getCheckedNodes()); that.selectGroupData = JSON.parse(JSON.stringify(nodes));
that.formData.selectList = JSON.parse(JSON.stringify(nodes));
},
/**
* 每次选择门店
*/
checkGroupIds: function(nodes) {
const that = this;
console.log(nodes)
that.selectStoreData = JSON.parse(JSON.stringify(nodes));
that.formData.selectList = JSON.parse(JSON.stringify(nodes));
}, },
/** /**
* 确定 * 确定
*/ */
......
...@@ -4,22 +4,22 @@ ...@@ -4,22 +4,22 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-21 10:10:57 * @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-28 10:47:00 * @LastEditTime: 2020-07-28 14:33:04
--> -->
<!-- <!--
门店绑定-选择分组 门店绑定-选择分组
<store-auth-group :companyId="companyId" :storeType="storeType" @checkGroupIds="checkGroupIds"></store-auth-group> <store-auth-group :companyId="companyId" :storeType="storeType" :selectGroup="selectGroup" @checkGroupIds="checkGroupIds"></store-auth-group>
import storeAuthGroup from '@/components/company/store-auth-group.vue'; import storeAuthGroup from '@/components/company/store-auth-group.vue';
--> -->
<template> <template>
<div class="bind-store-body"> <div class="bind-store-body">
<div class="select-search"> <div class="select-search">
<el-input placeholder="请输入内容" clearable v-model="searchSelect" @keyup.native="value => toInput(value, searchSelect)" @clear="clearSearch"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> <el-input placeholder="请输入分组名称" clearable v-model="searchSelect" @keyup.native="value => toInput(value, searchSelect)" @clear="clearSearch"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
</div> </div>
<div class="select-tree-wrap m-t-20"> <div class="select-tree-wrap m-t-20">
<el-tree ref="groupTree" :filter-node-method="filterNode" :data="groupData" :load="loadNode" node-key="departmentId" lazy show-checkbox default-expand-all :props="defaultProps" :expand-on-click-node="false" @check="checkGroup"> <el-tree ref="groupTree" :filter-node-method="filterNode" :data="groupData" node-key="storeGroupId" lazy show-checkbox default-expand-all :props="defaultProps" :expand-on-click-node="false" @check="checkGroup">
<span class="custom-tree-node" slot-scope="{ node, data }"> <span class="custom-tree-node" slot-scope="{ node, data }" @click="toShowMsg(node, data)">
<span :class="['font-14 p-r-10 iconfont', data.isStore == 1 ? 'icondianpu-kuai' : 'iconqiye-tianchong', data.bindFlag == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ node.label }}</span> <span class="font-14 color-606266">{{ node.label }}</span><span v-if="data.bindFlag == 1" class="font-12 color-909399">{{ data.bindWxEnterpriseName }} 企业已授权</span>
</span> </span>
</el-tree> </el-tree>
</div> </div>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
import fetch from '@/api/merchantAuth.js'; import fetch from '@/api/merchantAuth.js';
const { getGroupList } = fetch; const { getGroupList } = fetch;
// import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
props: { props: {
companyId: { companyId: {
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
groupDataCopy: [], groupDataCopy: [],
defaultProps: { defaultProps: {
children: 'children', children: 'children',
label: 'departmentName' label: 'storeGroupName'
} }
}; };
}, },
...@@ -63,20 +63,29 @@ export default { ...@@ -63,20 +63,29 @@ export default {
searchSelect(val) { searchSelect(val) {
this.$refs.groupTree.filter(val); this.$refs.groupTree.filter(val);
}, },
selectGroup(val) {
const that = this;
if (val.length) {
that.$nextTick(()=>{
val.forEach(ele => {
that.$refs.groupTree.setChecked(ele.storeGroupId,true,true);
})
})
}
}
}, },
methods: { methods: {
/** /**
* 加载更多 * 判断提示
*/ */
async loadNode(node, resolve) { toShowMsg(node, data) {
const that = this; if (data.bindFlag == 1) {
if (node.level === 0) { showMsg.showmsg('当前门店已被其他企业绑定,当前企业无法选择!', 'warning');
return resolve(that.getGroup());
} else {
await that.getGroup(node, node.data, resolve);
} }
}, },
/**
* 过滤搜索
*/
filterNode(value, data) { filterNode(value, data) {
if (!value || !data.label) return true; if (!value || !data.label) return true;
return data.label.indexOf(value) !== -1; return data.label.indexOf(value) !== -1;
...@@ -107,10 +116,22 @@ export default { ...@@ -107,10 +116,22 @@ export default {
return false return false
} }
if(!!e.children) { if(!!e.children) {
const checkFlag = checkedKeys.checkedKeys.includes(e.id); // 父级已被绑定,子级要红色显示
that.$refs.groupTree.setChecked(e.id,checkFlag,true) // const className = document.getElementById(e.storeGroupId).previousElementSibling.children[0].className;
const parentNode = that.$refs.tree.getNode(e.storeGroupId).parent;
const checkFlag = checkedKeys.checkedKeys.includes(e.storeGroupId);
// 选择并且父级已绑定
if (checkFlag && parentNode.data.bindFlag == 1) {
document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].style.borderColor = '#f5222d';
document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].style.backgroundColor = '#f5222d';
}else {
document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].style.borderColor = '#ffffff';
document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].style.backgroundColor = '#ffffff';
}
that.$refs.groupTree.setChecked(e.storeGroupId,checkFlag,true)
e.children.forEach(ele => { e.children.forEach(ele => {
that.$refs.groupTree.setChecked(ele.id,checkFlag,true); that.$refs.groupTree.setChecked(ele.storeGroupId,checkFlag,true);
if (checkFlag) { if (checkFlag) {
ele.disabled = true; ele.disabled = true;
}else { }else {
...@@ -131,41 +152,45 @@ export default { ...@@ -131,41 +152,45 @@ export default {
that.$emit('checkGroupIds', arr); that.$emit('checkGroupIds', arr);
} }
}, },
treeData(data) {
let tree = data.filter(father => {
//循环所有项
let branchArr = data.filter(child => {
return father.storeGroupId == child.parentId; //返回每一项的子级数组
});
if (branchArr.length > 0) {
father.hasSonNode = true;
father.children = branchArr; //如果存在子级,则给父级添加一个children属性,并赋值
} else {
father.hasSonNode = false;
}
return father.parentId == 0; //返回第一层
});
return tree;
},
/** /**
* 获取门店分组 * 获取门店分组
*/ */
getGroup(node, data, resolve) { getGroup() {
let that = this; const that = this;
let para = { const para = {
type: that.storeType, type: that.storeType,
enterpriseId: that.companyId enterpriseId: that.companyId
}; };
if (node && (!data.hasSonNode || data.isStore == 1)) {
resolve([]);
return false;
}
getGroupList(para) getGroupList(para)
.then(res => { .then(async res => {
if (!!res.result && res.result.length) { if (!!res.result && res.result.length) {
res.result.forEach(ele => { res.result.forEach(ele => {
ele.expand = false; ele.expand = false;
ele.children = []; ele.children = [];
ele.label = ele.departmentName; ele.label = ele.storeGroupName;
}); });
} }
if (node) { that.groupData = await that.treeData(JSON.parse(JSON.stringify(res.result))) || [];
resolve(res.result);
if (!data.children) {
that.$set(data, 'children', []);
}
data.children = res.result || [];
that.$forceUpdate();
return false;
}
that.groupData = res.result || [];
// 存一份数据自己搜索 // 存一份数据自己搜索
that.groupDataCopy = JSON.parse(JSON.stringify(that.groupData)); that.groupDataCopy = JSON.parse(JSON.stringify(res.result));
}) })
.catch(function(error) { .catch(function(error) {
...@@ -176,6 +201,13 @@ export default { ...@@ -176,6 +201,13 @@ export default {
mounted() { mounted() {
const that = this; const that = this;
that.getGroup(); that.getGroup();
if (that.selectGroup.length) {
that.$nextTick(()=>{
that.selectGroup.forEach(ele => {
that.$refs.groupTree.setChecked(ele.storeGroupId,true,true);
})
})
}
} }
}; };
</script> </script>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-21 10:10:57 * @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-28 10:49:11 * @LastEditTime: 2020-07-28 14:13:59
--> -->
<!-- <!--
门店绑定-选择门店(限制50个) 门店绑定-选择门店(限制50个)
...@@ -23,8 +23,9 @@ ...@@ -23,8 +23,9 @@
<div class="el-select-dropdown__wrap el-scrollbar__wrap" style="margin-bottom: -5px; margin-right: -5px;"> <div class="el-select-dropdown__wrap el-scrollbar__wrap" style="margin-bottom: -5px; margin-right: -5px;">
<el-checkbox-group v-model="dailyRuleForm.stores" @change="handleStoresChange" :max="50"> <el-checkbox-group v-model="dailyRuleForm.stores" @change="handleStoresChange" :max="50">
<ul class="el-scrollbar__view el-select-dropdown__list"> <ul class="el-scrollbar__view el-select-dropdown__list">
<li :class="['el-select-dropdown__item', item.select ? 'selected hover' : '']" v-for="item in stores" :key="item.storeId"> <li :class="['el-select-dropdown__item', item.select ? 'selected hover' : '']" v-for="item in stores" :key="item.storeInfoId">
<el-checkbox :label="item.storeId" @change="changeCell">{{ item.storeName }}</el-checkbox> <el-checkbox :disabled="item.bindFlag == 1" :label="item.storeInfoId" @change="changeCell">{{ item.storeInfoName }}</el-checkbox>
<span v-if="item.bindFlag == 1" class="font-12 color-909399">{{ data.bindWxEnterpriseName }} 企业已授权</span>
</li> </li>
<li v-if="!stores.length" class="text-center"><span>暂无数据</span></li> <li v-if="!stores.length" class="text-center"><span>暂无数据</span></li>
</ul> </ul>
...@@ -76,7 +77,7 @@ export default { ...@@ -76,7 +77,7 @@ export default {
*/ */
handleCheckAllChange(val) { handleCheckAllChange(val) {
const that = this; const that = this;
that.dailyRuleForm.stores = val ? that.stores.map(item => item.storeId) : []; that.dailyRuleForm.stores = val ? that.stores.map(item => item.storeInfoId) : [];
that.isIndeterminate = false; that.isIndeterminate = false;
that.$emit('checkStoreIds', that.dailyRuleForm.stores); that.$emit('checkStoreIds', that.dailyRuleForm.stores);
}, },
...@@ -84,7 +85,7 @@ export default { ...@@ -84,7 +85,7 @@ export default {
const that = this; const that = this;
let arr = []; let arr = [];
that.stores.forEach(ele => { that.stores.forEach(ele => {
if (ele.includes(ele.storeId)) { if (ele.includes(ele.storeInfoId)) {
arr.push(ele); arr.push(ele);
} }
}) })
...@@ -160,7 +161,7 @@ export default { ...@@ -160,7 +161,7 @@ export default {
selectStore: function(newData, oldData) { selectStore: function(newData, oldData) {
const that = this; const that = this;
if (!!newData.length) { if (!!newData.length) {
that.dailyRuleForm.stores = newData.map(el=>el.storeId) || []; that.dailyRuleForm.stores = newData.map(el=>el.storeInfoId) || [];
}else { }else {
that.dailyRuleForm.stores = []; that.dailyRuleForm.stores = [];
} }
...@@ -172,7 +173,7 @@ export default { ...@@ -172,7 +173,7 @@ export default {
that.storesCopy = []; that.storesCopy = [];
that.getStoreData(); that.getStoreData();
if (!!that.selectStore.length) { if (!!that.selectStore.length) {
that.dailyRuleForm.stores = that.selectStore.map(el=>el.storeId) || []; that.dailyRuleForm.stores = that.selectStore.map(el=>el.storeInfoId) || [];
}else { }else {
that.dailyRuleForm.stores = []; that.dailyRuleForm.stores = [];
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-28 11:10:33 * @LastEditTime: 2020-07-28 14:24:17
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
<auth-tip class="m-t-30"></auth-tip> <auth-tip class="m-t-30"></auth-tip>
<el-form :model="authForm" :rules="rules" ref="authForm" label-width="100px" class="dialog-form m-t-20"> <el-form :model="authForm" :rules="rules" ref="authForm" label-width="100px" class="dialog-form m-t-20">
<el-form-item label="选择商户" prop="enterpriseId"> <el-form-item label="选择商户" prop="enterpriseId">
<span class="enterprise-version">GIC4.0</span><el-select v-model="authForm.enterpriseId" placeholder="" @change="getAdmin" class="w-227"> <el-autocomplete style="width: 363px;" v-model="authForm.enterpriseName" placeholder="请搜索选择商户" :fetch-suggestions="querySearchAsync" @select="getAdmin">
<el-option v-for="item in brandOptions" :key="item.enterpriseId" :label="item.enterpriseName" :value="item.enterpriseId"> </el-option> <template slot="prepend">GIC4.0</template>
</el-select> </el-autocomplete>
</el-form-item> </el-form-item>
<el-form-item label="门店绑定" prop="bindRange"> <el-form-item label="门店绑定" prop="bindRange">
<div class="el-select store-item-content" @click="showStore(1)"> <div class="el-select store-item-content" @click="showStore(1)">
...@@ -55,13 +55,13 @@ ...@@ -55,13 +55,13 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="cancel">取消</el-button> <el-button @click="cancel">取消</el-button>
<el-button type="primary" @click="submitForm('authForm')">下一步</el-button> <el-button :disabled="authForm.shareStoreMode== '' || authForm.bindMode == ''" type="primary" @click="submitForm('authForm')">下一步</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<!-- 审核员授权 --> <!-- 审核员授权 -->
<div v-if="activeStep == 1" class="commit-success-body"> <div v-if="activeStep == 1" class="commit-success-body">
<auth-commit :adminList="adminList" @changeStep="changeStep"></auth-commit> <auth-commit :adminList="adminList" @changeStep="changeStep" @returnStep="returnStep"></auth-commit>
</div> </div>
<!-- 已提交审核 --> <!-- 已提交审核 -->
<div v-if="activeStep == 2" class="commit-success-body"> <div v-if="activeStep == 2" class="commit-success-body">
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</div> </div>
</div> </div>
</div> </div>
<store-auth-dialog v-if="setVisible" :enterpriseId="authForm.enterpriseId" :selectMode="selectMode" :bindRange="authForm.bindRange" :shareRange="authForm.shareRange" :bindType="bindType" @closeSet="closeSet"></store-auth-dialog> <store-auth-dialog v-if="setVisible" :enterpriseId="authForm.enterpriseId" :selectMode="selectMode" :rangeData="rangeData" :bindType="bindType" @closeSet="closeSet"></store-auth-dialog>
<!-- <vue-gic-footer></vue-gic-footer> --> <!-- <vue-gic-footer></vue-gic-footer> -->
</div> </div>
</template> </template>
...@@ -114,10 +114,11 @@ export default { ...@@ -114,10 +114,11 @@ export default {
brandOptions: [], // 商户列表 brandOptions: [], // 商户列表
authForm: { authForm: {
enterpriseId: '', enterpriseId: '',
enterpriseName: '',
bindRange: [], bindRange: [],
shareRange: [], shareRange: [],
shareStoreMode: '0', shareStoreMode: '',
bindStoreMode: '0', bindStoreMode: '',
auditReason: '' auditReason: ''
}, },
rules: { rules: {
...@@ -130,7 +131,8 @@ export default { ...@@ -130,7 +131,8 @@ export default {
] ]
}, },
setVisible: false, setVisible: false,
selectMode: '0', selectMode: '0', // 选择 全部、分组、门店
rangeData: [], // 选择的数据
bindType: 1, bindType: 1,
adminList: [] // 审核管理员 adminList: [] // 审核管理员
}; };
...@@ -161,11 +163,64 @@ export default { ...@@ -161,11 +163,64 @@ export default {
*/ */
showStore(type) { showStore(type) {
const that = this; const that = this;
if (!that.authForm.enterpriseId) {
return false
}
that.selectMode = type == 1 ? that.authForm.bindStoreMode : that.authForm.shareStoreMode; that.selectMode = type == 1 ? that.authForm.bindStoreMode : that.authForm.shareStoreMode;
that.rangeData = type == 1 ? that.authForm.bindRange : that.authForm.shareRange;
that.bindType = type; that.bindType = type;
that.setVisible = true; that.setVisible = true;
}, },
/** /**
* 搜索查询列表
*/
getSearchList(queryString) {
let params = {
enterpriseName: queryString
};
return new Promise((resolve, reject) => {
getAuthEnterprise(params)
.then(res => {
if (res.code == '0000') {
if (res.result) {
res.result.value = res.result.enterpriseName;
}
resolve(res.result ? [res.result] : []);
}else {
resolve([]);
}
})
.catch(function(error) {
resolve([]);
});
});
},
/**
* 搜索查询列表
*/
async querySearchAsync(queryString, cb) {
const that = this;
if (queryString == '') {
cb([]);
}
const res = await that.getSearchList(queryString);
cb(res);
},
/**
* 第二步取消
*/
returnStep() {
const that = this;
that.activeStep = 1;
},
/**
* 取消
*/
cancel() {
const that = this;
that.$router.push('/authMerchant');
},
/**
* 下一步 * 下一步
*/ */
submitForm(form) { submitForm(form) {
...@@ -184,14 +239,17 @@ export default { ...@@ -184,14 +239,17 @@ export default {
delStore(index, arr) { delStore(index, arr) {
arr.splice(index, 1); arr.splice(index, 1);
}, },
/** /**
* 修改商户,获取审核管理员 * 选择商户,获取审核管理员
*/ */
getAdmin(val) { getAdmin(item) {
const that = this; const that = this;
that.authForm.enterpriseId = item.enterpriseId;
that.adminList = []; that.adminList = [];
that.getAdminList(val); that.getAdminList(item.enterpriseId);
}, },
getAdminList(val) { getAdminList(val) {
const that = this; const that = this;
getGicAdmin({enterpriseId: val}) getGicAdmin({enterpriseId: val})
...@@ -233,21 +291,7 @@ export default { ...@@ -233,21 +291,7 @@ export default {
changeRoute(path) { changeRoute(path) {
this.$router.push(path); this.$router.push(path);
}, },
/**
* 获取品牌商户
*/
getBrandData() {
const that = this;
getAuthEnterprise({})
.then(res => {
if (!!res.result && !!res.result.length) {
that.brandOptions = res.result;
}
})
.catch(function(error) {
});
},
/** /**
* 获取编辑数据 * 获取编辑数据
*/ */
...@@ -256,7 +300,7 @@ export default { ...@@ -256,7 +300,7 @@ export default {
let para = {}; let para = {};
getAuthDetail(para) getAuthDetail(para)
.then(res => { .then(res => {
that.tableData = res.result || []; that.authForm = res.result || {};
}) })
.catch(function(error) { .catch(function(error) {
...@@ -266,7 +310,9 @@ export default { ...@@ -266,7 +310,9 @@ export default {
watch: {}, watch: {},
mounted() { mounted() {
const that = this; const that = this;
that.getBrandData(); if (!!that.$route.query.storeRangeAuditId) {
that.getData();
}
document.documentElement.style.backgroundColor = '#f0f2f5'; document.documentElement.style.backgroundColor = '#f0f2f5';
}, },
destroyed() { destroyed() {
......
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