Commit f8b2c8f6 by 无尘

fix: 修改搜索

parent ee7d92d8
.color1[data-v-c02dbb3e]{font-size:16px;padding-right:15px;font-weight:600}.hide-ellipsis[data-v-c02dbb3e]{max-width:380px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.content-data[data-v-c02dbb3e]{position:relative}.content-data .color2[data-v-c02dbb3e]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-c02dbb3e]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-c02dbb3e]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-c02dbb3e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:100%;margin:20px}.target-title span[data-v-c02dbb3e]{font-weight:600}.target-table[data-v-c02dbb3e]{max-width:100%;margin:0 20px 50px}.table-title[data-v-c02dbb3e]{display:-webkit-box;display:-ms-flexbox;display:flex}.table-title li[data-v-c02dbb3e]{width:14.28%;max-width:14.28%;min-width:14.28%;height:48px;line-height:48px;text-indent:35px;font-weight:500;background-color:#ebecf0}.table-title li[data-v-c02dbb3e]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-c02dbb3e]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-c02dbb3e]{width:14.28%;max-width:14.28%;min-width:14.28%;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-c02dbb3e]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-c02dbb3e] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-c02dbb3e]{margin-bottom:10px}[data-v-c02dbb3e] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-c02dbb3e] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
.task-set-content[data-v-5138ba5a]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-5138ba5a]{width:105px}.task-set-content .w-120[data-v-5138ba5a]{width:120px}.task-set-content .w-161[data-v-5138ba5a]{width:161px}.task-set-content .m-b-15[data-v-5138ba5a]{margin-bottom:15px}.task-set-content .p-l-8[data-v-5138ba5a]{padding-left:8px}.task-set-content .p-l-18[data-v-5138ba5a]{padding-left:18px}.task-set-content .p-l-24[data-v-5138ba5a]{padding-left:24px}.task-set-content .p-l-175[data-v-5138ba5a]{padding-left:175px}.task-set-content .color-1890ff[data-v-5138ba5a]{color:#2f54eb}.task-set-content .color-f5222d[data-v-5138ba5a]{color:#f5222d}.task-set-content .colorFirst[data-v-5138ba5a]{color:#303133;font-weight:600}
\ No newline at end of file
.list-content[data-v-70effa67]{padding:0 20px 20px}.list-content .el-input[data-v-70effa67]{width:180px;margin-right:10px}.list-content .el-select[data-v-70effa67]{width:148px;margin-right:10px}.list-content .el-date-picker[data-v-70effa67]{margin-right:10px}.content-search[data-v-70effa67]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.content-data[data-v-70effa67],.content-first[data-v-70effa67],.content-search[data-v-70effa67]{display:-webkit-box;display:-ms-flexbox;display:flex}.content-data[data-v-70effa67]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.color1[data-v-70effa67]{color:#303133;font-size:16px;padding-right:15px;font-weight:500}.color2[data-v-70effa67]{position:relative;color:#606266;font-size:14px;font-weight:400}.color2[data-v-70effa67]:not(:first-of-type){padding-left:16px}.color2[data-v-70effa67]:not(:first-of-type):before{content:"|";position:absolute;top:0;left:0;color:#dcdfe6}.ellipsis[data-v-70effa67]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectColor[data-v-70effa67] .el-input__inner::-webkit-input-placeholder{color:#606266}.selectColor[data-v-70effa67] .el-input__inner::-moz-input-placeholder{color:#606266}.selectColor[data-v-70effa67] .el-input__inner::-ms-input-placeholder{color:#606266}
\ No newline at end of file
.color1[data-v-0e2d7994]{font-size:16px;padding-right:15px;font-weight:600}.hide-ellipsis[data-v-0e2d7994]{max-width:380px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.content-data[data-v-0e2d7994]{position:relative}.content-data .color2[data-v-0e2d7994]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-0e2d7994]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-0e2d7994]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-0e2d7994]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:100%;margin:20px}.target-title span[data-v-0e2d7994]{font-weight:600}.target-table[data-v-0e2d7994]{max-width:100%;margin:0 20px 50px}.table-title[data-v-0e2d7994]{display:-webkit-box;display:-ms-flexbox;display:flex}.table-title li[data-v-0e2d7994]{width:14.28%;max-width:14.28%;min-width:14.28%;height:48px;line-height:48px;text-indent:35px;font-weight:500;background-color:#ebecf0}.table-title li[data-v-0e2d7994]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-0e2d7994]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-0e2d7994]{width:14.28%;max-width:14.28%;min-width:14.28%;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-0e2d7994]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-0e2d7994] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-0e2d7994]{margin-bottom:10px}[data-v-0e2d7994] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-0e2d7994] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
.task-set-content[data-v-05d82f6a]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-05d82f6a]{width:105px}.task-set-content .w-120[data-v-05d82f6a]{width:120px}.task-set-content .w-161[data-v-05d82f6a]{width:161px}.task-set-content .m-b-15[data-v-05d82f6a]{margin-bottom:15px}.task-set-content .p-l-8[data-v-05d82f6a]{padding-left:8px}.task-set-content .p-l-18[data-v-05d82f6a]{padding-left:18px}.task-set-content .p-l-24[data-v-05d82f6a]{padding-left:24px}.task-set-content .p-l-175[data-v-05d82f6a]{padding-left:175px}.task-set-content .color-1890ff[data-v-05d82f6a]{color:#2f54eb}.task-set-content .color-f5222d[data-v-05d82f6a]{color:#f5222d}.task-set-content .colorFirst[data-v-05d82f6a]{color:#303133;font-weight:600}
\ No newline at end of file
.auth-step-body[data-v-c9703e40]{width:400px;margin:0 auto}.el-alert__title[data-v-6246f46e]{line-height:23px}.color-f5222d[data-v-6246f46e]{color:#f5222d}.auth-commit-success[data-v-52f63fda]{margin-top:154px}.auth-commit-success .color-49c958[data-v-52f63fda]{color:#49c958}.auth-commit-success .font-60[data-v-52f63fda]{font-size:60px}.auth-commit-success .m-t-12[data-v-52f63fda]{margin-top:12px}.auth-commit-success .m-t-28[data-v-52f63fda]{margin-top:28px}.input-line-cell[data-v-8106e482]{position:relative;display:inline-block}.w-340[data-v-8106e482]{width:340px}.w-340[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-8106e482] .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-8106e482]{opacity:.5}.el-input .is-disabled[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-8106e482]{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-7eb181ea]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-7eb181ea]{color:#49c958}.auth-commit-admin .font-60[data-v-7eb181ea]{font-size:60px}.auth-commit-admin .m-t-12[data-v-7eb181ea]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-7eb181ea]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-7eb181ea]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-7eb181ea]{width:198px}.auth-commit-admin .audit-admin-body[data-v-7eb181ea]{min-width:500px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-7eb181ea]{position:relative;color:#606266;font-size:14px;padding:0 8px;margin-bottom:10px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-7eb181ea]:nth-child(2n):after{content:"";position:absolute;left:0;top:10px;width:0;height:14px;border-left:1px solid #dcdfe6}.select-tree-wrap[data-v-761c5b6a]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.m-b-20[data-v-a960be2a]{margin-bottom:20px}.w-173[data-v-a960be2a]{width:173px}.w-267[data-v-7cd6a346]{width:267px}.m-t-35[data-v-7cd6a346]{margin-top:35px}.common-bottom-border[data-v-7cd6a346]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.el-input-group__prepend[data-v-7cd6a346]{display:inline-block;width:86px;height:32px;line-height:32px;vertical-align:top;border-color:#c4c6cf}.select-search-input[data-v-7cd6a346]{display:inline-block;margin-left:-2px}.company-select[data-v-7cd6a346]{position:relative}.company-select .el-select-dropdown__item[data-v-7cd6a346]{height:52px;line-height:52px}.company-select .text-ellipsis[data-v-7cd6a346]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-customer-wrap[data-v-7cd6a346]{height:100%}.my-customer-wrap .w-227[data-v-7cd6a346]{width:227px}.my-customer-wrap .auth-tip-body[data-v-7cd6a346]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-7cd6a346]{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-7cd6a346]{position:relative;width:350px;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}.my-customer-wrap .store-item-content .el-select__tags[data-v-7cd6a346]{max-width:348px;white-space:nowrap;overflow:hidden}.right-content[data-v-7cd6a346]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-7cd6a346]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-7cd6a346]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-7cd6a346]{height:100%;background:#fff}
\ No newline at end of file
.auth-step-body[data-v-c9703e40]{width:400px;margin:0 auto}.el-alert__title[data-v-6246f46e]{line-height:23px}.color-f5222d[data-v-6246f46e]{color:#f5222d}.auth-commit-success[data-v-52f63fda]{margin-top:154px}.auth-commit-success .color-49c958[data-v-52f63fda]{color:#49c958}.auth-commit-success .font-60[data-v-52f63fda]{font-size:60px}.auth-commit-success .m-t-12[data-v-52f63fda]{margin-top:12px}.auth-commit-success .m-t-28[data-v-52f63fda]{margin-top:28px}.input-line-cell[data-v-8106e482]{position:relative;display:inline-block}.w-340[data-v-8106e482]{width:340px}.w-340[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-8106e482] .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-8106e482]{opacity:.5}.el-input .is-disabled[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-8106e482]{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-7eb181ea]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-7eb181ea]{color:#49c958}.auth-commit-admin .font-60[data-v-7eb181ea]{font-size:60px}.auth-commit-admin .m-t-12[data-v-7eb181ea]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-7eb181ea]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-7eb181ea]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-7eb181ea]{width:198px}.auth-commit-admin .audit-admin-body[data-v-7eb181ea]{min-width:500px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-7eb181ea]{position:relative;color:#606266;font-size:14px;padding:0 8px;margin-bottom:10px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-7eb181ea]:nth-child(2n):after{content:"";position:absolute;left:0;top:10px;width:0;height:14px;border-left:1px solid #dcdfe6}.select-tree-wrap[data-v-761c5b6a]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.m-b-20[data-v-a960be2a]{margin-bottom:20px}.w-173[data-v-a960be2a]{width:173px}.w-267[data-v-01ed25de]{width:267px}.m-t-35[data-v-01ed25de]{margin-top:35px}.common-bottom-border[data-v-01ed25de]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.el-input-group__prepend[data-v-01ed25de]{display:inline-block;width:86px;height:32px;line-height:32px;vertical-align:top;border-color:#c4c6cf}.select-search-input[data-v-01ed25de]{display:inline-block;margin-left:-2px}.company-select[data-v-01ed25de]{position:relative}.company-select .el-select-dropdown__item[data-v-01ed25de]{height:52px;line-height:52px}.company-select .text-ellipsis[data-v-01ed25de]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-customer-wrap[data-v-01ed25de]{height:100%}.my-customer-wrap .w-227[data-v-01ed25de]{width:227px}.my-customer-wrap .auth-tip-body[data-v-01ed25de]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-01ed25de]{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-01ed25de]{position:relative;width:350px;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}.my-customer-wrap .store-item-content .el-select__tags[data-v-01ed25de]{max-width:348px;white-space:nowrap;overflow:hidden}.right-content[data-v-01ed25de]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-01ed25de]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-01ed25de]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-01ed25de]{height:100%;background:#fff}
\ No newline at end of file
#month-target{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:962px;color:#303133}#month-target .target-box{width:235px}#month-target .target-box:nth-of-type(4n){width:257px}#month-target .target-box header{height:44px;line-height:44px;text-indent:50px;background-color:#ebecf0}#month-target .target-box .content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:62px;padding-left:50px;border-bottom:1px solid #dcdfe6}#month-target .target-box .red .el-input-number .el-input__inner{border-color:#f5222d}#month-target .target-box .red .el-input-number .el-input__inner:focus{-webkit-box-shadow:0 0 0 2px rgba(245,34,45,.2);box-shadow:0 0 0 2px rgba(245,34,45,.2)}#month-target .el-select{width:87px;margin-right:-1px}#month-target .el-select .el-input__inner{height:32px!important;border-radius:2px 0 0 2px}#month-target .el-select .el-input__inner:focus,#month-target .el-select .is-focus .el-input__inner{border-color:#dcdfe6;-webkit-box-shadow:none;box-shadow:none}#month-target .el-input-number{width:98px}#month-target .el-input-number:before{content:"\FFE5";position:absolute;top:0;left:11px;z-index:3;font-size:14px;color:#303133}#month-target .el-input-number .el-input__inner{border-radius:0 2px 2px 0;text-align:left;padding-left:30px}#month-target .noIcon .el-input-number:before{content:""}#month-target .tip{font-size:12px;color:#909399}.el-alert[data-v-abcdc98e]{width:590px;margin-bottom:20px;font-size:13px}.color2[data-v-abcdc98e]{color:#606266;font-size:12px}
\ No newline at end of file
#month-target{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:962px;color:#303133}#month-target .target-box{width:235px}#month-target .target-box:nth-of-type(4n){width:257px}#month-target .target-box header{height:44px;line-height:44px;text-indent:50px;background-color:#ebecf0}#month-target .target-box .content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:62px;padding-left:50px;border-bottom:1px solid #dcdfe6}#month-target .target-box .red .el-input-number .el-input__inner{border-color:#f5222d}#month-target .target-box .red .el-input-number .el-input__inner:focus{-webkit-box-shadow:0 0 0 2px rgba(245,34,45,.2);box-shadow:0 0 0 2px rgba(245,34,45,.2)}#month-target .el-select{width:87px;margin-right:-1px}#month-target .el-select .el-input__inner{height:32px!important;border-radius:2px 0 0 2px}#month-target .el-select .el-input__inner:focus,#month-target .el-select .is-focus .el-input__inner{border-color:#dcdfe6;-webkit-box-shadow:none;box-shadow:none}#month-target .el-input-number{width:98px}#month-target .el-input-number:before{content:"\FFE5";position:absolute;top:0;left:11px;z-index:3;font-size:14px;color:#303133}#month-target .el-input-number .el-input__inner{border-radius:0 2px 2px 0;text-align:left;padding-left:30px}#month-target .noIcon .el-input-number:before{content:""}#month-target .tip{font-size:12px;color:#909399}.el-alert[data-v-32d77902]{width:590px;margin-bottom:20px;font-size:13px}.color2[data-v-32d77902]{color:#606266;font-size:12px}
\ No newline at end of file
.list-content[data-v-00a8c744]{padding:0 20px 20px}.list-content .el-input[data-v-00a8c744]{width:180px;margin-right:10px}.list-content .el-select[data-v-00a8c744]{width:148px;margin-right:10px}.list-content .el-date-picker[data-v-00a8c744]{margin-right:10px}.content-search[data-v-00a8c744]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.content-data[data-v-00a8c744],.content-first[data-v-00a8c744],.content-search[data-v-00a8c744]{display:-webkit-box;display:-ms-flexbox;display:flex}.content-data[data-v-00a8c744]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.color1[data-v-00a8c744]{color:#303133;font-size:16px;padding-right:15px;font-weight:500}.color2[data-v-00a8c744]{position:relative;color:#606266;font-size:14px;font-weight:400}.color2[data-v-00a8c744]:not(:first-of-type){padding-left:16px}.color2[data-v-00a8c744]:not(:first-of-type):before{content:"|";position:absolute;top:0;left:0;color:#dcdfe6}.ellipsis[data-v-00a8c744]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selectColor[data-v-00a8c744] .el-input__inner::-webkit-input-placeholder{color:#606266}.selectColor[data-v-00a8c744] .el-input__inner::-moz-input-placeholder{color:#606266}.selectColor[data-v-00a8c744] .el-input__inner::-ms-input-placeholder{color:#606266}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><title>好办</title><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.53.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1954999_o6e79pmntvg.css><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><link href=css/chunk-00b4720e.c557c4e4.css rel=prefetch><link href=css/chunk-03688d1a.15b32b6c.css rel=prefetch><link href=css/chunk-0480f547.046408d9.css rel=prefetch><link href=css/chunk-067f0b14.fc1234e4.css rel=prefetch><link href=css/chunk-0bc88494.f2c6fde5.css rel=prefetch><link href=css/chunk-0be3b119.e68eefde.css rel=prefetch><link href=css/chunk-13367719.1e966bf3.css rel=prefetch><link href=css/chunk-1471826c.806c059f.css rel=prefetch><link href=css/chunk-16844bb0.2ad3334d.css rel=prefetch><link href=css/chunk-18050ab8.903f8d92.css rel=prefetch><link href=css/chunk-1bc03f55.cb6364a0.css rel=prefetch><link href=css/chunk-21368af4.9a18fea8.css rel=prefetch><link href=css/chunk-23db9727.ac3b1634.css rel=prefetch><link href=css/chunk-23fed8b6.0cb72bbf.css rel=prefetch><link href=css/chunk-25b17d2e.a46135dc.css rel=prefetch><link href=css/chunk-262fe04e.32f0cb25.css rel=prefetch><link href=css/chunk-271d68a2.20f23d36.css rel=prefetch><link href=css/chunk-42163e43.6c086558.css rel=prefetch><link href=css/chunk-42ebce82.e821b46f.css rel=prefetch><link href=css/chunk-43e785bb.c4b37a89.css rel=prefetch><link href=css/chunk-44a40890.20c10a62.css rel=prefetch><link href=css/chunk-44a6583c.18615f6f.css rel=prefetch><link href=css/chunk-4551f5db.4e4b34f8.css rel=prefetch><link href=css/chunk-470f9f3e.c566df98.css rel=prefetch><link href=css/chunk-473b6678.2cff114b.css rel=prefetch><link href=css/chunk-4a8d1525.43dd04ad.css rel=prefetch><link href=css/chunk-4b898c1e.07d02776.css rel=prefetch><link href=css/chunk-4f45167e.ee441549.css rel=prefetch><link href=css/chunk-4f6b291e.f20a99cd.css rel=prefetch><link href=css/chunk-4fc2d3b6.e4f77a0d.css rel=prefetch><link href=css/chunk-52b97a85.998e7f29.css rel=prefetch><link href=css/chunk-549ff1ed.505e96b0.css rel=prefetch><link href=css/chunk-5bf069da.c46a71c8.css rel=prefetch><link href=css/chunk-5c88181f.71420912.css rel=prefetch><link href=css/chunk-5ffe4358.cebe6710.css rel=prefetch><link href=css/chunk-60fc6cce.d877ba25.css rel=prefetch><link href=css/chunk-6269ad22.75b54ded.css rel=prefetch><link href=css/chunk-6597d41a.1b377e6e.css rel=prefetch><link href=css/chunk-678c5bc5.bb167dd3.css rel=prefetch><link href=css/chunk-699b4bca.2a58a8e2.css rel=prefetch><link href=css/chunk-6dccb97c.f09fceff.css rel=prefetch><link href=css/chunk-6f5e9798.69c7071f.css rel=prefetch><link href=css/chunk-75da9c60.6346c86a.css rel=prefetch><link href=css/chunk-7679cb8b.19d909aa.css rel=prefetch><link href=css/chunk-78378c3d.19aceb57.css rel=prefetch><link href=css/chunk-7f93e0d2.b382a663.css rel=prefetch><link href=css/chunk-a3d8b552.26e628b3.css rel=prefetch><link href=css/chunk-a6478ea0.6deeb9ee.css rel=prefetch><link href=css/chunk-bc5caa70.1a9dd268.css rel=prefetch><link href=css/chunk-bd0a3336.bfaf0c7d.css rel=prefetch><link href=css/chunk-c99ffd6a.68cc88e0.css rel=prefetch><link href=css/chunk-d869eb2e.b7a3d36c.css rel=prefetch><link href=css/chunk-e55aaa40.a8713f1e.css rel=prefetch><link href=css/chunk-eebc56cc.10d81372.css rel=prefetch><link href=css/chunk-efbe6f9e.f92aeab2.css rel=prefetch><link href=css/chunk-f9ae6c4c.39f76a32.css rel=prefetch><link href=css/chunk-feab943c.f3cdbb5b.css rel=prefetch><link href=js/chunk-00b4720e.c934d318.js rel=prefetch><link href=js/chunk-03688d1a.6e72c5fc.js rel=prefetch><link href=js/chunk-0480f547.9bb6c138.js rel=prefetch><link href=js/chunk-067f0b14.ede8fd3d.js rel=prefetch><link href=js/chunk-06fd5be4.89314364.js rel=prefetch><link href=js/chunk-08047175.e025ecad.js rel=prefetch><link href=js/chunk-0bc88494.e4a88ba0.js rel=prefetch><link href=js/chunk-0be3b119.f1b354ed.js rel=prefetch><link href=js/chunk-13367719.ae696748.js rel=prefetch><link href=js/chunk-1471826c.31d6a7eb.js rel=prefetch><link href=js/chunk-16844bb0.4dbf658a.js rel=prefetch><link href=js/chunk-18050ab8.82bbc95d.js rel=prefetch><link href=js/chunk-1bc03f55.28ce1d8f.js rel=prefetch><link href=js/chunk-21368af4.32b3c663.js rel=prefetch><link href=js/chunk-23db9727.1af43e6d.js rel=prefetch><link href=js/chunk-23fed8b6.5bd64005.js rel=prefetch><link href=js/chunk-25b17d2e.4c2ef6c8.js rel=prefetch><link href=js/chunk-262fe04e.23ef3d42.js rel=prefetch><link href=js/chunk-271d68a2.3421acd5.js rel=prefetch><link href=js/chunk-2d0e1f21.d3ed2e41.js rel=prefetch><link href=js/chunk-42163e43.f363ac6b.js rel=prefetch><link href=js/chunk-42ebce82.c4c7c675.js rel=prefetch><link href=js/chunk-43e785bb.cb5fe646.js rel=prefetch><link href=js/chunk-44a40890.072f7276.js rel=prefetch><link href=js/chunk-44a6583c.79c06b90.js rel=prefetch><link href=js/chunk-4551f5db.a8e71318.js rel=prefetch><link href=js/chunk-470f9f3e.1fe8c362.js rel=prefetch><link href=js/chunk-473b6678.dfeaf2aa.js rel=prefetch><link href=js/chunk-4a8d1525.99bb9d36.js rel=prefetch><link href=js/chunk-4b898c1e.3ada8648.js rel=prefetch><link href=js/chunk-4f45167e.b33a29bc.js rel=prefetch><link href=js/chunk-4f6b291e.9c23f5d2.js rel=prefetch><link href=js/chunk-4fc2d3b6.7915d752.js rel=prefetch><link href=js/chunk-52b97a85.3b2f27a3.js rel=prefetch><link href=js/chunk-549ff1ed.3b97dd21.js rel=prefetch><link href=js/chunk-5bf069da.99efe021.js rel=prefetch><link href=js/chunk-5c88181f.e3bf3df6.js rel=prefetch><link href=js/chunk-5ffe4358.f15be5d1.js rel=prefetch><link href=js/chunk-60fc6cce.3befc212.js rel=prefetch><link href=js/chunk-6269ad22.6998652c.js rel=prefetch><link href=js/chunk-6597d41a.d6354a59.js rel=prefetch><link href=js/chunk-678c5bc5.7326f587.js rel=prefetch><link href=js/chunk-699b4bca.9159338e.js rel=prefetch><link href=js/chunk-6dccb97c.6a961437.js rel=prefetch><link href=js/chunk-6f5e9798.910241f5.js rel=prefetch><link href=js/chunk-75da9c60.79b566a1.js rel=prefetch><link href=js/chunk-7679cb8b.d00920d9.js rel=prefetch><link href=js/chunk-78378c3d.b814c86b.js rel=prefetch><link href=js/chunk-7f93e0d2.3f6865d7.js rel=prefetch><link href=js/chunk-a3d8b552.15fb7199.js rel=prefetch><link href=js/chunk-a6478ea0.2c362507.js rel=prefetch><link href=js/chunk-bc5caa70.07cde33d.js rel=prefetch><link href=js/chunk-bd0a3336.07bbe1a0.js rel=prefetch><link href=js/chunk-c99ffd6a.c3e4758a.js rel=prefetch><link href=js/chunk-d869eb2e.27d9b51f.js rel=prefetch><link href=js/chunk-e55aaa40.cc47148e.js rel=prefetch><link href=js/chunk-eebc56cc.a1b631a0.js rel=prefetch><link href=js/chunk-efbe6f9e.f87c0d39.js rel=prefetch><link href=js/chunk-f9ae6c4c.13d13245.js rel=prefetch><link href=js/chunk-feab943c.8a137f98.js rel=prefetch><link href=css/app.3120cd93.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.c2925f00.js rel=preload as=script><link href=js/chunk-vendors.659c5cc6.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.3120cd93.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/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/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.24.js></script><script src=js/chunk-vendors.659c5cc6.js></script><script src=js/app.c2925f00.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><title>好办</title><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.53.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><link rel=stylesheet type=text/css href=//at.alicdn.com/t/font_1954999_o6e79pmntvg.css><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><link href=css/chunk-00b4720e.c557c4e4.css rel=prefetch><link href=css/chunk-03688d1a.15b32b6c.css rel=prefetch><link href=css/chunk-0480f547.046408d9.css rel=prefetch><link href=css/chunk-0bc88494.f2c6fde5.css rel=prefetch><link href=css/chunk-0be3b119.e68eefde.css rel=prefetch><link href=css/chunk-13367719.1e966bf3.css rel=prefetch><link href=css/chunk-1471826c.806c059f.css rel=prefetch><link href=css/chunk-16844bb0.2ad3334d.css rel=prefetch><link href=css/chunk-1bc03f55.cb6364a0.css rel=prefetch><link href=css/chunk-21368af4.9a18fea8.css rel=prefetch><link href=css/chunk-23db9727.ac3b1634.css rel=prefetch><link href=css/chunk-23fed8b6.0cb72bbf.css rel=prefetch><link href=css/chunk-25b17d2e.a46135dc.css rel=prefetch><link href=css/chunk-2609f0b8.d72dd2fa.css rel=prefetch><link href=css/chunk-262fe04e.32f0cb25.css rel=prefetch><link href=css/chunk-2adb88ef.96fd05c5.css rel=prefetch><link href=css/chunk-42163e43.6c086558.css rel=prefetch><link href=css/chunk-42ebce82.e821b46f.css rel=prefetch><link href=css/chunk-43e785bb.c4b37a89.css rel=prefetch><link href=css/chunk-44a40890.20c10a62.css rel=prefetch><link href=css/chunk-44a6583c.18615f6f.css rel=prefetch><link href=css/chunk-4551f5db.4e4b34f8.css rel=prefetch><link href=css/chunk-470f9f3e.c566df98.css rel=prefetch><link href=css/chunk-473b6678.2cff114b.css rel=prefetch><link href=css/chunk-4a8d1525.43dd04ad.css rel=prefetch><link href=css/chunk-4b898c1e.07d02776.css rel=prefetch><link href=css/chunk-4ce1dbcd.77a30101.css rel=prefetch><link href=css/chunk-4d2775d6.d2a76b72.css rel=prefetch><link href=css/chunk-4f45167e.ee441549.css rel=prefetch><link href=css/chunk-4f6b291e.f20a99cd.css rel=prefetch><link href=css/chunk-4fc2d3b6.e4f77a0d.css rel=prefetch><link href=css/chunk-52b97a85.998e7f29.css rel=prefetch><link href=css/chunk-549ff1ed.505e96b0.css rel=prefetch><link href=css/chunk-5bbbe134.e0acb8ff.css rel=prefetch><link href=css/chunk-5bf069da.c46a71c8.css rel=prefetch><link href=css/chunk-5c88181f.71420912.css rel=prefetch><link href=css/chunk-5ffe4358.cebe6710.css rel=prefetch><link href=css/chunk-60fc6cce.d877ba25.css rel=prefetch><link href=css/chunk-6269ad22.75b54ded.css rel=prefetch><link href=css/chunk-6597d41a.1b377e6e.css rel=prefetch><link href=css/chunk-678c5bc5.bb167dd3.css rel=prefetch><link href=css/chunk-699b4bca.2a58a8e2.css rel=prefetch><link href=css/chunk-6dccb97c.f09fceff.css rel=prefetch><link href=css/chunk-6f5e9798.69c7071f.css rel=prefetch><link href=css/chunk-75da9c60.6346c86a.css rel=prefetch><link href=css/chunk-78378c3d.19aceb57.css rel=prefetch><link href=css/chunk-7f93e0d2.b382a663.css rel=prefetch><link href=css/chunk-a3d8b552.26e628b3.css rel=prefetch><link href=css/chunk-a6478ea0.6deeb9ee.css rel=prefetch><link href=css/chunk-bc5caa70.1a9dd268.css rel=prefetch><link href=css/chunk-c99ffd6a.68cc88e0.css rel=prefetch><link href=css/chunk-d869eb2e.b7a3d36c.css rel=prefetch><link href=css/chunk-e55aaa40.a8713f1e.css rel=prefetch><link href=css/chunk-eebc56cc.10d81372.css rel=prefetch><link href=css/chunk-efbe6f9e.f92aeab2.css rel=prefetch><link href=css/chunk-f9ae6c4c.39f76a32.css rel=prefetch><link href=css/chunk-feab943c.f3cdbb5b.css rel=prefetch><link href=js/chunk-00b4720e.c934d318.js rel=prefetch><link href=js/chunk-03688d1a.6e72c5fc.js rel=prefetch><link href=js/chunk-0480f547.9bb6c138.js rel=prefetch><link href=js/chunk-06fd5be4.89314364.js rel=prefetch><link href=js/chunk-08047175.e025ecad.js rel=prefetch><link href=js/chunk-0bc88494.e4a88ba0.js rel=prefetch><link href=js/chunk-0be3b119.f1b354ed.js rel=prefetch><link href=js/chunk-13367719.ae696748.js rel=prefetch><link href=js/chunk-1471826c.31d6a7eb.js rel=prefetch><link href=js/chunk-16844bb0.4dbf658a.js rel=prefetch><link href=js/chunk-1bc03f55.28ce1d8f.js rel=prefetch><link href=js/chunk-21368af4.32b3c663.js rel=prefetch><link href=js/chunk-23db9727.1af43e6d.js rel=prefetch><link href=js/chunk-23fed8b6.5bd64005.js rel=prefetch><link href=js/chunk-25b17d2e.4c2ef6c8.js rel=prefetch><link href=js/chunk-2609f0b8.cb7eaba7.js rel=prefetch><link href=js/chunk-262fe04e.23ef3d42.js rel=prefetch><link href=js/chunk-2adb88ef.cbe53943.js rel=prefetch><link href=js/chunk-2d0e1f21.d3ed2e41.js rel=prefetch><link href=js/chunk-42163e43.f363ac6b.js rel=prefetch><link href=js/chunk-42ebce82.c4c7c675.js rel=prefetch><link href=js/chunk-43e785bb.cb5fe646.js rel=prefetch><link href=js/chunk-44a40890.072f7276.js rel=prefetch><link href=js/chunk-44a6583c.79c06b90.js rel=prefetch><link href=js/chunk-4551f5db.a8e71318.js rel=prefetch><link href=js/chunk-470f9f3e.1fe8c362.js rel=prefetch><link href=js/chunk-473b6678.dfeaf2aa.js rel=prefetch><link href=js/chunk-4a8d1525.99bb9d36.js rel=prefetch><link href=js/chunk-4b898c1e.3ada8648.js rel=prefetch><link href=js/chunk-4ce1dbcd.d5e298cb.js rel=prefetch><link href=js/chunk-4d2775d6.469ee645.js rel=prefetch><link href=js/chunk-4f45167e.b33a29bc.js rel=prefetch><link href=js/chunk-4f6b291e.9c23f5d2.js rel=prefetch><link href=js/chunk-4fc2d3b6.7915d752.js rel=prefetch><link href=js/chunk-52b97a85.3b2f27a3.js rel=prefetch><link href=js/chunk-549ff1ed.3b97dd21.js rel=prefetch><link href=js/chunk-5bbbe134.d0fc77a6.js rel=prefetch><link href=js/chunk-5bf069da.99efe021.js rel=prefetch><link href=js/chunk-5c88181f.e3bf3df6.js rel=prefetch><link href=js/chunk-5ffe4358.f15be5d1.js rel=prefetch><link href=js/chunk-60fc6cce.3befc212.js rel=prefetch><link href=js/chunk-6269ad22.6998652c.js rel=prefetch><link href=js/chunk-6597d41a.d6354a59.js rel=prefetch><link href=js/chunk-678c5bc5.7326f587.js rel=prefetch><link href=js/chunk-699b4bca.9159338e.js rel=prefetch><link href=js/chunk-6dccb97c.6a961437.js rel=prefetch><link href=js/chunk-6f5e9798.910241f5.js rel=prefetch><link href=js/chunk-75da9c60.79b566a1.js rel=prefetch><link href=js/chunk-78378c3d.b814c86b.js rel=prefetch><link href=js/chunk-7f93e0d2.3f6865d7.js rel=prefetch><link href=js/chunk-a3d8b552.15fb7199.js rel=prefetch><link href=js/chunk-a6478ea0.2c362507.js rel=prefetch><link href=js/chunk-bc5caa70.07cde33d.js rel=prefetch><link href=js/chunk-c99ffd6a.c3e4758a.js rel=prefetch><link href=js/chunk-d869eb2e.27d9b51f.js rel=prefetch><link href=js/chunk-e55aaa40.cc47148e.js rel=prefetch><link href=js/chunk-eebc56cc.a1b631a0.js rel=prefetch><link href=js/chunk-efbe6f9e.f87c0d39.js rel=prefetch><link href=js/chunk-f9ae6c4c.13d13245.js rel=prefetch><link href=js/chunk-feab943c.8a137f98.js rel=prefetch><link href=css/app.3120cd93.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.5ab70cb5.js rel=preload as=script><link href=js/chunk-vendors.659c5cc6.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.3120cd93.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/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/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.24.js></script><script src=js/chunk-vendors.659c5cc6.js></script><script src=js/app.5ab70cb5.js></script></body></html>
\ No newline at end of file
(function(e){function n(n){for(var a,c,o=n[0],i=n[1],h=n[2],s=0,p=[];s<o.length;s++)c=o[s],Object.prototype.hasOwnProperty.call(r,c)&&r[c]&&p.push(r[c][0]),r[c]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);d&&d(n);while(p.length)p.shift()();return u.push.apply(u,h||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],a=!0,c=1;c<t.length;c++){var o=t[c];0!==r[o]&&(a=!1)}a&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var a={},c={app:0},r={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-00b4720e":"c934d318","chunk-03688d1a":"6e72c5fc","chunk-067f0b14":"ede8fd3d","chunk-06fd5be4":"89314364","chunk-470f9f3e":"1fe8c362","chunk-eebc56cc":"a1b631a0","chunk-0480f547":"9bb6c138","chunk-60fc6cce":"3befc212","chunk-08047175":"e025ecad","chunk-0be3b119":"f1b354ed","chunk-42ebce82":"c4c7c675","chunk-0bc88494":"e4a88ba0","chunk-13367719":"ae696748","chunk-1471826c":"31d6a7eb","chunk-16844bb0":"4dbf658a","chunk-18050ab8":"82bbc95d","chunk-1bc03f55":"28ce1d8f","chunk-21368af4":"32b3c663","chunk-23db9727":"1af43e6d","chunk-23fed8b6":"5bd64005","chunk-25b17d2e":"4c2ef6c8","chunk-262fe04e":"23ef3d42","chunk-2d0e1f21":"d3ed2e41","chunk-42163e43":"f363ac6b","chunk-43e785bb":"cb5fe646","chunk-44a40890":"072f7276","chunk-44a6583c":"79c06b90","chunk-4551f5db":"a8e71318","chunk-473b6678":"dfeaf2aa","chunk-4a8d1525":"99bb9d36","chunk-6269ad22":"6998652c","chunk-bd0a3336":"07bbe1a0","chunk-4b898c1e":"3ada8648","chunk-4f45167e":"b33a29bc","chunk-4f6b291e":"9c23f5d2","chunk-4fc2d3b6":"7915d752","chunk-52b97a85":"3b2f27a3","chunk-549ff1ed":"3b97dd21","chunk-5bf069da":"99efe021","chunk-5c88181f":"e3bf3df6","chunk-5ffe4358":"f15be5d1","chunk-6597d41a":"d6354a59","chunk-678c5bc5":"7326f587","chunk-699b4bca":"9159338e","chunk-6f5e9798":"910241f5","chunk-75da9c60":"79b566a1","chunk-78378c3d":"b814c86b","chunk-7f93e0d2":"3f6865d7","chunk-a3d8b552":"15fb7199","chunk-a6478ea0":"2c362507","chunk-bc5caa70":"07cde33d","chunk-c99ffd6a":"c3e4758a","chunk-d869eb2e":"27d9b51f","chunk-e55aaa40":"cc47148e","chunk-271d68a2":"3421acd5","chunk-efbe6f9e":"f87c0d39","chunk-f9ae6c4c":"13d13245","chunk-6dccb97c":"6a961437","chunk-7679cb8b":"d00920d9","chunk-feab943c":"8a137f98"}[e]+".js"}function i(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-00b4720e":1,"chunk-03688d1a":1,"chunk-067f0b14":1,"chunk-470f9f3e":1,"chunk-eebc56cc":1,"chunk-0480f547":1,"chunk-60fc6cce":1,"chunk-0be3b119":1,"chunk-42ebce82":1,"chunk-0bc88494":1,"chunk-13367719":1,"chunk-1471826c":1,"chunk-16844bb0":1,"chunk-18050ab8":1,"chunk-1bc03f55":1,"chunk-21368af4":1,"chunk-23db9727":1,"chunk-23fed8b6":1,"chunk-25b17d2e":1,"chunk-262fe04e":1,"chunk-42163e43":1,"chunk-43e785bb":1,"chunk-44a40890":1,"chunk-44a6583c":1,"chunk-4551f5db":1,"chunk-473b6678":1,"chunk-4a8d1525":1,"chunk-6269ad22":1,"chunk-bd0a3336":1,"chunk-4b898c1e":1,"chunk-4f45167e":1,"chunk-4f6b291e":1,"chunk-4fc2d3b6":1,"chunk-52b97a85":1,"chunk-549ff1ed":1,"chunk-5bf069da":1,"chunk-5c88181f":1,"chunk-5ffe4358":1,"chunk-6597d41a":1,"chunk-678c5bc5":1,"chunk-699b4bca":1,"chunk-6f5e9798":1,"chunk-75da9c60":1,"chunk-78378c3d":1,"chunk-7f93e0d2":1,"chunk-a3d8b552":1,"chunk-a6478ea0":1,"chunk-bc5caa70":1,"chunk-c99ffd6a":1,"chunk-d869eb2e":1,"chunk-e55aaa40":1,"chunk-271d68a2":1,"chunk-efbe6f9e":1,"chunk-f9ae6c4c":1,"chunk-6dccb97c":1,"chunk-7679cb8b":1,"chunk-feab943c":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var a="css/"+({}[e]||e)+"."+{"chunk-00b4720e":"c557c4e4","chunk-03688d1a":"15b32b6c","chunk-067f0b14":"fc1234e4","chunk-06fd5be4":"31d6cfe0","chunk-470f9f3e":"c566df98","chunk-eebc56cc":"10d81372","chunk-0480f547":"046408d9","chunk-60fc6cce":"d877ba25","chunk-08047175":"31d6cfe0","chunk-0be3b119":"e68eefde","chunk-42ebce82":"e821b46f","chunk-0bc88494":"f2c6fde5","chunk-13367719":"1e966bf3","chunk-1471826c":"806c059f","chunk-16844bb0":"2ad3334d","chunk-18050ab8":"903f8d92","chunk-1bc03f55":"cb6364a0","chunk-21368af4":"9a18fea8","chunk-23db9727":"ac3b1634","chunk-23fed8b6":"0cb72bbf","chunk-25b17d2e":"a46135dc","chunk-262fe04e":"32f0cb25","chunk-2d0e1f21":"31d6cfe0","chunk-42163e43":"6c086558","chunk-43e785bb":"c4b37a89","chunk-44a40890":"20c10a62","chunk-44a6583c":"18615f6f","chunk-4551f5db":"4e4b34f8","chunk-473b6678":"2cff114b","chunk-4a8d1525":"43dd04ad","chunk-6269ad22":"75b54ded","chunk-bd0a3336":"bfaf0c7d","chunk-4b898c1e":"07d02776","chunk-4f45167e":"ee441549","chunk-4f6b291e":"f20a99cd","chunk-4fc2d3b6":"e4f77a0d","chunk-52b97a85":"998e7f29","chunk-549ff1ed":"505e96b0","chunk-5bf069da":"c46a71c8","chunk-5c88181f":"71420912","chunk-5ffe4358":"cebe6710","chunk-6597d41a":"1b377e6e","chunk-678c5bc5":"bb167dd3","chunk-699b4bca":"2a58a8e2","chunk-6f5e9798":"69c7071f","chunk-75da9c60":"6346c86a","chunk-78378c3d":"19aceb57","chunk-7f93e0d2":"b382a663","chunk-a3d8b552":"26e628b3","chunk-a6478ea0":"6deeb9ee","chunk-bc5caa70":"1a9dd268","chunk-c99ffd6a":"68cc88e0","chunk-d869eb2e":"b7a3d36c","chunk-e55aaa40":"a8713f1e","chunk-271d68a2":"20f23d36","chunk-efbe6f9e":"f92aeab2","chunk-f9ae6c4c":"39f76a32","chunk-6dccb97c":"f09fceff","chunk-7679cb8b":"19d909aa","chunk-feab943c":"f3cdbb5b"}[e]+".css",r=i.p+a,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var h=u[o],s=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(s===a||s===r))return n()}var p=document.getElementsByTagName("style");for(o=0;o<p.length;o++){h=p[o],s=h.getAttribute("data-href");if(s===a||s===r)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var a=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=a,delete c[e],d.parentNode.removeChild(d),t(u)},d.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(d)})).then((function(){c[e]=0})));var a=r[e];if(0!==a)if(a)n.push(a[2]);else{var u=new Promise((function(n,t){a=r[e]=[n,t]}));n.push(a[2]=u);var h,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var p=new Error;h=function(n){s.onerror=s.onload=null,clearTimeout(d);var t=r[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;p.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",p.name="ChunkLoadError",p.type=a,p.request=c,t[1](p)}r[e]=void 0}};var d=setTimeout((function(){h({type:"timeout",target:s})}),12e4);s.onerror=s.onload=h,document.head.appendChild(s)}return Promise.all(n)},i.m=e,i.c=a,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)i.d(t,a,function(n){return e[n]}.bind(null,a));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],s=h.push.bind(h);h.push=n,h=h.slice();for(var p=0;p<h.length;p++)n(h[p]);var d=s;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var a={"./app-controls/app-detail.vue":["9bc6","chunk-feab943c"],"./app-controls/app-list.vue":["4a78","chunk-549ff1ed"],"./app-controls/app-market.vue":["53b1","chunk-08047175","chunk-0be3b119"],"./app-controls/index.vue":["b04c","chunk-1471826c"],"./apps/app-auth.vue":["c686","chunk-a3d8b552"],"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-06fd5be4","chunk-eebc56cc","chunk-60fc6cce"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-06fd5be4","chunk-eebc56cc","chunk-0480f547"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-5c88181f"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-44a40890"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-5ffe4358"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-06fd5be4","chunk-470f9f3e"],"./apps/customer-app/index.vue":["c3d9","chunk-13367719"],"./apps/gic-protocol.vue":["7ba1","chunk-efbe6f9e"],"./apps/index.vue":["7f2e","chunk-43e785bb"],"./apps/target-manage/MonthTarget.vue":["5d04","chunk-4f6b291e"],"./apps/target-manage/edit-store-quota.vue":["d091","chunk-eebc56cc","chunk-271d68a2"],"./apps/target-manage/index.vue":["9924","chunk-6f5e9798"],"./apps/target-manage/perfect-day-target.vue":["8e1b","chunk-067f0b14"],"./apps/target-manage/perfect-sale-target.vue":["d1a4","chunk-18050ab8"],"./apps/target-manage/quota-set.vue":["2751","chunk-f9ae6c4c","chunk-7679cb8b"],"./apps/target-manage/set-month-target.vue":["7d31","chunk-2d0e1f21"],"./apps/target-manage/target-list.vue":["fc87","chunk-03688d1a"],"./apps/target-manage/target-set.vue":["0db3","chunk-23fed8b6"],"./apps/target-manage/target-store.vue":["6ce2","chunk-f9ae6c4c","chunk-6dccb97c"],"./business/audit-log.vue":["0912","chunk-473b6678"],"./business/auth-merchant.vue":["56b3","chunk-c99ffd6a"],"./business/contacts.vue":["a269","chunk-08047175","chunk-42ebce82"],"./business/index.vue":["50c8","chunk-75da9c60"],"./business/new-auth-merchant.vue":["62a7","chunk-4a8d1525","chunk-bd0a3336"],"./business/sync-log.vue":["b155","chunk-5bf069da"],"./enterprise/admin-list.vue":["db80","chunk-16844bb0"],"./enterprise/admin-list/role-list.vue":["0082","chunk-23db9727"],"./enterprise/edit-admin.vue":["7dc6","chunk-4a8d1525","chunk-6269ad22"],"./enterprise/edit-role.vue":["2249","chunk-4f45167e"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-e55aaa40"],"./enterprise/edit-store-role.vue":["a960","chunk-52b97a85"],"./enterprise/enterprise-set.vue":["b735","chunk-d869eb2e"],"./enterprise/index.vue":["ea02","chunk-699b4bca"],"./enterprise/store-admin-list.vue":["2058","chunk-678c5bc5"],"./enterprise/super-admin.vue":["9b74","chunk-1bc03f55"],"./error-page/403.vue":["5140","chunk-42163e43"],"./error-page/404.vue":["1db4","chunk-a6478ea0"],"./error-page/500.vue":["721c","chunk-00b4720e"],"./error-page/gic-error.vue":["442d","chunk-4fc2d3b6"],"./error-page/index.vue":["4cf1","chunk-4551f5db"],"./index/index.vue":["37f9","chunk-7f93e0d2"],"./login/index.vue":["9ed6","chunk-6597d41a"],"./review-center/audit-config.vue":["daa8","chunk-4b898c1e"],"./review-center/audit-group-list.vue":["ff23","chunk-bc5caa70"],"./review-center/audit-item-list.vue":["727c","chunk-78378c3d"],"./review-center/create-audit-group.vue":["ea11","chunk-0bc88494"],"./review-center/create-audit-item.vue":["e0c0","chunk-25b17d2e"],"./review-center/index.vue":["2cad","chunk-21368af4"],"./review-center/reviewed.vue":["dacc","chunk-44a6583c"],"./review-center/unreview.vue":["1005","chunk-262fe04e"]};function c(e){if(!t.o(a,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],c=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(c)}))}c.keys=function(){return Object.keys(a)},c.id="1a5d",e.exports=c},"4f94":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d"),t("db4d");var a=t("1368"),c=t.n(a),r=(t("0fae"),t("4f94"),t("8bbf")),u=t.n(r),o=t("8c4f"),i=t("cebe"),h=t.n(i),s=t("5c96"),p=t.n(s),d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view")],1)},f=[],b={name:"App"},m=b,k=t("2877"),l=Object(k["a"])(m,d,f,!1,null,null,null),g=l.exports,v=t("e2b2"),w=t.n(v),y=function(e){t.e("chunk-4551f5db").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},x=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:w()("login","index")},{path:"/index",name:"index",component:w()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:w()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:w()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:w()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:w()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:w()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:w()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:w()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:w()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:w()("review-center","unreview")},{path:"/audit-group-list",meta:{title:"审核组列表"},component:w()("review-center","audit-group-list")},{path:"/create-audit-group",meta:{title:"新建、编辑审核组"},component:w()("review-center","create-audit-group")},{path:"/audit-item-list",meta:{title:"审核事项列表"},component:w()("review-center","audit-item-list")},{path:"/create-audit-item",meta:{title:"新建、编辑审核事项"},component:w()("review-center","create-audit-item")},{path:"/audit-config",meta:{title:"审核设置"},component:w()("review-center","audit-config")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:w()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:w()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:w()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:w()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:w()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:w()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:w()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:w()("enterprise","super-admin")}]},{path:"/app-controls",meta:{title:"工作台"},redirect:"/app-list",component:w()("app-controls","index"),children:[{path:"/app-list",meta:{title:"服务应用"},component:w()("app-controls","app-list")},{path:"/app-detail",meta:{title:"服务应用详情"},component:w()("app-controls","app-detail")},{path:"/app-market",meta:{title:"服务市场"},component:w()("app-controls","app-market")}]},{path:"/apps",name:"企业应用",component:w()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",component:w()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:w()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:w()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:w()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:w()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:w()("apps/customer-app","customer-assign")}]},{path:"/target-manage",name:"指标管理",component:w()("apps/target-manage","index"),children:[{path:"/target-list",name:"指标列表",component:w()("apps/target-manage","target-list")},{path:"/target-store",name:"查看门店",component:w()("apps/target-manage","target-store")},{path:"/perfect-sale-target",name:"完善导购指标",component:w()("apps/target-manage","perfect-sale-target")},{path:"/perfect-day-target",name:"完善日指标",component:w()("apps/target-manage","perfect-day-target")},{path:"/set-month-target",name:"设置月指标",component:w()("apps/target-manage","set-month-target")},{path:"/quota-set",name:"指标设置",component:w()("apps/target-manage","quota-set")},{path:"/edit-store-quota",name:"编辑门店指标",component:w()("apps/target-manage","edit-store-quota")},{path:"/target-set",name:"下发设置",component:w()("apps/target-manage","target-set")}]}]},{path:"/app-auth",name:"应用授权",component:w()("apps","app-auth")},{path:"/gic-protocol",meta:{title:"协议"},component:w()("apps","gic-protocol")},{path:"/gic-error",name:"gic跳转失败页",component:w()("error-page","gic-error")},{path:"/403",name:"无权访问",component:y},{path:"/404",name:"error404",component:y},{path:"/500",name:"error500",component:y},{path:"*",redirect:"/404",hidden:!0}],M=o["a"].prototype.push;o["a"].prototype.push=function(e){return M.call(this,e).catch((function(e){return e}))};var S=new o["a"]({mode:"history",base:"/haoban-4/",routes:x}),O=S,D=t("5880"),j=t.n(D);u.a.use(j.a);var E=new j.a.Store({state:{storeInfo:[]},mutations:{saveStore:function(e,n){e.storeInfo=n},clearData:function(e){e.storeInfo=[]}},actions:{saveStoreInfo:function(e,n){e.commit("saveStore",n)},clearStoreData:function(e,n){e.commit("clearData")}}}),A=(t("c5f6"),t("3b2b"),t("a481"),t("6b54"),function(e,n){if(!e)return"";e=10===e.toString().length?1e3*e:e;var t=new Date(e),a={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var c in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+c+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?a[c]:("00"+a[c]).substr((""+a[c]).length)));return n}),P=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,a=n.getDate()<10?"0"+n.getDate():n.getDate(),c=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(c,"-").concat(a," ").concat(r,":").concat(u,":").concat(o)},T=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,a=n.getDate()<10?"0"+n.getDate():n.getDate(),c=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(c,".").concat(a," ").concat(r,":").concat(u,":").concat(o)},C=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,a=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(a)},L=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,a=n.getDate()<10?"0"+n.getDate():n.getDate(),c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c,"-").concat(a)},H=function(e){if(!e)return"";var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),a=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),c=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(a,":").concat(c)},_=function(e){if(!e)return"";var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var a=Math.floor(t/864e5),c=t%864e5,r=Math.floor(c/36e5),u=c%36e5,o=Math.floor(u/6e4);return"".concat(a,"天").concat(r,"小时").concat(o,"分")},F=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},N=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},R=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},q=function(e){if(!e)return"00:00:00";var n=e/1e3,t=Math.floor(n/60/60/24),a=24*t+Math.floor(n/60/60)%24<10?"0"+(24*t+Math.floor(n/60/60)%24):24*t+Math.floor(n/60/60)%24,c=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,r=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(a,":").concat(c,":").concat(r)},Y={dateFormat:A,formatTimeStamp:P,timeStampToYm:C,timeStampToYmd:L,timeStampToHms:H,formatTimeYmdHms:T,formatPhoneNum:F,formatName:N,timeStampSpace:_,formatTime:q,formatWord:R},$=(t("96cf"),t("1da1")),I=(t("5df3"),t("b775")),U=[],B=[],V={};function J(){var e=new Promise((function(e){Object(I["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){B=W(e.result||[])})).finally(e)})),n=new Promise((function(e){Object(I["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){V=K(e.result||[])})).finally(e)}));return Promise.all([e,n])}function W(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(W(e.children)))})),n}function K(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function z(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(z(e.children))),n.push(e.path)})),n}function G(e,n,t){var a=B.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(a)return Object.assign(h.a.defaults.headers.common,{route:e.path.replace(/^\//,"")}),t();U.some((function(n){return n==e.path}))||0==B.length?t("/gic-error"):(Object.assign(h.a.defaults.headers.common,{route:B[0].replace(/^\//,"")}),t(B[0]))}function Q(e){return!!V[e]}var X=function(e){var n=e.projectPath,t=e.whiteRoute,a=e.router,c=e.routes,r=e.createApp,o=u.a.prototype.$loading({lock:!0,customClass:"medium"});window.addEventListener("load",Object($["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")||-1!=u.indexOf("/gic-error")){e.next=5;break}return Object.assign(h.a.defaults.headers.common,{project:n,route:u.replace(/\/haoban-4\//,"")}),e.next=5,J();case 5:Array.isArray(t)&&(B=B.concat(t)),Array.isArray(c)&&(U=z(c)),a.beforeEach(G),"function"==typeof r&&(o.close(),r());case 9:case"end":return e.stop()}}),e)}))))},Z=t("f121");c.a.polyfill(),window.Vue=u.a,u.a.use(o["a"]),u.a.use(p.a),h.a.defaults.withCredentials=!0,u.a.prototype.axios=h.a,u.a.prototype.$itemPerm=Q,u.a.prototype.$itemCode=Z["a"],u.a.config.devtools=!1,u.a.config.productionTip=!1,Object.keys(Y).forEach((function(e){u.a.filter(e,Y[e])})),X({projectPath:"haoban",whiteRoute:["/login","/contactsList","/apps","/gic-error","/403","/404","/500"],router:O,routes:x,createApp:function(){new u.a({router:O,store:E,render:function(e){return e(g)}}).$mount("#app")}})},5880:function(e,n){e.exports=Vuex},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var a=t("cebe"),c=t.n(a),r=t("4328"),u=t.n(r),o=t("5c96"),i=t("f121");function h(e){switch(e){case 404:window.location.href=i["c"]+"/haoban-4/404";break;case 403:window.location.href=i["c"]+"/haoban-4/403";break;case 500:window.location.href=i["c"]+"/haoban-4/500";break}}c.a.defaults.baseURL=i["c"],c.a.defaults.withCredentials=!0;var s=function(e,n,t){n=Object.assign({},n),e=Object.assign({},e);var a={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(Object.assign(a,e,t),a.useFormData&&(n=u.a.stringify(n)),a.method.toLowerCase()){case"get":a.params=n;break;case"post":a.data=n;break;default:a.data=n;break}return new Promise((function(e,n){c()(a).then((function(t){var c=t.data;return c.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/login"),n(c)):a.useIntercept&&c.code!=i["d"]?(Object(o["Message"])({message:"0002"==c.code?"数据加载失败":c.message||"接口错误",type:"warning"}),n(c)):void e(c)})).catch((function(e){var t=e.response||{},a=t.data||{};h(e.response.status),Object(o["Message"])({message:a.message||"数据加载失败",type:"warning"}),n(e)}))}))}},cebe:function(e,n){e.exports=axios},e2b2:function(e,n,t){e.exports=function(e,n){return function(a){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){a(e)}))}}},f121:function(e,n,t){"use strict";function a(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t.d(n,"c",(function(){return c})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var c=a(),r="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(function(e){function n(n){for(var c,a,o=n[0],i=n[1],h=n[2],s=0,p=[];s<o.length;s++)a=o[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&p.push(r[a][0]),r[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);d&&d(n);while(p.length)p.shift()();return u.push.apply(u,h||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==r[o]&&(c=!1)}c&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},r={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-00b4720e":"c934d318","chunk-03688d1a":"6e72c5fc","chunk-06fd5be4":"89314364","chunk-470f9f3e":"1fe8c362","chunk-eebc56cc":"a1b631a0","chunk-0480f547":"9bb6c138","chunk-60fc6cce":"3befc212","chunk-08047175":"e025ecad","chunk-0be3b119":"f1b354ed","chunk-42ebce82":"c4c7c675","chunk-0bc88494":"e4a88ba0","chunk-13367719":"ae696748","chunk-1471826c":"31d6a7eb","chunk-16844bb0":"4dbf658a","chunk-1bc03f55":"28ce1d8f","chunk-21368af4":"32b3c663","chunk-23db9727":"1af43e6d","chunk-23fed8b6":"5bd64005","chunk-25b17d2e":"4c2ef6c8","chunk-262fe04e":"23ef3d42","chunk-2adb88ef":"cbe53943","chunk-2d0e1f21":"d3ed2e41","chunk-42163e43":"f363ac6b","chunk-43e785bb":"cb5fe646","chunk-44a40890":"072f7276","chunk-44a6583c":"79c06b90","chunk-4551f5db":"a8e71318","chunk-473b6678":"dfeaf2aa","chunk-4a8d1525":"99bb9d36","chunk-4d2775d6":"469ee645","chunk-6269ad22":"6998652c","chunk-4b898c1e":"3ada8648","chunk-4ce1dbcd":"d5e298cb","chunk-4f45167e":"b33a29bc","chunk-4f6b291e":"9c23f5d2","chunk-4fc2d3b6":"7915d752","chunk-52b97a85":"3b2f27a3","chunk-549ff1ed":"3b97dd21","chunk-5bf069da":"99efe021","chunk-5c88181f":"e3bf3df6","chunk-5ffe4358":"f15be5d1","chunk-6597d41a":"d6354a59","chunk-678c5bc5":"7326f587","chunk-699b4bca":"9159338e","chunk-6f5e9798":"910241f5","chunk-75da9c60":"79b566a1","chunk-78378c3d":"b814c86b","chunk-7f93e0d2":"3f6865d7","chunk-a3d8b552":"15fb7199","chunk-a6478ea0":"2c362507","chunk-bc5caa70":"07cde33d","chunk-c99ffd6a":"c3e4758a","chunk-d869eb2e":"27d9b51f","chunk-e55aaa40":"cc47148e","chunk-5bbbe134":"d0fc77a6","chunk-efbe6f9e":"f87c0d39","chunk-f9ae6c4c":"13d13245","chunk-2609f0b8":"cb7eaba7","chunk-6dccb97c":"6a961437","chunk-feab943c":"8a137f98"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-00b4720e":1,"chunk-03688d1a":1,"chunk-470f9f3e":1,"chunk-eebc56cc":1,"chunk-0480f547":1,"chunk-60fc6cce":1,"chunk-0be3b119":1,"chunk-42ebce82":1,"chunk-0bc88494":1,"chunk-13367719":1,"chunk-1471826c":1,"chunk-16844bb0":1,"chunk-1bc03f55":1,"chunk-21368af4":1,"chunk-23db9727":1,"chunk-23fed8b6":1,"chunk-25b17d2e":1,"chunk-262fe04e":1,"chunk-2adb88ef":1,"chunk-42163e43":1,"chunk-43e785bb":1,"chunk-44a40890":1,"chunk-44a6583c":1,"chunk-4551f5db":1,"chunk-473b6678":1,"chunk-4a8d1525":1,"chunk-4d2775d6":1,"chunk-6269ad22":1,"chunk-4b898c1e":1,"chunk-4ce1dbcd":1,"chunk-4f45167e":1,"chunk-4f6b291e":1,"chunk-4fc2d3b6":1,"chunk-52b97a85":1,"chunk-549ff1ed":1,"chunk-5bf069da":1,"chunk-5c88181f":1,"chunk-5ffe4358":1,"chunk-6597d41a":1,"chunk-678c5bc5":1,"chunk-699b4bca":1,"chunk-6f5e9798":1,"chunk-75da9c60":1,"chunk-78378c3d":1,"chunk-7f93e0d2":1,"chunk-a3d8b552":1,"chunk-a6478ea0":1,"chunk-bc5caa70":1,"chunk-c99ffd6a":1,"chunk-d869eb2e":1,"chunk-e55aaa40":1,"chunk-5bbbe134":1,"chunk-efbe6f9e":1,"chunk-f9ae6c4c":1,"chunk-2609f0b8":1,"chunk-6dccb97c":1,"chunk-feab943c":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-00b4720e":"c557c4e4","chunk-03688d1a":"15b32b6c","chunk-06fd5be4":"31d6cfe0","chunk-470f9f3e":"c566df98","chunk-eebc56cc":"10d81372","chunk-0480f547":"046408d9","chunk-60fc6cce":"d877ba25","chunk-08047175":"31d6cfe0","chunk-0be3b119":"e68eefde","chunk-42ebce82":"e821b46f","chunk-0bc88494":"f2c6fde5","chunk-13367719":"1e966bf3","chunk-1471826c":"806c059f","chunk-16844bb0":"2ad3334d","chunk-1bc03f55":"cb6364a0","chunk-21368af4":"9a18fea8","chunk-23db9727":"ac3b1634","chunk-23fed8b6":"0cb72bbf","chunk-25b17d2e":"a46135dc","chunk-262fe04e":"32f0cb25","chunk-2adb88ef":"96fd05c5","chunk-2d0e1f21":"31d6cfe0","chunk-42163e43":"6c086558","chunk-43e785bb":"c4b37a89","chunk-44a40890":"20c10a62","chunk-44a6583c":"18615f6f","chunk-4551f5db":"4e4b34f8","chunk-473b6678":"2cff114b","chunk-4a8d1525":"43dd04ad","chunk-4d2775d6":"d2a76b72","chunk-6269ad22":"75b54ded","chunk-4b898c1e":"07d02776","chunk-4ce1dbcd":"77a30101","chunk-4f45167e":"ee441549","chunk-4f6b291e":"f20a99cd","chunk-4fc2d3b6":"e4f77a0d","chunk-52b97a85":"998e7f29","chunk-549ff1ed":"505e96b0","chunk-5bf069da":"c46a71c8","chunk-5c88181f":"71420912","chunk-5ffe4358":"cebe6710","chunk-6597d41a":"1b377e6e","chunk-678c5bc5":"bb167dd3","chunk-699b4bca":"2a58a8e2","chunk-6f5e9798":"69c7071f","chunk-75da9c60":"6346c86a","chunk-78378c3d":"19aceb57","chunk-7f93e0d2":"b382a663","chunk-a3d8b552":"26e628b3","chunk-a6478ea0":"6deeb9ee","chunk-bc5caa70":"1a9dd268","chunk-c99ffd6a":"68cc88e0","chunk-d869eb2e":"b7a3d36c","chunk-e55aaa40":"a8713f1e","chunk-5bbbe134":"e0acb8ff","chunk-efbe6f9e":"f92aeab2","chunk-f9ae6c4c":"39f76a32","chunk-2609f0b8":"d72dd2fa","chunk-6dccb97c":"f09fceff","chunk-feab943c":"f3cdbb5b"}[e]+".css",r=i.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var h=u[o],s=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(s===c||s===r))return n()}var p=document.getElementsByTagName("style");for(o=0;o<p.length;o++){h=p[o],s=h.getAttribute("data-href");if(s===c||s===r)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var c=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete a[e],d.parentNode.removeChild(d),t(u)},d.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(d)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=u);var h,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var p=new Error;h=function(n){s.onerror=s.onload=null,clearTimeout(d);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;p.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",p.name="ChunkLoadError",p.type=c,p.request=a,t[1](p)}r[e]=void 0}};var d=setTimeout((function(){h({type:"timeout",target:s})}),12e4);s.onerror=s.onload=h,document.head.appendChild(s)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],s=h.push.bind(h);h.push=n,h=h.slice();for(var p=0;p<h.length;p++)n(h[p]);var d=s;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./app-controls/app-detail.vue":["9bc6","chunk-feab943c"],"./app-controls/app-list.vue":["4a78","chunk-549ff1ed"],"./app-controls/app-market.vue":["53b1","chunk-08047175","chunk-0be3b119"],"./app-controls/index.vue":["b04c","chunk-1471826c"],"./apps/app-auth.vue":["c686","chunk-a3d8b552"],"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-06fd5be4","chunk-eebc56cc","chunk-60fc6cce"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-06fd5be4","chunk-eebc56cc","chunk-0480f547"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-5c88181f"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-44a40890"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-5ffe4358"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-06fd5be4","chunk-470f9f3e"],"./apps/customer-app/index.vue":["c3d9","chunk-13367719"],"./apps/gic-protocol.vue":["7ba1","chunk-efbe6f9e"],"./apps/index.vue":["7f2e","chunk-43e785bb"],"./apps/target-manage/MonthTarget.vue":["5d04","chunk-4f6b291e"],"./apps/target-manage/edit-store-quota.vue":["d091","chunk-eebc56cc","chunk-5bbbe134"],"./apps/target-manage/index.vue":["9924","chunk-6f5e9798"],"./apps/target-manage/perfect-day-target.vue":["8e1b","chunk-2adb88ef"],"./apps/target-manage/perfect-sale-target.vue":["d1a4","chunk-4ce1dbcd"],"./apps/target-manage/quota-set.vue":["2751","chunk-f9ae6c4c","chunk-2609f0b8"],"./apps/target-manage/set-month-target.vue":["7d31","chunk-2d0e1f21"],"./apps/target-manage/target-list.vue":["fc87","chunk-03688d1a"],"./apps/target-manage/target-set.vue":["0db3","chunk-23fed8b6"],"./apps/target-manage/target-store.vue":["6ce2","chunk-f9ae6c4c","chunk-6dccb97c"],"./business/audit-log.vue":["0912","chunk-473b6678"],"./business/auth-merchant.vue":["56b3","chunk-c99ffd6a"],"./business/contacts.vue":["a269","chunk-08047175","chunk-42ebce82"],"./business/index.vue":["50c8","chunk-75da9c60"],"./business/new-auth-merchant.vue":["62a7","chunk-4a8d1525","chunk-4d2775d6"],"./business/sync-log.vue":["b155","chunk-5bf069da"],"./enterprise/admin-list.vue":["db80","chunk-16844bb0"],"./enterprise/admin-list/role-list.vue":["0082","chunk-23db9727"],"./enterprise/edit-admin.vue":["7dc6","chunk-4a8d1525","chunk-6269ad22"],"./enterprise/edit-role.vue":["2249","chunk-4f45167e"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-e55aaa40"],"./enterprise/edit-store-role.vue":["a960","chunk-52b97a85"],"./enterprise/enterprise-set.vue":["b735","chunk-d869eb2e"],"./enterprise/index.vue":["ea02","chunk-699b4bca"],"./enterprise/store-admin-list.vue":["2058","chunk-678c5bc5"],"./enterprise/super-admin.vue":["9b74","chunk-1bc03f55"],"./error-page/403.vue":["5140","chunk-42163e43"],"./error-page/404.vue":["1db4","chunk-a6478ea0"],"./error-page/500.vue":["721c","chunk-00b4720e"],"./error-page/gic-error.vue":["442d","chunk-4fc2d3b6"],"./error-page/index.vue":["4cf1","chunk-4551f5db"],"./index/index.vue":["37f9","chunk-7f93e0d2"],"./login/index.vue":["9ed6","chunk-6597d41a"],"./review-center/audit-config.vue":["daa8","chunk-4b898c1e"],"./review-center/audit-group-list.vue":["ff23","chunk-bc5caa70"],"./review-center/audit-item-list.vue":["727c","chunk-78378c3d"],"./review-center/create-audit-group.vue":["ea11","chunk-0bc88494"],"./review-center/create-audit-item.vue":["e0c0","chunk-25b17d2e"],"./review-center/index.vue":["2cad","chunk-21368af4"],"./review-center/reviewed.vue":["dacc","chunk-44a6583c"],"./review-center/unreview.vue":["1005","chunk-262fe04e"]};function a(e){if(!t.o(c,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=c[e],a=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(a)}))}a.keys=function(){return Object.keys(c)},a.id="1a5d",e.exports=a},"4f94":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d"),t("db4d");var c=t("1368"),a=t.n(c),r=(t("0fae"),t("4f94"),t("8bbf")),u=t.n(r),o=t("8c4f"),i=t("cebe"),h=t.n(i),s=t("5c96"),p=t.n(s),d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view")],1)},f=[],b={name:"App"},m=b,k=t("2877"),l=Object(k["a"])(m,d,f,!1,null,null,null),g=l.exports,v=t("e2b2"),w=t.n(v),y=function(e){t.e("chunk-4551f5db").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},x=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:w()("login","index")},{path:"/index",name:"index",component:w()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:w()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:w()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:w()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:w()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:w()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:w()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:w()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:w()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:w()("review-center","unreview")},{path:"/audit-group-list",meta:{title:"审核组列表"},component:w()("review-center","audit-group-list")},{path:"/create-audit-group",meta:{title:"新建、编辑审核组"},component:w()("review-center","create-audit-group")},{path:"/audit-item-list",meta:{title:"审核事项列表"},component:w()("review-center","audit-item-list")},{path:"/create-audit-item",meta:{title:"新建、编辑审核事项"},component:w()("review-center","create-audit-item")},{path:"/audit-config",meta:{title:"审核设置"},component:w()("review-center","audit-config")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:w()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:w()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:w()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:w()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:w()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:w()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:w()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:w()("enterprise","super-admin")}]},{path:"/app-controls",meta:{title:"工作台"},redirect:"/app-list",component:w()("app-controls","index"),children:[{path:"/app-list",meta:{title:"服务应用"},component:w()("app-controls","app-list")},{path:"/app-detail",meta:{title:"服务应用详情"},component:w()("app-controls","app-detail")},{path:"/app-market",meta:{title:"服务市场"},component:w()("app-controls","app-market")}]},{path:"/apps",name:"企业应用",component:w()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",component:w()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:w()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:w()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:w()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:w()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:w()("apps/customer-app","customer-assign")}]},{path:"/target-manage",name:"指标管理",component:w()("apps/target-manage","index"),children:[{path:"/target-list",name:"指标列表",component:w()("apps/target-manage","target-list")},{path:"/target-store",name:"查看门店",component:w()("apps/target-manage","target-store")},{path:"/perfect-sale-target",name:"完善导购指标",component:w()("apps/target-manage","perfect-sale-target")},{path:"/perfect-day-target",name:"完善日指标",component:w()("apps/target-manage","perfect-day-target")},{path:"/set-month-target",name:"设置月指标",component:w()("apps/target-manage","set-month-target")},{path:"/quota-set",name:"指标设置",component:w()("apps/target-manage","quota-set")},{path:"/edit-store-quota",name:"编辑门店指标",component:w()("apps/target-manage","edit-store-quota")},{path:"/target-set",name:"下发设置",component:w()("apps/target-manage","target-set")}]}]},{path:"/app-auth",name:"应用授权",component:w()("apps","app-auth")},{path:"/gic-protocol",meta:{title:"协议"},component:w()("apps","gic-protocol")},{path:"/gic-error",name:"gic跳转失败页",component:w()("error-page","gic-error")},{path:"/403",name:"无权访问",component:y},{path:"/404",name:"error404",component:y},{path:"/500",name:"error500",component:y},{path:"*",redirect:"/404",hidden:!0}],M=o["a"].prototype.push;o["a"].prototype.push=function(e){return M.call(this,e).catch((function(e){return e}))};var S=new o["a"]({mode:"history",base:"/haoban-4/",routes:x}),O=S,D=t("5880"),j=t.n(D);u.a.use(j.a);var E=new j.a.Store({state:{storeInfo:[]},mutations:{saveStore:function(e,n){e.storeInfo=n},clearData:function(e){e.storeInfo=[]}},actions:{saveStoreInfo:function(e,n){e.commit("saveStore",n)},clearStoreData:function(e,n){e.commit("clearData")}}}),A=(t("c5f6"),t("3b2b"),t("a481"),t("6b54"),function(e,n){if(!e)return"";e=10===e.toString().length?1e3*e:e;var t=new Date(e),c={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[a]:("00"+c[a]).substr((""+c[a]).length)));return n}),P=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c," ").concat(r,":").concat(u,":").concat(o)},T=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(a,".").concat(c," ").concat(r,":").concat(u,":").concat(o)},C=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c)},L=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c)},H=function(e){if(!e)return"";var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),c=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),a=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(a)},_=function(e){if(!e)return"";var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var c=Math.floor(t/864e5),a=t%864e5,r=Math.floor(a/36e5),u=a%36e5,o=Math.floor(u/6e4);return"".concat(c,"天").concat(r,"小时").concat(o,"分")},F=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},N=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},R=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},q=function(e){if(!e)return"00:00:00";var n=e/1e3,t=Math.floor(n/60/60/24),c=24*t+Math.floor(n/60/60)%24<10?"0"+(24*t+Math.floor(n/60/60)%24):24*t+Math.floor(n/60/60)%24,a=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,r=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(a,":").concat(r)},Y={dateFormat:A,formatTimeStamp:P,timeStampToYm:C,timeStampToYmd:L,timeStampToHms:H,formatTimeYmdHms:T,formatPhoneNum:F,formatName:N,timeStampSpace:_,formatTime:q,formatWord:R},$=(t("96cf"),t("1da1")),I=(t("5df3"),t("b775")),U=[],B=[],V={};function J(){var e=new Promise((function(e){Object(I["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){B=W(e.result||[])})).finally(e)})),n=new Promise((function(e){Object(I["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){V=K(e.result||[])})).finally(e)}));return Promise.all([e,n])}function W(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(W(e.children)))})),n}function K(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function z(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(z(e.children))),n.push(e.path)})),n}function G(e,n,t){var c=B.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return Object.assign(h.a.defaults.headers.common,{route:e.path.replace(/^\//,"")}),t();U.some((function(n){return n==e.path}))||0==B.length?t("/gic-error"):(Object.assign(h.a.defaults.headers.common,{route:B[0].replace(/^\//,"")}),t(B[0]))}function Q(e){return!!V[e]}var X=function(e){var n=e.projectPath,t=e.whiteRoute,c=e.router,a=e.routes,r=e.createApp,o=u.a.prototype.$loading({lock:!0,customClass:"medium"});window.addEventListener("load",Object($["a"])(regeneratorRuntime.mark((function e(){var u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.pathname,-1!=u.indexOf("/login")||-1!=u.indexOf("/gic-error")){e.next=5;break}return Object.assign(h.a.defaults.headers.common,{project:n,route:u.replace(/\/haoban-4\//,"")}),e.next=5,J();case 5:Array.isArray(t)&&(B=B.concat(t)),Array.isArray(a)&&(U=z(a)),c.beforeEach(G),"function"==typeof r&&(o.close(),r());case 9:case"end":return e.stop()}}),e)}))))},Z=t("f121");a.a.polyfill(),window.Vue=u.a,u.a.use(o["a"]),u.a.use(p.a),h.a.defaults.withCredentials=!0,u.a.prototype.axios=h.a,u.a.prototype.$itemPerm=Q,u.a.prototype.$itemCode=Z["a"],u.a.config.devtools=!1,u.a.config.productionTip=!1,Object.keys(Y).forEach((function(e){u.a.filter(e,Y[e])})),X({projectPath:"haoban",whiteRoute:["/login","/contactsList","/apps","/gic-error","/403","/404","/500"],router:O,routes:x,createApp:function(){new u.a({router:O,store:E,render:function(e){return e(g)}}).$mount("#app")}})},5880:function(e,n){e.exports=Vuex},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var c=t("cebe"),a=t.n(c),r=t("4328"),u=t.n(r),o=t("5c96"),i=t("f121");function h(e){switch(e){case 404:window.location.href=i["c"]+"/haoban-4/404";break;case 403:window.location.href=i["c"]+"/haoban-4/403";break;case 500:window.location.href=i["c"]+"/haoban-4/500";break}}a.a.defaults.baseURL=i["c"],a.a.defaults.withCredentials=!0;var s=function(e,n,t){n=Object.assign({},n),e=Object.assign({},e);var c={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(Object.assign(c,e,t),c.useFormData&&(n=u.a.stringify(n)),c.method.toLowerCase()){case"get":c.params=n;break;case"post":c.data=n;break;default:c.data=n;break}return new Promise((function(e,n){a()(c).then((function(t){var a=t.data;return a.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/login"),n(a)):c.useIntercept&&a.code!=i["d"]?(Object(o["Message"])({message:"0002"==a.code?"数据加载失败":a.message||"接口错误",type:"warning"}),n(a)):void e(a)})).catch((function(e){var t=e.response||{},c=t.data||{};h(e.response.status),Object(o["Message"])({message:c.message||"数据加载失败",type:"warning"}),n(e)}))}))}},cebe:function(e,n){e.exports=axios},e2b2:function(e,n,t){e.exports=function(e,n){return function(c){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){c(e)}))}}},f121:function(e,n,t){"use strict";function c(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t.d(n,"c",(function(){return a})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var a=c(),r="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-067f0b14"],{"264d":function(e,t,r){},"28a5":function(e,t,r){"use strict";var a=r("aae3"),n=r("cb7c"),o=r("ebd6"),i=r("0390"),l=r("9def"),s=r("5f1b"),c=r("520a"),f=r("79e5"),u=Math.min,m=[].push,p="split",d="length",g="lastIndex",b=4294967295,v=!f((function(){RegExp(b,"y")}));r("214f")("split",2,(function(e,t,r,f){var h;return h="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[d]||2!="ab"[p](/(?:ab)*/)[d]||4!="."[p](/(.?)(.?)/)[d]||"."[p](/()()/)[d]>1||""[p](/.?/)[d]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return r.call(n,e,t);var o,i,l,s=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,p=void 0===t?b:t>>>0,v=new RegExp(e.source,f+"g");while(o=c.call(v,n)){if(i=v[g],i>u&&(s.push(n.slice(u,o.index)),o[d]>1&&o.index<n[d]&&m.apply(s,o.slice(1)),l=o[0][d],u=i,s[d]>=p))break;v[g]===o.index&&v[g]++}return u===n[d]?!l&&v.test("")||s.push(""):s.push(n.slice(u)),s[d]>p?s.slice(0,p):s}:"0"[p](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,a){var n=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,n,a):h.call(String(n),r,a)},function(e,t){var a=f(h,e,this,t,h!==r);if(a.done)return a.value;var c=n(e),m=String(this),p=o(c,RegExp),d=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new p(v?c:"^(?:"+c.source+")",g),S=void 0===t?b:t>>>0;if(0===S)return[];if(0===m.length)return null===s(y,m)?[m]:[];var D=0,I=0,F=[];while(I<m.length){y.lastIndex=v?I:0;var x,w=s(y,v?m:m.slice(I));if(null===w||(x=u(l(y.lastIndex+(v?0:I)),m.length))===D)I=i(m,I,d);else{if(F.push(m.slice(D,I)),F.length===S)return F;for(var O=1;O<=w.length-1;O++)if(F.push(w[O]),F.length===S)return F;I=D=x}}return F.push(m.slice(D)),F}]}))},"2e08":function(e,t,r){var a=r("9def"),n=r("9744"),o=r("be13");e.exports=function(e,t,r,i){var l=String(o(e)),s=l.length,c=void 0===r?" ":String(r),f=a(t);if(f<=s||""==c)return l;var u=f-s,m=n.call(c,Math.ceil(u/c.length));return m.length>u&&(m=m.slice(0,u)),i?m+l:l+m}},"2f21":function(e,t,r){"use strict";var a=r("79e5");e.exports=function(e,t){return!!e&&a((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"36bd":function(e,t,r){"use strict";var a=r("4bf8"),n=r("77f1"),o=r("9def");e.exports=function(e){var t=a(this),r=o(t.length),i=arguments.length,l=n(i>1?arguments[1]:void 0,r),s=i>2?arguments[2]:void 0,c=void 0===s?r:n(s,r);while(c>l)t[l++]=e;return t}},"55dd":function(e,t,r){"use strict";var a=r("5ca1"),n=r("d8e8"),o=r("4bf8"),i=r("79e5"),l=[].sort,s=[1,2,3];a(a.P+a.F*(i((function(){s.sort(void 0)}))||!i((function(){s.sort(null)}))||!r("2f21")(l)),"Array",{sort:function(e){return void 0===e?l.call(o(this)):l.call(o(this),n(e))}})},"6c7b":function(e,t,r){var a=r("5ca1");a(a.P,"Array",{fill:r("36bd")}),r("9c6c")("fill")},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("ac6a"),r("456d");var a=r("b775");function n(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var n=e[r];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[r]=function(e,t){return Object(a["a"])(n,e,t)}})),e}},"8e1b":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-app-right",staticStyle:{padding:"20px 0",color:"#303133"}},[r("el-form",{attrs:{model:e.form,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"门店名称"}},[e.isAll?r("span",[e._v("全部门店")]):e.form.storeName<31?r("span",[e._v(e._s(e.form.storeName||"--"))]):r("el-tooltip",{attrs:{placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.form.storeName||"--"))]),r("span",{staticClass:"hide-ellipsis"},[e._v(e._s(e.form.storeName||"--"))])])],1),e.form.multOpt?e._e():r("el-form-item",{attrs:{label:"指标额"}},[e._v("\n ¥ "+e._s(parseFloat(e.form.performanceValue||0).toFixed(2))+"\n "),r("el-button",{attrs:{disabled:e.disableSetting,type:"text"},on:{click:e.modMonthTarget}},[e._v("修改")])],1),r("el-form-item",{attrs:{label:"指标类型"}},[e._v("\n "+e._s(["业绩","新增会员"][e.form.performanceType-1])+e._s(["指标日权重","指标日指标"][e.form.performanceSubType-1])+"\n ")]),e.form.multOpt?e._e():r("el-form-item",{attrs:{label:""}},[r("div",{staticClass:"content-data"},[r("span",{staticClass:"color2"},[e._v("月指标:¥ ")]),r("span",{staticClass:"color1"},[e._v(e._s(parseFloat(e.form.performanceValue||0).toFixed(2)))]),r("span",{staticClass:"color2"},[e._v("日指标总和:¥ ")]),r("span",{staticClass:"color1",style:{color:e.totalDayTarget!=e.form.performanceValue?"#F5222D":"#606266"}},[e._v(e._s(parseFloat(e.totalDayTarget).toFixed(2)))])])])],1),r("div",{staticClass:"target-title"},[r("span",[e._v(e._s(e.form.date[0])+"年"+e._s(e.form.date[1])+"月")]),1==e.form.flag&&1==e.form.performanceSubType?r("el-button",{attrs:{type:"text",disabled:e.disableSetting},on:{click:e.setDefault}},[e._v("设置默认日权重")]):e._e()],1),r("div",{staticClass:"target-table"},[e._m(0),r("ul",{staticClass:"table-content"},[e._l(e.zerofill,(function(e,t){return r("li",{key:t})})),e._l(e.tableData,(function(t,a){return r("li",{key:a},[r("div",[e._v(e._s(t.performanceDay))]),r("el-input-number",{staticStyle:{width:"80px","margin-left":"40px","margin-top":"5px"},attrs:{disabled:e.disableSetting,precision:2,controls:!1,max:99999999},model:{value:t.performanceValue,callback:function(r){e.$set(t,"performanceValue",r)},expression:"item.performanceValue"}})],1)})),e._l(e.zerofillLast,(function(e,t){return r("li",{key:t})}))],2)]),r("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",disabled:2==e.$route.query.performanceSubType&&e.totalDayTarget!=e.form.performanceValue||e.disableSetting},on:{click:e.confirm}},[e._v("保存")]),r("el-dialog",{attrs:{title:"修改指标",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.dialogClose}},[r("el-alert",{attrs:{title:"修改当月指标会导致已完善的日指标重新下发,并完善。请谨慎设置",type:"danger","show-icon":"",closable:!1}}),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadMonth,expression:"loadMonth"}]},[r("el-form",{ref:"targetForm",attrs:{model:e.targetForm,"hide-required-asterisk":"","label-width":"175px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{prop:"value",rules:[{required:!0,message:"请输入月指标额",trigger:"blur"}]}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("span",{staticClass:"color1",staticStyle:{"padding-right":"35px"}},[e._v(e._s(e.form.performanceYm||"--"))]),e._v("\n 指标额\n ")]),r("el-input",{staticStyle:{width:"289px"},attrs:{maxlength:"11"},on:{blur:function(t){return e.inputPerformance(t)}},model:{value:e.targetForm.value,callback:function(t){e.$set(e.targetForm,"value",t)},expression:"targetForm.value"}},[r("span",{staticStyle:{color:"#303133","padding-left":"5px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.confirmMonthTarget}},[e._v("确 定")])],1)],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ul",{staticClass:"table-title"},[r("li",[e._v("周日")]),r("li",[e._v("周一")]),r("li",[e._v("周二")]),r("li",[e._v("周三")]),r("li",[e._v("周四")]),r("li",[e._v("周五")]),r("li",[e._v("周六")])])}],o=(r("8e6e"),r("456d"),r("6b54"),r("f576"),r("ade3")),i=(r("55dd"),r("ac6a"),r("6c7b"),r("a481"),r("c5f6"),r("28a5"),r("d157")),l=r("9f7c");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(o["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=l["a"].changeStorePerformanceDay,u=l["a"].getStorePerformanceDay,m=l["a"].changeStorePerformanceMonth,p=l["a"].batchSaveStorePerformanceDay,d={name:"PerfectDayTarget",components:{},props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",form:{tab:"",performanceYm:"",performanceSubType:1,performanceType:0,storeInfoId:"",storeName:"",performanceValue:0,flag:0,multOpt:"",date:["",""]},loading:!1,days:0,tableData:[],zerofill:[],zerofillLast:[],loadMonth:!1,targetForm:{value:""},dialogVisible:!1,haoban:{},disableSetting:!1,isAll:!1}},mounted:function(){var e=this;e.form=JSON.parse(JSON.stringify(e.$route.query)),e.form.performanceValue=e.form.performanceValue||0,e.$route.query.multOpt&&1==e.$route.query.multOpt?e.form.multOpt=1:e.form.multOpt="",e.disableSetting=Object(i["c"])(e.$route.query.performanceYm);var t=e.$route.query,r=t.tab,a=t.applicationId,n=t.performanceYm,o=t.flag,l=t.isAll,s=[{name:"指标管理",path:"/target-list"},{name:"查看门店",path:"/target-store"},{name:0==o?"完善日指标":"查看日指标"}];e.form.date=n.split("-"),s[0].path+="?applicationId=".concat(a,"&tab=").concat(r),s[1].path+="?applicationId=".concat(a,"&tab=").concat(r,"&performanceYm=").concat(n),e.$emit("change-nav",s),e.$emit("showTab","/target-list"),e.isAll=1==l,e.init(),e.$nextTick((function(){var t=localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffName:"",staffId:"",wxEnterpriseId:""},r=t.staffName,a=t.staffId,n=t.wxEnterpriseId;e.haoban={submitStaffName:r,submitStaffId:a,wxEnterpriseId:n,staffId:a}}))},beforeDestroy:function(){this.$store.dispatch("clearStoreData")},methods:{inputPerformance:function(e){var t=this;t.targetForm.value=Number(t.targetForm.value.replace(/[^\d.]/g,""))?t.targetForm.value.replace(/[^\d+(.\d+)]/g,""):"",t.targetForm.value=Number(t.targetForm.value).toFixed(2)>99999999.99?99999999.99:Number(t.targetForm.value).toFixed(2)},modMonthTarget:function(){var e=this;e.targetForm.value=parseFloat(e.form.performanceValue).toFixed(2),e.dialogVisible=!0},init:function(){var e=this,t=this;t.$store.state.storeInfo.length&&(t.form.storeName=JSON.parse(JSON.stringify(t.$store.state.storeInfo)).map((function(e){return e.storeName})).join(","),t.form.storeInfoIds=JSON.parse(JSON.stringify(t.$store.state.storeInfo)).map((function(e){return e.storeInfoId})).join(","),delete t.form.storeInfoId);var r=t.form,a=r.date,n=r.flag,o=r.performanceType,i=r.performanceYm,l=r.performanceSubType,s=r.storeInfoId;a=a&&a.length?a:[2020,1];var c=new Date(a[0],a[1]-1).getDay(),f=t.days=new Date(a[0],a[1],0).getDate();t.zerofill=new Array(c).fill(null),t.tableData=new Array(f).fill(null).map((function(e,t){return{performanceDay:t+1>9?t+1:"0"+(t+1),performanceValue:1}}));var m=(t.zerofill.length+t.tableData.length)%7;if(m&&(t.zerofillLast=new Array(7-m).fill(null)),0==n)t.setDefault();else if(1==n){t.loading=!0;var p={enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId,performanceType:o,performanceYm:i,performanceSubType:l,storeInfoId:s};u(p,{headers:{sign:t.brandId}}).then((function(e){e.result&&e.result.length&&(e.result.forEach((function(e){e.performanceDay=e.performanceDay.split("-")[2]})),e.result.sort((function(e,t){return e.performanceDay.replaceAll("-","")-t.performanceDay.replaceAll("-","")})),t.tableData=e.result)})).finally((function(){return e.loading=!1}))}},confirmMonthTarget:function(){var e=this;e.loadMonth=!0,e.$refs.targetForm.validate((function(t){if(t){var r=e.form,a=r.performanceYm,n=r.performanceType,o=r.storeInfoId,i=c(c({},e.haoban),{},{performanceYm:a,performanceType:n,storeInfoId:o,performanceValue:e.targetForm.value});m(i,{headers:{sign:e.brandId}}).then((function(t){e.loadMonth=!1,e.$message.success("修改成功"),e.form.performanceValue=i.performanceValue,e.dialogVisible=!1,1==e.$route.query.performanceSubType&&(e.totalDayTarget=e.form.performanceValue)})).finally((function(){e.dialogVisible=!1,e.loadMonth=!1}))}else e.loadMonth=!1}))},confirm:function(){var e=this,t=!0;if(e.tableData.forEach((function(e){(!e.performanceValue||e.performanceValue<=0||!Number(e.performanceValue))&&(t=!1)})),!t)return e.$message.warning("每日的".concat(1==e.$route.query.performanceSubType?"权重":"指标","不能为空")),!1;e.loading=!0;var r=c(c(c({},e.haoban),e.form),{},{enterpriseId:e.brandId,dataJson:e.filterJson()});e.isAll?(r=c(c({},r),{},{storeInfoIds:void 0,storeName:void 0},JSON.parse(localStorage.getItem("allStoreSearch"))),p(r,{headers:{sign:e.brandId}}).then((function(t){e.$message.success("保存成功"),e.$store.dispatch("clearStoreData");var r=e.$route.query,a=r.applicationId,n=r.tab,o=r.performanceYm;e.$router.push("/target-store?applicationId=".concat(a,"&tab=").concat(n,"&performanceYm=").concat(o))})).finally((function(){return e.loading=!1}))):f(r,{headers:{sign:e.brandId}}).then((function(t){e.$message.success("保存成功"),e.$store.dispatch("clearStoreData");var r=e.$route.query,a=r.applicationId,n=r.tab,o=r.performanceYm;e.$router.push("/target-store?applicationId=".concat(a,"&tab=").concat(n,"&performanceYm=").concat(o))})).finally((function(){return e.loading=!1}))},dialogClose:function(){this.$refs.targetForm.resetFields()},filterJson:function(){var e=this;return JSON.stringify(this.tableData.map((function(t){var r=t.performanceDay,a=t.performanceValue;return{performanceValue:a,performanceSubType:e.form.performanceSubType,performanceDay:"".concat(e.form.performanceYm,"-").concat(r.toString().padStart(2,"0"))}})))},setDefault:function(){this.tableData.forEach((function(e){return e.performanceValue=Number(1).toFixed(2)}))}},computed:{totalDayTarget:function(){return 1==this.$route.query.performanceSubType?this.form.performanceValue:this.tableData.reduce((function(e,t){var r=t.performanceValue;return e+(r||0)}),0)}},watch:{brandId:function(e){var t=this;t.form=JSON.parse(JSON.stringify(t.$route.query)),t.form.performanceValue=t.form.performanceValue||0,t.$route.query.multOpt&&1==t.$route.query.multOpt?t.form.multOpt=1:t.form.multOpt="",t.form.date=t.form.performanceYm.split("-"),t.disableSetting=Object(i["c"])(t.$route.query.performanceYm);var r=localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffName:"",staffId:"",wxEnterpriseId:""},a=r.staffName,n=r.staffId,o=r.wxEnterpriseId;t.haoban={submitStaffName:a,submitStaffId:n,wxEnterpriseId:o},t.init()}}},g=d,b=(r("f6bc"),r("2877")),v=Object(b["a"])(g,a,n,!1,null,"c02dbb3e",null);t["default"]=v.exports},"8e6e":function(e,t,r){var a=r("5ca1"),n=r("990b"),o=r("6821"),i=r("11e9"),l=r("f1ae");a(a.S,"Object",{getOwnPropertyDescriptors:function(e){var t,r,a=o(e),s=i.f,c=n(a),f={},u=0;while(c.length>u)r=s(a,t=c[u++]),void 0!==r&&l(f,t,r);return f}})},9744:function(e,t,r){"use strict";var a=r("4588"),n=r("be13");e.exports=function(e){var t=String(n(this)),r="",o=a(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},"990b":function(e,t,r){var a=r("9093"),n=r("2621"),o=r("cb7c"),i=r("7726").Reflect;e.exports=i&&i.ownKeys||function(e){var t=a.f(o(e)),r=n.f;return r?t.concat(r(e)):t}},"9f7c":function(e,t,r){"use strict";var a=r("71f6"),n={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},batchSaveStorePerformanceDay:{url:"/performance/batch-save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",getSingleStorePerformanceDetail:"/setting/see-single-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0},getTagList:"/setting/list-store-tag",delStorePerformance:"/setting/del-store-performance"};n=Object(a["a"])(n,"/hb-app-performance-web"),t["a"]=n},ade3:function(e,t,r){"use strict";function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return a}))},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return i}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function a(e,t){var r,a=t||200;return function(){var t=this,n=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,n)}),a)}}function n(e,t){var r,a,n=t||200;return function(){var t=this,o=arguments,i=+new Date;r&&i-r<n?(clearTimeout(a),a=setTimeout((function(){r=i,e.apply(t,o)}),n)):(r=i,e.apply(t,o))}}function o(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}function i(e){var t=e.split("-"),r=new Date(t[0],t[1],0).getDate(),a=new Date(e).getTime()+24*(r-3)*60*60*1e3,n=(new Date).getTime();return!(n<a)}},f1ae:function(e,t,r){"use strict";var a=r("86cc"),n=r("4630");e.exports=function(e,t,r){t in e?a.f(e,t,n(0,r)):e[t]=r}},f576:function(e,t,r){"use strict";var a=r("5ca1"),n=r("2e08"),o=r("a25f"),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);a(a.P+a.F*i,"String",{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},f6bc:function(e,t,r){"use strict";var a=r("264d"),n=r.n(a);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18050ab8"],{"28a5":function(e,t,r){"use strict";var a=r("aae3"),n=r("cb7c"),o=r("ebd6"),c=r("0390"),s=r("9def"),i=r("5f1b"),l=r("520a"),u=r("79e5"),f=Math.min,p=[].push,m="split",d="length",b="lastIndex",g=4294967295,h=!u((function(){RegExp(g,"y")}));r("214f")("split",2,(function(e,t,r,u){var v;return v="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[d]||2!="ab"[m](/(?:ab)*/)[d]||4!="."[m](/(.?)(.?)/)[d]||"."[m](/()()/)[d]>1||""[m](/.?/)[d]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return r.call(n,e,t);var o,c,s,i=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=void 0===t?g:t>>>0,h=new RegExp(e.source,u+"g");while(o=l.call(h,n)){if(c=h[b],c>f&&(i.push(n.slice(f,o.index)),o[d]>1&&o.index<n[d]&&p.apply(i,o.slice(1)),s=o[0][d],f=c,i[d]>=m))break;h[b]===o.index&&h[b]++}return f===n[d]?!s&&h.test("")||i.push(""):i.push(n.slice(f)),i[d]>m?i.slice(0,m):i}:"0"[m](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,a){var n=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,n,a):v.call(String(n),r,a)},function(e,t){var a=u(v,e,this,t,v!==r);if(a.done)return a.value;var l=n(e),p=String(this),m=o(l,RegExp),d=l.unicode,b=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(h?"y":"g"),S=new m(h?l:"^(?:"+l.source+")",b),x=void 0===t?g:t>>>0;if(0===x)return[];if(0===p.length)return null===i(S,p)?[p]:[];var y=0,I=0,w=[];while(I<p.length){S.lastIndex=h?I:0;var D,k=i(S,h?p:p.slice(I));if(null===k||(D=f(s(S.lastIndex+(h?0:I)),p.length))===y)I=c(p,I,d);else{if(w.push(p.slice(y,I)),w.length===x)return w;for(var F=1;F<=k.length-1;F++)if(w.push(k[F]),w.length===x)return w;I=y=D}}return w.push(p.slice(y)),w}]}))},"4ae3":function(e,t,r){},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("ac6a"),r("456d");var a=r("b775");function n(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var n=e[r];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[r]=function(e,t){return Object(a["a"])(n,e,t)}})),e}},"9f7c":function(e,t,r){"use strict";var a=r("71f6"),n={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},batchSaveStorePerformanceDay:{url:"/performance/batch-save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",getSingleStorePerformanceDetail:"/setting/see-single-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0},getTagList:"/setting/list-store-tag",delStorePerformance:"/setting/del-store-performance"};n=Object(a["a"])(n,"/hb-app-performance-web"),t["a"]=n},a5a3:function(e,t,r){"use strict";var a=r("4ae3"),n=r.n(a);n.a},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function a(e,t){var r,a=t||200;return function(){var t=this,n=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,n)}),a)}}function n(e,t){var r,a,n=t||200;return function(){var t=this,o=arguments,c=+new Date;r&&c-r<n?(clearTimeout(a),a=setTimeout((function(){r=c,e.apply(t,o)}),n)):(r=c,e.apply(t,o))}}function o(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}function c(e){var t=e.split("-"),r=new Date(t[0],t[1],0).getDate(),a=new Date(e).getTime()+24*(r-3)*60*60*1e3,n=(new Date).getTime();return!(n<a)}},d1a4:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSave,expression:"loadSave"}],staticClass:"common-app-right"},[r("div",{staticClass:"task-set-content border-box"},[r("el-alert",{staticStyle:{width:"450px","margin-bottom":"20px"},attrs:{title:"提示:【导购总计】需大于等于【本店指标】金额。否则无法提交","show-icon":"",closable:!1}}),r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"colorFirst"},[r("span",[e._v(e._s(e.clerkObj.performanceYm))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName))])])]),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{border:"","span-method":e.objectSpanMethod,data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-120 p-l-8",attrs:{maxlength:"11",placeholder:"请输入",disabled:e.disableSetting},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)},input:function(r){return e.inputValue(r,t.row)}},model:{value:t.row.performanceValue,callback:function(r){e.$set(t.row,"performanceValue",r)},expression:"scope.row.performanceValue"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"12px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])}),r("el-table-column",{attrs:{label:"总计 >= 门店月指标",width:"418px"}},[[r("div",[r("span",{staticClass:"font-14 color-606266 text-left"},[e._v("导购总计")]),r("span",{staticClass:" p-l-175 font-14 color-606266 text-left"},[e._v("门店月指标")])]),r("div",{staticStyle:{"margin-top":"4px"}},[r("el-input",{staticClass:"w-161",attrs:{maxlength:"13",disabled:""},model:{value:e.performanceSum,callback:function(t){e.performanceSum=t},expression:"performanceSum"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"10px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])]),r("span",{staticClass:"p-l-10 p-r-10"},[e._v(" >= ")]),r("el-input",{staticClass:"w-161 p-l-8",attrs:{maxlength:"13",placeholder:"指标值",disabled:""},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"16px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]],2)],1)],1),r("div",{staticClass:"task-set-save m-t-30"},[1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:e.disableSetting||!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确认")]):e._e()],1)],1)])},n=[],o=(r("28a5"),r("ac6a"),r("a481"),r("c5f6"),r("d157")),c=r("9f7c"),s=c["a"].changeStorePerformanceClerk,i=c["a"].getStorePerformanceClerk,l={name:"PerfectSaleTarget",components:{},props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tableData:[],performanceSum:"0.00",clerkObj:{storeInfoId:"",storeName:"",performanceYm:"",performanceSubType:"",settingAble:1,storePerformance:0},loadSave:!1,equalFlag:!1,disableSetting:!1}},mounted:function(){var e=this;e.$emit("showTab","/target-list");var t=e.$route.query,r=t.tab,a=t.applicationId,n=t.performanceYm,c=t.storeInfoId,s=t.storeName,i=t.flag,l=[{name:"指标管理",path:"/target-list?tab=".concat(r,"&applicationId=").concat(a)},{name:"查看门店",path:"/target-store?tab=".concat(r,"&applicationId=").concat(a,"&performanceYm=").concat(n)},{name:0==i?"完善导购指标":"查看导购指标"}];e.$emit("change-nav",l),e.disableSetting=Object(o["c"])(n),e.brandId&&(e.clerkObj.performanceYm=n,e.clerkObj.storeInfoId=c,e.clerkObj.storeName=s,e.getData())},methods:{objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,r=e.columnIndex,a=this;if(2===r)return 0==t?{rowspan:a.tableData.length,colspan:1}:{rowspan:0,colspan:0}},inputPerformance:function(e,t,r){var a=this;r.performanceValue=Number(r.performanceValue.replace(/[^\d.]/g,""))?r.performanceValue.replace(/[^\d+(.\d+)]/g,""):"",r.performanceValue=Number(r.performanceValue).toFixed(2)>99999999.99?99999999.99:Number(r.performanceValue).toFixed(2);var n=0;a.tableData.forEach((function(e){n+=Number(e.performanceValue)})),a.performanceSum=Number(n).toFixed(2),a.diffData()},inputValue:function(e,t){var r=this;t.performanceValue=Number(String(e).replace(/[^\d.]/g,""))?String(e).replace(/[^\d+(.\d+)]/g,""):"";var a=0;r.tableData.forEach((function(e){a+=Number(e.performanceValue)})),r.performanceSum=Number(a).toFixed(2),r.diffData()},diffData:function(){var e=this,t=Number(e.performanceSum)>Number(e.clerkObj.storePerformance)||Number(e.performanceSum)==Number(e.clerkObj.storePerformance);return e.equalFlag=!!t,t},saveSet:Object(o["a"])((function(){var e=this;return!!e.diffData()&&(""==e.clerkObj.storePerformance?(e.$message.warning({duration:1e3,message:"请输入门店月指标"}),!1):void e.postSave())}),500),postSave:function(){var e=this;e.loadSave=!0;var t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.clerkObj.storeInfoId,performanceYear:e.clerkObj.performanceYm.split("-")[0],performanceYm:e.clerkObj.performanceYm,performanceType:e.$route.query.performanceType,dataJson:JSON.stringify(e.tableData)};s(t,{headers:{sign:e.brandId}}).then((function(t){if(e.loadSave=!1,"0000"!=t.code)e.$message.warning(t.message||"接口异常");else{e.$message.success("保存成功");var r=e.$route.query,a=r.applicationId,n=r.tab,o=r.performanceYm;e.$router.push("/target-store?applicationId=".concat(a,"&tab=").concat(n,"&performanceYm=").concat(o))}})).catch((function(t){e.loadSave=!1}))},getData:function(){var e=this,t=this;t.loadSave=!0;var r={enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId,storeInfoId:t.clerkObj.storeInfoId,performanceYm:t.clerkObj.performanceYm,performanceType:t.$route.query.performanceType,performanceSubType:t.$route.query.performanceSubType};i(r,{headers:{sign:t.brandId}}).then((function(e){if("0000"==e.code){e.result&&e.result.length&&(e.result.forEach((function(e){e.performanceValue=Number(e.performanceValue).toFixed(2)})),t.tableData=e.result||[]),t.clerkObj.storePerformance=Number(t.$route.query.performanceValue).toFixed(2);var r=0;return t.tableData.forEach((function(e){r+=Number(e.performanceValue)})),t.performanceSum=Number(r).toFixed(2),void t.diffData()}})).catch((function(e){})).finally((function(){return e.loadSave=!1}))}},watch:{brandId:function(e,t){var r=this;e&&(r.clerkObj.performanceYm=r.$route.query.performanceYm,r.clerkObj.storeInfoId=r.$route.query.storeInfoId,r.clerkObj.storeName=r.$route.query.storeName,r.getData())}}},u=l,f=(r("a5a3"),r("2877")),p=Object(f["a"])(u,a,n,!1,null,"5138ba5a",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2609f0b8"],{2751:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right",staticStyle:{padding:"0"}},[a("el-tabs",{on:{"tab-click":e.getData},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"已设置指标门店",name:"0"}}),a("el-tab-pane",{attrs:{label:"未设置指标门店",name:"1"}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list-content"},[a("div",{staticClass:"content-search"},[a("div",{staticClass:"content-first"},[a("el-input",{attrs:{placeholder:"请输入名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:e.searchChange},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchChange(t)}},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择年份"},on:{change:e.searchChange},model:{value:e.search.performanceYear,callback:function(t){e.$set(e.search,"performanceYear",t)},expression:"search.performanceYear"}},e._l(e.yearList,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1),a("span",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}]},[a("el-select",{attrs:{placeholder:"全部指标类型",clearable:""},on:{change:e.searchChange},model:{value:e.search.performanceType,callback:function(t){e.$set(e.search,"performanceType",t)},expression:"search.performanceType"}},[a("el-option",{attrs:{label:"业绩指标",value:"1"}}),a("el-option",{attrs:{label:"新增会员",value:"2"}})],1),a("el-select",{attrs:{placeholder:"全部编辑权限",clearable:""},on:{change:e.searchChange},model:{value:e.search.storeEdit,callback:function(t){e.$set(e.search,"storeEdit",t)},expression:"search.storeEdit"}},[a("el-option",{attrs:{label:"店长可编辑",value:"1"}}),a("el-option",{attrs:{label:"店长不可编辑",value:"0"}})],1)],1),a("el-select",{staticStyle:{width:"106px","margin-right":"-1px"},on:{change:e.storeChange},model:{value:e.search.storeType,callback:function(t){e.$set(e.search,"storeType",t)},expression:"search.storeType"}},[a("el-option",{attrs:{label:"门店分组",value:"1"}}),a("el-option",{attrs:{label:"门店标签",value:"2"}})],1),"1"===e.search.storeType?a("gic-select-group-mult",{attrs:{width:"171px","brand-id":e.brandId},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"===e.search.storeType?a("gic-select-tag",{attrs:{width:"171px","brand-id":e.brandId},on:{returnTags:e.checkGroupIds}}):e._e()],1),a("div",{staticClass:"selectColor"},[a("el-select",{staticStyle:{width:"101px"},attrs:{placeholder:"批量操作",disabed:!e.multipleSelection||!e.multipleSelection.length},on:{change:e.batchOperation}},[a("el-option",{attrs:{label:"编辑指标",value:2}}),a("el-option",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}],attrs:{label:"修改编辑权限",value:3}})],1),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}],attrs:{type:"primary"},on:{click:function(t){return e.batchOperation(1)}}},[e._v("新增指标")])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"===e.activeName,expression:"activeName === '1'"}],staticClass:"content-data"},[a("div"),a("span",[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:function(t){return e.checkboxChange(t,"noPerformanceFlag")}},model:{value:e.search1.noPerformanceFlag,callback:function(t){e.$set(e.search1,"noPerformanceFlag",t)},expression:"search1.noPerformanceFlag"}},[e._v("未设置业绩指标门店")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:function(t){return e.checkboxChange(t,"noAddMemberFlag")}},model:{value:e.search1.noAddMemberFlag,callback:function(t){e.$set(e.search1,"noAddMemberFlag",t)},expression:"search1.noAddMemberFlag"}},[e._v("未设置新增会员指标门店")])],1)]),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"ellipsis"},[e._v(e._s(r.storeName||"--"))]),a("div",{staticStyle:{color:"#909399","font-size":"12px"}},[e._v(e._s(r.storeCode||"--"))])]}}])}),a("el-table-column",{attrs:{label:"年业绩指标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.performaneceYearValue?"¥"+a.performaneceYearValue:"未设置")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"年新增会员指标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.addMemberValue?""+a.addMemberValue:"未设置")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"编辑权限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["店长不可编辑","店长可编辑"][a.storeEdit]||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"更新时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticStyle:{"line-height":"18px"}},[e._v("\n "+e._s(e._f("formatDate")(r.updateTime,"ymd"))+" "),a("br"),e._v(" "+e._s(e._f("formatDate")(r.updateTime,"hms"))+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"date",label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$router.push({path:"/edit-store-quota",query:{applicationId:e.applicationId,tab:e.activeName,storeInfoId:r.storeInfoId,storeName:r.storeName,edit:"1",year:e.search.performanceYear,performanceFlag:e.search1.noPerformanceFlag,addMemberFlag:e.search1.noAddMemberFlag}})}}},[e._v("\n 编辑指标\n ")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$router.push({path:"/edit-store-quota",query:{applicationId:e.applicationId,tab:e.activeName,storeInfoId:r.storeInfoId,storeName:r.storeName,storeEdit:r.storeEdit,edit:"3",single:"1",year:e.search.performanceYear}})}}},[e._v("\n 编辑权限\n ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}],attrs:{type:"text"},on:{click:function(t){return e.delStorePerformance(r.storeInfoId)}}},[e._v("删除")])]}}])})],1),e.tableData.length?a("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"","current-page":e.page.pageNum,"page-sizes":[20,40,60,80],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next",total:e.page.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},n=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("6b54"),a("f576"),a("7f7f"),a("ade3")),s=(a("386d"),a("88f6")),c=a("0641"),i=a("9f7c");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u=i["a"].getYearList,p=i["a"].getStorePerformanceList,d=i["a"].getNoStorePerformanceList,f=i["a"].delStorePerformance,g={name:"QuotaSet",components:{gicSelectGroupMult:s["a"],gicSelectTag:c["a"]},props:{brandId:{type:String,default:""}},data:function(){return{activeName:"",applicationId:"",haoban:{},search:{search:"",performanceYear:(new Date).getFullYear(),performanceType:"",storeEdit:"",storeType:"1",storeParam:""},search1:{noPerformanceFlag:1,noAddMemberFlag:0},multipleSelection:[],tableData:[],loading:!1,page:{pageNum:1,pageSize:20,total:0},yearList:[]}},created:function(){var e=this.$route.query,t=e.tab,a=e.applicationId;this.activeName="undefined"!==t&&t?t:"0",this.applicationId=a;var r=localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffName:"",staffId:"",wxEnterpriseId:""},n=r.staffId,o=r.wxEnterpriseId;this.haoban={staffId:n,wxEnterpriseId:o}},mounted:function(){this.$emit("showTab","/quota-set"),this.$emit("change-nav",[{name:"指标设置"}]),this.getData(),this.getYearList()},methods:{getData:function(){var e=this;this.loading=!0;var t=this.search,a=t.storeType,r=t.storeParam,n=h(h(h(h({},this.search),this.haoban),this.page),{},{enterpriseId:this.brandId,storeType:r?a:""});"1"===this.activeName&&(n=h(h({},n),this.search1)),[p,d][this.activeName](n,{headers:{sign:this.brandId}}).then((function(t){var a=t.result||{},r=a.result,n=a.totalCount;e.tableData=r||[],e.page.total=n})).catch((function(){return e.tableData=[]})).finally((function(){return e.loading=!1}))},batchOperation:function(e){switch(e){case 1:return this.$router.push({path:"/edit-store-quota",query:{applicationId:this.applicationId}});case 2:return this.search.performanceType||0!=this.activeName?this.multipleSelection&&this.multipleSelection.length?(localStorage.setItem("targetStoreInfoIds",JSON.stringify(this.multipleSelection)),this.$router.push({path:"/edit-store-quota",query:{applicationId:this.applicationId,tab:this.activeName,edit:"2",year:this.search.performanceYear,type:this.search.performanceType,performanceFlag:this.search1.noPerformanceFlag,addMemberFlag:this.search1.noAddMemberFlag}})):this.$message.warning("请选择指标门店"):this.$message.warning("请选择指标类型");case 3:return this.multipleSelection&&this.multipleSelection.length?(localStorage.setItem("targetStoreInfoIds",JSON.stringify(this.multipleSelection)),this.$router.push({path:"/edit-store-quota",query:{applicationId:this.applicationId,edit:"3",year:this.search.performanceYear}})):this.$message.warning("请选择指标门店");default:break}},handleSelectionChange:function(e){this.multipleSelection=e},handleClick:function(e){var t=e.name;console.log(t)},handleSizeChange:function(e){this.page.pageSize=e,this.page.pageNum=1,this.getData()},handleCurrentChange:function(e){this.page.pageNum=e,this.getData()},getYearList:function(){var e=this;u("",{headers:{sign:this.brandId}}).then((function(t){e.yearList=t.result||[]}))},searchChange:function(){this.handleCurrentChange(1)},checkboxChange:function(e,t){var a=this;this.$nextTick((function(){var e=a.search1,r=e.noPerformanceFlag,n=e.noAddMemberFlag;if(0===r&&0===n)return a.search1[t]=1,a.$message.warning("请至少勾选一项");a.searchChange()}))},checkGroupIds:function(e){var t=this;this.search.storeParam=e.map((function(e){return e["1"===t.search.storeType?"storeGroupId":"storeTagId"]})).join(","),this.searchChange()},storeChange:function(){this.search.storeParam="",this.searchChange()},delStorePerformance:function(e){var t=this;this.$confirm("确定删除该指标门店?","",{confirmButtonText:"确定删除",cancelButtonText:"取消",type:"warning",showClose:!1}).then((function(){var a={storeInfoId:e,performanceYear:t.search.performanceYear};f(a,{headers:{sign:t.brandId}}).then((function(e){t.$message.success("删除成功"),t.tableData.length<2&&t.page.pageNum>1&&--t.page.pageNum,t.getData()}))}))}},filters:{formatDate:function(e,t){if(!e)return"--";e=new Date(e);var a=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),c=e.getSeconds().toString().padStart(2,"0");return"ymd"==t?"".concat(a,"-").concat(r,"-").concat(n):"hms"==t?"".concat(o,":").concat(s,":").concat(c):"".concat(a,"-").concat(r,"-").concat(n,"   ").concat(o,":").concat(s,":").concat(c)}},watch:{brandId:function(e){e&&this.getData()}}},m=g,b=(a("ccd8"),a("2877")),v=Object(b["a"])(m,r,n,!1,null,"70effa67",null);t["default"]=v.exports},"7f7f":function(e,t,a){var r=a("86cc").f,n=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in n||a("9e1e")&&r(n,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},cab7:function(e,t,a){},ccd8:function(e,t,a){"use strict";var r=a("cab7"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-271d68a2"],{"0541":function(e,t,r){"use strict";var a=r("bff3"),o=r.n(a);o.a},"3b01":function(e,t,r){"use strict";var a=r("5c59"),o=r.n(a);o.a},"5c59":function(e,t,r){},"5d04":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"month-target"}},[e._l(e.tableData,(function(t){return r("div",{key:t.num,staticClass:"target-box"},[r("header",[e._v(e._s(t.head))]),r("div",{class:{content:!0,red:e.isTrue(t),noIcon:e.noIcon}},[e.isBatch&&(e.isPreMonth(t)||e.isLastThree(t.num))?r("span",[e._v("无需设置")]):[r("el-select",{attrs:{disabled:t.disabled},model:{value:t.type,callback:function(r){e.$set(t,"type",r)},expression:"item.type"}},[r("el-option",{attrs:{label:"日权重",value:1}}),r("el-option",{attrs:{label:"日指标",value:2}})],1),r("el-input-number",{attrs:{controls:!1,placeholder:"请输入",precision:e.isPrecision?2:0,min:0,max:99999999.99,disabled:t.disabled},on:{change:function(t){return e.$emit("change",e.tableData)}},model:{value:t.val,callback:function(r){e.$set(t,"val",r)},expression:"item.val"}})]],2)])})),r("div",{staticClass:"tip"},[e._v("当月及之后月份必填,历史月份非必填")])],2)},o=[],n=(r("28a5"),r("ac6a"),r("c5f6"),[{head:"一月",type:1,num:"01",val:void 0,disabled:!1},{head:"二月",type:1,num:"02",val:void 0,disabled:!1},{head:"三月",type:1,num:"03",val:void 0,disabled:!1},{head:"四月",type:1,num:"04",val:void 0,disabled:!1},{head:"五月",type:1,num:"05",val:void 0,disabled:!1},{head:"六月",type:1,num:"06",val:void 0,disabled:!1},{head:"七月",type:1,num:"07",val:void 0,disabled:!1},{head:"八月",type:1,num:"08",val:void 0,disabled:!1},{head:"九月",type:1,num:"09",val:void 0,disabled:!1},{head:"十月",type:1,num:"10",val:void 0,disabled:!1},{head:"十一月",type:1,num:"11",val:void 0,disabled:!1},{head:"十二月",type:1,num:"12",val:void 0,disabled:!1}]),s={name:"MonthTarget",props:{data:{type:Object,default:function(){return[]}},year:{type:[String,Number],default:""},isBatch:{type:Boolean,default:!1},isPrecision:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1}},data:function(){return{tableData:JSON.parse(JSON.stringify(n)),thisYear:(new Date).getFullYear(),month:(new Date).getMonth()}},mounted:function(){this.$emit("change",this.tableData)},methods:{validate:function(){var e=this;return this.tableData.some((function(t){return e.isTrue(t)}))},isTrue:function(e){return!this.isAllNot&&!this.isLastThree(e.num)&&(!(!(this.isAllRed||this.month<e.num)||void 0!==e.val)||void 0)},isPreMonth:function(e){return!!this.isAllNot||!this.isAllRed&&!(this.month<e.num)},clear:function(){this.tableData=JSON.parse(JSON.stringify(n)),this.$emit("change",this.tableData)},isLastThree:function(e){if(this.year!=this.thisYear)return!1;if(this.month+1!=e)return!1;var t=new Date(this.year,e,0).getDate();return t-3<(new Date).getDate()}},computed:{isAllRed:function(){return this.year>this.thisYear},isAllNot:function(){return this.year<this.thisYear}},watch:{data:function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){var r=e.performanceYm,a=e.performanceValue,o=e.performanceSubType,n=r.split("-")[1],s=t.tableData[n-1];s.val=a||0==a?a:void 0,s.type=o||1,(a||0==a)&&t.isPreMonth(s)&&(s.disabled=!0),t.isLastThree(n)&&(s.disabled=!0)}))}}},i=s,l=(r("3b01"),r("2877")),c=Object(l["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("ac6a"),r("456d");var a=r("b775");function o(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var o=e[r];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[r]=function(e,t){return Object(a["a"])(o,e,t)}})),e}},"8e6e":function(e,t,r){var a=r("5ca1"),o=r("990b"),n=r("6821"),s=r("11e9"),i=r("f1ae");a(a.S,"Object",{getOwnPropertyDescriptors:function(e){var t,r,a=n(e),l=s.f,c=o(a),d={},f=0;while(c.length>f)r=l(a,t=c[f++]),void 0!==r&&i(d,t,r);return d}})},"990b":function(e,t,r){var a=r("9093"),o=r("2621"),n=r("cb7c"),s=r("7726").Reflect;e.exports=s&&s.ownKeys||function(e){var t=a.f(n(e)),r=o.f;return r?t.concat(r(e)):t}},"9f7c":function(e,t,r){"use strict";var a=r("71f6"),o={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},batchSaveStorePerformanceDay:{url:"/performance/batch-save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",getSingleStorePerformanceDetail:"/setting/see-single-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0},getTagList:"/setting/list-store-tag",delStorePerformance:"/setting/del-store-performance"};o=Object(a["a"])(o,"/hb-app-performance-web"),t["a"]=o},ade3:function(e,t,r){"use strict";function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return a}))},bff3:function(e,t,r){},d091:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-app-right"},[r("el-alert",{attrs:{"show-icon":"",closable:!1}},[r("template",{slot:"title"},[r("div",[e._v("1.下发类型修改后、日权重/日指标修改后、指标设置立即生效,修改后数据统计次日生效")]),r("div",[e._v("2.修改当月指标会导致已完善的日指标重新下发及完善。请谨慎设置")])])],2),r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"180px","hide-required-asterisk":""}},[r("el-form-item",{attrs:{label:"选择年份",prop:"performanceYear"}},[e.edit?r("span",[e._v(e._s(e.form.performanceYear))]):r("el-select",{attrs:{placeholder:"请选择年份"},model:{value:e.form.performanceYear,callback:function(t){e.$set(e.form,"performanceYear",t)},expression:"form.performanceYear"}},e._l(e.yearList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"选择门店",prop:"storeValue"}},[e.edit?r("span",[e._v(e._s(e.targetStoreInfoIds.map((function(e){return e.storeName})).join(";")))]):[r("el-radio-group",{on:{change:e.storeModeChange},model:{value:e.form.storeMode,callback:function(t){e.$set(e.form,"storeMode",t)},expression:"form.storeMode"}},[r("el-radio",{attrs:{label:0}},[e._v("所有门店")]),r("el-radio",{attrs:{label:1}},[e._v("选择分组")]),r("el-radio",{attrs:{label:2}},[e._v("选择门店")])],1),1==e.form.storeMode?r("customer-store-group",{attrs:{"brand-id":e.brandId,"select-group":e.storeValue},on:{checkGroupIds:e.checkGroupIds}}):e._e(),2==e.form.storeMode?r("customer-store",{attrs:{"brand-id":e.brandId,"select-store":e.storeValue},on:{checkStoreIds:e.checkGroupIds}}):e._e()]],2),!e.edit||["1","2"].includes(e.edit)?r("el-form-item",{attrs:{label:"指标类型(必填一项)",prop:"type"}},[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",placement:"top-start"},slot:"label"},[r("div",{attrs:{slot:"content"},slot:"content"},[r("p",[e._v("日指标:")]),r("p",[e._v("1.设置日权重,则需先设置月指标,再设置门店日权重。指标会计算每日完成度;")]),r("p",[e._v("2.设置日权重,后台可批量设置日权重,门店编辑权限可设置不可编辑;")]),r("p",[e._v("日权重:")]),r("p",[e._v("1.设置日权重,则需先设置月指标,再设置门店日权重。指标会计算每日完成度;")]),r("p",[e._v("2.设置日权重,后台可批量设置日权重,门店编辑权限可设置不可编辑")])]),r("span",{staticClass:"tooltip-icon"},[e._v("指标类型(必填一项)")])]),r("el-checkbox",{staticStyle:{"margin-bottom":"30px"},attrs:{"true-label":1,"false-label":0,disabled:"2"===e.edit||e.preDisabled},model:{value:e.form.performanceFlag,callback:function(t){e.$set(e.form,"performanceFlag",t)},expression:"form.performanceFlag"}},[e._v("\n 业绩指标(元)\n ")]),r("month-target",{directives:[{name:"show",rawName:"v-show",value:1==e.form.performanceFlag,expression:"form.performanceFlag == 1"}],ref:"monthTargetRef1",attrs:{"is-precision":"","is-batch":"2"===e.edit,year:e.form.performanceYear,data:e.performanceCallback},on:{change:function(t){return e.monthTargetChange(t,"performanceVal")}}}),r("br"),r("el-checkbox",{staticStyle:{"margin-bottom":"30px"},attrs:{"true-label":1,"false-label":0,disabled:"2"===e.edit||e.preDisabled},model:{value:e.form.addMemberFlag,callback:function(t){e.$set(e.form,"addMemberFlag",t)},expression:"form.addMemberFlag"}},[e._v("\n 新增会员指标(人)\n ")]),r("month-target",{directives:[{name:"show",rawName:"v-show",value:1==e.form.addMemberFlag,expression:"form.addMemberFlag == 1"}],ref:"monthTargetRef2",attrs:{"is-batch":"2"===e.edit,year:e.form.performanceYear,data:e.addMemberCallback,"no-icon":""},on:{change:function(t){return e.monthTargetChange(t,"addMemberVal")}}})],1):e._e(),"3"!==e.edit&&e.edit?e._e():r("el-form-item",{attrs:{label:"指标编辑权限",prop:"storeEdit"}},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.form.storeEdit,callback:function(t){e.$set(e.form,"storeEdit",t)},expression:"form.storeEdit"}},[e._v("店长可修改指标")])],1),r("el-form-item",{attrs:{label:""}},[r("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("保存")])],1)],1)],1)},o=[],n=(r("8e6e"),r("ac6a"),r("456d"),r("6b54"),r("c5f6"),r("ade3")),s=(r("96cf"),r("1da1")),i=r("2923"),l=r("dfdc"),c=r("5d04"),d=r("9f7c");function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=d["a"].saveStorePerformance,p=d["a"].batchSettingRight,h=d["a"].batchEditStorePerformance,b=d["a"].editStorePerformance,g=d["a"].getSingleStorePerformanceDetail,v={name:"EditStoreQuota",components:{customerStoreGroup:i["a"],customerStore:l["a"],MonthTarget:c["default"]},props:{brandId:{type:String,default:""}},data:function(){var e=this,t=function(t,r,a){e.$nextTick((function(){var t=e.form,r=t.storeMode,o=t.storeValue;0===r&&a(),o&&o.length||a(new Error("请选择分组或门店")),a()}))};return{loading:!1,form:{performanceYear:"",storeMode:0,storeValue:[],storeEdit:0,performanceFlag:0,performanceSubType:1,addMemberFlag:0,addMemebrSubType:1},rules:{performanceYear:[{required:!0,message:"请选择年份",trigger:"blur"}],storeValue:[{required:!0,validator:t,trigger:["blur","change"]}]},targetList:[{name:"日权重",val:1},{name:"日指标",val:2}],yearList:[(new Date).getFullYear(),(new Date).getFullYear()+1],performanceCallback:null,performanceVal:null,addMemberCallback:null,addMemberVal:null,targetStoreInfoIds:[],edit:"",bread:[{name:"指标设置",path:""},{name:""}],typeList:[{performanceFlag:1},{addMemberFlag:1}],preDisabled:!1}},created:function(){this.init(),this.$emit("change-nav",this.bread)},mounted:function(){this.$emit("showTab","/quota-set")},methods:{init:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,a,o,n,s,i,l,c,d,f,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.$route.query,r=t.applicationId,a=t.edit,o=t.year,n=t.storeEdit,s=t.storeInfoId,i=t.storeName,l=t.tab,c=t.type,d=t.performanceFlag,f=t.addMemberFlag,u=t.single,this.bread[0].path="/quota-set?applicationId=".concat(r,"&tab=").concat(l),this.bread[1].name=a?"编辑指标":"新建指标",e.t0=a,e.next="1"===e.t0?6:"2"===e.t0?12:"3"===e.t0?16:19;break;case 6:return this.form.performanceYear=o,this.targetStoreInfoIds=[{storeName:i,storeInfoId:s}],e.next=10,this.callback({year:o,storeInfoId:s});case 10:return"1"===l&&(this.preDisabled=!0,this.form.performanceFlag="1"==d?1:this.form.performanceFlag,this.form.addMemberFlag="1"==f?1:this.form.addMemberFlag),e.abrupt("break",20);case 12:return this.targetStoreInfoIds=JSON.parse(localStorage.getItem("targetStoreInfoIds")),this.form=m(m({},this.form),{},{performanceYear:o}),"1"===l?(this.form.performanceFlag="1"==d?1:this.form.performanceFlag,this.form.addMemberFlag="1"==f?1:this.form.addMemberFlag):this.form=m(m({},this.form),this.typeList[c-1]),e.abrupt("break",20);case 16:return u?(this.form.storeEdit=Number(n),this.targetStoreInfoIds=[{storeName:i,storeInfoId:s}]):this.targetStoreInfoIds=JSON.parse(localStorage.getItem("targetStoreInfoIds")),this.form.performanceYear=o,e.abrupt("break",20);case 19:return e.abrupt("break",20);case 20:this.edit=a;case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),callback:function(e){var t=this,r=e.year,a=e.storeInfoId,o=JSON.parse(localStorage.getItem("haoBanUser")),n=o.staffId,s=o.wxEnterpriseId;this.loading=!0;var i={storeInfoId:a,wxEnterpriseId:s,performanceYear:r,submitStaffId:n,enterpriseId:this.brandId};return g(i,{headers:{sign:this.brandId}}).then((function(e){var r=e.result,a=r.addMemebrValue,o=r.performanceValue;t.form=m(m({},t.form),e.result),a&&(t.addMemberCallback=JSON.parse(a)),o&&(t.performanceCallback=JSON.parse(o))})).finally((function(){return t.loading=!1}))},checkGroupIds:function(e){this.form.storeValue=JSON.parse(JSON.stringify(e))},monthTargetChange:function(e,t){this[t]=e},confirm:function(){var e=this;this.$refs.form.validate((function(t){if(t){var r=e.form,a=r.performanceFlag,o=r.addMemberFlag,n=r.storeValue,s=r.performanceYear,i=r.storeMode,l=r.storeEdit;if("3"!==e.edit&&!a&&!o)return e.$message.warning("指标类型必填一项");if(a&&e.$refs.monthTargetRef1.validate())return e.$message.warning("请完善业绩指标");if(o&&e.$refs.monthTargetRef2.validate())return e.$message.warning("请完善新增会员指标");e.loading=!0;var c=JSON.parse(localStorage.getItem("haoBanUser")),d=c.staffName,f=c.staffId,g=c.wxEnterpriseId,v={wxEnterpriseId:g,submitStaffName:d,submitStaffId:f,enterpriseId:e.brandId};"1"===e.edit?v=m(m(m({},e.form),v),{},{storeEdit:l,performanceValue:e.filterTargetVal("performanceVal",s),addMemebrValue:e.filterTargetVal("addMemberVal",s),storeInfoId:e.targetStoreInfoIds[0].storeInfoId,storeMode:void 0,storeValue:void 0}):"2"===e.edit?v=m(m(m({},e.form),v),{},{performanceValue:e.filterTargetVal("performanceVal",s),addMemebrValue:e.filterTargetVal("addMemberVal",s),storeInfoIds:e.targetStoreInfoIds.map((function(e){return e.storeInfoId})).join(","),storeMode:void 0,storeValue:void 0}):"3"===e.edit?v=m(m({},v),{},{performanceYear:s,storeEdit:l,storeInfoIds:e.targetStoreInfoIds.map((function(e){return e.storeInfoId})).join(",")}):e.edit||(v=m(m(m({},e.form),v),{},{storeValue:n.map((function(e){return 1==i?e.storeGroupId:e.storeInfoId})).join(","),performanceValue:e.filterTargetVal("performanceVal",s),addMemebrValue:e.filterTargetVal("addMemberVal",s)})),[u,b,h,p][e.edit||0](v,{headers:{sign:e.brandId}}).then((function(t){e.$message.success("保存成功"),e.$router.push(e.bread[0].path)})).finally((function(){return e.loading=!1}))}}))},filterTargetVal:function(e,t){return e?JSON.stringify(this[e].map((function(e){return{performanceYm:"".concat(t.toString(),"-").concat(e.num),performanceValue:void 0!==e.val?e.val:"",performanceSubType:e.type}}))):""},storeModeChange:function(){this.form.storeValue=""}},watch:{brandId:function(e){e&&this.init()}}},I=v,y=(r("0541"),r("2877")),S=Object(y["a"])(I,a,o,!1,null,"abcdc98e",null);t["default"]=S.exports},f1ae:function(e,t,r){"use strict";var a=r("86cc"),o=r("4630");e.exports=function(e,t,r){t in e?a.f(e,t,o(0,r)):e[t]=r}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2adb88ef"],{"28a5":function(e,t,r){"use strict";var a=r("aae3"),n=r("cb7c"),o=r("ebd6"),i=r("0390"),l=r("9def"),s=r("5f1b"),c=r("520a"),f=r("79e5"),u=Math.min,m=[].push,p="split",d="length",g="lastIndex",b=4294967295,v=!f((function(){RegExp(b,"y")}));r("214f")("split",2,(function(e,t,r,f){var h;return h="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[d]||2!="ab"[p](/(?:ab)*/)[d]||4!="."[p](/(.?)(.?)/)[d]||"."[p](/()()/)[d]>1||""[p](/.?/)[d]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return r.call(n,e,t);var o,i,l,s=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,p=void 0===t?b:t>>>0,v=new RegExp(e.source,f+"g");while(o=c.call(v,n)){if(i=v[g],i>u&&(s.push(n.slice(u,o.index)),o[d]>1&&o.index<n[d]&&m.apply(s,o.slice(1)),l=o[0][d],u=i,s[d]>=p))break;v[g]===o.index&&v[g]++}return u===n[d]?!l&&v.test("")||s.push(""):s.push(n.slice(u)),s[d]>p?s.slice(0,p):s}:"0"[p](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,a){var n=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,n,a):h.call(String(n),r,a)},function(e,t){var a=f(h,e,this,t,h!==r);if(a.done)return a.value;var c=n(e),m=String(this),p=o(c,RegExp),d=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new p(v?c:"^(?:"+c.source+")",g),S=void 0===t?b:t>>>0;if(0===S)return[];if(0===m.length)return null===s(y,m)?[m]:[];var D=0,I=0,F=[];while(I<m.length){y.lastIndex=v?I:0;var x,w=s(y,v?m:m.slice(I));if(null===w||(x=u(l(y.lastIndex+(v?0:I)),m.length))===D)I=i(m,I,d);else{if(F.push(m.slice(D,I)),F.length===S)return F;for(var O=1;O<=w.length-1;O++)if(F.push(w[O]),F.length===S)return F;I=D=x}}return F.push(m.slice(D)),F}]}))},"2e08":function(e,t,r){var a=r("9def"),n=r("9744"),o=r("be13");e.exports=function(e,t,r,i){var l=String(o(e)),s=l.length,c=void 0===r?" ":String(r),f=a(t);if(f<=s||""==c)return l;var u=f-s,m=n.call(c,Math.ceil(u/c.length));return m.length>u&&(m=m.slice(0,u)),i?m+l:l+m}},"2f21":function(e,t,r){"use strict";var a=r("79e5");e.exports=function(e,t){return!!e&&a((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"36bd":function(e,t,r){"use strict";var a=r("4bf8"),n=r("77f1"),o=r("9def");e.exports=function(e){var t=a(this),r=o(t.length),i=arguments.length,l=n(i>1?arguments[1]:void 0,r),s=i>2?arguments[2]:void 0,c=void 0===s?r:n(s,r);while(c>l)t[l++]=e;return t}},"55dd":function(e,t,r){"use strict";var a=r("5ca1"),n=r("d8e8"),o=r("4bf8"),i=r("79e5"),l=[].sort,s=[1,2,3];a(a.P+a.F*(i((function(){s.sort(void 0)}))||!i((function(){s.sort(null)}))||!r("2f21")(l)),"Array",{sort:function(e){return void 0===e?l.call(o(this)):l.call(o(this),n(e))}})},"6c7b":function(e,t,r){var a=r("5ca1");a(a.P,"Array",{fill:r("36bd")}),r("9c6c")("fill")},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("ac6a"),r("456d");var a=r("b775");function n(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var n=e[r];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[r]=function(e,t){return Object(a["a"])(n,e,t)}})),e}},8195:function(e,t,r){"use strict";var a=r("cc1b"),n=r.n(a);n.a},"8e1b":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-app-right",staticStyle:{padding:"20px 0",color:"#303133"}},[r("el-form",{attrs:{model:e.form,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"门店名称"}},[e.isAll?r("span",[e._v("全部门店")]):e.form.storeName<31?r("span",[e._v(e._s(e.form.storeName||"--"))]):r("el-tooltip",{attrs:{placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.form.storeName||"--"))]),r("span",{staticClass:"hide-ellipsis"},[e._v(e._s(e.form.storeName||"--"))])])],1),e.form.multOpt?e._e():r("el-form-item",{attrs:{label:"指标额"}},[e._v("\n ¥ "+e._s(parseFloat(e.form.performanceValue||0).toFixed(2))+"\n "),r("el-button",{attrs:{disabled:e.disableSetting,type:"text"},on:{click:e.modMonthTarget}},[e._v("修改")])],1),r("el-form-item",{attrs:{label:"指标类型"}},[e._v("\n "+e._s(["业绩","新增会员"][e.form.performanceType-1])+e._s(["指标日权重","指标日指标"][e.form.performanceSubType-1])+"\n ")]),e.form.multOpt?e._e():r("el-form-item",{attrs:{label:""}},[r("div",{staticClass:"content-data"},[r("span",{staticClass:"color2"},[e._v("月指标:¥ ")]),r("span",{staticClass:"color1"},[e._v(e._s(parseFloat(e.form.performanceValue||0).toFixed(2)))]),r("span",{staticClass:"color2"},[e._v("日指标总和:¥ ")]),r("span",{staticClass:"color1",style:{color:e.totalDayTarget!=e.form.performanceValue?"#F5222D":"#606266"}},[e._v(e._s(parseFloat(e.totalDayTarget).toFixed(2)))])])])],1),r("div",{staticClass:"target-title"},[r("span",[e._v(e._s(e.form.date[0])+"年"+e._s(e.form.date[1])+"月")]),1==e.form.flag&&1==e.form.performanceSubType?r("el-button",{attrs:{type:"text",disabled:e.disableSetting},on:{click:e.setDefault}},[e._v("设置默认日权重")]):e._e()],1),r("div",{staticClass:"target-table"},[e._m(0),r("ul",{staticClass:"table-content"},[e._l(e.zerofill,(function(e,t){return r("li",{key:t})})),e._l(e.tableData,(function(t,a){return r("li",{key:a},[r("div",[e._v(e._s(t.performanceDay))]),r("el-input-number",{staticStyle:{width:"80px","margin-left":"40px","margin-top":"5px"},attrs:{disabled:e.disableSetting,precision:2,controls:!1,max:99999999},model:{value:t.performanceValue,callback:function(r){e.$set(t,"performanceValue",r)},expression:"item.performanceValue"}})],1)})),e._l(e.zerofillLast,(function(e,t){return r("li",{key:t})}))],2)]),r("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",disabled:2==e.$route.query.performanceSubType&&e.totalDayTarget!=e.form.performanceValue||e.disableSetting},on:{click:e.confirm}},[e._v("保存")]),r("el-dialog",{attrs:{title:"修改指标",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.dialogClose}},[r("el-alert",{attrs:{title:"修改当月指标会导致已完善的日指标重新下发,并完善。请谨慎设置",type:"danger","show-icon":"",closable:!1}}),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadMonth,expression:"loadMonth"}]},[r("el-form",{ref:"targetForm",attrs:{model:e.targetForm,"hide-required-asterisk":"","label-width":"175px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{prop:"value",rules:[{required:!0,message:"请输入月指标额",trigger:"blur"}]}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("span",{staticClass:"color1",staticStyle:{"padding-right":"35px"}},[e._v(e._s(e.form.performanceYm||"--"))]),e._v("\n 指标额\n ")]),r("el-input",{staticStyle:{width:"289px"},attrs:{maxlength:"11"},on:{blur:function(t){return e.inputPerformance(t)}},model:{value:e.targetForm.value,callback:function(t){e.$set(e.targetForm,"value",t)},expression:"targetForm.value"}},[r("span",{staticStyle:{color:"#303133","padding-left":"5px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.confirmMonthTarget}},[e._v("确 定")])],1)],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ul",{staticClass:"table-title"},[r("li",[e._v("周日")]),r("li",[e._v("周一")]),r("li",[e._v("周二")]),r("li",[e._v("周三")]),r("li",[e._v("周四")]),r("li",[e._v("周五")]),r("li",[e._v("周六")])])}],o=(r("8e6e"),r("456d"),r("6b54"),r("f576"),r("ade3")),i=(r("55dd"),r("ac6a"),r("6c7b"),r("a481"),r("c5f6"),r("28a5"),r("d157")),l=r("9f7c");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(o["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=l["a"].changeStorePerformanceDay,u=l["a"].getStorePerformanceDay,m=l["a"].changeStorePerformanceMonth,p=l["a"].batchSaveStorePerformanceDay,d={name:"PerfectDayTarget",components:{},props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",form:{tab:"",performanceYm:"",performanceSubType:1,performanceType:0,storeInfoId:"",storeName:"",performanceValue:0,flag:0,multOpt:"",date:["",""]},loading:!1,days:0,tableData:[],zerofill:[],zerofillLast:[],loadMonth:!1,targetForm:{value:""},dialogVisible:!1,haoban:{},disableSetting:!1,isAll:!1}},mounted:function(){var e=this;e.form=JSON.parse(JSON.stringify(e.$route.query)),e.form.performanceValue=e.form.performanceValue||0,e.$route.query.multOpt&&1==e.$route.query.multOpt?e.form.multOpt=1:e.form.multOpt="",e.disableSetting=Object(i["c"])(e.$route.query.performanceYm);var t=e.$route.query,r=t.tab,a=t.applicationId,n=t.performanceYm,o=t.flag,l=t.isAll,s=[{name:"指标管理",path:"/target-list"},{name:"查看门店",path:"/target-store"},{name:0==o?"完善日指标":"查看日指标"}];e.form.date=n.split("-"),s[0].path+="?applicationId=".concat(a,"&tab=").concat(r),s[1].path+="?applicationId=".concat(a,"&tab=").concat(r,"&performanceYm=").concat(n),e.$emit("change-nav",s),e.$emit("showTab","/target-list"),e.isAll=1==l,e.init(),e.$nextTick((function(){var t=localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffName:"",staffId:"",wxEnterpriseId:""},r=t.staffName,a=t.staffId,n=t.wxEnterpriseId;e.haoban={submitStaffName:r,submitStaffId:a,wxEnterpriseId:n,staffId:a}}))},beforeDestroy:function(){this.$store.dispatch("clearStoreData")},methods:{inputPerformance:function(e){var t=this;t.targetForm.value=Number(t.targetForm.value.replace(/[^\d.]/g,""))?t.targetForm.value.replace(/[^\d+(.\d+)]/g,""):"",t.targetForm.value=Number(t.targetForm.value).toFixed(2)>99999999.99?99999999.99:Number(t.targetForm.value).toFixed(2)},modMonthTarget:function(){var e=this;e.targetForm.value=parseFloat(e.form.performanceValue).toFixed(2),e.dialogVisible=!0},init:function(){var e=this,t=this;t.$store.state.storeInfo.length&&(t.form.storeName=JSON.parse(JSON.stringify(t.$store.state.storeInfo)).map((function(e){return e.storeName})).join(","),t.form.storeInfoIds=JSON.parse(JSON.stringify(t.$store.state.storeInfo)).map((function(e){return e.storeInfoId})).join(","),delete t.form.storeInfoId);var r=t.form,a=r.date,n=r.flag,o=r.performanceType,i=r.performanceYm,l=r.performanceSubType,s=r.storeInfoId;a=a&&a.length?a:[2020,1];var c=new Date(a[0],a[1]-1).getDay(),f=t.days=new Date(a[0],a[1],0).getDate();t.zerofill=new Array(c).fill(null),t.tableData=new Array(f).fill(null).map((function(e,t){return{performanceDay:t+1>9?t+1:"0"+(t+1),performanceValue:1}}));var m=(t.zerofill.length+t.tableData.length)%7;if(m&&(t.zerofillLast=new Array(7-m).fill(null)),0==n)t.setDefault();else if(1==n){t.loading=!0;var p={enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId,performanceType:o,performanceYm:i,performanceSubType:l,storeInfoId:s};u(p,{headers:{sign:t.brandId}}).then((function(e){e.result&&e.result.length&&(e.result.forEach((function(e){e.performanceDay=e.performanceDay.split("-")[2]})),e.result.sort((function(e,t){return e.performanceDay.replaceAll("-","")-t.performanceDay.replaceAll("-","")})),t.tableData=e.result)})).finally((function(){return e.loading=!1}))}},confirmMonthTarget:function(){var e=this;e.loadMonth=!0,e.$refs.targetForm.validate((function(t){if(t){var r=e.form,a=r.performanceYm,n=r.performanceType,o=r.storeInfoId,i=c(c({},e.haoban),{},{performanceYm:a,performanceType:n,storeInfoId:o,performanceValue:e.targetForm.value});m(i,{headers:{sign:e.brandId}}).then((function(t){e.loadMonth=!1,e.$message.success("修改成功"),e.form.performanceValue=i.performanceValue,e.dialogVisible=!1,1==e.$route.query.performanceSubType&&(e.totalDayTarget=e.form.performanceValue)})).finally((function(){e.dialogVisible=!1,e.loadMonth=!1}))}else e.loadMonth=!1}))},confirm:function(){var e=this,t=!0;if(e.tableData.forEach((function(e){(!e.performanceValue||e.performanceValue<=0||!Number(e.performanceValue))&&(t=!1)})),!t)return e.$message.warning("每日的".concat(1==e.$route.query.performanceSubType?"权重":"指标","不能为空")),!1;e.loading=!0;var r=c(c(c({},e.haoban),e.form),{},{enterpriseId:e.brandId,dataJson:e.filterJson()});e.isAll?(r=c(c({},r),{},{storeInfoIds:void 0,storeName:void 0},JSON.parse(localStorage.getItem("allStoreSearch"))),p(r,{headers:{sign:e.brandId}}).then((function(t){e.$message.success("保存成功"),e.$store.dispatch("clearStoreData");var r=e.$route.query,a=r.applicationId,n=r.tab,o=r.performanceYm;e.$router.push("/target-store?applicationId=".concat(a,"&tab=").concat(n,"&performanceYm=").concat(o))})).finally((function(){return e.loading=!1}))):f(r,{headers:{sign:e.brandId}}).then((function(t){e.$message.success("保存成功"),e.$store.dispatch("clearStoreData");var r=e.$route.query,a=r.applicationId,n=r.tab,o=r.performanceYm;e.$router.push("/target-store?applicationId=".concat(a,"&tab=").concat(n,"&performanceYm=").concat(o))})).finally((function(){return e.loading=!1}))},dialogClose:function(){this.$refs.targetForm.resetFields()},filterJson:function(){var e=this;return JSON.stringify(this.tableData.map((function(t){var r=t.performanceDay,a=t.performanceValue;return{performanceValue:a,performanceSubType:e.form.performanceSubType,performanceDay:"".concat(e.form.performanceYm,"-").concat(r.toString().padStart(2,"0"))}})))},setDefault:function(){this.tableData.forEach((function(e){return e.performanceValue=Number(1).toFixed(2)}))}},computed:{totalDayTarget:function(){return 1==this.$route.query.performanceSubType?this.form.performanceValue:this.tableData.reduce((function(e,t){var r=t.performanceValue;return e+(r||0)}),0)}},watch:{brandId:function(e){var t=this;t.form=JSON.parse(JSON.stringify(t.$route.query)),t.form.performanceValue=t.form.performanceValue||0,t.$route.query.multOpt&&1==t.$route.query.multOpt?t.form.multOpt=1:t.form.multOpt="",t.form.date=t.form.performanceYm.split("-"),t.disableSetting=Object(i["c"])(t.$route.query.performanceYm);var r=localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffName:"",staffId:"",wxEnterpriseId:""},a=r.staffName,n=r.staffId,o=r.wxEnterpriseId;t.haoban={submitStaffName:a,submitStaffId:n,wxEnterpriseId:o},t.init()}}},g=d,b=(r("8195"),r("2877")),v=Object(b["a"])(g,a,n,!1,null,"0e2d7994",null);t["default"]=v.exports},"8e6e":function(e,t,r){var a=r("5ca1"),n=r("990b"),o=r("6821"),i=r("11e9"),l=r("f1ae");a(a.S,"Object",{getOwnPropertyDescriptors:function(e){var t,r,a=o(e),s=i.f,c=n(a),f={},u=0;while(c.length>u)r=s(a,t=c[u++]),void 0!==r&&l(f,t,r);return f}})},9744:function(e,t,r){"use strict";var a=r("4588"),n=r("be13");e.exports=function(e){var t=String(n(this)),r="",o=a(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},"990b":function(e,t,r){var a=r("9093"),n=r("2621"),o=r("cb7c"),i=r("7726").Reflect;e.exports=i&&i.ownKeys||function(e){var t=a.f(o(e)),r=n.f;return r?t.concat(r(e)):t}},"9f7c":function(e,t,r){"use strict";var a=r("71f6"),n={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},batchSaveStorePerformanceDay:{url:"/performance/batch-save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",getSingleStorePerformanceDetail:"/setting/see-single-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0},getTagList:"/setting/list-store-tag",delStorePerformance:"/setting/del-store-performance"};n=Object(a["a"])(n,"/hb-app-performance-web"),t["a"]=n},ade3:function(e,t,r){"use strict";function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return a}))},cc1b:function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return i}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function a(e,t){var r,a=t||200;return function(){var t=this,n=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,n)}),a)}}function n(e,t){var r,a,n=t||200;return function(){var t=this,o=arguments,i=+new Date;r&&i-r<n?(clearTimeout(a),a=setTimeout((function(){r=i,e.apply(t,o)}),n)):(r=i,e.apply(t,o))}}function o(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}function i(e){var t=e.split("-"),r=new Date(t[0],t[1],0).getDate(),a=new Date(e).getTime()+24*(r-3)*60*60*1e3,n=(new Date).getTime();return!(n<a)}},f1ae:function(e,t,r){"use strict";var a=r("86cc"),n=r("4630");e.exports=function(e,t,r){t in e?a.f(e,t,n(0,r)):e[t]=r}},f576:function(e,t,r){"use strict";var a=r("5ca1"),n=r("2e08"),o=r("a25f"),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);a(a.P+a.F*i,"String",{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0,!0)}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ce1dbcd"],{1416:function(e,t,r){"use strict";var a=r("c60c"),n=r.n(a);n.a},"28a5":function(e,t,r){"use strict";var a=r("aae3"),n=r("cb7c"),o=r("ebd6"),c=r("0390"),s=r("9def"),i=r("5f1b"),l=r("520a"),u=r("79e5"),f=Math.min,p=[].push,m="split",d="length",b="lastIndex",g=4294967295,h=!u((function(){RegExp(g,"y")}));r("214f")("split",2,(function(e,t,r,u){var v;return v="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[d]||2!="ab"[m](/(?:ab)*/)[d]||4!="."[m](/(.?)(.?)/)[d]||"."[m](/()()/)[d]>1||""[m](/.?/)[d]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return r.call(n,e,t);var o,c,s,i=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,m=void 0===t?g:t>>>0,h=new RegExp(e.source,u+"g");while(o=l.call(h,n)){if(c=h[b],c>f&&(i.push(n.slice(f,o.index)),o[d]>1&&o.index<n[d]&&p.apply(i,o.slice(1)),s=o[0][d],f=c,i[d]>=m))break;h[b]===o.index&&h[b]++}return f===n[d]?!s&&h.test("")||i.push(""):i.push(n.slice(f)),i[d]>m?i.slice(0,m):i}:"0"[m](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,a){var n=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,n,a):v.call(String(n),r,a)},function(e,t){var a=u(v,e,this,t,v!==r);if(a.done)return a.value;var l=n(e),p=String(this),m=o(l,RegExp),d=l.unicode,b=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(h?"y":"g"),S=new m(h?l:"^(?:"+l.source+")",b),x=void 0===t?g:t>>>0;if(0===x)return[];if(0===p.length)return null===i(S,p)?[p]:[];var y=0,I=0,w=[];while(I<p.length){S.lastIndex=h?I:0;var D,k=i(S,h?p:p.slice(I));if(null===k||(D=f(s(S.lastIndex+(h?0:I)),p.length))===y)I=c(p,I,d);else{if(w.push(p.slice(y,I)),w.length===x)return w;for(var F=1;F<=k.length-1;F++)if(w.push(k[F]),w.length===x)return w;I=y=D}}return w.push(p.slice(y)),w}]}))},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r("ac6a"),r("456d");var a=r("b775");function n(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var n=e[r];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[r]=function(e,t){return Object(a["a"])(n,e,t)}})),e}},"9f7c":function(e,t,r){"use strict";var a=r("71f6"),n={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},batchSaveStorePerformanceDay:{url:"/performance/batch-save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",getSingleStorePerformanceDetail:"/setting/see-single-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0},getTagList:"/setting/list-store-tag",delStorePerformance:"/setting/del-store-performance"};n=Object(a["a"])(n,"/hb-app-performance-web"),t["a"]=n},c60c:function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function a(e,t){var r,a=t||200;return function(){var t=this,n=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,n)}),a)}}function n(e,t){var r,a,n=t||200;return function(){var t=this,o=arguments,c=+new Date;r&&c-r<n?(clearTimeout(a),a=setTimeout((function(){r=c,e.apply(t,o)}),n)):(r=c,e.apply(t,o))}}function o(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}function c(e){var t=e.split("-"),r=new Date(t[0],t[1],0).getDate(),a=new Date(e).getTime()+24*(r-3)*60*60*1e3,n=(new Date).getTime();return!(n<a)}},d1a4:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSave,expression:"loadSave"}],staticClass:"common-app-right"},[r("div",{staticClass:"task-set-content border-box"},[r("el-alert",{staticStyle:{width:"450px","margin-bottom":"20px"},attrs:{title:"提示:【导购总计】需大于等于【本店指标】金额。否则无法提交","show-icon":"",closable:!1}}),r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"colorFirst"},[r("span",[e._v(e._s(e.clerkObj.performanceYm))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName))])])]),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{border:"","span-method":e.objectSpanMethod,data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-120 p-l-8",attrs:{maxlength:"11",placeholder:"请输入",disabled:e.disableSetting},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)},input:function(r){return e.inputValue(r,t.row)}},model:{value:t.row.performanceValue,callback:function(r){e.$set(t.row,"performanceValue",r)},expression:"scope.row.performanceValue"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"12px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])}),r("el-table-column",{attrs:{label:"总计 >= 门店月指标",width:"418px"}},[[r("div",[r("span",{staticClass:"font-14 color-606266 text-left"},[e._v("导购总计")]),r("span",{staticClass:" p-l-175 font-14 color-606266 text-left"},[e._v("门店月指标")])]),r("div",{staticStyle:{"margin-top":"4px"}},[r("el-input",{staticClass:"w-161",attrs:{maxlength:"13",disabled:""},model:{value:e.performanceSum,callback:function(t){e.performanceSum=t},expression:"performanceSum"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"10px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])]),r("span",{staticClass:"p-l-10 p-r-10"},[e._v(" >= ")]),r("el-input",{staticClass:"w-161 p-l-8",attrs:{maxlength:"13",placeholder:"指标值",disabled:""},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"16px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]],2)],1)],1),r("div",{staticClass:"task-set-save m-t-30"},[1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:e.disableSetting||!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确认")]):e._e()],1)],1)])},n=[],o=(r("28a5"),r("ac6a"),r("a481"),r("c5f6"),r("d157")),c=r("9f7c"),s=c["a"].changeStorePerformanceClerk,i=c["a"].getStorePerformanceClerk,l={name:"PerfectSaleTarget",components:{},props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tableData:[],performanceSum:"0.00",clerkObj:{storeInfoId:"",storeName:"",performanceYm:"",performanceSubType:"",settingAble:1,storePerformance:0},loadSave:!1,equalFlag:!1,disableSetting:!1}},mounted:function(){var e=this;e.$emit("showTab","/target-list");var t=e.$route.query,r=t.tab,a=t.applicationId,n=t.performanceYm,c=t.storeInfoId,s=t.storeName,i=t.flag,l=[{name:"指标管理",path:"/target-list?tab=".concat(r,"&applicationId=").concat(a)},{name:"查看门店",path:"/target-store?tab=".concat(r,"&applicationId=").concat(a,"&performanceYm=").concat(n)},{name:0==i?"完善导购指标":"查看导购指标"}];e.$emit("change-nav",l),e.disableSetting=Object(o["c"])(n),e.brandId&&(e.clerkObj.performanceYm=n,e.clerkObj.storeInfoId=c,e.clerkObj.storeName=s,e.getData())},methods:{objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,r=e.columnIndex,a=this;if(2===r)return 0==t?{rowspan:a.tableData.length,colspan:1}:{rowspan:0,colspan:0}},inputPerformance:function(e,t,r){var a=this;r.performanceValue=Number(r.performanceValue.replace(/[^\d.]/g,""))?r.performanceValue.replace(/[^\d+(.\d+)]/g,""):"",r.performanceValue=Number(r.performanceValue).toFixed(2)>99999999.99?99999999.99:Number(r.performanceValue).toFixed(2);var n=0;a.tableData.forEach((function(e){n+=Number(e.performanceValue)})),a.performanceSum=Number(n).toFixed(2),a.diffData()},inputValue:function(e,t){var r=this;t.performanceValue=Number(String(e).replace(/[^\d.]/g,""))?String(e).replace(/[^\d+(.\d+)]/g,""):"";var a=0;r.tableData.forEach((function(e){a+=Number(e.performanceValue)})),r.performanceSum=Number(a).toFixed(2),r.diffData()},diffData:function(){var e=this,t=Number(e.performanceSum)>Number(e.clerkObj.storePerformance)||Number(e.performanceSum)==Number(e.clerkObj.storePerformance);return e.equalFlag=!!t,t},saveSet:Object(o["a"])((function(){var e=this;return!!e.diffData()&&(""==e.clerkObj.storePerformance?(e.$message.warning({duration:1e3,message:"请输入门店月指标"}),!1):void e.postSave())}),500),postSave:function(){var e=this;e.loadSave=!0;var t={enterpriseId:e.brandId,wxEnterpriseId:e.wxEnterpriseId,storeInfoId:e.clerkObj.storeInfoId,performanceYear:e.clerkObj.performanceYm.split("-")[0],performanceYm:e.clerkObj.performanceYm,performanceType:e.$route.query.performanceType,dataJson:JSON.stringify(e.tableData)};s(t,{headers:{sign:e.brandId}}).then((function(t){if(e.loadSave=!1,"0000"!=t.code)e.$message.warning(t.message||"接口异常");else{e.$message.success("保存成功");var r=e.$route.query,a=r.applicationId,n=r.tab,o=r.performanceYm;e.$router.push("/target-store?applicationId=".concat(a,"&tab=").concat(n,"&performanceYm=").concat(o))}})).catch((function(t){e.loadSave=!1}))},getData:function(){var e=this,t=this;t.loadSave=!0;var r={enterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId,storeInfoId:t.clerkObj.storeInfoId,performanceYm:t.clerkObj.performanceYm,performanceType:t.$route.query.performanceType,performanceSubType:t.$route.query.performanceSubType};i(r,{headers:{sign:t.brandId}}).then((function(e){if("0000"==e.code){e.result&&e.result.length&&(e.result.forEach((function(e){e.performanceValue=Number(e.performanceValue).toFixed(2)})),t.tableData=e.result||[]),t.clerkObj.storePerformance=Number(t.$route.query.performanceValue).toFixed(2);var r=0;return t.tableData.forEach((function(e){r+=Number(e.performanceValue)})),t.performanceSum=Number(r).toFixed(2),void t.diffData()}})).catch((function(e){})).finally((function(){return e.loadSave=!1}))}},watch:{brandId:function(e,t){var r=this;e&&(r.clerkObj.performanceYm=r.$route.query.performanceYm,r.clerkObj.storeInfoId=r.$route.query.storeInfoId,r.clerkObj.storeName=r.$route.query.storeName,r.getData())}}},u=l,f=(r("1416"),r("2877")),p=Object(f["a"])(u,a,n,!1,null,"05d82f6a",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d2775d6"],{"0ac0":function(t,e,a){},"1d4b":function(t,e,a){},"220a":function(t,e,a){},2340:function(t,e,a){},"236e":function(t,e,a){},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var r=0,n=0;n<t.length;n++){var s=t.charAt(n);if(1==a&&(encodeURI(s).length>2?r+=1:r+=.5),2==a&&(r+=1),r>=e){var i=r==e?n+1:n;return t.substr(0,i)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=1:n+=.5,n>e)break;r+=a[s]}return r},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=2:n+=1,n>e)break;r+=a[s]}return r},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"2c7d":function(t,e,a){},4917:function(t,e,a){"use strict";var r=a("cb7c"),n=a("9def"),s=a("0390"),i=a("5f1b");a("214f")("match",1,(function(t,e,a,o){return[function(a){var r=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,r):new RegExp(a)[e](String(r))},function(t){var e=o(a,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;var m,d=[],h=0;while(null!==(m=i(l,c))){var p=String(m[0]);d[h]=p,""===p&&(l.lastIndex=s(c,n(l.lastIndex),u)),h++}return 0===h?null:d}]}))},"5af5":function(t,e,a){"use strict";var r=a("2340"),n=a.n(r);n.a},"62a7":function(t,e,a){"use strict";a.r(e);var r=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}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"new-auth-body"},[2!=t.activeStep?a("div",[a("auth-step",{attrs:{"active-step":t.activeStep}})],1):t._e(),0==t.activeStep?a("div",{staticClass:"auth-tip-body"},[a("auth-tip",{staticClass:"m-t-30"}),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"authForm",staticClass:"dialog-form m-t-20",attrs:{model:t.authForm,rules:t.rules,"label-width":"110px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{prop:"enterpriseId"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("因企业微信仅支持获取同一开放平台的客户unionid。需要:"),a("br"),t._v("1.确认授权的的多个企业绑定的公众号或小程序存在同一开放平台内;"),a("br"),t._v("2.绑定微信开发者的小程序或公众号与企业微信认证企业主体相同。"),a("br"),t._v("参考链接: https://work.weixin.qq.com/api/doc/90001/90143/92265")]),a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("选择商户")])])],1),a("div",{staticClass:"el-input-group__prepend"},[t._v("GIC4.0")]),t.$route.query.enterpriseId?t._e():a("el-popover",{attrs:{placement:"bottom",title:"",trigger:"click","popper-class":"company-select-pop",width:"267"}},[a("div",{staticClass:"company-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.searchArray,(function(e,r){return a("li",{key:r+"search",staticClass:"el-select-dropdown__item",on:{click:function(a){return t.getAdmin(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.enterpriseName||"--"))]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.companyName||"--"))])]),e.enterpriseId==t.authForm.enterpriseId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e()])])})),t.searchArray.length?t._e():a("li",{staticClass:"el-select-dropdown__item text-center"},[t._v("暂无商户数据")])],2)])])]),a("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.searchBrandList(e,t.searchSelect)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])]),t.$route.query.enterpriseId?a("div",{staticClass:"select-search-input"},[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},model:{value:t.authForm.enterpriseName,callback:function(e){t.$set(t.authForm,"enterpriseName",e)},expression:"authForm.enterpriseName"}})],1):t._e()],1),a("el-form-item",{attrs:{prop:"bindRange"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"拥有选中的门店管理权限,以及导购账号绑定权限",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("门店绑定")])])],1),a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(1)}}},[t.authForm.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.bindRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.bindRange)}}})])]}))],2)]):t._e(),0==t.authForm.bindStoreMode&&""!==t.authForm.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",{attrs:{prop:"shareRange"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"拥有选中的门店查看权限",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("门店共享")])])],1),a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(2)}}},[t.authForm.shareStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.shareRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.shareRange)}}})])]}))],2)]):t._e(),0==t.authForm.shareStoreMode&&""!==t.authForm.shareStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{disabled:!t.changeFlag||""===t.authForm.shareStoreMode&&""===t.authForm.bindStoreMode,type:"primary"},on:{click:function(e){return t.submitForm("authForm")}}},[t._v("下一步")])],1)],1)],1):t._e(),1==t.activeStep?a("div",{staticClass:"commit-success-body m-t-35"},[a("auth-commit",{attrs:{"load-submit":t.loadSubmit,"admin-list":t.adminList,reason:t.authForm.auditReason},on:{changeStep:t.changeStep,returnStep:t.returnStep}})],1):t._e(),2==t.activeStep?a("div",{staticClass:"commit-success-body"},[a("auth-commit-success",{attrs:{"enterprise-id":t.authForm.enterpriseId}})],1):t._e()])])])])]),t.setVisible?a("store-auth-dialog",{attrs:{"enterprise-id":t.authForm.enterpriseId,"is-select-all":t.isSelectAll,"select-mode":t.selectMode,"range-data":t.rangeData,"bind-type":t.bindType},on:{closeSet:t.closeSet}}):t._e(),t.checkShow?a("check-name-dialog",{attrs:{"sync-data":t.syncData},on:{closeSet:t.closeCheckSet}}):t._e()],1)},n=[],s=(a("96cf"),a("1da1")),i=(a("ac6a"),a("29b6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["auth-step-body",0==t.active?"step-one":"step-two"]},[a("el-steps",{attrs:{active:t.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"GIC商户授权",description:""}}),a("el-step",{attrs:{title:"审核员授权",description:""}})],1)],1)])},l=[],c={name:"AuthStep",components:{},props:{activeStep:{type:String,default:function(){return"0"}}},data:function(){return{active:"0"}},mounted:function(){var t=this;t.active=t.activeStep},watch:{activeStep:function(t){this.active=t}}},u=c,m=(a("de0b"),a("2877")),d=Object(m["a"])(u,o,l,!1,null,"c9703e40",null),h=d.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-tip"},[a("div",{staticStyle:{width:"645px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"645px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n 商户授权须知:"),a("br"),t._v("\n 1. 商户授权可以是多个商户授权到1个企业下,但是需保证使用的服务号或小程序在同一开放平台"),a("br"),t._v("\n    下,否则绑定商户的客户获取的unionid会不一致,最终会无法识别企业微信客户与会员的绑定性;"),a("br"),t._v("\n 2. 商户绑定后,可选择部分门店绑定,如商户有100家门店,可授权其中50家;"),a("br"),t._v("\n 3. 绑定商户结束后,导购可通过企业微信好办小程序绑定导购账号后登录;"),a("br"),t._v("\n 4. 进行门店绑定后,请勿随意操作门店绑定范围,如果门店范围取消,会导致用户关联的导购账号"),a("br"),t._v("\n    解绑,"),a("span",{staticClass:"color-f5222d"},[t._v("如果24小时内未恢复范围,会永久解绑。")])])])])])])}],g={name:"AuthTip",data:function(){return{}}},v=g,b=(a("c8ff"),Object(m["a"])(v,p,f,!1,null,"6246f46e",null)),S=b.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-success"},[t._m(0),a("div",{staticClass:"commit-success-text text-center font-14 color-303133 m-t-12"},[t._v("已提交管理员审核,请通知管理员及时审核")]),a("div",{staticClass:"commit-success-btn text-center m-t-28"},[a("el-button",{on:{click:function(e){return t.changeRoute("/authMerchant")}}},[t._v("返回授权列表")]),a("el-button",{on:{click:function(e){return t.changeRoute("/auditLog?enterpriseId="+t.enterpriseId)}}},[t._v("进入审核列表")])],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"commit-success-img text-center"},[a("span",{staticClass:"iconfont-hb4 iconchenggong color-49c958 font-60"})])}],F={name:"AuthCommitSuccess",components:{},props:{enterpriseId:{type:String,default:""}},data:function(){return{}},methods:{changeRoute:function(t){this.$router.push(t)}}},C=F,N=(a("fbee"),Object(m["a"])(C,y,_,!1,null,"52f63fda",null)),R=N.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadSubmit,expression:"loadSubmit"}],staticClass:"auth-commit-admin"},[a("common-alert-tip",{staticClass:"m-b-32",attrs:{width:"328px","tip-content":t.tipContent}}),a("el-form",{ref:"commitForm",staticClass:"dialog-form",attrs:{model:t.commitForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"申请事项",prop:"commitName"}},[a("el-input",{staticClass:"w-198",attrs:{disabled:""},model:{value:t.commitForm.commitName,callback:function(e){t.$set(t.commitForm,"commitName",e)},expression:"commitForm.commitName"}})],1),a("el-form-item",{attrs:{label:"申请理由",prop:"auditReason"}},[a("limit-textarea",{attrs:{"input-width":298,"input-value":t.commitForm.auditReason,holder:"请输入申请理由","get-by-type":"word","max-length":50},on:{"update:inputValue":function(e){return t.$set(t.commitForm,"auditReason",e)},"update:input-value":function(e){return t.$set(t.commitForm,"auditReason",e)}}})],1),a("el-form-item",{attrs:{label:"审核人",prop:""}},[a("div",{staticClass:"flex flex-wrap audit-admin-body"},[t._l(t.commitForm.auditAdmin,(function(e,r){return[a("span",{key:r+"admin",staticClass:"audit-admin"},[t._v("\n "+t._s(t._f("formatWord")(e.clerkName))+"("+t._s(e.nationCode+"-"+e.phoneNumber)+")\n ")])]}))],2)]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("commitForm")}}},[t._v("提交审核")])],1)],1)],1)},w=[],D=a("3081"),I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},k=[],M=(a("c5f6"),a("2802")),O={name:"LimitTextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},mounted:function(){var t=this;t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","word"==t.getByType?t.inputNum=M["a"].getZhLen(t.inputValue):t.inputNum=M["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=M["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getZhLen(e.itemValue)):(a=M["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;a.itemValue=t,"word"==a.getByType?a.inputNum=M["a"].getZhLen(a.itemValue):a.inputNum=M["a"].getByteLen(a.itemValue)}}},$=O,L=(a("8cfe"),Object(m["a"])($,I,k,!1,null,"8106e482",null)),A=L.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:D["a"],limitTextarea:A},props:{loadSubmit:{type:Boolean,default:!1},reason:{type:String,default:""},adminList:{type:[Object,Array],default:function(){return[]}}},data:function(){return{tipContent:"提交商户绑定审核,经审核员同意后绑定成功",commitForm:{commitType:1,commitName:"商户授权",auditReason:this.reason||"",auditAdmin:[]},rules:{auditReason:[{required:!0,message:"请输入申请理由",trigger:"blur"}]},loadBtn:!1}},mounted:function(){var t=this;t.commitForm.auditAdmin=JSON.parse(JSON.stringify(t.adminList))},methods:{cancel:function(){var t=this;t.$emit("returnStep")},submitForm:Object(V["b"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.toCommitPost()}))}),500),toCommitPost:function(){var t=this;t.$emit("changeStep",t.commitForm.auditReason)},changeRoute:function(t){this.$router.push(t)}},watch:{adminList:function(t){var e=this;e.commitForm.auditAdmin=JSON.parse(JSON.stringify(t))}}},E=J,B=(a("b398"),Object(m["a"])(E,x,w,!1,null,"7eb181ea",null)),j=B.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"554px",title:1==t.bindType?"门店绑定":"门店共享",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[t._v("\n 选择"+t._s(1==t.bindType?"绑定":"共享")+"门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{disabled:1==t.isSelectAll&&1==t.bindType,label:"0"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择门店")]),("1"!=t.formData.sendRange&&"2"!=t.formData.sendRange||t.formData.selectList.length)&&"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&-1!=t.formData.sendRange?t._e():a("div",{staticClass:"el-form-item__error"},[t._v("请选择绑定门店")]),"1"==t.formData.sendRange?a("store-auth-group",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-group":t.selectGroupData},on:{checkGroupIds:t.checkGroupIds}}):t._e(),"2"==t.formData.sendRange?a("store-auth-store",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-store":t.selectStoreData},on:{checkStoreIds:t.checkStoreIds}}):t._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.submitForm(e)}}},[t._v("确定")])],1)])},G=[],q=a("7ca9"),P=a("418e"),U={name:"StoreAuthDialog",components:{storeAuthGroup:q["a"],storeAuthStore:P["a"]},props:{isSelectAll:{type:[String,Number],default:"0"},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"1"},selectMode:{type:[String,Number],default:"0"},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{setVisible:!0,formData:{sendRange:"0",selectList:[]},selectGroupData:[],selectStoreData:[]}},mounted:function(){var t=this;t.formData.sendRange=String(t.selectMode),t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.formData.selectList=JSON.parse(JSON.stringify(t.rangeData))||[]},methods:{changeRange:function(t){var e=this;e.formData.sendRange=t,e.formData.selectList=[]},handleClose:function(t){var e=this;t(),e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var t=this;t.$emit("closeSet","close"),t.selectGroupData=[],t.selectStoreData=[]},checkGroupIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},checkStoreIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},submitForm:function(){var t=this;return"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&-1!=t.formData.sendRange&&(!("1"==t.formData.sendRange&&!t.formData.selectList.length)&&(!("2"==t.formData.sendRange&&!t.formData.selectList.length)&&void t.$emit("closeSet",String(t.formData.sendRange),t.formData.selectList)))}},watch:{selectMode:function(t){var e=this;e.formData.sendRange=String(t)},rangeData:function(t){var e=this;e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.formData.selectList=JSON.parse(JSON.stringify(t))||[]}}},W=U,Z=(a("b0d6"),Object(m["a"])(W,T,G,!1,null,"761c5b6a",null)),z=Z.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"check-name-dialog",attrs:{title:"提示",visible:t.dialogVisible,width:"416px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"font-14 color-606266 m-b-10"},[t._v("首次授权商户需要校验GIC商户超级管理员姓名")]),a("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"超级管理员",prop:"userName"}},[a("span",[t._v(t._s(t.firstName))]),a("el-input",{staticClass:"w-173 m-l-10",attrs:{maxlength:"50",placeholder:"输入姓名校验"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},K=[],Q=a("21f4"),X=a("5b4e"),Y=Q["a"].getCheckName,tt=Q["a"].checkName,et={name:"CheckNameDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0,loading:!1,firstName:"",ruleForm:{userName:""},rules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]}}},mounted:function(){var t=this;t.getCheckNameData()},methods:{getCheckNameData:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId};Y(e).then((function(e){t.firstName=e.result||""})).catch((function(t){}))},handleClose:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},cancel:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},submitForm:Object(V["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postCheck()}))}),300),postCheck:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId,userName:t.firstName+t.ruleForm.userName};tt(e).then((function(e){t.loading=!1,"0000"==e.code?e.result?(X["a"].showmsg("校验成功","success"),t.ruleForm.userName="",t.$emit("closeSet","success")):X["a"].showmsg("校验失败","warning"):X["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))}}},at=et,rt=(a("5af5"),Object(m["a"])(at,H,K,!1,null,"a960be2a",null)),nt=rt.exports,st=Q["a"].getAuthDetail,it=Q["a"].getEnterprise,ot=Q["a"].getEnterpriseDetail,lt=Q["a"].getGicAdmin,ct=Q["a"].postEnterpriseAuth,ut={name:"NewAuthMerchant",components:{navCrumb:i["a"],authStep:h,authTip:S,authCommitSuccess:R,authCommit:j,storeAuthDialog:z,checkNameDialog:nt},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:this.$route.query.enterpriseId?"编辑授权":"新建授权",path:""}],loading:!1,wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",activeStep:"0",brandOptions:[],searchSelect:"",searchArray:[],authForm:{storeRangeAuditId:"",enterpriseId:"",enterpriseName:"",bindRange:[],shareRange:[],shareStoreMode:"",bindStoreMode:"",auditReason:""},rules:{enterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},checkShow:!1,syncData:{},isSelectAll:0,changeFlag:!1,setVisible:!1,selectMode:"0",rangeData:[],bindType:1,adminList:[],loadSubmit:!1}},mounted:function(){var t=this;t.$route.query.enterpriseId&&t.getData(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{closeCheckSet:function(t){var e=this;if(e.checkShow=!1,"close"==t)return!1;e.authForm.enterpriseId=e.syncData.enterpriseId,e.authForm.enterpriseName=e.syncData.enterpriseName,e.$refs["authForm"].validate((function(t){return!!t&&void 0}))},closeSet:function(t,e){var a=this;if(a.setVisible=!1,"close"==t)return!1;a.selectMode=String(t),1==a.bindType?(a.authForm.bindStoreMode=String(t),a.authForm.bindRange=JSON.parse(JSON.stringify(e))):(a.authForm.shareStoreMode=String(t),a.authForm.shareRange=JSON.parse(JSON.stringify(e))),a.changeFlag=!0},showStore:function(t){var e=this;if(!e.authForm.enterpriseId)return!1;e.selectMode=1==t?e.authForm.bindStoreMode:e.authForm.shareStoreMode,e.rangeData=1==t?e.authForm.bindRange:e.authForm.shareRange,e.bindType=t,e.setVisible=!0,e.getEnterpriseData()},getSearchList:function(t){var e={enterpriseName:t};return""==t?[]:new Promise((function(t,a){it(e).then((function(e){"0000"==e.code?(e.result&&e.result.forEach((function(t){t.value=t.enterpriseName})),t(e.result)):t([])})).catch((function(e){t([])}))}))},searchBrandList:Object(V["a"])((void 0).querySearchAsync(),200),querySearchAsync:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,""!=String(e.searchSelect).trim()){t.next=10;break}return e.authForm.enterpriseId="",e.searchArray=[],e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],t.abrupt("return",!1);case 10:return t.next=12,e.getSearchList(e.searchSelect);case 12:a=t.sent,e.searchArray=a;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),returnStep:function(){var t=this;t.activeStep=0},cancel:function(){var t=this;t.$router.push("/authMerchant")},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.activeStep=1}))},delStore:function(t,e){var a=this;e.splice(t,1),a.changeFlag=!0,a.authForm.shareStoreMode=!a.authForm.shareRange.length&&a.authForm.shareStoreMode>0||null==a.authForm.shareStoreMode||-1==a.authForm.shareStoreMode?"":String(a.authForm.shareStoreMode),a.authForm.bindStoreMode=!a.authForm.bindRange.length&&a.authForm.bindStoreMode>0||null==a.authForm.bindStoreMode||-1==a.authForm.bindStoreMode?"":String(a.authForm.bindStoreMode)},getAdmin:function(t){var e=this;if(e.authForm.enterpriseId==t.enterpriseId)return!1;e.syncData=t,e.checkShow=!0,e.authForm.enterpriseId="",e.authForm.enterpriseName="",e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;lt({enterpriseId:t}).then((function(t){t.result&&t.result.length&&(e.adminList=t.result||[])})).catch((function(t){}))},changeStep:function(t){var e=this;e.authForm.auditReason=Object(V["d"])(t),e.loadSubmit=!0;var a={enterpriseId:e.authForm.enterpriseId,wxEnterpriseId:e.wxEnterpriseId,shareRange:e.authForm.shareStoreMode>0?1==e.authForm.shareStoreMode?e.authForm.shareRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.shareRange.map((function(t){return t.storeInfoId})).join(","):"",bindRange:e.authForm.bindStoreMode>0?1==e.authForm.bindStoreMode?e.authForm.bindRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.bindRange.map((function(t){return t.storeInfoId})).join(","):"",auditReason:e.authForm.auditReason,shareStoreMode:!e.authForm.shareRange.length&&e.authForm.shareStoreMode>0||null==e.authForm.shareStoreMode||-1==e.authForm.shareStoreMode?"":String(e.authForm.shareStoreMode),bindStoreMode:!e.authForm.bindRange.length&&e.authForm.bindStoreMode>0||null==e.authForm.bindStoreMode||-1==e.authForm.bindStoreMode?"":String(e.authForm.bindStoreMode),auditorName:e.auditorName};ct(a).then((function(t){e.loadSubmit=!1,"0000"==t.code?e.activeStep=2:e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadSubmit=!1}))},changeRoute:function(t){this.$router.push(t)},getEnterpriseData:function(){var t=this;ot({enterpriseId:t.$route.query.enterpriseId||t.authForm.enterpriseId}).then((function(e){t.isSelectAll=e.result.bindFlag})).catch((function(t){}))},getData:function(){var t=this;t.loading=!0;var e={enterpriseId:t.$route.query.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};st(e).then((function(e){t.loading=!1,"0000"==e.code&&(e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],t.authForm=e.result||{},t.getAdminList(e.result.enterpriseId))})).catch((function(e){t.loading=!1}))}}},mt=ut,dt=(a("dfc8"),Object(m["a"])(mt,r,n,!1,null,"01ed25de",null));e["default"]=dt.exports},"7c43":function(t,e,a){},"8cfe":function(t,e,a){"use strict";var r=a("236e"),n=a.n(r);n.a},b0d6:function(t,e,a){"use strict";var r=a("1d4b"),n=a.n(r);n.a},b398:function(t,e,a){"use strict";var r=a("2c7d"),n=a.n(r);n.a},c8ff:function(t,e,a){"use strict";var r=a("0ac0"),n=a.n(r);n.a},de0b:function(t,e,a){"use strict";var r=a("220a"),n=a.n(r);n.a},dfc8:function(t,e,a){"use strict";var r=a("f55b"),n=a.n(r);n.a},f55b:function(t,e,a){},fbee:function(t,e,a){"use strict";var r=a("7c43"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bbbe134"],{"0039":function(e,t,r){"use strict";var a=r("46e4"),o=r.n(a);o.a},"3b01":function(e,t,r){"use strict";var a=r("5c59"),o=r.n(a);o.a},"46e4":function(e,t,r){},"5c59":function(e,t,r){},"5d04":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"month-target"}},[e._l(e.tableData,(function(t){return r("div",{key:t.num,staticClass:"target-box"},[r("header",[e._v(e._s(t.head))]),r("div",{class:{content:!0,red:e.isTrue(t),noIcon:e.noIcon}},[e.isBatch&&(e.isPreMonth(t)||e.isLastThree(t.num))?r("span",[e._v("无需设置")]):[r("el-select",{attrs:{disabled:t.disabled},model:{value:t.type,callback:function(r){e.$set(t,"type",r)},expression:"item.type"}},[r("el-option",{attrs:{label:"日权重",value:1}}),r("el-option",{attrs:{label:"日指标",value:2}})],1),r("el-input-number",{attrs:{controls:!1,placeholder:"请输入",precision:e.isPrecision?2:0,min:0,max:99999999.99,disabled:t.disabled},on:{change:function(t){return e.$emit("change",e.tableData)}},model:{value:t.val,callback:function(r){e.$set(t,"val",r)},expression:"item.val"}})]],2)])})),r("div",{staticClass:"tip"},[e._v("当月及之后月份必填,历史月份非必填")])],2)},o=[],n=(r("28a5"),r("ac6a"),r("c5f6"),[{head:"一月",type:1,num:"01",val:void 0,disabled:!1},{head:"二月",type:1,num:"02",val:void 0,disabled:!1},{head:"三月",type:1,num:"03",val:void 0,disabled:!1},{head:"四月",type:1,num:"04",val:void 0,disabled:!1},{head:"五月",type:1,num:"05",val:void 0,disabled:!1},{head:"六月",type:1,num:"06",val:void 0,disabled:!1},{head:"七月",type:1,num:"07",val:void 0,disabled:!1},{head:"八月",type:1,num:"08",val:void 0,disabled:!1},{head:"九月",type:1,num:"09",val:void 0,disabled:!1},{head:"十月",type:1,num:"10",val:void 0,disabled:!1},{head:"十一月",type:1,num:"11",val:void 0,disabled:!1},{head:"十二月",type:1,num:"12",val:void 0,disabled:!1}]),s={name:"MonthTarget",props:{data:{type:Object,default:function(){return[]}},year:{type:[String,Number],default:""},isBatch:{type:Boolean,default:!1},isPrecision:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1}},data:function(){return{tableData:JSON.parse(JSON.stringify(n)),thisYear:(new Date).getFullYear(),month:(new Date).getMonth()}},mounted:function(){this.$emit("change",this.tableData)},methods:{validate:function(){var e=this;return this.tableData.some((function(t){return e.isTrue(t)}))},isTrue:function(e){return!this.isAllNot&&!this.isLastThree(e.num)&&(!(!(this.isAllRed||this.month<e.num)||void 0!==e.val)||void 0)},isPreMonth:function(e){return!!this.isAllNot||!this.isAllRed&&!(this.month<e.num)},clear:function(){this.tableData=JSON.parse(JSON.stringify(n)),this.$emit("change",this.tableData)},isLastThree:function(e){if(this.year!=this.thisYear)return!1;if(this.month+1!=e)return!1;var t=new Date(this.year,e,0).getDate();return t-3<(new Date).getDate()}},computed:{isAllRed:function(){return this.year>this.thisYear},isAllNot:function(){return this.year<this.thisYear}},watch:{data:function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){var r=e.performanceYm,a=e.performanceValue,o=e.performanceSubType,n=r.split("-")[1],s=t.tableData[n-1];s.val=a||0==a?a:void 0,s.type=o||1,(a||0==a)&&t.isPreMonth(s)&&(s.disabled=!0),t.isLastThree(n)&&(s.disabled=!0)}))}}},i=s,l=(r("3b01"),r("2877")),c=Object(l["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("ac6a"),r("456d");var a=r("b775");function o(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var o=e[r];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[r]=function(e,t){return Object(a["a"])(o,e,t)}})),e}},"8e6e":function(e,t,r){var a=r("5ca1"),o=r("990b"),n=r("6821"),s=r("11e9"),i=r("f1ae");a(a.S,"Object",{getOwnPropertyDescriptors:function(e){var t,r,a=n(e),l=s.f,c=o(a),d={},f=0;while(c.length>f)r=l(a,t=c[f++]),void 0!==r&&i(d,t,r);return d}})},"990b":function(e,t,r){var a=r("9093"),o=r("2621"),n=r("cb7c"),s=r("7726").Reflect;e.exports=s&&s.ownKeys||function(e){var t=a.f(n(e)),r=o.f;return r?t.concat(r(e)):t}},"9f7c":function(e,t,r){"use strict";var a=r("71f6"),o={getTargetList:"/performance/total-performance-list",getStorePerformanceDetail:"/performance/list-store-performance",changeStorePerformanceMonth:"/performance/change-store-month-performance",getStorePerformanceDay:"/performance/list-day-performance",changeStorePerformanceDay:{url:"/performance/save-day-performance",method:"post",useFormData:!0},batchSaveStorePerformanceDay:{url:"/performance/batch-save-day-performance",method:"post",useFormData:!0},getStorePerformanceClerk:"/performance/list-clerk-performance",changeStorePerformanceClerk:{url:"/performance/save-clerk-performance",method:"post",useFormData:!0},getYearList:"/setting/get-year-list",getStorePerformanceList:"/setting/list-store-performance",getNoStorePerformanceList:"/setting/list-no-store-performance",getSingleStorePerformanceDetail:"/setting/see-single-store-performance",saveStorePerformance:{url:"/setting/add-store-performance",method:"post",useFormData:!0,useIntercept:!0},editStorePerformance:{url:"/setting/edit-single-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchEditStorePerformance:{url:"/setting/batch-setting-store-performance",method:"post",useFormData:!0,useIntercept:!0},batchSettingRight:"/setting/batch-setting-right",getTargetSet:"/setting/get-performance-setting",saveTargetSet:{url:"/setting/save-performance-setting",method:"post",useFormData:!0},getTagList:"/setting/list-store-tag",delStorePerformance:"/setting/del-store-performance"};o=Object(a["a"])(o,"/hb-app-performance-web"),t["a"]=o},ade3:function(e,t,r){"use strict";function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return a}))},d091:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"common-app-right"},[r("el-alert",{attrs:{"show-icon":"",closable:!1}},[r("template",{slot:"title"},[r("div",[e._v("1.下发类型修改后、日权重/日指标修改后、指标设置立即生效,修改后数据统计次日生效")]),r("div",[e._v("2.修改当月指标会导致已完善的日指标重新下发及完善。请谨慎设置")])])],2),r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"180px","hide-required-asterisk":""}},[r("el-form-item",{attrs:{label:"选择年份",prop:"performanceYear"}},[e.edit?r("span",[e._v(e._s(e.form.performanceYear))]):r("el-select",{attrs:{placeholder:"请选择年份"},model:{value:e.form.performanceYear,callback:function(t){e.$set(e.form,"performanceYear",t)},expression:"form.performanceYear"}},e._l(e.yearList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"选择门店",prop:"storeValue"}},[e.edit?r("span",[e._v(e._s(e.targetStoreInfoIds.map((function(e){return e.storeName})).join(";")))]):[r("el-radio-group",{on:{change:e.storeModeChange},model:{value:e.form.storeMode,callback:function(t){e.$set(e.form,"storeMode",t)},expression:"form.storeMode"}},[r("el-radio",{attrs:{label:0}},[e._v("所有门店")]),r("el-radio",{attrs:{label:1}},[e._v("选择分组")]),r("el-radio",{attrs:{label:2}},[e._v("选择门店")])],1),1==e.form.storeMode?r("customer-store-group",{attrs:{"brand-id":e.brandId,"select-group":e.storeValue},on:{checkGroupIds:e.checkGroupIds}}):e._e(),2==e.form.storeMode?r("customer-store",{attrs:{"brand-id":e.brandId,"select-store":e.storeValue},on:{checkStoreIds:e.checkGroupIds}}):e._e()]],2),!e.edit||["1","2"].includes(e.edit)?r("el-form-item",{attrs:{label:"指标类型(必填一项)",prop:"type"}},[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",placement:"top-start"},slot:"label"},[r("div",{attrs:{slot:"content"},slot:"content"},[r("p",[e._v("日指标:")]),r("p",[e._v("1.设置日权重,则需先设置月指标,再设置门店日权重。指标会计算每日完成度;")]),r("p",[e._v("2.设置日权重,后台可批量设置日权重,门店编辑权限可设置不可编辑;")]),r("p",[e._v("日权重:")]),r("p",[e._v("1.设置日权重,则需先设置月指标,再设置门店日权重。指标会计算每日完成度;")]),r("p",[e._v("2.设置日权重,后台可批量设置日权重,门店编辑权限可设置不可编辑")])]),r("span",{staticClass:"tooltip-icon"},[e._v("指标类型(必填一项)")])]),r("el-checkbox",{staticStyle:{"margin-bottom":"30px"},attrs:{"true-label":1,"false-label":0,disabled:"2"===e.edit||e.preDisabled},model:{value:e.form.performanceFlag,callback:function(t){e.$set(e.form,"performanceFlag",t)},expression:"form.performanceFlag"}},[e._v("\n 业绩指标(元)\n ")]),r("month-target",{directives:[{name:"show",rawName:"v-show",value:1==e.form.performanceFlag,expression:"form.performanceFlag == 1"}],ref:"monthTargetRef1",attrs:{"is-precision":"","is-batch":"2"===e.edit,year:e.form.performanceYear,data:e.performanceCallback},on:{change:function(t){return e.monthTargetChange(t,"performanceVal")}}}),r("br"),r("el-checkbox",{staticStyle:{"margin-bottom":"30px"},attrs:{"true-label":1,"false-label":0,disabled:"2"===e.edit||e.preDisabled},model:{value:e.form.addMemberFlag,callback:function(t){e.$set(e.form,"addMemberFlag",t)},expression:"form.addMemberFlag"}},[e._v("\n 新增会员指标(人)\n ")]),r("month-target",{directives:[{name:"show",rawName:"v-show",value:1==e.form.addMemberFlag,expression:"form.addMemberFlag == 1"}],ref:"monthTargetRef2",attrs:{"is-batch":"2"===e.edit,year:e.form.performanceYear,data:e.addMemberCallback,"no-icon":""},on:{change:function(t){return e.monthTargetChange(t,"addMemberVal")}}})],1):e._e(),"3"!==e.edit&&e.edit?e._e():r("el-form-item",{attrs:{label:"指标编辑权限",prop:"storeEdit"}},[r("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.form.storeEdit,callback:function(t){e.$set(e.form,"storeEdit",t)},expression:"form.storeEdit"}},[e._v("店长可修改指标")])],1),r("el-form-item",{attrs:{label:""}},[r("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("保存")])],1)],1)],1)},o=[],n=(r("8e6e"),r("ac6a"),r("456d"),r("6b54"),r("c5f6"),r("ade3")),s=(r("96cf"),r("1da1")),i=r("2923"),l=r("dfdc"),c=r("5d04"),d=r("9f7c");function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=d["a"].saveStorePerformance,p=d["a"].batchSettingRight,h=d["a"].batchEditStorePerformance,b=d["a"].editStorePerformance,g=d["a"].getSingleStorePerformanceDetail,v={name:"EditStoreQuota",components:{customerStoreGroup:i["a"],customerStore:l["a"],MonthTarget:c["default"]},props:{brandId:{type:String,default:""}},data:function(){var e=this,t=function(t,r,a){e.$nextTick((function(){var t=e.form,r=t.storeMode,o=t.storeValue;0===r&&a(),o&&o.length||a(new Error("请选择分组或门店")),a()}))};return{loading:!1,form:{performanceYear:"",storeMode:0,storeValue:[],storeEdit:0,performanceFlag:0,performanceSubType:1,addMemberFlag:0,addMemebrSubType:1},rules:{performanceYear:[{required:!0,message:"请选择年份",trigger:"blur"}],storeValue:[{required:!0,validator:t,trigger:["blur","change"]}]},targetList:[{name:"日权重",val:1},{name:"日指标",val:2}],yearList:[(new Date).getFullYear(),(new Date).getFullYear()+1],performanceCallback:null,performanceVal:null,addMemberCallback:null,addMemberVal:null,targetStoreInfoIds:[],edit:"",bread:[{name:"指标设置",path:""},{name:""}],typeList:[{performanceFlag:1},{addMemberFlag:1}],preDisabled:!1}},created:function(){this.init(),this.$emit("change-nav",this.bread)},mounted:function(){this.$emit("showTab","/quota-set")},methods:{init:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,a,o,n,s,i,l,c,d,f,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.$route.query,r=t.applicationId,a=t.edit,o=t.year,n=t.storeEdit,s=t.storeInfoId,i=t.storeName,l=t.tab,c=t.type,d=t.performanceFlag,f=t.addMemberFlag,u=t.single,this.bread[0].path="/quota-set?applicationId=".concat(r,"&tab=").concat(l),this.bread[1].name=a?"编辑指标":"新建指标",e.t0=a,e.next="1"===e.t0?6:"2"===e.t0?12:"3"===e.t0?16:19;break;case 6:return this.form.performanceYear=o,this.targetStoreInfoIds=[{storeName:i,storeInfoId:s}],e.next=10,this.callback({year:o,storeInfoId:s});case 10:return"1"===l&&(this.preDisabled=!0,this.form.performanceFlag="1"==d?1:this.form.performanceFlag,this.form.addMemberFlag="1"==f?1:this.form.addMemberFlag),e.abrupt("break",20);case 12:return this.targetStoreInfoIds=JSON.parse(localStorage.getItem("targetStoreInfoIds")),this.form=m(m({},this.form),{},{performanceYear:o}),"1"===l?(this.form.performanceFlag="1"==d?1:this.form.performanceFlag,this.form.addMemberFlag="1"==f?1:this.form.addMemberFlag):this.form=m(m({},this.form),this.typeList[c-1]),e.abrupt("break",20);case 16:return u?(this.form.storeEdit=Number(n),this.targetStoreInfoIds=[{storeName:i,storeInfoId:s}]):this.targetStoreInfoIds=JSON.parse(localStorage.getItem("targetStoreInfoIds")),this.form.performanceYear=o,e.abrupt("break",20);case 19:return e.abrupt("break",20);case 20:this.edit=a;case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),callback:function(e){var t=this,r=e.year,a=e.storeInfoId,o=JSON.parse(localStorage.getItem("haoBanUser")),n=o.staffId,s=o.wxEnterpriseId;this.loading=!0;var i={storeInfoId:a,wxEnterpriseId:s,performanceYear:r,submitStaffId:n,enterpriseId:this.brandId};return g(i,{headers:{sign:this.brandId}}).then((function(e){var r=e.result,a=r.addMemebrValue,o=r.performanceValue;t.form=m(m({},t.form),e.result),a&&(t.addMemberCallback=JSON.parse(a)),o&&(t.performanceCallback=JSON.parse(o))})).finally((function(){return t.loading=!1}))},checkGroupIds:function(e){this.form.storeValue=JSON.parse(JSON.stringify(e))},monthTargetChange:function(e,t){this[t]=e},confirm:function(){var e=this;this.$refs.form.validate((function(t){if(t){var r=e.form,a=r.performanceFlag,o=r.addMemberFlag,n=r.storeValue,s=r.performanceYear,i=r.storeMode,l=r.storeEdit;if("3"!==e.edit&&!a&&!o)return e.$message.warning("指标类型必填一项");if(a&&e.$refs.monthTargetRef1.validate())return e.$message.warning("请完善业绩指标");if(o&&e.$refs.monthTargetRef2.validate())return e.$message.warning("请完善新增会员指标");e.loading=!0;var c=JSON.parse(localStorage.getItem("haoBanUser")),d=c.staffName,f=c.staffId,g=c.wxEnterpriseId,v={wxEnterpriseId:g,submitStaffName:d,submitStaffId:f,enterpriseId:e.brandId};"1"===e.edit?v=m(m(m({},e.form),v),{},{storeEdit:l,performanceValue:e.filterTargetVal("performanceVal",s),addMemebrValue:e.filterTargetVal("addMemberVal",s),storeInfoId:e.targetStoreInfoIds[0].storeInfoId,storeMode:void 0,storeValue:void 0}):"2"===e.edit?v=m(m(m({},e.form),v),{},{performanceValue:e.filterTargetVal("performanceVal",s),addMemebrValue:e.filterTargetVal("addMemberVal",s),storeInfoIds:e.targetStoreInfoIds.map((function(e){return e.storeInfoId})).join(","),storeMode:void 0,storeValue:void 0}):"3"===e.edit?v=m(m({},v),{},{performanceYear:s,storeEdit:l,storeInfoIds:e.targetStoreInfoIds.map((function(e){return e.storeInfoId})).join(",")}):e.edit||(v=m(m(m({},e.form),v),{},{storeValue:n.map((function(e){return 1==i?e.storeGroupId:e.storeInfoId})).join(","),performanceValue:e.filterTargetVal("performanceVal",s),addMemebrValue:e.filterTargetVal("addMemberVal",s)})),[u,b,h,p][e.edit||0](v,{headers:{sign:e.brandId}}).then((function(t){e.$message.success("保存成功"),e.$router.push(e.bread[0].path)})).finally((function(){return e.loading=!1}))}}))},filterTargetVal:function(e,t){return e?JSON.stringify(this[e].map((function(e){return{performanceYm:"".concat(t.toString(),"-").concat(e.num),performanceValue:void 0!==e.val?e.val:"",performanceSubType:e.type}}))):""},storeModeChange:function(){this.form.storeValue=""}},watch:{brandId:function(e){e&&this.init()}}},I=v,y=(r("0039"),r("2877")),S=Object(y["a"])(I,a,o,!1,null,"32d77902",null);t["default"]=S.exports},f1ae:function(e,t,r){"use strict";var a=r("86cc"),o=r("4630");e.exports=function(e,t,r){t in e?a.f(e,t,o(0,r)):e[t]=r}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7679cb8b"],{"1b1f":function(e,t,a){"use strict";var r=a("8bd2"),n=a.n(r);n.a},2751:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right",staticStyle:{padding:"0"}},[a("el-tabs",{on:{"tab-click":e.getData},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"已设置指标门店",name:"0"}}),a("el-tab-pane",{attrs:{label:"未设置指标门店",name:"1"}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list-content"},[a("div",{staticClass:"content-search"},[a("div",{staticClass:"content-first"},[a("el-input",{attrs:{placeholder:"请输入名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:e.searchChange},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchChange(t)}},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"选择年份"},on:{change:e.searchChange},model:{value:e.search.performanceYear,callback:function(t){e.$set(e.search,"performanceYear",t)},expression:"search.performanceYear"}},e._l(e.yearList,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1),a("span",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}]},[a("el-select",{attrs:{placeholder:"全部指标类型",clearable:""},on:{change:e.searchChange},model:{value:e.search.performanceType,callback:function(t){e.$set(e.search,"performanceType",t)},expression:"search.performanceType"}},[a("el-option",{attrs:{label:"业绩指标",value:"1"}}),a("el-option",{attrs:{label:"新增会员",value:"2"}})],1),a("el-select",{attrs:{placeholder:"全部编辑权限",clearable:""},on:{change:e.searchChange},model:{value:e.search.storeEdit,callback:function(t){e.$set(e.search,"storeEdit",t)},expression:"search.storeEdit"}},[a("el-option",{attrs:{label:"店长可编辑",value:"1"}}),a("el-option",{attrs:{label:"店长不可编辑",value:"0"}})],1)],1),a("el-select",{staticStyle:{width:"106px","margin-right":"-1px"},on:{change:e.storeChange},model:{value:e.search.storeType,callback:function(t){e.$set(e.search,"storeType",t)},expression:"search.storeType"}},[a("el-option",{attrs:{label:"门店分组",value:"1"}}),a("el-option",{attrs:{label:"门店标签",value:"2"}})],1),"1"===e.search.storeType?a("gic-select-group-mult",{attrs:{width:"171px","brand-id":e.brandId},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"===e.search.storeType?a("gic-select-tag",{attrs:{width:"171px","brand-id":e.brandId},on:{returnTags:e.checkGroupIds}}):e._e()],1),a("div",{staticClass:"selectColor"},[a("el-select",{staticStyle:{width:"101px"},attrs:{placeholder:"批量操作",disabed:!e.multipleSelection||!e.multipleSelection.length},on:{change:e.batchOperation}},[a("el-option",{attrs:{label:"编辑指标",value:2}}),a("el-option",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}],attrs:{label:"修改编辑权限",value:3}})],1),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}],attrs:{type:"primary"},on:{click:function(t){return e.batchOperation(1)}}},[e._v("新增指标")])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"===e.activeName,expression:"activeName === '1'"}],staticClass:"content-data"},[a("div"),a("span",[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:function(t){return e.checkboxChange(t,"noPerformanceFlag")}},model:{value:e.search1.noPerformanceFlag,callback:function(t){e.$set(e.search1,"noPerformanceFlag",t)},expression:"search1.noPerformanceFlag"}},[e._v("未设置业绩指标门店")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:function(t){return e.checkboxChange(t,"noAddMemberFlag")}},model:{value:e.search1.noAddMemberFlag,callback:function(t){e.$set(e.search1,"noAddMemberFlag",t)},expression:"search1.noAddMemberFlag"}},[e._v("未设置新增会员指标门店")])],1)]),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticClass:"ellipsis"},[e._v(e._s(r.storeName||"--"))]),a("div",{staticStyle:{color:"#909399","font-size":"12px"}},[e._v(e._s(r.storeCode||"--"))])]}}])}),a("el-table-column",{attrs:{label:"年业绩指标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.performaneceYearValue?"¥"+a.performaneceYearValue:"未设置")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"年新增会员指标","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.addMemberValue?""+a.addMemberValue:"未设置")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"编辑权限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["店长不可编辑","店长可编辑"][a.storeEdit]||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"更新时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("div",{staticStyle:{"line-height":"18px"}},[e._v("\n "+e._s(e._f("formatDate")(r.updateTime,"ymd"))+" "),a("br"),e._v(" "+e._s(e._f("formatDate")(r.updateTime,"hms"))+"\n ")])]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n "+e._s(a.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"date",label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$router.push({path:"/edit-store-quota",query:{applicationId:e.applicationId,tab:e.activeName,storeInfoId:r.storeInfoId,storeName:r.storeName,edit:"1",year:e.search.performanceYear,performanceFlag:e.search1.noPerformanceFlag,addMemberFlag:e.search1.noAddMemberFlag}})}}},[e._v("\n 编辑指标\n ")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$router.push({path:"/edit-store-quota",query:{applicationId:e.applicationId,tab:e.activeName,storeInfoId:r.storeInfoId,storeName:r.storeName,storeEdit:r.storeEdit,edit:"3",single:"1",year:e.search.performanceYear}})}}},[e._v("\n 编辑权限\n ")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:"0"===e.activeName,expression:"activeName === '0'"}],attrs:{type:"text"},on:{click:function(t){return e.delStorePerformance(r.storeInfoId)}}},[e._v("删除")])]}}])})],1),e.tableData.length?a("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"","current-page":e.page.pageNum,"page-sizes":[20,40,60,80],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next",total:e.page.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},n=[],o=(a("8e6e"),a("ac6a"),a("456d"),a("6b54"),a("f576"),a("7f7f"),a("ade3")),s=(a("386d"),a("88f6")),c=a("0641"),i=a("9f7c");function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){Object(o["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u=i["a"].getYearList,p=i["a"].getStorePerformanceList,d=i["a"].getNoStorePerformanceList,f=i["a"].delStorePerformance,g={name:"QuotaSet",components:{gicSelectGroupMult:s["a"],gicSelectTag:c["a"]},props:{brandId:{type:String,default:""}},data:function(){return{activeName:"",applicationId:"",haoban:{},search:{search:"",performanceYear:(new Date).getFullYear(),performanceType:"",storeEdit:"",storeType:"1",storeParam:""},search1:{noPerformanceFlag:1,noAddMemberFlag:0},multipleSelection:[],tableData:[],loading:!1,page:{pageNum:1,pageSize:20,total:0},yearList:[]}},created:function(){var e=this.$route.query,t=e.tab,a=e.applicationId;this.activeName="undefined"!==t&&t?t:"0",this.applicationId=a;var r=localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")):{staffName:"",staffId:"",wxEnterpriseId:""},n=r.staffId,o=r.wxEnterpriseId;this.haoban={staffId:n,wxEnterpriseId:o}},mounted:function(){this.$emit("showTab","/quota-set"),this.$emit("change-nav",[{name:"指标设置"}]),this.getData(),this.getYearList()},methods:{getData:function(){var e=this;this.loading=!0;var t=this.search,a=t.storeType,r=t.storeParam,n=h(h(h(h({},this.search),this.haoban),this.page),{},{enterpriseId:this.brandId,storeType:r?a:""});"1"===this.activeName&&(n=h(h({},n),this.search1)),[p,d][this.activeName](n,{headers:{sign:this.brandId}}).then((function(t){var a=t.result||{},r=a.result,n=a.totalCount;e.tableData=r||[],e.page.total=n})).catch((function(){return e.tableData=[]})).finally((function(){return e.loading=!1}))},batchOperation:function(e){switch(e){case 1:return this.$router.push({path:"/edit-store-quota",query:{applicationId:this.applicationId}});case 2:return this.search.performanceType||0!=this.activeName?this.multipleSelection&&this.multipleSelection.length?(localStorage.setItem("targetStoreInfoIds",JSON.stringify(this.multipleSelection)),this.$router.push({path:"/edit-store-quota",query:{applicationId:this.applicationId,tab:this.activeName,edit:"2",year:this.search.performanceYear,type:this.search.performanceType,performanceFlag:this.search1.noPerformanceFlag,addMemberFlag:this.search1.noAddMemberFlag}})):this.$message.warning("请选择指标门店"):this.$message.warning("请选择指标类型");case 3:return this.multipleSelection&&this.multipleSelection.length?(localStorage.setItem("targetStoreInfoIds",JSON.stringify(this.multipleSelection)),this.$router.push({path:"/edit-store-quota",query:{applicationId:this.applicationId,edit:"3",year:this.search.performanceYear}})):this.$message.warning("请选择指标门店");default:break}},handleSelectionChange:function(e){this.multipleSelection=e},handleClick:function(e){var t=e.name;console.log(t)},handleSizeChange:function(e){this.page.pageSize=e,this.page.pageNum=1,this.getData()},handleCurrentChange:function(e){this.page.pageNum=e,this.getData()},getYearList:function(){var e=this;u("",{headers:{sign:this.brandId}}).then((function(t){e.yearList=t.result||[]}))},searchChange:function(){this.handleCurrentChange(1)},checkboxChange:function(e,t){var a=this;this.$nextTick((function(){var e=a.search1,r=e.noPerformanceFlag,n=e.noAddMemberFlag;if(0===r&&0===n)return a.search1[t]=1,a.$message.warning("请至少勾选一项");a.searchChange()}))},checkGroupIds:function(e){var t=this;this.search.storeParam=e.map((function(e){return e["1"===t.search.storeType?"storeGroupId":"storeTagId"]})).join(","),this.searchChange()},storeChange:function(){this.search.storeParam="",this.searchChange()},delStorePerformance:function(e){var t=this;this.$confirm("确定删除该指标门店?","",{confirmButtonText:"确定删除",cancelButtonText:"取消",type:"warning",showClose:!1}).then((function(){var a={storeInfoId:e,performanceYear:t.search.performanceYear};f(a,{headers:{sign:t.brandId}}).then((function(e){t.$message.success("删除成功"),t.tableData.length<2&&t.page.pageNum>1&&--t.page.pageNum,t.getData()}))}))}},filters:{formatDate:function(e,t){if(!e)return"--";e=new Date(e);var a=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),c=e.getSeconds().toString().padStart(2,"0");return"ymd"==t?"".concat(a,"-").concat(r,"-").concat(n):"hms"==t?"".concat(o,":").concat(s,":").concat(c):"".concat(a,"-").concat(r,"-").concat(n,"   ").concat(o,":").concat(s,":").concat(c)}},watch:{brandId:function(e){e&&this.getData()}}},m=g,b=(a("1b1f"),a("2877")),v=Object(b["a"])(m,r,n,!1,null,"00a8c744",null);t["default"]=v.exports},"7f7f":function(e,t,a){var r=a("86cc").f,n=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in n||a("9e1e")&&r(n,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},"8bd2":function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bd0a3336"],{"0ac0":function(t,e,a){},"1d4b":function(t,e,a){},"220a":function(t,e,a){},2340:function(t,e,a){},"236e":function(t,e,a){},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var r=0,n=0;n<t.length;n++){var s=t.charAt(n);if(1==a&&(encodeURI(s).length>2?r+=1:r+=.5),2==a&&(r+=1),r>=e){var i=r==e?n+1:n;return t.substr(0,i)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=1:n+=.5,n>e)break;r+=a[s]}return r},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=2:n+=1,n>e)break;r+=a[s]}return r},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"2c7d":function(t,e,a){},4917:function(t,e,a){"use strict";var r=a("cb7c"),n=a("9def"),s=a("0390"),i=a("5f1b");a("214f")("match",1,(function(t,e,a,o){return[function(a){var r=t(this),n=void 0==a?void 0:a[e];return void 0!==n?n.call(a,r):new RegExp(a)[e](String(r))},function(t){var e=o(a,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;var m,d=[],h=0;while(null!==(m=i(l,c))){var p=String(m[0]);d[h]=p,""===p&&(l.lastIndex=s(c,n(l.lastIndex),u)),h++}return 0===h?null:d}]}))},"5af5":function(t,e,a){"use strict";var r=a("2340"),n=a.n(r);n.a},"61c6":function(t,e,a){"use strict";var r=a("cb57"),n=a.n(r);n.a},"62a7":function(t,e,a){"use strict";a.r(e);var r=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}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"new-auth-body"},[2!=t.activeStep?a("div",[a("auth-step",{attrs:{"active-step":t.activeStep}})],1):t._e(),0==t.activeStep?a("div",{staticClass:"auth-tip-body"},[a("auth-tip",{staticClass:"m-t-30"}),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"authForm",staticClass:"dialog-form m-t-20",attrs:{model:t.authForm,rules:t.rules,"label-width":"110px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{prop:"enterpriseId"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("因企业微信仅支持获取同一开放平台的客户unionid。需要:"),a("br"),t._v("1.确认授权的的多个企业绑定的公众号或小程序存在同一开放平台内;"),a("br"),t._v("2.绑定微信开发者的小程序或公众号与企业微信认证企业主体相同。"),a("br"),t._v("参考链接: https://work.weixin.qq.com/api/doc/90001/90143/92265")]),a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("选择商户")])])],1),a("div",{staticClass:"el-input-group__prepend"},[t._v("GIC4.0")]),t.$route.query.enterpriseId?t._e():a("el-popover",{attrs:{placement:"bottom",title:"",trigger:"click","popper-class":"company-select-pop",width:"267"}},[a("div",{staticClass:"company-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.searchArray,(function(e,r){return a("li",{key:r+"search",staticClass:"el-select-dropdown__item",on:{click:function(a){return t.getAdmin(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.enterpriseName||"--"))]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.companyName||"--"))])]),e.enterpriseId==t.authForm.enterpriseId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e()])])})),t.searchArray.length?t._e():a("li",{staticClass:"el-select-dropdown__item text-center"},[t._v("暂无商户数据")])],2)])])]),a("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.querySearchAsync(e,t.searchSelect)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])]),t.$route.query.enterpriseId?a("div",{staticClass:"select-search-input"},[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},model:{value:t.authForm.enterpriseName,callback:function(e){t.$set(t.authForm,"enterpriseName",e)},expression:"authForm.enterpriseName"}})],1):t._e()],1),a("el-form-item",{attrs:{prop:"bindRange"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"拥有选中的门店管理权限,以及导购账号绑定权限",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("门店绑定")])])],1),a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(1)}}},[t.authForm.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.bindRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.bindRange)}}})])]}))],2)]):t._e(),0==t.authForm.bindStoreMode&&""!==t.authForm.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",{attrs:{prop:"shareRange"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"拥有选中的门店查看权限",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("门店共享")])])],1),a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(2)}}},[t.authForm.shareStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.shareRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.shareRange)}}})])]}))],2)]):t._e(),0==t.authForm.shareStoreMode&&""!==t.authForm.shareStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{disabled:!t.changeFlag||""===t.authForm.shareStoreMode&&""===t.authForm.bindStoreMode,type:"primary"},on:{click:function(e){return t.submitForm("authForm")}}},[t._v("下一步")])],1)],1)],1):t._e(),1==t.activeStep?a("div",{staticClass:"commit-success-body m-t-35"},[a("auth-commit",{attrs:{"load-submit":t.loadSubmit,"admin-list":t.adminList,reason:t.authForm.auditReason},on:{changeStep:t.changeStep,returnStep:t.returnStep}})],1):t._e(),2==t.activeStep?a("div",{staticClass:"commit-success-body"},[a("auth-commit-success",{attrs:{"enterprise-id":t.authForm.enterpriseId}})],1):t._e()])])])])]),t.setVisible?a("store-auth-dialog",{attrs:{"enterprise-id":t.authForm.enterpriseId,"is-select-all":t.isSelectAll,"select-mode":t.selectMode,"range-data":t.rangeData,"bind-type":t.bindType},on:{closeSet:t.closeSet}}):t._e(),t.checkShow?a("check-name-dialog",{attrs:{"sync-data":t.syncData},on:{closeSet:t.closeCheckSet}}):t._e()],1)},n=[],s=(a("96cf"),a("1da1")),i=(a("ac6a"),a("29b6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["auth-step-body",0==t.active?"step-one":"step-two"]},[a("el-steps",{attrs:{active:t.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"GIC商户授权",description:""}}),a("el-step",{attrs:{title:"审核员授权",description:""}})],1)],1)])},l=[],c={name:"AuthStep",components:{},props:{activeStep:{type:String,default:function(){return"0"}}},data:function(){return{active:"0"}},mounted:function(){var t=this;t.active=t.activeStep},watch:{activeStep:function(t){this.active=t}}},u=c,m=(a("de0b"),a("2877")),d=Object(m["a"])(u,o,l,!1,null,"c9703e40",null),h=d.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-tip"},[a("div",{staticStyle:{width:"645px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"645px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n 商户授权须知:"),a("br"),t._v("\n 1. 商户授权可以是多个商户授权到1个企业下,但是需保证使用的服务号或小程序在同一开放平台"),a("br"),t._v("\n    下,否则绑定商户的客户获取的unionid会不一致,最终会无法识别企业微信客户与会员的绑定性;"),a("br"),t._v("\n 2. 商户绑定后,可选择部分门店绑定,如商户有100家门店,可授权其中50家;"),a("br"),t._v("\n 3. 绑定商户结束后,导购可通过企业微信好办小程序绑定导购账号后登录;"),a("br"),t._v("\n 4. 进行门店绑定后,请勿随意操作门店绑定范围,如果门店范围取消,会导致用户关联的导购账号"),a("br"),t._v("\n    解绑,"),a("span",{staticClass:"color-f5222d"},[t._v("如果24小时内未恢复范围,会永久解绑。")])])])])])])}],g={name:"AuthTip",data:function(){return{}}},v=g,b=(a("c8ff"),Object(m["a"])(v,p,f,!1,null,"6246f46e",null)),S=b.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-success"},[t._m(0),a("div",{staticClass:"commit-success-text text-center font-14 color-303133 m-t-12"},[t._v("已提交管理员审核,请通知管理员及时审核")]),a("div",{staticClass:"commit-success-btn text-center m-t-28"},[a("el-button",{on:{click:function(e){return t.changeRoute("/authMerchant")}}},[t._v("返回授权列表")]),a("el-button",{on:{click:function(e){return t.changeRoute("/auditLog?enterpriseId="+t.enterpriseId)}}},[t._v("进入审核列表")])],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"commit-success-img text-center"},[a("span",{staticClass:"iconfont-hb4 iconchenggong color-49c958 font-60"})])}],F={name:"AuthCommitSuccess",components:{},props:{enterpriseId:{type:String,default:""}},data:function(){return{}},methods:{changeRoute:function(t){this.$router.push(t)}}},C=F,N=(a("fbee"),Object(m["a"])(C,y,_,!1,null,"52f63fda",null)),R=N.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadSubmit,expression:"loadSubmit"}],staticClass:"auth-commit-admin"},[a("common-alert-tip",{staticClass:"m-b-32",attrs:{width:"328px","tip-content":t.tipContent}}),a("el-form",{ref:"commitForm",staticClass:"dialog-form",attrs:{model:t.commitForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"申请事项",prop:"commitName"}},[a("el-input",{staticClass:"w-198",attrs:{disabled:""},model:{value:t.commitForm.commitName,callback:function(e){t.$set(t.commitForm,"commitName",e)},expression:"commitForm.commitName"}})],1),a("el-form-item",{attrs:{label:"申请理由",prop:"auditReason"}},[a("limit-textarea",{attrs:{"input-width":298,"input-value":t.commitForm.auditReason,holder:"请输入申请理由","get-by-type":"word","max-length":50},on:{"update:inputValue":function(e){return t.$set(t.commitForm,"auditReason",e)},"update:input-value":function(e){return t.$set(t.commitForm,"auditReason",e)}}})],1),a("el-form-item",{attrs:{label:"审核人",prop:""}},[a("div",{staticClass:"flex flex-wrap audit-admin-body"},[t._l(t.commitForm.auditAdmin,(function(e,r){return[a("span",{key:r+"admin",staticClass:"audit-admin"},[t._v("\n "+t._s(t._f("formatWord")(e.clerkName))+"("+t._s(e.nationCode+"-"+e.phoneNumber)+")\n ")])]}))],2)]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("commitForm")}}},[t._v("提交审核")])],1)],1)],1)},w=[],D=a("3081"),I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},k=[],M=(a("c5f6"),a("2802")),O={name:"LimitTextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},mounted:function(){var t=this;t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","word"==t.getByType?t.inputNum=M["a"].getZhLen(t.inputValue):t.inputNum=M["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=M["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getZhLen(e.itemValue)):(a=M["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;a.itemValue=t,"word"==a.getByType?a.inputNum=M["a"].getZhLen(a.itemValue):a.inputNum=M["a"].getByteLen(a.itemValue)}}},$=O,L=(a("8cfe"),Object(m["a"])($,I,k,!1,null,"8106e482",null)),A=L.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:D["a"],limitTextarea:A},props:{loadSubmit:{type:Boolean,default:!1},reason:{type:String,default:""},adminList:{type:[Object,Array],default:function(){return[]}}},data:function(){return{tipContent:"提交商户绑定审核,经审核员同意后绑定成功",commitForm:{commitType:1,commitName:"商户授权",auditReason:this.reason||"",auditAdmin:[]},rules:{auditReason:[{required:!0,message:"请输入申请理由",trigger:"blur"}]},loadBtn:!1}},mounted:function(){var t=this;t.commitForm.auditAdmin=JSON.parse(JSON.stringify(t.adminList))},methods:{cancel:function(){var t=this;t.$emit("returnStep")},submitForm:Object(V["b"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.toCommitPost()}))}),500),toCommitPost:function(){var t=this;t.$emit("changeStep",t.commitForm.auditReason)},changeRoute:function(t){this.$router.push(t)}},watch:{adminList:function(t){var e=this;e.commitForm.auditAdmin=JSON.parse(JSON.stringify(t))}}},E=J,T=(a("b398"),Object(m["a"])(E,x,w,!1,null,"7eb181ea",null)),j=T.exports,B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"554px",title:1==t.bindType?"门店绑定":"门店共享",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[t._v("\n 选择"+t._s(1==t.bindType?"绑定":"共享")+"门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{disabled:1==t.isSelectAll&&1==t.bindType,label:"0"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择门店")]),("1"!=t.formData.sendRange&&"2"!=t.formData.sendRange||t.formData.selectList.length)&&"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&-1!=t.formData.sendRange?t._e():a("div",{staticClass:"el-form-item__error"},[t._v("请选择绑定门店")]),"1"==t.formData.sendRange?a("store-auth-group",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-group":t.selectGroupData},on:{checkGroupIds:t.checkGroupIds}}):t._e(),"2"==t.formData.sendRange?a("store-auth-store",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-store":t.selectStoreData},on:{checkStoreIds:t.checkStoreIds}}):t._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.submitForm(e)}}},[t._v("确定")])],1)])},G=[],q=a("7ca9"),P=a("418e"),U={name:"StoreAuthDialog",components:{storeAuthGroup:q["a"],storeAuthStore:P["a"]},props:{isSelectAll:{type:[String,Number],default:"0"},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"1"},selectMode:{type:[String,Number],default:"0"},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{setVisible:!0,formData:{sendRange:"0",selectList:[]},selectGroupData:[],selectStoreData:[]}},mounted:function(){var t=this;t.formData.sendRange=String(t.selectMode),t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.formData.selectList=JSON.parse(JSON.stringify(t.rangeData))||[]},methods:{changeRange:function(t){var e=this;e.formData.sendRange=t,e.formData.selectList=[]},handleClose:function(t){var e=this;t(),e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var t=this;t.$emit("closeSet","close"),t.selectGroupData=[],t.selectStoreData=[]},checkGroupIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},checkStoreIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},submitForm:function(){var t=this;return"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&-1!=t.formData.sendRange&&(!("1"==t.formData.sendRange&&!t.formData.selectList.length)&&(!("2"==t.formData.sendRange&&!t.formData.selectList.length)&&void t.$emit("closeSet",String(t.formData.sendRange),t.formData.selectList)))}},watch:{selectMode:function(t){var e=this;e.formData.sendRange=String(t)},rangeData:function(t){var e=this;e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.formData.selectList=JSON.parse(JSON.stringify(t))||[]}}},W=U,Z=(a("b0d6"),Object(m["a"])(W,B,G,!1,null,"761c5b6a",null)),z=Z.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"check-name-dialog",attrs:{title:"提示",visible:t.dialogVisible,width:"416px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"font-14 color-606266 m-b-10"},[t._v("首次授权商户需要校验GIC商户超级管理员姓名")]),a("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"超级管理员",prop:"userName"}},[a("span",[t._v(t._s(t.firstName))]),a("el-input",{staticClass:"w-173 m-l-10",attrs:{maxlength:"50",placeholder:"输入姓名校验"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},K=[],Q=a("21f4"),X=a("5b4e"),Y=Q["a"].getCheckName,tt=Q["a"].checkName,et={name:"CheckNameDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0,loading:!1,firstName:"",ruleForm:{userName:""},rules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]}}},mounted:function(){var t=this;t.getCheckNameData()},methods:{getCheckNameData:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId};Y(e).then((function(e){t.firstName=e.result||""})).catch((function(t){}))},handleClose:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},cancel:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},submitForm:Object(V["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postCheck()}))}),300),postCheck:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId,userName:t.firstName+t.ruleForm.userName};tt(e).then((function(e){t.loading=!1,"0000"==e.code?e.result?(X["a"].showmsg("校验成功","success"),t.ruleForm.userName="",t.$emit("closeSet","success")):X["a"].showmsg("校验失败","warning"):X["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))}}},at=et,rt=(a("5af5"),Object(m["a"])(at,H,K,!1,null,"a960be2a",null)),nt=rt.exports,st=Q["a"].getAuthDetail,it=Q["a"].getEnterprise,ot=Q["a"].getEnterpriseDetail,lt=Q["a"].getGicAdmin,ct=Q["a"].postEnterpriseAuth,ut={name:"NewAuthMerchant",components:{navCrumb:i["a"],authStep:h,authTip:S,authCommitSuccess:R,authCommit:j,storeAuthDialog:z,checkNameDialog:nt},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:this.$route.query.enterpriseId?"编辑授权":"新建授权",path:""}],loading:!1,wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",activeStep:"0",brandOptions:[],searchSelect:"",searchArray:[],authForm:{storeRangeAuditId:"",enterpriseId:"",enterpriseName:"",bindRange:[],shareRange:[],shareStoreMode:"",bindStoreMode:"",auditReason:""},rules:{enterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},checkShow:!1,syncData:{},isSelectAll:0,changeFlag:!1,setVisible:!1,selectMode:"0",rangeData:[],bindType:1,adminList:[],loadSubmit:!1}},mounted:function(){var t=this;t.$route.query.enterpriseId&&t.getData(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{closeCheckSet:function(t){var e=this;if(e.checkShow=!1,"close"==t)return!1;e.authForm.enterpriseId=e.syncData.enterpriseId,e.authForm.enterpriseName=e.syncData.enterpriseName,e.$refs["authForm"].validate((function(t){return!!t&&void 0}))},closeSet:function(t,e){var a=this;if(a.setVisible=!1,"close"==t)return!1;a.selectMode=String(t),1==a.bindType?(a.authForm.bindStoreMode=String(t),a.authForm.bindRange=JSON.parse(JSON.stringify(e))):(a.authForm.shareStoreMode=String(t),a.authForm.shareRange=JSON.parse(JSON.stringify(e))),a.changeFlag=!0},showStore:function(t){var e=this;if(!e.authForm.enterpriseId)return!1;e.selectMode=1==t?e.authForm.bindStoreMode:e.authForm.shareStoreMode,e.rangeData=1==t?e.authForm.bindRange:e.authForm.shareRange,e.bindType=t,e.setVisible=!0,e.getEnterpriseData()},getSearchList:function(t){var e={enterpriseName:t};return""==t?[]:new Promise((function(t,a){it(e).then((function(e){"0000"==e.code?(e.result&&e.result.forEach((function(t){t.value=t.enterpriseName})),t(e.result)):t([])})).catch((function(e){t([])}))}))},querySearchAsync:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,""!=String(e.searchSelect).trim()){t.next=10;break}return e.authForm.enterpriseId="",e.searchArray=[],e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],t.abrupt("return",!1);case 10:return t.next=12,e.getSearchList(e.searchSelect);case 12:a=t.sent,e.searchArray=a;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),returnStep:function(){var t=this;t.activeStep=0},cancel:function(){var t=this;t.$router.push("/authMerchant")},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.activeStep=1}))},delStore:function(t,e){var a=this;e.splice(t,1),a.changeFlag=!0,a.authForm.shareStoreMode=!a.authForm.shareRange.length&&a.authForm.shareStoreMode>0||null==a.authForm.shareStoreMode||-1==a.authForm.shareStoreMode?"":String(a.authForm.shareStoreMode),a.authForm.bindStoreMode=!a.authForm.bindRange.length&&a.authForm.bindStoreMode>0||null==a.authForm.bindStoreMode||-1==a.authForm.bindStoreMode?"":String(a.authForm.bindStoreMode)},getAdmin:function(t){var e=this;if(e.authForm.enterpriseId==t.enterpriseId)return!1;e.syncData=t,e.checkShow=!0,e.authForm.enterpriseId="",e.authForm.enterpriseName="",e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;lt({enterpriseId:t}).then((function(t){t.result&&t.result.length&&(e.adminList=t.result||[])})).catch((function(t){}))},changeStep:function(t){var e=this;e.authForm.auditReason=Object(V["d"])(t),e.loadSubmit=!0;var a={enterpriseId:e.authForm.enterpriseId,wxEnterpriseId:e.wxEnterpriseId,shareRange:e.authForm.shareStoreMode>0?1==e.authForm.shareStoreMode?e.authForm.shareRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.shareRange.map((function(t){return t.storeInfoId})).join(","):"",bindRange:e.authForm.bindStoreMode>0?1==e.authForm.bindStoreMode?e.authForm.bindRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.bindRange.map((function(t){return t.storeInfoId})).join(","):"",auditReason:e.authForm.auditReason,shareStoreMode:!e.authForm.shareRange.length&&e.authForm.shareStoreMode>0||null==e.authForm.shareStoreMode||-1==e.authForm.shareStoreMode?"":String(e.authForm.shareStoreMode),bindStoreMode:!e.authForm.bindRange.length&&e.authForm.bindStoreMode>0||null==e.authForm.bindStoreMode||-1==e.authForm.bindStoreMode?"":String(e.authForm.bindStoreMode),auditorName:e.auditorName};ct(a).then((function(t){e.loadSubmit=!1,"0000"==t.code?e.activeStep=2:e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadSubmit=!1}))},changeRoute:function(t){this.$router.push(t)},getEnterpriseData:function(){var t=this;ot({enterpriseId:t.$route.query.enterpriseId||t.authForm.enterpriseId}).then((function(e){t.isSelectAll=e.result.bindFlag})).catch((function(t){}))},getData:function(){var t=this;t.loading=!0;var e={enterpriseId:t.$route.query.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};st(e).then((function(e){t.loading=!1,"0000"==e.code&&(e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],t.authForm=e.result||{},t.getAdminList(e.result.enterpriseId))})).catch((function(e){t.loading=!1}))}}},mt=ut,dt=(a("61c6"),Object(m["a"])(mt,r,n,!1,null,"7cd6a346",null));e["default"]=dt.exports},"7c43":function(t,e,a){},"8cfe":function(t,e,a){"use strict";var r=a("236e"),n=a.n(r);n.a},b0d6:function(t,e,a){"use strict";var r=a("1d4b"),n=a.n(r);n.a},b398:function(t,e,a){"use strict";var r=a("2c7d"),n=a.n(r);n.a},c8ff:function(t,e,a){"use strict";var r=a("0ac0"),n=a.n(r);n.a},cb57:function(t,e,a){},de0b:function(t,e,a){"use strict";var r=a("220a"),n=a.n(r);n.a},fbee:function(t,e,a){"use strict";var r=a("7c43"),n=a.n(r);n.a}}]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-12-21 09:43:29
* @LastEditTime: 2020-12-25 09:43:43
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -48,7 +48,7 @@
</div>
<div class="select-search-input cursor-pointer" slot="reference">
<div>
<el-input class="w-267" :disabled="$route.query.enterpriseId? true:false" placeholder="请搜索选择商户" maxlength="50" v-model="searchSelect" @keyup.native="value => querySearchAsync(value, searchSelect)"> </el-input>
<el-input class="w-267" :disabled="$route.query.enterpriseId? true:false" placeholder="请搜索选择商户" maxlength="50" v-model="searchSelect" @keyup.native="value => searchBrandList(value, searchSelect)"> </el-input>
</div>
</div>
</el-popover><div v-if="$route.query.enterpriseId" class="select-search-input"><el-input class="w-267" :disabled="$route.query.enterpriseId? true:false" placeholder="请搜索选择商户" maxlength="50" v-model="authForm.enterpriseName"> </el-input></div>
......@@ -127,7 +127,7 @@ import storeAuthDialog from '@/components/company/store-auth-dialog.vue';
import checkNameDialog from '@/components/company/check-name-dialog.vue';
import api from '@/api/merchant-auth.js';
const { getAuthDetail, getEnterprise, getEnterpriseDetail, getGicAdmin, postEnterpriseAuth } = api;
import { emojiToStr } from '@/common/js/public';
import { emojiToStr, _debounce } from '@/common/js/public';
export default {
name: 'NewAuthMerchant',
components: {
......@@ -307,6 +307,7 @@ export default {
* @description: 搜索查询列表
* @author: 无尘
*/
searchBrandList: _debounce(this.querySearchAsync(), 200),
async querySearchAsync() {
const that = this;
if (String(that.searchSelect).trim() == '') {
......
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