Commit a91dd456 by shaojiawen

update: merge

parents 1ebb6e22 3fd2d56d
......@@ -18,12 +18,12 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/haoban-3/',
proxyTable: proxyConfig.proxyList,
// proxyTable: proxyConfig.proxyList,
// Various Dev Server settings
// host: '0.0.0.0', // can be overwritten by process.env.HOST
host: 'localhost',//'192.168.1.20',//
port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port: 8006, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
......
......@@ -9,26 +9,12 @@
module.exports = {
proxyList: {
'/haoban-manage3-web/': {
target: 'https://www.gicdev.com/haoban-manage3-web',
target: 'https://www.gicdev.com/haoban-manage3-web/',
changeOrigin: true,
pathRewrite: {
'^/haoban-manage3-web': ''
}
},
'/gic-member-tag-web/': {
target: 'https://haoban.gicdev.com/gic-member-tag-web/',
changeOrigin: true,
pathRewrite: {
'^/gic-member-tag-web': ''
}
},
'/api-plug/': {
target: 'https://www.gicdev.com/api-plug/',
changeOrigin: true,
pathRewrite: {
'^/api-plug': ''
}
},
'/haoban-app-customer-web/': {
target: 'https://www.gicdev.com/haoban-app-customer-web/',
changeOrigin: true,
......@@ -77,20 +63,6 @@ module.exports = {
pathRewrite: {
'^/haoban-task-manage-web': ''
}
},
'/haoban-app-aggregation-web/':{
target: 'https://www.gicdev.com/haoban-app-aggregation-web/',
changeOrigin: true,
pathRewrite: {
'^/haoban-app-aggregation-web/': ''
}
},
'/dmHbApi': {
target: 'https://haoban.gicdev.com',
changeOrigin: true,
pathRewrite: {
'^/dmHbApi': ''
}
},
}
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10,30],{"/cEq":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),n=r.n(a),s=r("fZjL"),o=r.n(s),i=r("Xxa5"),c=r.n(i),l=r("exGp"),p=r.n(l),u=r("//Fk"),d=r.n(u),m=r("P9l9"),h=r("Ch4/"),f=r("3E4D"),v=r("PI0u"),g={name:"authMerchant-dailog",components:{},props:{item:{type:Object,default:function(){return{version:"3.0",clerkName:"",enterpriseId:"",enterpriseName:"",nationCode:"86",phoneNumber:"",code:""}}}},data:function(){return{wxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,memberVisible:!0,partForm:{},rules:{code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!0,countNum:60}},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(v.a)(function(){var e=this;if(""==e.partForm.phoneNumber||isNaN(String(e.partForm.phoneNumber)))return f.a.showmsg("超级管理员手机号不正确,请到 GIC 商户后台修改","warning"),!1;var t={phoneNumber:e.partForm.phoneNumber,nationCode:e.partForm.nationCode||"86",type:1,enterpriseId:this.partForm.enterpriseId};Object(m.a)("/haoban-manage3-web/send-code",t).then(function(t){var r=t.data;if(1==r.errorCode){e.disableBtn=!0,e.countDown();var a=String(e.partForm.phoneNumber),n=a.substr(0,3)+"****"+a.substr(7,a.length-1);return f.a.showmsg("已发送验证码到"+(e.partForm.nationCode||"86")+"-"+n,"success"),!1}h.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},300),checkCode:function(){var e=this,t={phoneNumber:e.partForm.phoneNumber,nationCode:e.partForm.nationCode,type:1,code:e.partForm.code};return new d.a(function(r,a){Object(m.a)("/haoban-manage3-web/validate-code",t).then(function(e){var t=e.data;if(1==t.errorCode)return r(!0),!1;h.a.errorMsg(t),r(!1)}).catch(function(t){r(!1),e.$message.error({duration:1e3,message:t.message})})})},handleClose:function(e){this.$refs.form.resetFields(),this.$emit("refreshData","close"),e()},cancel:function(){this.$refs.form.resetFields(),this.$emit("refreshData","close")},submitForm:function(e){var t=this;return p()(c.a.mark(function r(){var a;return c.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if((a=t).partForm.enterpriseId){r.next=3;break}return r.abrupt("return",!1);case 3:a.$refs[e].validate(function(){var e=p()(c.a.mark(function e(r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=9;break}return e.next=3,a.checkCode();case 3:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:a.$emit("refreshData","success"),e.next=10;break;case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return r.stop()}},r,t)}))()},getData:function(){var e=this,t={staffId:e.partForm.staffId};Object(m.a)("/haoban-manage3-web/staff-add",t).then(function(t){var r=t.data;if(1==r.errorCode)return e.partForm=r.result,!1;h.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{item:function(e){var t=this,r=this;o()(this.item).length&&r.$nextTick(function(){r.partForm=JSON.parse(n()(t.item))})}},mounted:function(){var e=this,t=this;o()(t.item).length&&t.$nextTick(function(){t.partForm=JSON.parse(n()(e.item))})}},b={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticClass:"authMerchant-dailog",attrs:{width:"600px",title:"授权校验",visible:e.memberVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.memberVisible=t}}},[r("div",[r("div",{staticClass:"el-alert el-alert--info flex w-327 bg-F0F5FF",attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb m-r-9"}),e._v(" "),r("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("授权商户需要校验GIC商户超级管理员手机号 ")])]),e._v(" "),r("el-form",{ref:"form",staticClass:"dialog-form",attrs:{model:e.partForm,rules:e.rules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"超级管理员"}},[e._v("\n "+e._s(e._f("formatName")(e.partForm.clerkName))+"\n ")]),e._v(" "),r("el-form-item",{attrs:{label:"超级管理员手机号",prop:""}},[e.partForm.phoneNumber?r("span",[e._v(e._s(e.partForm.nationCode)+"-")]):e._e(),e._v(e._s(e._f("formatPhoneNum")(e.partForm.phoneNumber))+" "),r("el-button",{staticClass:"m-l-35",attrs:{disabled:!e.partForm.phoneNumber,type:"text"},on:{click:function(t){return e.sendCode()}}},[e._v(e._s(e.disableBtn&&60==e.countNum||!e.disableBtn&&e.countNum?"点击短信验证":e.countNum+"s"))])],1),e._v(" "),r("el-form-item",{attrs:{label:"短信验证码",prop:"code"}},[r("el-input",{staticStyle:{width:"180px","line-height":"40px"},attrs:{maxlength:"20",placeholder:"请输入验证码"},model:{value:e.partForm.code,callback:function(t){e.$set(e.partForm,"code",t)},expression:"partForm.code"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return e.cancel("form")}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var _=r("VU/8")(g,b,!1,function(e){r("d6vV"),r("QtFz")},"data-v-5cc32df8",null);t.default=_.exports},"2xxS":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),n=r.n(a),s=r("//Fk"),o=r.n(s),i=r("Xxa5"),c=r.n(i),l=r("exGp"),p=r.n(l),u=r("Dd8w"),d=r.n(u),m=r("/cEq"),h=r("P9l9"),f=r("Ch4/"),v=r("PI0u"),g={name:"gic-select-group",props:{width:{type:String,default:function(){return"287px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,searchSelect:"",departmentVisible:!1,groupIds:[],groupData:[],checkedListCopy:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"},checkedKeys:[]}},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},loadNode:function(e,t){var r=this;return p()(c.a.mark(function a(){var n;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(n=r,0!==e.level){a.next=5;break}return a.abrupt("return",t(n.getGroup()));case 5:return a.next=7,n.getGroup(e,e.data,t);case 7:case"end":return a.stop()}},a,r)}))()},toInput:Object(v.a)(function(e,t){if(!this.groupDataCopy.length)return!1},500),clearSearch:function(){this.groupData=JSON.parse(n()(this.groupDataCopy))},delDepart:function(e,t){t.splice(e,1);var r=t.map(function(e){return e.relationId});this.setCheckedKeys(r)},checkGroup:function(e){this.groupIds=this.$refs.groupTree.getCheckedNodes(),this.$emit("checkGroupIds",this.$refs.groupTree.getCheckedNodes())},setCheckedKeys:function(e){this.$refs.groupTree.setCheckedKeys(e),this.$emit("checkGroupIds",this.$refs.groupTree.getCheckedNodes())},handleSort:function(e){var t=this;return p()(c.a.mark(function r(){var a,n;return c.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:a=t,n=0;case 2:if(!(n<e.children.length)){r.next=10;break}if(e.children.sort(function(e,t){return e.storeGroupSort-t.storeGroupSort}),!e.children[n].length){r.next=7;break}return r.next=7,a.handleSort(e.children[n]);case 7:n++,r.next=2;break;case 10:case"end":return r.stop()}},r,t)}))()},treeData:function(e){var t=this;return p()(c.a.mark(function r(){var a;return c.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.filter(function(t){t.disabled=!!t.isBind;var r=e.filter(function(e){return t.relationId==e.parentRelationId});return r.length>0&&(t.children=r),0==t.parentRelationId}),t.abrupt("return",a);case 2:case"end":return t.stop()}},r,t)}))()},getGroup:function(){var e=this;return p()(c.a.mark(function t(){var r,a;return c.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a={enterpriseId:(r=e).brandId},Object(h.a)("/haoban-manage3-web/gic-store-group-list",a).then(function(){var t=p()(c.a.mark(function t(a){var s,o;return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1!=(s=a.data).errorCode){e.next=10;break}if(!s.result||!s.result.length){e.next=9;break}return s.result.forEach(function(e){e.label=e.relationName,e.relationName=e.relationName}),e.next=6,r.treeData(s.result);case 6:o=e.sent,r.$nextTick(function(){r.groupData=JSON.parse(n()(o))||[],r.groupDataCopy=JSON.parse(n()(r.groupData))||[],r.selectData&&(r.checkedListCopy=r.selectData)}),r.$forceUpdate();case 9:return e.abrupt("return");case 10:f.a.errorMsg(s);case 11:case"end":return e.stop()}},t,e)}));return function(e){return t.apply(this,arguments)}}()).catch(function(e){r.$message.error({duration:1e3,message:e.message})});case 3:case"end":return t.stop()}},t,e)}))()}},watch:{selectData:function(e,t){e.length?(this.checkedKeys=e.map(function(e){return e.relationId}),this.groupIds=this.$refs.groupTree.getCheckedNodes()):this.groupIds=[]},searchSelect:function(e){this.$refs.groupTree.filter(e)},brandId:function(e){this.searchSelect="",this.groupIds=[],this.groupData=[],this.groupDataCopy=[],e&&this.getGroup()},checkedListCopy:function(e){var t=this;this.$nextTick(function(){t.groupIds=[],e.forEach(function(e){var r=t.$refs.groupTree.getNode(e);t.groupIds.push(r.data),r.isLeaf&&(t.$refs.groupTree.setChecked(r,!0),t.$emit("checkGroupIds",t.$refs.groupTree.getCheckedNodes()))})})}},mounted:function(){this.getGroup()}},b={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-popover",{staticStyle:{"min-width":"357px"},attrs:{placement:"bottom-start"},model:{value:e.departmentVisible,callback:function(t){e.departmentVisible=t},expression:"departmentVisible"}},[r("div",{staticClass:"select-search authMerchant"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入内容",maxlength:"50"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return r=t,e.toInput(r,e.searchSelect);var r}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"select-tree-wrap m-t-10"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,clearable:"",data:e.groupData,"default-checked-keys":e.checkedKeys,"node-key":"relationId","check-strictly":"","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.data;return r("div",{staticClass:"custom-tree-node"},[r("p",[r("span",{class:["font-14 p-r-10 iconfont-hb3","iconqiye-tianchong",1==a.isBind?"color-2f54eb":"color-dedfe6"]}),r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(a.label))])]),e._v(" "),r("p",{staticClass:"color-909399 font-12"},[e._v(e._s(a.isBind?a.wxEnterpriseName+"已授权":""))])])}}])})],1),e._v(" "),r("div",{staticClass:"flex-column item-cell-select inline-block ",attrs:{slot:"reference"},slot:"reference"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",style:{width:e.width}},[e.groupIds.length?e._e():r("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择门店分组")]),e._v(" "),r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[r("span",{staticStyle:{display:"block"}},[e._l(e.groupIds,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.relationName))]),e._v(" "),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delDepart(a,e.groupIds)}}})])]})],2)])])])])])},staticRenderFns:[]};var _=r("VU/8")(g,b,!1,function(e){r("EmJx")},"data-v-1c5490f4",null).exports,x={name:"authMerchantAdd",data:function(){var e=this;return{bgHeight:window.screen.availHeight-104+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contacts"},{name:"授权商户",path:"/authMerchant"},{name:"新建授权商户",path:""}],partForm:{memberOpenCardFlag:0,wxEnterpriseType:0,searchSelect:"",storeGroup:[]},rules:{searchSelect:[{required:!0,validator:function(t,r,a){r?e.enterpriseId?a():a(new Error("请选择商户!")):a(new Error("请先搜索商户!"))},trigger:"blur"}]},checkedList:[],dailogForm:{},searchObj:{},enterpriseId:"",corpName:"",addShow:!1}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},handleSelect:function(e){this.enterpriseId=e.enterpriseId,this.dailogForm=d()({},e),this.$refs.form.validateField("searchSelect")},querySearchAsync:function(e){var t=this;return p()(c.a.mark(function r(){var a,n;return c.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=t,""!=String(a.partForm.searchSelect).trim()){r.next=4;break}return a.searchObj={},r.abrupt("return",!1);case 4:return"search"===e&&(a.enterpriseId="",a.partForm.storeGroup=[]),r.next=7,a.getSearchList(a.partForm.searchSelect);case 7:n=r.sent,a.searchObj=n,"edit"===e&&n&&a.handleSelect(n);case 10:case"end":return r.stop()}},r,t)}))()},getSearchList:function(e){var t=this,r={enterpriseName:e,version:"3.0"};return new o.a(function(e,a){Object(h.a)("/haoban-manage3-web/enterprise-search",r).then(function(t){var r=t.data;if(1==r.errorCode)return r.result&&(r.result.value=r.result.enterpriseName),e(r.result?r.result:{}),!1;f.a.errorMsg(r),e({})}).catch(function(r){e({}),t.$message.error({duration:1e3,message:r.message})})})},checkGroupIds:function(e){this.partForm.storeGroup=e},formateGroupList:function(){var e=[];return this.partForm.storeGroup.map(function(t){e.push({relationId:t.relationId,relationName:t.relationName,relationType:"1"})}),e},confirmForm:function(){var e=this,t={enterpriseId:e.enterpriseId,wxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,version:"3.0",rangeType:"1",memberOpenCardFlag:e.partForm.memberOpenCardFlag,wxEnterpriseType:e.partForm.wxEnterpriseType};this.$route.query.enterprise&&(t.wxEnterpriseRelatedId=e.partForm.wxEnterpriseRelatedId),t.relations=n()(e.formateGroupList()),Object(h.e)("/haoban-manage3-web/wx-enterprise-bind",t).then(function(t){var r=t.data;1==r.errorCode&&(e.$message.success({duration:1e3,message:"授权商户新建成功!"}),e.changeRoute("/authMerchant")),f.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCompanyName:function(){var e=this,t={wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""};Object(h.a)("/haoban-manage3-web/wxEnterprise-detail",t).then(function(t){var r=t.data;if(1==r.errorCode)return e.corpName=r.result.corpName,!1;f.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},refreshData:function(e){if(this.addShow=!1,"close"==e)return!1;"success"==e&&this.confirmForm()},getDeatil:function(e){var t=this;t.enterpriseId=e;var r={enterpriseId:e,wxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,version:"3.0"};Object(h.e)("/haoban-manage3-web/wx-enterprise-bind-detail",r).then(function(e){var r=e.data;if(1==r.errorCode){var a=[];r.result.relations&&r.result.relations.map(function(e){return a.push({relationId:e.relationId})}),t.partForm.storeGroup=a,t.partForm.wxEnterpriseRelatedId=r.result.wxEnterpriseRelatedId,t.partForm.memberOpenCardFlag=r.result.memberOpenCardFlag,t.partForm.wxEnterpriseType=r.result.wxEnterpriseType,t.partForm.searchSelect=r.result.enterpriseName,t.querySearchAsync("edit")}f.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.getCompanyName(),this.$route.query.enterprise?(this.type="edit",this.getDeatil(this.$route.query.enterprise)):this.type="add",document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:r("3Xzz").a,gicSelectGroupAuth:_,authMerchantDailog:m.default}},C={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"auth-merchant-add"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[r("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[r("div",{staticClass:"apps-content-right"},[e._m(0),e._v(" "),r("div",{staticClass:"m-t-24"},[r("el-form",{ref:"form",staticClass:"dialog-form",attrs:{model:e.partForm,rules:e.rules,"label-width":"128px"}},[r("el-form-item",{attrs:{label:"企业名称"}},[e._v("\n "+e._s(e.corpName)+"\n ")]),e._v(" "),r("el-form-item",[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark","open-delay":200,placement:"top-start",content:"输入品牌/商户的企业名称,只支持精确搜素。"},slot:"label"},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择商户")])]),e._v(" "),r("el-popover",{attrs:{placement:"bottom",title:"",disabled:"edit"===e.type,trigger:"click","popper-class":"authMerchant-select-pop",width:"253"}},[r("div",{staticClass:"company-select"},[r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list auth-merchant-add"},[Object.keys(e.searchObj).length?r("li",{staticClass:"el-select-dropdown__item",on:{click:function(t){return e.handleSelect(e.searchObj)}}},[r("div",{staticClass:"flex flex-space-between"},[r("div",{staticStyle:{"line-height":"26px"}},[r("span",{staticClass:"block text-ellipsis"},[e._v(e._s(e.searchObj.enterpriseName))]),e._v(" "),r("div",{staticClass:"text-ellipsis font-12 color-909399"},[e._v(e._s(e.searchObj.brandName||"--"))])]),e._v(" "),e.searchObj.enterpriseId==e.enterpriseId?r("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):e._e()])]):e._e(),e._v(" "),Object.keys(e.searchObj).length?e._e():r("li",{staticClass:"el-select-dropdown__item text-center"},[e._v("\n 暂无商户数据\n ")])])])])]),e._v(" "),r("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[r("div",[r("el-form-item",{attrs:{prop:"searchSelect"}},[r("el-input",{staticClass:"w-287",attrs:{placeholder:"请搜索选择商户",maxlength:"50",disabled:"edit"===e.type},nativeOn:{keyup:function(t){return e.querySearchAsync("search")}},model:{value:e.partForm.searchSelect,callback:function(t){e.$set(e.partForm,"searchSelect",t)},expression:"partForm.searchSelect"}})],1)],1)])])],1),e._v(" "),r("el-form-item",[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark","open-delay":200,placement:"top-start",content:"拥有选中的门店管理权限,以及导购账号绑定权限"},slot:"label"},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("门店绑定")])]),e._v(" "),r("gic-select-group-auth",{attrs:{brandId:e.enterpriseId,width:"287px",authMerchant:!0,selectData:e.partForm.storeGroup},on:{checkGroupIds:e.checkGroupIds}})],1),e._v(" "),r("el-form-item",{staticStyle:{"margin-top":"-10px","margin-bottom":"12px"}},[r("el-tooltip",{staticClass:"item",attrs:{slot:"label","popper-class":"authMerchant-member-open-card-flag-tooltip",effect:"dark","open-delay":200,placement:"top-start"},slot:"label"},[r("div",{staticStyle:{"line-height":"18px"},attrs:{slot:"content"},slot:"content"},[e._v("\n ①选择同一开平,通过企业微信添加客户,可以直接更新会员信息(一码两用)。"),r("br"),e._v("\n 原因:因为获取的用户unionid相同,可以将客户身份(企微客户)和会员(微信会员)身份直接关联;"),r("br"),e._v("\n ②选择不同开平,通过企业微信添加客户,无法直接更新会员信息(一码两用)。"),r("br"),e._v("\n 原因:因为获取的用户unionid不同,无法将客户身份(企微客户)和会员(微信会员)身份直接关联\n ")]),e._v(" "),r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("开放平台类型")])]),e._v(" "),r("div",{staticStyle:{"padding-top":"10px"}},[r("el-radio",{attrs:{label:0,disabled:"edit"===e.type},model:{value:e.partForm.memberOpenCardFlag,callback:function(t){e.$set(e.partForm,"memberOpenCardFlag",t)},expression:"partForm.memberOpenCardFlag"}},[r("div",{staticClass:"m-b-20",staticStyle:{display:"inline-block","vertical-align":"top"}},[r("p",{staticClass:"l-h-1 m-b-5 color-303133"},[e._v("同一开平")]),e._v(" "),r("p",{staticClass:"tip"},[e._v("(授权商户的小程序/公众号,和当前企业【客户联系】微信开发者ID绑在同一开放平台 。例:绑定同一开平的集团企业)")])])])],1),e._v(" "),r("div",[r("el-radio",{attrs:{label:1,disabled:"edit"===e.type},model:{value:e.partForm.memberOpenCardFlag,callback:function(t){e.$set(e.partForm,"memberOpenCardFlag",t)},expression:"partForm.memberOpenCardFlag"}},[r("div",{staticStyle:{display:"inline-block","vertical-align":"top"}},[r("p",{staticClass:"l-h-1 m-b-5 color-303133"},[e._v("不同开平")]),e._v(" "),r("p",{staticClass:"tip"},[e._v("(授权商户的小程序/公众号,和当前企业【客户联系】微信开发者ID绑在不同开放平台。例:没绑定同一开平的代理商企业)")])])])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"企业类型"}},[r("el-radio",{attrs:{label:0,disabled:"edit"===e.type},model:{value:e.partForm.wxEnterpriseType,callback:function(t){e.$set(e.partForm,"wxEnterpriseType",t)},expression:"partForm.wxEnterpriseType"}},[e._v("总部")]),e._v(" "),r("el-radio",{attrs:{label:1,disabled:"edit"===e.type},model:{value:e.partForm.wxEnterpriseType,callback:function(t){e.$set(e.partForm,"wxEnterpriseType",t)},expression:"partForm.wxEnterpriseType"}},[e._v("代理")])],1),e._v(" "),r("el-button",{staticStyle:{display:"block",margin:"38px 0 0 128px"},attrs:{type:"primary",disabled:!(e.enterpriseId&&e.partForm.storeGroup.length&&e.partForm.searchSelect)},on:{click:function(t){e.addShow=!0}}},[e._v(" 授权校验并"+e._s("edit"===e.type?"保存":"新建"))])],1)],1)])])])]),e._v(" "),e.addShow?r("authMerchant-dailog",{attrs:{item:e.dailogForm},on:{refreshData:e.refreshData}}):e._e()],1)},staticRenderFns:[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"overstore-tip w-718"},[r("div",{staticClass:"el-alert el-alert--info flex flex-align-center",attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-warning font-13 color-2f54eb"}),e._v(" "),r("div",{staticClass:"el-alert__content color-303133 font-13"},[r("p",{staticClass:"line-22"},[e._v("商户授权须知:")]),e._v(" "),r("p",{staticClass:"line-22"},[e._v("1. 商户授权支持 1 个商户授权多个企业以及多个商户授权 1 个企业;")]),e._v(" "),r("p",{staticClass:"line-22"},[e._v("2. 商户授权需经过商户管理员同意后,才会授权成功;")]),e._v(" "),r("p",{staticClass:"line-22"},[e._v("3. 商户授权结束后,导购可通过企业微信好办小程序关联导购账号后登录;")]),e._v(" "),r("p",{staticClass:"line-22"},[e._v("4. 商户授权门店绑定或修改,默认次日生效,如需立即生效可在商户授权列表手动刷新。")])])])])}]};var y=r("VU/8")(x,C,!1,function(e){r("zeGv"),r("o1sq")},"data-v-6b4d2e58",null);t.default=y.exports},EmJx:function(e,t){},QtFz:function(e,t){},d6vV:function(e,t){},o1sq:function(e,t){},zeGv:function(e,t){}});
\ No newline at end of file
webpackJsonp([109],{cjME:function(t,e){},vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-298+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.b)("/haoban-manage3-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont-hb3 icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.storeName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("cjME")},"data-v-1b3d589e",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([11],{"+kZ0":function(e,t,a){"use strict";var r=a("3Xzz"),o=a("Qs+A"),n=a("P9l9"),i=a("Ch4/"),s={name:"select-card-template",props:{cardTempShow:{type:Boolean,default:function(){return!1}},selectTemp:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[]}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleClose:function(){var e=this;e.$emit("closeTemp"),e.$refs.multipleTable.clearSelection();var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})},submitForm:function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20?(e.$message.error({duration:1e3,message:"最多只能选择20个模板"}),!1):(e.$emit("returnData",e.multipleSelection),void e.$nextTick(function(){var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})})):(e.$message.error({duration:1e3,message:"请选择模板"}),!1)},changeRoute:function(e){this.$router.push(e)},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(n.a)("/haoban-app-customer-web/inner/list-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result||[],!1;i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this,t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.$refs.multipleTable.clearSelection(),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.multipleSelection.push(a)}),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})}},watch:{cardTempShow:function(e){this.dialogVisible=e},selectTemp:function(e,t){}},mounted:function(){this.dialogVisible=this.cardTempShow,this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:r.a,setDepartment:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"选择模板",visible:e.dialogVisible,width:"700px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},open:e.initData}},[a("div",{},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{height:"450",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName)+"\n ")]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(e){a("d94c")},"data-v-cb44667e",null);t.a=c.exports},"9db3":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),o=a.n(r),n=a("l46T"),i=a("+kZ0"),s=a("ja1h"),l=a("P9l9"),c=a("3E4D"),d=a("Ch4/"),p=a("PI0u"),u={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{limitInput:n.a,selectCardTemplate:i.a,selectWxDepart:s.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",timeOptions:[{label:"15分钟后",value:"15"},{label:"30分钟后",value:"30"},{label:"1小时后",value:"60"},{label:"3小时后",value:"180"}],formData:{repairId:"",cardCombineName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],fixdType:"0",fixdTimes:"15"},cardErr:!1,rules:{cardCombineName:[{required:!0,message:"请输入卡券组合名称",trigger:"blur"}],cardTemplateJson:[{type:"array",required:!0,message:"请至少选择一个卡券模板",trigger:"change"}]},choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,r=t.minDate;e.choiceDateCopy=[r.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,r=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>r||t.getTime()<Date.now()-864e5}return t.getTime()<Date.now()-864e5}},dateOptions:[],monthOptions:[],inputVisible:!1,inputValue:"",cardTempShow:!1,departShow:!1,loadingBtn:!1}},methods:{showDepartDilog:function(){this.departShow=!0},delDepart:function(e,t){t.splice(e,1)},changeNoPosition:function(e){if(e&&this.formData.positionNames.length>=50)return this.$message.error({duration:1e3,message:"最多可添加50个职务"}),this.formData.noPosition=!1,!1;e?this.formData.positionNames.push("-1"):this.formData.positionNames.splice(this.formData.positionNames.indexOf("-1"),1)},changeSendType:function(){1==this.formData.sendRange?this.departShow=!0:(this.formData.departmentJson=[],this.departShow=!1)},clickSendType:function(){if(this.$route.query.repairId)return!1;this.departShow=!0},refreshData:function(e){if(this.departShow=!1,"close"==e)return!1;this.formData.departmentJson=e},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},showCardTemp:function(){if(this.$route.query.repairId)return!1;this.cardTempShow=!0},returnData:function(e){e.forEach(function(e){e.effectiveType="0",e.dateRange=[],e.sendNumberDay="0",e.effectiveDay="366",e.sendLimit="50000"});var t=e.map(function(e){return e.templateId}),a=[];this.formData.cardTemplateJson.forEach(function(e){t.includes(e.templateId)&&a.push(e)}),e.forEach(function(e){a.forEach(function(t){e.templateId==t.templateId&&(e.effectiveType=t.effectiveType,e.dateRange=t.dateRange,e.sendNumberDay=t.sendNumberDay,e.effectiveDay=t.effectiveDay)})}),this.formData.cardTemplateJson=JSON.parse(o()(e)),this.cardTempShow=!1},closeTemp:function(){this.cardTempShow=!1},handleClose:function(e){this.formData.positionNames.splice(this.formData.positionNames.indexOf(e),1)},showInput:function(){var e=this;if(e.formData.positionNames.length>=50)return e.$message.error({duration:1e3,message:"最多可添加50个职务"}),!1;e.inputVisible=!0,e.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.formData.positionNames.push(e),this.inputVisible=!1,this.inputValue=""},toDelTemp:function(e,t,a){a.splice(e,1)},handleDay:function(){for(var e=[],t=0;t<91;t++)0==t?e.push({label:"当天",value:String(t)}):e.push({label:"第"+t+"天",value:String(t)});this.dateOptions=e,this.monthOptions=[];for(var a=1;a<13;a++)this.monthOptions.push({label:a+"月",value:String(a)})},submitForm:Object(p.a)(function(e,t){var a=this;if(!a.formData.cardTemplateJson)return!1;var r=!0;return a.formData.cardTemplateJson.forEach(function(e){0!=e.effectiveType||e.dateRange&&e.dateRange.length&&e.dateRange[0]||(e.dateRange=[],r=!1),e.startTimeString=e.dateRange?e.dateRange[0]:"",e.endTimeString=e.dateRange?e.dateRange[1]:""}),r?a.formData.cardTemplateJson.length?(a.cardErr=!1,1!=a.formData.sendRange||a.formData.departmentJson.length?(a.loadingBtn=!0,void a.$refs[e].validate(function(e){e?a.postSaveCard(t):a.loadingBtn=!1})):(a.$message.error({duration:1e3,message:"请先选择发送的部门"}),!1)):(a.cardErr=!0,!1):(a.$message.error({duration:1e3,message:"请先选择模板有效期"}),!1)},1e3),postSaveCard:function(e){var t=this,a={repairId:t.formData.repairId,cardCombineName:t.formData.cardCombineName,cardTemplateJson:o()(t.formData.cardTemplateJson),sendRange:t.formData.sendRange,positionFlag:t.formData.positionFlag?1:0,positionNames:t.formData.positionNames.length?t.formData.positionNames.join(","):"",departmentJson:o()(t.formData.departmentJson),fixdTimes:t.formData.fixdTimes,wxEnterpriseId:t.wxEnterpriseId};Object(l.e)((t.$route.query.repairId,"/haoban-app-customer-web/inner/save-repair"),a).then(function(a){var r=a.data;t.loadingBtn=!1,1==r.errorCode&&(c.a.showmsg(t.$route.query.repairId?"编辑卡券策略成功":"新建卡券策略成功","success"),e?(t.formData={repairId:"",cardCombineName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],fixdType:"0",fixdTimes:"15"},t.choiceDateCopy=[]):t.$router.push("/cardPut")),d.a.errorMsg(r)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getCardData:function(){var e=this,t={repairId:e.$route.query.repairId};Object(l.a)("/haoban-app-customer-web/inner/find-repair",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardTemplateRelateds.forEach(function(e){e.effectiveType=String(e.effectiveType),e.dateRange=[e.startTimeString?e.startTimeString:"",e.endTimeString?e.endTimeString:""]}),e.formData={repairId:a.result.repairId,cardCombineName:a.result.cardCombineName,cardTemplateJson:a.result.cardTemplateRelateds||[],sendRange:String(a.result.sendRange),positionFlag:1==a.result.positionFlag,positionNames:a.result.positionNames.length?a.result.positionNames.split(","):[],departmentJson:a.result.departmentRelateds||[],fixdType:"0",fixdTimes:String(a.result.fixdTimes)},!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.repairId&&(this.activeBrand=e,this.getCardData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","3"),e.$nextTick(function(){e.handleDay()}),e.$route.query.repairId&&e.getCardData()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"卡券组合名称",prop:"cardCombineName"}},[a("limitInput",{attrs:{inputWidth:340,disflag:!!e.$route.query.repairId,inputValue:e.formData.cardCombineName,getByType:"word",holder:"请输入卡券组合名称",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"cardCombineName",t)},"update:input-value":function(t){return e.$set(e.formData,"cardCombineName",t)}}})],1),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("卡券选择策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large is-required"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"支持多选,最多可选20个模板",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择卡券模板")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("div",{class:["card-add-btn text-center ",e.$route.query.repairId?"cursor-not-allowed":"cursor-pointer"],on:{click:e.showCardTemp}},[a("span",{staticClass:"font-14 color-606266"},[e._v("选择卡券模板")])]),e._v(" "),e.formData.cardTemplateJson.length?a("div",{staticClass:"m-t-20"},[a("el-table",{staticClass:"select-table",style:{width:"100%"},attrs:{"max-height":"450",data:e.formData.cardTemplateJson,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"卡券模板名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期",width:"505"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"w-100",attrs:{disabled:!!e.$route.query.repairId,placeholder:""},model:{value:t.row.effectiveType,callback:function(a){e.$set(t.row,"effectiveType",a)},expression:"scope.row.effectiveType"}},[a("el-option",{attrs:{label:"固定日期",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"发送后",value:"1"}})],1),0==t.row.effectiveType?a("el-date-picker",{staticClass:"m-l-10 w-300 vertical-middle",attrs:{disabled:!!e.$route.query.repairId,"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:t.row.dateRange,callback:function(a){e.$set(t.row,"dateRange",a)},expression:"scope.row.dateRange"}}):e._e(),e._v(" "),1==t.row.effectiveType?a("el-select",{staticClass:"w-100 m-l-10",attrs:{disabled:!!e.$route.query.repairId,placeholder:"请选择"},model:{value:t.row.sendNumberDay,callback:function(a){e.$set(t.row,"sendNumberDay",a)},expression:"scope.row.sendNumberDay"}},e._l(e.dateOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("有效,有效天数")]):e._e(),1==t.row.effectiveType?a("el-input-number",{staticClass:"w-100 m-l-10",attrs:{"controls-position":"right",min:1,max:366},model:{value:t.row.effectiveDay,callback:function(a){e.$set(t.row,"effectiveDay",a)},expression:"scope.row.effectiveDay"}}):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("天")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送总数",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendLimit)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{disabled:!!e.$route.query.repairId,type:"text"},on:{click:function(a){return e.toDelTemp(t.$index,t.row,e.formData.cardTemplateJson)}}},[e._v("删除")])]}}])})],1)],1):e._e(),e._v(" "),!e.formData.cardTemplateJson.length&&e.cardErr?a("div",{staticClass:"el-form-item__error"},[e._v("请选择卡券模板")]):e._e()])]),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("执行策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{disabled:!!e.$route.query.repairId,label:"0"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("全企业")]),a("el-radio",{staticClass:"m-l-40",attrs:{disabled:!!e.$route.query.repairId,label:"1"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[a("span",{on:{click:e.clickSendType}},[e._v("部分部门")])]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap",on:{click:e.showDepartDilog}},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"357px"}},[e.formData.departmentJson.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}}),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.formData.departmentJson,function(t,r){return[a("span",{key:r,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.departmentName))]),e._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delDepart(r,e.formData.departmentJson)}}})])]})],2)]),e._v(" "),a("div",{staticClass:"count-number font-12 color-909399"},[e._v("已选"+e._s(e.formData.departmentJson.length)+"个部门")])])])]):e._e(),e._v(" "),a("div",{staticClass:"position-select"},[a("div",{staticClass:"position-check"},[a("el-checkbox",{attrs:{disabled:!!e.$route.query.repairId},model:{value:e.formData.positionFlag,callback:function(t){e.$set(e.formData,"positionFlag",t)},expression:"formData.positionFlag"}},[e._v("按职务筛选")])],1),e._v(" "),a("div",{staticClass:"position-check-tags"},[a("el-checkbox",{staticClass:"no-position-tag",attrs:{disabled:!!e.$route.query.repairId},on:{change:e.changeNoPosition},model:{value:e.formData.noPosition,callback:function(t){e.$set(e.formData,"noPosition",t)},expression:"formData.noPosition"}},[e._v("无职务")]),e._v(" "),e._l(e.formData.positionNames,function(t){return[-1!=t?a("el-tag",{key:t,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")]):e._e()]}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"20","show-word-limit":""},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{disabled:!!e.$route.query.repairId,size:"small"},on:{click:e.showInput}},[e._v("+ 添加职务")])],2)])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 发送次数设置\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.fixdType,callback:function(t){e.$set(e.formData,"fixdType",t)},expression:"formData.fixdType"}},[e._v("定时发送")]),e._v(" "),a("div",{staticClass:"date-valid"},[a("el-select",{attrs:{disabled:!!e.$route.query.repairId,placeholder:"请选择"},model:{value:e.formData.fixdTimes,callback:function(t){e.$set(e.formData,"fixdTimes",t)},expression:"formData.fixdTimes"}},e._l(e.timeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{disabled:!!e.$route.query.repairId,type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.repairId,loading:e.loadingBtn,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.repairId?"编辑":"新建"))]),e._v(" "),e.$route.query.repairId?e._e():a("el-button",{attrs:{disabled:!!e.$route.query.repairId,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),a("select-card-template",{attrs:{cardTempShow:e.cardTempShow,selectTemp:e.formData.cardTemplateJson},on:{returnData:e.returnData,closeTemp:e.closeTemp}}),e._v(" "),a("select-wx-depart",{attrs:{departShow:e.departShow,departArr:e.formData.departmentJson},on:{refreshData:e.refreshData}})],1)},staticRenderFns:[]};var m=a("VU/8")(u,f,!1,function(e){a("UV1I")},"data-v-ffcc377c",null);t.default=m.exports},UV1I:function(e,t){},d94c:function(e,t){},ja1h:function(e,t,a){"use strict";var r=a("mvHQ"),o=a.n(r),n=a("Xxa5"),i=a.n(n),s=a("exGp"),l=a.n(s),c=a("P9l9"),d=a("Ch4/"),p={name:"select-wx-depart",components:{},props:{departShow:{type:Boolean,default:function(){return!1}},departArr:{type:[Object,Array],default:function(){return[]}}},data:function(){return{selDepart:[],groupNodes:[],groupData:[],departVisible:!1,checkedKeys:this.departArr.length?this.departArr.map(function(e){return e.departmentId}):[],defaultProps:{children:"children",label:"departmentName",isLeaf:"isLeaf"},checkList:[]}},methods:{loadNode:function(e,t){var a=this;return l()(i.a.mark(function r(){var o;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=a,0!==e.level){r.next=5;break}return r.abrupt("return",t(o.getGroup()));case 5:return r.next=7,o.getGroup(e,e.data,t);case 7:o.checkedKeys=o.departArr.length?o.departArr.map(function(e){return e.departmentId}):[],o.initData();case 9:case"end":return r.stop()}},r,a)}))()},checkGroup:function(e){this.groupNodes=this.$refs.groupTrees.getCheckedNodes()},toRight:function(){this.selDepart=this.$refs.groupTrees.getCheckedNodes()},toLeft:function(){var e=this,t=[];e.selDepart.forEach(function(a){e.checkList.includes(a.departmentId)||t.push(a)}),e.selDepart=t,e.$refs.groupTrees.setCheckedNodes(e.selDepart)},handleClose:function(e){this.$emit("refreshData","close"),e()},cancel:function(){this.$emit("refreshData","close")},submitForm:function(e){return this.selDepart.length?this.selDepart.length>50?(this.$message.error({duration:1e3,message:"最多可选50个部门"}),!1):void this.$emit("refreshData",this.selDepart):(this.$message.error({duration:1e3,message:"请选择部门"}),!1)},getGroup:function(e,t,a){var r=this,o={parentId:t?t.departmentId:"",isStore:0};if(e&&(!t.hasSonNode||1==t.isStore))return a([]),!1;Object(c.a)("/haoban-manage3-web/department-list-level",o).then(function(o){var n=o.data;if(1==n.errorCode)return n.result&&n.result.length&&n.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName,e.isLeaf=!e.hasSonNode}),e?(a(n.result),t.children||r.$set(t,"children",[]),t.children=n.result||[],r.$forceUpdate(),!1):(r.groupData=n.result||[],void r.initData());d.a.errorMsg(n)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this;e.$nextTick(function(){e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},watch:{departShow:function(e){this.departVisible=e},departArr:function(e){var t=this;t.checkedKeys=t.departArr.length?t.departArr.map(function(e){return e.departmentId}):[],e.length?t.selDepart=JSON.parse(o()(e)):t.selDepart=[],t.$nextTick(function(){t.$refs.groupTrees.setCheckedKeys(t.checkedKeys),t.groupNodes=t.$refs.groupTrees.getCheckedNodes()})}},mounted:function(){var e=this;e.departVisible=e.departShow,e.getGroup(),e.departArr.length?e.selDepart=JSON.parse(o()(e.departArr)):e.selDepart=[],e.checkedKeys=e.departArr.length?e.departArr.map(function(e){return e.departmentId}):[],e.$nextTick(function(){e.$refs.groupTrees.setCheckedKeys(e.checkedKeys),e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"选择部门",visible:e.departVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.departVisible=t},open:e.initData}},[a("div",{staticClass:"depart-transfor"},[a("div",{staticClass:"depart-transfor-left"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("组织架构")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"})]),e._v(" "),a("div",{staticClass:"transfor-body"},[a("div",{staticClass:"transfor-body-tree"},[a("el-tree",{ref:"groupTrees",attrs:{data:e.groupData,load:e.loadNode,"default-checked-keys":e.checkedKeys,"node-key":"departmentId","check-strictly":"",lazy:"","show-checkbox":"",props:e.defaultProps},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont-hb3",1==o.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==o.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(r.label))])])}}])})],1)])]),e._v(" "),a("div",{staticClass:"depart-transfor-middle"},[a("div",{staticClass:"m-b-10"},[a("el-button",{attrs:{disabled:!e.groupNodes.length,type:"primary",icon:"el-icon-arrow-right"},on:{click:e.toRight}},[e._v("转入")])],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:!e.checkList.length,type:"primary",icon:"el-icon-arrow-left"},on:{click:e.toLeft}},[e._v("移除")])],1)]),e._v(" "),a("div",{staticClass:"depart-transfor-right"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("已选")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v(e._s(e.selDepart.length))])]),e._v(" "),a("div",{staticClass:"select-body"},[a("div",{staticClass:"select-body-list"},[a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("div",e._l(e.selDepart,function(t,r){return a("el-checkbox",{key:r+"sel",attrs:{label:t.departmentId}},[e._v(e._s(t.departmentName))])}),1)])],1)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("partForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var f=a("VU/8")(p,u,!1,function(e){a("v1lP")},"data-v-79b25c54",null);t.a=f.exports},v1lP:function(e,t){}});
\ No newline at end of file
webpackJsonp([114],{JbAx:function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"/newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"/newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"查看补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("JbAx")},"data-v-125e6edc",null);a.default=h.exports}});
\ No newline at end of file
webpackJsonp([117],{"6j9f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(t){var e={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.g)("/haoban-manage3-web/audit/open-or-close",e).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):s.a.showmsg("操作成功","success")}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.b)("/haoban-manage3-web/audit/find-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.storeSwitch=a.result.auditFlag,void(e.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.storeSwitch,callback:function(e){t.storeSwitch=e},expression:"storeSwitch"}},[t._v("开启门店资料修改审核")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.clerkChangeFlag,callback:function(e){t.clerkChangeFlag=e},expression:"clerkChangeFlag"}},[t._v("门店导购变更审核")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("开启后,企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),t._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[t.$getButtonLimit(t.$buttonCode.saveApplySetting)?a("el-button",{attrs:{"limit-code":t.$buttonCode.saveApplySetting,type:"primary",loading:t.loading},on:{click:t.postData}},[t._v("保 存")]):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(n,o,!1,function(t){a("VWtM")},"data-v-0c4d9fc7",null);e.default=c.exports},VWtM:function(t,e){}});
\ No newline at end of file
webpackJsonp([12],{"+kZ0":function(e,t,a){"use strict";var n=a("3Xzz"),o=a("Qs+A"),r=a("P9l9"),s=a("Ch4/"),i={name:"select-card-template",props:{cardTempShow:{type:Boolean,default:function(){return!1}},selectTemp:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[]}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleClose:function(){var e=this;e.$emit("closeTemp"),e.$refs.multipleTable.clearSelection();var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})},submitForm:function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20?(e.$message.error({duration:1e3,message:"最多只能选择20个模板"}),!1):(e.$emit("returnData",e.multipleSelection),void e.$nextTick(function(){var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})})):(e.$message.error({duration:1e3,message:"请选择模板"}),!1)},changeRoute:function(e){this.$router.push(e)},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.a)("/haoban-app-customer-web/inner/list-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this,t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.$refs.multipleTable.clearSelection(),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.multipleSelection.push(a)}),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})}},watch:{cardTempShow:function(e){this.dialogVisible=e},selectTemp:function(e,t){}},mounted:function(){this.dialogVisible=this.cardTempShow,this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"选择模板",visible:e.dialogVisible,width:"700px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},open:e.initData}},[a("div",{},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{height:"450",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName)+"\n ")]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("d94c")},"data-v-cb44667e",null);t.a=c.exports},"8Rwt":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("mvHQ"),o=a.n(n),r=a("l46T"),s=a("+kZ0"),i=a("ja1h"),l=a("P9l9"),c=a("3E4D"),p=a("Ch4/"),d=a("PI0u"),m={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{limitInput:r.a,selectCardTemplate:s.a,selectWxDepart:i.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},cardErr:!1,rules:{policyName:[{required:!0,message:"请输入卡券策略名称",trigger:"blur"}],cardTemplateJson:[{type:"array",required:!0,message:"请至少选择一个卡券模板",trigger:"change"}]},cardSelectShow:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()<Date.now()-864e5}return t.getTime()<Date.now()-864e5}},dateOptions:[],monthOptions:[],inputVisible:!1,inputValue:"",cardTempShow:!1,departShow:!1,loadingBtn:!1}},methods:{showDepartDilog:function(){this.departShow=!0},delDepart:function(e,t){t.splice(e,1)},toInput:function(e){/^[0-9]*$/.test(e.target.value)||(this.formData.sendTimes=1)},changeNoPosition:function(e){if(e&&this.formData.positionNames.length>=50)return this.$message.error({duration:1e3,message:"最多可添加50个职务"}),this.formData.noPosition=!1,!1;e?this.formData.positionNames.push("-1"):this.formData.positionNames.splice(this.formData.positionNames.indexOf("-1"),1)},changeSendType:function(){1==this.formData.sendRange?this.departShow=!0:(this.formData.departmentJson=[],this.departShow=!1)},clickSendType:function(){this.departShow=!0},refreshData:function(e){if(this.departShow=!1,"close"==e)return!1;this.formData.departmentJson=e},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},showCardTemp:function(){this.cardTempShow=!0},returnData:function(e){e.forEach(function(e){e.effectiveType="0",e.dateRange=[],e.sendNumberDay="0",e.effectiveDay="366",e.sendLimit="50000"});var t=e.map(function(e){return e.templateId}),a=[];this.formData.cardTemplateJson.forEach(function(e){t.includes(e.templateId)&&a.push(e)}),e.forEach(function(e){a.forEach(function(t){e.templateId==t.templateId&&(e.effectiveType=t.effectiveType,e.dateRange=t.dateRange,e.sendNumberDay=t.sendNumberDay,e.effectiveDay=t.effectiveDay)})}),this.formData.cardTemplateJson=JSON.parse(o()(e)),this.cardTempShow=!1},closeTemp:function(){this.cardTempShow=!1},handleClose:function(e){this.formData.positionNames.splice(this.formData.positionNames.indexOf(e),1)},showInput:function(){var e=this;if(e.formData.positionNames.length>=50)return e.$message.error({duration:1e3,message:"最多可添加50个职务"}),!1;e.inputVisible=!0,e.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.formData.positionNames.push(e),this.inputVisible=!1,this.inputValue=""},toDelTemp:function(e,t,a){a.splice(e,1)},handleDay:function(){for(var e=[],t=0;t<91;t++)0==t?e.push({label:"当天",value:String(t)}):e.push({label:"第"+t+"天",value:String(t)});this.dateOptions=e,this.monthOptions=[];for(var a=1;a<13;a++)this.monthOptions.push({label:a+"月",value:String(a)})},submitForm:Object(d.a)(function(e,t){var a=this;if(a.formData.validDateRange||(a.formData.validDateRange=[]),!(1!=a.formData.policyExpireDateType||a.formData.validDateRange&&a.formData.validDateRange.length))return a.$message.error({duration:1e3,message:"请先选择固定期限日期"}),!1;if(!a.formData.cardTemplateJson)return!1;var n=!0;return a.formData.cardTemplateJson.forEach(function(e){0!=e.effectiveType||e.dateRange&&e.dateRange.length&&e.dateRange[0]||(e.dateRange=[],n=!1),e.startTimeString=e.dateRange?e.dateRange[0]:"",e.endTimeString=e.dateRange?e.dateRange[1]:""}),n?a.formData.cardTemplateJson.length?(a.cardErr=!1,1!=a.formData.sendRange||a.formData.departmentJson.length?1!=a.formData.sendMonthType||a.formData.sendMonthTimes.length?a.formData.sendTimes?(a.loadingBtn=!0,void a.$refs[e].validate(function(e){e?a.postSaveCard(t):a.loadingBtn=!1})):(a.$message.error({duration:1e3,message:"请先选择策略执行次数"}),!1):(a.$message.error({duration:1e3,message:"请先选择多月循环"}),!1):(a.$message.error({duration:1e3,message:"请先选择发送的部门"}),!1)):(a.cardErr=!0,!1):(a.$message.error({duration:1e3,message:"请先选择模板有效期"}),!1)},1e3),postSaveCard:function(e){var t=this,a={policyId:t.formData.policyId,policyName:t.formData.policyName,cardTemplateJson:o()(t.formData.cardTemplateJson),sendRange:t.formData.sendRange,positionFlag:t.formData.positionFlag?1:0,positionNames:t.formData.positionNames.length?t.formData.positionNames.join(","):"",departmentJson:o()(t.formData.departmentJson),sendMonthType:t.formData.sendMonthType,sendTimes:t.formData.sendTimes,sendMonthTimes:t.formData.sendMonthTimes.length?t.formData.sendMonthTimes.join(","):"",policyExpireDateType:t.formData.policyExpireDateType,startTimeString:t.formData.validDateRange[0],endTimeString:t.formData.validDateRange[1],onlineFlag:t.formData.onlineFlag,wxEnterpriseId:t.wxEnterpriseId};Object(l.e)((t.$route.query.policyId,"/haoban-app-customer-web/inner/save-policy"),a).then(function(a){var n=a.data;t.loadingBtn=!1,1==n.errorCode&&(c.a.showmsg(t.$route.query.policyId?"编辑卡券策略成功":"新建卡券策略成功","success"),e?(t.formData={policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},t.choiceDateCopy=[]):t.$router.push("/cardStrategy")),p.a.errorMsg(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getCardData:function(){var e=this,t={policyId:e.$route.query.policyId,gicEnterpriseId:e.brandId};Object(l.a)("/haoban-app-customer-web/inner/find-policy",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardTemplateRelateds.forEach(function(e){e.sendNumberDay=String(e.sendNumberDay),e.effectiveType=String(e.effectiveType),e.dateRange=[e.startTimeString?e.startTimeString:"",e.endTimeString?e.endTimeString:""]}),e.formData={policyId:a.result.policyId,policyName:a.result.policyName,cardTemplateJson:a.result.cardTemplateRelateds||[],sendRange:String(a.result.sendRange),positionFlag:1==a.result.positionFlag,noPosition:!(!a.result.positionNames.includes("-1")&&!a.result.positionNames.includes(-1)),positionNames:a.result.positionNames?a.result.positionNames.split(","):[],departmentJson:a.result.departmentRelateds||[],sendMonthType:String(a.result.sendMonthType),sendTimes:a.result.sendTimes,sendMonthTimes:a.result.sendMonthTimes.length?a.result.sendMonthTimes.split(","):[],policyExpireDateType:String(a.result.policyExpireDateType),startTimeString:a.result.startTimeString,endTimeString:a.result.endTimeString,onlineFlag:a.result.onlineFlag,validDateRange:[a.result.startTimeString?a.result.startTimeString:"",a.result.endTimeString?a.result.endTimeString:""]},!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.policyId&&(this.activeBrand=e,this.getCardData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","2"),e.$nextTick(function(){e.handleDay()}),e.$route.query.policyId&&e.getCardData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"卡券策略名称",prop:"policyName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.policyName,getByType:"word",holder:"请输入卡券策略名称",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"policyName",t)},"update:input-value":function(t){return e.$set(e.formData,"policyName",t)}}})],1),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("卡券选择策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large is-required"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"支持多选,最多可选20个模板",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择卡券模板")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCardTemp}},[a("span",{staticClass:"font-14 color-606266"},[e._v("选择卡券模板")])]),e._v(" "),e.formData.cardTemplateJson.length?a("div",{staticClass:"m-t-20"},[a("el-table",{staticClass:"select-table",style:{width:"100%"},attrs:{"max-height":"450",data:e.formData.cardTemplateJson,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"卡券模板名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期",width:"505"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"w-100",attrs:{placeholder:""},model:{value:t.row.effectiveType,callback:function(a){e.$set(t.row,"effectiveType",a)},expression:"scope.row.effectiveType"}},[a("el-option",{attrs:{label:"固定日期",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"发送后",value:"1"}})],1),0==t.row.effectiveType?a("el-date-picker",{staticClass:"m-l-10 w-300 vertical-middle",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:t.row.dateRange,callback:function(a){e.$set(t.row,"dateRange",a)},expression:"scope.row.dateRange"}}):e._e(),e._v(" "),1==t.row.effectiveType?a("el-select",{staticClass:"w-100 m-l-10",attrs:{placeholder:"请选择"},model:{value:t.row.sendNumberDay,callback:function(a){e.$set(t.row,"sendNumberDay",a)},expression:"scope.row.sendNumberDay"}},e._l(e.dateOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("有效,有效天数")]):e._e(),1==t.row.effectiveType?a("el-input-number",{staticClass:"w-100 m-l-10",attrs:{"controls-position":"right",min:1,max:366},model:{value:t.row.effectiveDay,callback:function(a){e.$set(t.row,"effectiveDay",a)},expression:"scope.row.effectiveDay"}}):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("天")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送总数",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendLimit)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDelTemp(t.$index,t.row,e.formData.cardTemplateJson)}}},[e._v("删除")])]}}])})],1)],1):e._e(),e._v(" "),!e.formData.cardTemplateJson.length&&e.cardErr?a("div",{staticClass:"el-form-item__error"},[e._v("请选择卡券模板")]):e._e()])]),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("执行策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("全企业")]),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[a("span",{on:{click:e.clickSendType}},[e._v("部分部门")])]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap",on:{click:e.showDepartDilog}},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"357px"}},[e.formData.departmentJson.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}}),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.formData.departmentJson,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.departmentName))]),e._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delDepart(n,e.formData.departmentJson)}}})])]})],2)]),e._v(" "),a("div",{staticClass:"count-number font-12 color-909399"},[e._v("已选"+e._s(e.formData.departmentJson.length)+"个部门")])])])]):e._e(),e._v(" "),a("div",{staticClass:"position-select"},[a("div",{staticClass:"position-check"},[a("el-checkbox",{model:{value:e.formData.positionFlag,callback:function(t){e.$set(e.formData,"positionFlag",t)},expression:"formData.positionFlag"}},[e._v("按职务筛选")])],1),e._v(" "),a("div",{staticClass:"position-check-tags"},[a("el-checkbox",{staticClass:" no-position-tag",on:{change:e.changeNoPosition},model:{value:e.formData.noPosition,callback:function(t){e.$set(e.formData,"noPosition",t)},expression:"formData.noPosition"}},[e._v("无职务")]),e._v(" "),e._l(e.formData.positionNames,function(t){return[-1!=t?a("el-tag",{key:t,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")]):e._e()]}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"20","show-word-limit":""},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 添加职务")])],2)])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略执行次数\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{staticStyle:{"margin-right":"0px"},attrs:{label:"0"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每月该策略针对单一成员执行几次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("每月循环")])]),a("el-radio",{staticStyle:{"margin-right":"0px","margin-left":"30px"},attrs:{label:"1"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"第n月发送次数,例如第3,6,9月,每月1次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("多月循环")])]),e._v(" "),0==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("每月")]),a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e(),e._v(" "),1==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),a("el-select",{staticClass:"w-150",attrs:{multiple:"","collapse-tags":"",placeholder:"请选择"},model:{value:e.formData.sendMonthTimes,callback:function(t){e.$set(e.formData,"sendMonthTimes",t)},expression:"formData.sendMonthTimes"}},e._l(e.monthOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-input-number",{staticClass:"m-l-10 w-100",staticStyle:{"vertical-align":"middle"},attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e()],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略有效期\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("长期有效")]),a("el-radio",{attrs:{label:"1"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("固定期限")]),e._v(" "),1==e.formData.policyExpireDateType?a("div",{staticClass:"date-valid"},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.formData.validDateRange,callback:function(t){e.$set(e.formData,"validDateRange",t)},expression:"formData.validDateRange"}})],1):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.policyId?"编辑":"新建"))]),e._v(" "),e.$route.query.policyId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),a("select-card-template",{attrs:{cardTempShow:e.cardTempShow,selectTemp:e.formData.cardTemplateJson},on:{returnData:e.returnData,closeTemp:e.closeTemp}}),e._v(" "),a("select-wx-depart",{attrs:{departShow:e.departShow,departArr:e.formData.departmentJson},on:{refreshData:e.refreshData}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("jBAV")},"data-v-b91fa5a6",null);t.default=f.exports},d94c:function(e,t){},jBAV:function(e,t){},ja1h:function(e,t,a){"use strict";var n=a("mvHQ"),o=a.n(n),r=a("Xxa5"),s=a.n(r),i=a("exGp"),l=a.n(i),c=a("P9l9"),p=a("Ch4/"),d={name:"select-wx-depart",components:{},props:{departShow:{type:Boolean,default:function(){return!1}},departArr:{type:[Object,Array],default:function(){return[]}}},data:function(){return{selDepart:[],groupNodes:[],groupData:[],departVisible:!1,checkedKeys:this.departArr.length?this.departArr.map(function(e){return e.departmentId}):[],defaultProps:{children:"children",label:"departmentName",isLeaf:"isLeaf"},checkList:[]}},methods:{loadNode:function(e,t){var a=this;return l()(s.a.mark(function n(){var o;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=a,0!==e.level){n.next=5;break}return n.abrupt("return",t(o.getGroup()));case 5:return n.next=7,o.getGroup(e,e.data,t);case 7:o.checkedKeys=o.departArr.length?o.departArr.map(function(e){return e.departmentId}):[],o.initData();case 9:case"end":return n.stop()}},n,a)}))()},checkGroup:function(e){this.groupNodes=this.$refs.groupTrees.getCheckedNodes()},toRight:function(){this.selDepart=this.$refs.groupTrees.getCheckedNodes()},toLeft:function(){var e=this,t=[];e.selDepart.forEach(function(a){e.checkList.includes(a.departmentId)||t.push(a)}),e.selDepart=t,e.$refs.groupTrees.setCheckedNodes(e.selDepart)},handleClose:function(e){this.$emit("refreshData","close"),e()},cancel:function(){this.$emit("refreshData","close")},submitForm:function(e){return this.selDepart.length?this.selDepart.length>50?(this.$message.error({duration:1e3,message:"最多可选50个部门"}),!1):void this.$emit("refreshData",this.selDepart):(this.$message.error({duration:1e3,message:"请选择部门"}),!1)},getGroup:function(e,t,a){var n=this,o={parentId:t?t.departmentId:"",isStore:0};if(e&&(!t.hasSonNode||1==t.isStore))return a([]),!1;Object(c.a)("/haoban-manage3-web/department-list-level",o).then(function(o){var r=o.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName,e.isLeaf=!e.hasSonNode}),e?(a(r.result),t.children||n.$set(t,"children",[]),t.children=r.result||[],n.$forceUpdate(),!1):(n.groupData=r.result||[],void n.initData());p.a.errorMsg(r)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this;e.$nextTick(function(){e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},watch:{departShow:function(e){this.departVisible=e},departArr:function(e){var t=this;t.checkedKeys=t.departArr.length?t.departArr.map(function(e){return e.departmentId}):[],e.length?t.selDepart=JSON.parse(o()(e)):t.selDepart=[],t.$nextTick(function(){t.$refs.groupTrees.setCheckedKeys(t.checkedKeys),t.groupNodes=t.$refs.groupTrees.getCheckedNodes()})}},mounted:function(){var e=this;e.departVisible=e.departShow,e.getGroup(),e.departArr.length?e.selDepart=JSON.parse(o()(e.departArr)):e.selDepart=[],e.checkedKeys=e.departArr.length?e.departArr.map(function(e){return e.departmentId}):[],e.$nextTick(function(){e.$refs.groupTrees.setCheckedKeys(e.checkedKeys),e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"选择部门",visible:e.departVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.departVisible=t},open:e.initData}},[a("div",{staticClass:"depart-transfor"},[a("div",{staticClass:"depart-transfor-left"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("组织架构")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"})]),e._v(" "),a("div",{staticClass:"transfor-body"},[a("div",{staticClass:"transfor-body-tree"},[a("el-tree",{ref:"groupTrees",attrs:{data:e.groupData,load:e.loadNode,"default-checked-keys":e.checkedKeys,"node-key":"departmentId","check-strictly":"",lazy:"","show-checkbox":"",props:e.defaultProps},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont-hb3",1==o.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==o.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))])])}}])})],1)])]),e._v(" "),a("div",{staticClass:"depart-transfor-middle"},[a("div",{staticClass:"m-b-10"},[a("el-button",{attrs:{disabled:!e.groupNodes.length,type:"primary",icon:"el-icon-arrow-right"},on:{click:e.toRight}},[e._v("转入")])],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:!e.checkList.length,type:"primary",icon:"el-icon-arrow-left"},on:{click:e.toLeft}},[e._v("移除")])],1)]),e._v(" "),a("div",{staticClass:"depart-transfor-right"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("已选")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v(e._s(e.selDepart.length))])]),e._v(" "),a("div",{staticClass:"select-body"},[a("div",{staticClass:"select-body-list"},[a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("div",e._l(e.selDepart,function(t,n){return a("el-checkbox",{key:n+"sel",attrs:{label:t.departmentId}},[e._v(e._s(t.departmentName))])}),1)])],1)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("partForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(d,m,!1,function(e){a("v1lP")},"data-v-79b25c54",null);t.a=u.exports},v1lP:function(e,t){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([14],{CFZw:function(e,t,a){e.exports=a.p+"static/img/示例图.160085d.png"},GA5c:function(e,t){},Rz4f:function(e,t){},p5im:function(e,t){},vrq5:function(e,t){},x5Fx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("woOf"),s=a.n(r),o=a("c9no"),i=a("mvHQ"),n=a.n(i),l=a("fZjL"),c=a.n(l),p=a("feRM"),m=a("l46T"),d=a("Kkt8"),u=a("PI0u"),f=a("P9l9"),h=a("3E4D"),b=a("Ch4/"),g={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:m.a,limitTextarea:d.a,singleUpload:p.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{secretName:"",secretVal:"",enterpriseId:"",secretId:"",enterpriseName:""},rules:{secretName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],secretVal:[{required:!0,message:"请输入secret",trigger:"blur"}],enterpriseId:[{required:!0,message:"请选择关联商户",trigger:"change"}]},brandOptions:[]}},methods:{getBrandData:function(){var e=this;Object(f.e)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){var a=t.data;1!=a.errorCode?b.a.errorMsg(a):a.result&&a.result.length&&(e.brandOptions=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={secretId:e.ruleForm.secretId,secretName:e.ruleForm.secretName,enterpriseId:e.ruleForm.enterpriseId,memberSecret:e.ruleForm.secretVal};Object(f.e)("/haoban-manage3-web/wx-enterprise-member-secret-set",t).then(function(t){var a=t.data;1==a.errorCode?(h.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):(e.$refs.ruleForm.resetFields(),e.$emit("submitText"),b.a.errorMsg(a))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){var t=this;c()(e).length&&t.$nextTick(function(){t.ruleForm=JSON.parse(n()(e))})}},mounted:function(){var e=this;e.getBrandData(),c()(e.editRow).length&&e.$nextTick(function(){e.ruleForm=JSON.parse(n()(e.editRow))})}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑":"新建",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"小程序名称",prop:"secretName"}},[a("limitInput",{attrs:{inputWidth:402,inputValue:e.ruleForm.secretName,holder:"请输入小程序名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"secretName",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"secretName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"secret",prop:"secretVal"}},[a("limitInput",{attrs:{inputWidth:402,inputValue:e.ruleForm.secretVal,holder:"请输入secret",getByType:"word",maxLength:80},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"secretVal",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"secretVal",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"关联商户",prop:"enterpriseId"}},[a("el-select",{staticClass:"w-402",attrs:{placeholder:"全部品牌"},model:{value:e.ruleForm.enterpriseId,callback:function(t){e.$set(e.ruleForm,"enterpriseId",t)},expression:"ruleForm.enterpriseId"}},e._l(e.brandOptions,function(t){return a("el-option",{key:t.enterpriseId,staticClass:"mult-line-select",attrs:{label:t.enterpriseName,value:t.enterpriseId}},[a("p",{staticClass:"line-20"},[e._v(e._s(t.enterpriseName))]),e._v(" "),a("div",{staticClass:"line-20 font-12 color-909399"},[e._v(e._s(t.brandName||"--"))])])}),1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var w=a("VU/8")(g,v,!1,function(e){a("Rz4f")},"data-v-979d33fc",null).exports,_=a("Dd8w"),x=a.n(_),F={props:{editRow:{type:Object,default:function(){return{}}}},components:{singleUpload:p.a},data:function(){return{dialogVisible:!0,ruleForm:{miniprogramName:"",appId:"",title:"",imageUrl:""},rules:{enterpriseId:[{required:!0,message:"请选择授权商户",trigger:"blur"}],miniprogramName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],appId:[{required:!0,message:"请输入AppID",trigger:"blur"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}]},options:[]}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(u.a)(function(e){var t=this,a=this;a.$refs[e].validate(function(e){e&&t.$confirm("是否确认提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postSave()}).catch(function(){})})},300),postSave:function(){var e=this,t=x()({},e.ruleForm);t.miniprogramType=0,Object(f.e)("/haoban-manage3-web/save-miniprogram-setting",t).then(function(t){var a=t.data;1==a.errorCode?(h.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):(e.$refs.ruleForm.resetFields(),e.$emit("submitText"),b.a.errorMsg(a))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this;Object(f.a)("/haoban-manage3-web/wxa-enterprise-list",{}).then(function(e){var a=e.data;if(1==a.errorCode)return t.options=a.result||[],!1;b.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},chooseEnterprise:function(e){var t=this.options.filter(function(t){return t.enterpriseId===e})[0];this.ruleForm.miniprogramName=t.miniprogramName,this.ruleForm.appId=t.appId,this.ruleForm.title=t.title,this.ruleForm.imageUrl=t.imageUrl}},watch:{editRow:function(e){var t=this;c()(e).length&&t.$nextTick(function(){t.ruleForm=JSON.parse(n()(e))})}},mounted:function(){var e=this;e.getTableList(),c()(e.editRow).length&&e.$nextTick(function(){e.ruleForm=JSON.parse(n()(e.editRow))})}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"edit"===e.editRow.type?"编辑":"获取小程序",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"授权商户",prop:"enterpriseId"}},[a("el-select",{attrs:{placeholder:"请选择授权商户",disabled:"edit"===e.editRow.type},on:{change:e.chooseEnterprise},model:{value:e.ruleForm.enterpriseId,callback:function(t){e.$set(e.ruleForm,"enterpriseId",t)},expression:"ruleForm.enterpriseId"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"小程序名称",prop:"miniprogramName"}},[a("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入小程序名称",type:"text",maxlength:"20"},model:{value:e.ruleForm.miniprogramName,callback:function(t){e.$set(e.ruleForm,"miniprogramName",t)},expression:"ruleForm.miniprogramName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"AppID:",prop:"appId"}},[a("el-input",{attrs:{"show-word-limit":"",placeholder:"请先选择授权商户",type:"text",maxlength:"80",disabled:!0},model:{value:e.ruleForm.appId,callback:function(t){e.$set(e.ruleForm,"appId",t)},expression:"ruleForm.appId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"标题:",prop:"title"}},[a("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入标题",type:"text",maxlength:"80"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1),e._v(" "),a("el-form-item",{attrs:{label:" 封面:",prop:"pic"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",imgSrc:e.ruleForm.imageUrl,field:"",uploadLimit:20},on:{"update:imgSrc":function(t){return e.$set(e.ruleForm,"imageUrl",t)},"update:img-src":function(t){return e.$set(e.ruleForm,"imageUrl",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"9px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("建议尺寸520*416,支持png、jpg、jpeg格式")])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v(e._s("edit"===e.editRow.type?"保存":"确定"))])],1)])},staticRenderFns:[]};var C=a("VU/8")(F,y,!1,function(e){a("vrq5")},"data-v-24e3e762",null).exports,S={props:{editRow:{type:Object,default:function(){return{}}},enterpriseId:String},components:{singleUpload:p.a},data:function(){return{dialogVisible:!0,ruleForm:{miniprogramName:"",appId:"",title:"",imageUrl:""},rules:{miniprogramName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],appId:[{required:!0,message:"请输入AppID",trigger:"blur"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}]}}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(u.a)(function(e){var t=this,a=this;a.$refs[e].validate(function(e){if(e){if(!t.ruleForm.imageUrl)return t.$message.warning("请提供小程序的封面");a.postSave()}})},300),postSave:function(){var e=this,t=x()({},e.ruleForm,{enterpriseId:this.enterpriseId});t.miniprogramType=1,Object(f.e)("/haoban-manage3-web/save-miniprogram-setting",t).then(function(t){var a=t.data;1==a.errorCode?(h.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):(e.$refs.ruleForm.resetFields(),e.$emit("submitText"),b.a.errorMsg(a))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){var t=this;c()(e).length&&t.$nextTick(function(){t.ruleForm=JSON.parse(n()(e))})}},mounted:function(){var e=this;c()(e.editRow).length&&e.$nextTick(function(){e.ruleForm=JSON.parse(n()(e.editRow))})}},T={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"edit"===e.editRow.type?"编辑":"添加小程序",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"小程序名称",prop:"miniprogramName"}},[a("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入小程序名称",type:"text",maxlength:"20"},model:{value:e.ruleForm.miniprogramName,callback:function(t){e.$set(e.ruleForm,"miniprogramName",t)},expression:"ruleForm.miniprogramName"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"appId"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("如何查看AppId:"),a("a",{attrs:{href:"https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html",target:"blank"}},[e._v("https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html")])]),e._v(" "),a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("AppId")])])],1),e._v(" "),a("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入AppId",type:"text",maxlength:"80"},model:{value:e.ruleForm.appId,callback:function(t){e.$set(e.ruleForm,"appId",t)},expression:"ruleForm.appId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入标题",type:"text",maxlength:"80"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1),e._v(" "),a("el-form-item",{attrs:{label:" 封面",prop:"pic"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",imgSrc:e.ruleForm.imageUrl,field:"",uploadLimit:20},on:{"update:imgSrc":function(t){return e.$set(e.ruleForm,"imageUrl",t)},"update:img-src":function(t){return e.$set(e.ruleForm,"imageUrl",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"9px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("建议尺寸520*416,支持png、jpg、jpeg格式")])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v(e._s("edit"===e.editRow.type?"保存":"确定"))])],1)])},staticRenderFns:[]};var $=a("VU/8")(S,T,!1,function(e){a("GA5c")},"data-v-415e4dec",null).exports,I={props:{},data:function(){return{openFlag:0,checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpid:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},wxObj:{secretType:1,secretVal:"",checkFlag:0,updateTime:null},contactObj:{secretType:2,secretVal:"",checkFlag:0,updateTime:null},haobanObj:{secretType:3,secretVal:"",checkFlag:0,updateTime:null},showWxError:!1,showContactError:!1,showHaobanError:!1,tableData:[],appTableData:[],addShow:!1,getAppShow:!1,appSetType:0,editRow:{},appEditRow:{},addAppShow:!1,addAppRow:{},wxShow:!1,wxDate:"",application:{secretVal:"",updateTime:null}}},computed:{},methods:{refeshDataWx:Object(u.a)(function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};Object(f.a)("/haoban-manage3-web/fresh-wx-friend",t).then(function(e){var t=e.data;if(1==t.errorCode)return h.a.showmsg("刷新成功","success"),!1;b.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},300),getRefreshTime:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};Object(f.a)("/haoban-manage3-web/get-fresh-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.wxDate=a.result||"",!1;b.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAgreeExternalFlag:function(e){var t=this;this.$confirm("请谨慎操作!开启后,将无法关闭。并需要在开启后,尽快完成好办后台欢迎语配置和联系运营开启external_userid转换,否则将影响企微&好办的使用。(可联系达摩运营人员进行协助)","提示",{confirmButtonText:"确认开启",cancelButtonText:"取消",type:"warning"}).then(function(){Object(f.a)("/haoban-manage3-web/agree_external_userid_flag",{openFlag:t.openFlag}).then(function(e){1==e.data.errorCode&&h.a.showmsg("操作成功","success")})}).catch(function(){t.openFlag=0==e?1:0})},getRefreshShow:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};Object(f.a)("/haoban-manage3-web/get-fresh-on-off",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.wxShow=a.result||!1,!1;b.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},addSecret:function(){this.addShow=!0,this.editRow={}},getApp:function(){this.getAppShow=!0,this.editRow={type:"add"}},addApp:function(){this.addAppShow=!0,this.addAppRow={type:"add"}},toEdit:function(e,t){this.addShow=!0,this.editRow=t},toAppEdit:function(e,t){this.getAppShow=!0,this.appEditRow=s()({},t,{type:"edit"})},toAddAppEdit:function(e,t){this.addAppShow=!0,this.addAppRow=s()({},t,{type:"edit"})},closeText:function(){this.addShow=!1,this.editRow={}},closeAppText:function(){this.getAppShow=!1,this.appEditRow={}},closeAddApp:function(){this.addAppShow=!1,this.addAppRow={}},submitText:function(){this.addShow=!1,this.editRow={},this.getSecretData()},submitAppText:function(){this.getAppShow=!1,this.appEditRow={},this.getAppData()},submitAddApp:function(){this.addAppShow=!1,this.addAppRow={},this.getAppData()},toDel:function(e,t){var a=this;a.$confirm("确定删除当前小程序信息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},toAppDel:function(e,t){var a=this;a.$confirm("确定删除当前小程序?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,r={secretId:t.secretId};Object(f.e)("/haoban-manage3-web/member-secret-del",r).then(function(e){var t=e.data;if(1==t.errorCode)return h.a.showmsg("删除成功","success"),void a.getSecretData();a.getSecretData(),b.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},postAppDel:function(e,t){var a=this,r={id:t.miniprogramSettingId};Object(f.e)("/haoban-manage3-web/del-miniprogram-setting",r).then(function(e){var t=e.data;if(1==t.errorCode)return h.a.showmsg("删除成功","success"),void a.getAppData();a.getAppData(),b.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},saveSecret:Object(u.a)(function(e){var t={};return 1==e&&(t.wxSecretKey=String(this.wxObj.secretVal).trim(),this.showWxError=!this.wxObj.secretVal),2==e&&(t.contactSecret=String(this.contactObj.secretVal).trim()),(2!=e||""!=t.contactSecret)&&(3==e&&(t.contactSecret=String(this.haobanObj.secretVal).trim(),this.showHaobanError=!this.haobanObj.secretVal),(1!=e||!this.showWxError)&&((3!=e||!this.showHaobanError)&&void this.postSaveSecret(e,t)))},300),postSaveSecret:function(e,t){var a=this,r=1==e?"/wx-enterprise-wx-secret-set":2==e?"wx-enterprise-contact-secret-set":"wx-enterprise-haoban-secret-set";Object(f.e)("/haoban-manage3-web/"+r,t).then(function(e){var t=e.data;if(1==t.errorCode)return h.a.showmsg("操作成功","success"),a.getSecretData(),!1;a.getSecretData(),b.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},refeshData:Object(u.a)(function(){this.refreshData()},300),refreshData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(f.a)("/haoban-manage3-web/wxEnterprise-refresh",a).then(function(e){var a=e.data;if(1==a.errorCode)return h.a.showmsg("刷新成功","success"),t.companyObj=a.result,!1;b.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getSecretData:function(){var e=this,t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(f.a)("/haoban-manage3-web/secret-list",a).then(function(a){var r=a.data;if(1==r.errorCode)return t.tableData=[],r.result&&r.result.length&&r.result.forEach(function(a){1==a.secretType&&(t.wxObj=a),2==a.secretType&&(t.contactObj=a),3==a.secretType&&(t.haobanObj=a),4==a.secretType&&t.tableData.push(a),5==a.secretType&&(e.application=a)}),!1;b.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a=this,r={wxEnterpriseId:a.wxEnterpriseId};Object(f.a)("/haoban-manage3-web/wxEnterprise-detail",r).then(function(e){var r=e.data;if(1==r.errorCode)return a.companyObj=r.result,t.openFlag=null===r.result.agreeExternalUseridFlag?0:r.result.agreeExternalUseridFlag,!1;b.a.errorMsg(r)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getTipData:function(){var e=this;Object(f.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(t){var a=t.data;1!=a.errorCode?b.a.errorMsg(a):e.checkShow=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAppData:function(){var e=this;Object(f.a)("/haoban-manage3-web/list-miniprogram-setting",{}).then(function(t){var a=t.data;1!=a.errorCode?b.a.errorMsg(a):e.appTableData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab",1),document.documentElement.style.backgroundColor="#f0f2f5",this.getAppData(),this.getData(),this.getSecretData(),this.getTipData(),this.getRefreshShow(),this.getRefreshTime()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{setTip:o.a,secretSet:w,appSet:C,addCustomizeApp:$}},k={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-set-wrap"},[r("div",{staticClass:"company-set-content border-box"},[r("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[r("div",{staticClass:"line-h-32"},[r("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("企业微信基本信息")]),e._v(" "),r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:e.refeshData}},[e._v("同步刷新 ")])],1),e._v(" "),r("div",[e.checkShow?e._e():r("set-tip",{attrs:{tipText:e.tipText}})],1)]),e._v(" "),r("div",{staticClass:"company-info-body"},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"105px"}},[r("el-form-item",{attrs:{label:"企业名称"}},[r("span",{staticClass:"font-14 color-303133 p-r-10"},[e._v(e._s(e.companyObj.corpName))]),e._v(" "),r("el-tag",[e._v(" "+e._s(1==e.companyObj.contactFlag?"已认证":"未认证"))]),1==e.companyObj.contactFlag?r("span",{staticClass:"p-l-10 font-12 color-909399"},[e._v("认证到期 "+e._s(e._f("timeStampToYmd")(e.companyObj.verifiedEndTime)))]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"企业ID"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpid))])]),e._v(" "),r("el-form-item",{attrs:{label:"行业类型"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpIndustry)+" / "+e._s(e.companyObj.corpSubIndustry))])]),e._v(" "),r("el-form-item",{attrs:{label:"人员规模"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpScale))])]),e._v(" "),r("el-form-item",{attrs:{label:"地址"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.location))])])],1)],1)]),e._v(" "),r("div",{staticClass:"company-set-content border-box"},[e._m(0),e._v(" "),r("div",{staticClass:"company-info-body secret-body"},[r("div",{staticClass:"m-b-20 secret-cell"},[r("span",{staticClass:"inline-block w-127"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("客户联系secret:")])])],1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:e.wxObj.secretVal,callback:function(t){e.$set(e.wxObj,"secretVal",t)},expression:"wxObj.secretVal"}}),e._v(" "),r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(t){return e.saveSecret("1")}}},[e._v("保存")]),e.wxObj.updateTime?r("span",{staticClass:"m-l-20 font-12 color-909399"},[e._v("最后一次保存:"+e._s(e._f("formatTimeStamp")(e.wxObj.updateTime)))]):e._e(),r("span",{staticClass:"m-l-37 font-14 color-303133"},[r("span",{class:["iconfont-hb3",e.wxObj.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),r("span",{staticClass:"p-l-10"},[e._v(e._s(e.wxObj.checkFlag?"校验成功":"校验失败"))])]),e._v(" "),e.showWxError?r("div",{staticClass:"el-form-item__error m-l-137"},[e._v("请填写客户联系 secret")]):e._e()],1),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.haobanObj.secretVal,expression:"haobanObj.secretVal"}],staticClass:"m-b-20 secret-cell"},[r("span",{staticClass:"inline-block w-127"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用于获取登录小程序用户的手机号/姓名/部门信息",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("好办助手secret:")])])],1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:e.haobanObj.secretVal,callback:function(t){e.$set(e.haobanObj,"secretVal",t)},expression:"haobanObj.secretVal"}}),e._v(" "),r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(t){return e.saveSecret("3")}}},[e._v("保存")]),e._v(" "),e.haobanObj.updateTime?r("span",{staticClass:"m-l-20 font-12 color-909399"},[e._v("最后一次保存:"+e._s(e._f("formatTimeStamp")(e.haobanObj.updateTime)))]):e._e(),e._v(" "),r("span",{staticClass:"m-l-37 font-14 color-303133"},[r("span",{class:["iconfont-hb3",e.haobanObj.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),e._v(" "),r("span",{staticClass:"p-l-10"},[e._v(e._s(e.haobanObj.checkFlag?"校验成功":"校验失败"))])]),e._v(" "),e.showHaobanError?r("div",{staticClass:"el-form-item__error m-l-137"},[e._v("请填写好办助手 secret")]):e._e()],1),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.application.secretVal,expression:"application.secretVal"}],staticClass:"m-b-20 secret-cell"},[r("span",{staticClass:"inline-block w-127"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"注意:2021-10-22之后新增的企微应用,全部要求走代开发模式,请录入代开发应用secret,之前建立的应用不受影响",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("代开发应用secret:")])])],1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200"},model:{value:e.application.secretVal,callback:function(t){e.$set(e.application,"secretVal",t)},expression:"application.secretVal"}}),e._v(" "),e.haobanObj.updateTime?r("span",{staticClass:"m-l-20 font-12 color-909399"},[e._v("最后一次授权:"+e._s(e._f("formatTimeStamp")(e.application.updateTime)))]):e._e()],1),e._v(" "),r("div",{staticClass:"secret-cell m-b-20"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("会员小程序secret:")])]),e._v(" "),r("span",{staticClass:"p-l-10 font-14 color-303133 font-w-500"},[e._v("会员小程序信息")]),e._v(" "),r("div",{staticClass:"table-cell m-t-10 p-l-137"},[r("el-table",{ref:"multipleTable",staticClass:"no-empty-icon-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"小程序名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.secretName||"--"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"secret",width:"506"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.secretVal||"-- ")+" ")]),r("span",{class:["iconfont-hb3",t.row.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),r("span",{staticClass:"p-l-10"},[e._v(e._s(t.row.checkFlag?"校验成功":"校验失败"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"关联商户","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.enterpriseName||"--"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),e.tableData.length<10?r("div",{staticClass:"text-center add-cell cursor-pointer",on:{click:e.addSecret}},[r("span",{staticClass:"el-icon-plus font-14 color-2f54eb add-cell-txt"}),r("span",{staticClass:"font-14 color-2f54eb p-l-5 add-cell-txt"},[e._v("新建")]),r("span",{staticClass:"font-12 color-c0c4cc p-l-20"},[e._v("最多添加10个")])]):e._e()],1)],1)]),e._v(" "),e.wxShow?r("div",{staticClass:"line-h-32 m-b-20"},[r("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("企微好友")]),e._v(" "),e.wxShow?r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:e.refeshDataWx}},[e._v("同步刷新 ")]):e._e()],1):e._e(),e._v(" "),e.wxShow?r("div",[r("el-form",{ref:"wxForm",attrs:{"label-width":"115px"}},[r("el-form-item",[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",placement:"top-start"},slot:"label"},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("刷新企业里关联导购账号的导购添加的客户。每天最多1次,每月最多3次。"),r("br"),e._v("仅刷新好办关联导购的企业好友数据,所以会小于等于企业微信看到的客户总数。"),r("br"),e._v("点击刷新后当日凌晨更新数据。")]),e._v(" "),r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("企微好友更新")])]),e._v(" "),r("span",{staticClass:"font-14 color-303133"},[e._v("更新时间:"+e._s(e._f("formatTimeStamp")(e.wxDate))+e._s(e.wxDate?"":"--"))])],1)],1)],1):e._e()]),e._v(" "),r("div",{staticClass:"company-set-content border-box"},[r("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",placement:"top-start"},slot:"label"},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("①小程序添加:用于小程序素材创建后群发小程序或配置欢迎语;"),r("br"),e._v("②获取小程序:用于获取商户绑定的小程序,创建后可用来配置欢迎语&小程序素材;"),r("br"),e._v("③添加小程序:用于自定义添加小程序,创建后可用来配置小程序素材")]),e._v(" "),r("p",{staticClass:"color-303133 font-14 font-w-600",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("小程序添加")])]),e._v(" "),r("div",[r("el-button",{attrs:{type:"primary"},on:{click:e.addApp}},[e._v("添加小程序")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getApp}},[e._v("获取小程序")])],1)],1),e._v(" "),r("div",{staticClass:"company-info-body"},[r("div",{staticClass:"table-cell m-t-10"},[r("el-table",{ref:"multipleTable",staticClass:"no-empty-icon-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.appTableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"小程序名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.miniprogramName||"--"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"AppID",width:"239"},scopedSlots:e._u([{key:"header",fn:function(){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("如何查看AppId:"),r("a",{attrs:{href:"https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html",target:"blank"}},[e._v("https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html")])]),e._v(" "),r("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("AppId")])])]},proxy:!0},{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.appId||"--"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"miniprogramType",label:"类型",width:"239"},scopedSlots:e._u([{key:"header",fn:function(){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("①默认:用于欢迎语&小程序素材"),r("br"),e._v("②自定义:用于小程序素材")]),e._v(" "),r("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("类型")])])]},proxy:!0},{key:"default",fn:function(t){var a=t.row;return[r("span",[e._v(e._s(1==a.miniprogramType?"自定义":"默认"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1!=t.row.miniprogramType?r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toAppEdit(t.$index,t.row)}}},[e._v("编辑")]):[r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toAddAppEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toAppDel(t.$index,t.row)}}},[e._v("删除")])]]}}])})],1)],1)])]),e._v(" "),r("div",{staticClass:"company-set-content border-box"},[e._m(1),e._v(" "),r("div",[r("el-form",[r("el-form-item",{attrs:{label:"是否已同意企微授权"}},[r("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:1==e.openFlag},on:{change:e.getAgreeExternalFlag},model:{value:e.openFlag,callback:function(t){e.openFlag=t},expression:"openFlag"}})],1),e._v(" "),r("span",{staticClass:"font-12 color-909399 ",staticStyle:{"margin-left":"110px","margin-top":"10px"}},[e._v("提示:若企微管理员在企微端进行过如下的授权,可打开此开关,开始企微ID转换。")])],1),e._v(" "),r("img",{staticClass:"example",attrs:{src:a("CFZw"),alt:"示例图"}})],1)]),e._v(" "),e.addShow?r("secret-set",{attrs:{editRow:e.editRow},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.addAppShow?r("add-customize-app",{attrs:{editRow:e.addAppRow,enterpriseId:e.companyObj.corpid},on:{closeText:e.closeAddApp,submitText:e.submitAddApp}}):e._e(),e._v(" "),e.getAppShow?r("app-set",{attrs:{editRow:e.appEditRow,type:e.appSetType},on:{closeText:e.closeAppText,submitText:e.submitAppText}}):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"company-title m-b-20 m-t-30"},[t("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[t("p",{staticClass:"color-303133 font-14 font-w-600"},[this._v("授权配置")])])}]};var O=a("VU/8")(I,k,!1,function(e){a("p5im")},"data-v-2e630784",null);t.default=O.exports}});
\ No newline at end of file
webpackJsonp([15],{"8ZrH":function(e,t){},CNus:function(e,t){},OsGj:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),o=s.getMonth()+1,n=s.getDate();return i+t+a(o)+t+a(n)+t}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(s,i,!1,function(e){a("CNus")},"data-v-5a02018c",null);t.a=o.exports},i6BL:function(e,t){},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),o=a("Zx22"),n=a("Ch4/"),l=a("P9l9"),r={name:"record-list",props:{detailShow:{type:Boolean,default:!1},batchId:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableData:function(){var e=this,t={batchId:e.batchId};Object(l.a)("/haoban-manage3-web/audit/audit-detail-list",t).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):e.tableData=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},batchId:function(e,t){e&&this.getTableData()}},mounted:function(){this.customDialog=this.detailShow,this.batchId&&this.getTableData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("门店信息变更")]):e._e(),e._v(" "),2==t.row.auditType?a("span",[e._v("导购绑定")]):e._e(),e._v(" "),3==t.row.auditType?a("span",[e._v("导购新增")]):e._e(),e._v(" "),4==t.row.auditType?a("span",[e._v("导购删除")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.commitTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.commitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核结果","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.auditResult?"成功":"失败")+"\n ")]}}])})],1)],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(r,u,!1,function(e){a("OsGj")},"data-v-a6e3bc3c",null).exports,d={name:"record-list",props:{resultText:{type:String,default:""},failCount:{type:[String,Boolean],default:"0"},resultShow:{type:Boolean,default:!1}},data:function(){return{customDialog:this.resultShow}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideResultDialog")},showDetail:function(){this.$emit("showResultDetail")}},watch:{resultShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.resultShow}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"提示",visible:e.customDialog,width:"420px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"result-content"},[a("span",[e._v(e._s(e.resultText))]),a("span",{staticClass:"color-f5222d"},[e._v(e._s(e.failCount)+" 条失败。")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:e.showDetail}},[e._v("查看详情")])],1)])])],1)},staticRenderFns:[]};var h=a("VU/8")(d,f,!1,function(e){a("8ZrH")},"data-v-22052f42",null).exports,p=a("3E4D"),g=a("PI0u"),v={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"1"},{label:"导购绑定",value:"2"},{label:"导购新增",value:"3"},{label:"导购删除",value:"4"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],batchId:"",resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""},dialogVisible:!1,loadBtn:!1}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(g.a)(function(e){if(!String(e.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),hideDetailDialog:function(){this.detailShow=!1},hideResultDialog:function(){this.resultShow=!1,this.getTableList()},showResultDetail:function(){this.detailShow=!0},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){var s=this;if(s.selectId=t.auditId,a&&(s.refuseVisible=!0),a)return!1;s.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){s.sendApprove()}).catch(function(){s.selectId=""})},sendApprove:Object(g.a)(function(){this.postApprove(this.selectId)},500),postApprove:function(e){var t=this,a={auditId:e,auditName:t.auditName};Object(l.e)("/haoban-manage3-web/audit/audit",a).then(function(e){var a=e.data;if(1==a.errorCode)return p.a.showmsg("操作成功","success"),t.approveVisible=!1,t.currentPage=1,t.getTableList(),void t.$forceUpdate();"-888"==a.errorCode&&(t.currentPage=1,t.getTableList()),n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},approveAll:function(){if(!(this.multipleSelection.length?this.multipleSelection.map(function(e){return e.auditId}).join(","):""))return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.dialogVisible=!0},postAllApprove:function(e){var t=this;t.loadBtn=!0;var a={auditIds:e,auditName:t.auditName};Object(l.e)("/haoban-manage3-web/audit/batch-approve",a).then(function(e){var a=e.data;if(t.loadBtn=!1,1==a.errorCode)return t.dialogVisible=!1,t.batchId=a.result.batchId,t.resultText="共"+t.multipleSelection.length+"条审核事项,"+a.result.successCount+"条成功,",t.failCount=a.result.failCount,void(t.resultShow=!0);n.a.errorMsg(a)}).catch(function(e){t.loadBtn=!1,t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={auditName:e.auditName,auditId:e.selectId,auditReason:e.ruleForm.refuseReason};Object(l.a)("/haoban-manage3-web/audit/refuse",t).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){var t=this,a={staffId:e};Object(l.e)("/haoban-manage3-web/get-staff-info",a).then(function(e){var a=e.data;1!=a.errorCode?n.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.oldValue?e.oldValue.split(","):[],afterContent:""!=e.newValue?e.newValue.split(","):[]}},getBrandData:function(){var e=this;Object(l.e)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):a.result&&a.result.length&&(e.brandOptions=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toLogin:function(){var e=this;return new i.a(function(t,a){Object(l.a)("/haoban-manage3-web/get-login-info",{}).then(function(e){var a=e.data;1!=a.errorCode?(n.a.errorMsg(a),t({wxEnterpriseId:""})):t(a.result.wxEnterpriseId)}).catch(function(a){t({wxEnterpriseId:""}),e.$message.error({duration:1e3,message:a.message})})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.filterValue,auditStatus:"0",auditFlag:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};Object(l.a)("/haoban-manage3-web/audit/find-page",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);n.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList(),this.getBrandData()},components:{storeChange:o.a,reviewResultDetail:c,reviewResult:h}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-250",attrs:{maxlength:"50",placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.searchEnterFun(a,e.searchInput);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:e.getTableList},model:{value:e.filterBrand,callback:function(t){e.filterBrand=t},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),e._v(" "),e._l(e.brandOptions,function(e){return a("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})})],2)],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("门店信息变更")]):e._e(),e._v(" "),2==t.row.auditType?a("span",[e._v("导购绑定")]):e._e(),e._v(" "),3==t.row.auditType?a("span",[e._v("导购新增")]):e._e(),e._v(" "),4==t.row.auditType?a("span",[e._v("导购删除")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.commitStaffImg?a("img",{attrs:{src:t.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[e._v(e._s(t.row.commitStaffName||"--"))]),e._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.commitStoreName||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[6!=t.row.changeField?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),6==t.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{maxlength:"50",type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),e._v(" "),a("review-result-detail",{attrs:{batchId:e.batchId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}}),e._v(" "),a("review-result",{attrs:{resultText:e.resultText,failCount:e.failCount,resultShow:e.resultShow},on:{showResultDetail:e.showResultDetail,hideResultDialog:e.hideResultDialog}}),e._v(" "),a("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("span",[e._v("共"+e._s(e.multipleSelection.length)+"条审核事项,是否批量同意?")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){e.postAllApprove(e.multipleSelection.map(function(e){return e.auditId}).join(","))}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var b=a("VU/8")(v,m,!1,function(e){a("i6BL")},"data-v-9b84afc2",null);t.default=b.exports}});
\ No newline at end of file
webpackJsonp([16],{"7/Zw":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),o=a("mOmb"),n=a("Ggl+"),l=a("Ch4/"),i=a("P9l9"),c=a("PI0u"),d={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,selectCoupCardId:this.coupCardId||"",tableData:[],currentPage:1,pageSize:6,total:0}},methods:{handleClose:function(e){this.$emit("closeCard")},toConfirm:function(){var e=this,t={};e.tableData.forEach(function(a){a.coupCardId==e.selectCoupCardId&&(t=a)}),e.$emit("returnId",e.selectCoupCardId,t)},toCancel:function(){this.$emit("closeCard")},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={cardName:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(i.a)("/haoban-app-customer-web/cardCoupon/find-select-card-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.getTableList()},coupCardId:function(e,t){e&&(this.selectCoupCardId=e)}},mounted:function(){this.selectCoupCardId=this.coupCardId,this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"卡券选择",visible:e.dialogVisible,width:"994px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"search-div",staticStyle:{marginTop:"10px"}},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:1==t.row.selected,label:t.row.coupCardId},model:{value:e.selectCoupCardId,callback:function(t){e.selectCoupCardId=t},expression:"selectCoupCardId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(){return[a("span",{staticStyle:{width:"69px",display:"inline-block","line-height":"18px"}},[e._v("卡券模板投放期限")])]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.putEffectDateString||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(){return[a("span",{staticStyle:{width:"69px",display:"inline-block","line-height":"18px"}},[e._v("用户使用有效期")])]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.effectDateString||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cardLimit",label:"领取限制","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"适用门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.storeMode?"所有门店":1==t.row.storeMode?"部分分组":"部分门店")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"couponStock",label:"库存","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"getedQuantity",label:"领取次数","show-overflow-tooltip":""}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","page-sizes":[6],"current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer m-b-20",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toConfirm}},[e._v("确认")])],1)])},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("VotK")},"data-v-1a454b68",null).exports,g={name:"gic-select-tag",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,storeVisible:!1,tags:[],dailyRuleForm:{tags:[]},selectTags:[]}},methods:{handleStoresChange:function(e){var t=[];this.tags.forEach(function(a){e.includes(a.tagId)&&t.push(a)}),this.selectTags=JSON.parse(r()(t)),this.$emit("returnTags",this.selectTags)},delDepart:function(e,t){t.splice(e,1),this.$emit("returnTags",this.selectTags)},getTagsData:function(){var e=this,t={gicEnterpriseId:e.brandId};Object(i.a)("/haoban-app-customer-web/cardCoupon/find-store-tag-list",t).then(function(t){var a=t.data;1!=a.errorCode?l.a.errorMsg(a):e.tags=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e){e&&(this.dailyRuleForm.tags=[],this.selectTags=[],this.tags=[],this.getTagsData())},selectData:function(e,t){e.length?(this.selectTags=JSON.parse(r()(e)),this.dailyRuleForm.tags=e.map(function(e){return e.tagId})):(this.dailyRuleForm.tags=[],this.selectTags=[])}},mounted:function(){this.brandId&&(this.tags=[],this.getTagsData()),this.selectData.length?(this.selectTags=JSON.parse(r()(this.selectData)),this.dailyRuleForm.tags=this.selectData.map(function(e){return e.tagId})):(this.dailyRuleForm.tags=[],this.selectTags=[])}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.tags,callback:function(t){e.$set(e.dailyRuleForm,"tags",t)},expression:"dailyRuleForm.tags"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.tags,function(t){return a("li",{key:t.tagId,staticClass:"el-select-dropdown__item"},[a("el-checkbox",{attrs:{label:t.tagId}},[e._v(e._s(t.tagName))])],1)}),e._v(" "),e.tags.length?e._e():a("li",{staticClass:"text-center el-select-dropdown__item"},[a("span",[e._v("暂无门店标签")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block ",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",style:{width:e.width}},[e.dailyRuleForm.tags.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择门店标签")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.selectTags,function(t,s){return[a("span",{key:s+"tag",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.tagName))]),e._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delDepart(s,e.selectTags)}}})])]})],2)])])])])])},staticRenderFns:[]};var m=a("VU/8")(g,h,!1,function(e){a("oGVA")},"data-v-946e8d32",null).exports,f=a("3E4D"),v={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{selectCard:p,gicSelectGroup:n.a,gicSelectStore:o.a,gicSelectTag:m},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",selectCoupCard:{},loadingPage:!0,formData:{id:"",coupCardId:this.$route.query.coupCardId?this.$route.query.coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",receiveTimes:0,totalSendTimes:0},rules:{coupCardId:[{required:!0,message:"请选择卡券",trigger:"change"}],sendRange:[{validator:function(t,a,s){return""==a?s(new Error("请选择发送范围")):"1"!=a&&"2"!=a||e.formData.selectList.length?void s():s(new Error("请选择发送范围"))},trigger:"change"}],sendType:[{validator:function(t,a,s){return""==a?s(new Error("请选择券发放总数")):"1"!=a||e.formData.totalSendTimes?void s():s(new Error("请选择券发放总数"))},trigger:"change"}],eachSendTimes:[{required:!0,message:"请输入券发放张数",trigger:"blur"}]},cardSelectShow:!1,addTag:!0,loadingBtn:!1}},methods:{returnTags:function(e){this.formData.selectList=JSON.parse(r()(e))},returnStores:function(e){this.formData.selectList=JSON.parse(r()(e))},checkGroupIds:function(e){this.formData.selectList=JSON.parse(r()(e))},showCard:function(){this.cardSelectShow=!0},closeCard:function(){this.cardSelectShow=!1},returnId:function(e,t){this.formData.coupCardId=e,this.selectCoupCard=t,this.cardSelectShow=!1,this.$refs.ruleForm.validate(function(e){if(e)return!1})},submitForm:Object(c.a)(function(e,t){var a=this;return!!("1"!=a.formData.sendRange&&"2"!=a.formData.sendRange&&"3"!=a.formData.sendRange||a.formData.selectList.length)&&(!("1"==a.formData.sendType&&!a.formData.totalSendTimes)&&(a.loadingBtn=!0,void a.$refs[e].validate(function(e){e?a.postSaveCard(t):a.loadingBtn=!1})))},300),postSaveCard:function(e){var t=this,a="";1==t.formData.sendRange?a=t.formData.selectList.map(function(e){return e.storeGroupId}).join(","):2==t.formData.sendRange?a=t.formData.selectList.join(","):3==t.formData.sendRange&&(a=t.formData.selectList.map(function(e){return e.tagId}).join(","));var s={id:t.formData.id,coupCardId:t.formData.coupCardId,sendRange:t.formData.sendRange,selectList:a,receiveTimes:this.formData.receiveTimes,totalSendTimes:t.formData.totalSendTimes,gicEnterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};Object(i.e)(t.$route.query.coupCardId&&!t.addTag?"/haoban-app-customer-web/cardCoupon/edit-card-coup":"/haoban-app-customer-web/cardCoupon/add-card-coup",s).then(function(a){var s=a.data;t.loadingBtn=!1,1==s.errorCode&&(f.a.showmsg(t.$route.query.coupCardId?"编辑卡券成功":"新建卡券成功","success"),e?(t.addTag=!0,t.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},t.selectCoupCard={}):t.$router.push("/cardList")),l.a.errorMsg(s)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/onlineChatSet?activeTab="+e.$route.query.activeTab+"&appIcon="+e.$route.query.appIcon)}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this;e.loadingPage=!0;var t={coupCardId:e.$route.query.coupCardId,gicEnterpriseId:e.brandId};Object(i.a)("/haoban-app-customer-web/cardCoupon/find-card-coup-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.detail?(a.result.list&&a.result.list.forEach(function(e){e.label=e.name,e.departmentId=e.id,e.storeGroupId=e.id,e.storeGroupName=e.name,e.departmentName=e.name,2==a.result.detail.sendRange&&(e.storeId=e.id),3==a.result.detail.sendRange&&(e.tagName=e.name,e.tagId=e.id)}),e.selectCoupCard=a.result.gicDetail,e.formData={id:a.result.detail.id,coupCardId:a.result.detail.coupCardId,sendRange:String(a.result.detail.sendRange),selectList:0!=a.result.detail.sendRange?2==a.result.detail.sendRange?a.result.list.map(function(e){return e.id}):a.result.list:[],eachSendTimes:a.result.detail.eachSendTimes,sendType:String(a.result.detail.sendType),totalSendTimes:a.result.detail.totalSendTimes,receiveTimes:a.result.detail.receiveTimes},e.loadingPage=!1,!1):(e.loadingPage=!1,e.addTag=!1,f.a.showmsg("请先保存上一个商户的设置内容","warning"),!1);100013==a.errorCode&&(e.formData.coupCardId="",e.addTag=!0),e.loadingPage=!1,l.a.errorMsg(a)}).catch(function(t){e.loadingPage=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){if(e&&this.$route.query.coupCardId&&(this.addTag=!1),e&&this.$route.query.coupCardId&&!this.addTag)return this.activeBrand=e,this.getCardData(),!1;e&&(this.addTag=!0,this.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},this.selectCoupCard={})},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.activeBrand=this.brandId,this.$route.query.coupCardId&&this.brandId?(this.$emit("showTab","1","11"),this.addTag=!1,this.getCardData()):(this.$emit("showTab","1","12"),this.loadingPage=!1)}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPage,expression:"loadingPage"}],staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择卡券",prop:"coupCardId"}},[e.formData.coupCardId?a("div",{staticClass:"selected-card-body flex"},[a("div",{staticClass:"selected-card font-14 color-909399"},[e._v(e._s(e.selectCoupCard.cardName)+" | "+e._s(e.selectCoupCard.effectDateString)+" | 限制"+e._s(e.selectCoupCard.cardLimit)+"张/人 | 适用门店:"+e._s(0==e.selectCoupCard.storeMode?"所有门店":1==e.selectCoupCard.storeMode?"部分分组":"部分门店")+" | 库存:"+e._s(e.selectCoupCard.couponStock))]),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:e.showCard}},[e._v("重新选择")])],1):a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCard}},[a("span",{staticClass:"el-icon-plus font-12 color-909399"}),a("span",{staticClass:"font-14 color-909399 p-l-8"},[e._v("添加卡券")])])]),e._v(" "),a("el-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"当导购将此卡券送给客户后,此领券页面总共可被领取的次数。比如限制此卡券的领券页面仅1次,则客户成功领取后,即使其将此领券页面转发分享给其他好友,也不可再被领取,因为此领券页面只能被领取一次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("领券页面可被领取次数")])])],1),e._v(" "),a("el-radio-group",{model:{value:e.formData.receiveTimes,callback:function(t){e.$set(e.formData,"receiveTimes",t)},expression:"formData.receiveTimes"}},[a("el-radio",{attrs:{label:0}},[e._v("固定1次")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("不限次数")])],1)],1),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分分组")]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.formData.selectList},on:{checkGroupIds:e.checkGroupIds}})],1):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",staticStyle:{"margin-left":"38px"},attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分门店")]),e._v(" "),2==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-store",{attrs:{brandId:e.brandId,selectData:e.formData.selectList},on:{returnStores:e.returnStores}})],1):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",staticStyle:{"margin-left":"38px"},attrs:{label:"3"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("门店标签")]),e._v(" "),3==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-tag",{attrs:{brandId:e.brandId,selectData:e.formData.selectList},on:{returnTags:e.returnTags}})],1):e._e(),e._v(" "),"1"!=e.formData.sendRange&&"2"!=e.formData.sendRange&&"3"!=e.formData.sendRange||e.formData.selectList.length?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择发送范围")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.coupCardId&&!e.addTag?"编辑":"新建"))]),e._v(" "),e.$route.query.coupCardId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),e.cardSelectShow?a("select-card",{attrs:{coupCardId:e.formData.coupCardId,brandId:e.brandId},on:{closeCard:e.closeCard,returnId:e.returnId}}):e._e()],1)},staticRenderFns:[]};var C=a("VU/8")(v,b,!1,function(e){a("F2gJ")},"data-v-23e184d8",null);t.default=C.exports},F2gJ:function(e,t){},VotK:function(e,t){},"XD/l":function(e,t){},mOmb:function(e,t,a){"use strict";var s=a("mvHQ"),r=a.n(s),o=a("P9l9"),n=a("Ch4/"),l=a("PI0u"),i={name:"gic-select-store",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1,this.$emit("returnStores",this.dailyRuleForm.stores)},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length,this.$emit("returnStores",this.dailyRuleForm.stores)},toInput:Object(l.a)(function(e,t){""!=this.searchSelect&&(this.stores=[],this.pageNum=1,this.getStoreData())},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=[],this.pageNum=1,this.getStoreData()},getStoreData:function(){var e=this,t={searchName:e.searchSelect,gicEnterpriseId:e.brandId,pageNum:e.pageNum,pageSize:e.pageSize};Object(o.a)("/haoban-app-customer-web/cardCoupon/get-store-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.select=!1,e.selectData.includes(t.storeId)&&(t.select=!0)}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.result))||[],e.storesCopy=JSON.parse(r()(a.result.result))||[]):a.result.result.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.totalCount&&(e.pageNum++,e.$nextTick(function(){e.getStoreData()})));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e){e&&(this.checkAll=!1,this.isIndeterminate=!1,this.stores=[],this.storesCopy=[],this.searchSelect="",this.getStoreData())},selectData:function(e,t){e.length?this.dailyRuleForm.stores=JSON.parse(r()(e)):this.dailyRuleForm.stores=[]}},mounted:function(){this.brandId&&(this.stores=[],this.storesCopy=[],this.getStoreData()),this.selectData.length?this.dailyRuleForm.stores=JSON.parse(r()(this.selectData)):this.dailyRuleForm.stores=[]}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num cursor-pointer w-250",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])},staticRenderFns:[]};var d=a("VU/8")(i,c,!1,function(e){a("XD/l")},"data-v-63c37596",null);t.a=d.exports},oGVA:function(e,t){}});
\ No newline at end of file
webpackJsonp([17],{"XD/l":function(e,t){},aGSg:function(e,t){},cXH0:function(e,t){},f5kF:function(e,t){},mOmb:function(e,t,a){"use strict";var r=a("mvHQ"),s=a.n(r),n=a("P9l9"),o=a("Ch4/"),i=a("PI0u"),l={name:"gic-select-store",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1,this.$emit("returnStores",this.dailyRuleForm.stores)},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length,this.$emit("returnStores",this.dailyRuleForm.stores)},toInput:Object(i.a)(function(e,t){""!=this.searchSelect&&(this.stores=[],this.pageNum=1,this.getStoreData())},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=[],this.pageNum=1,this.getStoreData()},getStoreData:function(){var e=this,t={searchName:e.searchSelect,gicEnterpriseId:e.brandId,pageNum:e.pageNum,pageSize:e.pageSize};Object(n.a)("/haoban-app-customer-web/cardCoupon/get-store-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.select=!1,e.selectData.includes(t.storeId)&&(t.select=!0)}),1==e.pageNum?(e.stores=JSON.parse(s()(a.result.result))||[],e.storesCopy=JSON.parse(s()(a.result.result))||[]):a.result.result.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.totalCount&&(e.pageNum++,e.$nextTick(function(){e.getStoreData()})));o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e){e&&(this.checkAll=!1,this.isIndeterminate=!1,this.stores=[],this.storesCopy=[],this.searchSelect="",this.getStoreData())},selectData:function(e,t){e.length?this.dailyRuleForm.stores=JSON.parse(s()(e)):this.dailyRuleForm.stores=[]}},mounted:function(){this.brandId&&(this.stores=[],this.storesCopy=[],this.getStoreData()),this.selectData.length?this.dailyRuleForm.stores=JSON.parse(s()(this.selectData)):this.dailyRuleForm.stores=[]}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num cursor-pointer w-250",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])},staticRenderFns:[]};var u=a("VU/8")(l,c,!1,function(e){a("XD/l")},"data-v-63c37596",null);t.a=u.exports},z3jf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),s=a.n(r),n=a("mOmb"),o=a("Xxa5"),i=a.n(o),l=a("exGp"),c=a.n(l),u=a("P9l9"),d=a("Ch4/"),p=a("PI0u"),h={name:"gic-select-group",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,searchSelect:"",departmentVisible:!1,groupIds:[],groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"},checkedKeys:this.selectData.length?this.selectData.map(function(e){return e.departmentId}):[]}},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},loadNode:function(e,t){var a=this;return c()(i.a.mark(function r(){var s;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(s=a,0!==e.level){r.next=5;break}return r.abrupt("return",t(s.getGroup()));case 5:return r.next=7,s.getGroup(e,e.data,t);case 7:case"end":return r.stop()}},r,a)}))()},toInput:Object(p.a)(function(e,t){if(!this.groupDataCopy.length)return!1},500),clearSearch:function(){this.groupData=JSON.parse(s()(this.groupDataCopy))},delDepart:function(e,t){t.splice(e,1);var a=t.map(function(e){return e.storeGroupId});this.setCheckedKeys(a)},checkGroup:function(e){this.groupIds=this.$refs.groupTree.getCheckedNodes(),this.$emit("checkGroupIds",this.$refs.groupTree.getCheckedNodes())},setCheckedKeys:function(e){this.$refs.groupTree.setCheckedKeys(e),this.$emit("checkGroupIds",this.$refs.groupTree.getCheckedNodes())},handleSort:function(e){var t=this;return c()(i.a.mark(function a(){var r,s;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:r=t,s=0;case 2:if(!(s<e.children.length)){a.next=10;break}if(e.children.sort(function(e,t){return e.storeGroupSort-t.storeGroupSort}),!e.children[s].length){a.next=7;break}return a.next=7,r.handleSort(e.children[s]);case 7:s++,a.next=2;break;case 10:case"end":return a.stop()}},a,t)}))()},treeData:function(e){var t=this;return c()(i.a.mark(function a(){var r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(r=e.filter(function(t){var a=e.filter(function(e){return t.storeGroupId==e.parentGroupId});return a.length>0&&(t.children=a),0==t.parentGroupId})).length&&r.sort(function(e,t){return e.storeGroupSort-t.storeGroupSort}),r.forEach(function(e,t){e.children&&e.children.length&&e.children.sort(function(e,t){return e.storeGroupSort-t.storeGroupSort})}),t.abrupt("return",r);case 4:case"end":return t.stop()}},a,t)}))()},getGroup:function(){var e=this;return c()(i.a.mark(function t(){var a,r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r={enterpriseId:(a=e).brandId},Object(u.a)("/haoban-manage3-web/gic-department-list",r).then(function(){var t=c()(i.a.mark(function t(r){var n,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(1!=(n=r.data).errorCode){e.next=10;break}if(!n.result||!n.result.length){e.next=9;break}return n.result.forEach(function(e){e.label=e.storeGroupName,e.departmentName=e.storeGroupName}),e.next=6,a.treeData(n.result);case 6:o=e.sent,a.$nextTick(function(){a.groupData=JSON.parse(s()(o))||[],a.groupDataCopy=JSON.parse(s()(a.groupData))||[]}),a.$forceUpdate();case 9:return e.abrupt("return");case 10:d.a.errorMsg(n);case 11:case"end":return e.stop()}},t,e)}));return function(e){return t.apply(this,arguments)}}()).catch(function(e){a.$message.error({duration:1e3,message:e.message})});case 3:case"end":return t.stop()}},t,e)}))()}},watch:{selectData:function(e,t){e.length?this.groupIds=e:this.groupIds=[]},searchSelect:function(e){this.$refs.groupTree.filter(e)},brandId:function(e){e&&(this.searchSelect="",this.groupIds=[],this.groupData=[],this.groupDataCopy=[],this.getGroup())}},mounted:function(){this.selectData.length?this.groupIds=this.selectData:this.groupIds=[],this.getGroup()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{staticStyle:{"min-width":"357px"},attrs:{placement:"bottom"},model:{value:e.departmentVisible,callback:function(t){e.departmentVisible=t},expression:"departmentVisible"}},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入内容",maxlength:"50"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"select-tree-wrap m-t-10"},[a("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,clearable:"",data:e.groupData,"default-checked-keys":e.checkedKeys,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,s=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont-hb3",1==s.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==s.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(r.label))])])}}])})],1),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block ",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",style:{width:e.width}},[e.groupIds.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择门店分组")]),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.groupIds,function(t,r){return[a("span",{key:r,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.departmentName))])])]})],2)])])])])])},staticRenderFns:[]};var g=a("VU/8")(h,f,!1,function(e){a("f5kF")},"data-v-7ba09912",null).exports,m=a("3E4D"),b={props:{brandId:{type:String,default:function(){return""}},setStoreShow:{type:Boolean,default:function(){return!1}},editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{gicSelectGroupMult:g,gicSelectStore:n.a},data:function(){return{editPersion:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",wxEnterpriseRelatedId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,dialogVisible:this.setStoreShow,formData:{sendRange:"1",selectList:[]},loadingBtn:!1}},methods:{changeRange:function(e){this.formData.selectList=[]},returnStores:function(e){this.formData.selectList=JSON.parse(s()(e))},checkGroupIds:function(e){this.formData.selectList=JSON.parse(s()(e))},toCancel:function(){this.$emit("closeStore")},handleClose:function(e){this.$emit("closeStore")},submitForm:Object(p.a)(function(e){if(("2"==this.formData.sendRange||"3"==this.formData.sendRange)&&!this.formData.selectList.length)return!1;this.loadingBtn=!0,this.postSave()},300),postSave:function(){var e=this,t={enterpriseId:e.brandId,templateId:e.$route.query.templateId,selectType:e.formData.sendRange,groupIds:2==e.formData.sendRange?e.formData.selectList.map(function(e){return e.storeGroupId}).join(","):"",storeIds:3==e.formData.sendRange?e.formData.selectList.join(","):""};Object(u.e)("/haoban-app-customer-web/save-template-store",t).then(function(t){var a=t.data;e.loadingBtn=!1,1==a.errorCode?(m.a.showmsg("操作成功","success"),e.$emit("submitStore")):d.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{setStoreShow:function(e){this.dialogVisible=e}},mounted:function(){this.dialogVisible=this.setStoreShow}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:(e.editRow.templateId,"可见范围"),visible:e.dialogVisible,width:"873px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"100px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 选择范围\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"100px"}},[a("el-radio",{attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分分组")]),e._v(" "),2==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-group-mult",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.formData.selectList},on:{checkGroupIds:e.checkGroupIds}})],1):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"3"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分门店")]),e._v(" "),3==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-store",{attrs:{brandId:e.brandId,selectData:e.formData.selectList},on:{returnStores:e.returnStores}})],1):e._e(),e._v(" "),"2"!=e.formData.sendRange&&"3"!=e.formData.sendRange||e.formData.selectList.length?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择可见范围")])],1)])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var S=a("VU/8")(b,v,!1,function(e){a("aGSg")},"data-v-153b7402",null).exports,_={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",editPerson:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",searchInput:"",tableData:[],activeId:"1",loading:!1,multipleSelection:[],currentPage:1,pageSize:20,total:0,setStoreShow:!1,disableSet:!1}},methods:{toSetStore:function(){this.setStoreShow=!0},closeStore:function(){this.setStoreShow=!1},submitStore:function(){this.setStoreShow=!1,this.currentPage=1,this.getTableList()},toInput:Object(p.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delRow:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,r={storeTemplateRelatedIds:t.storeTemplateRelatedId,enterpriseId:a.activeBrand};Object(u.e)("/haoban-app-customer-web/del-template-store",r).then(function(e){var t=e.data;if(1==t.errorCode)return m.a.showmsg("删除成功","success"),a.currentPage=1,void a.getTableList();d.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.postMultDel()},postMultDel:function(){var e=this,t={enterpriseId:e.activeBrand,storeTemplateRelatedIds:e.multipleSelection.map(function(e){return e.storeTemplateRelatedId}).join(",")||""};Object(u.e)("/haoban-app-customer-web/del-template-store",t).then(function(t){var a=t.data;if(1==a.errorCode)return m.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={search:t.searchInput,templateId:t.$route.query.templateId,enterpriseId:t.brandId,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.e)("/haoban-app-customer-web/get-template-store-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],t.total=a.result.totalCount,t.disableSet=!1,void(t.$route.query.brandId!=t.brandId&&(t.tableData=[],t.total=0,t.disableSet=!0));d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.getTableList(this.brandId)}},mounted:function(){this.$emit("showTab","12"),sessionStorage.setItem("memberGroupSet","second"),this.brandId&&this.getTableList(this.brandId)},components:{setVisiable:S}},I={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-369",attrs:{placeholder:"搜索门店名称或代码",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:e.disableSet,type:"primary"},on:{click:e.toSetStore}},[e._v("新增门店")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量移除")])],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"no-empty-icon-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeCode||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeGroupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delRow(t.$index,t.row)}}},[e._v("移除")])]}}])}),e._v(" "),a("template",{slot:"empty"},[a("div",[a("span",[e._v("暂无门店分组,")]),a("el-button",{attrs:{disabled:e.disableSet,type:"text"},on:{click:function(t){return e.toSetStore()}}},[e._v("去设置")])],1)])],2),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),0==e.tableData.length?a("div",{staticClass:"text-center table-set-line"},[a("span",{staticClass:"font-14 color-606266"},[e._v("暂无门店分组,")]),a("el-button",{attrs:{disabled:e.disableSet,type:"text"},on:{click:function(t){return e.toSetStore()}}},[e._v("去设置")])],1):e._e()],1)]),e._v(" "),a("set-visiable",{attrs:{setStoreShow:e.setStoreShow,brandId:e.brandId},on:{closeStore:e.closeStore,submitStore:e.submitStore}})],1)},staticRenderFns:[]};var y=a("VU/8")(_,I,!1,function(e){a("cXH0")},"data-v-bb281ac4",null);t.default=y.exports}});
\ No newline at end of file
webpackJsonp([18],{"+kZ0":function(e,t,a){"use strict";var n=a("3Xzz"),o=a("Qs+A"),r=a("P9l9"),s=a("Ch4/"),i={name:"select-card-template",props:{cardTempShow:{type:Boolean,default:function(){return!1}},selectTemp:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[]}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleClose:function(){var e=this;e.$emit("closeTemp"),e.$refs.multipleTable.clearSelection();var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})},submitForm:function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20?(e.$message.error({duration:1e3,message:"最多只能选择20个模板"}),!1):(e.$emit("returnData",e.multipleSelection),void e.$nextTick(function(){var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})})):(e.$message.error({duration:1e3,message:"请选择模板"}),!1)},changeRoute:function(e){this.$router.push(e)},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.b)("/haoban-app-customer-web/inner/list-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this,t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.$refs.multipleTable.clearSelection(),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.multipleSelection.push(a)}),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})}},watch:{cardTempShow:function(e){this.dialogVisible=e},selectTemp:function(e,t){}},mounted:function(){this.dialogVisible=this.cardTempShow,this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"选择模板",visible:e.dialogVisible,width:"700px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},open:e.initData}},[a("div",{},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{height:"450",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName)+"\n ")]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("3FE/")},"data-v-577cbca1",null);t.a=c.exports},"//RF":function(e,t){},"3FE/":function(e,t){},"8Rwt":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("mvHQ"),o=a.n(n),r=a("l46T"),s=a("+kZ0"),i=a("ja1h"),l=a("P9l9"),c=a("3E4D"),p=a("Ch4/"),d=a("PI0u"),m={name:"chat-log",props:{brandId:{type:String,default:function(){return""}}},components:{limitInput:r.a,selectCardTemplate:s.a,selectWxDepart:i.a},data:function(){var e=this;return{activeBrand:this.brandId,activeId:"3",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},cardErr:!1,rules:{policyName:[{required:!0,message:"请输入卡券策略名称",trigger:"blur"}],cardTemplateJson:[{type:"array",required:!0,message:"请至少选择一个卡券模板",trigger:"change"}]},cardSelectShow:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()<Date.now()-864e5}return t.getTime()<Date.now()-864e5}},dateOptions:[],monthOptions:[],inputVisible:!1,inputValue:"",cardTempShow:!1,departShow:!1,loadingBtn:!1}},methods:{showDepartDilog:function(){this.departShow=!0},delDepart:function(e,t){t.splice(e,1)},toInput:function(e){/^[0-9]*$/.test(e.target.value)||(this.formData.sendTimes=1)},changeNoPosition:function(e){if(e&&this.formData.positionNames.length>=50)return this.$message.error({duration:1e3,message:"最多可添加50个职务"}),this.formData.noPosition=!1,!1;e?this.formData.positionNames.push("-1"):this.formData.positionNames.splice(this.formData.positionNames.indexOf("-1"),1)},changeSendType:function(){1==this.formData.sendRange?this.departShow=!0:(this.formData.departmentJson=[],this.departShow=!1)},clickSendType:function(){this.departShow=!0},refreshData:function(e){if(this.departShow=!1,"close"==e)return!1;this.formData.departmentJson=e},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},showCardTemp:function(){this.cardTempShow=!0},returnData:function(e){e.forEach(function(e){e.effectiveType="0",e.dateRange=[],e.sendNumberDay="0",e.effectiveDay="366",e.sendLimit="50000"});var t=e.map(function(e){return e.templateId}),a=[];this.formData.cardTemplateJson.forEach(function(e){t.includes(e.templateId)&&a.push(e)}),e.forEach(function(e){a.forEach(function(t){e.templateId==t.templateId&&(e.effectiveType=t.effectiveType,e.dateRange=t.dateRange,e.sendNumberDay=t.sendNumberDay,e.effectiveDay=t.effectiveDay)})}),this.formData.cardTemplateJson=JSON.parse(o()(e)),this.cardTempShow=!1},closeTemp:function(){this.cardTempShow=!1},handleClose:function(e){this.formData.positionNames.splice(this.formData.positionNames.indexOf(e),1)},showInput:function(){var e=this;if(e.formData.positionNames.length>=50)return e.$message.error({duration:1e3,message:"最多可添加50个职务"}),!1;e.inputVisible=!0,e.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.formData.positionNames.push(e),this.inputVisible=!1,this.inputValue=""},toDelTemp:function(e,t,a){a.splice(e,1)},handleDay:function(){for(var e=[],t=0;t<91;t++)0==t?e.push({label:"当天",value:String(t)}):e.push({label:"第"+t+"天",value:String(t)});this.dateOptions=e,this.monthOptions=[];for(var a=1;a<13;a++)this.monthOptions.push({label:a+"月",value:String(a)})},submitForm:Object(d.a)(function(e,t){var a=this;if(a.formData.validDateRange||(a.formData.validDateRange=[]),!(1!=a.formData.policyExpireDateType||a.formData.validDateRange&&a.formData.validDateRange.length))return a.$message.error({duration:1e3,message:"请先选择固定期限日期"}),!1;if(!a.formData.cardTemplateJson)return!1;var n=!0;return a.formData.cardTemplateJson.forEach(function(e){0!=e.effectiveType||e.dateRange&&e.dateRange.length&&e.dateRange[0]||(e.dateRange=[],n=!1),e.startTimeString=e.dateRange?e.dateRange[0]:"",e.endTimeString=e.dateRange?e.dateRange[1]:""}),n?a.formData.cardTemplateJson.length?(a.cardErr=!1,1!=a.formData.sendRange||a.formData.departmentJson.length?1!=a.formData.sendMonthType||a.formData.sendMonthTimes.length?a.formData.sendTimes?(a.loadingBtn=!0,void a.$refs[e].validate(function(e){e?a.postSaveCard(t):a.loadingBtn=!1})):(a.$message.error({duration:1e3,message:"请先选择策略执行次数"}),!1):(a.$message.error({duration:1e3,message:"请先选择多月循环"}),!1):(a.$message.error({duration:1e3,message:"请先选择发送的部门"}),!1)):(a.cardErr=!0,!1):(a.$message.error({duration:1e3,message:"请先选择模板有效期"}),!1)},1e3),postSaveCard:function(e){var t=this,a={policyId:t.formData.policyId,policyName:t.formData.policyName,cardTemplateJson:o()(t.formData.cardTemplateJson),sendRange:t.formData.sendRange,positionFlag:t.formData.positionFlag?1:0,positionNames:t.formData.positionNames.length?t.formData.positionNames.join(","):"",departmentJson:o()(t.formData.departmentJson),sendMonthType:t.formData.sendMonthType,sendTimes:t.formData.sendTimes,sendMonthTimes:t.formData.sendMonthTimes.length?t.formData.sendMonthTimes.join(","):"",policyExpireDateType:t.formData.policyExpireDateType,startTimeString:t.formData.validDateRange[0],endTimeString:t.formData.validDateRange[1],onlineFlag:t.formData.onlineFlag,wxEnterpriseId:t.wxEnterpriseId};Object(l.g)((t.$route.query.policyId,"/haoban-app-customer-web/inner/save-policy"),a).then(function(a){var n=a.data;t.loadingBtn=!1,1==n.errorCode&&(c.a.showmsg(t.$route.query.policyId?"编辑卡券策略成功":"新建卡券策略成功","success"),e?(t.formData={policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},t.choiceDateCopy=[]):t.$router.push("/cardStrategy")),p.a.errorMsg(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getCardData:function(){var e=this,t={policyId:e.$route.query.policyId,gicEnterpriseId:e.brandId};Object(l.b)("/haoban-app-customer-web/inner/find-policy",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardTemplateRelateds.forEach(function(e){e.sendNumberDay=String(e.sendNumberDay),e.effectiveType=String(e.effectiveType),e.dateRange=[e.startTimeString?e.startTimeString:"",e.endTimeString?e.endTimeString:""]}),e.formData={policyId:a.result.policyId,policyName:a.result.policyName,cardTemplateJson:a.result.cardTemplateRelateds||[],sendRange:String(a.result.sendRange),positionFlag:1==a.result.positionFlag,noPosition:!(!a.result.positionNames.includes("-1")&&!a.result.positionNames.includes(-1)),positionNames:a.result.positionNames?a.result.positionNames.split(","):[],departmentJson:a.result.departmentRelateds||[],sendMonthType:String(a.result.sendMonthType),sendTimes:a.result.sendTimes,sendMonthTimes:a.result.sendMonthTimes.length?a.result.sendMonthTimes.split(","):[],policyExpireDateType:String(a.result.policyExpireDateType),startTimeString:a.result.startTimeString,endTimeString:a.result.endTimeString,onlineFlag:a.result.onlineFlag,validDateRange:[a.result.startTimeString?a.result.startTimeString:"",a.result.endTimeString?a.result.endTimeString:""]},!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.policyId&&(this.activeBrand=e,this.getCardData())}},mounted:function(){var e=this;e.$emit("showTab","2"),e.$nextTick(function(){e.handleDay()}),e.$route.query.policyId&&e.getCardData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"卡券策略名称",prop:"policyName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.policyName,getByType:"word",holder:"请输入卡券策略名称",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"policyName",t)},"update:input-value":function(t){return e.$set(e.formData,"policyName",t)}}})],1),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("卡券选择策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large is-required"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"支持多选,最多可选20个模板",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择卡券模板")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCardTemp}},[a("span",{staticClass:"font-14 color-606266"},[e._v("选择卡券模板")])]),e._v(" "),e.formData.cardTemplateJson.length?a("div",{staticClass:"m-t-20"},[a("el-table",{staticClass:"select-table",style:{width:"100%"},attrs:{"max-height":"450",data:e.formData.cardTemplateJson,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"卡券模板名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期",width:"505"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"w-100",attrs:{placeholder:""},model:{value:t.row.effectiveType,callback:function(a){e.$set(t.row,"effectiveType",a)},expression:"scope.row.effectiveType"}},[a("el-option",{attrs:{label:"固定日期",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"发送后",value:"1"}})],1),0==t.row.effectiveType?a("el-date-picker",{staticClass:"m-l-10 w-300 vertical-middle",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:t.row.dateRange,callback:function(a){e.$set(t.row,"dateRange",a)},expression:"scope.row.dateRange"}}):e._e(),e._v(" "),1==t.row.effectiveType?a("el-select",{staticClass:"w-100 m-l-10",attrs:{placeholder:"请选择"},model:{value:t.row.sendNumberDay,callback:function(a){e.$set(t.row,"sendNumberDay",a)},expression:"scope.row.sendNumberDay"}},e._l(e.dateOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("有效,有效天数")]):e._e(),1==t.row.effectiveType?a("el-input-number",{staticClass:"w-100 m-l-10",attrs:{"controls-position":"right",min:1,max:366},model:{value:t.row.effectiveDay,callback:function(a){e.$set(t.row,"effectiveDay",a)},expression:"scope.row.effectiveDay"}}):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("天")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送总数",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendLimit)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDelTemp(t.$index,t.row,e.formData.cardTemplateJson)}}},[e._v("删除")])]}}])})],1)],1):e._e(),e._v(" "),!e.formData.cardTemplateJson.length&&e.cardErr?a("div",{staticClass:"el-form-item__error"},[e._v("请选择卡券模板")]):e._e()])]),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("执行策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("全企业")]),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[a("span",{on:{click:e.clickSendType}},[e._v("部分部门")])]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap",on:{click:e.showDepartDilog}},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"357px"}},[e.formData.departmentJson.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}}),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.formData.departmentJson,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.departmentName))]),e._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delDepart(n,e.formData.departmentJson)}}})])]})],2)]),e._v(" "),a("div",{staticClass:"count-number font-12 color-909399"},[e._v("已选"+e._s(e.formData.departmentJson.length)+"个部门")])])])]):e._e(),e._v(" "),a("div",{staticClass:"position-select"},[a("div",{staticClass:"position-check"},[a("el-checkbox",{model:{value:e.formData.positionFlag,callback:function(t){e.$set(e.formData,"positionFlag",t)},expression:"formData.positionFlag"}},[e._v("按职务筛选")])],1),e._v(" "),a("div",{staticClass:"position-check-tags"},[a("el-checkbox",{staticClass:" no-position-tag",on:{change:e.changeNoPosition},model:{value:e.formData.noPosition,callback:function(t){e.$set(e.formData,"noPosition",t)},expression:"formData.noPosition"}},[e._v("无职务")]),e._v(" "),e._l(e.formData.positionNames,function(t){return[-1!=t?a("el-tag",{key:t,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")]):e._e()]}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"20","show-word-limit":""},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 添加职务")])],2)])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略执行次数\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{staticStyle:{"margin-right":"0px"},attrs:{label:"0"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每月该策略针对单一成员执行几次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("每月循环")])]),a("el-radio",{staticStyle:{"margin-right":"0px","margin-left":"30px"},attrs:{label:"1"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"第n月发送次数,例如第3,6,9月,每月1次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("多月循环")])]),e._v(" "),0==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("每月")]),a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e(),e._v(" "),1==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),a("el-select",{staticClass:"w-150",attrs:{multiple:"","collapse-tags":"",placeholder:"请选择"},model:{value:e.formData.sendMonthTimes,callback:function(t){e.$set(e.formData,"sendMonthTimes",t)},expression:"formData.sendMonthTimes"}},e._l(e.monthOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-input-number",{staticClass:"m-l-10 w-100",staticStyle:{"vertical-align":"middle"},attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e()],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略有效期\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("长期有效")]),a("el-radio",{attrs:{label:"1"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("固定期限")]),e._v(" "),1==e.formData.policyExpireDateType?a("div",{staticClass:"date-valid"},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.formData.validDateRange,callback:function(t){e.$set(e.formData,"validDateRange",t)},expression:"formData.validDateRange"}})],1):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.policyId?"编辑":"新建"))]),e._v(" "),e.$route.query.policyId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),a("select-card-template",{attrs:{cardTempShow:e.cardTempShow,selectTemp:e.formData.cardTemplateJson},on:{returnData:e.returnData,closeTemp:e.closeTemp}}),e._v(" "),a("select-wx-depart",{attrs:{departShow:e.departShow,departArr:e.formData.departmentJson},on:{refreshData:e.refreshData}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("eHDO")},"data-v-052a5eaa",null);t.default=f.exports},eHDO:function(e,t){},ja1h:function(e,t,a){"use strict";var n=a("mvHQ"),o=a.n(n),r=a("Xxa5"),s=a.n(r),i=a("exGp"),l=a.n(i),c=a("P9l9"),p=a("Ch4/"),d={name:"select-wx-depart",components:{},props:{departShow:{type:Boolean,default:function(){return!1}},departArr:{type:[Object,Array],default:function(){return[]}}},data:function(){return{selDepart:[],groupNodes:[],groupData:[],departVisible:!1,checkedKeys:this.departArr.length?this.departArr.map(function(e){return e.departmentId}):[],defaultProps:{children:"children",label:"departmentName",isLeaf:"isLeaf"},checkList:[]}},methods:{loadNode:function(e,t){var a=this;return l()(s.a.mark(function n(){var o;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=a,0!==e.level){n.next=5;break}return n.abrupt("return",t(o.getGroup()));case 5:return n.next=7,o.getGroup(e,e.data,t);case 7:o.checkedKeys=o.departArr.length?o.departArr.map(function(e){return e.departmentId}):[],o.initData();case 9:case"end":return n.stop()}},n,a)}))()},checkGroup:function(e){this.groupNodes=this.$refs.groupTrees.getCheckedNodes()},toRight:function(){this.selDepart=this.$refs.groupTrees.getCheckedNodes()},toLeft:function(){var e=this,t=[];e.selDepart.forEach(function(a){e.checkList.includes(a.departmentId)||t.push(a)}),e.selDepart=t,e.$refs.groupTrees.setCheckedNodes(e.selDepart)},handleClose:function(e){this.$emit("refreshData","close"),e()},cancel:function(){this.$emit("refreshData","close")},submitForm:function(e){return this.selDepart.length?this.selDepart.length>50?(this.$message.error({duration:1e3,message:"最多可选50个部门"}),!1):void this.$emit("refreshData",this.selDepart):(this.$message.error({duration:1e3,message:"请选择部门"}),!1)},getGroup:function(e,t,a){var n=this,o={parentId:t?t.departmentId:"",isStore:0};if(e&&(!t.hasSonNode||1==t.isStore))return a([]),!1;Object(c.b)("/haoban-manage3-web/department-list-level",o).then(function(o){var r=o.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName,e.isLeaf=!e.hasSonNode}),e?(a(r.result),t.children||n.$set(t,"children",[]),t.children=r.result||[],n.$forceUpdate(),!1):(n.groupData=r.result||[],void n.initData());p.a.errorMsg(r)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this;e.$nextTick(function(){e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},watch:{departShow:function(e){this.departVisible=e},departArr:function(e){var t=this;t.checkedKeys=t.departArr.length?t.departArr.map(function(e){return e.departmentId}):[],e.length?t.selDepart=JSON.parse(o()(e)):t.selDepart=[],t.$nextTick(function(){t.$refs.groupTrees.setCheckedKeys(t.checkedKeys),t.groupNodes=t.$refs.groupTrees.getCheckedNodes()})}},mounted:function(){var e=this;e.departVisible=e.departShow,e.getGroup(),e.departArr.length?e.selDepart=JSON.parse(o()(e.departArr)):e.selDepart=[],e.checkedKeys=e.departArr.length?e.departArr.map(function(e){return e.departmentId}):[],e.$nextTick(function(){e.$refs.groupTrees.setCheckedKeys(e.checkedKeys),e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"选择部门",visible:e.departVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.departVisible=t},open:e.initData}},[a("div",{staticClass:"depart-transfor"},[a("div",{staticClass:"depart-transfor-left"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("组织架构")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"})]),e._v(" "),a("div",{staticClass:"transfor-body"},[a("div",{staticClass:"transfor-body-tree"},[a("el-tree",{ref:"groupTrees",attrs:{data:e.groupData,load:e.loadNode,"default-checked-keys":e.checkedKeys,"node-key":"departmentId","check-strictly":"",lazy:"","show-checkbox":"",props:e.defaultProps},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont-hb3",1==o.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==o.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))])])}}])})],1)])]),e._v(" "),a("div",{staticClass:"depart-transfor-middle"},[a("div",{staticClass:"m-b-10"},[a("el-button",{attrs:{disabled:!e.groupNodes.length,type:"primary",icon:"el-icon-arrow-right"},on:{click:e.toRight}},[e._v("转入")])],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:!e.checkList.length,type:"primary",icon:"el-icon-arrow-left"},on:{click:e.toLeft}},[e._v("移除")])],1)]),e._v(" "),a("div",{staticClass:"depart-transfor-right"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("已选")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v(e._s(e.selDepart.length))])]),e._v(" "),a("div",{staticClass:"select-body"},[a("div",{staticClass:"select-body-list"},[a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("div",e._l(e.selDepart,function(t,n){return a("el-checkbox",{key:n+"sel",attrs:{label:t.departmentId}},[e._v(e._s(t.departmentName))])}),1)])],1)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("partForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(d,m,!1,function(e){a("//RF")},"data-v-c91f9458",null);t.a=u.exports}});
\ No newline at end of file
webpackJsonp([19],{"/AWl":function(e,t,i){e.exports=i.p+"static/img/iphone2.9c01f03.png"},NPdk:function(e,t){},NuXF:function(e,t,i){"use strict";var a=i("Ch4/"),c=i("P9l9"),o={name:"mult-upload",props:{imgList:{type:Array,default:function(){return[]}},limit:{type:Number,default:30}},data:function(){return{imgShowFlag:!1}},computed:{disabled:function(){return this.imgList.length>=this.limit}},methods:{handleRequest:function(e){var t=this,i=e.file,o=new FormData;o.append("file",i),Object(c.d)("/haoban-manage3-web/upload-file?fileType=jpg",o).then(function(e){var i=e.data;1==i.errorCode?(t.imgList.length<t.limit?t.imgList.push({uid:i.result.key,url:i.result.url,mediaName:i.result.mediaName}):t.$message.error("一次性上传仅支持"+t.limit+"张图片"),t.$emit("update:imgList",t.imgList)):a.a.errorMsg(i)})},beforeUpload:function(e){var t="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type,i=e.size/1024/1024<2;return t||this.$message.error("上传图片支持png、jpg、jpeg格式!"),i||this.$message.error("上传图片大小不能超过2MB!"),t&&i},handlePreview:function(e){this.imgShowFlag=!0,this.imgUrl=e},handleRemove:function(e){var t=this.imgList.filter(function(t){return t.url!=e});this.$emit("update:imgList",t)},hideImage:function(e){this.imgShowFlag=e,this.imgUrl=""}}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n "+e._s(e.limit>1?"图片支持png、jpg、jpeg格式,大小不超过2M,一次性最多上传"+e.limit+"张":"")+"\n ")]),e._v(" "),i("div",{staticClass:"single-upload-wrap"},[i("div",{staticClass:"imageList"},[i("el-upload",{directives:[{name:"show",rawName:"v-show",value:!e.disabled,expression:"!disabled"}],staticClass:"avatar-uploader",attrs:{multiple:e.limit>1,"file-list":e.imgList,"show-file-list":!1,"http-request":e.handleRequest,"before-upload":e.beforeUpload}},[e.videoSrc?e._e():i("div",{staticClass:"flex-column"},[i("i",{staticClass:"iconfont-hb3 iconPlusOutlined avatar-uploader-icon"})])]),e._v(" "),i("p",{staticClass:"upload-tip color-909399 font-12 pos-bottom"},[e._v("\n "+e._s(e.limit>1?"":"图片为jpg、png格式,且不超过2M,最多上传1张图片")+"\n ")]),e._v(" "),e._l(e.imgList,function(t){return i("div",{key:t,staticClass:"imageBox"},[i("img",{staticClass:"image",attrs:{src:t.url}}),e._v(" "),i("div",{staticClass:"imageMask"},[i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(i){return e.handleRemove(t.url)}}},[i("i",{staticClass:"el-icon-error"})])])])})],2),e._v(" "),i("vue-gic-img-preview",{attrs:{imgUrl:e.imgUrl,imgShowFlag:e.imgShowFlag},on:{hideImage:e.hideImage}})],1)])},staticRenderFns:[]};var d=i("VU/8")(o,l,!1,function(e){i("an/Q")},"data-v-57e535d0",null);t.a=d.exports},ZEMu:function(e,t,i){"use strict";i.d(t,"a",function(){return a});var a=[{imgUrl:"https://pic01-10001430.image.myqcloud.com/b0d3c14f-69e7-4753-8fbc-3bffcff9f8ce",gifUrl:"https://pic01-10001430.image.myqcloud.com/204994d9-48d8-4bfe-bfbd-e8168d444965",key:"[微笑]",keyCode:"/::)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a5f7c1eb-358e-47fe-a43c-7ae1ba5e95fd",gifUrl:"https://pic01-10001430.image.myqcloud.com/87bbdce9-82e4-4fb0-8d6c-b867ccf7e058",key:"[撇嘴]",keyCode:"/::~"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/32201a50-e937-4594-bfb2-68dc674d29a1",gifUrl:"https://pic01-10001430.image.myqcloud.com/df55c677-7adb-48f2-bf65-6cf592eccf80",key:"[色]",keyCode:"/::B"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/674f2eea-85fd-4735-9ae5-416aef938857",gifUrl:"https://pic01-10001430.image.myqcloud.com/c44c6034-c191-4526-ac80-c5f7f0fbcf5f",key:"[发呆]",keyCode:"/::|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a52e4031-51e6-47c4-9a7d-4aa36902e868",gifUrl:"https://pic01-10001430.image.myqcloud.com/684dcfac-a95f-49fc-8d9d-8d3627f4a26e",key:"[得意]",keyCode:"/:8-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d5d3c311-30a7-46d4-bd6b-e09e9e270eb8",gifUrl:"https://pic01-10001430.image.myqcloud.com/3f17d82f-beb6-4e0f-be8b-72c571558438",key:"[流泪]",keyCode:"/::<"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/014fb90d-db81-4a6d-b89d-6edc21825c57",gifUrl:"https://pic01-10001430.image.myqcloud.com/6ce13f11-6c26-4e5a-b3b1-f47151b61e30",key:"[害羞]",keyCode:"/::$"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fecaa108-f9ee-4871-88f8-04fe9dd006c4",gifUrl:"https://pic01-10001430.image.myqcloud.com/0fe29af4-bddc-46c2-a063-f8d8e4414d13",key:"[闭嘴]",keyCode:"/::X"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/61373735-d6a4-42ec-beb8-f2ad3a4204ae",gifUrl:"https://pic01-10001430.image.myqcloud.com/9fa3a5f6-3814-46df-a85c-e27711b41c45",key:"[睡]",keyCode:"/::Z"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/5e18d40c-00fe-4fa8-94bb-fc5879b601db",gifUrl:"https://pic01-10001430.image.myqcloud.com/87d28ce0-72d2-44ab-a5b9-899ca92737c3",key:"[大哭]",keyCode:"/::'("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/9956bdde-87e2-4377-a77d-2d7a6510dcca",gifUrl:"https://pic01-10001430.image.myqcloud.com/28d4443a-ae59-459b-8fa0-c5d236a84208",key:"[尴尬]",keyCode:"/::-|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a36b8868-369d-4022-be38-e71970b4b0ed",gifUrl:"https://pic01-10001430.image.myqcloud.com/a3db89ce-6b1a-44e9-a276-8284dfba6fec",key:"[发怒]",keyCode:"/::@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2b46750b-e399-41fa-88da-cef0705adb68",gifUrl:"https://pic01-10001430.image.myqcloud.com/a340191e-00f0-4aed-9c4b-5084c9d48a3f",key:"[调皮]",keyCode:"/::P"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f3d140d2-3490-4d12-a16f-5786c50e92e6",gifUrl:"https://pic01-10001430.image.myqcloud.com/3741398d-ac5e-4ca4-aff2-7072d4f3e809",key:"[呲牙]",keyCode:"/::D"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d54d58f6-a89a-4a70-9e7a-834ba728e5cb",gifUrl:"https://pic01-10001430.image.myqcloud.com/62bb88d4-a38b-4d0a-943b-854e35f4216d",key:"[惊讶]",keyCode:"/::O"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ceb0633a-3610-48dc-a4da-79b74d91c5a3",gifUrl:"https://pic01-10001430.image.myqcloud.com/a9f355d2-89d5-41c3-96c9-53e6c1893ce8",key:"[难过]",keyCode:"/::("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7ae8e3ea-864f-4864-ba73-fbc731fe5e43",gifUrl:"https://pic01-10001430.image.myqcloud.com/75533bd8-4d96-4d14-a28e-18f01141fd53",key:"[酷]",keyCode:"/::+"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/1ad076a0-a052-4cc5-bd1b-d46bdaf25928",gifUrl:"https://pic01-10001430.image.myqcloud.com/b551bd90-8f9c-49d4-a73f-05852da72e4e",key:"[冷汗]",keyCode:"/:--b"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/756eb481-d965-4b09-abe6-5ea2f7d460db",gifUrl:"https://pic01-10001430.image.myqcloud.com/9a9f6be6-6c9f-496e-8f40-cdd56670b1cb",key:"[抓狂]",keyCode:"/::Q"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/56107e91-303c-4d4c-bbc2-6a6ace586777",gifUrl:"https://pic01-10001430.image.myqcloud.com/70b702b8-b1f2-4071-8fa1-01b4bac8c8cb",key:"[吐]",keyCode:"/::T"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/363eb785-69a9-4f18-8e45-cb069bb12c4c",gifUrl:"https://pic01-10001430.image.myqcloud.com/fc61ddbf-a962-4043-a5cc-cb7a8a4edbcc",key:"[偷笑]",keyCode:"/:,@P"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/888ee4dc-0274-4c3d-bb84-e3ba943ff86f",gifUrl:"https://pic01-10001430.image.myqcloud.com/223e7c88-5ffa-4392-a4b1-e5785bf59e19",key:"[愉快]",keyCode:"/:,@-D"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a5a391da-659b-48ab-8007-a8888f98ec66",gifUrl:"https://pic01-10001430.image.myqcloud.com/8fb34158-562b-4710-ae93-47b64174bdbf",key:"[白眼]",keyCode:"/::d"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f3c70943-f4a2-4e15-a9fb-f8f840878a6a",gifUrl:"https://pic01-10001430.image.myqcloud.com/8a0a3dcb-ea02-4c9d-9fb8-3cd72378da19",key:"[傲慢]",keyCode:"/:,@o"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c7b25d7c-abc6-4547-803b-19dc45fd5be2",gifUrl:"https://pic01-10001430.image.myqcloud.com/2428fcba-8a72-40d6-b847-6f7034f7e9d5",key:"[饥饿]",keyCode:"/::g"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c6e9be34-b576-477d-a757-7d5593019552",gifUrl:"https://pic01-10001430.image.myqcloud.com/45cddb56-4a94-4cfb-aea3-02ea14fd5093",key:"[困]",keyCode:"/:|-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/015bfb53-443a-4b5c-82f6-960b9d0acedd",gifUrl:"https://pic01-10001430.image.myqcloud.com/1455635c-6cb0-470c-ae27-6602f76af048",key:"[惊恐]",keyCode:"/::!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d2569652-651e-4f8a-8052-d8f471af1a4d",gifUrl:"https://pic01-10001430.image.myqcloud.com/c90c340f-39ab-4d34-a301-8aed680e79dd",key:"[流汗]",keyCode:"/::L"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/27f447a5-555d-49c0-b04d-7da098e372f6",gifUrl:"https://pic01-10001430.image.myqcloud.com/e2bf7e8a-3218-44e7-a42e-b18c4fd32411",key:"[憨笑]",keyCode:"/::>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8f139cf5-49f7-4bfa-9ab9-d6f23782684e",gifUrl:"https://pic01-10001430.image.myqcloud.com/ee4249c0-d355-40d0-9c68-1187e88e68d8",key:"[悠闲]",keyCode:"/::,@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/688b20ba-ce01-4369-934f-2062a5b57643",gifUrl:"https://pic01-10001430.image.myqcloud.com/386a5629-aec9-4840-a2cb-dfb8bdbf237d",key:"[奋斗]",keyCode:"/:,@f"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/e05cd4b5-e5cb-4374-80d9-8c09702ce7f5",gifUrl:"https://pic01-10001430.image.myqcloud.com/95d3c7be-356b-4573-8aa8-45724618a527",key:"[咒骂]",keyCode:"/::-S"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8f11e215-9e39-476b-a77b-e994cc703edc",gifUrl:"https://pic01-10001430.image.myqcloud.com/fa622e45-63eb-4fe3-aa27-cca7dc7db07b",key:"[疑问]",keyCode:"/:?"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/de50c8c0-a797-4bb7-b2ef-ddb4a6b48085",gifUrl:"https://pic01-10001430.image.myqcloud.com/067378c9-04d4-470c-a125-1c3fcfa298e3",key:"[嘘]",keyCode:"/:,@x"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2e55af63-2591-49b9-9565-85269a308a97",gifUrl:"https://pic01-10001430.image.myqcloud.com/484cc9ea-89b4-4af1-8134-8ba9fdcabeb3",key:"[晕]",keyCode:"/:,@@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/057a6ff4-2403-424a-aaa4-5ece64336a37",gifUrl:"https://pic01-10001430.image.myqcloud.com/6d21c607-d709-45a5-a8d6-dd74bcdf587f",key:"[疯了]",keyCode:"/::8"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7d5e19d4-334b-441a-a964-285d8826c6d8",gifUrl:"https://pic01-10001430.image.myqcloud.com/204c089c-d737-447e-a912-a3da4f92c8fe",key:"[哀]",keyCode:"/:,@!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/9b14cbe9-749a-4081-b697-8a456db53cd3",gifUrl:"https://pic01-10001430.image.myqcloud.com/94019082-ea4b-4ada-a7a3-0e1d02143c62",key:"[骷髅]",keyCode:"/:!!!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3518ddf0-8cc3-4b4f-9391-7aa67a95f6b6",gifUrl:"https://pic01-10001430.image.myqcloud.com/7eeb8cc7-6e6b-4e02-b289-4f462677831d",key:"[敲打]",keyCode:"/:xx"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/b3086372-dd16-45d1-a51e-343befece0f7",gifUrl:"https://pic01-10001430.image.myqcloud.com/3e1c155c-3517-4c5f-9831-98a564d94bd2",key:"[再见]",keyCode:"/:bye"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/31350af3-00e6-40c1-91fd-c36660614f7a",gifUrl:"https://pic01-10001430.image.myqcloud.com/39804b4f-e56d-475d-b398-121d65e96d01",key:"[擦汗]",keyCode:"/:wipe"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fc09bdc6-8467-40c3-b20d-822980f14824",gifUrl:"https://pic01-10001430.image.myqcloud.com/89a3283e-fef9-4ccd-a238-400139a786a9",key:"[抠鼻]",keyCode:"/:dig"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7a1d3d7f-ae4e-495d-8c4d-75378069a52c",gifUrl:"https://pic01-10001430.image.myqcloud.com/8cd3aee8-56aa-4862-b253-701212e838f6",key:"[鼓掌]",keyCode:"/:handclap"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/434911d7-c142-4115-8ca2-0765f78e41d1",gifUrl:"https://pic01-10001430.image.myqcloud.com/2ead6c2f-23c7-4e5f-b8e3-161153989ede",key:"[糗大了]",keyCode:"/:&-("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/aa3532b6-99df-4984-9e76-013b4e106501",gifUrl:"https://pic01-10001430.image.myqcloud.com/9c3ec470-8055-413c-8839-465f75dd9f71",key:"[坏笑]",keyCode:"/:B-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/887fbd28-9f81-42ce-addf-639a94a8edb2",gifUrl:"https://pic01-10001430.image.myqcloud.com/897a5d5b-7c89-40bf-94ed-dc1c91c317ee",key:"[左哼哼]",keyCode:"/:<@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2267b046-ac56-4fc2-b592-351a1e6ffa28",gifUrl:"https://pic01-10001430.image.myqcloud.com/da25a587-d314-4b44-98eb-2f9220b6a093",key:"[右哼哼]",keyCode:"/:@>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3d1a9b50-3262-4d3e-a554-33871189023d",gifUrl:"https://pic01-10001430.image.myqcloud.com/f5323432-50d2-4393-853c-f8998a956da6",key:"[哈欠]",keyCode:"/::-O"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/edd78bd3-ffbb-4268-8af8-85377535cc0a",gifUrl:"https://pic01-10001430.image.myqcloud.com/ca62a0b0-2d01-4ca4-b958-8417f0906a89",key:"[鄙视]",keyCode:"/:>-|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d1f49343-0f9b-485a-b6b7-4d9b43020fab",gifUrl:"https://pic01-10001430.image.myqcloud.com/e43b2e20-8802-44d4-afa0-7eb6b7126c38",key:"[委屈]",keyCode:"/:P-("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/e6532dd2-5734-41fc-862c-3fec91ecb7b7",gifUrl:"https://pic01-10001430.image.myqcloud.com/d3120d89-2df8-47ba-b894-84658dd3e617",key:"[快哭了]",keyCode:"/::'|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3799a3bb-94a4-4614-917c-07629f1a63ac",gifUrl:"https://pic01-10001430.image.myqcloud.com/17853d32-28fc-4565-8dab-44d7c95d4819",key:"[阴险]",keyCode:"/:X-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4f84b1d5-235a-41a6-9927-96e29232ab61",gifUrl:"https://pic01-10001430.image.myqcloud.com/a034d0c1-eafd-434c-a3e9-6042081536f9",key:"[亲亲]",keyCode:"/::*"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fb45c4ad-2813-4ec1-afb7-873ef95ea975",gifUrl:"https://pic01-10001430.image.myqcloud.com/660a65ee-66ff-4fa3-85fc-72149b938739",key:"[吓]",keyCode:"/:@x"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/abdb4f9e-8fec-4fab-98c4-a89711da5f6a",gifUrl:"https://pic01-10001430.image.myqcloud.com/c8ef0424-21c9-4a25-a6be-c2233a6a85ba",key:"[可怜]",keyCode:"/:8*"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/6a0d843a-6870-409a-9bf2-40114628076e",gifUrl:"https://pic01-10001430.image.myqcloud.com/f80d75c4-8f07-459c-9c83-0cf016ddfcef",key:"[菜刀]",keyCode:"/:pd"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/140d13e9-1587-491c-afdc-2599a5ba72de",gifUrl:"https://pic01-10001430.image.myqcloud.com/08ec4424-86b8-4e46-bdce-3c93180a9cf9",key:"[西瓜]",keyCode:"/:<W>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d9974e8a-820e-4571-8fde-0fe21b725b7a",gifUrl:"https://pic01-10001430.image.myqcloud.com/8426b197-1a1b-4f5f-a446-e47b2a2bff09",key:"[啤酒]",keyCode:"/:beer"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4ff9ae58-e8df-4c9e-91ac-b91a6dc9096d",gifUrl:"https://pic01-10001430.image.myqcloud.com/2578648c-f29b-46d3-91de-b636c6014dcc",key:"[篮球]",keyCode:"/:basketb"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/aa136900-c1f5-40f4-9130-1ddae518cb22",gifUrl:"https://pic01-10001430.image.myqcloud.com/3b7a5bec-a119-4a7f-ae8f-e962cfb658b5",key:"[乒乓]",keyCode:"/:oo"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4de4896d-a8b0-4cc6-921a-bb7a81788e68",gifUrl:"https://pic01-10001430.image.myqcloud.com/5f1af094-059d-48a3-b374-381818827596",key:"[咖啡]",keyCode:"/:coffee"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c61865c0-2fcf-44e9-bf62-3a5a606ca459",gifUrl:"https://pic01-10001430.image.myqcloud.com/71a2ebba-3160-4a96-9370-2294e325c3d6",key:"[饭]",keyCode:"/:eat"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2ffebcf6-48a8-4c26-8e67-dd6ea345407f",gifUrl:"https://pic01-10001430.image.myqcloud.com/7309bbc1-3f2e-4df1-b523-b95ad9e18e0f",key:"[猪头]",keyCode:"/:pig"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/66dfc7b5-bebe-45d9-98f6-96d3a28214e8",gifUrl:"https://pic01-10001430.image.myqcloud.com/06673bd8-c7ca-4672-b7a3-569bb5768efc",key:"[玫瑰]",keyCode:"/:rose"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/86a99146-e83b-4132-b3fb-2864aaf8cfa4",gifUrl:"https://pic01-10001430.image.myqcloud.com/6b6b8364-d6eb-4c27-99d8-4bd0930b3cda",key:"[凋谢]",keyCode:"/:fade"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/090ae661-b401-496c-bd1f-d475e20e1c36",gifUrl:"https://pic01-10001430.image.myqcloud.com/d42b19ce-943c-40df-8886-f1cc70281f5d",key:"[嘴唇]",keyCode:"/:showlove"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a8295101-ac8c-4b8b-b1b0-97c548ec7c8d",gifUrl:"https://pic01-10001430.image.myqcloud.com/579e7c8b-d538-4ac0-8b9b-5e0691c33c74",key:"[爱心]",keyCode:"/:heart"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4b42af75-7434-4e1b-a727-def403b3c018",gifUrl:"https://pic01-10001430.image.myqcloud.com/d8b6265f-2ca2-4227-8aa3-26cfee1e1d8f",key:"[心碎]",keyCode:"/:break"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2eaf27d5-0f8e-4716-9f0c-7af7fce62980",gifUrl:"https://pic01-10001430.image.myqcloud.com/f96201f2-32b8-462b-847a-22c49c3cf6df",key:"[蛋糕]",keyCode:"/:cake"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ef55a1bb-6177-4075-b8ae-326b967cd612",gifUrl:"https://pic01-10001430.image.myqcloud.com/f3e8ef24-0efa-4823-af8f-34604e832b94",key:"[闪电]",keyCode:"/:li"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8672c806-0ecd-45ec-a9cd-2af63c806344",gifUrl:"https://pic01-10001430.image.myqcloud.com/758a6b09-71e7-429b-9c2e-c744b8305610",key:"[炸弹]",keyCode:"/:bome"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/0dfd4afd-f954-4de3-93da-ac6104a007a9",gifUrl:"https://pic01-10001430.image.myqcloud.com/d82af5eb-6fd5-48c8-9ba9-bf8b6ef7fe54",key:"[刀]",keyCode:"/:kn"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/12524677-2787-4a7b-9e8a-2874c44864f6",gifUrl:"https://pic01-10001430.image.myqcloud.com/dbb1e536-27bb-47ea-a57e-25c89ecb4c81",key:"[足球]",keyCode:"/:footb"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d65a0c9d-d50f-4986-86f4-de5babceeb4f",gifUrl:"https://pic01-10001430.image.myqcloud.com/62a24697-7529-4dce-93ef-8d78ee2ef3d9",key:"[瓢虫]",keyCode:"/:ladybug"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/0c30bcc5-1ad8-4b33-8040-cf11b4c8cdb4",gifUrl:"https://pic01-10001430.image.myqcloud.com/4beffad5-d07f-465b-987e-62687178a609",key:"[便便]",keyCode:"/:shit"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/adb7224b-ddd7-4e51-9cc0-c9642c3ca827",gifUrl:"https://pic01-10001430.image.myqcloud.com/3e124ec4-68d2-4129-ace6-b02b5a0a47dd",key:"[月亮]",keyCode:"/:moon"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/55a303ca-bcbf-42fb-99c5-d2a2aaa2c254",gifUrl:"https://pic01-10001430.image.myqcloud.com/191faab4-2c7d-4b6a-95e0-0cec831bdba8",key:"[太阳]",keyCode:"/:sun"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a84809d8-4553-4380-966b-17484ce317b8",gifUrl:"https://pic01-10001430.image.myqcloud.com/ffbc4ada-d572-4f80-821a-ee1d232c0da4",key:"[礼物]",keyCode:"/:gift"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/70f21a3f-165e-46dd-bbd3-9523e72761ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/1344a463-f19a-4a5a-9e99-450bf32c2c6b",key:"[拥抱]",keyCode:"/:hug"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a008b2e1-6d02-47f0-b477-c2b0e9f585f2",gifUrl:"https://pic01-10001430.image.myqcloud.com/b4cf425d-08fb-48a3-8383-e705d4ed990e",key:"[强]",keyCode:"/:strong"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/dd610773-3bc5-4bce-90a3-d5c7b7af1bd4",gifUrl:"https://pic01-10001430.image.myqcloud.com/bab6f0b3-94e1-4e94-b144-5161c5ee0799",key:"[弱]",keyCode:"/:weak"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4c027076-e5bb-492c-9cc7-39b58b50f720",gifUrl:"https://pic01-10001430.image.myqcloud.com/72076aef-4091-4b6a-a727-b3b433c64e7e",key:"[握手]",keyCode:"/:share"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fe962ed9-d581-4bcf-bf9e-8672e45353ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/fe962ed9-d581-4bcf-bf9e-8672e45353ef",key:"[胜利]",keyCode:"/:v"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/27f6adac-c525-4b8e-817d-f79e8b595ad8",gifUrl:"https://pic01-10001430.image.myqcloud.com/ab16d400-9bb0-493d-9973-5cf97f6f8ab2",key:"[抱拳]",keyCode:"/:@)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ef165f66-cf6b-4588-81a6-e01a31679670",gifUrl:"https://pic01-10001430.image.myqcloud.com/1e701efe-b602-4570-a957-5ba12486a853",key:"[勾引]",keyCode:"/:jj"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c230a194-9f2f-4690-84ce-194aed18143b",gifUrl:"https://pic01-10001430.image.myqcloud.com/fb9d43d1-506d-4684-8fc2-62a9cd528feb",key:"[拳头]",keyCode:"/:@@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4d963fc7-20c0-4942-b6f6-eb9282c509a6",gifUrl:"https://pic01-10001430.image.myqcloud.com/443b1f18-c10d-4803-9a1d-698075874fcf",key:"[差劲]",keyCode:"/:bad"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ac3fe192-103c-48f1-bd30-293d5f7551d0",gifUrl:"https://pic01-10001430.image.myqcloud.com/8f0ce5ac-c0b6-4936-8091-953b13d1d091",key:"[爱你]",keyCode:"/:lvu"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/68d642b4-0573-4821-8c42-ecfdaf8ceeb9",gifUrl:"https://pic01-10001430.image.myqcloud.com/633fc189-ab89-4ee5-9325-01f7b6c2a3fe",key:"[NO]",keyCode:"/:no"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ceb1580b-e0b1-4fcf-a3d9-66b83346cc43",gifUrl:"https://pic01-10001430.image.myqcloud.com/a80685a2-4e41-461c-b67d-e2092c2ba068",key:"[OK]",keyCode:"/:ok"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/1732e5d1-ab4b-4c63-9571-171feac408ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/a83394ea-9191-4eff-a3ca-84646ee748e4",key:"[爱情]",keyCode:"/:love"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f15cf2a7-89d8-48c5-bd63-0e550a240813",gifUrl:"https://pic01-10001430.image.myqcloud.com/b23f441c-2329-468b-a09a-e6a1d2cc38cf",key:"[飞吻]",keyCode:"/:<L>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7be4b8d5-6b2c-4c8c-9444-3e82057e6aca",gifUrl:"https://pic01-10001430.image.myqcloud.com/db11cfab-1be4-4279-b11a-18787247513d",key:"[跳跳]",keyCode:"/:jump"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a1147a2d-8fe4-4dac-b14b-4d144ce5e2f7",gifUrl:"https://pic01-10001430.image.myqcloud.com/9e243eca-c1e3-4afa-a068-8260af2eb62b",key:"[发抖]",keyCode:"/:shake"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/845e5982-a104-4ca7-be4c-ef176a360c25",gifUrl:"https://pic01-10001430.image.myqcloud.com/1695538d-744f-418b-9362-6eb052642163",key:"[怄火]",keyCode:"/:<O>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fd84d952-e6d0-498b-865c-4f9aaf570d81",gifUrl:"https://pic01-10001430.image.myqcloud.com/4ae21d0e-b019-4ab8-a607-8e43b8f24bf1",key:"[转圈]",keyCode:"/:circle"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/976e7ef5-4381-4f98-8a94-b1647c501357",gifUrl:"https://pic01-10001430.image.myqcloud.com/e63c5775-da40-480a-bf57-2fac6b88c372",key:"[磕头]",keyCode:"/:kotow"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/705e70c6-5524-4dc8-840b-ddf0a5558024",gifUrl:"https://pic01-10001430.image.myqcloud.com/fa8c6f1d-3fe6-4ffe-b62b-bc6f6024a681",key:"[回头]",keyCode:"/:turn"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/069837fd-9b7c-4dfe-9203-2cc747c083d0",gifUrl:"https://pic01-10001430.image.myqcloud.com/64a70d02-8888-4c23-93fc-a94c63589ea8",key:"[跳绳]",keyCode:"/:skip"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ebeb6e1d-a159-4d11-9a41-e639c1b82203",gifUrl:"https://pic01-10001430.image.myqcloud.com/6b12c653-0027-4c44-a9f2-d0bac2d405bf",key:"[投降]",keyCode:"/:oY"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2da0f4d4-37ed-43bd-ba44-0f3a65c2f46c",gifUrl:"https://pic01-10001430.image.myqcloud.com/21d5b626-e190-4a65-9c88-c4bfcb4261d7",key:"[激动]",keyCode:"/:#-0"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/6d34badb-1972-4b3f-9d42-f054f365ed5a",gifUrl:"https://pic01-10001430.image.myqcloud.com/bc51d1d4-42de-442a-8e94-74ae0dd5abd0",key:"[乱舞]",keyCode:"/:hiphot"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4e35c97d-f497-4fa8-8cf4-bd6fd8d7f9ad",gifUrl:"https://pic01-10001430.image.myqcloud.com/6856fc16-279a-45cd-9ab3-9396d382f502",key:"[献吻]",keyCode:"/:kiss"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/209d7202-5972-445e-a0f6-336cbe8b0b9d",gifUrl:"https://pic01-10001430.image.myqcloud.com/fadeb841-e07c-47f7-b948-081eabb556b9",key:"[左太极]",keyCode:"/:<&"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f566cd87-b948-4929-bfcc-955385937095",gifUrl:"https://pic01-10001430.image.myqcloud.com/4b08fdfe-9ea8-420a-9eda-998b6ad2045f",key:"[右太极]",keyCode:"/:&>"}]},"an/Q":function(e,t){},vqCN:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("mvHQ"),c=i.n(a),o=i("woOf"),l=i.n(o),d=i("P9l9"),m=i("PI0u"),s=i("Kkt8"),r=i("ZEMu"),n=i("NuXF"),p=i("feRM"),f=i("/AWl"),g=i.n(f),u=i("VbTH"),b={props:{},data:function(){return{filterText:"",defaultProps:{label:"departmentName"},appletForm:{appletPath:"",selectedApple:""},form:{title:"",type:1,welcomeContent:"你好,<微信昵称>",welcomeMediaList:[],suitDepartmentAddList:[],suitDepartmentList:[],defaultWelcomeFlag:0},uploadList:[{title:"图片",icon:"icontupian",fileType:"*"},{title:"视频",icon:"iconshipin",fileType:".mp4"},{title:"文件",icon:"iconwenjian",fileType:"*"},{title:"链接",icon:"iconlianjie"},{title:"小程序",icon:"iconxiaochengxu"},{title:"带参公众号二维码",icon:"icongongzhonghao"}],iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},accountName:"",rules:{title:[{required:!0,message:"请输入欢迎语标题"}],welcomeContent:[{required:!0,message:"请输入欢迎语内容",trigger:"blur"}]},wxEnterpriseId:"",enterpriseId:"",emojiList:r.a,addReplayDialog:!1,url:"",urlDialogVisible:!1,scopeVisible:!1,treeData:[],treeDataCopy:[],loading:!1,dialogLoading:!1,btnLoading:!1,submitbtnLoading:!1,selectedTreeData:[],showTree:!0,appTableData:[],appletDialogVisible:!1,defaultWelcomeFlag:!1,isNew:!0,echoDefaultWelcomeFlag:0,iphone2:g.a}},watch:{selectedTreeData:function(e){!e.length&&this.btnLoading&&(this.btnLoading=!1)}},computed:{publicAccountDisabled:function(){return!!this.form.welcomeMediaList.filter(function(e){return 7==e.mediaType}).length}},mounted:function(){var e=JSON.parse(sessionStorage.getItem("userInfos"));this.wxEnterpriseId=e.wxEnterpriseId,this.enterpriseId=e.enterpriseId;var t=this.$route.query,i=t.id,a=t.type;i&&(this.getData(),this.isNew=!1),this.form.type=a,sessionStorage.setItem("activeName",a),this.getExistDefaultWelcome(),this.getAppleList()},components:{limitTextarea:s.a,singleUpload:p.a,multUpload:n.a,preview:u.a},methods:{getExistDefaultWelcome:function(e){var t=this;Object(d.b)("/haoban-manage3-web/welcome/exist-default-welcome",{wxEnterpriseId:this.wxEnterpriseId}).then(function(e){0==e.data.code&&(t.defaultWelcomeFlag=e.data.result,t.isNew&&(t.form.defaultWelcomeFlag=e.data.result?0:1))})},handleDiabled:function(e){return!!this.form.welcomeMediaList.filter(function(t){return t.miniprogramSettingId&&t.miniprogramSettingId==e.miniprogramSettingId}).length},addApplet:function(e){var t=this;if(this.appletForm.selectedApple)if(-1==this.appletForm.selectedApple||this.appletForm.appletPath){var i=this.appTableData.filter(function(e){return e.miniprogramSettingId==t.appletForm.selectedApple})[0];this.form.welcomeMediaList.filter(function(e){return e.miniprogramSettingId&&e.miniprogramSettingId==i.miniprogramSettingId}).length||this.form.welcomeMediaList.push({miniProgramName:i.miniprogramName,mediaType:-1==i.miniprogramSettingId?6:5,mediaUrl:i.imageUrl,miniProgramPage:-1!=i.miniprogramSettingId?this.appletForm.appletPath:"",mediaTitle:i.title,miniprogramSettingId:i.miniprogramSettingId}),this.closeAppletDialog()}else this.$message.error("请输入小程序跳转路径");else this.$message.error("请选择小程序")},closeAppletDialog:function(){this.appletForm.selectedApple="",this.appletForm.appletPath="",this.appletDialogVisible=!1},getAppleList:function(){var e=this;Object(d.b)("/haoban-manage3-web/list-miniprogram-setting",{}).then(function(t){var i=t.data;1==i.errorCode&&i.result&&(e.appTableData=i.result,e.appTableData.push({miniprogramName:"带参会员小程序",miniprogramSettingId:"-1",imageUrl:"https://other-1251519181.cos.ap-shanghai.myqcloud.com/haoban/20220316151939/1b31e9f76ff1ac4340e5e66497df7cea.png",title:"带参会员小程序"}))}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},treeDialogCancel:function(){this.scopeVisible=!1,this.filterText=""},addSuitDepartment:function(){this.form.suitDepartmentAddList=l()([],this.selectedTreeData),this.scopeVisible=!1},clearAllSelectedData:function(){var e=this;this.btnLoading=!0,setTimeout(function(){e.showTree=!e.showTree,e.treeData=e.handleTreeData(JSON.parse(c()(e.treeDataCopy))),e.$nextTick(function(){e.$refs.tree.store._getAllNodes()[0].expanded=!0}),e.selectedTreeData=[]},500)},handleSelectedDataCancel:function(e,t){this.$refs.tree.setChecked(e.departmentId,!1,!0),this.selectedTreeData=this.$refs.tree.getCheckedNodes()},handlefilterTextClear:function(){var e=this;this.treeData=this.handleTreeData(JSON.parse(c()(this.treeDataCopy))),this.$nextTick(function(){e.$refs.tree.store._getAllNodes()[0].expanded=!0,e.selectedTreeData.length?e.$refs.tree.setCheckedKeys(e.selectedTreeData.map(function(e){return e.departmentId})):e.$refs.tree.setCheckedKeys([])})},toInput:Object(m.a)(function(e,t){this.filterText?this.getSearchData():this.handlefilterTextClear()},500),getSearchData:function(){var e=this;if(this.treeData=this.treeDataCopy.filter(function(t){return-1!=t.departmentName.indexOf(e.filterText)}),this.selectedTreeData.length){var t=this.selectedTreeData.map(function(e){return e.departmentId});this.$refs.tree.setCheckedKeys(t)}else this.$refs.tree.setCheckedKeys([])},handleCheck:function(e,t){var i=this,a=t.checkedNodes;if(this.filterText){var o=this.selectedTreeData.map(function(e){return e.departmentId});a.forEach(function(e){o.includes(e.departmentId)||i.selectedTreeData.push(e)})}else this.selectedTreeData=JSON.parse(c()(a))},handleCheckChange:function(e,t){var i=this,a=JSON.parse(c()(e));t||this.$nextTick(function(){i.selectedTreeData=i.selectedTreeData.filter(function(e){return e.departmentId!==a.departmentId})})},getTableList:function(e){var t=this;this.loading=!0,Object(d.b)("/haoban-manage3-web/department-list-cache",{isStore:0,parentId:""}).then(function(e){var i=e.data;1==i.errorCode&&i.result&&i.result.length&&(t.treeData=t.handleTreeData(JSON.parse(c()(i.result))),t.$nextTick(function(){t.$refs.tree.store._getAllNodes()[0].expanded=!0}),t.treeDataCopy=i.result)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleTreeData:function(e){return e.filter(function(t){var i=e.filter(function(e){return t.departmentId==e.parentDepartmentId});return i.length>0?(t.hasSonNode=!0,t.children=i):t.hasSonNode=!1,0==t.parentDepartmentId})},openScopeDialog:function(){var e=this;this.getTableList(),this.scopeVisible=!0,this.$nextTick(function(){e.selectedTreeData=e.form.suitDepartmentAddList,e.$refs.tree.setCheckedKeys(e.form.suitDepartmentAddList.map(function(e){return e.departmentId}))})},handleUploadList:function(e,t){["图片","视频","文件"].includes(e.title)?document.getElementsByClassName("upload-input")[t].click():"链接"==e.title?this.urlDialogVisible=!0:"小程序"==e.title?this.appletDialogVisible=!0:"带参公众号二维码"==e.title&&this.form.welcomeMediaList.push({mediaTitle:"带参公众号",mediaType:7,mediaUrl:"https://other-1251519181.cos.ap-shanghai.myqcloud.com/haoban/20220310143912/abdf84f1112815e936f3ed4f09dba525.png"})},handleDelMedia:function(e,t){this.form.welcomeMediaList.splice(t,1)},handkeFileChange:function(e,t){var i=e.target.files[0],a="";if(i.size>2e6)return this.$message.error("单个大小不超过2M"),!1;if("图片"==t.title){if(!("image/jpeg"===i.type||"image/jpg"===i.type||"image/png"===i.type))return this.$message.error("请上传图片"),!1;a="jpg"}else if("视频"==t.title){if(!("video/mp4"==i.type))return this.$message.error("请上传mp4类型的视频文件"),!1;a="mp4"}else"文件"==t.title&&(a=".doc");this.handleRequest(i,a)},handleRequest:function(e,t){var i=this,a=new FormData;a.append("file",e),Object(d.d)("/haoban-manage3-web/upload-file?fileType="+t,a).then(function(a){var c=a.data,o=1;if("jpg"==t?o=1:"mp4"==t?o=2:".doc"==t&&(o=3),1==c.errorCode&&c.result){var l={mediaTitle:e.name,mediaType:o,mediaUrl:c.result.url};3==o&&(l.mediaSize=(c.result.size/1024).toFixed(2)),i.form.welcomeMediaList.push(l)}})},onClosed:function(){this.accountName="",this.url=""},addAcountName:function(){""!=this.accountName?(-1!=this.accountName.indexOf("#公众号:")?console.log(""):this.accountName="#公众号:"+this.accountName,this.addReplayDialog=!1,this.form.welcomeContent=this.form.welcomeContent+this.accountName):this.$message({message:"请输入公众号名称",type:"error"})},addUrl:function(){this.form.welcomeMediaList.push({mediaTitle:this.url,mediaType:4,mediaUrl:this.url,mediaSize:""}),this.urlDialogVisible=!1},addLinkDialogShow:function(){this.addReplayDialog=!0},changeRoute:function(){this.$router.push("/contactsList")},selectEmoji:function(e){var t=this.form.welcomeContent+e.key;t.length>1e3?this.$message("添加该表情后文本内容将超过字数限制,无法添加!"):this.form.welcomeContent=t},putName:function(){this.form.welcomeContent=this.form.welcomeContent+"<微信昵称>"},getData:function(){var e=this,t={welcomeId:this.$route.query.id,enterpriseId:this.enterpriseId||""};Object(d.b)("/haoban-manage3-web/welcome/get",t).then(function(t){var i=t.data;if(0==i.code&&i.result){var a=i.result,o=a.suitDepartmentList,d=a.title,m=a.welcomeId,s=a.welcomeContent,r=a.welcomeMediaList,n=a.wxEnterpriseId,p=a.defaultWelcomeFlag,f=a.type;e.form={type:f,suitDepartmentList:o||[],suitDepartmentAddList:JSON.parse(c()(o))||[],title:d,welcomeId:m,welcomeContent:s,welcomeMediaList:r,wxEnterpriseId:n,defaultWelcomeFlag:p},e.form=l()({},e.form),e.echoDefaultWelcomeFlag=p}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},submit:function(){var e=this;1!=this.form.type||this.form.defaultWelcomeFlag||this.form.suitDepartmentAddList.length?this.$refs.form.validate(function(t){if(t){var i=e.form,a=i.suitDepartmentAddList,c=i.suitDepartmentList,o=i.title,l=i.welcomeId,m=i.welcomeContent,s=i.welcomeMediaList,r=i.wxEnterpriseId,n=i.defaultWelcomeFlag,p=i.type,f={title:o,welcomeId:l,welcomeContent:m,welcomeMediaList:s,wxEnterpriseId:r||e.wxEnterpriseId,defaultWelcomeFlag:n,type:p},g=[],u=[];a.forEach(function(e){c.filter(function(t){return t.departmentId==e.departmentId}).length||g.push(e)}),c.forEach(function(e){a.filter(function(t){return t.departmentId==e.departmentId}).length||u.push(e)}),f.suitDepartmentAddList=g,f.suitDepartmentDeleteList=u,f.suitDepartmentAddList.forEach(function(e){e.selectType=1}),f.suitDepartmentDeleteList.forEach(function(e){e.selectType=1}),e.submitbtnLoading=!0,Object(d.f)("/haoban-manage3-web/welcome/save",f).then(function(t){0==t.data.code?(e.$message({type:"success",message:"保存成功!"}),sessionStorage.setItem("activeName",f.type),e.$router.push("salutatory")):e.$message.error({message:""+t.data.message})}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){e.submitbtnLoading=!1})}}):this.$message.error("请选择使用范围")}}},h={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"daily-set-wrap"},[i("div",{staticClass:"daily-set-content border-box"},[i("div",{staticClass:"salutatory-set-wrap m-t-20"},[i("el-form",{ref:"form",staticClass:"form",attrs:{"label-width":"117px",model:e.form,rules:e.rules}},[i("el-form-item",{attrs:{label:"欢迎语标题",prop:"title"}},[i("el-input",{staticClass:"w-384",attrs:{"show-word-limit":"",placeholder:"请输入欢迎语标题",type:"text",maxlength:"20"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),i("el-form-item",{staticClass:"welcomeContentItem",attrs:{label:"欢迎语内容",prop:"welcomeContent"}},[i("el-input",{staticClass:"w-384 welcomeContent",attrs:{placeholder:"请输入文本内容",type:"textarea"},model:{value:e.form.welcomeContent,callback:function(t){e.$set(e.form,"welcomeContent",t)},expression:"form.welcomeContent"}}),e._v(" "),i("div",{staticClass:"text-bottom flex w-384"},[i("div",{staticClass:"flex flex-wrap flex-align-center"},[i("div",{staticClass:"put",on:{click:e.putName}},[e._v("插入< 微信昵称 >")]),e._v(" "),i("div",{staticClass:"line"}),e._v(" "),i("div",{staticClass:"put",on:{click:e.addLinkDialogShow}},[e._v("插入#公众号")])]),e._v(" "),i("el-popover",{attrs:{placement:"top",width:"388",trigger:"click"}},[i("ul",{staticClass:"flex flex-wrap"},e._l(e.emojiList,function(t,a){return i("li",{key:a+"emoji"},[i("img",{attrs:{src:t.gifUrl,alt:""},on:{click:function(i){return e.selectEmoji(t)}}})])}),0),e._v(" "),i("p",{staticStyle:{cursor:"pointer",height:"24px"},attrs:{slot:"reference"},slot:"reference"},[i("svg-icon",{attrs:{iconname:"iconbiaoqing",size:"20"}})],1)])],1),e._v(" "),i("div",{staticClass:"mediaEcho"},e._l(e.form.welcomeMediaList,function(t,a){return i("div",{key:a,staticClass:"flexBoxContainer"},[i("div",{staticClass:"flexBox"},[i("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:e.iconType[t.mediaType],size:"16"}}),e._v(" "),i("span",{staticClass:"popverText"},[e._v("\n "+e._s(t.mediaTitle)+"\n "),5==t.mediaType?i("span",[e._v("("+e._s(t.miniProgramPage)+")")]):e._e()]),e._v(" "),i("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"20px",cursor:"pointer"},on:{click:function(i){return e.handleDelMedia(t,a)}}})],1)])}),0),e._v(" "),i("div",{staticClass:"addInfo",style:e.form.welcomeMediaList.length>0?"border-top: 1px dashed #dcdfe6;":""},[i("el-popover",{attrs:{placement:"top",trigger:"click"}},[i("ul",{staticClass:"flex flex-wrap"},e._l(e.uploadList,function(t,a){return i("li",{key:a,class:["uploadListBox",e.form.welcomeMediaList.length>=9||5==a&&e.publicAccountDisabled?"disabled":""],style:5==a?"width: 118px;":"",on:{click:function(i){return e.handleUploadList(t,a)}}},[i("i",{class:["iconfont-hb3",t.icon],staticStyle:{"font-size":"20px"}}),e._v(" "),i("p",[e._v(e._s(t.title))]),e._v(" "),i("input",{staticClass:"upload-input",attrs:{type:"file",accept:t.fileType},on:{change:function(i){return e.handkeFileChange(i,t)}}})])}),0),e._v(" "),i("div",{staticStyle:{cursor:"pointer",display:"inline-block"},attrs:{slot:"reference"},slot:"reference"},[i("i",{staticClass:"iconfont-hb3 icontianjiajiahaowubiankuang"}),e._v(" "),i("p",[e._v("添加图片/视频/文件/链接/小程序/带参公众号二维码")])])]),e._v(" "),i("p",{staticStyle:{"font-size":"12px",color:"#909399"}},[e._v("(附件不超过9个,单个大小不超过2M)")])],1)],1),e._v(" "),1==e.form.type?i("el-form-item",{attrs:{label:"使用范围",required:""}},[i("el-radio",{attrs:{disabled:e.defaultWelcomeFlag&&0==e.echoDefaultWelcomeFlag,label:1},model:{value:e.form.defaultWelcomeFlag,callback:function(t){e.$set(e.form,"defaultWelcomeFlag",t)},expression:"form.defaultWelcomeFlag"}},[e._v("全体成员")]),e._v(" "),i("el-radio",{attrs:{label:0},model:{value:e.form.defaultWelcomeFlag,callback:function(t){e.$set(e.form,"defaultWelcomeFlag",t)},expression:"form.defaultWelcomeFlag"}},[e._v("部分成员")]),e._v(" "),0==e.form.defaultWelcomeFlag?i("span",{staticClass:"color-2f54eb cursor-pointer",staticStyle:{"margin-left":"8px"},on:{click:e.openScopeDialog}},[e._v(" "+e._s(e.form.suitDepartmentAddList.length?"修改使用范围":"请选择使用范围"))]):e._e(),e._v(" "),1==e.form.defaultWelcomeFlag?i("div",{staticClass:"scopeContainer"},[i("div",{staticClass:"wwTag"},[i("span",{staticClass:"font-14 color-2f54eb opacity80 iconfont-hb3 iconqiye-tianchong"}),e._v("\n 全体成员\n ")])]):i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.suitDepartmentAddList.length,expression:"form.suitDepartmentAddList.length"}],staticClass:"scopeContainer"},e._l(e.form.suitDepartmentAddList,function(t){return i("div",{key:t.departmentId,staticClass:"wwTag"},[i("span",{staticClass:"font-14 color-2f54eb opacity80 iconfont-hb3 iconqiye-tianchong"}),e._v("\n "+e._s(t.departmentName)+"\n ")])}),0)])],1):e._e(),e._v(" "),i("el-button",{staticStyle:{"margin-left":"117px","margin-bottom":"20px"},attrs:{type:"primary",loading:e.submitbtnLoading},on:{click:e.submit}},[e._v("保存")]),e._v(" "),i("el-button",{staticStyle:{"margin-bottom":"20px"},on:{click:function(t){return e.$router.push("salutatory")}}},[e._v("返回")])],1),e._v(" "),i("preview",{attrs:{welcomeContent:e.form.welcomeContent,mediaList:e.form.welcomeMediaList}})],1),e._v(" "),i("el-dialog",{staticClass:"replay-link-dialog",attrs:{title:"添加公众号",width:"585px",visible:e.addReplayDialog},on:{"update:visible":function(t){e.addReplayDialog=t},closed:e.onClosed}},[i("el-form",{attrs:{"label-position":"right","label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"公众号名称"}},[i("el-input",{nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addAcountName(t)}},model:{value:e.accountName,callback:function(t){e.accountName=t},expression:"accountName"}})],1)],1),e._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.addReplayDialog=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.addAcountName}},[e._v("确定")])],1)],1),e._v(" "),i("el-dialog",{staticClass:"replay-link-dialog",attrs:{title:"添加链接",width:"585px",visible:e.urlDialogVisible},on:{"update:visible":function(t){e.urlDialogVisible=t},closed:e.onClosed}},[i("el-form",{attrs:{"label-position":"right","label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"链接地址"}},[i("el-input",{nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addUrl(t)}},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}}),e._v(" "),i("span",{staticStyle:{"font-size":"12px",color:"#909399"}},[e._v("以http或https开头")])],1)],1),e._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.urlDialogVisible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.addUrl}},[e._v("确认添加")])],1)],1),e._v(" "),i("el-dialog",{staticClass:"replay-link-dialog",attrs:{title:"请选择使用范围",width:"886px",visible:e.scopeVisible},on:{"update:visible":function(t){e.scopeVisible=t}}},[i("div",{staticClass:"scopeBox"},[i("div",{staticClass:"left"},[i("el-input",{staticStyle:{width:"398px"},attrs:{placeholder:"请输入部门名称",maxlength:"50",clearable:""},on:{clear:e.handlefilterTextClear},nativeOn:{keyup:function(t){return i=t,e.toInput(i,e.searchInput);var i}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[i("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),i("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.showTree,ref:"tree",staticClass:"tree",attrs:{data:e.treeData,"check-on-click-node":!0,"show-checkbox":"","node-key":"departmentId",props:e.defaultProps,"expand-on-click-node":!1,"render-after-expand":!0},on:{"check-change":e.handleCheckChange,check:e.handleCheck},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node;return i("span",{staticClass:"custom-tree-node"},[i("span",{staticClass:"font-14 color-2f54eb opacity80 iconfont-hb3 iconqiye-tianchong"}),e._v(" "),i("span",[e._v(e._s(a.label))])])}}])})],1),e._v(" "),i("div",{staticClass:"right"},[i("div",{staticClass:"right-top"},[i("span",[e._v("已选:"+e._s(e.selectedTreeData.length)+"个部门")]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.selectedTreeData.length,expression:"selectedTreeData.length"}],attrs:{type:"text",loading:e.btnLoading},on:{click:e.clearAllSelectedData}},[e._v("清空")])],1),e._v(" "),e.selectedTreeData.length?i("ul",{staticClass:"right-content"},e._l(e.selectedTreeData,function(t,a){return i("li",{key:a+"gic",staticClass:"contact-li"},[i("div",{staticClass:"li-cell cursor-pointer"},[i("div",[i("span",{staticClass:"font-14 color-2f54eb opacity80 iconfont-hb3 iconqiye-tianchong"}),e._v(" "),i("span",{staticClass:"font-14 color-303133 span-departName"},[e._v(" "+e._s(t.departmentName))])]),e._v(" "),i("i",{staticClass:"iconfont-hb3 iconclose",on:{click:function(i){return e.handleSelectedDataCancel(t,a)}}})])])}),0):e._e()])]),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.treeDialogCancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.addSuitDepartment}},[e._v("确认")])],1)]),e._v(" "),i("el-dialog",{attrs:{title:"添加小程序",width:"640px",visible:e.appletDialogVisible},on:{"update:visible":function(t){e.appletDialogVisible=t},closed:e.closeAppletDialog}},[i("div",{staticClass:"admin-tip-body"},[i("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"550px"},attrs:{role:"alert"}},[i("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),i("div",{staticClass:"el-alert__content"},[i("p",{staticClass:"el-alert__title"},[e._v("\n 1、要在欢迎语中发送小程序,需先在【好办后台-企业设置-企业信息-小程序添加】中添加此小程序;"),i("br"),e._v("\n 2、请确保此处欢迎语中所添加的小程序在企业微信后台也已经创建,否则欢迎语在发送的时候会被企微拦截,导致发送失败; "),i("br"),e._v("\n 3、在不同开平的情况下,可选择“带参会员小程序”,以便于“客户”身份与“好友”身份的对应;"),i("br")])])])]),e._v(" "),i("el-form",{ref:"appletForm",staticStyle:{"margin-top":"20px"},attrs:{"label-position":"right",model:e.appletForm,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"小程序配置",required:""}},[i("el-select",{staticStyle:{width:"458px"},model:{value:e.appletForm.selectedApple,callback:function(t){e.$set(e.appletForm,"selectedApple",t)},expression:"appletForm.selectedApple"}},e._l(e.appTableData,function(t){return i("el-option",{key:t.miniprogramSettingId,attrs:{label:t.miniprogramName,value:t.miniprogramSettingId,disabled:e.handleDiabled(t)}})}),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:-1!=e.appletForm.selectedApple,expression:"appletForm.selectedApple != -1"}],attrs:{label:"小程序路径",required:""}},[i("el-input",{staticStyle:{width:"458px"},attrs:{placeholder:"请输入小程序跳转路径,例如:/page "},model:{value:e.appletForm.appletPath,callback:function(t){e.$set(e.appletForm,"appletPath",t)},expression:"appletForm.appletPath"}})],1)],1),e._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeAppletDialog}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.addApplet}},[e._v("确定")])],1)],1)],1)])},staticRenderFns:[]};var y=i("VU/8")(b,h,!1,function(e){i("NPdk")},"data-v-d614c290",null);t.default=y.exports}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{"3mm2":function(t,e){},"7/Zw":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),o=a("P9l9"),i=a("Ch4/"),l=a("PI0u"),n={name:"gic-select-store",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(t){this.dailyRuleForm.stores=t?this.stores.map(function(t){return t.storeId}):[],this.isIndeterminate=!1,this.$emit("returnStores",this.dailyRuleForm.stores)},handleStoresChange:function(t){var e=t.length;this.checkAll=e===this.stores.length,this.isIndeterminate=e>0&&e<this.stores.length,this.$emit("returnStores",this.dailyRuleForm.stores)},toInput:Object(l.a)(function(t,e){""!=this.searchSelect&&(this.stores=[],this.pageNum=1,this.getStoreData())},500),changeVisible:function(){},checkStore:function(t){var e=this;if(t.select){t.select=!1;var a=e.dailyRuleForm.stores.indexOf(t.storeId);e.dailyRuleForm.stores.splice(a,1)}else t.select=!0,e.dailyRuleForm.stores.push(t.storeId);e.storesCopy.forEach(function(t){e.dailyRuleForm.stores.includes(t.storeId)&&(t.select=!0)})},clearSearch:function(){this.stores=[],this.pageNum=1,this.getStoreData()},getStoreData:function(){var t=this,e={searchName:t.searchSelect,gicEnterpriseId:t.brandId,pageNum:t.pageNum,pageSize:t.pageSize};Object(o.b)("/haoban-app-customer-web/cardCoupon/get-store-list",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(e){e.select=!1,t.selectData.includes(e.storeId)&&(e.select=!0)}),1==t.pageNum?(t.stores=JSON.parse(r()(a.result.result))||[],t.storesCopy=JSON.parse(r()(a.result.result))||[]):a.result.result.forEach(function(e){t.stores.push(e),t.storesCopy.push(e)}),void(t.pageNum*t.pageSize<a.result.totalCount&&(t.pageNum++,t.$nextTick(function(){t.getStoreData()})));i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t){t&&(this.checkAll=!1,this.isIndeterminate=!1,this.stores=[],this.storesCopy=[],this.searchSelect="",this.getStoreData())},selectData:function(t,e){t.length?this.dailyRuleForm.stores=JSON.parse(r()(t)):this.dailyRuleForm.stores=[]}},mounted:function(){this.brandId&&(this.stores=[],this.storesCopy=[],this.getStoreData()),this.selectData.length?this.dailyRuleForm.stores=JSON.parse(r()(this.selectData)):this.dailyRuleForm.stores=[]}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:t.storeVisible,callback:function(e){t.storeVisible=e},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchSelect);var a}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1),t._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:t.handleStoresChange},model:{value:t.dailyRuleForm.stores,callback:function(e){t.$set(t.dailyRuleForm,"stores",e)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.stores,function(e){return a("li",{key:e.storeId,class:["el-select-dropdown__item",e.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:e.storeId}},[t._v(t._s(e.storeName))])],1)}),t._v(" "),t.stores.length?t._e():a("li",{staticClass:"text-center"},[a("span",[t._v("暂无数据")])])],2)])],1),t._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),t._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),t._v(" "),a("div",{staticClass:"show-select-num cursor-pointer w-250",attrs:{slot:"reference"},on:{click:t.changeVisible},slot:"reference"},[t._v("\n 已经选择"+t._s(t.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",t.storeVisible?"is-reverse":""]})])])])])},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(t){a("WgFr")},"data-v-77d9049e",null).exports,u=a("Ggl+"),p={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,selectCoupCardId:this.coupCardId||"",tableData:[],currentPage:1,pageSize:6,total:0}},methods:{handleClose:function(t){this.$emit("closeCard")},toConfirm:function(){var t=this,e={};t.tableData.forEach(function(a){a.coupCardId==t.selectCoupCardId&&(e=a)}),t.$emit("returnId",t.selectCoupCardId,e)},toCancel:function(){this.$emit("closeCard")},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={cardName:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize,gicEnterpriseId:e.brandId};Object(o.b)("/haoban-app-customer-web/cardCoupon/find-select-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&this.getTableList()},coupCardId:function(t,e){t&&(this.selectCoupCardId=t)}},mounted:function(){this.selectCoupCardId=this.coupCardId,this.brandId&&this.getTableList()}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"卡券选择",visible:t.dialogVisible,width:"994px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"search-div",staticStyle:{marginTop:"10px"}},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",label:"",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-radio",{attrs:{disabled:1==e.row.selected,label:e.row.coupCardId},model:{value:t.selectCoupCardId,callback:function(e){t.selectCoupCardId=e},expression:"selectCoupCardId"}},[t._v(t._s(""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"备注名","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.subName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"","show-overflow-tooltip":""},scopedSlots:t._u([{key:"header",fn:function(){return[a("span",{staticStyle:{width:"69px",display:"inline-block","line-height":"18px"}},[t._v("卡券模板投放期限")])]},proxy:!0},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.putEffectDateString||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"","show-overflow-tooltip":""},scopedSlots:t._u([{key:"header",fn:function(){return[a("span",{staticStyle:{width:"69px",display:"inline-block","line-height":"18px"}},[t._v("用户使用有效期")])]},proxy:!0},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.effectDateString||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"cardLimit",label:"领取限制","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"适用门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.storeMode?"所有门店":1==e.row.storeMode?"部分分组":"部分门店")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"couponStock",label:"库存","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"getedQuantity",label:"领取次数","show-overflow-tooltip":""}})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","page-sizes":[6],"current-page":t.currentPage,"page-size":t.pageSize,layout:" prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer m-b-20",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.toCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toConfirm}},[t._v("确认")])],1)])},staticRenderFns:[]};var g=a("VU/8")(p,h,!1,function(t){a("3mm2")},"data-v-77242bf8",null).exports,f={name:"gic-select-tag",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,storeVisible:!1,tags:[],dailyRuleForm:{tags:[]},selectTags:[]}},methods:{handleStoresChange:function(t){var e=[];this.tags.forEach(function(a){t.includes(a.tagId)&&e.push(a)}),this.selectTags=JSON.parse(r()(e)),this.$emit("returnTags",this.selectTags)},delDepart:function(t,e){e.splice(t,1),this.$emit("returnTags",this.selectTags)},getTagsData:function(){var t=this,e={gicEnterpriseId:t.brandId};Object(o.b)("/haoban-app-customer-web/cardCoupon/find-store-tag-list",e).then(function(e){var a=e.data;1!=a.errorCode?i.a.errorMsg(a):t.tags=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t){t&&(this.dailyRuleForm.tags=[],this.selectTags=[],this.tags=[],this.getTagsData())},selectData:function(t,e){t.length?(this.selectTags=JSON.parse(r()(t)),this.dailyRuleForm.tags=t.map(function(t){return t.tagId})):(this.dailyRuleForm.tags=[],this.selectTags=[])}},mounted:function(){this.brandId&&(this.tags=[],this.getTagsData()),this.selectData.length?(this.selectTags=JSON.parse(r()(this.selectData)),this.dailyRuleForm.tags=this.selectData.map(function(t){return t.tagId})):(this.dailyRuleForm.tags=[],this.selectTags=[])}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:t.storeVisible,callback:function(e){t.storeVisible=e},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:t.handleStoresChange},model:{value:t.dailyRuleForm.tags,callback:function(e){t.$set(t.dailyRuleForm,"tags",e)},expression:"dailyRuleForm.tags"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.tags,function(e){return a("li",{key:e.tagId,staticClass:"el-select-dropdown__item"},[a("el-checkbox",{attrs:{label:e.tagId}},[t._v(t._s(e.tagName))])],1)}),t._v(" "),t.tags.length?t._e():a("li",{staticClass:"text-center el-select-dropdown__item"},[a("span",[t._v("暂无门店标签")])])],2)])],1),t._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),t._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block ",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",style:{width:t.width}},[t.dailyRuleForm.tags.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[t._v("请选择门店标签")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[t._l(t.selectTags,function(e,s){return[a("span",{key:s+"tag",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.tagName))]),t._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delDepart(s,t.selectTags)}}})])]})],2)])])])])])},staticRenderFns:[]};var b=a("VU/8")(f,m,!1,function(t){a("wiGA")},"data-v-7e185ac2",null).exports,v=a("3E4D"),C={name:"chat-log",props:{brandId:{type:String,default:function(){return""}}},components:{selectCard:g,gicSelectGroup:u.a,gicSelectStore:d,gicSelectTag:b},data:function(){return{options:[0,1,2,3,4,5],activeBrand:this.brandId,activeId:"3",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",selectCoupCard:{},loadingPage:!0,formData:{id:"",coupCardId:this.$route.query.coupCardId?this.$route.query.coupCardId:"",storeWidgetId:"",receiveTimes:0},rules:{coupCardId:[{required:!0,message:"请选择卡券",trigger:"change"}]},cardSelectShow:!1,addTag:!0,loadingBtn:!1}},methods:{returnTags:function(t){this.formData.selectList=JSON.parse(r()(t))},returnStores:function(t){this.formData.selectList=JSON.parse(r()(t))},checkGroupIds:function(t){this.formData.selectList=JSON.parse(r()(t))},showCard:function(){this.cardSelectShow=!0},closeCard:function(){this.cardSelectShow=!1},returnId:function(t,e){this.formData.coupCardId=t,this.selectCoupCard=e,this.cardSelectShow=!1,this.$refs.ruleForm.validate(function(t){if(t)return!1})},submitForm:Object(l.a)(function(t,e){var a=this;a.loadingBtn=!0,a.$refs[t].validate(function(t){t?a.postSaveCard(e):a.loadingBtn=!1})},300),postSaveCard:function(t){var e=this,a=this,s={id:a.formData.id,coupCardId:a.formData.coupCardId,receiveTimes:this.formData.receiveTimes,storeWidgetId:this.formData.storeWidgetId,gicEnterpriseId:a.brandId,wxEnterpriseId:a.wxEnterpriseId};Object(o.g)(a.$route.query.coupCardId&&!a.addTag?"/haoban-app-customer-web/cardCoupon/edit-card-coup":"/haoban-app-customer-web/cardCoupon/add-card-coup",s).then(function(s){var r=s.data;a.loadingBtn=!1,1==r.errorCode&&(v.a.showmsg(a.$route.query.coupCardId?"编辑卡券成功":"新建卡券成功","success"),t?(a.addTag=!0,a.formData={id:"",coupCardId:"",receiveTimes:e.formData.receiveTimes,storeWidgetId:e.formData.storeWidgetId},a.selectCoupCard={}):a.$router.push("/cardList")),i.a.errorMsg(r)}).catch(function(t){a.loadingBtn=!1,a.$message.error({duration:1e3,message:t.message})})},toReturn:function(){var t=this;t.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.$router.push("/onlineChatSet?activeTab="+t.$route.query.activeTab+"&appIcon="+t.$route.query.appIcon)}).catch(function(){})},changeRange:function(t){this.formData.selectList=[]},getCardData:function(){var t=this;t.loadingPage=!0;var e={coupCardId:t.$route.query.coupCardId,gicEnterpriseId:t.brandId};Object(o.b)("/haoban-app-customer-web/cardCoupon/find-card-coup-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.detail?(a.result.list&&a.result.list.forEach(function(t){t.label=t.name,t.departmentId=t.id,t.storeGroupId=t.id,t.storeGroupName=t.name,t.departmentName=t.name,2==a.result.detail.sendRange&&(t.storeId=t.id),3==a.result.detail.sendRange&&(t.tagName=t.name,t.tagId=t.id)}),t.selectCoupCard=a.result.gicDetail,t.formData={id:a.result.detail.id,coupCardId:a.result.detail.coupCardId,storeWidgetId:a.result.detail.storeWidgetId,receiveTimes:a.result.detail.receiveTimes},t.loadingPage=!1,!1):(t.loadingPage=!1,t.addTag=!1,v.a.showmsg("请先保存上一个商户的设置内容","warning"),!1);100013==a.errorCode&&(t.formData.coupCardId="",t.addTag=!0),t.loadingPage=!1,i.a.errorMsg(a)}).catch(function(e){t.loadingPage=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){if(t&&this.$route.query.coupCardId&&(this.addTag=!1),t&&this.$route.query.coupCardId&&!this.addTag)return this.activeBrand=t,this.getCardData(),!1;t&&(this.addTag=!0,this.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},this.selectCoupCard={})}},mounted:function(){this.activeBrand=this.brandId,this.$route.query.coupCardId&&this.brandId?(this.addTag=!1,this.getCardData()):this.loadingPage=!1}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingPage,expression:"loadingPage"}],staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.formData,rules:t.rules,"label-width":"200px"}},[a("el-form-item",{attrs:{label:"选择卡券",prop:"coupCardId"}},[t.formData.coupCardId?a("div",{staticClass:"selected-card-body flex"},[a("div",{staticClass:"selected-card font-14 color-909399"},[t._v(t._s(t.selectCoupCard.cardName)+" | "+t._s(t.selectCoupCard.effectDateString)+" | 限制"+t._s(t.selectCoupCard.cardLimit)+"张/人 | 适用门店:"+t._s(0==t.selectCoupCard.storeMode?"所有门店":1==t.selectCoupCard.storeMode?"部分分组":"部分门店")+" | 库存:"+t._s(t.selectCoupCard.couponStock))]),t._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:t.showCard}},[t._v("重新选择")])],1):a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:t.showCard}},[a("span",{staticClass:"el-icon-plus font-12 color-909399"}),a("span",{staticClass:"font-14 color-909399 p-l-8"},[t._v("添加卡券")])])]),t._v(" "),a("el-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n 领券页面可被领取次数\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"当导购将此卡券送给客户后,此领券页面总共可被领取的次数。比如限制此卡券的领券页面仅1次,则客户成功领取后,即使其将此领券页面转发分享给其他好友,也不可再被领取,因为此领券页面只能被领取一次",placement:"top-start"}},[a("i",{staticClass:"iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),t._v(" "),a("el-radio-group",{model:{value:t.formData.receiveTimes,callback:function(e){t.$set(t.formData,"receiveTimes",e)},expression:"formData.receiveTimes"}},[a("el-radio",{attrs:{label:0}},[t._v("固定1次")]),t._v(" "),a("el-radio",{attrs:{label:1}},[t._v("不限次数")])],1)],1),t._v(" "),a("el-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n 选择发送范围\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("i",{staticClass:"iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),t._v(" "),t.addTag||!t.addTag&&t.formData.id?a("dm-store-selector",{attrs:{options:t.options,uuid:t.formData.storeWidgetId},on:{"update:uuid":function(e){return t.$set(t.formData,"storeWidgetId",e)}}}):t._e()],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认"+t._s(t.$route.query.coupCardId&&!t.addTag?"编辑":"新建"))]),t._v(" "),t.$route.query.coupCardId?t._e():a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("ruleForm","flag")}}},[t._v("确认并继续新建")])],1)],1)],1),t._v(" "),t.cardSelectShow?a("select-card",{attrs:{coupCardId:t.formData.coupCardId,brandId:t.brandId},on:{closeCard:t.closeCard,returnId:t.returnId}}):t._e()],1)},staticRenderFns:[]};var I=a("VU/8")(C,_,!1,function(t){a("bz8g")},"data-v-768c0f96",null);e.default=I.exports},WgFr:function(t,e){},bz8g:function(t,e){},wiGA:function(t,e){}});
\ No newline at end of file
webpackJsonp([21,57,72],{"1I9l":function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,l=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(l||{}).clerkEditInfo;n()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(l.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("ih88")},"data-v-9518b3c2",null);e.default=o.exports},ih88:function(t,e){},tPY2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("i0rV"),n=a("w5vQ"),l={name:"GuideSetting",components:{GuideAuthSetting:i.default,AppVisibleSetting:n.default},data:function(){return{activeName:"first"}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"导购操作权限设置",name:"first"}},[a("guide-auth-setting")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"应用可见权限设置",name:"second"}},[a("app-visible-setting")],1)],1)],1)},staticRenderFns:[]},r=a("VU/8")(l,s,!1,null,null,null);e.default=r.exports},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var l=(n||{}).allList;l=Array.isArray(l)?l:[],t.allApps=l,t.settingData.checked=l.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),i={dataJson:n()(a)};Object(l.g)("/haoban-manage3-web/open-or-close",i).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("1I9l")},"data-v-5d9db47e",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([22],{"3eqo":function(e,t){},RKnz:function(e,t){},pBjQ:function(e,t){},"swl+":function(e,t,a){"use strict";var i=a("mvHQ"),s=a.n(i),o=a("fZjL"),n=a.n(o),l={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{noticeData:{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var i=a%864e5,s=i%36e5;return Math.floor(a/864e5)+"天"+Math.floor(i/36e5)+"小时"+Math.floor(s/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;n()(e).length&&(a.noticeData=JSON.parse(s()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(s()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.lastTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-top border-box"},[a("div",{staticClass:"task-title font-14 color-303133 font-w-500"},[e._v(e._s(e.noticeData.title))]),e._v(" "),a("div",{staticClass:"task-des font-12 color-303133 font-w-400"},[e._v(e._s(e.noticeData.taskDescription))]),e._v(" "),a("div",{staticClass:"task-over font-10 color-fd6b6d font-w-400"},[1==e.noticeData.taskStatus?a("span",[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.lastTime)))]):e._e(),e._v(" "),2==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e(),e._v(" "),3==e.noticeData.taskStatus?a("span",[e._v("已放弃")]):e._e(),e._v(" "),4==e.noticeData.taskStatus?a("span",[e._v("已逾期")]):e._e(),e._v(" "),5==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e()]),e._v(" "),a("div",{staticClass:"task-people"},e._l(e.noticeData.taskRecordList,function(t,i){return a("div",{key:i+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont-hb3 icondingwei font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-606266 opt-content"},[e._v(e._s(t.optContent))])]),e._v(" "),a("div",{class:["task-item-date",i!=e.noticeData.taskRecordList.length-1?"item-border":""]},[a("span",{staticClass:"p-l-14 font-10 color-909399"},[e._v(e._s(t.optTime))])])])}),0)]),e._v(" "),a("div",{staticClass:"detail-content-bottom border-box m-t-10"},[a("div",{staticClass:"user-info flex "},[a("div",{staticClass:"user-photo"},[a("img",{attrs:{src:e.noticeData.memberInfo.imgUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"user-name-body"},[a("div",{staticClass:"user-name"},[a("span",{staticClass:"font-12 color-30313 font-w-500"},[e._v(e._s(e.noticeData.memberInfo.memberName))]),a("span",{class:["p-l-6 font-12 iconfont-hb3",0==e.noticeData.memberInfo.memberGender?"":1==e.noticeData.memberInfo.memberGender?"iconnan color-4b69e5":"color-ff8ea0 iconxingbienv"]})]),e._v(" "),a("div",{staticClass:"user-age font-10 color-7f818a"},[a("span",[e._v(e._s(e.noticeData.memberInfo.memberAge)+"岁")]),a("span",{staticClass:"dot"}),a("span",[e._v("生日 "+e._s(0==e.noticeData.memberInfo.birthType?"农历":"阳历")+e._s(e.noticeData.memberInfo.birthday))])])])]),e._v(" "),a("div",{staticClass:"user-info-body"},[5!=e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.memberGradeName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("积 分:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.accumulatPoints))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费总额:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costFee))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费次数:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costTimes))])])]):e._e(),e._v(" "),5==e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("微信昵称:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.nickName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("手机号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.phoneNumber||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])])]):e._e()]),e._v(" "),a("div",{staticClass:"user-clerk"},[a("span",{staticClass:"iconfont-hb3 iconziyuan1 font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-4b69e5 clerk-name"},[e._v(e._s(e.noticeData.memberInfo.clerkName))])])])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("RKnz")},"data-v-493cd79d",null);t.a=c.exports},wRTX:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),o=a("CMYX"),n=a("LRn8"),l=a("fPyK"),r=a("swl+"),c=a("mvHQ"),d=a.n(c),m=a("fZjL"),p=a.n(m),u={props:{taskData:{type:Object,default:function(){return{}}}},components:{},data:function(){return{dialogVisible:!0,form:{finishTime:null,reason:"",taskUrls:[]}}},methods:{close:function(){this.$emit("close")}},watch:{taskData:function(e){var t=this;p()(e).length&&t.$nextTick(function(){t.form=JSON.parse(d()(e))})}},mounted:function(){var e=this;p()(e.taskData).length&&e.$nextTick(function(){e.form=JSON.parse(d()(e.taskData))})}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"完成详情",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("div",{},[a("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:e.form,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"完成时间",prop:"overdueTime"}},[e._v(" "+e._s(e._f("formatTimeStamp")(e.form.finishTime)))]),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"finishRemark"}},[e._v(" "+e._s(e.form.reason||"")+" ")]),e._v(" "),a("el-form-item",{attrs:{label:"图片",prop:"imgUrl"}},[e._l(e.form.taskUrls,function(t){return[a("el-popover",{key:t,attrs:{placement:"right-start","open-delay":200,width:"300",trigger:"hover"}},[a("img",{staticStyle:{display:"block",width:"100%"},attrs:{src:t,alt:""}}),e._v(" "),a("el-image",{staticStyle:{width:"40px",height:"40px"},attrs:{slot:"reference",src:t,fit:"cover"},slot:"reference"})],1)]})],2)],1)],1)])},staticRenderFns:[]};var v=a("VU/8")(u,f,!1,function(e){a("3eqo")},"data-v-bed90096",null).exports,b=a("P9l9"),h=a("Ch4/"),g=a("3E4D"),_={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{enableDownloadCompleteData:0,tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,loadingBtn:!1,selectRadio:2,showDialog:!1,conditionObj:{completed:"",overdue:"",title:"",taskType:"1",date:this.$store.state.salesDate},overdueStyle:{"已逾期":"#F5222D","未逾期":"#2F54EB"},taskStyle:{2:"#33AF4A",5:"#33AF4A",1:"#F5222D",3:"#F5222D",4:"#F5222D"},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成(已拨通)",value:"1"},{label:"已完成(放弃)",value:"2"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"逾期未失效",value:"2"},{label:"逾期已失效",value:"3"},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],loading:!1,tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,previewData:{},previewVisible:!1,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""},taskDetailVisible:!1,taskDetail:{},pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()}},tableRefresh:!1,exportDialog:!1}},computed:{},methods:{getInfo:function(){var e=this,t=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId;Object(b.b)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var a=t.data;1!=a.errorCode?h.a.errorMsg(a):e.enableDownloadCompleteData=a.result.enableDownloadCompleteData})},beforeExportExcel:function(){if(!this.multipleSelection.length)return g.a.showmsg("请选择任务","warning"),!1;1==this.enableDownloadCompleteData?this.exportDialog=!0:this.exportExcel(0)},changeExportDialog:function(){this.exportDialog=!1,this.multipleSelection=[],this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!t.multipleSelection.length)return g.a.showmsg("请选择任务","warning"),!1;t.loadingBtn=!0;var a={gicEnterpriseId:t.activeBrand,selectType:2==t.selectRadio&&t.multipleSelection.length?0:this.selectRadio,storeId:t.$route.query.storeId,ecmId:t.$route.query.ecmId?t.$route.query.ecmId:"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",taskIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.taskId}).join(","),dataType:e,title:this.conditionObj.title};Array.isArray(this.conditionObj.date)&&2==this.conditionObj.date.length&&(a.createTimeStart=this.conditionObj.date[0],a.createTimeEnd=this.conditionObj.date[1]),Object(b.c)("/haoban-app-tel-task-three-web/task/export-store-view-clerk-list",a).then(function(e){if(t.loadingBtn=!1,!e.data)return h.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=document.createElement("a");i.download="门店任务导购报表.xls",i.style.display="none",i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),URL.revokeObjectURL(i.href),document.body.removeChild(i)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},showSingleInfo:function(e){var t=this,a={clerkId:e};Object(b.g)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?h.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closePreview:function(){this.previewData={}},getPreviewData:function(e,t){var a=this,i={taskId:t.taskId};a.previewVisible=!0,Object(b.g)("/haoban-app-tel-task-three-web/task/app-task-detail",i).then(function(e){var t=e.data;if(1==t.errorCode)return a.previewData=t.result,void(a.previewVisible=!0);h.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},multDel:function(){var e=this;if(!e.multipleSelection.length)return e.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.$confirm("删除任务后,会影响任务统计如已完成,完成率,待完成以及销售线索收益等,请知悉","确认要删除吗?").then(function(t){e.postMultDel()})},postMultDel:function(){var e=this,t={storeId:e.$route.query.storeId,taskIds:1==e.selectRadio?"":e.multipleSelection.map(function(e){return e.taskId}).join(","),isOverTime:e.conditionObj.overdue||"",isCompleted:e.conditionObj.completed||"",enterpriseId:e.activeBrand,isAll:e.selectRadio};Object(b.g)("/haoban-app-tel-task-three-web/task/batch-del-clerk-task-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return g.a.showmsg("删除成功","success"),void e.getTableList();h.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},changeSelect:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("删除任务后,会影响任务统计如已完成,完成率,待完成以及销售线索收益等,请知悉","确认要删除吗?").then(function(i){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={taskId:t.taskId,enterpriseId:a.activeBrand};Object(b.b)("/haoban-app-tel-task-three-web/task/del-one",i).then(function(e){var t=e.data;if(1==t.errorCode)return g.a.showmsg("删除成功","success"),void a.getTableList();h.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"task"),this.dialogVisible=!0},getTableList:function(e){var t=this,a=this;a.loading=!0;var i={ecmId:a.$route.query.ecmId||"",storeId:a.$route.query.storeId||"",isOverTime:a.conditionObj.overdue||"",isCompleted:a.conditionObj.completed||"",title:a.conditionObj.title||"",pageNum:a.currentPage,pageSize:a.pageSize,gicEnterpriseId:a.activeBrand};Array.isArray(a.conditionObj.date)&&2===a.conditionObj.date.length&&(i.createTimeStart=a.conditionObj.date[0],i.createTimeEnd=a.conditionObj.date[1]),Object(b.b)("/haoban-app-tel-task-three-web/task/clerk-task-list",i).then(function(i){var s=i.data;if(a.loading=!1,1==s.errorCode)return s.result.list&&s.result.list.forEach(function(e){e.taskUrl&&!e.taskUrl.length||(e.taskUrl=[])}),a.tableData=s.result.list||[],a.total=s.result.pageInfo?s.result.pageInfo.total:0,void(1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2);h.a.errorMsg(s)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})},getTaskDetail:function(e){this.taskDetail=s()({},e),this.taskDetailVisible=!0},closeTaskDetail:function(){this.taskDetail={},this.taskDetailVisible=!1}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList()),this.multipleSelection=[]}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList(),this.getInfo()},components:{multipleDel:n.a,qrcodeDialog:l.a,detailPreview:r.a,taskDetail:v,exportDialog:o.a}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left flex flex-align-center"},[a("span",{staticStyle:{"font-size":"14px"}},[e._v("任务创建时间:")]),a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeSelect},model:{value:e.conditionObj.date,callback:function(t){e.$set(e.conditionObj,"date",t)},expression:"conditionObj.date"}}),e._v(" "),a("el-select",{staticClass:"w-135 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-select",{staticClass:"w-135 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-input",{staticClass:"w-260 m-l-10",attrs:{placeholder:"请输入任务标题","prefix-icon":"el-icon-search",clearable:""},on:{change:e.changeSelect},model:{value:e.conditionObj.title,callback:function(t){e.$set(e.conditionObj,"title","string"==typeof t?t.trim():t)},expression:"conditionObj.title"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTaskDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTaskDetail,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportTaskDetail)?a("el-button",{staticClass:"m-l-10",attrs:{type:"primary","limit-code":e.$buttonCode.exportTaskDetail,loading:e.loadingBtn,plain:""},on:{click:e.beforeExportExcel}},[e._v("导出")]):e._e(),e._v(" "),a("el-tooltip",{attrs:{content:"导出结果中会员姓名、手机号等敏感信息将进行加密,实现隐私保护",placement:"top"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:0==e.enableDownloadCompleteData,expression:"enableDownloadCompleteData == 0"}],staticClass:"el-icon-warning-outline font-14 p-l-6"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0}])},[e._v(" "),[e._v(e._s(" "))]],2),e._v(" "),a("el-table-column",{attrs:{prop:"title",label:"任务标题","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"导购","show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v("\n "+e._s(t.row.clerkName)+"\n ")]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v("\n "+e._s(t.row.clerkPhone)+"\n ")])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"会员","show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.memberHeadUrl?a("img",{attrs:{src:t.row.memberHeadUrl,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v("\n "+e._s(t.row.memberName)+"\n ")]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v("\n "+e._s(t.row.memberCardNo)+"\n ")])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务创建时间",width:"107"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":"",width:"107"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况/逾期失效",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"point",style:"background:"+e.overdueStyle[t.row.isOverTime]+";"}),e._v(e._s(t.row.isOverTime)+"/"+e._s(e._f("formatInvalidStatus")(t.row.invalidStatus)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 完成情况包含3种"),a("br"),e._v("\n 1.完成拨打任务;"),a("br"),e._v("\n 2.完成任务(无需拨打);"),a("br"),e._v("\n 3.完成任务(放弃拨打);"),a("br"),e._v("\n 4.未完成任务\n ")]),e._v(" "),a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("完成情况")])])]},proxy:!0},{key:"default",fn:function(t){return[a("span",{staticClass:"point",style:"background:"+e.taskStyle[t.row.taskStatus]+";"}),e._v("\n "+e._s(t.row.isCompleted)+"\n ")]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.delTaskDetail)||e.$getButtonLimit(e.$buttonCode.previewTaskDetail)||e.$getButtonLimit(e.$buttonCode.resolveTaskDetail)?a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.delTaskDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delTaskDetail,type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.previewTaskDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.previewTaskDetail,type:"text"},on:{click:function(a){return e.getPreviewData(t.$index,t.row)}}},[e._v("预览")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.resolveTaskDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.resolveTaskDetail,type:"text"},on:{click:function(a){return e.getTaskDetail(t.row)}}},[e._v("完成详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("export-dialog",{attrs:{dialogVisible:e.exportDialog},on:{export:e.exportExcel,"update:dialogVisible":e.changeExportDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},on:{closePreview:e.closePreview},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}}),e._v(" "),e.taskDetailVisible?a("task-detail",{attrs:{taskData:e.taskDetail},on:{close:e.closeTaskDetail}}):e._e()],1)},staticRenderFns:[]};var k=a("VU/8")(_,w,!1,function(e){a("pBjQ")},"data-v-4c6396a0",null);t.default=k.exports}});
\ No newline at end of file
webpackJsonp([22],{"7YU7":function(t,e){},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Zx22"),s=a("Ch4/"),i=a("P9l9"),o=a("PI0u"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",filterValue:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部状态",value:""},{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"无需审核",value:"4"},{label:"审核失败",value:"5"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(o.a)(function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};Object(i.e)("/haoban-manage3-web/get-staff-info",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.userData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;Object(i.e)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this;t&&(e.currentPage=1),e.loading=!0;var a={wxEnterpriseId:e.wxEnterpriseId,auditStatus:e.filterValue,auditFlag:"1",search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.filterBrand};Object(i.a)("/haoban-manage3-web/audit/find-page",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],void(e.total=a.result.totalCount);s.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",2),this.getTableList(),this.getBrandData()},components:{storeChange:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"reviewed-body-head"},[a("el-input",{staticClass:"w-250",attrs:{maxlength:"50",placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.searchEnterFun(a,t.searchInput);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.getTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),t._v(" "),t._l(t.brandOptions,function(t){return a("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})})],2),a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("展示管理员审核记录及门店成员自助增删导购及用户关联记录")])],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("门店信息变更")]):t._e(),t._v(" "),2==e.row.auditType?a("span",[t._v("导购绑定")]):t._e(),t._v(" "),3==e.row.auditType?a("span",[t._v("导购新增")]):t._e(),t._v(" "),4==e.row.auditType?a("span",[t._v("导购删除")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.userData.headImg?a("img",{attrs:{src:t.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(t.userData.staffName||"--")+" ( "+t._s(t.userData.position||"--")+")\n ")]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==t.userData.nationCode?t.userData.phoneNumber:"+"+t.userData.nationCode+"-"+t.userData.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属部门:")]),a("span",{staticClass:"w-130"},[t._v(t._s(t.userData.departmentName||"--"))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[e.row.commitStaffImg?a("img",{attrs:{src:e.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[t._v(t._s(e.row.commitStaffName))]),t._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.row.commitStoreName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[6!=e.row.changeField?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),6==e.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditStatus||4==e.row.auditStatus?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditStatus?a("span",[t._v("已同意")]):t._e(),4==e.row.auditStatus?a("span",[t._v("无需审核")]):t._e(),t._v(" "),2==e.row.auditStatus||5==e.row.auditStatus?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.auditReason,placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v(t._s(5==e.row.auditStatus?"审核失败":"已拒绝"))])]):t._e()]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("7YU7")},"data-v-7b105b36",null);e.default=c.exports},CNus:function(t,e){},Zx22:function(t,e,a){"use strict";var n={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var n=new Date(t),s=n.getFullYear(),i=n.getMonth()+1,o=n.getDate();return s+e+a(i)+e+a(o)+e}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(t){a("CNus")},"data-v-5a02018c",null);e.a=i.exports}});
\ No newline at end of file
webpackJsonp([23],{"4N0h":function(e,t){},Ghuu:function(e,t){},"N+Ei":function(e,t){},xDJN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),i=a("exGp"),r=a.n(i),c=a("P9l9"),s=a("Ch4/"),l=a("PI0u"),d={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,loading:!1,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,loadingBtn:!1}},methods:{exportExcel:Object(l.a)(function(){this.loadingBtn=!0,this.conditionObj.dateRange||(this.conditionObj.dateRange=[]);var e={cardId:this.coupCardId,search:this.conditionObj.searchInput||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",gicEnterpriseId:this.brandId};this.postExcel(e)},300),postExcel:function(e){var t=this;Object(c.e)("/haoban-app-customer-web/cardCoupon/export-consume-card",e).then(function(e){var a=e.data;if(t.loadingBtn=!1,1==a.errorCode)return t.$confirm("核销记录正在生成中,次日可前往GIC报表中心下载","温馨提示",{confirmButtonText:"立即前往",showCancelButton:!1,type:"warning",center:!0}).then(function(){if(-1!=window.location.href.indexOf("gicdev"))return window.open("http://gicdev.demogic.com/gic-web/#/reportCenter"),!1;window.open("https://hope.demogic.com/gic-web/#/reportCenter")}).catch(function(){}),!1;s.a.errorMsg(a)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleClose:function(e){this.$emit("closeGetRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},300),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(c.e)("/haoban-app-customer-web/cardCoupon/find-receive-card-page",i).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;s.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"领取记录",visible:e.dialogVisible,width:"864px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-336",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10 w-330",staticStyle:{width:"330px"},attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticClass:"m-l-10 export-btn",attrs:{disabled:!e.tableData.length,type:"primary",loading:e.loadingBtn},on:{click:e.exportExcel}},[e._v("导出核销记录")])],1)]),e._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("4N0h")},"data-v-532a02d3",null).exports,h={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}},cardName:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,loading:!1,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,loadingBtn:!1}},methods:{exportExcel:Object(l.a)(function(){this.loadingBtn=!0,this.conditionObj.dateRange||(this.conditionObj.dateRange=[]);var e={coupCardId:this.coupCardId,searchType:this.conditionObj.searchType,search:this.conditionObj.searchInput||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",gicEnterpriseId:this.brandId};this.postExcelData(e)},300),postExcelData:function(e){var t=this;Object(c.b)("/haoban-app-customer-web/cardCoupon/export-send-card-page",e).then(function(e){if(t.loadingBtn=!1,!e)return s.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=t.cardName+"发送记录.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleClose:function(e){this.$emit("closeSendRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},300),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(c.e)("/haoban-app-customer-web/cardCoupon/find-send-card-page",i).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;s.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送记录",visible:e.dialogVisible,width:"820px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",[a("div",{staticClass:"el-alert el-alert--info m-b-20",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("导购进行卡券赠送,给用户分享卡券链接后,用户打开卡券链接,即会生成一条“发送记录”,"),a("br"),e._v("如果用户不打开卡券链接,不会有记录生成;非会员打开后,领取记录显示为非会员。")])])])]),e._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-345",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"272px"},attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticClass:"m-l-10 export-btn",attrs:{disabled:!e.tableData.length,type:"primary",loading:e.loadingBtn},on:{click:e.exportExcel}},[e._v("导出发送记录")])],1)]),e._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark",height:"450"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sendTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sendTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var b={components:{cardGetRecord:p,cardSendRecord:a("VU/8")(h,g,!1,function(e){a("N+Ei")},"data-v-bcafd5c4",null).exports},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",dateRange:"",searchInput:"",tableData:[],cardStatus:"",loading:!1,currentPage:1,pageSize:20,total:0,getRecordShow:!1,sendRecordShow:!1,coupCardId:"",cardName:"",options:[{label:"全部",value:""},{label:"已过期",value:2},{label:"正常",value:1}]}},filters:{percenteNum:function(e){return e>0?Number(100*e).toFixed(2)+"%":Number(e).toFixed(2)+"%"},formatStatusCode:function(e){var t="--";switch(e){case 1:t="正常";break;case 2:t="已过期"}return t}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(e){e||(this.dateRange=[]),this.currentPage=1,this.getTableList()},changeCardStatus:function(){this.currentPage=1,this.getTableList()},showGetRecord:function(e,t){this.coupCardId=t.coupCardId,this.getRecordShow=!0},closeGetRecord:function(){this.getRecordShow=!1},showSendRecord:function(e,t){this.coupCardId=t.coupCardId,this.cardName=t.cardName,this.sendRecordShow=!0},closeSendRecord:function(){this.sendRecordShow=!1},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;return r()(o.a.mark(function t(){var a,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(a=e).loading=!0,n={gicEnterpriseId:a.brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize,startDate:e.dateRange[0]||"",endDate:e.dateRange[1]||"",cardStatus:e.cardStatus},Object(c.e)("/haoban-app-customer-web/cardCoupon/find-card-log-page",n).then(function(e){var t=e.data;if(a.loading=!1,1==t.errorCode)return a.tableData=t.result.list||[],void(a.total=t.result.pageInfo.total);s.a.errorMsg(t)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})});case 4:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("卡券创建时间:")]),e._v(" "),a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),e._v(" "),a("el-select",{staticClass:"m-l-10",attrs:{placeholder:"卡券状态"},on:{change:e.changeCardStatus},model:{value:e.cardStatus,callback:function(t){e.cardStatus=t},expression:"cardStatus"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送数量")])])]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.issuingQuantity)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.getedQuantity))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("percenteNum")(t.row.getedRate)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.usageQuantity))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("percenteNum")(t.row.verificationRate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.saleAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券的导购总人数,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("导购人数")])])]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendMemberCount)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"150",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeStamp")(t.row.createTime))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"200",label:"卡券模板有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.templateValidity)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"100",label:"卡券状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{style:2==t.row.statusCode?"color:#F5222D":""},[e._v(" "+e._s(e._f("formatStatusCode")(t.row.statusCode)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showSendRecord(t.$index,t.row,"1")}}},[e._v("发送记录")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showGetRecord(t.$index,t.row,"2")}}},[e._v("领取记录")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),e.getRecordShow?a("card-get-record",{attrs:{brandId:e.brandId,coupCardId:e.coupCardId},on:{closeGetRecord:e.closeGetRecord}}):e._e(),e._v(" "),e.sendRecordShow?a("card-send-record",{attrs:{brandId:e.brandId,cardName:e.cardName,coupCardId:e.coupCardId},on:{closeSendRecord:e.closeSendRecord}}):e._e()],1)},staticRenderFns:[]};var m=a("VU/8")(b,f,!1,function(e){a("Ghuu")},"data-v-ef8181f2",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([23],{"3VO7":function(e,t){},GFsU:function(e,t){},Vecm:function(e,t){},r6vX:function(e,t){},x5Fx:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),o=r("c9no"),i=r("mvHQ"),n=r.n(i),l=r("fZjL"),c=r.n(l),p=r("feRM"),m=r("l46T"),d=r("Kkt8"),u=r("PI0u"),f=r("P9l9"),b=r("3E4D"),h=r("Ch4/"),g={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:m.a,limitTextarea:d.a,singleUpload:p.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{secretName:"",secretVal:"",enterpriseId:"",secretId:"",enterpriseName:""},rules:{secretName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],secretVal:[{required:!0,message:"请输入secret",trigger:"blur"}],enterpriseId:[{required:!0,message:"请选择关联商户",trigger:"change"}]},brandOptions:[]}},methods:{getBrandData:function(){var e=this;Object(f.g)("/haoban-manage3-web/wx-enterprise-list",{filteRight:1}).then(function(t){var r=t.data;1!=r.errorCode?h.a.errorMsg(r):r.result&&r.result.length&&(e.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={secretId:e.ruleForm.secretId,secretName:e.ruleForm.secretName,enterpriseId:e.ruleForm.enterpriseId,memberSecret:e.ruleForm.secretVal};Object(f.g)("/haoban-manage3-web/wx-enterprise-member-secret-set",t).then(function(t){var r=t.data;1==r.errorCode?(b.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):(e.$refs.ruleForm.resetFields(),e.$emit("submitText"),h.a.errorMsg(r))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){var t=this;c()(e).length&&t.$nextTick(function(){t.ruleForm=JSON.parse(n()(e))})}},mounted:function(){var e=this;e.getBrandData(),c()(e.editRow).length&&e.$nextTick(function(){e.ruleForm=JSON.parse(n()(e.editRow))})}},v={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.editRow.materialId?"编辑":"新建",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"小程序名称",prop:"secretName"}},[r("limitInput",{attrs:{inputWidth:402,inputValue:e.ruleForm.secretName,holder:"请输入小程序名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"secretName",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"secretName",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"secret",prop:"secretVal"}},[r("limitInput",{attrs:{inputWidth:402,inputValue:e.ruleForm.secretVal,holder:"请输入secret",getByType:"word",maxLength:80},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"secretVal",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"secretVal",t)}}})],1),e._v(" "),r("el-form-item",{attrs:{label:"关联商户",prop:"enterpriseId"}},[r("el-select",{staticClass:"w-402",attrs:{placeholder:"全部品牌"},model:{value:e.ruleForm.enterpriseId,callback:function(t){e.$set(e.ruleForm,"enterpriseId",t)},expression:"ruleForm.enterpriseId"}},e._l(e.brandOptions,function(t){return r("el-option",{key:t.enterpriseId,staticClass:"mult-line-select",attrs:{label:t.enterpriseName,value:t.enterpriseId}},[r("p",{staticClass:"line-20"},[e._v(e._s(t.enterpriseName))]),e._v(" "),r("div",{staticClass:"line-20 font-12 color-909399"},[e._v(e._s(t.brandName||"--"))])])}),1)],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var _=r("VU/8")(g,v,!1,function(e){r("3VO7")},"data-v-3469b7d1",null).exports,w=r("Dd8w"),x=r.n(w),C={props:{editRow:{type:Object,default:function(){return{}}}},components:{singleUpload:p.a},data:function(){return{dialogVisible:!0,ruleForm:{miniprogramName:"",appId:"",title:"",imageUrl:""},rules:{enterpriseId:[{required:!0,message:"请选择授权商户",trigger:"blur"}],miniprogramName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],appId:[{required:!0,message:"请输入AppID",trigger:"blur"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}]},options:[]}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(u.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){e&&t.$confirm("是否确认提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postSave()}).catch(function(){})})},300),postSave:function(){var e=this,t=x()({},e.ruleForm);t.miniprogramType=0,Object(f.g)("/haoban-manage3-web/save-miniprogram-setting",t).then(function(t){var r=t.data;1==r.errorCode?(b.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):(e.$refs.ruleForm.resetFields(),e.$emit("submitText"),h.a.errorMsg(r))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this;Object(f.b)("/haoban-manage3-web/wxa-enterprise-list",{}).then(function(e){var r=e.data;if(1==r.errorCode)return t.options=r.result||[],!1;h.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},chooseEnterprise:function(e){var t=this.options.filter(function(t){return t.enterpriseId===e})[0];this.ruleForm.miniprogramName=t.miniprogramName,this.ruleForm.appId=t.appId,this.ruleForm.title=t.title,this.ruleForm.imageUrl=t.imageUrl}},watch:{editRow:function(e){var t=this;c()(e).length&&t.$nextTick(function(){t.ruleForm=JSON.parse(n()(e))})}},mounted:function(){var e=this;e.getTableList(),c()(e.editRow).length&&e.$nextTick(function(){e.ruleForm=JSON.parse(n()(e.editRow))})}},y={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"edit"===e.editRow.type?"编辑":"获取小程序",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"授权商户",prop:"enterpriseId"}},[r("el-select",{attrs:{placeholder:"请选择授权商户",disabled:"edit"===e.editRow.type},on:{change:e.chooseEnterprise},model:{value:e.ruleForm.enterpriseId,callback:function(t){e.$set(e.ruleForm,"enterpriseId",t)},expression:"ruleForm.enterpriseId"}},e._l(e.options,function(e){return r("el-option",{key:e.value,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"小程序名称",prop:"miniprogramName"}},[r("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入小程序名称",type:"text",maxlength:"20"},model:{value:e.ruleForm.miniprogramName,callback:function(t){e.$set(e.ruleForm,"miniprogramName",t)},expression:"ruleForm.miniprogramName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"AppID:",prop:"appId"}},[r("el-input",{attrs:{"show-word-limit":"",placeholder:"请先选择授权商户",type:"text",maxlength:"80",disabled:!0},model:{value:e.ruleForm.appId,callback:function(t){e.$set(e.ruleForm,"appId",t)},expression:"ruleForm.appId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"标题:",prop:"title"}},[r("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入标题",type:"text",maxlength:"80"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"封面:",prop:"pic"}},[r("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",imgSrc:e.ruleForm.imageUrl,field:""},on:{"update:imgSrc":function(t){return e.$set(e.ruleForm,"imageUrl",t)},"update:img-src":function(t){return e.$set(e.ruleForm,"imageUrl",t)}}}),e._v(" "),r("p",{staticStyle:{"margin-top":"9px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("建议尺寸520*416,支持png、jpg、jpeg格式")])],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v(e._s("edit"===e.editRow.type?"保存":"确定"))])],1)])},staticRenderFns:[]};var S=r("VU/8")(C,y,!1,function(e){r("GFsU")},"data-v-67b68202",null).exports,F={props:{editRow:{type:Object,default:function(){return{}}},enterpriseId:String},components:{singleUpload:p.a},data:function(){return{dialogVisible:!0,ruleForm:{miniprogramName:"",appId:"",title:"",imageUrl:""},rules:{miniprogramName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],appId:[{required:!0,message:"请输入AppID",trigger:"blur"}],title:[{required:!0,message:"请输入标题",trigger:"blur"}]}}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(u.a)(function(e){var t=this,r=this;r.$refs[e].validate(function(e){if(e){if(!t.ruleForm.imageUrl)return t.$message.warning("请提供小程序的封面");r.postSave()}})},300),postSave:function(){var e=this,t=x()({},e.ruleForm,{enterpriseId:this.enterpriseId});t.miniprogramType=1,Object(f.g)("/haoban-manage3-web/save-miniprogram-setting",t).then(function(t){var r=t.data;1==r.errorCode?(b.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):(e.$refs.ruleForm.resetFields(),e.$emit("submitText"),h.a.errorMsg(r))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){var t=this;c()(e).length&&t.$nextTick(function(){t.ruleForm=JSON.parse(n()(e))})}},mounted:function(){var e=this;c()(e.editRow).length&&e.$nextTick(function(){e.ruleForm=JSON.parse(n()(e.editRow))})}},$={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"edit"===e.editRow.type?"编辑":"添加小程序",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"小程序名称",prop:"miniprogramName"}},[r("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入小程序名称",type:"text",maxlength:"20"},model:{value:e.ruleForm.miniprogramName,callback:function(t){e.$set(e.ruleForm,"miniprogramName",t)},expression:"ruleForm.miniprogramName"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"appId"}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("如何查看AppId:"),r("a",{attrs:{href:"https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html",target:"blank"}},[e._v("https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html")])]),e._v(" "),r("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("AppId")])])],1),e._v(" "),r("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入AppId",type:"text",maxlength:"80"},model:{value:e.ruleForm.appId,callback:function(t){e.$set(e.ruleForm,"appId",t)},expression:"ruleForm.appId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"标题",prop:"title"}},[r("el-input",{attrs:{"show-word-limit":"",placeholder:"请输入标题",type:"text",maxlength:"80"},model:{value:e.ruleForm.title,callback:function(t){e.$set(e.ruleForm,"title",t)},expression:"ruleForm.title"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"封面",prop:"pic"}},[r("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",imgSrc:e.ruleForm.imageUrl,field:""},on:{"update:imgSrc":function(t){return e.$set(e.ruleForm,"imageUrl",t)},"update:img-src":function(t){return e.$set(e.ruleForm,"imageUrl",t)}}}),e._v(" "),r("p",{staticStyle:{"margin-top":"9px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("建议尺寸520*416,支持png、jpg、jpeg格式")])],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v(e._s("edit"===e.editRow.type?"保存":"确定"))])],1)])},staticRenderFns:[]};var T=r("VU/8")(F,$,!1,function(e){r("Vecm")},"data-v-7eb19de1",null).exports,O={props:{},data:function(){return{openFlag:0,checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",tableH:window.screen.availHeight-464-126,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpid:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},wxObj:{secretType:1,secretVal:"",checkFlag:0,updateTime:null},contactObj:{secretType:2,secretVal:"",checkFlag:0,updateTime:null},haobanObj:{secretType:3,secretVal:"",checkFlag:0,updateTime:null},showWxError:!1,showContactError:!1,showHaobanError:!1,tableData:[],appTableData:[],addShow:!1,getAppShow:!1,appSetType:0,editRow:{},appEditRow:{},addAppShow:!1,addAppRow:{},wxShow:!1,wxDate:"",application:{secretVal:"",updateTime:null},paymentObj:{}}},computed:{},methods:{refeshDataWx:Object(u.a)(function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};Object(f.b)("/haoban-manage3-web/fresh-wx-friend",t).then(function(e){var t=e.data;if(1==t.errorCode)return b.a.showmsg("刷新成功","success"),!1;h.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},300),getRefreshTime:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};Object(f.b)("/haoban-manage3-web/get-fresh-detail",t).then(function(t){var r=t.data;if(1==r.errorCode)return e.wxDate=r.result||"",!1;h.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAgreeExternalFlag:function(e){var t=this;this.$confirm("请谨慎操作!开启后,将无法关闭。并需要在开启后,尽快完成好办后台欢迎语配置和联系运营开启external_userid转换,否则将影响企微&好办的使用。(可联系达摩运营人员进行协助)","提示",{confirmButtonText:"确认开启",cancelButtonText:"取消",type:"warning"}).then(function(){Object(f.b)("/haoban-manage3-web/agree_external_userid_flag",{openFlag:t.openFlag}).then(function(e){1==e.data.errorCode&&b.a.showmsg("操作成功","success")})}).catch(function(){t.openFlag=0==e?1:0})},getRefreshShow:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};Object(f.b)("/haoban-manage3-web/get-fresh-on-off",t).then(function(t){var r=t.data;if(1==r.errorCode)return e.wxShow=r.result||!1,!1;h.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},addSecret:function(){this.addShow=!0,this.editRow={}},getApp:function(){this.getAppShow=!0,this.editRow={type:"add"}},addApp:function(){this.addAppShow=!0,this.addAppRow={type:"add"}},toEdit:function(e,t){this.addShow=!0,this.editRow=t},toAppEdit:function(e,t){this.getAppShow=!0,this.appEditRow=s()({},t,{type:"edit"})},toAddAppEdit:function(e,t){this.addAppShow=!0,this.addAppRow=s()({},t,{type:"edit"})},closeText:function(){this.addShow=!1,this.editRow={}},closeAppText:function(){this.getAppShow=!1,this.appEditRow={}},closeAddApp:function(){this.addAppShow=!1,this.addAppRow={}},submitText:function(){this.addShow=!1,this.editRow={},this.getSecretData()},submitAppText:function(){this.getAppShow=!1,this.appEditRow={},this.getAppData()},submitAddApp:function(){this.addAppShow=!1,this.addAppRow={},this.getAppData()},toDel:function(e,t){var r=this;r.$confirm("确定删除当前小程序信息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postDel(t.secretId)}).catch(function(){})},toAppDel:function(e,t){var r=this;r.$confirm("确定删除当前小程序?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postAppDel(e,t)}).catch(function(){})},postDel:function(e){var t=this,r={secretId:e};Object(f.g)("/haoban-manage3-web/member-secret-del",r).then(function(e){var r=e.data;if(1==r.errorCode)return b.a.showmsg("删除成功","success"),void t.getSecretData();t.getSecretData(),h.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAppDel:function(e,t){var r=this,a={id:t.miniprogramSettingId};Object(f.g)("/haoban-manage3-web/del-miniprogram-setting",a).then(function(e){var t=e.data;if(1==t.errorCode)return b.a.showmsg("删除成功","success"),void r.getAppData();r.getAppData(),h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},saveSecret:Object(u.a)(function(e){var t={};return 1==e&&(t.wxSecretKey=String(this.wxObj.secretVal).trim(),this.showWxError=!this.wxObj.secretVal),2==e&&(t.contactSecret=String(this.contactObj.secretVal).trim()),(2!=e||""!=t.contactSecret)&&(3==e&&(t.contactSecret=String(this.haobanObj.secretVal).trim(),this.showHaobanError=!this.haobanObj.secretVal),(1!=e||!this.showWxError)&&((3!=e||!this.showHaobanError)&&void this.postSaveSecret(e,t)))},300),delSecret:function(){var e=this;this.$confirm("确定删除好办助手secret?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postDel(e.haobanObj.secretId)})},postSaveSecret:function(e,t){var r=this,a=1==e?"/wx-enterprise-wx-secret-set":2==e?"wx-enterprise-contact-secret-set":"wx-enterprise-haoban-secret-set";Object(f.g)("/haoban-manage3-web/"+a,t).then(function(e){var t=e.data;if(1==t.errorCode)return b.a.showmsg("操作成功","success"),r.getSecretData(),!1;r.getSecretData(),h.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},refeshData:Object(u.a)(function(){this.refreshData()},300),refreshData:function(e){var t=this,r={wxEnterpriseId:t.wxEnterpriseId};Object(f.b)("/haoban-manage3-web/wxEnterprise-refresh",r).then(function(e){var r=e.data;if(1==r.errorCode)return b.a.showmsg("刷新成功","success"),t.companyObj=r.result,!1;h.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getSecretData:function(){var e=this,t=this,r={wxEnterpriseId:t.wxEnterpriseId};Object(f.b)("/haoban-manage3-web/secret-list",r).then(function(r){var a=r.data;if(1==a.errorCode){t.tableData=[];var s=[];return a.result&&a.result.length&&(a.result.forEach(function(r){s.push(r.secretType),1==r.secretType&&(t.wxObj=r),2==r.secretType&&(t.contactObj=r),3==r.secretType&&(t.haobanObj=r),4==r.secretType&&t.tableData.push(r),5==r.secretType&&(e.application=r),6==r.secretType&&(e.paymentObj=r)}),s.includes(3)||(e.haobanObj={secretType:3,secretVal:"",checkFlag:0,updateTime:null})),!1}h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,r=this,a={wxEnterpriseId:r.wxEnterpriseId};Object(f.b)("/haoban-manage3-web/wxEnterprise-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.companyObj=a.result,t.openFlag=null===a.result.agreeExternalUseridFlag?0:a.result.agreeExternalUseridFlag,!1;h.a.errorMsg(a)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getTipData:function(){var e=this;Object(f.b)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(t){var r=t.data;1!=r.errorCode?h.a.errorMsg(r):e.checkShow=r.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAppData:function(){var e=this;Object(f.b)("/haoban-manage3-web/list-miniprogram-setting",{}).then(function(t){var r=t.data;1!=r.errorCode?h.a.errorMsg(r):e.appTableData=r.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getAppData(),this.getData(),this.getSecretData(),this.getTipData(),this.getRefreshShow(),this.getRefreshTime()},components:{setTip:o.a,secretSet:_,appSet:S,addCustomizeApp:T}},j={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-set-wrap"},[r("div",{staticClass:"company-set-content border-box"},[r("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[r("div",{staticClass:"line-h-32"},[r("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("企业微信基本信息")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.refreshStoreInfo)?r("el-button",{staticClass:"m-l-20",attrs:{"limit-code":e.$buttonCode.refreshStoreInfo,type:"text"},on:{click:e.refeshData}},[e._v("同步刷新 ")]):e._e()],1),e._v(" "),r("div",[e.checkShow?e._e():r("set-tip",{attrs:{tipText:e.tipText}})],1)]),e._v(" "),r("div",{staticClass:"company-info-body"},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"105px"}},[r("el-form-item",{attrs:{label:"企业名称"}},[r("span",{staticClass:"font-14 color-303133 p-r-10"},[e._v(e._s(e.companyObj.corpName))]),e._v(" "),r("el-tag",[e._v(" "+e._s(1==e.companyObj.contactFlag?"已认证":"未认证"))]),1==e.companyObj.contactFlag?r("span",{staticClass:"p-l-10 font-12 color-909399"},[e._v("认证到期 "+e._s(e._f("timeStampToYmd")(e.companyObj.verifiedEndTime)))]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"企业ID"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpid))])]),e._v(" "),r("el-form-item",{attrs:{label:"行业类型"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpIndustry)+" / "+e._s(e.companyObj.corpSubIndustry))])]),e._v(" "),r("el-form-item",{attrs:{label:"人员规模"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpScale))])]),e._v(" "),r("el-form-item",{attrs:{label:"地址"}},[r("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.location))])])],1)],1)]),e._v(" "),r("div",{staticClass:"company-set-content border-box"},[e._m(0),e._v(" "),r("div",{staticClass:"company-info-body secret-body"},[r("div",{staticClass:"m-b-20 secret-cell"},[r("span",{staticClass:"inline-block w-127"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("客户联系secret:")])])],1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:e.wxObj.secretVal,callback:function(t){e.$set(e.wxObj,"secretVal",t)},expression:"wxObj.secretVal"}}),e._v(" "),e.$getButtonLimit(e.$buttonCode.saveMemberSecret)?r("el-button",{staticClass:"m-l-20",attrs:{"limit-code":e.$buttonCode.saveMemberSecret,type:"text"},on:{click:function(t){return e.saveSecret("1")}}},[e._v("保存")]):e._e(),e.wxObj.updateTime?r("span",{staticClass:"m-l-20 font-12 color-909399"},[e._v("最后一次保存:"+e._s(e._f("formatTimeStamp")(e.wxObj.updateTime)))]):e._e(),r("span",{staticClass:"m-l-37 font-14 color-303133"},[r("span",{class:["iconfont-hb3",e.wxObj.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),r("span",{staticClass:"p-l-10"},[e._v(e._s(e.wxObj.checkFlag?"校验成功":"校验失败"))])]),e._v(" "),e.showWxError?r("div",{staticClass:"el-form-item__error m-l-137"},[e._v("请填写客户联系 secret")]):e._e()],1),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.haobanObj.secretVal,expression:"haobanObj.secretVal"}],staticClass:"m-b-20 secret-cell"},[r("span",{staticClass:"inline-block w-127"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用于获取登录小程序用户的手机号/姓名/部门信息",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("好办助手secret:")])])],1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:e.haobanObj.secretVal,callback:function(t){e.$set(e.haobanObj,"secretVal",t)},expression:"haobanObj.secretVal"}}),e._v(" "),r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(t){return e.saveSecret("3")}}},[e._v("保存")]),e._v(" "),r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:e.delSecret}},[e._v("删除")]),e._v(" "),e.haobanObj.updateTime?r("span",{staticClass:"m-l-20 font-12 color-909399"},[e._v("最后一次保存:"+e._s(e._f("formatTimeStamp")(e.haobanObj.updateTime)))]):e._e(),e._v(" "),r("span",{staticClass:"m-l-37 font-14 color-303133"},[r("span",{class:["iconfont-hb3",e.haobanObj.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),e._v(" "),r("span",{staticClass:"p-l-10"},[e._v(e._s(e.haobanObj.checkFlag?"校验成功":"校验失败"))])]),e._v(" "),e.showHaobanError?r("div",{staticClass:"el-form-item__error m-l-137"},[e._v("请填写好办助手 secret")]):e._e()],1),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.application.secretVal,expression:"application.secretVal"}],staticClass:"m-b-20 secret-cell"},[r("span",{staticClass:"inline-block w-127"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"注意:2021-10-22之后新增的企微应用,全部要求走代开发模式,请录入代开发应用secret,之前建立的应用不受影响",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("代开发应用secret:")])])],1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",value:e.application.secretVal,disabled:""}}),e._v(" "),e.haobanObj.updateTime?r("span",{staticClass:"m-l-20 font-12 color-909399"},[e._v("最后一次授权:"+e._s(e._f("formatTimeStamp")(e.application.updateTime)))]):e._e()],1),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.paymentObj.secretVal,expression:"paymentObj.secretVal"}],staticClass:"m-b-20 secret-cell"},[e._m(1),e._v(" "),r("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",value:e.paymentObj.secretVal,disabled:""}})],1),e._v(" "),r("div",{staticClass:"secret-cell m-b-20"},[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("会员小程序secret:")])]),e._v(" "),r("span",{staticClass:"p-l-10 font-14 color-303133 font-w-500"},[e._v("会员小程序信息")]),e._v(" "),r("div",{staticClass:"table-cell m-t-10 p-l-137"},[r("el-table",{ref:"multipleTable",staticClass:"no-empty-icon-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"小程序名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.secretName||"--"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"secret",width:"506"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.secretVal||"-- ")+" ")]),r("span",{class:["iconfont-hb3",t.row.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),r("span",{staticClass:"p-l-10"},[e._v(e._s(t.row.checkFlag?"校验成功":"校验失败"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"关联商户","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.enterpriseName||"--"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.editMemberAppsSecret)||e.$getButtonLimit(e.$buttonCode.delMemberAppsSecret)?r("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.editMemberAppsSecret)?r("el-button",{attrs:{"limit-code":e.$buttonCode.editMemberAppsSecret,type:"text"},on:{click:function(r){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.delMemberAppsSecret)?r("el-button",{attrs:{"limit-code":e.$buttonCode.delMemberAppsSecret,type:"text"},on:{click:function(r){return e.toDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])}):e._e()],1),e._v(" "),e.tableData.length<10&&e.$getButtonLimit(e.$buttonCode.addMemberAppsSecret)?r("div",{staticClass:"text-center add-cell cursor-pointer",attrs:{"limit-code":e.$buttonCode.addMemberAppsSecret},on:{click:e.addSecret}},[r("span",{staticClass:"el-icon-plus font-14 color-2f54eb add-cell-txt"}),r("span",{staticClass:"font-14 color-2f54eb p-l-5 add-cell-txt"},[e._v("新建")]),r("span",{staticClass:"font-12 color-c0c4cc p-l-20"},[e._v("最多添加10个")])]):e._e()],1)],1)]),e._v(" "),e.wxShow?r("div",{staticClass:"line-h-32 m-b-20"},[r("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("企微好友")]),e._v(" "),e.wxShow?r("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:e.refeshDataWx}},[e._v("同步刷新 ")]):e._e()],1):e._e(),e._v(" "),e.wxShow?r("div",[r("el-form",{ref:"wxForm",attrs:{"label-width":"115px"}},[r("el-form-item",[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",placement:"top-start"},slot:"label"},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("刷新企业里关联导购账号的导购添加的客户。每天最多1次,每月最多3次。"),r("br"),e._v("仅刷新好办关联导购的企业好友数据,所以会小于等于企业微信看到的客户总数。"),r("br"),e._v("点击刷新后当日凌晨更新数据。")]),e._v(" "),r("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("企微好友更新")])]),e._v(" "),r("span",{staticClass:"font-14 color-303133"},[e._v("更新时间:"+e._s(e._f("formatTimeStamp")(e.wxDate))+e._s(e.wxDate?"":"--"))])],1)],1)],1):e._e()]),e._v(" "),r("div",{staticClass:"company-set-content border-box"},[r("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[r("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",placement:"top-start"},slot:"label"},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("①小程序添加:用于小程序素材创建后群发小程序或配置欢迎语;"),r("br"),e._v("②获取小程序:用于获取商户绑定的小程序,创建后可用来配置欢迎语&小程序素材;"),r("br"),e._v("③添加小程序:用于自定义添加小程序,创建后可用来配置小程序素材")]),e._v(" "),r("p",{staticClass:"color-303133 font-14 font-w-600",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("小程序添加")])]),e._v(" "),r("div",[e.$getButtonLimit(e.$buttonCode.addAppsSecret)?r("el-button",{attrs:{"limit-code":e.$buttonCode.addAppsSecret,type:"primary"},on:{click:e.addApp}},[e._v("添加小程序")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.getAppsSecret)?r("el-button",{attrs:{"limit-code":e.$buttonCode.getAppsSecret,type:"primary"},on:{click:e.getApp}},[e._v("获取小程序")]):e._e()],1)],1),e._v(" "),r("div",{staticClass:"company-info-body"},[r("div",{staticClass:"table-cell m-t-10"},[r("el-table",{ref:"multipleTable",staticClass:"no-empty-icon-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.appTableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"小程序名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.miniprogramName||"--"))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"AppID",width:"239"},scopedSlots:e._u([{key:"header",fn:function(){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("如何查看AppId:"),r("a",{attrs:{href:"https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html",target:"blank"}},[e._v("https://jingyan.baidu.com/article/95c9d20d0545f9ec4e75612d.html")])]),e._v(" "),r("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("AppId")])])]},proxy:!0},{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.appId||"--"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"miniprogramType",label:"类型",width:"239"},scopedSlots:e._u([{key:"header",fn:function(){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("①默认:用于欢迎语&小程序素材"),r("br"),e._v("②自定义:用于小程序素材")]),e._v(" "),r("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("类型")])])]},proxy:!0},{key:"default",fn:function(t){var a=t.row;return[r("span",[e._v(e._s(1==a.miniprogramType?"自定义":"默认"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),r("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.editAppsSecret)||e.$getButtonLimit(e.$buttonCode.delAppsSecret)?r("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1!=t.row.miniprogramType?[e.$getButtonLimit(e.$buttonCode.editAppsSecret)?r("el-button",{attrs:{type:"text","limit-code":e.$buttonCode.editAppsSecret},on:{click:function(r){return e.toAppEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e()]:[e.$getButtonLimit(e.$buttonCode.editAppsSecret)?r("el-button",{attrs:{"limit-code":e.$buttonCode.editAppsSecret,type:"text"},on:{click:function(r){return e.toAddAppEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.delAppsSecret)?r("el-button",{attrs:{"limit-code":e.$buttonCode.delAppsSecret,type:"text"},on:{click:function(r){return e.toAppDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]]}}])}):e._e()],1)],1)])]),e._v(" "),e._e(),e._v(" "),e.addShow?r("secret-set",{attrs:{editRow:e.editRow},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.addAppShow?r("add-customize-app",{attrs:{editRow:e.addAppRow,enterpriseId:e.companyObj.corpid},on:{closeText:e.closeAddApp,submitText:e.submitAddApp}}):e._e(),e._v(" "),e.getAppShow?r("app-set",{attrs:{editRow:e.appEditRow,type:e.appSetType},on:{closeText:e.closeAppText,submitText:e.submitAppText}}):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"company-title m-b-20 m-t-30"},[t("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"inline-block w-127"},[t("span",{staticClass:"font-14 color-606266"},[this._v("企微支付secret:")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[t("p",{staticClass:"color-303133 font-14 font-w-600"},[this._v("授权配置")])])}]};var I=r("VU/8")(O,j,!1,function(e){r("r6vX")},"data-v-344c9840",null);t.default=I.exports}});
\ No newline at end of file
webpackJsonp([24,110],{"1M2D":function(t,e){},VWe9:function(t,e){},phd8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("PeHS"),c=a("DvcT"),o=a("/p6h"),d=a("RSOD"),u=a("PI0u"),m={name:"TargetGroup",props:{dataList:{type:Array,default:function(){return[]}}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"target-group"},t._l(t.dataList,function(e,i){return a("div",{key:i,staticClass:"target",style:{width:100/t.dataList.length+"%"}},[a("div",{staticClass:"target-label"},[t._v("\n "+t._s(e.label)+"\n "),e.tips?a("el-tooltip",{attrs:{placement:"top","popper-class":"target-tooltip"}},[a("div",{staticStyle:{"max-width":"450px"},attrs:{slot:"content"},domProps:{innerHTML:t._s(e.tips)},slot:"content"}),t._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined target-label-icon"})]):t._e()],1),t._v(" "),a("div",{staticClass:"target-value"},[t._v("\n "+t._s(e.value)),e.unit?a("span",{staticClass:"target-value-unit"},[t._v(t._s(e.unit))]):t._e()])])}),0)},staticRenderFns:[]};var v=a("VU/8")(m,p,!1,function(t){a("1M2D")},"data-v-1a7ed2fd",null).exports,h=a("X2mQ"),f=a("tqu3"),g=a("Q0Ca"),k=a("ckKa"),_={name:"actCodeDetail",components:{actCodeDetailInfo:c.default,previewPage:d.a,VueQr:h.a,targetGroup:v,newAddChart:f.default,dataDetail:o.default},props:{hmId:{type:String,default:""}},mixins:[k.a],data:function(){return{fixedHeight:280,filters:g.a,statisticsClerk:l.u,loading:!1,activeName:this.$route.query.type?this.$route.query.type:"first",link:{},page:{},originTargetList:[[{label:"添加好友人数",value:"",key:"addNumT",type:"number"},{label:"今日新增人数",value:"",key:"addNum",type:"number"}],[{label:"点击总人次",value:"",key:"clickTimesT",type:"number"},{label:"今日点击人次",value:"",key:"clickTimes",type:"number"}],[{label:"点击总人数",value:"",key:"clickNumT",type:"number"},{label:"今日点击人数",value:"",key:"clickNum",type:"number"}]],charData:[],welcome:{},targetData:{},scrollTop:0,linkId:this.$route.params.id}},computed:{targetList:function(){var t=this;return this.originTargetList.map(function(e){return e.filter(function(e){var a=t.targetData[e.key]||0;return e.value=a.toLocaleString(),!0})}).filter(function(t){return t.length>0})}},methods:{getChartList:function(){var t=this,e={linkId:this.linkId,startTime:this.dateDefault[0]+" 00:00:00",endTime:this.dateDefault[1]+" 23:59:59"};Object(l.t)(e).then(function(e){var a=e.data.result;t.charData=a||[]})},statisticsTotal:function(){var t=this;Object(l.v)({linkId:this.linkId}).then(function(e){var a=e.data.result;a&&(t.targetData=a)})},downloadQR:function(){var t=document.getElementById("qrImg");console.log(t);var e=t.getElementsByTagName("img")[0],a=document.createElement("a"),i=e.getAttribute("src");a.setAttribute("href",i),a.setAttribute("download",this.link.linkCode+"_"+this.link.name+".png"),a.click()},goEdit:function(){this.$router.push("/attractFlowLinkEdit/"+this.link.linkId)},getDetail:function(){var t=this;return r()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.loading=!0,Object(l.n)({linkId:t.linkId}).then(function(e){var a=e.data.result;if(a){var i=a.link,n=a.page,s=a.welcome;t.link=i,t.page=n,t.welcome=s}}).catch(function(t){this.$message.error({duration:1e3,message:t.message})}).finally(function(e){t.loading=!1});case 2:case"end":return e.stop()}},e,t)}))()},onDateChange:function(){this.dateKey=-1,this.getChartList()},scrollMethod:Object(u.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),handleClick:function(t){"first"==t.name?this.getDetail():this.getChartList()}},mounted:function(){this.getDetail(),this.statisticsTotal(),this.btnChange(0),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"info p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.link.linkType?a("vue-qr",{staticClass:"m-r-30",attrs:{id:"qrImg",text:t.link.linkUrl,size:200,margin:5}}):t._e(),t._v(" "),a("div",{staticClass:"title-right"},[a("el-descriptions",{attrs:{title:t.link.name}},[a("el-descriptions-item",{attrs:{label:"ID"}},[t._v(t._s(t.link.linkCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"code"}},[t._v(t._s(t.link.shortCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接类型"}},[a("el-tag",{class:2==t.link.linkType?"":"el-tag--cyan",attrs:{size:"mini"}},[t._v(t._s(1==t.link.linkType?"专用链接":"通用链接"))])],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.link.creatorName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.filters.formatTimeStamp(t.link.createTime)))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接标签"}},[a("el-tooltip",{attrs:{disabled:0!=t.link.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"mini",type:0==t.link.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.link.memberLabelName))])],1)],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接描述"}},[t._v(t._s(t.link.remark))])],1),t._v(" "),a("div",{staticClass:"m-t-10"},[2==t.link.linkType?a("el-button",{staticStyle:{width:"120px"},attrs:{icon:"iconfont-hb3 iconxiazai",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),2==t.link.linkType?a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:text",value:t.link.linkUrl,expression:"link.linkUrl",arg:"text"}],staticStyle:{width:"98px"},attrs:{type:"primary",plain:""}},[t._v("复制链接")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{plain:"",type:1==t.link.linkType?"primary":""},on:{click:t.goEdit}},[t._v("修改")])],1)],1)],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoLink)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoLink}},[a("act-code-detail-info",{attrs:{type:"actLink","enterprise-id":t.link.enterpriseId,"welcome-id":t.link.welcomeId}}),t._v(" "),a("dm-sub-title",[t._v("落地页配置")]),t._v(" "),a("div",{staticClass:"m-t-15"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"welcome-left-view"},[a("el-descriptions",{attrs:{column:1}},[a("el-descriptions-item",{attrs:{label:"页面标题"}},[t._v(t._s(t.page.pageTitle))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户名称"}},[t._v(t._s(t.page.merchantName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户电话"}},[t._v(t._s(t.page.merchantPhoneNumber))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户LOGO"}},[t.page.merchantLogo?a("img",{staticClass:"merchantLogo",attrs:{src:t.page.merchantLogo}}):t._e()]),t._v(" "),a("el-descriptions-item",{attrs:{label:"引导语"}},[t._v(t._s(t.page.guideComment))])],1)],1),t._v(" "),a("div",{staticClass:"preview"},[a("p",{staticClass:"previewTitle"},[t._v("落地页预览")]),t._v(" "),a("previewPage",{attrs:{data:t.page}}),t._v(" "),a("p",{staticClass:"previewBottom"},[t._v("此二维码只是样式预览效果,请勿直接使用")])],1)])])],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataLink)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataLink}},[a("div",{staticClass:"statistics"},[a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("概览")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkGl",arg:"linkGl"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("el-row",{attrs:{gutter:20}},t._l(t.targetList,function(t,e){return a("el-col",{key:e,attrs:{span:8}},[a("target-group",{attrs:{"data-list":t}})],1)}),1),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,i){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(e){return t.btnChange(i)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{staticStyle:{"margin-top":"26px"},attrs:{charData:t.charData,id:"new-add-chart"}}),t._v(" "),a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("查看明细")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkCkmx",arg:"linkCkmx"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{staticClass:"m-t-15",attrs:{id:t.linkId,typeT:"link",api:t.statisticsClerk}})],1)]):t._e()],1)],1)},staticRenderFns:[]};var y=a("VU/8")(_,b,!1,function(t){a("VWe9")},"data-v-475ac402",null);e.default=y.exports},s9IU:function(t,e){},tqu3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("5i7M"),c={data:function(){return{chart:null,maxNum:0,maxTimes:0}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){e.next=3;break}return e.abrupt("return");case 3:a=t.handleData(t.charData),t.chart=new l.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(a,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:t.maxNum>2?5:t.maxNum+1,tickMethod:"wilkinson-extended",nice:!0},times:{min:0,tickCount:t.maxTimes>2?5:t.maxTimes+1,tickMethod:"wilkinson-extended",nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(20, 201, 201, 1)","rgba(214, 179, 140, 1)"]),t.chart.line().position("date*times").color("type",["rgba(214, 179, 140, 1)"]),t.chart.render();case 15:case"end":return e.stop()}},e,t)}))()},handleData:function(t){var e=[],a=0,i=0;return t.forEach(function(t){t.clickNum>a&&(a=t.clickNum),t.clickTimes>i&&(i=t.clickTimes),e.push({date:t.bizDate,type:"新增人数",num:t.addNum}),e.push({date:t.bizDate,type:"点击人数",num:t.clickNum}),e.push({date:t.bizDate,type:"点击人次",times:t.clickTimes})}),this.maxNum=a,this.maxTimes=i,console.log(a,i),e}}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():e("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),e("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(c,o,!1,function(t){a("s9IU")},"data-v-1b1fc71a",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([24],{"TLd+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),o=a("5i7M"),r={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new o.a({container:this.id,width:this.width,autoFit:!0,height:420}),this.chart.data(this.charData),this.chart.scale({loginRate:{min:0,nice:!0,alias:"登录率"},date:{}}),this.chart.tooltip({crosshairs:{type:"line"},itemTpl:'<li style="padding-bottom:10px;">登录率: {value} %</li>'}),this.chart.axis("loginRate",{label:{formatter:function(t){return t+"%"}}}),this.chart.line().position("date*loginRate"),this.chart.render()}}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var i=a("VU/8")(r,s,!1,function(t){a("t4C2")},"data-v-7a731818",null).exports,l=a("ApSX"),c=a("P9l9"),u=a("Ch4/"),g=a("Q0Ca"),h={name:"activeDetail",data:function(){return{navpath:[{name:"好办使用详情",path:"/enterpriseUseData?brandId="+this.$route.query.brandId},{name:"区域登录明细",path:""}],selectStartDay:"",selectEndDay:"",selectTableDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0,charData:[]}},computed:{},methods:{changeTableDate:function(){this.getTableList()},checkGroupIds:function(t){this.groupIds=t,this.getTableList()},toRedirect:function(t){this.$router.push("/loginDetail?storeId="+t.xValue+"&brandId="+this.$route.query.brandId+"&selectTableDay="+this.selectTableDay)},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,startDate:t.selectTableDay,endDate:t.selectTableDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),selectType:t.selectRadio};Object(c.b)("/haoban-manage3-web/web/export-area-ranking-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return u.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="区域登录明细报表.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(c.a)("/haoban-manage3-web/web/area-ranking-date",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.loginRate=1e3*t.loginRate/10}),e.charData=a.result.result||[],!1;u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectTableDay,endDate:e.selectTableDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),pageSize:e.pageSize,currentPage:e.currentPage};Object(c.e)("/haoban-manage3-web/web/area-ranking-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result.list&&a.result.result.list.length&&a.result.result.list.forEach(function(t){t.loginRate=1e3*t.loginRate/10+"%"}),e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this;t.selectStartDay=g.a.timeStampToYmd((new Date).getTime()-6048e5),t.selectEndDay=g.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTableDay=g.a.timeStampToYmd((new Date).getTime()-864e5),t.$nextTick(function(){t.getTableList(),t.getTendData()}),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,areaChart:i,gicSelectGroupMult:l.a}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),n("div",{staticClass:"chart-body m-t-20"},[t.charData.length?n("area-chart",{attrs:{charData:t.charData,id:"area-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():n("div",{staticClass:"no-data-char"},[n("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),n("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),n("div",{staticClass:"table-search m-t-20"},[n("div",{staticClass:"flex flex-space-between"},[n("div",[n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeTableDate},model:{value:t.selectTableDay,callback:function(e){t.selectTableDay=e},expression:"selectTableDay"}}),n("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),n("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("当日筛选区域下门店总计为 "+t._s(t.total)+" 家:")])],1),t._v(" "),n("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{prop:"",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.xName||"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"门店区域","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||"--"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"登录率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginRate||"0%"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"登录人数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginClerkCnt||"0"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRedirect(e.row)}}},[t._v("查看人员名单")])]}}])})],1),t._v(" "),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天所有区域平均登录率趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var p=a("VU/8")(h,d,!1,function(t){a("u0Ly")},"data-v-4c1259a4",null);e.default=p.exports},cxaT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQUAAACMCAYAAAB1Xrw1AAAAAXNSR0IArs4c6QAAEmJJREFUeAHtnQuMVNUdxv9ndpfHIuwMyD5t0ZiqmFZrKkpbLSKIishDUWoViI0xVWs1Tfo0bWLaxERta0xbTYqJgKKNyqIiImrAEhW1tiW2xpJarLoPXjuzy7LC7s6cfmd27uyyDsvO7j0z98z9Npm973P+53fO+e55X2lqS2nzE/6RAAmQAAhESIEESIAEBhKgKAykwX0SIAGWFJgGSIAEjibAksLRPHhEAqEnQFEIfRIgABI4mgBF4WgePCKB0BOgKIQ+CRAACRxNgKJwNA8ehYxAq9YTQhbk4waXonBcRLyhVAm0xPXKVEISTXH9SkubvvVAlz6pVMOaT7iUN5qxYXJE5fMg7yUBlwlAEGZjGO9LWusKLxxKKTOy9x3RskHKpbF+kvrAuxamLUUhTLHNsKYJNB/U03WvvCFaRyEED+Dk3/BbAjGYp6W/OqEEohCR9bjWWFcl72ZEI+1GKf+jKJRy7DJsnyOwp1PXJHtkB0oIJyOTP1MXlWu8zI5z45sTMg9F5iUoMiyAaEzpd0B9irL0BqWksaZK/oJnevuvldYeRaG04pOhGYJAs9aVkpBtyPwzRNSO+phcjMz9Wa5HcE/ZnnaZpbUswXTBRSL6C9n7lGqDcDwP4Wisj8qWY7mRvd+xHYqCYxFGc0dGAJk80pKQ9dguQib+ryqXmXUT1b7hutbSrmdAIBZLypQi9HTvOVQxukTJZlQ9Gisj8kI0quLeNVe3FAVXY45250WgOa4fgCDcIXjLjymTb0ydpP6dlwMDbt7XoU/v6UUbhMJPBGKh0430pkqB0sO2CASiYpw8e2KlahrwmDO7FAVnooqGjpQABOEOZNwHIAhH0L9wSf1ktX2kbg1+bn+Xbug5LItTEAgowyz4U27ugUCgQCFv64g0jonIhtGI0GA/bR9TFGwTpvtFJYAxCIuQWU0PgkIGvb6hSj1hy6BEQse6NBoo+3oyLoUqVHp+oZrxPnoyNuAY7RDqr975IG4pCkGMFdrkC4F0O0ASDYvInMiUP0cJ4R5fHB6GIygxjEcbxqW41evJmNz/mPrE9GTguLE2KttNtaP/WvH3KArFjwNaYIEABiedjPq96XqsQaZ7pD6mbrLgzbCcNFWKTE/GYvRkLEZPRv/ISbRxwJHnyiAQNVF5Gbbm7A0Zlkc+3URR8AkknQkOgXhcRz/T8jpKCGcik72MsQjzg/I2hkCo1g4513R1ZnoyzvDIDezJGK9kYyymEt61Qm4pCoWkTb+sE0Cmq0Cx3Qxfno1M9t7YmFwwRakO6x6P0INMT8ZVmZ4MiEW2J6MHTm5Dc2Vj+Vh5duoE1TxCL/J+jKKQNzI+EGQC6GlYjYy1Au2KzePGycwpleqTINs70LahejJQsnjLNFSiJ6MRPRm7Bj7n9z5FwW+idK9oBNDTcDeGJv8SJYTOciXfqo6pvxfNmFF6bHoyUAW6Eu0i3pyMwT0ZjfDC9GS8O0qvPvc4ReFzSHjCRQJoWFyR0no12g6SKiIL66rUJhfDkcvmzPBs05OxGCJxJYQv5t0HAfwYVY8N5RVyT/UJqtU7P5otRWE09PhsIAgMnAYdEXVr3WT1UCAMs2AEqkbpnoykaajs68logBD2jBep9q1hkl+IshBzdLJgBFoO6jNRbYj3pWN9b8E8DoBHplESYzHOa05of7tbKQoBiF2aMCICZho0GhZ3mzSM7dNey/2IHONDWQJcji2LgjsuETD1bKyL8DyE4GQzDRpjEW5AMRpVbv6NlgBFYbQE+XzBCUAIIlgXYR22MyAEH0YqZCG2hwtuSIl6mJ7RVaJhY7BKlAAGJ/0OgrDITIOuKJP5U/NYF6FEkfgaLJYUfMVJx2wTQNvBnRCEH2SmQS+2PZDHdngC6T4bGgMZLTQqBwEzDRqikMQv1dSur8txC0/5QIAlBR8g0gn7BMw0aDQjmnaECPrn77K5LoL90ATcB5YUAh5BNE/MNGiUDlozXY+riMQuAZYU7PKl66MkYKZBYzLQJpQQzLoIZhr090bpJB8/DgGKwnEA8XLxCEAIKrDiyHqsizA9PQ06KkshDIFapah4dOz5TFGwx5Yuj5IAuh5XQRhmm2nQY8fJFUFeF2GUQQ3U4xynEKjooDEeATMNGoKwIjMNeoFL6yJ4YXB2y4ZGZ6OuZA0306AzjYq96HWYX7IBDWjAWH0IaMSE1azWhL4YExjSPQzogry9lNZFcCVOKQquxFQI7DTToLFOwDOmgRHtCPeV8roIQY5OikKQYydEtplp0Pg8/CasKmQ+D/80Pv76kxAFP1BBpSgEKjrCaUxmGvRGlBCmoYTwJsYiLIcwcBp0kZIDRaFI4OltHwEIQUQn5Alsz4UQmGnQ5qvQnAZdxATCLskiwqfXImYaNKoMCzkNOjipgSWF48RFS5u+FePul/Q1fh3nZl7OiwC4DpwGvYjToPPCZ+9mjlM4Nlsk2t94fDCYZj/6zx/EIpnnHvsJXhkuAbBdjB+nQQ8XWAHv4xLvOWCbem5LXB7CmPubUaztRpPXLux/OXurUrtwbg2O1+JLxh9nz3NnWATMCsQ6KVvBtOBfgx6WgWG/yXsThp2DF34IQhneYGv7uOiu5nZ9mbm2J67PxvnfNrfpFo8ZjlMoQbyKEsTKfVpP9Nzg9tgEBk2D/tOx7+SVohHwEnjRDAiQxxCEMcjozxgmyPwdSMCzBptnRMMMvW1q00/i1+Xxw/2H8OxjqF7MM/cMfo7HImYaNDi9n+FrPgLLhu4AJgxWHzKRggQ6HlUGM033MlQZ4mURuby2Sr01VJyZ0kF3u1yLqgQ+aCoXwg1l7scknhZ0sj9WViFraieqfw7lRliugc0Y9DRsxtaJr0GHJV5yhZOiACp7tT6hNyFm8Mws9JHvxWt+Xk1M7cwF7FjnUEqYBkVYkRK5AV1sp2XvU2onzq/Gt/6e8Otbf1m3HdoBnzXgu9xMg8bXoM/HrMdPHTI/XKZ6xd9whbo/tObrvijS7ujjoD9t7tBn9F8d2V5ru54JN/9oeiw8vsgUvTj3Aib8LEPmwKf/wvNnpkFnqgwH98b1OeEJuZshDXVJofWgrk72yha82c9GCWF3RMmc2qja7VdUIvObIvMCuLcc1Yn58GeMcRvViw78ewq7azCkdzv8xuXS/DONsPga9KMIY8l9Dbo0Ywzp0yi4CVzDZGSJEP3t79IN3YflFbQhnIFM+sGYcTL3xErVZAtBe7ue3JWU69DqsAJicZ7nDzLL/7C/Bh81eazUBu+YadBIXaYdoUJF1C31UfWwF25ug0sglKKAxHoKEuurSKynoFFxZ1m5zEOD4N5CRdO+Dn1aT0pWYqny62HDtH5/1Q4MMV1TWSZ/rqpSbf3n3dsz06BTvfI6SkdRvHvua5isfuxeKMJpcehEwbQZYIruKyK6ASWEtyrRyxCNqngxoh+CoFoTMguNkytQgbgapZZJaTvMgClBwycEoj4qL6I00V0M+0bq595OXdvbIzuM4MH2p1FFuhbbkq0ijZRTUJ8LlSiYAUhJkS1IrNVIpK+VR2UBdjqDEDmwyXSJLoEty9HecAmO+8Y6KHUA556MRND+UKXeDoKtQ9lgpkHj46+vwX4MB1dvYl2Ei8Gasx6Hghawa6ERBfQInJ9MyYsozsZQQthcF5OrkFixgnjw/sybFp9Zv96UIGDvWVkL+4ZXr4ZoPF4fS7dFZC8FYQdCEGlOSCNsNl+B/lDKZGb9JLU/CLbRhjwIeF1meTzi3K1mZCK6AzvS3WIYsYjEm+4FcCEge9r0WejOvB/2N3txheMUflsRrhsP6EyVIwCBgT0Ppm2M6wOm3SQAJtGEkRDwEtpInnXhGTN3wRuOjIy0Nlssd8H4ATYau01YIA7r8DvkxZsJG44fN9eKGTawvTMjCIdhzwUDTOeuawS8xOWa3cOxFwl1CQbOHDFhREJ9GJmmJNaPMMOrW+P6u6a0gF/Ki0OEsQXH95vSxXD4+HUP/MxOg0Y17dt+uUt3ikTAS1BF8t6at8ggNyCx9qYFAesiWPOoyA4jnF/E7y6UGD7w4jK9jeudCP8P9x3SdTZNNNOg4X+65ILtz2z6RbcLRMBLSAXyriDeYKbizcgQyUzmuLsgngbAE9OYipLR73MMr36xqV1fh5KSr8Or0YYw8GvQnAYdgDTgiwmlJgrm7eiFqSWhf+QLJMccQeavAAdTpF/vVZ8ME7zJO3D8CDLzRbhnVCNYOQ3asUSRj7leBsrnmaDei8T+i3TiRz0bayveElQ7C2mXGV5tWKB68aYX1xlGH6FE9Wv0Epyerz0QFLPuxNa0e6imBKkHJN+w8P4cBLyEkuOSU6eQ6O/NJPZeiINZ34B/gwjsbddfQmb+FX67vXhPM8MsUQjHbR0desqgR3Ie4vk1fc/rpgNd+qScN/GkuwS8xOFqCEwxuCmh/5BO3HHdjSrDUlfDUii7DTMI5yxk7lWoUrR7aQDH3fg14mdWr845lgPVj7vTrNu0mQb91ULZTH8KSMBLEAX00jevkHDNeoqP9oVBf8YvFOePFgzHm25EiMMmsEz31qR5YgCSEVtcm+m5CiFZmRYE3AfWl3vnuS0tAs4Oc0ZirsBaBeuwXYphy51KycK6mNpaWtFT2NCY7zliePV3MHPJDK/uLwWY4dWC7zyK3Ga4cxp0YeOl4L65WFJAwhyHN9vGzBstvqdDf73g4Ercw9Y2/RW009wHztnh1X1pRd9b4kEPffCcKylk1lN8DsIwG5Nu9mE54HnVMfWP0MekJQDgjNWrZQ7WfjCNtylMg14J7pwGbYl3IJx1qaRg+sbx9noj88Zqaj6opwcCIo0ggRIi4My6+1gc5UQsZ7YFi6OcgzfVR2VK5tZMxPRc/pEACfhKwAlRwPj9+p4j8jIE4Uwsn7Zr7FiZwyXCfU0HdIwEsgQCLwroJpvW0431FEWfil6G9/CBlUsgCHuyIeAOCZCArwQCPZXYLNShtWxHY9epqDK8M6FMLqo5gYLgawqgYyQwiEBgSwqmS6wnma4y1EAQtldE5YoqpQ4Osp+HJEACPhMIZEkBo+VmJJVsQwmhBlWGLRKVy6ZSEHyOejpHArkJBK6kgMEyF+qkbESj4iSUEJ5Fv/gybI/kNp9nSYAE/CYQqJKC+Yw7ArjZfP8AJYR1EISlFAS/o5zukcDQBAIjCph9twiNis9BECohBKuwBPtybHuHNp9XSYAEfCcQhBGNZqkwdD32GFuwfQBtCaNaFch3SHSQBMJEoNiigCrDTRCC9HqKZiWgMLFnWEkgkASKKQoQgzvwSy9RjgbGnwYSEI0igbARKJYoQASwLHm6ugBR0N8PG3eGlwQCS6AYogBBuCcjCEms5nNjYOHQMBIII4FCioJpQIQIpL83iGpDd2tCLwsjc4aZBIJMoGCDlyAI5ovEq7DM142Y6XgkouWa2ph6PshwaBsJhJFAQUQBgoCPk8hajFJchkFJhyJKFkEQXg0jcIaZBIJOwLooQBDGooTwFAThSghCuy6XK2onqdeDDob2kUBYCVgVhVatJ0AQNqDKMBdVhgOi5NKGSerdsMJmuEnABQLWRKGtTVcdjssLKCF8EyWEVlUuc+smqn+5AIU2kkCYCVgRBfP5sc6kvISqw9cgCB+Xl8mc6onqP2EGzbCTgCsErEyI6kzJ1UYQUGUwQnBhdRUFwZUEQTtJQGyNU8Csx9v3dupaIiYBEnCMgC1RcAwDzSUBEsgQsFJ9IF0SIAF3CVAU3I07Wk4CVghQFKxgpaMk4C4BioK7cUfLScAKAYqCFax0lATcJUBRcDfuaDkJWCFAUbCClY6SgLsEKAruxh0tJwErBCgKVrDSURJwlwBFwd24o+UkYIUARcEKVjpKAu4SoCi4G3e0nASsEKAoWMFKR0nAXQIUBXfjjpaTgBUCFAUrWOkoCbhLgKLgbtzRchKwQoCiYAUrHSUBdwlQFNyNO1pOAlYIUBSsYKWjJOAuAYqCu3FHy0nACgGKghWsdJQE3CVAUXA37mg5CVghQFGwgpWOkoC7BCgK7sYdLScBKwQoClaw0lEScJcARcHduKPlJGCFAEXBClY6SgLuEqAouBt3tJwErBCgKFjBSkdJwF0CFAV3446Wk4AVAhQFK1jpKAm4S4Ci4G7c0XISsEKAomAFKx0lAXcJUBTcjTtaTgJWCFAUrGCloyTgLgGKgrtxR8tJwAoBioIVrHSUBNwlQFFwN+5oOQlYIUBRsIKVjpKAuwQoCu7GHS0nASsEVFNbSltxmY6SAAk4SUAZqykMTsYdjSYBKwT+D+Hgm8rKD5qfAAAAAElFTkSuQmCC"},t4C2:function(t,e){},u0Ly:function(t,e){}});
\ No newline at end of file
webpackJsonp([25],{"/x7M":function(e,t){},XF7X:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),s=a.n(i),n=a("mvHQ"),l=a.n(n),o=a("fZjL"),r=a.n(o),c=a("woOf"),d=a.n(c),u=a("P9l9"),p=a("CMYX"),m=a("Ch4/"),g={props:{item:{type:Object,default:function(){return{}}},date:{type:[Array],default:function(){return[]}},storeId:"",ecmPlanName:""},components:{exportDialog:p.a},data:function(){return{enableDownloadCompleteData:0,loading:!1,dialogVisible:!0,activeName:"0",pageParams:{pageNum:1,pageSize:5,enterpriseId:"",taskId:""},total:0,tabsList:[{label:"全部",name:"0",params:null,type:"totalCount"},{label:"待发送",name:"1",params:0,type:"waitSendCount"},{label:"已发送",name:"2",params:1,type:"successCount"},{label:"发送失败",name:"3",params:2,type:"failCount"}],countList:{totalCount:0,waitSendCount:0,successCount:0,failCount:0},tableData:[],statusClassName:["bg-C0C4CC","bg-33AF4A","bg-F5222D"],statusLabel:["未发送","已发送","发送失败"],loadingBtn:!1,exportDialog:!1}},methods:{getInfo:function(){var e=this,t=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId;Object(u.b)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var a=t.data;1!=a.errorCode?m.a.errorMsg(a):e.enableDownloadCompleteData=a.result.enableDownloadCompleteData})},beforeExportExcel:function(){1==this.enableDownloadCompleteData?this.exportDialog=!0:this.exportExcel(0)},changeExportDialog:function(){this.exportDialog=!1,this.multipleSelection=[]},exportExcel:function(e){var t=this;this.loadingBtn=!0;var a="/haoban-task-manage-web/market/clue/export/store-view-task-detail-comp-detail",i={enterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,dataType:e,pageNum:this.pageParams.pageNum,pageSize:this.pageParams.pageSize,taskId:this.pageParams.taskId,storeId:this.storeId},s=this.date.length?"群发任务-门店视图-任务详情-完成详情_"+this.date[0]+"至"+this.date[1]+".xls":"群发任务-门店视图-任务详情-完成详情.xls";this.ecmPlanName&&(i.ecmPlanName=this.ecmPlanName,a="/haoban-task-manage-web/market/clue/export/plan-view-task-store-task-comp-detail",s=this.date.length?"群发任务-计划视图-任务门店详情-任务详情-完成详情_"+this.date[0]+"至"+this.date[1]+".xls":"群发任务-计划视图-任务门店详情-任务详情-完成详情.xls"),null!=this.tabsList[this.activeName].params&&(i.sendStatus=this.tabsList[this.activeName].params),Object(u.c)(a,i).then(function(e){if(t.loadingBtn=!1,!e.data)return m.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=document.createElement("a");i.download=s,i.style.display="none",i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),URL.revokeObjectURL(i.href),document.body.removeChild(i)}).catch(function(e){this.loadingBtn=!1,this.$message.error({duration:1e3,message:e.message})})},close:function(){this.$emit("close")},handleTabClick:function(e,t){this.pageParams.pageNum=1,this.getTableList()},handlePageChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getNum:function(){var e=this,t=this,a=s()({},t.pageParams);Object(u.b)("/haoban-task-manage-web/market/clue/web/member-send-count",a).then(function(t){var a=t.data;1==a.errorCode&&a.result?e.countList=d()(e.countList,a.result):m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(){var e=this;e.loading=!0;var t=d()({},e.pageParams,{sendStatus:e.tabsList[this.activeName].params});Object(u.b)("/haoban-task-manage-web/market/clue/web/task-member-list",t).then(function(t){var a=t.data;e.tableData=[],1==a.errorCode&&a.result?(e.tableData=Array.isArray(a.result.list)?a.result.list:[],e.total=a.result.pageInfo?a.result.pageInfo.total:0):m.a.errorMsg(a),e.loading=!1}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{item:function(e){var t=this;r()(e).length&&t.$nextTick(function(){t.pageParams=d()({},t.pageParams,JSON.parse(l()(e))),t.getNum(),t.getTableList()})}},mounted:function(){var e=this;r()(e.item).length&&e.$nextTick(function(){e.pageParams=d()({},e.pageParams,JSON.parse(l()(e.item))),e.getNum(),e.getTableList()}),this.getInfo()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"完成详情",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[a("div",[a("el-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.tabsList,function(t){return a("el-tab-pane",{key:t.name,attrs:{label:t.label+"("+e.countList[t.type]+")",name:t.name}})}),1),e._v(" "),a("el-tooltip",{attrs:{content:"导出结果中会员姓名、手机号等敏感信息将进行加密,实现隐私保护",placement:"top"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:0==e.enableDownloadCompleteData,expression:"enableDownloadCompleteData == 0"}],staticClass:"el-icon-warning-outline font-14 p-l-6 icon"})]),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportStoreDetailPop)?a("el-button",{staticClass:"btn",attrs:{"limit-code":e.$buttonCode.exportStoreDetailPop,loading:e.loadingBtn,type:"primary"},on:{click:e.beforeExportExcel}},[e._v("导出")]):e._e(),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"200"}},[a("el-table-column",{attrs:{prop:"memberName",label:"会员姓名","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"sendStatus",label:"发送状态",width:"176"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{class:["dot",e.statusClassName[t.row.sendStatus]]}),e._v(e._s(e.statusLabel[t.row.sendStatus]))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"failReasonDescription",label:"原因","show-overflow-tooltip":""}})],1),e._v(" "),a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"prev, pager, next",total:e.total,"page-size":e.pageParams.pageSize},on:{"current-change":e.handlePageChange}})],1),e._v(" "),a("export-dialog",{attrs:{dialogVisible:e.exportDialog},on:{export:e.exportExcel,"update:dialogVisible":e.changeExportDialog}})],1)},staticRenderFns:[]};var v=a("VU/8")(g,h,!1,function(e){a("cY56")},"data-v-1851f900",null).exports,b=a("FFFL"),f=a.n(b),w=a("3E4D"),k=a("PI0u"),A=a("jpPc"),C=a.n(A),S={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{groupSendTaskVO:{taskTitle:"",taskDescription:"",overdueTime:"",executeClerkName:""},materialDTOList:[]}}}},data:function(){return{file_icon:C.a,noticeData:{groupSendTaskVO:{taskTitle:"",taskDescription:"",overdueTime:"",executeClerkName:""},materialDTOList:[]},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=(new Date).getTime(),a=Number(e)-t;if(a<0)return"已逾期";var i=a%864e5,s=i%36e5;return Math.floor(a/864e5)+"天"+Math.floor(i/36e5)+"小时"+Math.floor(s/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={groupSendTaskVO:{taskTitle:"",taskDescription:"",overdueTime:"",executeClerkName:""},materialDTOList:[]},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;r()(e).length&&(a.noticeData=JSON.parse(l()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.groupSendTaskVO.overdueTime)},6e4))}},mounted:function(){var e=this;r()(e.previewData).length&&(e.noticeData=JSON.parse(l()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.groupSendTaskVO.overdueTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},D={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-card detail-content-top"},[a("div",{staticClass:"task-title"},[a("p",{staticClass:"font-16 color-242835 font-w-500 lh-23"},[e._v(e._s(e.noticeData.groupSendTaskVO.taskTitle))]),e._v(" "),a("p",{staticClass:"copyBtn"},[e._v("复制任务内容")])]),e._v(" "),a("p",{staticClass:"taskDescription"},[e._v(e._s(e.noticeData.groupSendTaskVO.taskDescription))]),e._v(" "),a("p",{staticClass:"implementor"},[e._v("执行人:"+e._s(e.noticeData.groupSendTaskVO.executeClerkName))]),e._v(" "),1===e.noticeData.groupSendTaskVO.taskStatus?a("p",{staticClass:"remain-time"},[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.groupSendTaskVO.overdueTime)))]):a("p",{staticClass:"finished font-12`"},[e._v("已完成")])]),e._v(" "),a("div",{staticClass:"detail-content-card detail-content-bottom"},[a("div",{staticClass:"title"},[e._v("群发素材内容")]),e._v(" "),a("ul",{staticClass:"source-material"},e._l(e.noticeData.materialDTOList,function(t){return a("li",{key:t,staticClass:"source-material-item"},[1===t.materialType?a("p",{staticClass:"source-material-item-text"},[e._v(e._s(t.materialContent))]):[a("img",{attrs:{src:5===t.materialType?e.file_icon:t.imgUrl,alt:""}}),e._v(" "),a("p",{staticClass:"source-material-item-title"},[e._v(e._s(t.materialTitle))])]],2)}),0)])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var _=a("VU/8")(S,D,!1,function(e){a("/x7M")},"data-v-22aee12e",null).exports,x={name:"storeDetail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],headDefault:f.a,loading:!1,dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,pageParams:{storeId:this.$route.params.id,finishOverStatus:"0",taskType:2,pageNum:1,pageSize:20,date:this.$store.state.salesDate},filterOpts:[],overdueOpts:[{label:"已逾期",value:1},{label:"未逾期",value:2}],total:0,tableData:[],overdueStyle:["none","#F5222D","#2F54EB"],taskStyle:["none","#F5222D","#33AF4A"],finishDetailShow:!1,finishDetail:{},previewData:{},previewVisible:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!this.multipleSelection.length)return w.a.showmsg("请选择任务","warning"),!1;this.loadingBtn=!0;var a="/haoban-task-manage-web/market/clue/export/store-view-task-detail",i=this.pageParams,s=i.finishOverStatus,n=i.taskType,l=i.pageNum,o=i.pageSize,r=i.date,c={enterpriseId:this.brandId,dataType:1,finishOverStatus:s,taskType:n,pageNum:l,pageSize:o,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.taskId}).join(","),storeId:this.$route.params.id};Array.isArray(r)&&2===r.length&&(c.startTime=r[0]+" 00:00:00",c.endTime=r[1]+" 23:59:59");var d=this.pageParams.date.length?"群发任务-门店视图-任务详情_"+c.startTime+"至"+c.endTime+".xls":"群发任务-门店视图-任务详情.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(c.ecmPlanName=this.$route.query.ecmPlanName,a="/haoban-task-manage-web/market/clue/export/plan-view-task-store-task-detail",c.ecmPlanId=this.$route.query.ecmPlanId,d=this.pageParams.date.length?"群发任务-计划视图-任务门店详情-任务详情_"+c.startTime+"至"+c.endTime+".xls":"群发任务-计划视图-任务门店详情-任务详情.xls"),Object(u.c)(a,c).then(function(e){if(t.loadingBtn=!1,!e.data)return m.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=document.createElement("a");i.download=d,i.style.display="none",i.href=URL.createObjectURL(a),document.body.appendChild(i),i.click(),URL.revokeObjectURL(i.href),document.body.removeChild(i)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loadingBtn=!1})},changeRoute:function(e){this.$router.push(e)},reFetch:Object(k.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=s()({},t.pageParams,{enterpriseId:this.brandId,storeId:t.$route.params.id});Array.isArray(a.date)&&2===a.date.length&&(a.startTime=a.date[0]+" 00:00:00",a.endTime=a.date[1]+" 23:59:59",delete a.date),this.$route.query.ecmPlanId&&(a.ecmPlanId=this.$route.query.ecmPlanId),Object(u.b)("/haoban-task-manage-web/market/clue/web/send-task-info-list",a).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):m.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},getFilterOpts:function(){var e=this;Object(u.b)("/haoban-task-manage-web/market/clue/web/query",{}).then(function(t){var a=t.data;1==a.errorCode&&a.result?(e.filterOpts=a.result,e.pageParams.finishOverStatus="0"):m.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showDetail:function(e){this.finishDetail={enterpriseId:this.brandId,taskId:e.taskId},this.finishDetailShow=!0},close:function(){this.finishDetailShow=!1,this.finishDetail={}},showPreview:function(e){var t=this,a={enterpriseId:this.brandId,taskId:e.taskId};Object(u.g)("/haoban-task-manage-web/market/clue/web/send-task-preview",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.previewData=a.result,void(t.previewVisible=!0);m.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closePreview:function(){this.previewData={}}},watch:{brandId:function(e){this.getTableList()}},mounted:function(){var e=this;e.getFilterOpts(),e.$nextTick(function(){e.getTableList()})},components:{salesleadsTaskinfo:v,detailPreview:_}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("筛选时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])])]),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("span",{staticStyle:{"font-size":"14px"}},[e._v("创建时间:")]),e._v(" "),a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}}),e._v(" "),a("el-select",{staticClass:"w-103 m-l-10",attrs:{slot:"prepend",placeholder:"所有完成情况"},on:{change:e.reFetch},slot:"prepend",model:{value:e.pageParams.finishOverStatus,callback:function(t){e.$set(e.pageParams,"finishOverStatus",t)},expression:"pageParams.finishOverStatus"}},e._l(e.filterOpts,function(e){return a("el-option",{key:"filter"+e.id,attrs:{label:e.text,value:e.id}})}),1),e._v(" "),a("el-input",{staticClass:"w-260 m-l-10",attrs:{placeholder:"请输入任务标题","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch},model:{value:e.pageParams.taskTitle,callback:function(t){e.$set(e.pageParams,"taskTitle",t)},expression:"pageParams.taskTitle"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportStoreDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportStoreDetail,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务标题","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskTitle||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-align-center personal-info"},[a("el-image",{attrs:{src:t.row.executeClerkClerkImgUrl||e.headDefault,fit:"cover"}}),e._v(" "),a("div",[a("p",{staticClass:"color-303133 line-20"},[e._v(e._s(t.row.executeClerkName||"--"))]),e._v(" "),a("p",{staticClass:"color-909399 line-20"},[e._v(e._s(t.row.executeClerkPhoneNum||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间","min-width":"122"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-20"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-20"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","min-width":"122"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-20"},[e._v(e._s(e._f("timeStampToYmd")(t.row.overdueTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-20"},[e._v(e._s(e._f("timeStampToHms")(t.row.overdueTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况/逾期失效","min-width":"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"point",style:"background:"+e.overdueStyle[t.row.overdueStatus]+";"}),e._v(e._s(1===t.row.overdueStatus?"已逾期":2===t.row.overdueStatus?"未逾期":"")+"/"+e._s(e._f("formatInvalidStatus")(t.row.invalidStatus)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.taskStatus?a("span",{staticClass:"point",style:"background:"+e.taskStyle[t.row.taskStatus]+";"}):e._e(),e._v(e._s(1===t.row.taskStatus?"未完成":2===t.row.taskStatus?"已完成":""))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成详情","min-width":"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" 待发送:"+e._s(t.row.waitSendCount)+",已发送:"+e._s(t.row.successCount)+",发送失败:"+e._s(t.row.failCount)+" ")]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkStoreDetail)||e.$getButtonLimit(e.$buttonCode.previewStoreDetail)?a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkStoreDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkStoreDetail,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("详情")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.previewStoreDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.previewStoreDetail,type:"text"},on:{click:function(a){return e.showPreview(t.row)}}},[e._v("预览")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.pageParams.pageNum,"page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),e.finishDetailShow?a("salesleads-taskinfo",{attrs:{item:e.finishDetail,date:e.pageParams.date,storeId:e.$route.params.id,ecmPlanName:e.$route.query.ecmPlanName},on:{close:e.close}}):e._e(),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},on:{closePreview:e.closePreview},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)])])])])])},staticRenderFns:[]};var I=a("VU/8")(x,y,!1,function(e){a("gOhb")},"data-v-a504b3d4",null);t.default=I.exports},cY56:function(e,t){},gOhb:function(e,t){},jpPc:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTA4NjhCNkE4MkIwMTFFQTk2OTg4Nzc1QjJFODY0MTkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTA4NjhCNkI4MkIwMTFFQTk2OTg4Nzc1QjJFODY0MTkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5MDg2OEI2ODgyQjAxMUVBOTY5ODg3NzVCMkU4NjQxOSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5MDg2OEI2OTgyQjAxMUVBOTY5ODg3NzVCMkU4NjQxOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PkrNjp0AAAJzSURBVHja7NqxaxNRHMDx313OXhUUjWlpCW0iiEXBQURwca04Obn1L+hacBO6dHFxc3R0KQ5uRXBy6CCCWxsDtaLSnoU2tSVN0vPOd+DgUPAOc33v7n2/8EiGJBd+n9xdjsSJ41j+leM4cm9++5q6+1StWbXOSoG6ddPf3ArCG8uLY0entc00c01y0zxIDX9G3bxX62HRhp9Uq7rNqbrXfrS4Y9x7d1M+LvnkX5ACV6tW6iYipAWYlRJkIkJagFEpSaYhuGJhJiFYCWASgrUApiBYDWACgvUAuhEA0IwAgGYEADQjAKAZAQDNCABoRgBAMwIAmhEAyIBQn/TW7y8EPgCaGq9VpmeujrSGiQBAxibGK41hIgCgGcEKgCgyF8EKgP4gNnZPsAJgtxPl9tr/i2AFwNfvobHnBCsADg4j2dg8NhLBs+Wby6eNY3FcR65Me7kiiIy0ZCFI/knYB+Cvkr9qrrcHsv0jlObUGaledMX3nfwQRJoAnFBnP5KP+/28N9PgHFCQAAAAAAIAAAIAAAIAAAIAAAIAAAIAAAIAAMq5XH6SbEx6sjR/uTRDWnqxJ2ufB+wBHIIIAAAIAAAIAADI3Auxbi+WD2v90gzpoBsVC2Bn75c8e9nh480hCAACAAACAAACAAA6rQuxsUsVmXtwvjRDWn57KN+CsDgA50YduX3dLw3AymqXQxDnAAIAAAIAAAIAADL7QuzLVihzTwKmyx4AAAEAAAEAAAEAAAEAAAEAAAEAAGUE6DGqTPWGDbDCTDP1ZtgAj9XaZa6p+vlnXsMDePd8oq1u7qr1Sq0jZnxiyVxeq3VHzauV9km/BRgAED66MJa3+V8AAAAASUVORK5CYII="}});
\ No newline at end of file
webpackJsonp([26,66],{Nezr:function(t,e){},hK2g:function(t,e){},nExe:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"salutatoryIndex",components:{salutatory:a("xWf4").default},data:function(){return{activeName:1}},mounted:function(){sessionStorage.getItem("activeName")&&(this.activeName=Number(sessionStorage.getItem("activeName")))},activated:function(){sessionStorage.getItem("activeName")&&(this.activeName=Number(sessionStorage.getItem("activeName")))},destroyed:function(){sessionStorage.setItem("activeName",1)},watch:{activeName:function(t){sessionStorage.setItem("activeName",t)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"salutatory"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"普通欢迎语",name:1}},[1==t.activeName?a("salutatory",{attrs:{type:t.activeName}}):t._e()],1),t._v(" "),a("el-tab-pane",{attrs:{label:"特殊欢迎语",name:2}},[2==t.activeName?a("salutatory",{attrs:{type:t.activeName}}):t._e()],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(i,n,!1,function(t){a("Nezr")},"data-v-71e32d54",null);e.default=o.exports},xWf4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("P9l9"),l=a("PI0u"),s=a("+hGG"),r={data:function(){return{form:{title:"",pageSize:20,pageNum:1},dialogVisible:!1,welcomeId:"",total:0,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",friendSettingId:"",btnLoading:!1,iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},tableData:[],loading:!1}},mounted:function(){this.getData()},activated:function(){this.getData()},props:{type:{type:[Number,String],default:1}},components:{relationDialog:s.default},watch:{type:function(t){this.form={title:"",pageSize:20,pageNum:1},this.getData()}},methods:{toInput:Object(l.a)(function(t,e){this.getData()},500),clearSearch:function(){this.getData()},changeRoute:function(t){this.$router.push({path:"/editSalutatorySet",query:{id:t.welcomeId,isDefalut:t.defaultWelcomeFlag,type:t.type}})},addSalutatory:function(){this.$router.push({path:"/salutatorySet",query:{type:this.type}})},remove:function(t){2==t.type?this.delType2(t):this.delType1(t)},delType1:function(t){var e=this,a="模板删除后将无法恢复";1==t.defaultWelcomeFlag&&(a="此条欢迎语为全员欢迎语,删除后可能影响欢迎语发送"),this.$confirm(a,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})})},delType2:function(t){var e=this;Object(o.b)("/haoban-manage3-web/welcome/statistics",{welcomeId:t.welcomeId}).then(function(a){var i=a.data.result,n="";i?(i.qrCodeReferNum&&i.linkReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+")、链接("+i.linkReferNum+"),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板":i.qrCodeReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+"),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板":i.linkReferNum&&(n="当前欢迎语已关联链接("+i.linkReferNum+"),请确认相关链接已投放结束,解除关联后才可删除该模板"),e.$confirm(n,"无法删除该欢迎语",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(){e.showRelateDetail(t)})):(n="欢迎语删除后将无法恢复",e.$confirm(n,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})}))})},showRelateDetail:function(t){this.dialogVisible=!0,this.welcomeId=t.welcomeId},goLinkDetail:function(t){2==t.type?window.open("/haoban-3/#/actCodeDetail?hmId="+t.referId):window.open("/haoban-3/#/attractFlowLinkInfo/"+t.referId)},getData:function(){var t=this;this.loading=!0,Object(o.f)("/haoban-manage3-web/welcome/list",n()({},this.form,{wxEnterpriseId:this.wxEnterpriseId,type:this.type})).then(function(e){var a=e.data;0==a.code&&a.result&&(t.tableData=a.result.result,t.tableData.forEach(function(t){t.suitDepartmentName=[],t.suitDepartmentList&&t.suitDepartmentList.length&&t.suitDepartmentList.forEach(function(e){t.suitDepartmentName.push(e.departmentName)})}),t.total=a.result.totalCount,t.$nextTick(function(){var e=document.createElement("span");e.style.position="fixed",e.style.opacity=0,e.style.visibility="hidden";var a=t.$refs.title&&t.$refs.title.offsetWidth-85;t.tableData.map(function(t){return e.innerHTML=t.title,document.body.appendChild(e),t.isOverflow=e.offsetWidth>a,t}),document.body.removeChild(e)}))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getData()},handleCurrentChange:function(t){this.form.pageNum=t,this.getData()}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"admin-tip-body"},[1==t.type?a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(0)]):a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-20 m-t-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入标题",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addSalutatory,type:"primary"},on:{click:t.addSalutatory}},[t._v("新建欢迎语")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"标题",width:"200",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{ref:"title"},[i.isOverflow?a("el-tooltip",{attrs:{placement:"top",content:i.title}},[a("span",{staticClass:"title-text"},[t._v(t._s(i.title))])]):a("span",[t._v(t._s(i.title))]),t._v(" "),1==i.defaultWelcomeFlag?a("el-tag",{attrs:{size:"mini"}},[t._v("默认欢迎语")]):t._e()],1)}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"welcomeContent",label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.welcomeContent))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"附件",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.welcomeMediaList&&i.welcomeMediaList.length?a("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t._l(i.welcomeMediaList,function(e){return a("div",{key:e.welcomeMediaId,staticClass:"flexBox"},[a("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:t.iconType[e.mediaType],size:"16"}}),t._v(" "),a("span",{staticClass:"popverText"},[t._v(t._s(e.mediaTitle))])],1)}),t._v(" "),i.welcomeMediaList&&i.welcomeMediaList.length?a("div",{staticClass:"flexBox",attrs:{slot:"reference"},slot:"reference"},[a("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{iconname:t.iconType[i.welcomeMediaList[0].mediaType],size:"40"}}),t._v(" "),a("span",{staticClass:"wrapText"},[t._v(" "+t._s(i.welcomeMediaList[0].mediaTitle))])],1):t._e()],2):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("formatTimeStamp")(a.updateTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"creatorName",label:"创建人",width:"120","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"modifierName",label:"操作人",width:"120","show-overflow-tooltip":""}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{prop:"suitDepartmentName",label:"适用范围",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.defaultWelcomeFlag?a("div",[a("div",[t._v("全体成员")])]):a("div",[i.suitDepartmentName.join(",").length>40?a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(",").slice(0,40)+"...")+"\n ")]):a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(","))+"\n ")])])]}}])}):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)||t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-table-column",{attrs:{label:"操作",width:2==t.type?220:180,fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2==i.type,expression:"row.type == 2"}],attrs:{type:"text"},on:{click:function(e){return t.showRelateDetail(i)}}},[t._v("关联详情")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editSalutatory,type:"text"},on:{click:function(e){return t.changeRoute(i)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delSalutatory,type:"text"},on:{click:function(e){return t.remove(i)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),a("relation-dialog",{attrs:{dialogVisible:t.dialogVisible,id:t.welcomeId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e},goLinkDetail:t.goLinkDetail}}),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.form.pageNum,"page-sizes":[20,40,60,80],"page-size":t.form.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 1、若使用此处的好办欢迎语,请关闭企微欢迎语或其他自建应用/第三方应用的欢迎语配置,否则会产生冲突,好办欢迎语不生效。"),e("br"),this._v("\n 2、在使用此处好办欢迎语的情况下,只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语。 "),e("br"),this._v("\n 3、可按照企微不同的组织架构来分别配置不同的欢迎语。(若某企微员工在多个企微部门,或者某企微部门配置了多条欢迎语,则仅发送“更新时间”最新的那条欢迎语) "),e("br"),this._v("\n 4、创建欢迎语时,可在欢迎语内容中配置“带参会员小程序/带参公众号二维码”,以便于在“不同开平”的情况下,保证“客户”身份与“好友”身份的对应,"),e("a",{staticStyle:{color:"#2f54eb"},attrs:{href:"https://www.yuque.com/exnmlu/oo64hg/bsabp2",target:"_blank"}},[this._v("详见>>>")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 作为一个“欢迎语库”,下方所创建的欢迎语将可被不同模块进行引用,如【活码管理】中的活码欢迎语、链接欢迎语。\n ")])])}]};var u=a("VU/8")(r,c,!1,function(t){a("hK2g")},"data-v-737714c8",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([27],{"1arA":function(t,e){},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Zx22"),n=a("Ch4/"),o=a("P9l9"),i=a("PI0u"),l={name:"reviewed",data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",filterValue:"",filterOptions:[{label:"全部状态",value:""},{label:"已同意",value:"1"},{label:"已拒绝",value:"2"},{label:"无需审核",value:"4"},{label:"审核失败",value:"5"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(i.a)(function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};Object(o.g)("/haoban-manage3-web/get-staff-info",a).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):e.userData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getTableList:function(t){var e=this;t&&(e.currentPage=1),e.loading=!0;var a={wxEnterpriseId:e.wxEnterpriseId,auditStatus:e.filterValue,auditFlag:"1",search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(o.b)("/haoban-manage3-web/audit/find-page",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],void(e.total=a.result.totalCount);n.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{storeChange:s.a}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"reviewed-body-head"},[a("el-input",{staticClass:"w-250",attrs:{maxlength:"50",placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.searchEnterFun(a,t.searchInput);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),t._v(" "),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"}},[a("el-option",{attrs:{label:"全部品牌",value:""}})],1),t._v(" "),a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("展示管理员审核记录及门店成员自助增删导购及用户关联记录")])],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("门店信息变更")]):t._e(),t._v(" "),2==e.row.auditType?a("span",[t._v("导购绑定")]):t._e(),t._v(" "),3==e.row.auditType?a("span",[t._v("导购新增")]):t._e(),t._v(" "),4==e.row.auditType?a("span",[t._v("导购删除")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.userData.headImg?a("img",{attrs:{src:t.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(t.userData.staffName||"--")+" ( "+t._s(t.userData.position||"--")+")\n ")]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==t.userData.nationCode?t.userData.phoneNumber:"+"+t.userData.nationCode+"-"+t.userData.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属部门:")]),a("span",{staticClass:"w-130"},[t._v(t._s(t.userData.departmentName||"--"))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[e.row.commitStaffImg?a("img",{attrs:{src:e.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[t._v(t._s(e.row.commitStaffName))]),t._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.row.commitStoreName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[6!=e.row.changeField?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),6==e.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditStatus||4==e.row.auditStatus?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditStatus?a("span",[t._v("已同意")]):t._e(),4==e.row.auditStatus?a("span",[t._v("无需审核")]):t._e(),t._v(" "),2==e.row.auditStatus||5==e.row.auditStatus?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.auditReason,placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v(t._s(5==e.row.auditStatus?"审核失败":"已拒绝"))])]):t._e()]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(t){a("1arA")},"data-v-63db8cfc",null);e.default=c.exports},Zx22:function(t,e,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var s=new Date(t),n=s.getFullYear(),o=s.getMonth()+1,i=s.getDate();return n+e+a(o)+e+a(i)+e}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(s,n,!1,function(t){a("me3A")},"data-v-54c72d9a",null);e.a=o.exports},me3A:function(t,e){}});
\ No newline at end of file
webpackJsonp([28],{A7Xs:function(e,t){},JwJ7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("fZjL"),s=a.n(i),o=a("LRn8"),n=a("fPyK"),l=a("swl+"),r=a("P9l9"),c=a("Ch4/"),d=a("3E4D"),m={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,loading:!0,selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"所以完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所以逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,previewVisible:!1,previewData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(r.g)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getPreviewData:function(e,t){var a=this,i={storeId:a.conditionObj.storeId,taskId:t.taskId,clerkId:t.clerkId};a.previewVisible=!0,Object(r.g)("/haoban-app-daily-three-web/daily/get-daily-report-detail",i).then(function(e){var t=e.data;if(1==t.errorCode)return a.previewData=t.result,void(a.previewVisible=!0);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!s()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,chooseAll:t.selectRadio};Object(r.g)("/haoban-app-daily-three-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={taskId:t.taskId};Object(r.b)("/haoban-app-daily-three-web/daily/delete-task-items",i).then(function(t){var i=t.data;if(1==i.errorCode)return d.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(i)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=window.location.origin+"/haoban3web/pages/hbapp/daily/html/task/taskDailyReport.html?taskId="+t.taskId+"&gicStoreId="+this.conditionObj.storeId+"&gicClerkId="+t.clerkId+"&isShare=1";this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this;t.loading=!0;var a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(r.b)("/haoban-app-daily-three-web/daily/page-store-task",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);c.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},components:{multipleDel:o.a,qrcodeDialog:n.a,detailPreview:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-162",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-select",{staticClass:"w-162 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelReportDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelReportDetail,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e()],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+(e.userData.nationCode||"--")+"-"+(e.userData.phoneNumber||"--")))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName||"--"))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operationStaffName||"--"))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.delReportDetail)||e.$getButtonLimit(e.$buttonCode.showReportDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.delReportDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delReportDetail,type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.showReportDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.showReportDetail,type:"text"},on:{click:function(a){return e.handlePreview(t.$index,t.row)}}},[e._v("预览")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("A7Xs")},"data-v-b008494a",null);t.default=f.exports},RKnz:function(e,t){},"swl+":function(e,t,a){"use strict";var i=a("mvHQ"),s=a.n(i),o=a("fZjL"),n=a.n(o),l={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{noticeData:{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var i=a%864e5,s=i%36e5;return Math.floor(a/864e5)+"天"+Math.floor(i/36e5)+"小时"+Math.floor(s/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;n()(e).length&&(a.noticeData=JSON.parse(s()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(s()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.lastTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-top border-box"},[a("div",{staticClass:"task-title font-14 color-303133 font-w-500"},[e._v(e._s(e.noticeData.title))]),e._v(" "),a("div",{staticClass:"task-des font-12 color-303133 font-w-400"},[e._v(e._s(e.noticeData.taskDescription))]),e._v(" "),a("div",{staticClass:"task-over font-10 color-fd6b6d font-w-400"},[1==e.noticeData.taskStatus?a("span",[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.lastTime)))]):e._e(),e._v(" "),2==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e(),e._v(" "),3==e.noticeData.taskStatus?a("span",[e._v("已放弃")]):e._e(),e._v(" "),4==e.noticeData.taskStatus?a("span",[e._v("已逾期")]):e._e(),e._v(" "),5==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e()]),e._v(" "),a("div",{staticClass:"task-people"},e._l(e.noticeData.taskRecordList,function(t,i){return a("div",{key:i+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont-hb3 icondingwei font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-606266 opt-content"},[e._v(e._s(t.optContent))])]),e._v(" "),a("div",{class:["task-item-date",i!=e.noticeData.taskRecordList.length-1?"item-border":""]},[a("span",{staticClass:"p-l-14 font-10 color-909399"},[e._v(e._s(t.optTime))])])])}),0)]),e._v(" "),a("div",{staticClass:"detail-content-bottom border-box m-t-10"},[a("div",{staticClass:"user-info flex "},[a("div",{staticClass:"user-photo"},[a("img",{attrs:{src:e.noticeData.memberInfo.imgUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"user-name-body"},[a("div",{staticClass:"user-name"},[a("span",{staticClass:"font-12 color-30313 font-w-500"},[e._v(e._s(e.noticeData.memberInfo.memberName))]),a("span",{class:["p-l-6 font-12 iconfont-hb3",0==e.noticeData.memberInfo.memberGender?"":1==e.noticeData.memberInfo.memberGender?"iconnan color-4b69e5":"color-ff8ea0 iconxingbienv"]})]),e._v(" "),a("div",{staticClass:"user-age font-10 color-7f818a"},[a("span",[e._v(e._s(e.noticeData.memberInfo.memberAge)+"岁")]),a("span",{staticClass:"dot"}),a("span",[e._v("生日 "+e._s(0==e.noticeData.memberInfo.birthType?"农历":"阳历")+e._s(e.noticeData.memberInfo.birthday))])])])]),e._v(" "),a("div",{staticClass:"user-info-body"},[5!=e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.memberGradeName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("积 分:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.accumulatPoints))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费总额:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costFee))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费次数:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costTimes))])])]):e._e(),e._v(" "),5==e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("微信昵称:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.nickName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("手机号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.phoneNumber||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])])]):e._e()]),e._v(" "),a("div",{staticClass:"user-clerk"},[a("span",{staticClass:"iconfont-hb3 iconziyuan1 font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-4b69e5 clerk-name"},[e._v(e._s(e.noticeData.memberInfo.clerkName))])])])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("RKnz")},"data-v-493cd79d",null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([29],{cxaT:function(t,e){t.exports="data:image/png;base64,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"},h9Ca:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Gu7T"),i=a.n(s),o=a("mvHQ"),n=a.n(o),r=a("ApSX"),l=a("5i7M"),c={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new l.a({container:this.id,width:this.width,autoFit:!0,height:420,padding:[50,30,60,60]}),this.chart.data(this.charData),this.chart.scale({value:{min:0,nice:!0},date:{}}),this.chart.tooltip({showCrosshairs:!0,shared:!0}),this.chart.line().position("date*value").color("active"),this.chart.legend(!1),this.chart.render()}}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"lengend-line"},[e("span",{staticClass:"line-pot bg-597ef7"}),e("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("非活跃人数")]),this._v(" "),e("span",{staticClass:"line-pot bg-5ad8a6 m-l-40"}),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至目前近三天内有过登录算作活跃",placement:"top-start"}},[e("span",{staticClass:"font-12 color-8c8c8c cell-title-span p-l-5",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[this._v("活跃人数")])])],1),this._v(" "),e("div",{attrs:{id:this.id}})])},staticRenderFns:[]};var g=a("VU/8")(c,u,!1,function(t){a("mOLX")},"data-v-bbf76934",null).exports,h=a("P9l9"),d=a("Ch4/"),p=a("Q0Ca"),C={name:"activeDetail",data:function(){return{selectStartDay:"",selectEndDay:"",charData:[],groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0}},computed:{},methods:{checkGroupIds:function(t){this.groupIds=t,this.getTableList()},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),startDate:t.selectEndDay,endDate:t.selectEndDay,selectType:t.selectRadio};Object(h.c)("/haoban-manage3-web/web/export-activite-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download="活跃明细报表.csv",s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getLoginData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(h.b)("/haoban-manage3-web/web/activite-date",a).then(function(t){var a=t.data;if(1==a.errorCode){if(a.result.result){a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.active="非活跃人数",t.value=t.notActiveClerkCnt});var s=JSON.parse(n()(a.result.result));s.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.active="活跃人数",t.value=t.activeClerkCnt}),e.charData=[].concat(i()(a.result.result),i()(s))||[]}return!1}d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),startDate:e.selectEndDay,endDate:e.selectEndDay,pageSize:e.pageSize,currentPage:e.currentPage};Object(h.g)("/haoban-manage3-web/web/activite-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.selectStartDay=p.a.timeStampToYmd((new Date).getTime()-6048e5),this.selectEndDay=p.a.timeStampToYmd((new Date).getTime()-864e5),this.getLoginData(),this.getTableList()},components:{gicSelectGroupMult:r.a,activeChart:g}},A={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"my-customer-wrap common-set-wrap"},[s("div",{staticClass:"right-content"},[s("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[s("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[s("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),s("div",{staticClass:"chart-body m-t-20"},[t.charData.length?s("active-chart",{attrs:{charData:t.charData,id:"active-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():s("div",{staticClass:"no-data-char"},[s("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),s("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),s("div",{staticClass:"table-search m-t-20"},[s("div",{staticClass:"flex flex-space-between"},[s("div",[s("gic-select-group-mult",{attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,昨日人员名单如下:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportActiveUser)?s("el-button",{attrs:{"limit-code":t.$buttonCode.exportActiveUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"m-t-20"},[s("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[s("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"ul-li-cell "},[s("div",{staticClass:"cell-info"},[s("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[s("span",{staticClass:"gic-name"},[s("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?s("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),s("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"最后登录时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),s("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"活跃状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.activationStatus?s("span",{staticClass:"active-status font-14 color-fff"},[t._v("活跃")]):s("span",{staticClass:"no-active-status font-14 color-fff"},[t._v("非活跃")])]}}])})],1),t._v(" "),0!=t.tableData.length?s("div",{staticClass:"block common-wrap__page text-right m-t-24"},[s("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天活跃趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var m=a("VU/8")(C,A,!1,function(t){a("z6rc")},"data-v-48b4b3df",null);e.default=m.exports},mOLX:function(t,e){},z6rc:function(t,e){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([30,90],{DWsn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),i=a.n(s),n=a("exGp"),o=a.n(n),l=a("DvcT"),d=a("YQXN"),c=a("PI0u"),r=a("P9l9"),u=a("Ch4/"),f={name:"actCodeDetail",components:{actCodeDetailInfo:l.default,actCodeDetailStatistics:d.default},props:{hmId:{type:String,default:""}},data:function(){return{chartWidth:0,fixedHeight:217,codeInfo:{},loading:!1,activeName:"first",codeStatusLis:[{value:"",style:""},{value:"正常",style:"success"},{value:"已作废",style:"danger"},{value:"待生效",style:"info"},{value:"正常-今日已达上限",style:"warning"}],statusIndex:1,scrollTop:0,useMemberList:[]}},methods:{downloadQR:function(){var t,e,a,s;t=this.codeInfo.hmCode+"_"+this.codeInfo.name,e=this.codeInfo.wxQrcode,a=e,(s=new XMLHttpRequest).open("GET",a,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),i=window.URL.createObjectURL(a),n=document.createElement("a");n.href=i,n.download=t+".png",n.click()},s.send()},modifyCode:function(){this.$router.push("/actCodeEdit?hmId="+this.$route.query.hmId)},discardCode:function(){var t=this,e=this;this.$confirm("此操作将永久废弃该活码,请确保不影响其他投放使用!","确认要作废该活码?",{confirmButtonText:"作废",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(r.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:e.$route.query.hmId}).then(function(a){e.loading=!1,0!=a.data.code?u.a.errorMsg(a.data):t.getActCodeInfo()})})},getActCodeInfo:function(){var t=this;return o()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=t).$route.query.hmId.length<=0)){e.next=3;break}return e.abrupt("return");case 3:a.loading=!0,Object(r.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:a.$route.query.hmId}).then(function(t){var e=t.data;if(a.loading=!1,0==e.code)return a.statusIndex=1==e.result.statusFlag&&1==e.result.overFlag?4:e.result.statusFlag,a.codeInfo=e.result,void(a.fixedHeight=2!=a.codeInfo.statusFlag?260:217);u.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 5:case"end":return e.stop()}},e,t)}))()},scrollMethod:Object(c.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),useMemberData:function(t){this.useMemberList=t}},mounted:function(){this.activeName=this.$route.query.activeName||"first",this.chartWidth=this.$refs.page.$el.clientWidth,this.getActCodeInfo(),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-detail-wrap p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.codeInfo.hmType?a("el-image",{staticClass:"img-200",attrs:{src:t.codeInfo.wxQrcode}}):t._e(),t._v(" "),a("div",{staticClass:"text-ellipsis-white color-303133",style:1==t.codeInfo.hmType?"width:100%;":"width: calc(100% - 230px);"},[a("div",{staticClass:"p-t-12 flex height-22"},[a("div",{staticClass:"font-16 line-22 text-ellipsis-white font-w-500"},[t._v(t._s(t.codeInfo.name))]),t._v(" "),a("el-tag",{staticStyle:{"margin-left":"8px"},attrs:{size:"small",effect:"dark",type:t.codeStatusLis[t.statusIndex].style}},[t._v(t._s(t.codeStatusLis[t.statusIndex].value))])],1),t._v(" "),a("p",{staticClass:"font-14 m-t-10 "},[t._v("ID:"+t._s(t.codeInfo.hmCode))]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"20px"}},[a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("\n 类       型:\n ")]),t._v(" "),a("el-tag",{attrs:{size:"small"}},[t._v(t._s(1==t.codeInfo.hmType?"单人活码":"多人活码"))])],1),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建人:"+t._s(t.codeInfo.creatorName||"--"))]),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建时间:"+t._s(t._f("formatTimeStamp")(t.codeInfo.createTime)))])]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"15px"}},[a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("所属分组:"+t._s(t.codeInfo.hmGroupName||"--"))]),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("自动通过好友:")]),t._v(" "),a("el-tag",{attrs:{size:"small",type:1==t.codeInfo.passFlag?"":"danger"}},[t._v(t._s(1==t.codeInfo.passFlag?"已开启":"已关闭"))])],1),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("活码标签:")]),t._v(" "),a("el-tooltip",{attrs:{disabled:0!=t.codeInfo.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"small",type:0==t.codeInfo.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.codeInfo.memberLabelName||"--"))])],1)],1)]),t._v(" "),2!=t.codeInfo.statusFlag&&t.codeInfo.statusFlag?a("div",{staticClass:"flex",staticStyle:{"padding-top":"20px"}},[2==t.codeInfo.hmType&&1==t.codeInfo.statusFlag?a("el-button",{staticStyle:{width:"120px","margin-right":"12px"},attrs:{type:"primary"},on:{click:t.downloadQR}},[a("i",{staticClass:"iconfont-hb3 iconxiazai m-r-6"}),t._v("下载二维码")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{type:"primary",plain:""},on:{click:t.modifyCode}},[t._v("编辑")]),t._v(" "),a("el-button",{staticClass:"button-discard specter",style:2==t.codeInfo.hmType&&t.useMemberList.length>0?"":"border-color: #F5222D;",attrs:{type:"danger",plain:""},on:{click:t.discardCode}},[t._v("作废")])],1):t._e()])],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{ref:"page",attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(t.$buttonCode.infoActCode)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoActCode}},[a("act-code-detail-info",{attrs:{"enterprise-id":t.codeInfo.enterpriseId,"welcome-id":t.codeInfo.welcomeId,"hm-id":t.$route.query.hmId},on:{useMemberList:t.useMemberData}})],1):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.dataActCode)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataActCode}},[a("act-code-detail-statistics",{attrs:{"chart-width":t.chartWidth,"hm-id":t.$route.query.hmId}})],1):t._e()],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,v,!1,function(t){a("F2bp")},"data-v-52910d66",null);e.default=m.exports},F2bp:function(t,e){},YQXN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("/p6h"),i=a("eaYI"),n=a("P9l9"),o=a("ckKa"),l=a("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:s.default,newAddChart:i.default},props:{hmId:{type:String,default:function(){return""}},chartWidth:Number},mixins:[o.a],data:function(){return{loading:!1,dateList:[],overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,e={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",e).then(function(e){var a=e.data;if(t.loading=!1,0==a.code){var s=a.result||{addNumT:0,addNum:0,dateList:[]};return s.dateList.map(function(t,e){t["新增人数"]=t.addNum}),void(t.overViewData=s)}l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:codeGl",arg:"codeGl"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("ul",{staticClass:"flex"},[a("li",{staticClass:"data-total-cell m-r-22"},[a("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("添加好友人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),a("li",{staticClass:"data-total-cell"},[a("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,s){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==s?"activeClass":"noActive",on:{click:function(e){return t.btnChange(s)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{attrs:{"chart-width":t.chartWidth,charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:codeCkmx",arg:"codeCkmx"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background"},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=a("VU/8")(d,c,!1,function(t){a("ptcL")},"data-v-4789dc53",null);e.default=r.exports},ptcL:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{Q21w:function(t,e){},"TLd+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("5i7M"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new o.a({container:this.id,width:this.width,autoFit:!0,height:420}),this.chart.data(this.charData),this.chart.scale({loginRate:{min:0,nice:!0,alias:"登录率"},date:{}}),this.chart.tooltip({crosshairs:{type:"line"},itemTpl:'<li style="padding-bottom:10px;">登录率: {value} %</li>'}),this.chart.axis("loginRate",{label:{formatter:function(t){return t+"%"}}}),this.chart.line().position("date*loginRate"),this.chart.render()}}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,s,!1,function(t){a("t4C2")},"data-v-7a731818",null).exports,i=a("ApSX"),l=a("P9l9"),c=a("Ch4/"),u=a("Q0Ca"),g={name:"activeDetail",data:function(){return{selectStartDay:"",selectEndDay:"",selectTableDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0,charData:[]}},computed:{},methods:{changeTableDate:function(){this.getTableList()},checkGroupIds:function(t){this.groupIds=t,this.getTableList()},toRedirect:function(t){this.$router.push("/loginDetail?storeId="+t.xValue+"&brandId="+this.$route.query.brandId+"&selectTableDay="+this.selectTableDay)},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,startDate:t.selectTableDay,endDate:t.selectTableDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),selectType:t.selectRadio};Object(l.c)("/haoban-manage3-web/web/export-area-ranking-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=document.createElement("a");o.download="区域登录明细报表.csv",o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(l.b)("/haoban-manage3-web/web/area-ranking-date",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.loginRate=1e3*t.loginRate/10}),e.charData=a.result.result||[],!1;c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectTableDay,endDate:e.selectTableDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),pageSize:e.pageSize,currentPage:e.currentPage};Object(l.g)("/haoban-manage3-web/web/area-ranking-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result.list&&a.result.result.list.length&&a.result.result.list.forEach(function(t){t.loginRate=1e3*t.loginRate/10+"%"}),e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var t=this;t.selectStartDay=u.a.timeStampToYmd((new Date).getTime()-6048e5),t.selectEndDay=u.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTableDay=u.a.timeStampToYmd((new Date).getTime()-864e5),t.$nextTick(function(){t.getTableList(),t.getTendData()})},components:{areaChart:r,gicSelectGroupMult:i.a}},h={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"my-customer-wrap common-set-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),o("div",{staticClass:"chart-body m-t-20"},[t.charData.length?o("area-chart",{attrs:{charData:t.charData,id:"area-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():o("div",{staticClass:"no-data-char"},[o("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),o("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),o("div",{staticClass:"table-search m-t-20"},[o("div",{staticClass:"flex flex-space-between"},[o("div",[o("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeTableDate},model:{value:t.selectTableDay,callback:function(e){t.selectTableDay=e},expression:"selectTableDay"}}),o("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),o("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("当日筛选区域下门店总计为 "+t._s(t.total)+" 家:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportAreaLoginUser)?o("el-button",{attrs:{"limit-code":t.$buttonCode.exportAreaLoginUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),o("div",{staticClass:"m-t-20"},[o("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[o("el-table-column",{attrs:{prop:"",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.xName||"--")+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"门店区域","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||"--"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"登录率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginRate||"0%"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"登录人数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginClerkCnt||"0"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRedirect(e.row)}}},[t._v("查看人员名单")])]}}])})],1),t._v(" "),0!=t.tableData.length?o("div",{staticClass:"block common-wrap__page text-right m-t-24"},[o("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天所有区域平均登录率趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var d=a("VU/8")(g,h,!1,function(t){a("Q21w")},"data-v-1729992c",null);e.default=d.exports},cxaT:function(t,e){t.exports="data:image/png;base64,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"},t4C2:function(t,e){}});
\ No newline at end of file
webpackJsonp([32],{d6Dx:function(e,t){},hHEe:function(e,t){},m0fb:function(e,t){},xDJN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),i=a("exGp"),r=a.n(i),s=a("P9l9"),c=a("Ch4/"),l=a("PI0u"),d={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,loading:!1,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,loadingBtn:!1}},methods:{exportExcel:Object(l.a)(function(){this.loadingBtn=!0,this.conditionObj.dateRange||(this.conditionObj.dateRange=[]);var e={cardId:this.coupCardId,search:this.conditionObj.searchInput||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",gicEnterpriseId:this.brandId};this.postExcel(e)},300),postExcel:function(e){var t=this;Object(s.g)("/haoban-app-customer-web/cardCoupon/export-consume-card",e).then(function(e){var a=e.data;if(t.loadingBtn=!1,1==a.errorCode)return t.$confirm("核销记录正在生成中,次日可前往GIC报表中心下载","温馨提示",{confirmButtonText:"立即前往",showCancelButton:!1,type:"warning",center:!0}).then(function(){if(-1!=window.location.href.indexOf("gicdev"))return window.open("http://gicdev.demogic.com/gic-web/#/reportCenter"),!1;window.open("https://hope.demogic.com/gic-web/#/reportCenter")}).catch(function(){}),!1;c.a.errorMsg(a)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleClose:function(e){this.$emit("closeGetRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},300),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(s.g)("/haoban-app-customer-web/cardCoupon/find-receive-card-page",i).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;c.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"领取记录",visible:e.dialogVisible,width:"864px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-336",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10 w-330",staticStyle:{width:"330px"},attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticClass:"m-l-10 export-btn",attrs:{disabled:!e.tableData.length,type:"primary",loading:e.loadingBtn},on:{click:e.exportExcel}},[e._v("导出核销记录")])],1)]),e._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("d6Dx")},"data-v-1a4be363",null).exports,g={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}},cardName:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,loading:!1,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,loadingBtn:!1}},methods:{exportExcel:Object(l.a)(function(){this.loadingBtn=!0,this.conditionObj.dateRange||(this.conditionObj.dateRange=[]);var e={coupCardId:this.coupCardId,searchType:this.conditionObj.searchType,search:this.conditionObj.searchInput||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",gicEnterpriseId:this.brandId};this.postExcelData(e)},300),postExcelData:function(e){var t=this;Object(s.c)("/haoban-app-customer-web/cardCoupon/export-send-card-page",e).then(function(e){if(t.loadingBtn=!1,!e)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=t.cardName+"发送记录.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleClose:function(e){this.$emit("closeSendRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},300),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(s.g)("/haoban-app-customer-web/cardCoupon/find-send-card-page",i).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;c.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送记录",visible:e.dialogVisible,width:"820px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",[a("div",{staticClass:"el-alert el-alert--info m-b-20",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("导购进行卡券赠送,给用户分享卡券链接后,用户打开卡券链接,即会生成一条“发送记录”,"),a("br"),e._v("如果用户不打开卡券链接,不会有记录生成;非会员打开后,领取记录显示为非会员。")])])])]),e._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-345",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"272px"},attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}}),a("el-button",{staticClass:"m-l-10 export-btn",attrs:{disabled:!e.tableData.length,type:"primary",loading:e.loadingBtn},on:{click:e.exportExcel}},[e._v("导出发送记录")])],1)]),e._v(" "),a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark",height:"450"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sendTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sendTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var b={components:{cardGetRecord:p,cardSendRecord:a("VU/8")(g,h,!1,function(e){a("hHEe")},"data-v-06225c98",null).exports},props:{brandId:{type:String,default:""}},data:function(){return{dateRange:"",searchInput:"",tableData:[],cardStatus:"",loading:!1,currentPage:1,pageSize:20,total:0,getRecordShow:!1,sendRecordShow:!1,coupCardId:"",cardName:"",options:[{label:"全部",value:""},{label:"已删除",value:2},{label:"正常",value:1}]}},filters:{percenteNum:function(e){return e>0?Number(100*e).toFixed(2)+"%":Number(e).toFixed(2)+"%"}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(e){e||(this.dateRange=[]),this.currentPage=1,this.getTableList()},changeCardStatus:function(){this.currentPage=1,this.getTableList()},showGetRecord:function(e,t){this.coupCardId=t.coupCardId,this.getRecordShow=!0},closeGetRecord:function(){this.getRecordShow=!1},showSendRecord:function(e,t){this.coupCardId=t.coupCardId,this.cardName=t.cardName,this.sendRecordShow=!0},closeSendRecord:function(){this.sendRecordShow=!1},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;return r()(o.a.mark(function t(){var a,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(a=e).loading=!0,n={gicEnterpriseId:a.brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize,startDate:Array.isArray(e.dateRange)?e.dateRange[0]:"",endDate:Array.isArray(e.dateRange)?e.dateRange[1]:"",cardStatus:e.cardStatus},Object(s.g)("/haoban-app-customer-web/cardCoupon/find-card-log-page",n).then(function(e){var t=e.data;if(a.loading=!1,1==t.errorCode)return a.tableData=t.result.list||[],void(a.total=t.result.pageInfo?t.result.pageInfo.total:0);c.a.errorMsg(t)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})});case 4:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.brandId&&this.getTableList()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("卡券创建时间:")]),e._v(" "),a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),e._v(" "),a("el-select",{staticClass:"m-l-10",attrs:{placeholder:"卡券状态"},on:{change:e.changeCardStatus},model:{value:e.cardStatus,callback:function(t){e.cardStatus=t},expression:"cardStatus"}},e._l(e.options,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送数量")])])]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.issuingQuantity)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.getedQuantity))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("percenteNum")(t.row.getedRate)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.usageQuantity))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("percenteNum")(t.row.verificationRate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.saleAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券的导购总人数,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("导购人数")])])]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendMemberCount)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{width:"150",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("p",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])])}}])}),e._v(" "),a("el-table-column",{attrs:{width:"200",label:"卡券模板有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.templateValidity)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"卡券库状态",prop:"cardStatus",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[0==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[e._v("已删除")]):e._e(),e._v(" "),1==n.cardStatus?a("span",{staticClass:"state-point state-point-success"},[e._v("正常")]):e._e(),e._v(" "),2==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[e._v("已过期")]):e._e(),e._v(" "),3==n.cardStatus?a("span",{staticClass:"state-point state-point-default"},[e._v("未生效")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活动状态",prop:"status",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[0==n.status?a("span",{staticClass:"state-point state-point-error"},[e._v("已删除")]):e._e(),e._v(" "),1==n.status?a("span",{staticClass:"state-point state-point-success"},[e._v("正常")]):e._e()]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.sendCardLog)||e.$getButtonLimit(e.$buttonCode.getCardLog)?a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.sendCardLog)?a("el-button",{attrs:{"limit-code":e.$buttonCode.sendCardLog,type:"text"},on:{click:function(a){return e.showSendRecord(t.$index,t.row,"1")}}},[e._v("发送记录")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.getCardLog)?a("el-button",{attrs:{"limit-code":e.$buttonCode.getCardLog,type:"text"},on:{click:function(a){return e.showGetRecord(t.$index,t.row,"2")}}},[e._v("领取记录")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),e.getRecordShow?a("card-get-record",{attrs:{brandId:e.brandId,coupCardId:e.coupCardId},on:{closeGetRecord:e.closeGetRecord}}):e._e(),e._v(" "),e.sendRecordShow?a("card-send-record",{attrs:{brandId:e.brandId,cardName:e.cardName,coupCardId:e.coupCardId},on:{closeSendRecord:e.closeSendRecord}}):e._e()],1)},staticRenderFns:[]};var m=a("VU/8")(b,f,!1,function(e){a("m0fb")},"data-v-30c9a118",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([33],{Gonc:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),s=a.n(o),r=a("Xxa5"),i=a.n(r),l=a("exGp"),n=a.n(l),c=a("PeHS"),d=a("jssv"),u=a("P9l9"),p={name:"actCodeTable",components:{links:d.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop+20>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()>t.getTime()}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(e){var t,a,o,s;t=e.hmCode+"_"+e.hmName,a=e.wxQrcode,o=a,(s=new XMLHttpRequest).open("GET",o,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),o=window.URL.createObjectURL(a),r=document.createElement("a");r.href=o,r.download=t+".png",r.click()},s.send()}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("此操作将永久废弃该活码,请确保不影响其他投放使用!","确认要作废该活码?",{confirmButtonText:"作废",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(u.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{groupName:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.searchGroup(),this.getTableList()},activated:function(){this.searchGroup(),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(u.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},o=a.result,s=a.pages;e.pageParamGroup.total=s,Array.isArray(o)&&(e.groupList=e.groupList.concat(o))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){this.pageParamGroup.groupName=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId})},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码",type:"warning"});this.dialogGroupFormVisible=!0,this.searchGroup()},batchOK:function(){var e=this;return n()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(u.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(e){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length?(this.inFields.startTime=this.dateTime?this.dateTime[0]+" 00:00:00":"",this.inFields.endTime=this.dateTime?this.dateTime[1]+" 23:59:59":"",this.inFields.startTime=Date.parse(new Date(this.inFields.startTime).toString()),this.inFields.endTime=Date.parse(new Date(this.inFields.endTime).toString())):(this.inFields.startTime="",this.inFields.endTime=""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=s()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{type:"primary","limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:o.hmName}},[e._v(e._s(o.hmName?o.hmName:"--"))]),e._v(" "),a("p",[1==o.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[1==o.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==o.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==o.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==o.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNumT?o.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNum?o.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?o.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?"code:"+o.clerkList[0].clerkCode:"--"))]),e._v(" "),o.clerkList&&o.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.storeList[0]?o.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.storeList[0]?"code:"+o.storeList[0].storeCode:"--"))]),e._v(" "),o.storeList&&o.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.hmGroupName?o.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.creatorName?o.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return o.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(o.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(o.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("dm-dropdown",{attrs:{"scope-data":o,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活码分组",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticClass:"chooseGroup",attrs:{placeholder:"选择分组",filterable:"","filter-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("Gonc"),a("ilbA")},"data-v-be35cd0a",null);t.default=h.exports},ilbA:function(e,t){}});
\ No newline at end of file
webpackJsonp([34],{"4KYo":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={data:function(){return{card:{pageName:"",pageCode:"",pageId:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:""}}},props:{content:{type:Object,default:function(){}}},watch:{content:{handler:function(e){if(e){var t=e.pageName,a=e.pageCode,i=e.pageId,c=e.pageTitle,n=e.merchantName,g=e.merchantPhoneNumber,v=e.merchantLogo,r=e.pageBackgroundImg,s=e.guideComment,o=e.createorName,m=e.createTime;this.card={pageName:t,pageCode:a,pageId:i,pageTitle:c,merchantName:n,merchantPhoneNumber:g,merchantLogo:v,pageBackgroundImg:r,guideComment:s,createorName:o,createTime:m}}},immediate:!0}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"card"},[i("div",{staticClass:"head"},[i("div",{staticClass:"operation"},[i("div",{staticClass:"idNum"},[e._v("ID:"+e._s(e.card.pageCode))]),e._v(" "),i("div",{staticClass:"btns"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("relationDetail")}}},[e._v("关联详情")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("deleteTemp")}}},[e._v("删除")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("editTemp")}}},[e._v("编辑")])],1)]),e._v(" "),i("div",{staticClass:"tempName"},[e._v(e._s(e.card.pageName))]),e._v(" "),i("div",{staticClass:"cardName"},[i("div",{staticClass:"createName"},[e._v(e._s(e.card.createorName))]),e._v(" "),i("div",{staticClass:"createTime"},[e._v(e._s(e._f("formatTimeStamp")(e.card.createTime)))])])]),e._v(" "),i("div",{staticClass:"iphone-content"},[i("div",{staticClass:"iphone"},[i("span",{staticClass:"pageTitle"},[e._v(e._s(e.card.pageTitle))]),e._v(" "),i("img",{attrs:{src:a("NBDD")}}),e._v(" "),i("div",{staticClass:"content"},[i("img",{directives:[{name:"show",rawName:"v-show",value:e.card.pageBackgroundImg,expression:"card.pageBackgroundImg"}],staticClass:"bgImg",attrs:{src:e.card.pageBackgroundImg}}),e._v(" "),i("div",{staticClass:"enterpriseInfo"},[e.card.merchantLogo?i("div",{staticClass:"logo"},[i("img",{attrs:{src:e.card.merchantLogo}})]):e._e(),e._v(" "),i("div",{staticClass:"name"},[e._v(e._s(e.card.merchantName))])]),e._v(" "),i("div",{staticClass:"QRcode"}),e._v(" "),i("div",{staticClass:"leadingText"},[e._v(e._s(e.card.guideComment))]),e._v(" "),e.card.merchantPhoneNumber?i("div",{staticClass:"enterpriseNum"},[i("i",{staticClass:"iconfont-hb3 icondianhua"}),e._v(" "),i("p",[e._v(e._s(e.card.merchantPhoneNumber))])]):e._e()])])])])},staticRenderFns:[]};var n=a("VU/8")(i,c,!1,function(e){a("ntEk")},"data-v-bc680f14",null);t.default=n.exports},NBDD:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABLCAYAAAABIF7dAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTRCQkQ2MDMwQTRDMTFFRDkyNEZGNTNBMkRBMzgxQ0YiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTRCQkQ2MDQwQTRDMTFFRDkyNEZGNTNBMkRBMzgxQ0YiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxNEJCRDYwMTBBNEMxMUVEOTI0RkY1M0EyREEzODFDRiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxNEJCRDYwMjBBNEMxMUVEOTI0RkY1M0EyREEzODFDRiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pj1d2O8AAA0pSURBVHja7J15bBR1G8cfKOVSziIURcsNrwpyhBotKBSIENKWlHAEiFxKwhHoyxVijcTGAylSLfzBJVDuqyHQlpsSMKCC4PEiQsBAoVSFFkJb5Gbf+T5xNrttaWe329129/tJfpnt7MzuzMB89/s8z29+v2o2m02K0NFoY4zW32hhRqslhBBSNblvtMtGO2i0FKOdc3yzmoMA1jTaIqNNMlp1XjdCiJ/xxGgrjPZfo911FECIX4bR+vEaEUL8nEyjDTTaA9PpJVH8CCEBQuS/0a46wP8Yy/8ZLYjXhRASIDw2Wic4wDEUP0JIgAHNG1OdoS8hJEDphxA413gRwmtBCAkw8uAAa/I6EEICkJrs70cICVgogIQQCiAhhFAACSGEAkgIIf5NDU9+2MGDB+Xzzz+Xx48fy6RJk2T48OGW9jt//rykpKTIxIkTpWXLlvb1hYWFkpSUJO+8846Eh4fzX4sQL/HPP//ItWvXpGHDhvLcc89V2Pekp6fLypUr5dlnn5WgIGvPY0Bfnjx5oq/z8/MlMjJSZsyY4VsBTExMlDlz5kjbtm2lfv36MmLECPnxxx91fVknM3DgQLl06ZK88cYbdgHcv3+/jBs3TnJycqRJkyYUQEK8SHx8vHz11Vfy0ksv6b1ZvXrxYBEihPvXJDg42P760aNHKqAhISEqbiVx5MgRGTVqlIwfP15atGgh9+7dKztkNY7jxo0bKtA1atTQ/T777DO5ffu2fPzxx74JgS9evKjiN3XqVLlw4YKcOnVKvvnmG1m4cKGcPHmy1H1Hjx6tF9jxAm7cuFFdH359wMOHD/k/kpAKBPfgokWLZP369XZjAu7evatiVpRNmzap0enUqZO0bt1aevbsKXl5efoe7v3mzZurM8Pyww8/LPE7t2/frvf/tGnT5OrVq3qfl9bu378vN2/elOnTp8vSpUtlyZIlsmDBAo0SEX36zAEeP37cLmaOwjZhwgRJTU2VHj166C/KnTt39FfFZN68eXL48GHdZsiQIXahCwsLk0OHDknnzp3VfuMfgRBScezcuVNmzpxpv3cbN25c6vaI0HBfQ3jg9G7duqVuD6L23nvvybJly2TMmDGyb98+iYmJkdq1a5cohNgHYvr1119bPtYBAwaoRpjUrFnTyX163QE2a9ZMl1euXHFyhQAhLFi+fLmqtilmBw4ckISEBF12795d11WrVk2XERER+uuB+N5xPSHEMyC/DnFCA7VquTbwe25urrRv314yMjJk165d8tprr+l6iBwcGvL5+Mzo6Gg5ffq0vPnmmyV+DpxmnTp1ynUuSJEhnIaQ+kQAEa62adNGhg0bJitWrNAQFjlA00IDOL1jx47pyeLXAiqOmB0WOjs72x7fE0IqnqNHj+o9iAbjglyfKxQUFMiWLVv0c5DnRwgMw4LWr18/+3fExsaqyYFIVRR169a1u1ifhMCm44PVhfLD7iIPgNgc9hS8+uqr9m1xgSCYH330kf79559/OrlFQohngWChWACxQyRW3souem3gPkf0h1x/u3btdF1oaKimugCWSGvhfYTGJ06cqHTXxSOWC8nP3377TRUYQ+zD9eGXBVVgVHYdwUVBoQSCieoQwls4R/D+++9LVFQU/7cS4mFgLubPn6/RGZyZmbZylw0bNmjhwgRCh2II7vfk5GRdh94daWlpaooq0tyY1WNEoj5xgBAxODwIGWwxGDt2rK6fMmWK/v3BBx9oFefLL79UYUTi9MGDB/qLgYIHErBz587VihAhpHIDA4PCJnJ+O3bsUDMzaNAgzd2jQIHuKSimIN2F/D8KoiU6sOrVy13kvH79urz99tvabc4nAoiKEaq7cXFxmlSF0EGV0cnRLGCgKgT398knn2jyFM0EpW2ARCnK5iZm+Z1FEEIqF6tWrZLXX39dl3369NEHIABy/BBHhL3ff/+9PPPMMxr+opdHURAtIjQfOXKkPgxRVuUZ/Q7R/8/xYQmAQoq7XeUwICpKrfU8cVF++uknLYJA1VEJQl7A5MyZM+r4unXrVmw/CGBmZqb06tXLyZrjZCGiqBIjZ0gIcQ8IBO4x3GsITeHYcG8BpJ0gRHv27FERQiiZlZWlldVWrVrpfVkRwCwNHTpUjRPue6sdoeEq4RrREbpevXqyePFidZtlPXRRAgUeFUBCCHEF5CTXrFkjDRo0sNQLBNEgxNzsqI2qMwTanadAKICEkECmgB3vCCEBCwWQEEIBJIQQCiAhhFAACSGEAkgIIRRAQgihABJCCAWQEEIogIQQQgEkhBAKICGEUAAJIYQCSAghlYoavASE+C8YdRkjq2M0ZfNvtKqKOTq8uQwKCtKBUSmAhBAn4cPUFFhioFEIBsQCy6o+xYQp4hgUFeKOAVJxbuYMlBRAQgIYCAKmnwgODnZLFKqKC4TomYKI88UUGjhfVxwhBZAQPwKuD84IkxNZGWLeXwSxVq1aet6YVwSCCPG3AosghPgJuPmR66tbt27AiJ8jcIQ4d9MB0wESEkDOD84Hzs9X4PshwGZo6g4XLlyQ/fv3yx9//KGfhSkw+/fvL6+88oplNwgRxBS8eF2WE/SYAN64cUMaNmxo2XoSQjwDCgFomIPXl2CqSuThmjRp4vK+Z8+elbFjx8rJkydLfP/ll1/W2eN69Ohh6fPwQ4DjgRiX5oY94pO/++47adq0qSQkJPB/IyFeBuEecmBVFcwlDocH8evdu7esX79eTp8+rfOMb926VecxhkCGh4fLggULLH0mRA/FEDjjsmxrvq0cHDt2DJ2KtG3bts1GCPEexg1uM1xXpTgWHIcRCbq0j+HqVDvq169vMwTwqdv9/vvvthYtWui2SUlJlj/fCIVthjt+2tv55ZoX+Pjx4xIREaGvMYv8W2+9xZ9jQrwICh9wOuXpDOzJEBi5N6sh8KVLl6R169Yapl68eFHzfaVx69YtadeuneTl5alD7Nq1qyV3jNzkUxyy+/MC//DDD3bx+/bbbyl+hHgZs0NwecQPhYbCwkL7kyLe5IsvvtDl2rVri4kfhB2C6kijRo1k3bp1+tpqug3iWuq5uRMCG4JnD3vxmhDifR4+fGgzRMLt/RFWdu7cWe/jLl262M6fP++1ENhwZrbg4GBbaGhosfcSExNthnDpccXHxxd73zzm3NzcMr/HED+9RliWFAK77AAR9vbq1UtfHz16VHr27MmfYkJ8AJyNlf5+q1ev1nAxNTXVyWFFR0fLr7/+qn///PPPEhMT49R/btu2bWIIo6SkpHj82H/55Rftrzd48GCn9atWrZLZs2drp2bw6aefysKFC522wXEChMFlYT76Z35esWKJKwe9d+9ee9iLENgUQkJI5eTUqVMyfvx4FbgRI0Zo3g1kZmZqnztHzp07J4cPH9bX6IeH7SFU6J6CiqwnQbc50LFjR6f1qPoWpeg6c5+///7bpXRBuQVw/vz5upwzZ46WpAkhlRvH/KBjscQIPUvcvlmzZvbcWdF9PYn5jDL6DTry4osvFtu26DpzH490/XElB3jt2jVb8+bNNf5evnw5kzCE+BDk0YxQtsztNm/ebOvdu7dt9+7dTutnzJhhz+WjGaGn0/vp6em6n+HAPJ4DzMrK0u+MjIx0Wn/16lVb06ZN7cdUp04d29mzZ522MZypvme4U0vfhWv0lK4wrneD+euvv9T9GQcqK1eulAkTJvBnlhAfYD4BUrt2bbc/A3nBffv2yYABAyQ2NrZcx+NqNxjkJRGaX7lyxcnlIbRdsmSJ5iMnT54sYWFh9vdu376tT5wZRkxycnIshb7Id+IalTAMWIFbVWBUX8xOiUuXLuVPMSE+AJVNuK6nVDgrfUdoOFNoyLvvvmt5n7i4ON1n8eLFlraH8yulo3i+20+CGE7QHg5TBAnxDejigVC4KgogQAgMDZk3b16Z2yYnJ9u77FgF4W8paYL8cj0KBxE07ClzgoT4MA9YlR+Fu3nzpq1Dhw6qIX379i2xL+Lly5dtMTExus3zzz9vM0Jmy59v5VG4Ryj6uBv3Gycg3bt3F+MgJTExUWbNmsXkDCFeBFVRjMLk65GYkP/DUyVmJdkqGLBg2LBhsmvXLnuFGpqCPo7ofpOdna3r8bQZtmnQoIHlz0VfyVKGCNNH4YLKc9KNGzfWvkMvvPCCjsNFCPEu6FJidQDQigQC7I4GoDvLzp079cGKqKgo7SOYkZEhaWlpKn4YDxCFGow3YFX8IHxWCkRwgB6ZIgpfZk66QgjxLuZQ+P5gQnAeiCwhYiEhIS73QYSkwRVDWMvY957HBJAQ4lsch8QPVEzxszohFAWQED90ggj9Am1eEHNSJAif1XwoBZAQPwPpKOQEzbly/T0tBdeL88USYa8rc5JQAAnx01AQo63AFTlOiu4PrtD27ziIEDxzlBfk+typglMACfFzIYRIoPnTrW66WghfeWahowASQgIWToxOCKEAEkIIBZAQQiiAhBDi37gzzjWKJoW8dISQSgYe/XBpnPz/CzAApwNwMT9F2uMAAAAASUVORK5CYII="},ntEk:function(e,t){}});
\ No newline at end of file
webpackJsonp([35],{"/kds":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("mvHQ"),c=a.n(r),l=a("c9no"),p=a("NKg7"),d=a("P9l9"),u=a("Ch4/"),h=a("3E4D"),f={name:"index",data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},methods:{goUdesk:function(){window.open("https://notes.dingtalk.com/p/dy0mVP0g7lQPjz89/docs/dy0mV1QLjwErWX89")},getLunarDay:function(){var t="一二三四五六七八九十",e=(new Date).toLocaleString("zh-Hans-u-ca-chinese"),a=e.match(/年(.*)月/)[1];a="十一"==a?"冬":a;var n=e.match(/月(\d*)\s/)[1];return a+"月"+(n=Number(n)<=10?"初"+t.charAt(n-1):0==(n=n.split(""))[1]?t.charAt(n[0]-1)+"十":""+"十廿".charAt(n[0]-1)+t.charAt(n[1]-1))},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){if(!t.applicationPath)return h.a.showmsg("无更多设置项,不可进入!","warning"),!1;this.changeRoute(""+t.applicationPath)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认"+a+"【"+t.applicationName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){t.openFlag})},postSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,applicationId:t.applicationId,openFlag:1==t.openFlag?0:1};Object(d.b)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("操作成功","success"),void e.getAppData(1);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAppSwitch:function(t,e){var a=this;a.$confirm("确定要"+(1==t?"启用":"停用")+"【"+e.applicationName+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppSwitch(e)}).catch(function(){e.openFlag=!1})},postAppSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,applicationId:t.applicationId,openFlag:t.openFlag?1:0};Object(d.b)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("启用成功","success"),void e.getAppData(1);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getHelpData:function(){var t=this;Object(d.b)("/haoban-manage3-web/get-help-list",{}).then(function(e){var a=e.data;1!=a.errorCode?t.$message.error({duration:1e3,message:a.message}):t.helpList=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,type:t};Object(d.b)("/haoban-manage3-web/application-open-close-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.open.forEach(function(t){t.openFlag=1}),e.purchaseApp=JSON.parse(c()(a.result.open))||[],a.result.close.forEach(function(t){t.openFlag=!1}),void(e.noPurchaseApp=JSON.parse(c()(a.result.close))||[]);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBindData:function(){var t=this;Object(d.b)("/haoban-manage3-web/has-bind-contract",{}).then(function(e){var a=e.data;1!=a.errorCode?u.a.errorMsg(a):a.result||t.getBindUrl()}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindUrl:function(){var t=this;Object(d.b)("/haoban-manage3-web/get-auth-url",{}).then(function(t){var e=t.data;1!=e.errorCode?u.a.errorMsg(e):window.location.href=""+e.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTipData:function(){var t=this;Object(d.b)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?u.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCompanyData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(d.b)("/haoban-manage3-web/wxEnterprise-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.versionData=a.result,!1;u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;return i()(o.a.mark(function e(){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).wxEnterpriseId=JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,a.getBindData(),a.getAppData(1),a.getHelpData(),a.getCompanyData(),a.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-92+"px";case 7:case"end":return e.stop()}},e,t)}))()},components:{vueOfficeHeader:p.a,setTip:l.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32"},[t._v("已使用")]),t._v(" "),t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),t._v(" "),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])}),0)]),t._v(" "),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),t._v(" "),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),t._v(" "),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay()))]),t._v(" "),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),t._v(" "),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),t._v(" "),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._v(" "),t._e()])]),t._v(" "),a("div",{staticClass:"bg-margin-10"}),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])}),t._v(" "),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},staticRenderFns:[]};var v=a("VU/8")(f,g,!1,function(t){a("Vtri"),a("/kds")},"data-v-a775107e",null);e.default=v.exports},Vtri:function(t,e){}});
\ No newline at end of file
webpackJsonp([35],{1931:function(t,e){},"51Vw":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),r=a.n(s),i=a("//Fk"),c=a.n(i),l=a("mvHQ"),p=a.n(l),d=a("c9no"),u=a("NKg7"),g=a("P9l9"),f=a("Ch4/"),h=a("3E4D"),v={name:"index",data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},methods:{goUdesk:function(){window.open("https://notes.dingtalk.com/p/dy0mVP0g7lQPjz89/docs/dy0mV1QLjwErWX89")},getLunarDay:function(){var t="一二三四五六七八九十",e=(new Date).toLocaleString("zh-Hans-u-ca-chinese"),a=e.match(/年(.*)月/)[1];a="十一"==a?"冬":a;var n=e.match(/月(\d*)\s/)[1];return a+"月"+(n=Number(n)<=10?"初"+t.charAt(n-1):0==(n=n.split(""))[1]?t.charAt(n[0]-1)+"十":""+"十廿".charAt(n[0]-1)+t.charAt(n[1]-1))},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){if(!t.applicationPath)return h.a.showmsg("无更多设置项,不可进入!","warning"),!1;this.changeRoute(""+t.applicationPath)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认"+a+"【"+t.applicationName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){t.openFlag})},postSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",applicationId:t.applicationId,openFlag:1==t.openFlag?0:1};Object(g.a)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("操作成功","success"),void e.getAppData(1);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAppSwitch:function(t,e){var a=this;a.$confirm("确定要"+(1==t?"启用":"停用")+"【"+e.applicationName+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppSwitch(e)}).catch(function(){e.openFlag=!1})},postAppSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",applicationId:t.applicationId,openFlag:t.openFlag?1:0};Object(g.a)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("启用成功","success"),void e.getAppData(1);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getHelpData:function(){var t=this;Object(g.a)("/haoban-manage3-web/get-help-list",{}).then(function(e){var a=e.data;1!=a.errorCode?t.$message.error({duration:1e3,message:a.message}):t.helpList=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",type:t};Object(g.a)("/haoban-manage3-web/application-open-close-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.open.forEach(function(t){t.openFlag=1}),e.purchaseApp=JSON.parse(p()(a.result.open))||[],a.result.close.forEach(function(t){t.openFlag=!1}),void(e.noPurchaseApp=JSON.parse(p()(a.result.close))||[]);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBindData:function(){var t=this;Object(g.a)("/haoban-manage3-web/has-bind-contract",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):a.result||t.getBindUrl()}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindUrl:function(){var t=this;Object(g.a)("/haoban-manage3-web/get-auth-url",{}).then(function(t){var e=t.data;1!=e.errorCode?f.a.errorMsg(e):window.location.href=""+e.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toLogin:function(){var t=this;return new c.a(function(e,a){Object(g.a)("/haoban-manage3-web/get-login-info",{}).then(function(t){var a=t.data;if(1==a.errorCode)return localStorage.setItem("userInfos",p()(a.result)),void e(a.result.wxEnterpriseId);f.a.errorMsg(a),e({wxEnterpriseId:""})}).catch(function(a){e({wxEnterpriseId:""}),t.$message.error({duration:1e3,message:a.message})})})},getTipData:function(){var t=this;Object(g.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCompanyData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(g.a)("/haoban-manage3-web/wxEnterprise-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.versionData=a.result,!1;f.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;return r()(o.a.mark(function e(){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).getBindData(),e.next=4,a.toLogin();case 4:a.wxEnterpriseId=e.sent,a.getAppData(1),a.getHelpData(),a.getCompanyData(),a.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-92+"px";case 9:case"end":return e.stop()}},e,t)}))()},components:{vueOfficeHeader:u.a,setTip:d.a}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32"},[t._v("已使用")]),t._v(" "),t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),t._v(" "),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])}),0)]),t._v(" "),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),t._v(" "),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),t._v(" "),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay()))]),t._v(" "),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),t._v(" "),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),t._v(" "),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._v(" "),t._e()])]),t._v(" "),a("div",{staticClass:"bg-margin-10"}),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])}),t._v(" "),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},staticRenderFns:[]};var w=a("VU/8")(v,m,!1,function(t){a("1931"),a("51Vw")},"data-v-3005f81d",null);e.default=w.exports}});
\ No newline at end of file
webpackJsonp([36],{"1jP6":function(e,t){},"8Bu6":function(e,t){},H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),i=a("P9l9"),o=a("Ch4/"),l=a("PI0u"),n={name:"daily-export",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,s=t.minDate;e.choiceDateCopy=[s.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,s=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>s||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]},pageNum:1,pageSize:200,loadingBtn:!1}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.pageNum=1,e.dailyRuleForm.stores=[],e.stores=[],e.storesCopy=[],e.searchSelect="",e.checkAll=!1,e.isIndeterminate=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(l.a)(function(e){var t=this;t.loadingBtn=!0,t.$refs[e].validate(function(e){if(!e)return t.loadingBtn=!1,!1;t.$alert("数据查询量较大,导出时间较长,请耐心等待!","",{confirmButtonText:"确定",callback:function(e){}});var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",enterpriseId:t.activeBrand};Object(i.b)("/haoban-app-daily-three-web/daily/batch-export",a).then(function(e){if(t.loadingBtn=!1,!e.data)return o.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",r=document.createElement("a");r.download=s,r.style.display="none",r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},toInput:Object(l.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(r()(this.storesCopy))},getTemplateData:function(){var e=this,t={enterpriseId:e.brandId};Object(i.a)("/haoban-app-daily-three-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={enterpriseId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:e.pageNum,pageSize:e.pageSize};Object(i.a)("/haoban-manage3-web/store/find-simple-page",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.list))||[],e.storesCopy=JSON.parse(r()(a.result.list))||[]):a.result.list.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.total&&(e.pageNum++,e.getStoreData()));o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.getTemplateData())}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择时间:")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择自定义模板:")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择门店:")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"inline-block daily-form-label m-t-50"}),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(e){a("8Bu6")},"data-v-1dafd718",null).exports,u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","12"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{dailyExport:d}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("div",{staticClass:"daily-set-content border-box"},[t("daily-export",{attrs:{brandId:this.brandId,activeGroupId:this.activeGroupId}})],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("1jP6")},"data-v-277d4caf",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([36],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.50c027f.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("u9CB")},"data-v-a27616c0",null);s.default=r.exports},u9CB:function(t,s){}});
\ No newline at end of file
webpackJsonp([37],{GMpJ:function(e,t){},TsS9:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),l=a("P9l9"),s=a("3E4D"),r=a("Ch4/"),c={name:"taskView",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},loading:!1,selectRadio:2,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},changeDate:function(e){console.log(e),e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},setSelectTab:function(e){this.activeTab=e.tabId},toInput:function(){this.currentPage=1,this.getTableList()},changeStoreType:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={search:t.conditionObj.searchInput||"",ecmIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.ecmId}).join(","),startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(l.e)("/haoban-app-tel-task-three-web/task/batch-del-task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this;if(!e.multipleSelection.length)return s.a.showmsg("请选择任务","warning"),!1;e.loadingBtn=!0;var t={search:e.conditionObj.searchInput||"",gicEnterpriseId:e.activeBrand,startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",selectType:2==e.selectRadio&&e.multipleSelection.length?0:this.selectRadio,ecmIds:1==e.selectRadio?"":e.multipleSelection.map(function(e){return e.ecmId}).join(",")};Object(l.b)("/haoban-app-tel-task-three-web/task/export-task-view-task-list",t).then(function(t){if(e.loadingBtn=!1,!t.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="话务任务门店任务报表.xls",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},toDetail:function(e,t){this.$router.push("taskViewDetail?ecmId="+t.ecmId+"&ecmName="+t.ecmName)},getTableList:function(e){var t=this,a=this;a.loading=!0;var n={startDate:a.conditionObj.dateRange[0]||"",endDate:a.conditionObj.dateRange[1]||"",search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(l.a)("/haoban-app-tel-task-three-web/task/task-view-list",n).then(function(n){var i=n.data;if(a.loading=!1,1==i.errorCode)return a.tableData=i.result.list||[],a.total=i.result.pageInfo.total,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2,!1;r.a.errorMsg(i)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,i=e.getDate()<10?"0"+e.getDate():e.getDate(),o=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+o+"-"+i]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"daily-set-content border-box"},[e._m(0),e._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left flex flex-align-center"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入话务任务名称",maxlength:"50"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toInput(t)}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("创建时间:")]),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.toComplete))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overTimeNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.invalidCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"删除状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["-"!=t.row.delStatusDesc?a("span",{staticClass:"state-point state-point-error"},[e._v(e._s(t.row.delStatusDesc))]):a("span",[e._v(e._s(t.row.delStatusDesc))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.$index,t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0,showDeleteAll:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"m-b-20"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title"},[this._v("\n 1.此处仅统计近一年内的数据"),t("br"),this._v("\n 2.门店下具体某条话务任务的完成状态每天更新一次;下方列表中任务完成数据统计也为每天统计更新一次,非实时刷新。\n ")])])])])}]};var u=a("VU/8")(c,d,!1,function(e){a("GMpJ")},"data-v-1d793968",null).exports,h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","122"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{taskViewPage:u}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("taskViewPage",{attrs:{brandId:this.brandId,activeGroupId:this.activeGroupId}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,p,!1,function(e){a("YKMW")},"data-v-35be9aac",null);t.default=g.exports},YKMW:function(e,t){}});
\ No newline at end of file
webpackJsonp([37],{Ql0P:function(t,a){},dgaC:function(t,a){},owWS:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("Gu7T"),n=e.n(i),s=e("bzW+"),r=e("Qie6"),c=e("Z8ln"),o=e("NKg7"),h=e("Ch4/"),d=e("P9l9"),l=e("0xDb"),p={name:"salesleads",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"11",activeTab:"11",activeBrand:"",activeGroup:"",expiredFlag:!1,navpath:[{name:"首页",path:"/index"},{name:"营销任务",path:"/trafficTaskSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"营销任务",path:"/trafficTaskSet"}],tabListData:[{tabId:"1",tabName:"话务任务",icon:"iconjichushezhi",children:[{tabId:"11",tabName:"话务任务设置",icon:"iconribaoshezhi"},{tabId:"12",tabName:"话务任务记录",icon:"iconribaoshezhi",children:[{tabId:"121",tabName:"门店视图"},{tabId:"122",tabName:"任务视图"}]}]},{tabId:"2",tabName:"群发任务",icon:"iconjichushezhi",children:[{tabId:"21",tabName:"群发任务记录",icon:"iconjichushezhi",children:[{tabId:"211",tabName:"门店视图"},{tabId:"212",tabName:"计划视图"}]}]}],navName:{11:"话务任务-话务任务设置",121:"话务任务-话务任务记录-门店视图",1211:"任务详情",122:"话务任务-话务任务记录-任务视图",1221:"任务门店详情",12211:"任务详情",211:"群发任务-群发任务记录-门店视图",2111:"任务详情",212:"群发任务-群发任务记录-计划视图",2121:"任务门店详情",21211:"任务详情"},navFrontPath:{11:"/trafficTaskSet",121:"/trafficTaskSet",1211:"/taskRecord",122:"/trafficTaskSet",1221:"/taskView",211:"/trafficTaskSet",2111:"/grStoreList",212:"/trafficTaskSet",2121:"/grTaskList"},enableDownloadCompleteData:0}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,this.navpath[2]={name:this.navName[t.tabId],path:""},this.$store.dispatch("changeSales",Object(l.a)()),t.tabId){case"1":case"11":this.changeRoute("/trafficTaskSet");break;case"12":case"121":this.changeRoute("/taskRecord");break;case"122":this.changeRoute("/taskView");break;case"2":case"21":case"211":this.changeRoute("/grStoreList");break;case"212":this.changeRoute("/grTaskList")}},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getInfo(t),this.getExpired()},getInfo:function(t){var a=this;Object(d.b)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var e=t.data;1!=e.errorCode?h.a.errorMsg(e):a.enableDownloadCompleteData=e.result.enableDownloadCompleteData}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?h.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(n()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path="21211"===t?"/grStoreList?ecmPlanId="+a.$route.query.ecmPlanId:"12211"===t?"/taskViewDetail?ecmId="+a.$route.query.ecmId:a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.activeBrand=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,this.activeBrand&&this.getExpired()},components:{navCrumb:s.a,commonDetailLeft:r.a,vueOfficeHeader:o.a,expiredDialog:c.a,errMsg:h.a}},b={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap salesleads-wrap"},[e("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"content-body"},[e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,enableDownloadCompleteData:t.enableDownloadCompleteData,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab,reNav:t.reNav}}):t._e()],1)],1)])])])])],1)]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(p,b,!1,function(t){e("Ql0P"),e("dgaC")},"data-v-781dbc67",null);a.default=u.exports}});
\ No newline at end of file
webpackJsonp([38],{EENi:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjU3NjA0NTcxNzQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQ2MjEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+QGZvbnQtZmFjZSB7IGZvbnQtZmFtaWx5OiBmZWVkYmFjay1pY29uZm9udDsgc3JjOiB1cmwoIi8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LndvZmYyP3Q9MTYzMDAzMzc1OTk0NCIpIGZvcm1hdCgid29mZjIiKSwgdXJsKCIvL2F0LmFsaWNkbi5jb20vdC9mb250XzEwMzExNThfdTY5dzh5aHhkdS53b2ZmP3Q9MTYzMDAzMzc1OTk0NCIpIGZvcm1hdCgid29mZiIpLCB1cmwoIi8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LnR0Zj90PTE2MzAwMzM3NTk5NDQiKSBmb3JtYXQoInRydWV0eXBlIik7IH0KPC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTAgMGgxMDIyLjQ2NHYxMDI0SDBWMHoiIGZpbGw9IiNGMUY0RjkiIHAtaWQ9IjQ2MjIiPjwvcGF0aD48cGF0aCBkPSJNODQwLjE5MiA5NjIuMDQ4Yy0xLjAyNC0xNTQuNjI0LTE0Ny40NTYtMjYwLjA5Ni0zMjguMTkyLTI2MC4wOTYtMTc4LjE3NiAwLTMyMy41ODQgMTAyLjQtMzI4LjE5MiAyNTMuNDR2MjYuMTEyYzAgMjMuMDQgMTMuODI0IDQxLjk4NCAzMS4yMzIgNDEuOTg0aDU5NC40MzJjMTYuODk2IDAgMzEuMjMyLTE4Ljk0NCAzMS4yMzItNDEuOTg0bC0wLjUxMi0xOS40NTZjMCAwLjUxMiAwIDAgMCAweiIgZmlsbD0iI0RCRTFFQiIgcC1pZD0iNDYyMyI+PC9wYXRoPjxwYXRoIGQ9Ik01MTIgNzAxLjk1MmMtMzcuMzc2IDAtNzUuMjY0IDQuMDk2LTExMS42MTYgMTIuOCAyNi4xMTIgMjUuNiA1OC44OCA0NC41NDQgOTQuMjA4IDU0Ljc4NCA1OC44OCAxNy45MiAxMjIuMzY4IDAgMTYzLjMyOC00NS41NjgtNDcuMTA0LTE0Ljg0OC05Ni4yNTYtMjIuMDE2LTE0NS45Mi0yMi4wMTZ6IiBmaWxsPSIjQjlDNEQ2IiBwLWlkPSI0NjI0Ij48L3BhdGg+PHBhdGggZD0iTTUxMiAyNDUuNzZoMjQ1Ljc2djI0NS43NmMwIDEzNS42OC0xMTAuMDggMjQ1Ljc2LTI0NS43NiAyNDUuNzZzLTI0NS43Ni0xMTAuMDgtMjQ1Ljc2LTI0NS43NiAxMTAuMDgtMjQ1Ljc2IDI0NS43Ni0yNDUuNzZ6IiBmaWxsPSIjREJFMUVCIiBwLWlkPSI0NjI1Ij48L3BhdGg+PHBhdGggZD0iTTMzNi4zODQgNDkxLjUyYzAgOTYuNzY4IDc4LjMzNiAxNzUuNjE2IDE3NS42MTYgMTc1LjYxNlM2ODcuNjE2IDU4OC44IDY4Ny42MTYgNDkxLjUyYzAtOTYuNzY4LTc4LjMzNi0xNzUuNjE2LTE3NS42MTYtMTc1LjYxNkM0MTUuMjMyIDMxNS45MDQgMzM2LjM4NCAzOTQuMjQgMzM2LjM4NCA0OTEuNTJ6IiBmaWxsPSIjRkZGRkZGIiBvcGFjaXR5PSIuOCIgcC1pZD0iNDYyNiI+PC9wYXRoPjxwYXRoIGQ9Ik00MTUuMjMyIDQyMS4zNzZjMCA5LjcyOCA3LjY4IDE3LjQwOCAxNy40MDggMTcuNDA4czE3LjQwOC03LjY4IDE3LjQwOC0xNy40MDgtNy42OC0xNy40MDgtMTcuNDA4LTE3LjQwOGMtOS4yMTYtMC41MTItMTcuNDA4IDcuNjgtMTcuNDA4IDE3LjQwOHpNNTczLjQ0IDQyMS4zNzZjMCA5LjcyOCA3LjY4IDE3LjQwOCAxNy40MDggMTcuNDA4czE3LjQwOC03LjY4IDE3LjQwOC0xNy40MDgtNy42OC0xNy40MDgtMTcuNDA4LTE3LjQwOGMtOS43MjgtMC41MTItMTcuNDA4IDcuNjgtMTcuNDA4IDE3LjQwOHoiIGZpbGw9IiM0QTRENTMiIG9wYWNpdHk9Ii44IiBwLWlkPSI0NjI3Ij48L3BhdGg+PHBhdGggZD0iTTQxMS4xMzYgNDc0LjExMmg0NC4wMzJjOC43MDQgMCAxMy4zMTIgNC42MDggMTMuMzEyIDEzLjMxMiAwIDguNzA0LTQuNjA4IDEzLjMxMi0xMy4zMTIgMTMuMzEyaC00NC4wMzJjLTguNzA0IDAtMTMuMzEyLTQuNjA4LTEzLjMxMi0xMy4zMTIgMC05LjIxNiA0LjYwOC0xMy4zMTIgMTMuMzEyLTEzLjMxMnpNNTY4LjgzMiA0NzQuMTEyaDQ0LjAzMmM4LjcwNCAwIDEzLjMxMiA0LjYwOCAxMy4zMTIgMTMuMzEyIDAgOC43MDQtNC42MDggMTMuMzEyLTEzLjMxMiAxMy4zMTJoLTQ0LjAzMmMtOC43MDQgMC0xMy4zMTItNC42MDgtMTMuMzEyLTEzLjMxMiAwLjUxMi05LjIxNiA0LjYwOC0xMy4zMTIgMTMuMzEyLTEzLjMxMnoiIGZpbGw9IiNGOUJDQkMiIG9wYWNpdHk9Ii44IiBwLWlkPSI0NjI4Ij48L3BhdGg+PHBhdGggZD0iTTUxMy41MzYgNDQyLjM2OGMwIDcuNjgtNS42MzIgMTMuODI0LTEzLjMxMiAxMy44MjRzLTEzLjMxMi02LjY1Ni0xMy4zMTItMTMuODI0YzAtMS4wMjQgMC0yLjU2IDAuNTEyLTMuNTg0IDEuNTM2IDYuMTQ0IDYuNjU2IDEwLjI0IDEyLjggMTAuNzUyIDYuMTQ0IDAgMTEuNzc2LTQuNjA4IDEzLjMxMi0xMC43NTIgMS41MzYgNi4xNDQgNi42NTYgMTAuMjQgMTMuMzEyIDEwLjc1MiA2LjE0NCAwIDExLjI2NC00LjYwOCAxMi44LTEwLjc1MiAwLjUxMiAxLjAyNCAwLjUxMiAyLjU2IDAuNTEyIDMuNTg0IDAgNy42OC01LjYzMiAxMy44MjQtMTMuMzEyIDEzLjgyNHMtMTMuMzEyLTYuMTQ0LTEzLjMxMi0xMy44MjR6IiBmaWxsPSIjNEE0RDUzIiBvcGFjaXR5PSIuOTQiIHAtaWQ9IjQ2MjkiPjwvcGF0aD48L3N2Zz4="},hCpN:function(e,t){},jx8Q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var M=i("Xxa5"),a=i.n(M),o=i("exGp"),s=i.n(o),l=i("Ch4/"),r=i("P9l9"),n={name:"actCodeRecord",components:{},data:function(){return{loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,sortType:"desc"}},methods:{sortChange:function(e,t,i){this.currentPage=1,this.sortType="ascending"==e.order?"asc":"desc",this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return s()(a.a.mark(function t(){var i,M,o,s,n,c,N,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(i=e).loading=!0,M=e.$route.query,o=M.startTime,s=M.endTime,n=M.clerkId,c=M.linkId,N=M.hmId,u={pageNum:i.currentPage,pageSize:i.pageSize,linkId:c,hmId:N,clerkId:n,startTime:o,endTime:s,addChannel:c?1:N?e.$route.query.addChannel:0,createTimeOrder:i.sortType||""},Object(r.f)("/haoban-manage3-web/hm/qrcode/wxUserAddLog/list",u).then(function(e){var t=e.data;if(i.loading=!1,0==t.code)return i.tableData=t.result.result||[],void(i.total=t.result.totalCount||0);l.a.errorMsg(t)}).catch(function(e){i.loading=!1,i.$message.error({duration:1e3,message:e.message})});case 5:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.getTableList(),console.log(this.$route.query)}},c={render:function(){var e=this,t=e.$createElement,M=e._self._c||t;return M("section",{staticClass:"common-right-wrap"},[M("div",{staticClass:"p-20"},[M("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"recordTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"sort-change":e.sortChange}},[M("el-table-column",{attrs:{prop:"",label:"基本信息","show-overflow-tooltip":"","min-width":"210px",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[M("div",{staticClass:"flex"},[t.row.memberImage?M("img",{staticClass:"image-40",attrs:{src:t.row.memberImage}}):e._e(),e._v(" "),t.row.memberImage?e._e():M("img",{staticClass:"image-40",attrs:{src:i("EENi")}}),e._v(" "),t.row.memberName||t.row.memberNick||t.row.memberPhone?e._e():M("div",{staticClass:"p-l-10",staticStyle:{width:"calc(100% - 50px)","line-height":"40px"}},[e._v("--")]),e._v(" "),(t.row.memberName||t.row.memberNick)&&t.row.memberPhone?M("div",{staticClass:"p-l-10 line-20",staticStyle:{width:"calc(100% - 50px)"}},[M("div",{staticClass:"flex text-ellipsis"},[M("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),t.row.memberNick?M("span",{class:t.row.memberName?"color-909399 text-ellipsis":"text-ellipsis"},[e._v(" "+e._s(t.row.memberName?"("+t.row.memberNick+")":t.row.memberNick))]):e._e()]),e._v(" "),M("p",{staticClass:"font-12"},[e._v(e._s(t.row.memberPhone))])]):M("div",[t.row.memberName&&t.row.memberNick&&!t.row.memberPhone?M("div",{staticClass:"p-l-10",staticStyle:{"line-height":"40px"}},[M("div",{staticClass:"flex text-ellipsis"},[M("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),M("span",{staticClass:"color-909399 text-ellipsis"},[e._v(" ("+e._s(t.row.memberNick)+")")])])]):M("div",{staticClass:"p-l-10",staticStyle:{width:"calc(100% - 50px)","line-height":"40px"}},[e._v(e._s(t.row.memberName||t.row.memberNick||t.row.memberPhone))])])])]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":"","min-width":"126px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCardNo||"--")+"\n ")]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"会员等级","show-overflow-tooltip":"","min-width":"86px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberGradeName||"--")+"\n ")]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"导购信息","show-overflow-tooltip":"","min-width":"128px"},scopedSlots:e._u([{key:"default",fn:function(t){return[M("p",{staticClass:"line-20 text-ellipsis"},[e._v(e._s(t.row.clerkName||"--"))]),e._v(" "),M("p",{staticClass:"color-606266 line-18 text-ellipsis font-12"},[e._v("code:"+e._s(t.row.clerkCode||"--"))])]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"导购所属门店","show-overflow-tooltip":"","min-width":"185px"},scopedSlots:e._u([{key:"default",fn:function(t){return[M("p",{staticClass:"line-20 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))]),e._v(" "),M("p",{staticClass:"color-606266 line-18 text-ellipsis font-12"},[e._v("code:"+e._s(t.row.storeCode||"--"))])]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"企微号","show-overflow-tooltip":"","min-width":"107px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.staffName||"--")+"\n ")]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"添加时间","show-overflow-tooltip":"","min-width":"106px",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[M("div",{staticClass:"line-20"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),M("div",{staticClass:"line-20"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"标签","show-overflow-tooltip":"","min-width":"144px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberLabelName||"--")+"\n ")]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"关联类型","show-overflow-tooltip":"","min-width":"103px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.addChannel?"引流链接":"员工活码")+"\n ")]}}])}),e._v(" "),M("el-table-column",{attrs:{prop:"",label:"关联信息","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.addChannel?t.row.linkName||"--":t.row.hmName||"--")+"\n ")]}}])})],1)],1),e._v(" "),0!=e.tableData.length?M("div",{staticClass:"block common-wrap__page text-right m-t-24"},[M("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},staticRenderFns:[]};var N=i("VU/8")(n,c,!1,function(e){i("hCpN")},"data-v-6e484a1e",null);t.default=N.exports}});
\ No newline at end of file
webpackJsonp([39],{"9Ois":function(t,a){},AG22:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("Ch4/"),r=e("P9l9"),c={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){var a="";this.brandListData.forEach(function(e){e.brandId==t&&(a=e.groupId)}),this.$emit("selectBrandId",t,a)},getBrandData:function(){var t=this;Object(r.g)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;if(1!=e.errorCode)i.a.errorMsg(e);else if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.brandId)return t.activeBrand=t.$route.query.brandId,t.$emit("selectBrandId",t.$route.query.brandId),!1;t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId,t.brandListData[0].groupId)}}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("img",{attrs:{src:t.appIcon}})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),"/workSet"!=t.$route.path&&"/workGroupSet"!=t.$route.path&&"/dayStatistics"!=t.$route.path&&"/workGroupSet"!=t.$route.path&&"/dayStatistics"!=t.$route.path&&"/workTimeManage"!=t.$route.path?e("div",{staticClass:"my-customer-brand"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"不同品牌的工作台可分别进行管理。点击后切换,可以管理不同品牌下的应用",placement:"top-start"}},[e("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[t._v("品牌名称"),e("span",{staticClass:"el-icon-info font-12 color-909399 p-l-6"})])]),t._v(" "),e("el-select",{staticClass:"p-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}),1)],1):t._e()],1)])},staticRenderFns:[]};var s=e("VU/8")(c,o,!1,function(t){e("P1JT")},"data-v-687bd17e",null).exports,d=e("Qie6"),u={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-badreviewstatistics",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:s,commonDetailLeft:d.a}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1)])},staticRenderFns:[]};var p=e("VU/8")(u,l,!1,function(t){e("9Ois")},"data-v-c2712d48",null);a.default=p.exports},P1JT:function(t,a){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([40],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("tmCU")},"data-v-5bffce3c",null);s.default=r.exports},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.843a22d.svg"},tmCU:function(t,s){}});
\ No newline at end of file
webpackJsonp([41],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var w=j("CkW6"),u=j.n(w),N={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},C={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var y=j("VU/8")(N,C,!1,function(M){j("oSPV")},"data-v-4c72b26f",null);L.default=y.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIxLjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNDAwIDMzNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDAwIDMzNTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNGQUZDRkY7fQoJLnN0MXtmaWxsOiNEQkU1RjE7fQoJLnN0MntmaWxsOiNERUU3RjQ7fQoJLnN0M3tmaWxsOiNCOUM3REI7fQoJLnN0NHtmaWxsOiNGRkZGRkY7fQoJLnN0NXtmaWxsOm5vbmU7c3Ryb2tlOiNCOUM3REI7c3Ryb2tlLXdpZHRoOjQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQoJLnN0NntmaWxsOm5vbmU7c3Ryb2tlOiNCNkM3RDg7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQo8L3N0eWxlPgo8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMjc0LjUsMjQxLjNjLTUuMy01LjMtNC40LDQuNC02LjcsNi43Yy0zLjEsMy4xLTYuMyw2LTkuNyw4LjZIMTI1LjJjLTMuNC0yLjctNi42LTUuNi05LjctOC43CgljLTI4LjQtMjguNS0zOC42LTcwLjUtMjYuNi0xMDlsLTEwLjUtMTAuNmMtNS4zLTUuMy01LjMtMTMuOCwwLTE5LjJjNS4yLTUuMywxMy43LTUuMywxOS0wLjFjMCwwLDAsMCwwLjEsMC4xbDYuNiw2LjgKCWMzLjEsMy4yLDguMiwzLjIsMTEuNCwwbDAsMGMzLjItMy4yLDMuMi04LjMsMC0xMS41TDEwMy4xLDkyYy0zLjItMy4yLTMuMi04LjMsMC0xMS41YzMuMS0zLjIsOC4yLTMuMiwxMS40LDBsMCwwbDE3LjIsMTcuMgoJYy0wLjksMy43LDAuOSw3LjYsNC40LDkuM2MzLjUsMS43LDcuNywwLjYsOS45LTIuNWMyLjMtMy4xLDIuMS03LjQtMC41LTEwLjNjLTMuMy0zLjgtNi41LTcuMi02LjUtNy4ybC03LjMtNy40CgljMzQuOC0yMS4zLDgyLjYtMjEuNywxMTcuMiwwYzM0LjUsMjEuNyw1My45LDYxLjIsNTAsMTAxLjlsMTUuNCwxNS42YzMuMiwzLjIsMy4yLDguMywwLDExLjVjLTMuMSwzLjItOC4yLDMuMi0xMS40LDBsMCwwCglsLTE1LjEtMTUuM2MtMy4xLTMuMi04LjItMy4yLTExLjQsMGwwLDBjLTMuMiwzLjItMy4yLDguMywwLDExLjVsMTcuMSwxNy4yYzUuMiw1LjMsNS4yLDEzLjgsMCwxOS4xCglDMjg4LjQsMjQ2LjYsMjc5LjksMjQ2LjYsMjc0LjUsMjQxLjNDMjc0LjYsMjQxLjMsMjc0LjYsMjQxLjMsMjc0LjUsMjQxLjNMMjc0LjUsMjQxLjN6Ii8+CjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik04Ni42LDcxLjRjMCw0LjcsMy44LDguNSw4LjUsOC41YzEuNSwwLDMtMC40LDQuMy0xLjFjNC4xLTIuMyw1LjUtNy41LDMuMS0xMS42Yy0xLjUtMi42LTQuMy00LjMtNy40LTQuMwoJQzkwLjQsNjIuOSw4Ni42LDY2LjcsODYuNiw3MS40Ii8+CjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yMTYuNCwxNDUuNGgyNC4zbC03LjQsMTcuOWMyLjYsMS44LDQuNSwzLjgsNS44LDZjMS4yLDIuMiwxLjksNC44LDEuOSw3LjhjMCw0LjYtMS42LDguNC00LjgsMTEuMgoJYy0zLjIsMi45LTcuMyw0LjMtMTIuMyw0LjNjLTIuNSwwLTUuMS0wLjQtNy41LTEuMXYtMTMuMWMyLDAuOSwzLjksMS40LDUuNSwxLjRzMi45LTAuNSwzLjctMS40YzAuOS0xLDEuMy0yLjMsMS4zLTQuMQoJYzAtMS45LTAuOC0zLjQtMi40LTQuNmMtMS42LTEuMi0zLjctMS43LTYuNC0xLjdsMy40LTkuMWgtNS4xVjE0NS40TDIxNi40LDE0NS40eiBNMjA3LjUsMTgxLjZjMCwxLjUtMC4zLDMtMC44LDQuMwoJcy0xLjMsMi41LTIuMywzLjVzLTIuMiwxLjgtMy40LDIuM2MtMS4zLDAuNi0yLjgsMC45LTQuMywwLjloLTkuNmMtMS41LDAtMi45LTAuMy00LjMtMC45Yy0xLjMtMC42LTIuNS0xLjMtMy40LTIuMwoJYy0wLjQtMC40LTAuOC0wLjktMS4yLTEuNGwxMS43LTE3LjN2NmMwLDAuNiwwLjIsMS4xLDAuNiwxLjRjMC40LDAuNCwwLjgsMC42LDEuNCwwLjZjMS4xLDAsMi0wLjgsMi0xLjl2LTAuMXYtMTEuOWwxMC45LTE2LjEKCWMxLjgsMiwyLjgsNC42LDIuNyw3LjNMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZMMjA3LjUsMTgxLjZ6IE0xNzcuMSwxODUuOWMtMC42LTEuNC0wLjktMi44LTAuOC00LjNWMTU2YzAtMS41LDAuMy0zLDAuOC00LjMKCXMxLjMtMi41LDIuMy0zLjVzMi4yLTEuOCwzLjQtMi4zYzEuMy0wLjYsMi44LTAuOSw0LjMtMC45aDkuNmMxLjUsMCwyLjksMC4zLDQuMywwLjljMS4zLDAuNSwyLjQsMS4zLDMuNCwyLjNsLTEwLjUsMTUuNHYtMi43CgljMC0wLjUtMC4yLTEuMS0wLjYtMS40Yy0wLjQtMC40LTAuOS0wLjYtMS40LTAuNmMtMS4xLDAtMiwwLjgtMiwxLjl2MC4xdjguNmwtMTIuMSwxNy45QzE3Ny41LDE4Ni45LDE3Ny4zLDE4Ni40LDE3Ny4xLDE4NS45CglMMTc3LjEsMTg1Ljl6IE0yNDMuOCwxOTIuN2MzLjUtNy40LDUuMy0xNS41LDUuMy0yMy43YzAtMzAuNS0yNC40LTU1LjItNTQuNi01NS4ycy01NC42LDI0LjctNTQuNiw1NS4yYzAsMC40LDAsMC44LDAsMS4xCglsMTkuNi0yNC42aDExLjRMMTU0LDE3MS4zaDUuNXYtNi41bDExLjctMTguNXY0Ni44aC0xMS43di05LjhoLTE3LjhjNS4xLDE5LjIsMjAuMSwzNC4zLDM5LjIsMzkuMmMtMS4yLDMuMS00LjgsMTAuNy0xMC43LDEyCgljLTcuMywxLjcsMTkuOSwwLjQsMzkuNC0xMi41YzE0LjktNC40LDI3LjItMTUsMzMuOS0yOC45TDI0My44LDE5Mi43TDI0My44LDE5Mi43eiIvPgo8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNMjM4LjksMTU0LjNsLTI0LjQsMzUuNGwwLjUsMC4zbDI0LjQtMzUuNEwyMzguOSwxNTQuM3oiLz4KPHBhdGggY2xhc3M9InN0MyIgZD0iTTI2Ni4yLDY2LjZoOGMwLjcsMCwxLjMsMC42LDEuMywxLjNsMCwwYzAsMC40LTAuMSwwLjctMC40LDFjLTAuMiwwLjMtMC42LDAuNC0wLjksMC40aC04CgljLTAuNCwwLTAuNy0wLjEtMC45LTAuNGMtMC41LTAuNS0wLjUtMS40LDAtMS45QzI2NS41LDY2LjcsMjY1LjgsNjYuNiwyNjYuMiw2Ni42IE0xMTYuNSwyMDEuOWMtNC40LDAtOCwzLjYtOCw4LjFzMy42LDguMSw4LDguMQoJczgtMy42LDgtOC4xUzEyMC45LDIwMS45LDExNi41LDIwMS45TDExNi41LDIwMS45eiBNMTIxLjQsMjEyLjFjLTAuOCwyLTIuOCwzLjMtNC45LDMuM2MtMywwLTUuMy0yLjQtNS4zLTUuNGMwLTIuMiwxLjMtNC4xLDMuMy01CgljMi0wLjgsNC4zLTAuNCw1LjgsMS4yQzEyMS44LDIwNy43LDEyMi4yLDIxMCwxMjEuNCwyMTIuMUwxMjEuNCwyMTIuMXogTTE5MS4zLDc4LjdjLTQuNCwwLTgsMy42LTgsOC4xczMuNiw4LjEsOCw4LjEKCWMyLjEsMCw0LjItMC45LDUuNy0yLjRzMi4zLTMuNiwyLjMtNS43QzE5OS4zLDgyLjQsMTk1LjcsNzguNywxOTEuMyw3OC43eiBNMTk2LjMsODguOWMtMC44LDItMi44LDMuMy00LjksMy4zCgljLTMsMC01LjMtMi40LTUuMy01LjRjMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJDMTk2LjYsODQuNiwxOTcuMSw4Ni45LDE5Ni4zLDg4LjlMMTk2LjMsODguOXogTTI3MC4yLDE2Mi42CgljLTQuNCwwLTgsMy42LTgsOC4xczMuNiw4LjEsOCw4LjFzOC0zLjYsOC04LjFDMjc4LjIsMTY2LjMsMjc0LjYsMTYyLjYsMjcwLjIsMTYyLjZ6IE0yNzUuMSwxNzIuOGMtMC44LDItMi44LDMuMy00LjksMy4zCgljLTMsMC01LjMtMi40LTUuMy01LjRjMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJTMjc1LjksMTcwLjgsMjc1LjEsMTcyLjh6IE0yMzAuMSwzMS40Yy00LjQsMC04LDMuNi04LDguMXMzLjYsOC4xLDgsOC4xCgljMi4xLDAsNC4yLTAuOSw1LjctMi40czIuMy0zLjYsMi4zLTUuN0MyMzguMSwzNSwyMzQuNSwzMS40LDIzMC4xLDMxLjR6IE0yMzUsNDEuNmMtMC44LDItMi44LDMuMy00LjksMy4zYy0zLDAtNS4zLTIuNC01LjMtNS40CgljMC0yLjIsMS4zLTQuMiwzLjMtNXM0LjMtMC40LDUuOCwxLjJDMjM1LjQsMzcuMiwyMzUuOCwzOS41LDIzNSw0MS42eiIvPgo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTYzLjIsNDUuOWg4LjJjMC40LDAsMC43LDAuMSwxLDAuNGMwLjUsMC41LDAuNSwxLjMsMCwxLjlsMCwwYy0wLjMsMC4zLTAuNiwwLjQtMSwwLjRoLTguMgoJYy0wLjQsMC0wLjctMC4xLTEtMC40Yy0wLjUtMC41LTAuNS0xLjMsMC0xLjlsMCwwQzE2Mi40LDQ2LjEsMTYyLjgsNDUuOSwxNjMuMiw0NS45IE0yNzEuNyw2My41djhjMCwwLjQtMC4xLDAuNy0wLjQsMC45CgljLTAuMywwLjMtMC42LDAuNC0xLDAuNGMtMC43LDAtMS40LTAuNi0xLjQtMS4zbDAsMHYtOGMwLTAuNCwwLjEtMC43LDAuNC0wLjljMC41LTAuNSwxLjQtMC41LDEuOSwwCglDMjcxLjYsNjIuOCwyNzEuNyw2My4yLDI3MS43LDYzLjUiLz4KPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNy40LDE1NC44aDguMmMwLjQsMCwwLjcsMC4xLDEsMC40YzAuMywwLjIsMC40LDAuNiwwLjQsMC45YzAsMC43LTAuNiwxLjMtMS40LDEuM2gtOC4yCgljLTAuNSwwLTAuOS0wLjMtMS4yLTAuN2MtMC4yLTAuNC0wLjItMC45LDAtMS4zQzEwNi40LDE1NS4xLDEwNi45LDE1NC44LDEwNy40LDE1NC44IE0xNjksNDIuN3Y4YzAsMC40LTAuMSwwLjctMC40LDAuOQoJYy0wLjUsMC41LTEuNCwwLjUtMiwwYy0wLjItMC4yLTAuNC0wLjYtMC40LTAuOXYtOGMwLTAuNCwwLjEtMC43LDAuNC0wLjljMC41LTAuNSwxLjQtMC41LDEuOSwwQzE2OC44LDQyLDE2OSw0Mi4zLDE2OSw0Mi43Ii8+CjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0yMzAuOSwxMTAuM2g4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS40YzAsMC43LTAuNiwxLjMtMS4zLDEuNGgtOC4xYy0wLjgsMC0xLjQtMC42LTEuNC0xLjQKCWMwLTAuNCwwLjEtMC43LDAuNC0xQzIzMC4yLDExMC40LDIzMC42LDExMC4zLDIzMC45LDExMC4zIi8+CjxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMTQuNiwxNjMuOHY4LjJjMCwwLjQtMC4xLDAuNy0wLjQsMWMtMC41LDAuNS0xLjQsMC41LTEuOSwwYy0wLjMtMC4zLTAuNC0wLjYtMC40LTF2LTguMmMwLTAuNCwwLjEtMC43LDAuNC0xCgljMC41LTAuNSwxLjQtMC41LDEuOSwwbDAsMEMxMTQuNCwxNjMuMSwxMTQuNiwxNjMuNCwxMTQuNiwxNjMuOCIvPgo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTI2LDI3Mi43aDYwLjRjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjRIMTI2Yy0wLjcsMC0xLjMtMC42LTEuMy0xLjMKCUMxMjQuNywyNzMuMywxMjUuMywyNzIuNywxMjYsMjcyLjciLz4KPHBhdGggY2xhc3M9InN0MSIgZD0iTTIxOC42LDI3Mi43aDM0LjljMC43LDAsMS4zLDAuNiwxLjMsMS4zYzAsMC43LTAuNiwxLjMtMS4zLDEuM2gtMzQuOWMtMC43LDAtMS4zLTAuNi0xLjQtMS4zCgljMC0wLjQsMC4xLTAuNywwLjQtMUMyMTcuOSwyNzIuOSwyMTguMiwyNzIuNywyMTguNiwyNzIuNyIvPgo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTU4LjIsMjgyLjJoMTMxLjVjMC43LDAsMS4zLDAuNiwxLjQsMS4zYzAsMC40LTAuMSwwLjctMC40LDFjLTAuMywwLjMtMC42LDAuNC0xLDAuNEgxNTguMgoJYy0wLjcsMC0xLjMtMC42LTEuMy0xLjNsMCwwQzE1Ni45LDI4Mi44LDE1Ny41LDI4Mi4yLDE1OC4yLDI4Mi4yIi8+CjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik05My44LDI4Mi4yaDM0LjljMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjRsMCwwSDkzLjhjLTAuNywwLTEuMy0wLjYtMS40LTEuMwoJYzAtMC40LDAuMS0wLjcsMC40LTFDOTMuMSwyODIuMyw5My41LDI4Mi4yLDkzLjgsMjgyLjIiLz4KPHBhdGggY2xhc3M9InN0MSIgZD0iTTE5Ny4xLDI3Mi43aDguMWMwLjcsMCwxLjMsMC42LDEuMywxLjNjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLjEtMS40LTAuNS0xLjQtMS4zCgljLTAuMS0wLjcsMC41LTEuNCwxLjMtMS40QzE5NywyNzIuNywxOTcuMSwyNzIuNywxOTcuMSwyNzIuNyIvPgo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMjg0LjQsMjY0LjZoOC4xYzAuNywwLDEuMywwLjYsMS4zLDEuM2wwLDBjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLTEuMy0wLjYtMS4zLTEuMwoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPgo8cGF0aCBjbGFzcz0ic3QxIiBkPSJNOTkuMiwyNjQuNmgxNzEuN2MwLjQsMCwwLjcsMC4xLDAuOSwwLjRjMC40LDAuNCwwLjUsMSwwLjMsMS41Yy0wLjIsMC41LTAuNywwLjgtMS4yLDAuOEg5OS4xCgljLTAuNywwLTEuMy0wLjYtMS4zLTEuM0M5Ny44LDI2NS4zLDk4LjQsMjY0LjYsOTkuMiwyNjQuNiIvPgo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44IgoJLz4KPC9zdmc+Cg=="},oSPV:function(M,L){}});
\ No newline at end of file
webpackJsonp([42],{nfpZ:function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("P9l9"),i=n("Ch4/"),s=n("PI0u"),l={props:{brandId:{type:String,default:function(){return""}},policyId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},currentPage:1,pageSize:20,total:0}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{handleClose:function(t){this.$emit("closeSendRecord")},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,n={policyId:e.policyId,search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(r.g)("/haoban-app-customer-web/inner/find-card-total-log-page",n).then(function(t){var n=t.data;if(1==n.errorCode)return e.tableData=n.result.result||[],e.total=n.result.totalCount,!1;i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},policyId:function(t,e){t&&this.getTableList()}},mounted:function(){this.policyId&&this.getTableList()}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"记录",visible:t.dialogVisible,width:"802px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[n("div",{staticClass:"table-condition-left"},[n("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return n=e,t.toInput(n,t.conditionObj.searchInput);var n}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1)]),t._v(" "),n("div",[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark",height:"450"}},[n("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"投放数量","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity||"0")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity||"0"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.usageQuantity||"0"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])})],1),t._v(" "),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(t){n("nfpZ")},"data-v-48fb59e7",null).exports,d=n("/dO2"),p=n("3E4D"),f={components:{recordDetail:u},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,recordShow:!1,coupCardId:""}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toRecord:function(t,e){this.policyId=e.policyId,this.recordShow=!0},closeSendRecord:function(){this.policyId="",this.recordShow=!1},rowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;d.default.create(t,{onEnd:function(t){var n=t.newIndex,a=t.oldIndex;if(n==a)return!1;var r=JSON.parse(o()(e.tableData)),i=r.splice(a,1)[0];r.splice(n,0,i),e.postSort(r)}})},postSort:function(t){var e=this,n={json:o()(t)};Object(r.g)("/haoban-app-customer-web/inner/change-sort",n).then(function(t){var n=t.data;e.getTableList(),1!=n.errorCode?i.a.errorMsg(n):p.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toDel:function(t,e){var n=this;n.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.delCardList(e.policyId)}).catch(function(){})},delCardList:function(t){var e=this,n={wxEnterpriseId:e.wxEnterpriseId,policyId:t};Object(r.g)("/haoban-app-customer-web/inner/delete-policy",n).then(function(t){var n=t.data;if(1==n.errorCode)return p.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?policyId="+e.policyId)},toSwitch:function(t,e){var n=this,a={onlineFlag:1==e.onlineFlag?0:1,policyId:e.policyId};Object(r.g)("/haoban-app-customer-web/inner/on-off-line",a).then(function(t){var e=t.data;if(1==e.errorCode)return p.a.showmsg("操作成功","success"),void n.getTableList();i.a.errorMsg(e)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId};Object(r.g)("/haoban-app-customer-web/inner/list-policy",e).then(function(e){var n=e.data;t.loading=!1,1!=n.errorCode?i.a.errorMsg(n):t.tableData=JSON.parse(o()(n.result))||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;t.$emit("showTab","2"),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()},t.getTableList(),t.$nextTick(function(){t.rowDrop()})}},h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"common-right-wrap"},[n("div",{staticClass:"p-20"},[n("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),n("el-button",{attrs:{disabled:t.tableData.length>=5,type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleCateTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{"row-key":"policyId",data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("span",{staticClass:"font-22 iconfont-hb3 icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.policyName)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"上线状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.onlineFlag?"已下线":"已上线"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"策略状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.policyStatus?"无效":"有效"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"操作",width:"228"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toSwitch(e.$index,e.row)}}},[t._v(t._s(0==e.row.onlineFlag?"上线":"下线"))]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),0==e.row.onlineFlag?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),t.recordShow?n("record-detail",{attrs:{policyId:t.policyId},on:{closeSendRecord:t.closeSendRecord}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"line-height":"32px"}},[e("span",{staticClass:"font-13 color-909399 p-l-10 font-w-300"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var g=n("VU/8")(f,h,!1,function(t){n("ytyU")},"data-v-884d96b2",null);e.default=g.exports},ytyU:function(t,e){}});
\ No newline at end of file
webpackJsonp([43],{AVFt:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("PI0u"),r=i("Ch4/"),o=i("P9l9"),s={name:"login",data:function(){return{active:0,enterpriseId:"",enterpriseList:[],numberCode:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},toIndex:Object(n.a)(function(){this.toLogin()},500),toLogin:function(){var t=this.$route.query,e=t.random,i=t.hbPage,n=window.location.origin+"/haoban-manage3-web/gic-login?wxEnterpriseId="+this.enterpriseList[this.active].wxEnterpriseId+"&random="+e;i&&(n=window.location.origin+"/haoban-manage3-web/gic-login?wxEnterpriseId="+this.enterpriseList[this.active].wxEnterpriseId+"&random="+e+"&hbPage="+i),window.location.href=n},changeEnterprise:function(t){this.active=t},getList:function(){var t=this;Object(o.b)("/haoban-manage3-web/login-wx-enterprise-list?random="+this.$route.query.random,{}).then(function(e){var i=e.data;if(1==i.errorCode)return t.enterpriseList=i.result,1===i.result.length?void t.toLogin():void 0;r.a.errorMsg(i)}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})},arrowClick:function(t){"right"===t?this.$refs.cardShow.next():this.$refs.cardShow.prev()}},mounted:function(){this.$route.query.random&&this.getList(),sessionStorage.getItem("userInfos")&&sessionStorage.removeItem("userInfos")},components:{}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"login-wrap"},[i("section",[t._m(0),t._v(" "),i("div",{staticClass:"login-body"},[i("i",{staticClass:"iconfont-hb3 iconpre",on:{click:function(e){return t.arrowClick("left")}}}),t._v(" "),i("i",{staticClass:"iconfont-hb3 iconnext",on:{click:function(e){return t.arrowClick("right")}}}),t._v(" "),i("el-carousel",{ref:"cardShow",attrs:{arrow:"never",height:"262px","indicator-position":"none",autoplay:!1},on:{change:t.changeEnterprise}},t._l(t.enterpriseList,function(e){return i("el-carousel-item",{key:e.wxEnterpriseId},[i("div",{staticClass:"info flex"},[i("p",{staticClass:"info_img"},[i("img",{attrs:{src:e.corpSquareLogoUrl,alt:""}})]),t._v(" "),i("p",{staticClass:"info_name"},[t._v(t._s(e.corpName))])])])}),1),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.toIndex}},[t._v("登录")])],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"login-body-head border-box flex"},[e("img",{staticClass:"login-body-logo",attrs:{src:i("wdS9"),alt:"logo"}})])}]};var c=i("VU/8")(s,a,!1,function(t){i("Pgq7")},"data-v-46f73f32",null);e.default=c.exports},Pgq7:function(t,e){},wdS9:function(t,e,i){t.exports=i.p+"static/img/logo-text.3ba0f9e.png"}});
\ No newline at end of file
webpackJsonp([44],{EEDz:function(e,t){},H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),l=a("P9l9"),i=a("Ch4/"),o=a("PI0u"),n={name:"daily-export",props:{brandId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,s=t.minDate;e.choiceDateCopy=[s.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,s=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>s||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]},pageNum:1,pageSize:200,loadingBtn:!1}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.pageNum=1,e.dailyRuleForm.stores=[],e.stores=[],e.storesCopy=[],e.searchSelect="",e.checkAll=!1,e.isIndeterminate=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(o.a)(function(e){var t=this;t.loadingBtn=!0,t.$refs[e].validate(function(e){if(!e)return t.loadingBtn=!1,!1;t.$alert("数据查询量较大,导出时间较长,请耐心等待!","",{confirmButtonText:"确定",callback:function(e){}});var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",enterpriseId:t.activeBrand};Object(l.c)("/haoban-app-daily-three-web/daily/batch-export",a).then(function(e){if(t.loadingBtn=!1,!e.data)return i.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",r=document.createElement("a");r.download=s,r.style.display="none",r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},toInput:Object(o.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(r()(this.storesCopy))},getTemplateData:function(){var e=this,t={enterpriseId:e.brandId};Object(l.b)("/haoban-app-daily-three-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={enterpriseId:e.activeBrand,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:e.pageNum,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/store/find-simple-page",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.list))||[],e.storesCopy=JSON.parse(r()(a.result.list))||[]):a.result.list.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.total&&(e.pageNum++,e.getStoreData()));i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.getTemplateData())}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择时间:")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择自定义模板:")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择门店:")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"inline-block daily-form-label m-t-50"}),e._v(" "),e.$getButtonLimit(e.$buttonCode.multipleExportReport)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleExportReport,type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.exportForm("dailyRuleForm")}}},[e._v("导出日报")]):e._e()],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(e){a("sgjB")},"data-v-3ebb0af0",null).exports,u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){this.activeBrand=this.brandId},components:{dailyExport:d}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("div",{staticClass:"daily-set-content border-box"},[t("daily-export",{attrs:{brandId:this.brandId}})],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("EEDz")},"data-v-4b16d2aa",null);t.default=h.exports},sgjB:function(e,t){}});
\ No newline at end of file
webpackJsonp([45],{"/cEq":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),a=r.n(n),o=r("fZjL"),s=r.n(o),i=r("Xxa5"),c=r.n(i),u=r("exGp"),m=r.n(u),l=r("//Fk"),f=r.n(l),d=r("P9l9"),p=r("Ch4/"),h=r("3E4D"),b=r("PI0u"),v={name:"authMerchant-dailog",components:{},props:{item:{type:Object,default:function(){return{version:"3.0",clerkName:"",enterpriseId:"",enterpriseName:"",nationCode:"86",phoneNumber:"",code:""}}}},data:function(){return{memberVisible:!0,partForm:{},rules:{code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!0,countNum:60}},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(b.a)(function(){var e=this;if(""==e.partForm.phoneNumber||isNaN(String(e.partForm.phoneNumber)))return h.a.showmsg("超级管理员手机号不正确,请到 GIC 商户后台修改","warning"),!1;var t={phoneNumber:e.partForm.phoneNumber,nationCode:e.partForm.nationCode||"86",type:1,enterpriseId:this.partForm.enterpriseId};Object(d.b)("/haoban-manage3-web/send-code",t).then(function(t){var r=t.data;if(1==r.errorCode){e.disableBtn=!0,e.countDown();var n=String(e.partForm.phoneNumber),a=n.substr(0,3)+"****"+n.substr(7,n.length-1);return h.a.showmsg("已发送验证码到"+(e.partForm.nationCode||"86")+"-"+a,"success"),!1}p.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},300),checkCode:function(){var e=this,t={phoneNumber:e.partForm.phoneNumber,nationCode:e.partForm.nationCode,type:1,code:e.partForm.code};return new f.a(function(r,n){Object(d.b)("/haoban-manage3-web/validate-code",t).then(function(e){var t=e.data;if(1==t.errorCode)return r(!0),!1;p.a.errorMsg(t),r(!1)}).catch(function(t){r(!1),e.$message.error({duration:1e3,message:t.message})})})},handleClose:function(e){this.$refs.form.resetFields(),this.$emit("refreshData","close"),e()},cancel:function(){this.$refs.form.resetFields(),this.$emit("refreshData","close")},submitForm:function(e){var t=this;return m()(c.a.mark(function r(){var n;return c.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if((n=t).partForm.enterpriseId){r.next=3;break}return r.abrupt("return",!1);case 3:n.$refs[e].validate(function(){var e=m()(c.a.mark(function e(r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=9;break}return e.next=3,n.checkCode();case 3:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:n.$emit("refreshData","success"),e.next=10;break;case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return r.stop()}},r,t)}))()},getData:function(){var e=this,t={staffId:e.partForm.staffId};Object(d.b)("/haoban-manage3-web/staff-add",t).then(function(t){var r=t.data;if(1==r.errorCode)return e.partForm=r.result,!1;p.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{item:function(e){var t=this,r=this;s()(this.item).length&&r.$nextTick(function(){r.partForm=JSON.parse(a()(t.item))})}},mounted:function(){var e=this,t=this;s()(t.item).length&&t.$nextTick(function(){t.partForm=JSON.parse(a()(e.item))})}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticClass:"authMerchant-dailog",attrs:{width:"600px",title:"授权校验",visible:e.memberVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.memberVisible=t}}},[r("div",[r("div",{staticClass:"el-alert el-alert--info flex w-327 bg-F0F5FF",attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb m-r-9"}),e._v(" "),r("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("授权商户需要校验GIC商户超级管理员手机号 ")])]),e._v(" "),r("el-form",{ref:"form",staticClass:"dialog-form",attrs:{model:e.partForm,rules:e.rules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"超级管理员"}},[e._v("\n "+e._s(e._f("formatName")(e.partForm.clerkName))+"\n ")]),e._v(" "),r("el-form-item",{attrs:{label:"超级管理员手机号",prop:""}},[e.partForm.phoneNumber?r("span",[e._v(e._s(e.partForm.nationCode)+"-")]):e._e(),e._v(e._s(e._f("formatPhoneNum")(e.partForm.phoneNumber))+" "),r("el-button",{staticClass:"m-l-35",attrs:{disabled:!e.partForm.phoneNumber,type:"text"},on:{click:function(t){return e.sendCode()}}},[e._v(e._s(e.disableBtn&&60==e.countNum||!e.disableBtn&&e.countNum?"点击短信验证":e.countNum+"s"))])],1),e._v(" "),r("el-form-item",{attrs:{label:"短信验证码",prop:"code"}},[r("el-input",{staticStyle:{width:"180px","line-height":"40px"},attrs:{maxlength:"20",placeholder:"请输入验证码"},model:{value:e.partForm.code,callback:function(t){e.$set(e.partForm,"code",t)},expression:"partForm.code"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return e.cancel("form")}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var F=r("VU/8")(v,g,!1,function(e){r("hhkp"),r("A90b")},"data-v-2515d61d",null);t.default=F.exports},A90b:function(e,t){},hhkp:function(e,t){}});
\ No newline at end of file
webpackJsonp([46],{TsS9:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),l=a("P9l9"),s=a("3E4D"),r=a("Ch4/"),c={name:"taskView",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1,conditionObj:{tableType:"1",searchInput:"",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},loading:!1,selectRadio:2,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}}}},computed:{},methods:{changeTable:function(e){this.currentPage=1,this.getTableList()},changeDate:function(e){console.log(e),e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},setSelectTab:function(e){this.activeTab=e.tabId},toInput:function(){this.currentPage=1,this.getTableList()},changeStoreType:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={search:t.conditionObj.searchInput||"",ecmIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.ecmId}).join(","),startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(l.g)("/haoban-app-tel-task-three-web/task/batch-del-task-view-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this;if(!e.multipleSelection.length)return s.a.showmsg("请选择任务","warning"),!1;e.loadingBtn=!0;var t={type:999,search:e.conditionObj.searchInput||"",gicEnterpriseId:e.activeBrand,startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",selectType:2==e.selectRadio&&e.multipleSelection.length?0:this.selectRadio,ecmIds:1==e.selectRadio?"":e.multipleSelection.map(function(e){return e.ecmId}).join(",")};Object(l.c)("/haoban-app-tel-task-three-web/task/export-task-view-task-list",t).then(function(t){if(e.loadingBtn=!1,!t.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="话务任务门店任务报表.xls",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},toDetail:function(e,t){this.$router.push("taskViewDetail?ecmId="+t.ecmId+"&ecmName="+t.ecmName)},getTableList:function(e){var t=this,a=this;a.loading=!0;var n={type:999,startDate:a.conditionObj.dateRange[0]||"",endDate:a.conditionObj.dateRange[1]||"",search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(l.b)("/haoban-app-tel-task-three-web/task/task-view-list",n).then(function(n){var i=n.data;if(a.loading=!1,1==i.errorCode)return a.tableData=i.result.list||[],a.total=i.result.pageInfo?i.result.pageInfo.total:0,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2,!1;r.a.errorMsg(i)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})},initDataRange:function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,i=e.getDate()<10?"0"+e.getDate():e.getDate(),o=n<10?"0"+n:n,l=new Date(t),s=l.getFullYear(),r=l.getMonth()+1,c=l.getDate()<10?"0"+l.getDate():l.getDate();return[s+"-"+(r<10?"0"+r:r)+"-"+c,a+"-"+o+"-"+i]}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"daily-set-content border-box"},[e._m(0),e._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left flex flex-align-center"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入话务任务名称",maxlength:"50"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toInput(t)}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("创建时间:")]),a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTaskView)?a("el-button",{attrs:{type:"danger","limit-code":e.$buttonCode.multipleDelTaskView},on:{click:e.multDel}},[e._v("批量删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportTaskView)?a("el-button",{attrs:{loading:e.loadingBtn,type:"primary","limit-code":e.$buttonCode.exportTaskView},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskNum))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.competedTaskRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.toComplete))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overTimeNum)+"/"+e._s(t.row.invalidCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"删除状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["-"!=t.row.delStatusDesc?a("span",{staticClass:"state-point state-point-error"},[e._v(e._s(t.row.delStatusDesc))]):a("span",[e._v(e._s(t.row.delStatusDesc))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkTaskView)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkTaskView)?a("el-button",{attrs:{type:"text","limit-code":e.$buttonCode.checkTaskView},on:{click:function(a){return e.toDetail(t.$index,t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0,showDeleteAll:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"m-b-20"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title"},[this._v("\n 1.此处仅统计近一年内的数据"),t("br"),this._v("\n 2.门店下具体某条话务任务的完成状态每天更新一次;下方列表中任务完成数据统计也为每天统计更新一次,非实时刷新。\n ")])])])])}]};var u=a("VU/8")(c,d,!1,function(e){a("jbuK")},"data-v-1c2cf83a",null).exports,h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){this.activeBrand=this.brandId},components:{taskViewPage:u}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("taskViewPage",{attrs:{brandId:this.brandId}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,p,!1,function(e){a("UZcw")},"data-v-12276e9c",null);t.default=g.exports},UZcw:function(e,t){},jbuK:function(e,t){}});
\ No newline at end of file
webpackJsonp([47],{kI0x:function(e,t){},vIlm:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("l46T"),r=a("PI0u"),n=a("P9l9"),l=a("Ch4/"),s={props:{brandId:{type:Object,default:function(){return""}}},components:{limitInput:o.a},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,dialogVisible:!0,tableData:[],searchInput:"",multipleSelection:[],currentPage:1,pageSize:20,total:0}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},toCancel:function(){this.$emit("closeGroup"),this.$refs.multipleTable.clearSelection()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.multipleTable.clearSelection()},submitForm:Object(r.a)(function(e){this.$emit("submitGroup",this.multipleSelection)},300),handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t={memberGroupName:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,enterpriseId:e.brandId};Object(n.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",t).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;l.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"select-table-dialog",attrs:{title:"选择分组",visible:e.dialogVisible,width:"833px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("div",{staticClass:"search-top m-b-20"},[a("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入分组名称搜索",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,height:"33vh","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.groupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberTagGroupClassifyName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{staticStyle:{"margin-bottom":"0"},attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(s,i,!1,function(e){a("kI0x")},"data-v-103ed1d6",null).exports,p=a("3E4D"),c={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",editPerson:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",formData:{templateId:"",templateName:"",groupIds:[]},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],groupIds:[{type:"array",required:!0,message:"请选择门店分组",trigger:"change"}]},tableData:[],activeId:"1",loading:!1,multipleSelection:[],currentPage:1,pageSize:20,total:0,groupShow:!1,loadingBtn:!1}},methods:{submitForm:Object(r.a)(function(e){var t=this;t.loadingBtn=!0,t.tableData.length&&(t.formData.groupIds=t.tableData.map(function(e){return e.memberTagGroupId})),t.$refs[e].validate(function(e){e?t.postSave():t.loadingBtn=!1})},300),postSave:function(){var e=this,t={templateId:e.formData.templateId,templateName:e.formData.templateName,groupIds:e.tableData.map(function(e){return e.memberTagGroupId}).join(","),editPerson:e.editPerson,enterpriseId:e.brandId};Object(n.g)("/haoban-app-customer-web/save-group-template",t).then(function(t){var a=t.data;e.loadingBtn=!1,1==a.errorCode&&(p.a.showmsg("操作成功","success"),e.$router.push("/memberGroupSet?tabName=second")),l.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},delRow:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1),a.tableData.length&&(a.formData.groupIds=a.tableData.map(function(e){return e.memberTagGroupId}))}).catch(function(){})},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;var e=this.multipleSelection.map(function(e){return e.memberTagGroupId}),t=[];this.tableData.forEach(function(a){-1==e.indexOf(a.memberTagGroupId)&&t.push(a)}),this.tableData=t,this.tableData.length&&(this.formData.groupIds=this.tableData.map(function(e){return e.memberTagGroupId}))},handleSelectionChange:function(e){this.multipleSelection=e},showGroup:function(){this.groupShow=!0},closeGroup:function(){this.groupShow=!1},submitGroup:function(e){var t=this;t.groupShow=!1;var a=t.tableData.map(function(e){return e.memberTagGroupId});e.forEach(function(e){-1==a.indexOf(e.memberTagGroupId)&&t.tableData.push(e)}),t.formData.groupIds=t.tableData.map(function(e){return e.memberTagGroupId}),t.$refs.ruleForm.validate(function(e){})},getTemplateSet:function(e){var t=this,a={templateId:t.$route.query.templateId,enterpriseId:t.brandId};Object(n.g)("/haoban-app-customer-web/get-template-detail",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):a.result&&(a.result.template.groupIds=a.result.groupList.map(function(e){return e.memberTagGroupId})||[],t.formData=a.result.template,t.tableData=a.result.groupList||[],a.result.template.enterpriseId!=t.brandId&&(t.formData={templateId:"",templateName:"",groupIds:[]},t.tableData=[]))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.templateId&&this.getTemplateSet(this.brandId)}},mounted:function(){this.$emit("showTab","12"),this.brandId&&this.$route.query.templateId&&this.getTemplateSet(this.brandId)},components:{selectGroup:u,limitInput:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"模板名称",prop:"templateName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.templateName,getByType:"word",holder:"请输入模板名称",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"templateName",t)},"update:input-value":function(t){return e.$set(e.formData,"templateName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择分组",prop:"groupIds"}},[a("div",{staticClass:"flex flex-space-between"},[a("el-button",{attrs:{type:"primary"},on:{click:e.showGroup}},[e._v("选择分组")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量移除")])],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"max-height":"400",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.groupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberTagGroupClassifyName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delRow(t.$index,t.row)}}},[e._v("移除")])]}}])})],1)],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1),e._v(" "),e.groupShow?a("select-group",{attrs:{brandId:e.brandId},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e()],1)},staticRenderFns:[]};var m=a("VU/8")(c,d,!1,function(e){a("x/Qo")},"data-v-edaa9016",null);t.default=m.exports},"x/Qo":function(e,t){}});
\ No newline at end of file
webpackJsonp([48],{"Jhz/":function(t,a){},NUSj:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),s=e("Qie6"),o=e("Z8ln"),r=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"订单评价",path:"/evaluate-set"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"订单评价",path:"/evaluate-set"}],tabListData:[{tabId:"1",tabName:"订单评价设置",icon:"iconshangpinshezhi"},{tabId:"2",tabName:"不良评价回访设置",icon:"icondingdan_pingjia"}],navName:{1:"订单评价设置",2:"不良评价回访设置"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("evaluate-set");break;case"2":this.changeRoute("bad-evaluate")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:s.a,expiredDialog:o.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var l=e("VU/8")(h,v,!1,function(t){e("Jhz/")},"data-v-d3ab38e0",null);a.default=l.exports}});
\ No newline at end of file
webpackJsonp([48],{"20P3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),n=a("Ch4/"),r={name:"fail-log",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{handleClose:function(){this.tableData=[],this.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",taskId:e.taskId,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/sync-task-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{taskId:function(t,e){t&&this.getTableList()}},mounted:function(){this.taskId&&this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,setDepartment:s.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,i,!1,function(t){a("4/8+")},"data-v-3c38ec0a",null).exports,u=a("PI0u"),p={name:"reviewed",data:function(){return{activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:""}},computed:{},methods:{clearInput:function(){this.currentPage=1,this.getBindist()},toInput:Object(u.a)(function(t){this.currentPage=1,this.getBindist()},200),handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,"first"==t.name?this.getTableList():this.getBindist()},toShowLog:function(t,e){this.taskId=e.taskId,this.logShow=!0},closeLog:function(){this.taskId="",this.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,"first"==this.activeName?this.getTableList():this.getBindist()},handleCurrentChange:function(t){this.currentPage=t,"first"==this.activeName?this.getTableList():this.getBindist()},getBindist:function(){var t=this,e={search:t.searchInput||"",optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};Object(l.b)("/haoban-manage3-web/staff-clerk-bind-log",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableBindData=a.result.result||[],t.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/sync-task",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{setDepartment:s.a,failLog:c}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"通讯录日志",name:"first"}},[a("div",{staticClass:"overstore-tip",staticStyle:{width:"643px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("仅保存近一年失败日志")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":5==e.row.statusFlag?"完成有错误":6==e.row.statusFlag?"有错误关闭":""))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkLog)?a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[5!=e.row.statusFlag&&6!=e.row.statusFlag||!t.$getButtonLimit(t.$buttonCode.checkLog)?t._e():a("el-button",{attrs:{"limit-code":t.$buttonCode.checkLog,type:"text"},on:{click:function(a){return t.toShowLog(e.$index,e.row)}}},[t._v("查看失败日志")])]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"关联解绑日志",name:"second"}},[a("div",{staticClass:"overstore-tip",staticStyle:{width:"643px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("仅保存近一年关联解绑日志")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或code",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.getBindist},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),t._v(" "),a("el-option",{attrs:{label:"绑定",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.clerkCode)))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"企微用户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.staffName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkPhoneNumber||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),t._v(" "),1002==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("好办移动端绑定")]):t._e(),t._v(" "),1003==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),t._v(" "),1004==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),t._v(" "),2001==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),t._v(" "),2002==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("好办移动端解绑")]):t._e(),t._v(" "),2003==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),t._v(" "),2004==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),t._v(" "),2005==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("审核被解绑")]):t._e(),t._v(" "),2006==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("权限变更解绑")]):t._e(),t._v(" "),2007==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("门店变更解绑")]):t._e(),t._v(" "),2008==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC导购删除解绑")]):t._e()]}}])})],1),t._v(" "),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t._v(" "),t.logShow?a("fail-log",{attrs:{taskId:t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("axwA")},"data-v-0c73a934",null);e.default=f.exports},"4/8+":function(t,e){},axwA:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{QHTa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Gu7T"),i=a.n(n),c=a("bzW+"),o=a("Qie6"),r=a("Z8ln"),s=a("Ch4/"),h=a("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}],navName:{1:"会员基础设置",11:"客户展示设置",12:"客户分组设置",13:"客户搜索设置",14:"客户详情设置",15:"客户标签设置",151:"同步记录",2:"我的客户列表"},navFrontPath:{11:"/memberShowSet",12:"/memberShowSet",13:"/memberShowSet",14:"/memberShowSet",15:"/memberShowSet",151:"/memberTagSet",2:"/memberShowSet",21:"/myCustomerList"},activeBrand:"",activeGroup:"",expiredFlag:!1,loading:!0}},computed:{},methods:{checkTagTab:function(){var e=this;this.loading=!0;var t={enterpriseId:this.activeBrand},a=[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}];Object(h.a)("/haoban-app-customer-web/tag/open-tag",t).then(function(t){t.data.result?a[0].children[4]={tabId:"15",tabName:"客户标签设置",icon:""}:"/memberTagSet"===e.$route.path&&e.$router.replace("memberShowSet"),e.$nextTick(function(){e.tabListData=[].concat(a)})}).finally(function(t){return e.loading=!1})},getExpired:function(){var e=this,t={enterpriseId:e.activeBrand};Object(h.a)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.expiredFlag=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){this.activeBrand=e,this.activeGroup=t,this.getExpired(),this.checkTagTab()},setSelectTab:function(e){switch(this.activeTab=e.tabId,e.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet");break;case"14":this.changeRoute("memberDetailSet");break;case"15":this.changeRoute("memberTagSet");break;case"2":this.changeRoute("myCustomerList")}},showTab:function(e){var t=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=e,this.activeSelTab=e,this.navpath=[].concat(i()(this.defaultNavpath)),a.length&&a.map(function(e){t.navpath[t.navpath.length-1].path=t.navFrontPath[e],t.navpath.push({name:t.navName[e],path:""})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath},on:{selectBrandId:e.selectBrandId}}),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e.loading?e._e():a("common-detail-left",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[e.activeBrand?a("router-view",{attrs:{brandId:e.activeBrand,activeGroupId:e.activeGroup,tabType:e.activeTab},on:{showTab:e.showTab}}):e._e()],1)],1)])])]),e._v(" "),e.expiredFlag?a("expired-dialog"):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(d,m,!1,function(e){a("S/p6")},"data-v-d377b818",null);t.default=b.exports},"S/p6":function(e,t){}});
\ No newline at end of file
webpackJsonp([49],{"7Otq":function(e,t){e.exports="data:image/png;base64,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UmVhZHlxyWU8AAADKGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozQTc1QTU3MEMyQzMxMUU4OTEwM0IxQTAxMkZFQzlFOCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozQTc1QTU2RkMyQzMxMUU4OTEwM0IxQTAxMkZFQzlFOCIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoTWFjaW50b3NoKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjJDNjg1NkFFOEJGMzExRTg5RDM1OTVDMzQ5MTk5MThGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjJDNjg1NkFGOEJGMzExRTg5RDM1OTVDMzQ5MTk5MThGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+qQWQfQAADLhJREFUeNqkWAmMXVUZ/s65+9tn7UynZTqFloJQBFndiBAQFAEDkoghhqBGkU0ICdFgTCCYEBVREjQiMREkyhKDEIm4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"},IkyZ:function(e,t){},"T+/8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),s=r.n(n),o=r("PI0u"),a=r("MJLE"),i=r.n(a),c=r("Ch4/"),l=r("P9l9"),d={name:"login",data:function(){return{qrcodeCase:"",qrcodeNum:"",enterpriseId:"",expiredFlag:!1,canSelectFlag:!1,userId:"",ajaxTime:null,chooseTab:"qrcode",enterpriseList:[],numberCode:""}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},chooseLogin:function(e,t){this.chooseTab=t,document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),clearInterval(this.ajaxTime),"pass"!=t?this.expiredFlag=!1:this.qrcodeNum="",document.getElementById("line-active").style.width=e.target.offsetWidth+"px",document.getElementById("line-active").style.left=e.target.offsetLeft+"px"},collapseTag:function(e){this.collapseFlag=e},qrcode:function(e){var t={type:"web-login",data:e||"123456789"};this.qrcodeCase=new i.a("qrcode",{width:190,height:190,text:s()(t)}),document.getElementById("qrcode").title=""},refreshCode:Object(o.a)(function(){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear()),this.getQrcode(),this.expiredFlag=!1},500),toIndex:Object(o.a)(function(){this.toLogin()},500),toLogin:Object(o.a)(function(){var e=this,t={qrcode:e.qrcodeNum||"debug",enterpriseId:e.enterpriseId,userId:e.userId};Object(l.g)("/haoban-manage3-web/login_local",t).then(function(t){var r=t.data;if(1==r.errorCode)return localStorage.removeItem("userInfo"),void localStorage.setItem("userInfos",s()(r.result));30004==r.errorCode&&(e.canSelectFlag=!1,"qrcode"==e.chooseTab&&(e.getQrcode(),e.expiredFlag=!1)),c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),checkLogin:function(){var e=this,t={qrcode:e.qrcodeNum};Object(l.g)("/haoban-manage3-web/login-check",t).then(function(t){var r=t.data;if(1!=r.errorCode)30002==r.errorCode&&(e.expiredFlag=!0),c.a.errorMsg(r),clearInterval(e.ajaxTime);else if(r.result&&r.result.enterpriseList&&r.result.enterpriseList.length){if(e.enterpriseList=r.result.enterpriseList,e.enterpriseId=e.enterpriseList[0].enterpriseId,e.userId=r.result.userId,document.getElementById("qrcode").innerHTML="",e.qrcodeCase.clear(),clearInterval(e.ajaxTime),1==r.result.enterpriseList.length)return e.toLogin(),!1;e.canSelectFlag=!0}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},checkScan:function(){var e=this;clearInterval(e.ajaxTime),e.ajaxTime=null,e.ajaxTime=setInterval(function(){e.checkLogin()},3e3)},getQrcode:function(){var e=this;Object(l.g)("/haoban-manage3-web/get-login-qrcode",{}).then(function(t){var r=t.data;if(1==r.errorCode)return e.qrcodeNum=r.result,void(window.location.href=""+r.result);c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeCode:function(e){this.numberCode=e}},mounted:function(){this.getQrcode(),sessionStorage.getItem("userInfos")&&sessionStorage.removeItem("userInfos")},components:{}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login-wrap"},[r("section",[r("div",{staticClass:"login-body-top"},[e._m(0),e._v(" "),r("div",{staticClass:"login-body-qrcode"},[r("div",{staticClass:"login-qrcode-inner border-box"},[r("div",{staticClass:"qrcode-title font-18 color-303133 m-b-20"},[e._v("企业微信扫码登录")]),e._v(" "),r("div",{attrs:{id:"qrcode",title:""}}),e._v(" "),r("div",{staticClass:"qrcode-refresh m-t-20"},[r("el-button",{staticClass:"font-12",attrs:{type:"text"},on:{click:e.refreshCode}},[e._v("刷新 "),r("span",{staticClass:"color-2f54eb iconfont-hb3 iconshuaxin"})])],1)])]),e._v(" "),r("div",{staticClass:"bg-dot"}),e._v(" "),r("div",{staticClass:"bg-dot-center"})]),e._v(" "),r("div",{staticClass:"login-body-bottom"})]),e._v(" "),r("footer",{staticClass:"p-t-35"},[r("vue-gic-footer")],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"login-body-head"},[t("div",{staticClass:"login-body-head_inner border-box flex"},[t("img",{staticClass:"login-body-logo",attrs:{src:r("7Otq"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"login-body-title p-l-7"},[this._v("好办管理后台")])])])}]};var g=r("VU/8")(d,A,!1,function(e){r("IkyZ")},"data-v-04108080",null);t.default=g.exports}});
\ No newline at end of file
webpackJsonp([5],{CVxX:function(t,a){t.exports="data:image/png;base64,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"},GSwY:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADcAAAA1CAYAAADlE3NNAAAAAXNSR0IArs4c6QAABq5JREFUaAXtml2opXMUxs/xNUqJyIwijUlCLswN5aNpRMiNO5HcSJKPcqOk3FDIFEVzh5qLSTIp4koKSWJ8XGgwRhoa4yMufEQzsz3Pe97ff6+9zn/v993n7DNnyKpnr/Wuj2et9X/fd5/TzJmf6ymDweBopW4SzhXObvGX9LfCXmGP8Ob8/Pzv0qsqmnWN5vBsk0WJa4UHhb1Cl/yhhB3CzcKJk5lnH1XPdcJOYZ9w/PykFkq4V/HHhePavF3S7wv7hO9b31rpdcI5wiWC77DlN+Ep4Qmd4q92rKRo1jPF/4bgOT4RNlaXU+JJCj4r3CAMhNeFF4UPhElysoKbhauES9tEL7ZFeFJLeuGZi+bdIFIvdpbwmbBZvfYvWk6Jpyv4tuCCX4QHhHcELzmNnK/kO4VNbdFP0o8IW3u9D21Rl9K8FyvnZcFPz8fCHcKH6nFgZDklnqDAW8JG4VPhPsGPnxcjF3vcss4jR+bcRcJdgoewfCM8JGzTAIfsWKpo3ttU+4zg1+Zd4R7hT+FzcR9k4Dkl+l3xCVwv7BZuEvwY5WHlGhEWYdmcT/wyVbn5BW21H5+twnYN8nPr66U0q9+rp4Wr24Jt0v5uOCi4/y4fXFzuUTnvF9zoRuE7wcJwDL/gHX6OW4b8HL9GpXcL61uKv6VfEbYL72ko+rbhBaWFjpV1hXC74O8CX/t9flh4TYj9vNygWU6FFyq4U7DcInwkNDHpvFweVikj0pXvuAe7UvBTskk4RkB+lOH+PmQ/TUcJZwh+vNcIFt+hHcIWwQtG8Xx+LAfzWswXfs/82DwnPCZMI13LZK6cf6oSrhMuF/zIniLUxO/nV4Lv0kvCD0JNBlrsCwe83K3Szwv7hWuF+J7pcpHM4s7BYXJsa8tpwnmCv9wOCF7Kd8fvqH/7yfn5sOa03JfKa5bbI71e8Dfjq8K/XXzndnsJP+svCH4U/FLXJJ9MPrlazTS+afm78n2nG2keBT2aG3D8B/Qh3bmvvQffUj6N1ZL8JOQ7M+1c5c7F5Zq7KKblkudhuobnYNGuj/ZS+UbuXCSM9rTkOR8utOPR7lq+i8/1vlvcnEV3LhK4MQ2jH5vB0Jk818NF8xyHB+0+0aYvOvOxGEuVWh5LAhCUBDkyGTnoTG5/rMdG5zg86NzPdfhiLXyOMYPjZReWg4DiSWTOiZLJ4YrN8cU6bGLk2x/tfN0nv+GOyzWO9iOTx1i2ObVyYkrI9fE6D5cPp8YXe3bllzlYzsXFGZlkcxetLV3DLWQNP1lsnIZzWLH4cGox+HJ92YPlOC0SWQjSSEQOMWohpbbvYcAdNRz0iJrYOP6Sy3J2QD7OjvFC0Boxho3OfF2HkfPH9RrHX/wsR8NMRCNOy9fYnFytpstXBlAiNrpPLTM4F5t5eILKD3EnTSKPMWy0aw+3xN7YWZflCCxlyHxy5sK3FL7l1pRdeCwZyMTYJamjG3loODrKeoc5KB673vPF5RjOJPEd7E3Wc9xph2UutNtEO7dd9M7FZGx0JusarisOL7qLPw/vOno4hm1tKbzxzsUgBU7GJs5dLScUCYNdmgSfzEXShz8X1bijr8mPy0FA0jjtYVjQNc5jQF9jW/cRuDisaflzf+Ye+bbE2UXugcmNNr6suxbM/fKysUe06VOrb3r6HzyzcILW0SYv+qJNfFrNkNY1mI+cGnecAbvJi48lBPkk8KNzMxNSU2vumGutLdjw5Tg5TXKbH321emaIeeWxrAVpnsloimYxhsePjjzZ52t6W1tqyy5Ehp9w2oOddVkuJg0phhaFQ8/QIoYeRuqW81jAGflw4Ik658NR60BdWc4OnBBZ1wTivvnjOPDDg8YfdYxho2Oe7eKP7xxJBNH4o44xbHTMW1W7ttyqDjSD5uWQZ7FcfoxNjm8Gsy6dorYcg/HOdQ3LSaE9TbSn5Zs2P29feteWI4juGrZGzoCxti9f/tEQOWzDbW0xL77GwUdcrjO5LWJINFxo8zCgfbk5g9CPXH7OUWNtyfn07dLlR4FJIJ92uDx8bmpufLYt8RobnZepLb/AMvykduiRFe8cCVnXljUJedn29SSpDRu5XDvp2jEOwLnY1pZSy3L+64DaL9ExmaJM7pwotWb4nGebBWMdduxjX+6X6+GytlDfNPIf2LjAfxZhqZHhW8g4cj/9/+G+UY14qUa0oO9cuW7dVizGiTgH3yzi5ogC97h+MTfb/i9j6obLtHcvDk5S9GWyI+G6HEZczION3Kl2wRUd2AO4D4NgL7c3fCs6/P/kh+kE/gE2OxkIayCUVAAAAABJRU5ErkJggg=="},Iy9M:function(t,a){},Mtyi:function(t,a){},N1jj:function(t,a){t.exports="data:image/png;base64,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"},NebN:function(t,a){},QJEo:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALMAAABgCAYAAABWvkNyAAAAAXNSR0IArs4c6QAAAyNJREFUeAHt2rFu2zAQBmA7CNChW9e+/6N1Lbp0rYtkIOEgyykn8U76AgRgApo8ffeDUWTffv3+93j7vvki0FzgpXn9yicwBIR5UBh0FxDm7h1U/xAQ5kFh0F1AmLt3UP1DQJgHhUF3AWHu3kH1DwFhHhQG3QWEuXsH1T8EhHlQGHQXEObuHVT/EBDmQWHQXUCYu3dQ/UPgdYwMCOwo8PGTmT9/vNyzt3MyZ4tab5mAMC+jt3G2gDBni1pvmYAwL6O3cbaAMGeLWm+ZgDAvo7dxtoAwZ4tab5mAMC+jt3G2gDBni1pvmYAwL6O3cbaAMGeLWm+ZgDAvo7dxtoAwZ4tab5mAMC+jt3G2wOk/AnrERw+zm2K9bQJO5m1uXlVQQJgLNkVJ2wSEeZubVxUUEOaCTVHSNgFh3ubmVQUFTv80o6D5pyV56vIpS+iXTuYQl8mVBYS5cnfUFhIQ5hCXyZUFhLlyd9QWEhDmEJfJlQWEuXJ31BYSEOYQl8mVBYS5cnfUFhIQ5hCXyZUFvAOY3B3v5CWDBpZzMgewTK0tIMy1+6O6gIAwB7BMrS0gzLX7o7qAgDAHsEytLSDMtfujuoCAMAewTK0tIMy1+6O6gIAwB7BMrS0gzLX7o7qAgLezA1hnmnrGt92dzGdK6MWvpc3JfMaT5OLZS798J3M6qQVXCQjzKnn7pgsIczqpBVcJtLlnXgVk32eByv+7OJmfe+WnxgLC3Lh5Sn8WEOZnDz81Fth8z1z53qlxP5T+BQEn8xfwvLSWwOaTudZl5FfjL0++6d4rOpn3Frb+YQLCfBi1jfYWEOa9ha1/mIAwH0Zto70FhHlvYesfJiDMh1HbaG+Bwx/NeeS1d0uvu76T+bq9P92VC/PpWnrdCzr8NuO61Ptcudu26epknhZGzQWEuXkDlT8FhHlaGDUXEObmDVT+FBDmaWHUXECYmzdQ+VNAmKeFUXMBYW7eQOVPAWGeFkbNBYS5eQOVPwWEeVoYNRcQ5uYNVP4UEOZpYdRcQJibN1D5U0CYp4VRc4H72+dhv3+7N78M5RO43d5T/Ofv4wGDQHeB/300PDm6DxByAAAAAElFTkSuQmCC"},R7yx:function(t,a){t.exports="data:image/png;base64,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"},V8vR:function(t,a){},Xevq:function(t,a){},hlTV:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARIAAACsCAYAAAC3gCOSAAAAAXNSR0IArs4c6QAABHpJREFUeAHt2z1ywjAQBlDgCGlz/6OlzRFIcMvQ2Ja8P3o0mTBY2n3r2e67316fn9/n3/bXhwABAnsFvr8e98feh/yeAAEC7wIWybuI/wkQ2C1gkewm8wABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI5BS4b2VJ/+YcztVVbSnOq+90Xw8BWZsec9QFgVABiySU3+UEeghYJD3mqAsCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQuJVL/0qoemsJ5BOQtck3ExURKCdgkZQbmYIJ5BOwSPLNREUECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgcEigXPr3UJceIrCQQERCXtZmoRdMqwRmCVgks2SdS2AhAYtkoWFrlQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAr0FpH97z3dadxEJ02nNOPi0gKzNaUIHECBgkXgHCBA4LWCRnCZ0AAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjkEJD+zTGHj1VI2H5k8WVCAVmbhENREoFqAhZJtYmpl0BCAYsk4VCURIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQJHBKR/j6h5poyABPU1o5K1ucbZLQRaC1gkrcerOQLXCFgk1zi7hQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSmC0j/Tid2AYF4gdkpaFmb+BmrgEB5AYuk/Ag1QCBewCKJn4EKCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCIgPTvEEaH7BGYnUTdU4vfjhGQtRnj6BQCSwtYJEuPX/MExghYJGMcnUKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC4QLSv+EjUEAHgdUTzbI2Hd5iPRAIFrBIggfgegIdBCySDlPUAwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAi8BKR/vQYEkglUTBLL2iR7iZRDoKKARVJxamomkEzAIkk2EOUQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwFEB6d+jcp5rK1AxfRs9DFmb6Am4n0ADAYukwRC1QCBawCKJnoD7CRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCQgPTvIEjHEFhVYEtLy9qsOn19ExgoYJEMxHQUgVUFLJJVJ69vAgMF/gFH7TRcgy9eyQAAAABJRU5ErkJggg=="},i4c9:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i={name:"total-preview",props:{activeBrand:{type:String,default:function(){return""}},loginData:{type:Object,default:function(){return{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"}}}},data:function(){return{dataObj:{}}},methods:{changeRoute:function(t){this.$router.push(t)}},watch:{loginData:function(t,a){this.dataObj=t}},mounted:function(){this.dataObj=this.loginData}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"flex flex-space-between"},[e("li",{staticClass:"data-total-cell today flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(0),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"今日截至当前时间的登录人数。导购同时归属多家门店的记多人。更新频率 15 分钟",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("今日登录人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.toDayLoginClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-192 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至昨日23:59:59统计出的昨日登录人数。导购同时归属多家门店的记多人。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日登录人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.loginClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-220 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下人均每日的登录次数。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span ",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日人均登录次数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.avgLoginTimes||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-220 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(3),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下人均每日的访问总时长。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日人均访问总时长")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t._f("formatTime")(t.loginData.avgVisitTime)))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(4),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下的好办门店员工总人数,导购同时归属多家门店的记多人",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("员工总人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.totalClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-230 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(5),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至昨日好办上线门店企业员工近三天登录总人数",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("近三日活跃总人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.activeClerkCnt||"0"))])])]),t._v(" "),e("div",{staticClass:"to-link-icon"},[e("el-tooltip",{attrs:{content:"活跃人员明细",placement:"top"}},[e("div",{staticClass:"detail-icon cursor-pointer flex flex-align-center flex-pack-center",on:{click:function(a){return t.changeRoute("/activeDetail?brandId="+t.activeBrand)}}},[e("span",{staticClass:"font-13 iconfont-hb3 iconmingxibeifen color-c0c4cc"})])])],1)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("GSwY"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("R7yx"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("R7yx"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("CVxX"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("N1jj"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("N1jj"),alt:""}})])}]};var n=e("VU/8")(i,s,!1,function(t){e("Mtyi")},"data-v-5723804f",null).exports,c=e("jNLg"),r={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},watch:{},methods:{}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"bar-chart-body"},[t._m(0),t._v(" "),e("ul",t._l(t.charData,function(a,i){return e("li",{key:i+"process",staticClass:"cursor-pointer"},[e("div",{staticClass:"group-name font-12 color-000-45 m-b-4"},[t._v(t._s(a.storeGroupName))]),t._v(" "),e("el-tooltip",{attrs:{placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[e("div",{staticClass:"flex flex-space-between"},[e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.storeGroupName))]),e("span",{staticClass:"font-12 color-fff p-l-40"},[t._v("登录率:"+t._s(a.loginRateString))])]),t._v(" "),e("div",{staticClass:"m-t-10"},[e("span",{staticClass:"process-tip-dot bg-e6ecfa"}),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v("员工人数:")]),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.totalClerkCnt))])]),t._v(" "),e("div",{staticClass:"m-t-10"},[e("span",{staticClass:"process-tip-dot bg-597ef7"}),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v("登录人数:")]),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.loginClerkCnt))])])])]),t._v(" "),e("div",{staticClass:"people-total"},[e("div",{staticClass:"flex people-total-bg"},[e("div",{staticClass:"login-total",style:{width:a.loginRateString}}),t._v(" "),e("div",{staticClass:"login-rate",style:{left:a.loginRateString}},[t._v(t._s(a.loginRateString))])])])])],1)}),0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"bar-legend m-b-20"},[a("span",{staticClass:"square-pot bg-597ef7"}),a("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("登录员工数")]),a("span",{staticClass:"square-pot bg-e6ecfa m-l-40"}),a("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("员工总数")])])}]};var o=e("VU/8")(r,l,!1,function(t){e("Iy9M")},"data-v-bff007dc",null).exports,A=e("rbYK"),g=e("P9l9"),d=e("Ch4/"),f=e("Q0Ca"),v={name:"activeDetail",data:function(){return{selectTendDay:"",selectStartDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var a=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<a}},activeBrand:"",loginData:{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"},tabActive:"1",charData:[],processData:[]}},computed:{},methods:{changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},changeRoute:function(t){this.$router.push(t)},getLoginData:function(t){var a=this,e={enterpriseId:a.activeBrand,startDate:a.selectEndDay,endDate:a.selectEndDay};Object(g.b)("/haoban-manage3-web/web/total-activation-data",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.avgVisitTime=parseInt(e.result.avgVisitTime),a.loginData=e.result||{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"},!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTendData:function(t){var a=this,e={enterpriseId:a.activeBrand,datesType:a.tabActive,startDate:1==a.tabActive?a.selectStartDay:a.selectTendDay,endDate:1==a.tabActive?a.selectEndDay:a.selectTendDay};Object(g.b)("/haoban-manage3-web/web/total-login-data",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.result&&e.result.result.forEach(function(t){t.bizDates=1==a.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),a.charData=e.result.result||[],!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getAreaLoginData:function(t){var a=this,e={enterpriseId:a.activeBrand,startDate:a.selectEndDay,endDate:a.selectEndDay};Object(g.b)("/haoban-manage3-web/web/area-login-ranking",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.result,a.processData=e.result.result||[],!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.selectStartDay=f.a.timeStampToYmd((new Date).getTime()-6048e5),this.selectEndDay=f.a.timeStampToYmd((new Date).getTime()-864e5),this.selectTendDay=f.a.timeStampToYmd((new Date).getTime()-864e5),this.activeBrand=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,this.getLoginData(),this.getTendData(),this.getAreaLoginData()},components:{totalPreview:n,dayLoginChart:c.a,areaProgress:o,timeLoginChart:A.a}},C={render:function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"apps-content flex"},[i("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),i("div",{staticClass:"data-total-view m-t-20"},[i("total-preview",{attrs:{activeBrand:t.activeBrand,loginData:t.loginData}})],1),t._v(" "),i("div",{staticClass:"chart-body m-t-32"},[i("div",{staticClass:"chart-wrap flex flex-space-between"},[i("div",{staticClass:"chart-left flex-1 border-box"},[i("div",{staticClass:"chart-top flex flex-space-between"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-bold cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(a){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-bold day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(a){return t.changeTab("2")}}},[t._v("日时段访问趋势")])]),t._v(" "),i("div",{staticClass:"cursor-pointer hover-link",on:{click:function(a){return t.changeRoute("/loginDetail?brandId="+t.activeBrand)}}},[i("span",{staticClass:"font-14 color-909399"},[t._v("查看登录人员明细")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right font-14 color-909399"})])]),t._v(" "),2==t.tabActive?i("div",{staticClass:"date-div m-t-20"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeDate},model:{value:t.selectTendDay,callback:function(a){t.selectTendDay=a},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-content m-t-20"},[t.charData.length?i("day-login-chart",{attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char m-t-90"},[i("img",{attrs:{src:e("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("div",{staticClass:"m-t-20"},[i("time-login-chart",{attrs:{charData:t.charData,id:"time-login-chart"}})],1):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char m-t-150"},[i("img",{attrs:{src:e("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"chart-right flex-1 m-l-10 border-box"},[i("div",{staticClass:"chart-top flex flex-space-between"},[i("div",{staticClass:"font-14 color-303133 font-w-bold "},[t._v("昨日区域登录统计")]),t._v(" "),i("div",{staticClass:"cursor-pointer hover-link",on:{click:function(a){return t.changeRoute("/areaLoginDetail?brandId="+t.activeBrand)}}},[i("span",{staticClass:"font-14 color-909399"},[t._v("区域登录明细")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right font-14 color-909399"})])]),t._v(" "),t.processData.length?i("div",{staticClass:"chart-content"},[i("area-progress",{attrs:{charData:t.processData,id:"a-chart"}})],1):t._e(),t._v(" "),t.processData.length?t._e():i("div",{staticClass:"no-data-char m-t-180"},[i("img",{staticClass:"w-274",attrs:{src:e("hlTV"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])])])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-start"},[a("div",{staticClass:"font-16 color-303133 w-140 line-h-32 font-w-bold "},[this._v("好办使用详情")]),this._v(" "),a("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])])}]};var h=e("VU/8")(v,C,!1,function(t){e("V8vR")},"data-v-665299a1",null);a.default=h.exports},jNLg:function(t,a,e){"use strict";var i=e("5i7M"),s=e("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},loginClerkCnt:{nice:!0,alias:"总登录人数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录人数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("loginClerkCnt",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*loginClerkCnt").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,a){return{name:"人均访问时长",value:s.a.formatTime(a)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"loginClerkCnt",name:"总登录人数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=e("VU/8")(n,c,!1,function(t){e("Xevq")},"data-v-2e746f7c",null);a.a=r.exports},rbYK:function(t,a,e){"use strict";var i=e("5i7M"),s=e("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},avgLoginTimes:{nice:!0,alias:"平均每人登录次数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录次数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("avgLoginTimes",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*avgLoginTimes").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,a){return{name:"人均访问时长",value:s.a.formatTime(a)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"avgLoginTimes",name:"平均每人登录次数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=e("VU/8")(n,c,!1,function(t){e("NebN")},"data-v-9eaa33dc",null);a.a=r.exports}});
\ No newline at end of file
webpackJsonp([5,44,65,66,67,78],{"2WGr":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(t){i("csI9")},"data-v-7040e068",null);e.default=s.exports},"3b2J":function(t,e){},"8dpP":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(t){i("ut2q")},"data-v-e9ece5a0",null);e.default=s.exports},FQZX:function(t,e){},Isrn:function(t,e,i){"use strict";var a=i("Mk6G"),n={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(t){},toInput:function(t){var e="",i={};return e=a.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=a.a.getZhLen(this.itemValue),this.childFlag?(i.child=this.childFlag,i.value=this.itemValue,"title"==this.titleFlag&&(i.title=this.titleFlag),"k303"==this.c3Flag&&(i.c3Index=this.c3Index,i.flag=this.c3Flag),void this.$emit("itemInput",i)):"title"==this.titleFlag?(i.value=this.itemValue,i.title=this.titleFlag,void this.$emit("itemInput",i)):"k303"==this.c3Flag?(i.value=this.itemValue,i.flag=this.c3Flag,i.c3Index=this.c3Index,void this.$emit("itemInput",i)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,this.inputNum=a.a.getZhLen(this.itemValue)},disFlag:function(t,e){this.disableInput=t},childItem:function(t,e){this.c3Flag=t},childIndex:function(t,e){this.c3Index=t},titleName:function(t,e){this.titleFlag=t},child:function(t,e){this.childFlag=t}},mounted:function(){this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=a.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=t.disableInput},on:{focus:function(e){return t.inputFocus(t.c3Index)}},nativeOn:{keyup:function(e){return i=e,t.toInput(i);var i}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(n,s,!1,function(t){i("sJqP")},"data-v-33cf39fd",null);e.a=l.exports},LTPC:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),n=i.n(a),s=i("Gu7T"),l=i.n(s),r=i("gBtx"),c=i.n(r),o=i("mvHQ"),d=i.n(o),u=i("w/TU"),p=i.n(u),m=i("Isrn"),h=i("l46T"),v=i("8dpP"),f=i("rYZf"),g=i("2WGr"),y=i("zHtI"),I=i("O3gZ"),_=i("fPyK"),b=i("fZjL"),C=i.n(b),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(t){C()("val").length&&(this.ruleForm=JSON.parse(d()(t)))}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return console.log("error submit!!"),!1;e.$emit("closeSet",e.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:t.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){return t.$set(t.ruleForm,"title",e)},"update:input-value":function(e){return t.$set(t.ruleForm,"title",e)}}})],1),t._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:t.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(e){return t.$set(t.ruleForm,"description",e)},"update:input-value":function(e){return t.$set(t.ruleForm,"description",e)}}})],1),t._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},t._l(t.storeList,function(e,a){return i("div",{key:e.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.ruleForm.storeType,callback:function(e){t.$set(t.ruleForm,"storeType",e)},expression:"ruleForm.storeType"}},[t._v(t._s(e.name))])],1)}),0)],1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(t){i("dy5a")},"data-v-6c2a73fe",null).exports,M=i("3E4D"),L=i("Ch4/"),O=i("PI0u"),F=i("P9l9"),T={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1,loadingBtn:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.templateObj=t},changeTab:function(t){this.activeTab=t,this.activeName=2==t?"five":"first"},getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.rightWidth="0",this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var n=this;if(n.tempaletDataList.splice(i,1),n.currentIndex--,n.currentIndex<=0&&(n.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&n[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;n[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,n){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!n.systemFlag)return!1;this[n.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(O.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;this.loadingBtn=!0,"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,enterpriseId:e.enterpriseId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(F.e)("/haoban-app-daily-three-web/daily/save-define-template",i).then(function(t){var i=t.data;e.loadingBtn=!1,1!=i.errorCode?L.a.errorMsg(i):M.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,enterpriseId:e.enterpriseId,templateContent:d()(t)};Object(F.e)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(t){var i=t.data;if(e.loadingBtn=!1,1==i.errorCode){JSON.parse(localStorage.getItem("userInfos")).enterpriseId;var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+e.enterpriseId+"&templateId="+i.result;return e.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(e.dialogVisible=!0)}L.a.errorMsg(i)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(F.e)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:t.enterpriseId}).then(function(e){var i=e.data;1!=i.errorCode?L.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(c()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(F.e)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:e.enterpriseId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));L.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(F.e)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();L.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(c()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(c()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,l()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var i=this;if(t){i.enterpriseId=t,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;n.a.all([i.getAllFields(2)]).then(function(t){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(t){console.log(t)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:v.default,selectCom:f.default,dateRangeCom:g.default,inputCom:y.default,blockCom:I.default,qrcodeDialog:_.a,customSet:k},mounted:function(){var t=this;document.documentElement.style.backgroundColor="#f0f2f5";var e=t.$route.query;t.$emit("showTab","32","copy"===e.type?"322":e.templateId?"321":"322"),n.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},V={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.templateSet}},[t._v("模板设置")]),t._v(" "),a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==t.activeTab?"color-3033133":"color-606266"],on:{click:function(e){return t.changeTab("1")}}},[t._v("系统字段")]),t._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[t._v("|")]),t._v(" "),a("div",{class:["template-cell-title font-14 ",2==t.activeTab?"color-3033133":"color-606266"],on:{click:function(e){return t.changeTab("2")}}},[t._v("自定义字段")])]),t._v(" "),a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[1==t.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}),0)],1)]):t._e(),t._v(" "),1==t.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}),0)],1)]):t._e(),t._v(" "),1==t.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}),0)],1)]):t._e(),t._v(" "),1==t.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}),0)],1)]):t._e(),t._v(" "),2==t.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}),0)],1)]):t._e()],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){return t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){return a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(n,s){return a("li",{key:"li"+s,class:["filed-item","child-filed-item",t.currentChildKey==n.name&&t.currentChildIndex==s?"active-item":""],on:{click:function(a){return a.stopPropagation(),t.selectChildItem(n.name,i,s,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){return a.stopPropagation(),t.deleteChildItem(n.name,i,s,e.children,n)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==n.type||5==n.type?a("select-com",{attrs:{childItem:n}}):t._e(),t._v(" "),6==n.type?a("date-range-com",{attrs:{childItem:n}}):t._e(),t._v(" "),7==n.type?a("image-com",{attrs:{childItem:n}}):t._e(),t._v(" "),1==n.type||2==n.type||3==n.type||10==n.type||9==n.type?a("input-com",{attrs:{childItem:n}}):t._e(),t._v(" "),"11"==n.type&&n.systemFlag?a("block-com",{attrs:{childItem:n}}):t._e()],1)}),0)],1)]):t._e()]],2)}),0)],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:t.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("控件设置")]),t._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return t.$set(e,"title",i)},"update:input-value":function(i){return t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return t.$set(e,"startTitle",i)},"update:input-value":function(i){return t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return t.$set(e,"endTitle",i)},"update:input-value":function(i){return t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return t.$set(e,"placeholder",i)},"update:input-value":function(i){return t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字,可显示多行内容")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字,仅可显示一行内容")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return t.$set(e,"placeholder",i)},"update:input-value":function(i){return t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){return t.$set(n,"value",e)},"update:input-value":function(e){return t.$set(n,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return t.delChildItem(i,s,e)}}}):t._e(),t._v(" "),!e.systemFlag&&s<19?[s==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return t.addChildItem(i,s,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){return t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}),0)])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,n){return[t.currentChildIndex!=n||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return t.$set(e,"title",i)},"update:input-value":function(i){return t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=n||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return t.$set(e,"startTitle",i)},"update:input-value":function(i){return t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return t.$set(e,"endTitle",i)},"update:input-value":function(i){return t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=n||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return t.$set(e,"placeholder",i)},"update:input-value":function(i){return t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字,可显示多行内容")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字,仅可显示一行内容")]):t._e()],1)],t._v(" "),t.currentChildIndex!=n||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return t.$set(e,"unit",i)},"update:input-value":function(i){return t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=n||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=n||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(e){return t.$set(n,"value",e)},"update:input-value":function(e){return t.$set(n,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return t.delChildItem(i,s,e)}}}):t._e(),t._v(" "),!e.systemFlag&&s<19?[s==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return t.addChildItem(i,s,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=n||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==n?[a("div",{key:"child11"+n,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){return t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=n||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}),0)])],t._v(" "),t.currentChildIndex==n?[a("div",{key:"child12"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])])])])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?a("custom-set",{attrs:{templateObj:t.templateObj,storeList:t.storeList},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[]};var j=i("VU/8")(T,V,!1,function(t){i("3b2J")},"data-v-216803fb",null);e.default=j.exports},O3gZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])}),0),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(t){i("Q9Uw")},"data-v-67147ae0",null);e.default=s.exports},Q9Uw:function(t,e){},Tvq6:function(t,e){},Y7wY:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja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"},csI9:function(t,e){},dy5a:function(t,e){},rYZf:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(t){i("Tvq6")},"data-v-67cc7786",null);e.default=s.exports},sJqP:function(t,e){},ut2q:function(t,e){},zHtI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(t){i("FQZX")},"data-v-4cfabcb1",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([50],{RvMj:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("PI0u"),i=a("P9l9"),l={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{guideReplyFlag:0,allOrderFlag:0},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var e=this,a=this.myCustomData,n=a.allOrderFlag,l=a.guideReplyFlag,o={enterpriseId:this.brandId,guideReplyFlag:l,allOrderFlag:n};Object(i.e)("/haoban-app-aggregation-web/order-evaluation-setting",o).then(function(t){var a=t.data;e.loading=!1,e.getCustomerSet(),1!=a.errorCode?r.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(t){this.loading=!1,this.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(i.a)("/haoban-app-aggregation-web/order-evaluation-find",a).then(function(t){var a=t.data;if(1!=a.errorCode)r.a.errorMsg(a);else if(a.result){var s=a.result,n=s.guideReplyFlag,i=s.allOrderFlag;e.myCustomData.guideReplyFlag=n,e.myCustomData.allOrderFlag=i}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getCustomerSet(this.brandId)},components:{}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("span",{staticClass:"font-14 p-r-10"}),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.myCustomData.guideReplyFlag,callback:function(e){t.$set(t.myCustomData,"guideReplyFlag",e)},expression:"myCustomData.guideReplyFlag"}}),t._v(" "),a("span",{staticClass:"p-r-10 font-14 color-303133"},[t._v("禁止订单关联导购回复评价")]),a("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注:开启后,订单关联导购不可回复评价")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("span",{staticClass:"font-14 p-r-10"}),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.myCustomData.allOrderFlag,callback:function(e){t.$set(t.myCustomData,"allOrderFlag",e)},expression:"myCustomData.allOrderFlag"}}),t._v(" "),a("span",{staticClass:"p-r-10 font-14 color-303133"},[t._v("允许店员查看所有订单评价")])],1),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(e){return t.submit("searchFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var d=a("VU/8")(l,o,!1,function(t){a("geZs")},"data-v-d1672ab8",null);e.default=d.exports},geZs:function(t,e){}});
\ No newline at end of file
webpackJsonp([50],{ATNk:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("mvHQ"),r=o.n(s),l=o("PeHS"),a={props:{selected:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},max:{type:Number,default:999999},canSelectAll:{type:Boolean,default:!1}},data:function(){return{departmentVisible:!1,props:{key:"storeId",label:"storeName",disabledProp:"disabled"}}},methods:{change:function(e){console.log(e),this.$emit("change",e)},filterMethod:function(e,t){return t.storeName.toLowerCase().indexOf(e.toLowerCase())>-1||t.storeCode.toLowerCase().indexOf(e.toLowerCase())>-1}}},n={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-popover",{attrs:{placement:"bottom"},model:{value:e.departmentVisible,callback:function(t){e.departmentVisible=t},expression:"departmentVisible"}},[o("dm-simple-transfer",{attrs:{value:e.selected,canSelectAll:e.canSelectAll,filterMethod:e.filterMethod,props:e.props,max:e.max,data:e.data,bodyH:62,"item-size":66,titles:["选择门店","已选门店"],filterable:"","filter-placeholder":"请输入门店名称/code"},on:{change:e.change},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.option;return o("div",{},[o("el-tooltip",{attrs:{content:s.storeName,disabled:s.storeName.length<10}},[o("p",{staticClass:"storeName"},[e._v(e._s(s.storeName))])]),e._v(" "),o("p",{staticStyle:{"font-size":"12px","line-height":"14px"}},[e._v(e._s(s.storeCode))]),e._v(" "),1==s.isOver?o("p",{staticClass:"isOver"},[e._v("所有导购今日添加已到上限")]):e._e()],1)}}])}),e._v(" "),o("div",{staticClass:"show-select-num cursor-pointer w-250",attrs:{slot:"reference"},slot:"reference"},[e.selected&&e.selected.length?o("span",[e._v(" 已经选择"+e._s(e.selected&&e.selected.length)+"家门店")]):o("span",{staticStyle:{color:"#C4C6CF"}},[e._v("请选择门店")]),e._v(" "),o("span",{staticClass:"el-input__suffix"},[o("span",{staticClass:"el-input__suffix-inner"},[o("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.departmentVisible?"is-reverse":""]})])])])],1)},staticRenderFns:[]};var i=o("VU/8")(a,n,!1,function(e){o("uD+P")},"data-v-0204ef30",null).exports,c=o("42hH"),m=o("RSOD"),u=o("PI0u");var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"is-error";e.$nextTick(function(e){document.getElementsByClassName(t)[0].scrollIntoView({block:"center",behavior:"smooth"})})},f={data:function(){var e=this;return{scrollToError:d,tagsDialogVisible:!1,landingPage:{pageSearchText:"",pageNum:1,pageSize:20},welcomeType:1,landingLoading:!1,loading:!1,landingData:[],total:0,landingForm:{},isEdit:"edit"==this.$route.meta.type,isAdd:"add"==this.$route.meta.type,rules:{name:{required:!0,message:"请输入链接名称"},memberLabelId:{required:!0,message:"请选择链接标签"},storeList:{required:!0,validator:function(t,o,s){if(1==e.form.customRuleJson.open&&!e.form.storeList.length)return s(new Error("请选择门店"));s()}}},storeData:[],form:{linkType:1,memberLabelName:"",memberLabelId:"",storeList:[],name:"",pageId:"",welcomeId:"",remark:"",storeRuleJson:{fw_store:{open:1,zs:1,dz:0,dy:0},xg_store:{open:1,zs:1,dz:0,dy:0}},customRuleJson:{open:1,store_type:1,store:{dz:1,dy:0,ndz:1,ndy:0},city_store:{open:1,dz:1,dy:0}}},wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",btnLoading:!1,storePageNum:0,totalCount:1}},components:{selectShop:i,welcomeItem:c.default,previewPage:m.a},mounted:function(){var e=this;this.getList(),document.addEventListener("visibilitychange",function(){"visible"==document.visibilityState&&(e.landingPage={pageSearchText:"",pageNum:1,pageSize:20},e.getList())}),this.isEdit?this.getDetail():this.getStoreList()},methods:{toInput:Object(u.a)(function(e,t){this.getList()},500),getStoreList:function(){var e=this;Object(l.w)({pageSize:999999}).then(function(t){var o=t.data.result,s=o.result,r=o.totalCount;e.totalCount=r,Array.isArray(s)&&Array.isArray(e.form.storeList)&&(e.storeData=s.map(function(t){return t.checked=e.form.storeList.some(function(e){return e.storeId==t.storeId}),t}))}).finally(function(t){e.busy=!1})},getDetail:function(){var e=this;this.loading=!0,Object(l.n)({linkId:this.$route.params.id}).then(function(t){var o=t.data.result;if(o){var s=o.link,r=o.page;s.customRuleJson=JSON.parse(s.customRuleJson),s.storeRuleJson=JSON.parse(s.storeRuleJson),s.storeList=s.storeList?s.storeList:[],e.form=s,e.form.welcomeId||(e.welcomeType=2),e.landingForm=r,e.getStoreList()}}).finally(function(t){e.loading=!1})},saveTagPop:function(e){var t=e.tagItemId,o=e.tagItemName;this.form.memberLabelName=o,this.form.memberLabelId=t,this.form.memberLabelStatus=1,this.$refs.form.validateField("memberLabelId")},handleTableRowClick:function(e){this.form.pageId=e.pageId},handleTagCloseTag:function(){this.form.memberLabelName="",this.form.memberLabelId=""},handleTransferChange:function(e){this.form.storeList=e,this.$refs.form.validateField("storeList")},getList:function(){var e=this;this.landingLoading=!0,Object(l.j)(this.landingPage).then(function(t){var o=t.data.result,s=o.result,r=o.totalCount;s&&(e.total=r,e.landingData=s)}).finally(function(t){e.landingLoading=!1})},getCurrentRow:function(e){console.log(e),this.landingForm=e,this.form.pageId=e.pageId},addTemp:function(){window.open("/haoban-3/#/ladingPageAdd")},disabledProperty:function(e,t,o,s){return[].concat(Array.prototype.slice.call(arguments)).filter(function(e){return 1==e}).length<=1},save:function(){var e=this;this.$refs.form.validate(function(t){console.log(t),t?e.validateForm():e.scrollToError(e)})},validateForm:function(){var e=this;if(!this.form.storeRuleJson.fw_store.open&&!this.form.storeRuleJson.xg_store.open&&!this.form.customRuleJson.open)return this.scrollToError(this,"storeRuleJson"),void this.$message.warning("请设置分配规则");if(this.$refs.welcomeItem.submit()){if(!this.form.pageId)return this.scrollToError(this,"pageId"),void this.$message.warning("请选择落地页模板");if(this.isEdit&&0==this.form.memberLabelStatus)this.$confirm("关联的标签在GIC中已被删除,无法统计和查看添加好友客户数据,为确保后续客户数据统计,请重新关联标签","关联的标签已被删除,请重新关联标签",{confirmButtonText:"选择标签",cancelButtonText:"取消",type:"warning"}).then(function(t){e.form.memberLabelId="",e.form.memberLabelName="",e.$refs.form.validateField("memberLabelId"),e.$nextTick(function(e){document.getElementsByClassName("memberTag-form-item")[0].scrollIntoView({block:"center",behavior:"smooth"})})});else{var t=JSON.parse(r()(this.form));0==t.storeRuleJson.fw_store.open&&(t.storeRuleJson.fw_store={open:0,zs:1,dz:0,dy:0}),0==t.storeRuleJson.xg_store.open&&(t.storeRuleJson.xg_store={open:0,zs:1,dz:0,dy:0}),0==t.customRuleJson.open&&(t.customRuleJson={open:0,store_type:1,store:{dz:1,dy:0,ndz:1,ndy:0},city_store:{open:1,dz:1,dy:0}},t.storeList=[]),0==t.customRuleJson.city_store.open&&(t.customRuleJson.city_store={open:0,dz:1,dy:0}),t.storeRuleJson=r()(t.storeRuleJson),t.customRuleJson=r()(t.customRuleJson),t.wxEnterpriseId=this.wxEnterpriseId,2==this.welcomeType&&(t.welcomeId=""),delete t.memberLabelStatus,this.btnLoading=!0,this.isAdd?Object(l.m)(t).then(function(t){setTimeout(function(){e.btnLoading=!1,e.$router.go(-1)},1e3)}).catch(function(t){e.btnLoading=!1}):Object(l.p)(t).then(function(t){setTimeout(function(){e.btnLoading=!1,e.$router.go(-1)},1e3)}).catch(function(t){e.btnLoading=!1})}}else this.scrollToError(this,"welcomeItem")}}},p={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p-20"},[o("el-form",{ref:"form",attrs:{"label-width":"100px",model:e.form,size:"small",rules:e.rules}},[o("dm-sub-title",{attrs:{type:"line"}},[e._v("基础信息")]),e._v(" "),o("div",{staticClass:"section"},[o("el-form-item",{attrs:{label:"链接类型",required:""}},[o("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.form.linkType,callback:function(t){e.$set(e.form,"linkType",t)},expression:"form.linkType"}},[o("el-radio",{attrs:{label:1}},[e._v("专用链接")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("通用链接")])],1),e._v(" "),1==e.form.linkType?o("p",{staticClass:"tips"},[e._v("仅用于在GIC系统中创建“短信模板”时直接添加引用,便于系统根据会员手机号为该引流链接带上特定会员参数,常用于通过短信的方式来促进存量会员的私域转化。")]):o("p",{staticClass:"tips"},[e._v("可复制此引流链接或下载链接二维码,通过不同营销活动、渠道等引导客户添加导购企微号,转化成私域流量。")])],1),e._v(" "),o("el-form-item",{attrs:{label:"链接名称",required:"",prop:"name"}},[o("el-input",{staticClass:"w-340",attrs:{placeholder:"请输入链接名称",maxlength:20,"show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"链接描述",prop:"remark"}},[o("el-input",{staticClass:"w-340",attrs:{placeholder:"请输入链接描述",type:"textarea",maxlength:100,autosize:{minRows:4,maxRows:6},"show-word-limit":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),e._v(" "),o("el-form-item",{staticClass:"memberTag-form-item",attrs:{label:"链接标签",required:"",prop:"memberLabelId"}},[e.form.memberLabelId?o("el-tooltip",{attrs:{disabled:!e.isEdit||0!=e.form.memberLabelStatus,content:"已删除",placement:"top"}},[o("el-tag",{attrs:{closable:"",type:e.isEdit&&0==e.form.memberLabelStatus?"warning":""},on:{close:e.handleTagCloseTag}},[e._v(e._s(e.form.memberLabelName))])],1):o("el-button",{attrs:{plain:"",type:"primary"},on:{click:function(t){e.tagsDialogVisible=!0}}},[o("i",{staticClass:"iconfont-components3 icon-cp-PlusOutlined font-12 m-r-5"}),e._v("添加标签")])],1),e._v(" "),o("dm-memberTag-group",{attrs:{isHb:"",visiable:e.tagsDialogVisible,projectName:"haobao-3"},on:{"update:visiable":function(t){e.tagsDialogVisible=t},save:e.saveTagPop}})],1),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("分配规则")]),e._v(" "),o("p",{staticClass:"tips-info"},[e._v("\n 客户点击此引流链接,系统所分配的企微员工活码将根据下方层级配置区分优先级进行展示:"),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v(" "),o("span",{staticStyle:{color:"#FA8C16"}},[e._v("优先级判断规则是“从上到下、从左到右”。")]),e._v("如:当上一层级匹配到结果后,则不会再执行下个层级的判断;同一层级内,当左边的勾选项匹配到结果,则不会再执行层级内右边的勾选项;"),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v("按照优先级匹配到的结果的大前提是该员工在【活码管理-员工活码】中具备有效的“单人活码”且“并未达到当天添加好友上限”,否则则继续进行后续优先级的判断; "),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v("若按照优先级所匹配到的结果已经与该客户是好友关系了,不会继续进行后续优先级的判断,直接展示该员工的活码。"),o("br")]),e._v(" "),o("div",{staticClass:"section"},[o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级一:服务门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.storeRuleJson.fw_store.open,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"open",t)},expression:"form.storeRuleJson.fw_store.open"}})],1),e._v(" "),e.form.storeRuleJson.fw_store.open?o("div",{staticClass:"content m-t-20"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.zs},model:{value:e.form.storeRuleJson.fw_store.zs,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"zs",t)},expression:"form.storeRuleJson.fw_store.zs"}},[e._v("专属导购")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.dz},model:{value:e.form.storeRuleJson.fw_store.dz,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"dz",t)},expression:"form.storeRuleJson.fw_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.dy},model:{value:e.form.storeRuleJson.fw_store.dy,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"dy",t)},expression:"form.storeRuleJson.fw_store.dy"}},[e._v("其他导购")])],1):e._e()]),e._v(" "),o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级二:协管门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.storeRuleJson.xg_store.open,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"open",t)},expression:"form.storeRuleJson.xg_store.open"}})],1),e._v(" "),e.form.storeRuleJson.xg_store.open?o("p",{staticClass:"tips margin-num"},[e._v("当客户在多个协管门店下都有协管导购时,随机取一个协管门店导购")]):e._e(),e._v(" "),e.form.storeRuleJson.xg_store.open?o("div",{staticClass:"content"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.zs},model:{value:e.form.storeRuleJson.xg_store.zs,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"zs",t)},expression:"form.storeRuleJson.xg_store.zs"}},[e._v("协管门店导购")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.dz},model:{value:e.form.storeRuleJson.xg_store.dz,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"dz",t)},expression:"form.storeRuleJson.xg_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.dy},model:{value:e.form.storeRuleJson.xg_store.dy,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"dy",t)},expression:"form.storeRuleJson.xg_store.dy"}},[e._v("其他导购")])],1):e._e()]),e._v(" "),o("div",{staticClass:"level storeRuleJson"},[o("div",{staticClass:"title"},[o("span",[e._v("层级三:其他门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.customRuleJson.open,callback:function(t){e.$set(e.form.customRuleJson,"open",t)},expression:"form.customRuleJson.open"}})],1),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-1"},[o("el-radio-group",{model:{value:e.form.customRuleJson.store_type,callback:function(t){e.$set(e.form.customRuleJson,"store_type",t)},expression:"form.customRuleJson.store_type"}},[o("el-radio",{attrs:{label:1}},[e._v("推荐门店")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("附近门店")])],1),e._v(" "),1==e.form.customRuleJson.store_type?o("p",{staticClass:"tips m-t-6"},[e._v("可配置最多20个门店作为推荐门店让客户自主选择要添加的门店好友")]):o("p",{staticClass:"tips m-t-6"},[e._v("需客户同意授权当前定位信息,才可展示客户附近最多20家门店供客户选择,否则只能在指定门店下选择")])],1):e._e(),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-2"},[1==e.form.customRuleJson.store_type?o("div",{staticClass:"level3-2-content"},[o("el-form-item",{attrs:{label:"选择门店","label-width":"92px",prop:"storeList"}},[o("selectShop",{attrs:{data:e.storeData,max:20,selected:e.form.storeList,canSelectAll:!1},on:{change:e.handleTransferChange}})],1),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dz},model:{value:e.form.customRuleJson.store.dz,callback:function(t){e.$set(e.form.customRuleJson.store,"dz",t)},expression:"form.customRuleJson.store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dy},model:{value:e.form.customRuleJson.store.dy,callback:function(t){e.$set(e.form.customRuleJson.store,"dy",t)},expression:"form.customRuleJson.store.dy"}},[e._v("导购")])],1):o("div",{staticClass:"level3-2-content"},[o("p",{staticClass:"content-tips"},[e._v("客户同意授权当前定位信息,可在“附近门店”中自主选择要添加的门店好友")]),e._v(" "),o("div",{staticClass:"level3-2-content-check"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dz},model:{value:e.form.customRuleJson.store.dz,callback:function(t){e.$set(e.form.customRuleJson.store,"dz",t)},expression:"form.customRuleJson.store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dy},model:{value:e.form.customRuleJson.store.dy,callback:function(t){e.$set(e.form.customRuleJson.store,"dy",t)},expression:"form.customRuleJson.store.dy"}},[e._v("导购")])],1),e._v(" "),o("p",{staticClass:"content-tips m-b-10"},[e._v("客户拒绝授权当前定位信息,可在下方指定的门店范围中(最多20家)自主选择要添加的门店好友")]),e._v(" "),o("el-form-item",{attrs:{label:"选择门店","label-width":"92px",prop:"storeList"}},[o("selectShop",{attrs:{data:e.storeData,max:20,selected:e.form.storeList,canSelectAll:!1},on:{change:e.handleTransferChange}})],1),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.ndz,e.form.customRuleJson.store.ndy)&&e.form.customRuleJson.store.ndz},model:{value:e.form.customRuleJson.store.ndz,callback:function(t){e.$set(e.form.customRuleJson.store,"ndz",t)},expression:"form.customRuleJson.store.ndz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.ndz,e.form.customRuleJson.store.ndy)&&e.form.customRuleJson.store.ndy},model:{value:e.form.customRuleJson.store.ndy,callback:function(t){e.$set(e.form.customRuleJson.store,"ndy",t)},expression:"form.customRuleJson.store.ndy"}},[e._v("导购")])],1)]):e._e(),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-3"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.form.customRuleJson.city_store.open,callback:function(t){e.$set(e.form.customRuleJson.city_store,"open",t)},expression:"form.customRuleJson.city_store.open"}},[e._v("除附近门店/指定门店之外,允许客户按照省市区自由筛选商户所有门店进行添加")]),e._v(" "),e.form.customRuleJson.city_store.open?o("div",{staticClass:"level3-3-content"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.city_store.dz,e.form.customRuleJson.city_store.dy)&&e.form.customRuleJson.city_store.dz},model:{value:e.form.customRuleJson.city_store.dz,callback:function(t){e.$set(e.form.customRuleJson.city_store,"dz",t)},expression:"form.customRuleJson.city_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.city_store.dz,e.form.customRuleJson.city_store.dy)&&e.form.customRuleJson.city_store.dy},model:{value:e.form.customRuleJson.city_store.dy,callback:function(t){e.$set(e.form.customRuleJson.city_store,"dy",t)},expression:"form.customRuleJson.city_store.dy"}},[e._v("导购")])],1):e._e()],1):e._e()])]),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("欢迎语设置")]),e._v(" "),o("div",{staticClass:"section"},[o("welcomeItem",{ref:"welcomeItem",staticClass:"welcomeItem",attrs:{welcomeId:e.form.welcomeId,welcomeType:e.welcomeType,welcomeName:"link"},on:{"update:welcomeId":function(t){return e.$set(e.form,"welcomeId",t)},"update:welcome-id":function(t){return e.$set(e.form,"welcomeId",t)},"update:welcomeType":function(t){e.welcomeType=t},"update:welcome-type":function(t){e.welcomeType=t}}})],1),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("落地页配置")]),e._v(" "),o("div",{staticClass:"section flex",staticStyle:{"margin-bottom":"40px"}},[o("el-form-item",{staticClass:"pageId",attrs:{label:"选择模板"}},[o("div",{staticClass:"table"},[o("div",{staticClass:"search"},[o("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.landingPage.pageSearchText,callback:function(t){e.$set(e.landingPage,"pageSearchText",t)},expression:"landingPage.pageSearchText"}}),e._v(" "),o("el-button",{attrs:{plain:"",type:"primary"},on:{click:e.addTemp}},[e._v("新建模板")])],1),e._v(" "),o("el-table",{attrs:{data:e.landingData,height:"426",loading:e.landingLoading},on:{"row-click":function(t){return e.getCurrentRow(t)}}},[o("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[o("el-radio",{staticClass:"hideLable",attrs:{label:s.pageId},nativeOn:{change:function(t){return e.getCurrentRow(s)}},model:{value:e.form.pageId,callback:function(t){e.$set(e.form,"pageId",t)},expression:"form.pageId"}},[o("i")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"pageCode",label:"模板ID",minWidth:"148"}}),e._v(" "),o("el-table-column",{attrs:{prop:"pageName",label:"模板名称",minWidth:"172","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{prop:"pageTitle",label:"页面标题",minWidth:"156","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{prop:"guideComment",label:"引导语",minWidth:"152","show-overflow-tooltip":""}})],1),e._v(" "),o("el-pagination",{staticClass:"paginationBox",attrs:{background:"","current-page":e.landingPage.pageNum,"page-size":e.landingPage.pageSize,layout:"prev, pager,next ",total:e.total},on:{"current-change":e.getList,"update:currentPage":function(t){return e.$set(e.landingPage,"pageNum",t)},"update:current-page":function(t){return e.$set(e.landingPage,"pageNum",t)},"update:pageSize":function(t){return e.$set(e.landingPage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.landingPage,"pageSize",t)}}})],1)]),e._v(" "),e.landingForm&&Object.keys(e.landingForm).length?o("div",{staticClass:"preview"},[o("p",{staticClass:"previewTitle"},[e._v("落地页预览")]),e._v(" "),o("previewPage",{attrs:{data:e.landingForm}}),e._v(" "),o("p",{staticClass:"previewBottom"},[e._v("此二维码只是样式预览效果,请勿直接使用")])],1):e._e()],1)],1)],1),e._v(" "),o("div",{staticClass:"footBtn"},[o("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("保存")])],1)])},staticRenderFns:[]};var v=o("VU/8")(f,p,!1,function(e){o("p3cv")},"data-v-0e0c226e",null);t.default=v.exports},p3cv:function(e,t){},"uD+P":function(e,t){}});
\ No newline at end of file
webpackJsonp([51],{"023O":function(t,e,a){"use strict";a.d(e,"g",function(){return s}),a.d(e,"e",function(){return c}),a.d(e,"b",function(){return i}),a.d(e,"h",function(){return r}),a.d(e,"c",function(){return o}),a.d(e,"d",function(){return l}),a.d(e,"f",function(){return u}),a.d(e,"a",function(){return g});var n=a("P9l9"),s=function(t){return Object(n.g)("/haoban-app-customer-web/tag/classify-list",t)},c=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-setting",t)},i=function(t){return Object(n.g)("/haoban-app-customer-web/tag/close-sync",t)},r=function(t){return Object(n.g)("/haoban-app-customer-web/tag/tag-list",t)},o=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-log",t)},l=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-member-log",t)},u=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-tag-log",t)},g=function(){return Object(n.g)("/haoban-app-customer-web/tag/check-sync",{})}},HmLC:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("woOf"),s=a.n(n),c=a("023O"),i=a("Ch4/"),r={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},mounted:function(){this.brandId&&this.getTagCategoryList(),this.brandId&&this.getTableList(),this.checkSyncCount()},data:function(){return{tableData:[],tagCategory:[],tagCategoryId:-1,tableList:[],tagIds:[],search:"",syncStatus:-1,wxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,pageSize:20,currentPage:1,total:0,drawer:!1,isShake:!1,loading:!1,selectIds:{},cancelIds:[],canSync:!0,totalCount:4,canUseCount:0,checkFirst:"",syncStatusOpt:{0:"未同步",1:"同步中",2:"同步完成 ",3:"同步失败"},syncStatusClass:{0:"state-point-default",1:"state-point-loading-scale",2:"state-point-success",3:"state-point-error"}}},methods:{checkSyncCount:function(){var t=this;Object(c.a)().then(function(e){e.data.result&&(t.canSync=e.data.result.canSync,t.totalCount=e.data.result.totalCount,t.canUseCount=e.data.result.canUseCount)})},checkSelectable:function(t){return!!this.canSync&&(0!==this.canUseCount&&!(!t.tagItems.length||0!==t.syncFlag))},getTagCategoryList:function(){var t=this;Object(c.g)({enterpriseId:this.brandId}).then(function(e){t.tagCategory=e.data.result})},searchList:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;this.loading=!0;var e={wxEnterpriseId:this.wxEnterpriseId,enterpriseId:this.brandId,classifyId:this.tagCategoryId,pageSize:this.pageSize,pageNum:this.currentPage,syncStatus:this.syncStatus,search:this.search};Object(c.h)(e).then(function(e){t.total=e.data.result.totalCount,Array.isArray(e.data.result.result)&&e.data.result.result.length?(e.data.result.result.map(function(t,e){t.expend=!1,t.index=e,t.check=!1}),t.tableData=[].concat(e.data.result.result),t.$nextTick(function(){t.changePageToggleSelect()})):t.tableData=[]}).finally(function(e){t.loading=!1})},closeSync:function(t){var e=this,a={memberTagId:t.tagId,enterpriseId:this.brandId,wxEnterpriseId:this.wxEnterpriseId};Object(c.b)(a).then(function(a){var n=a.data;1==n.errorCode?(e.$message.success(t.tagName+"标签,取消同步"),e.getTableList()):i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},expendTag:function(t){t.expend=!t.expend,this.$refs.table.toggleRowExpansion(t,t.expend)},changeSync:function(t){var e=this;this.$confirm("此为敏感操作!关闭同步后,企微标签库中该标签将会被立即删除, “企微好友”身上所被打的该标签也会被清除,请再次确认您的操作!","确认关闭同步?").then(function(){e.closeSync(t)}).catch(function(){})},handleSizeChange:function(t){this.pageSize=t,this.currentPage=1,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},onChangeCate:function(t){this.tagCategoryId=t,this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){var e=this;this.tagIds=[].concat(t);var a=s()({},this.selectIds);t.forEach(function(t){void 0===a[t.tagId]&&(a[t.tagId]=t)}),this.selectIds=s()({},a),this.isShake=!0,setTimeout(function(){return e.isShake=!1},300)},rowCheckChange:function(t,e,a){this.canSync&&0===t.syncFlag&&t.tagItems.length&&this.canUseCount&&(this.$refs.table.toggleRowSelection(t),t.check=!t.check)},cancelSelect:function(t){var e=this;this.tableData.find(function(e){return e.tagId===t.tagId})?this.$nextTick(function(){e.$refs.table.toggleRowSelection(e.tableData[e.selectIds[t.tagId].index],!1)}):(this.cancelIds.push(t.tagId),this.tagIds.splice(this.tagIds.findIndex(function(e){return e.tagId===t.tagId}),1))},changePageToggleSelect:function(){var t=this;this.cancelIds.forEach(function(e,a){var n=t.tableData.find(function(t){return t.tagId===e});n&&t.$nextTick(function(){t.$refs.table.toggleRowSelection(t.tableData[n.index],!1)})}),this.cancelIds=[]},checkSync:function(){var t=this;this.$confirm("由于数据量可能过大以及企微限制,系统执行较缓慢,请耐心等待","确认开启同步?").then(function(){t.handlePartSync()}).catch(function(){}),this.drawer=!1},handlePartSync:function(){var t=this;t.loading=!0;var e=t.tagIds.map(function(t){return t.tagId}).toString(),a={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId,tagIds:e};Object(c.e)(a).then(function(e){var a=e.data;1==a.errorCode?setTimeout(function(){t.$message.success("批量同步完成"),t.selectIds={},t.tagIds=[],t.$refs.table.clearSelection(),t.getTableList()},3e3):(t.loading=!1,i.a.errorMsg(a))}).catch(function(e){t.loading=!1,t.$message.error(e.message)})},clearSlected:function(){this.selectIds={},this.tagIds=[],this.$refs.table.clearSelection()}},watch:{brandId:function(t){this.getTagCategoryList(),this.getTableList(),this.checkSyncCount(),this.clearSlected()}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap member-tag"},[t._m(0),t._v(" "),a("div",{staticClass:"bottom"},[a("ul",{staticClass:"tag-category"},[a("li",{class:[-1==t.tagCategoryId?"acitve":""],on:{click:function(e){return t.onChangeCate(-1)}}},[t._v("全部标签分组")]),t._v(" "),t._l(t.tagCategory,function(e){return a("li",{key:e.id,class:["indent-tag",e.id==t.tagCategoryId?"acitve":""],on:{click:function(a){return t.onChangeCate(e.id)}}},[t._v(t._s(e.name))])})],2),t._v(" "),a("div",{staticClass:"tag-content"},[a("div",{staticClass:"tag-content-top p-20"},[a("div",{staticClass:"slect-wrap"},[a("el-input",{staticStyle:{width:"223px"},attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search",clearable:""},on:{change:t.searchList},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),a("el-select",{staticClass:"w-160 m-l-10",attrs:{placeholder:"全部同步状态"},on:{change:t.searchList},model:{value:t.syncStatus,callback:function(e){t.syncStatus=e},expression:"syncStatus"}},[a("el-option",{attrs:{label:"未同步",value:0}}),t._v(" "),a("el-option",{attrs:{label:"同步中",value:1}}),t._v(" "),a("el-option",{attrs:{label:"同步完成",value:2}}),t._v(" "),a("el-option",{attrs:{label:"全部同步状态",value:-1}})],1)],1),t._v(" "),a("div",{staticClass:"btn-group"},[t.$getButtonLimit(t.$buttonCode.willSyncTag)?a("el-button",{class:["sync-btn",t.isShake?"shake":""],attrs:{"limit-code":t.$buttonCode.willSyncTag,type:"primary",disabled:!t.canSync||!t.canUseCount},on:{click:function(e){t.drawer=!0}}},[t._v("待开启同步标签( "+t._s(t.tagIds.length)+" )")]):t._e(),0===t.canUseCount?a("span",{staticClass:"no-use-count"},[t._v("本月同步次数已用尽")]):t._e()],1)]),t._v(" "),a("div",{staticClass:"tag-content-bottom"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark","row-key":"tagId"},on:{"selection-change":t.handleSelectionChange,"row-click":t.rowCheckChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",selectable:t.checkSelectable,"reserve-selection":!0}}),t._v(" "),a("el-table-column",{attrs:{label:"标签组",prop:"tagName","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.tagName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.tagDescribe||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"标签值","min-width":"240"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("div",{staticClass:"flex"},[t._l(n.tagItems.slice(0,4),function(e){return a("p",{key:e.tagItemId,staticClass:"tag-val"},[t._v(t._s(e.tagItemName))])}),t._v(" "),n.tagItems.length>4?a("el-button",{staticClass:"expendBtn",attrs:{type:"text"},on:{click:function(e){return e.stopPropagation(),t.expendTag(n)}}},[t._v(t._s(n.expend?"收起":"展开"))]):t._e()],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"同步状态",prop:"syncFlag"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",{class:["state-point",t.syncStatusClass[n.syncFlag]]},[t._v(t._s(t.syncStatusOpt[n.syncFlag]))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.breakSyncTag)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[2==n.syncFlag&&t.canSync&&t.$getButtonLimit(t.$buttonCode.breakSyncTag)?a("p",[a("el-button",{attrs:{"limit-code":t.$buttonCode.breakSyncTag,type:"text"},on:{click:function(e){return t.changeSync(n)}}},[t._v("关闭同步")])],1):a("p",[t._v("--")])]}}])}):t._e(),t._v(" "),a("el-table-column",{attrs:{type:"expand",width:"1"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("div",{staticClass:"expand-content"},t._l(n.tagItems,function(e){return a("span",{key:e.tagItemId,staticClass:"tag-val"},[t._v(t._s(e.tagItemName))])}),0)]}}])})],1),t._v(" "),a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-drawer",{attrs:{modal:!1,title:"待开启同步标签("+t.tagIds.length+")",visible:t.drawer,direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[t.tagIds.length?a("div",{staticClass:"tag-list"},[a("div",{staticClass:"header"},[a("el-button",{attrs:{type:"text"},on:{click:t.clearSlected}},[t._v("全部清空")])],1),t._v(" "),a("ul",{staticClass:"tag-content"},t._l(t.tagIds,function(e){return a("li",{key:e.tagId,staticClass:"tag-content-item"},[a("div",{staticClass:"left"},[a("p",{staticClass:"title"},[t._v(t._s(e.tagName))]),t._v(" "),a("p",{staticClass:"describe"},[t._v(t._s(e.tagDescribe||"- -"))])]),t._v(" "),a("i",{staticClass:"el-icon-error",on:{click:function(a){return t.cancelSelect(e)}}})])}),0),t._v(" "),a("div",{staticClass:"btn-wrap",on:{click:t.checkSync}},[a("p",{staticClass:"title"},[t._v("确认开启同步")]),t._v(" "),a("p",{staticClass:"tip"},[t._v("注:每月可使用"+t._s(t.totalCount)+"次,目前还剩"+t._s(t.canUseCount)+"次")])])]):a("div",{staticClass:"empty"},[a("svg",{staticClass:"icon svg-icon",staticStyle:{width:"72px",height:"46px","margin-bottom":"10px"},attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#iconkongbiaoqian",size:"46"}})]),t._v(" "),a("p",[t._v("请先选择需开启同步的标签组")])])])],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"top p-20"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-warning color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("\n 1. 下方的标签是从【GIC后台-会员标签-手工标签-导购标签】中获取而来,若不一致,可刷新页面获取GIC后台最新的导购标签库。"),e("br"),this._v("\n 2. 可选多个GIC导购标签批量同步至企微标签库。每天最多操作同步1次,每月最多4次,请酌情开启同步。"),e("br"),this._v("\n 3. 当尚有“同步中”状态的导购标签时,不可进行其他操作如勾选标签或关闭同步等。"),e("br"),this._v("\n 4. 同步完成后,系统会将所选GIC导购标签同步至企微标签库,且“会员”身上被打上的GIC导购标签结果也会同步至企微端,也即“会员”所对应的企微客户身上也会被打上对应的同步过去的导购标签。"),e("br"),this._v("\n 5. 所选标签成功同步至企微侧后,标签名称会默认带有“GIC”前缀,便于和企微标签库中本身创建的标签区分;请勿在企微标签库中对GIC侧同步过去的标签进行修改,一旦在企微侧将GIC侧同步过去的标签组或标签组下的某标签值删除了,则该标签在此处将自动关闭同步,企微客户身上所打的该标签组下的标签值也会自动清除。\n ")])])])])}]};var l=a("VU/8")(r,o,!1,function(t){a("TM6Y")},"data-v-effc6b8e",null);e.default=l.exports},TM6Y:function(t,e){}});
\ No newline at end of file
webpackJsonp([51],{"7+du":function(t,a){},XrL3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),o=e("Ch4/"),n=e("PI0u"),r=e("P9l9"),l={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{salesGoodsFlag:!1,notSalesGoodsFlag:!1,showPriceFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var a=this,e={enterpriseId:a.brandId,salesGoodsFlag:a.myCustomData.salesGoodsFlag?1:"0",notSalesGoodsFlag:a.myCustomData.notSalesGoodsFlag?1:"0",showPriceFlag:a.myCustomData.showPriceFlag?1:"0"};Object(r.e)("/haoban-app-aggregation-web/save-goods-setting",e).then(function(t){var e=t.data;a.loading=!1,a.getCustomerSet(),1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={enterpriseId:a.brandId,wxEnterpriseRelatedId:a.wxEnterpriseRelatedId};Object(r.e)("/haoban-app-aggregation-web/find-goods-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):e.result&&(a.myCustomData.salesGoodsFlag=1==e.result.salesGoodsFlag,a.myCustomData.notSalesGoodsFlag=1==e.result.notSalesGoodsFlag,a.myCustomData.showPriceFlag=1==e.result.showPriceFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getCustomerSet(this.brandId)},components:{}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("div",{staticClass:"m-b-20"},[e("span",{staticClass:"font-14 p-r-10"},[t._v("商品展示:")]),t._v(" "),e("el-checkbox",{model:{value:t.myCustomData.salesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"salesGoodsFlag",a)},expression:"myCustomData.salesGoodsFlag"}},[t._v("已上架商品")]),e("el-checkbox",{model:{value:t.myCustomData.notSalesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"notSalesGoodsFlag",a)},expression:"myCustomData.notSalesGoodsFlag"}},[t._v("未上架商品")])],1),t._v(" "),e("div",[e("el-switch",{model:{value:t.myCustomData.showPriceFlag,callback:function(a){t.$set(t.myCustomData,"showPriceFlag",a)},expression:"myCustomData.showPriceFlag"}}),e("span",{staticClass:"font-14 color-303133 p-l-10"},[t._v("商品详情屏蔽价格")]),e("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。")])],1),t._v(" "),e("div",{staticClass:"m-t-46"},[e("el-button",{attrs:{type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var d=e("VU/8")(l,i,!1,function(t){e("7+du")},"data-v-d0590c98",null);a.default=d.exports}});
\ No newline at end of file
webpackJsonp([52],{"023O":function(t,e,a){"use strict";a.d(e,"g",function(){return s}),a.d(e,"e",function(){return r}),a.d(e,"b",function(){return i}),a.d(e,"h",function(){return l}),a.d(e,"c",function(){return o}),a.d(e,"d",function(){return c}),a.d(e,"f",function(){return u}),a.d(e,"a",function(){return g});var n=a("P9l9"),s=function(t){return Object(n.g)("/haoban-app-customer-web/tag/classify-list",t)},r=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-setting",t)},i=function(t){return Object(n.g)("/haoban-app-customer-web/tag/close-sync",t)},l=function(t){return Object(n.g)("/haoban-app-customer-web/tag/tag-list",t)},o=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-log",t)},c=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-member-log",t)},u=function(t){return Object(n.g)("/haoban-app-customer-web/tag/sync-tag-log",t)},g=function(){return Object(n.g)("/haoban-app-customer-web/tag/check-sync",{})}},"7Z6a":function(t,e){},T435:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("023O"),s={name:"sync-history",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableData:[],pageSize:20,pageNum:1,total:0,memberSyncParam:{},memberSyncData:[],memberSyncTotal:0,memberSyncPageNum:1,tagSyncParam:{},tagSyncData:[],tagSyncSearch:"",wxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,taskType:-1,loading:!1,failDialog:!1,memberLoading:!1,tagLoading:!1,tagDialog:!1,logStatusClass:{0:"state-point-default",1:"state-point-loading",2:"state-point-loading",3:"state-point-success",4:"state-point-error",5:"state-point-warning"}}},methods:{getTalbeList:function(){var t=this;this.loading=!0;var e={wxEnterpriseId:this.wxEnterpriseId,enterpriseId:this.brandId,pageSize:this.pageSize,pageNum:this.pageNum,taskType:this.taskType};Object(n.c)(e).then(function(e){t.total=e.data.result.totalCount,t.tableData=e.data.result.result,t.loading=!1})},reFresh:function(t){this.pageNum=1,this.getTalbeList()},handleSizeChange:function(t){this.pageSize=t,this.pageNum=1,this.getTalbeList()},handleCurrentChange:function(t){this.pageNum=t,this.getTalbeList()},memberLogShow:function(t){this.memberSyncParam=t,this.failDialog=!0,this.getMemberTable()},getMemberTable:function(){var t=this;this.memberLoading=!0;var e={wxEnterpriseId:this.wxEnterpriseId,enterpriseId:this.brandId,pageSize:5,pageNum:this.memberSyncPageNum,taskId:this.memberSyncParam.taskId};Object(n.d)(e).then(function(e){t.memberSyncTotal=e.data.result.totalCount,t.memberSyncData=e.data.result.result,t.memberLoading=!1})},memberSyncCurrentChange:function(t){this.memberSyncPageNum=t,this.getMemberTable()},tagLogShow:function(t){this.tagSyncParam=t,this.tagDialog=!0,this.getTagTable()},getTagTable:function(){var t=this;this.tagLoading=!0;var e={wxEnterpriseId:this.wxEnterpriseId,enterpriseId:this.brandId,taskId:this.tagSyncParam.taskId,search:this.tagSyncSearch};Object(n.f)(e).then(function(e){t.tagSyncData=e.data.result,t.tagLoading=!1})},filterHandler:function(t,e,a){return e[a.property]===t}},mounted:function(){this.getTalbeList()},filters:{taskType:function(t){switch(t){case 0:return"开启同步";case 1:return"关闭同步"}},taskStatus:function(t){switch(t){case 0:return"删除";case 1:return"同步标签组到企业微信";case 2:return"同步好友标签";case 3:return"同步成功";case 4:return"同步失败";case 5:return"部分同步成功"}},tagStatus:function(t){switch(t){case 0:return"删除 ";case 1:return"预处理";case 2:return"成功";case 3:return"失败"}}},watch:{brandId:function(t){this.getTalbeList()}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap history p-20"},[t._m(0),t._v(" "),a("div",{staticClass:"search-group m-b-20"},[a("el-select",{staticStyle:{width:"160px"},attrs:{placeholder:"全部事件类型"},on:{change:t.reFresh},model:{value:t.taskType,callback:function(e){t.taskType=e},expression:"taskType"}},[a("el-option",{attrs:{value:0,label:"开启同步"}}),t._v(" "),a("el-option",{attrs:{value:1,label:"关闭同步"}}),t._v(" "),a("el-option",{attrs:{value:-1,label:"全部事件类型"}})],1)],1),t._v(" "),a("div",{staticClass:"sync-history-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"事件类型",prop:"taskType","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("taskType")(a.taskType)))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"更新时间",prop:"updateTime","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(n.updateTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(n.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作人",prop:"optStaffName",width:"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"涉及更新项",prop:"taskContent","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"状态",prop:"statusFlag",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("div",{staticClass:"status-class"},[a("span",{class:["state-point",t.logStatusClass[n.statusFlag]]},[t._v(t._s(t._f("taskStatus")(n.statusFlag)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[0===n.taskType?[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.tagLogShow(n)}}},[t._v("标签同步明细")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.memberLogShow(n)}}},[t._v("会员同步失败明细")])]:a("p")]}}])})],1),t._v(" "),a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.pageNum,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.failDialog,"close-on-click-modal":!1,title:"同步失败明细",width:"500px","custom-class":"sync-fail"},on:{"update:visible":function(e){t.failDialog=e}}},[a("span",[t._v("温馨提示:仅展示同步失败的会员")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.memberLoading,expression:"memberLoading"}],staticClass:"m-b-20 m-t-20",attrs:{data:t.memberSyncData}},[a("el-table-column",{attrs:{prop:"memberName",label:"会员姓名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"会员同步失败原因"}})],1),t._v(" "),a("el-pagination",{staticStyle:{margin:"0 0 10px 0","text-align":"right"},attrs:{small:"",layout:"prev, pager, next",total:t.memberSyncTotal,"current-page":t.memberSyncPageNum,"page-size":5},on:{"current-change":t.memberSyncCurrentChange}}),t._v(" "),a("el-button",{staticClass:"close-btn",attrs:{type:"primary"},on:{click:function(e){t.failDialog=!1}}},[t._v("关闭")])],1),t._v(" "),a("el-dialog",{attrs:{visible:t.tagDialog,"close-on-click-modal":!1,title:"标签同步明细",width:"500px","custom-class":"sync-fail"},on:{"update:visible":function(e){t.tagDialog=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.tagLoading,expression:"tagLoading"}],staticClass:"m-b-20 m-t-20",attrs:{data:t.tagSyncData,"max-height":"304"}},[a("el-table-column",{attrs:{prop:"tagName",label:"标签组","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"statusFlag",label:"同步状态",width:"100",filters:[{text:"预处理",value:1},{text:"成功",value:2},{text:"失败",value:3}],"filter-method":t.filterHandler},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[3===n.statusFlag?a("el-tooltip",{attrs:{"open-delay":"200",content:n.reason,placement:"top"}},[a("span",{staticClass:"tooltip-icon",staticStyle:{cursor:"default"}},[t._v(t._s(t._f("tagStatus")(n.statusFlag)))])]):a("span",{staticStyle:{cursor:"default"}},[t._v(t._s(t._f("tagStatus")(n.statusFlag)))])]}}])})],1),t._v(" "),a("el-button",{staticClass:"close-btn",attrs:{type:"primary"},on:{click:function(e){t.tagDialog=!1}}},[t._v("关闭")])],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"top m-b-20"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-warning color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("\n 1. 同步日志指通过GIC修改并同步企微标签库,或者企微标签库修改同步的GIC标签库导致的标签覆盖(GIC标签库覆盖企微标签)"),e("br"),this._v("\n 2. 仅保存近一年同步日志"),e("br"),this._v("\n 3. 标签同步明细包含同步至企微标签库的明细,同步完成会更新列表中的【更新时间】"),e("br"),this._v("\n 4. 会员同步失败明细包含企微会员标签同步失败的明细\n ")])])])])}]};var i=a("VU/8")(s,r,!1,function(t){a("7Z6a")},"data-v-47581660",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([53],{AQLT:function(e,t){},zYBJ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("P9l9"),s=a("3E4D"),r=a("Ch4/"),o=a("9F6+"),i={props:{},comments:{NotManager:o.default},data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[],isManager:!1}},methods:{changeRoute:function(){this.$router.push("/contactsList")},goto:function(){window.open("https://www.yuque.com/docs/share/89a899fe-caae-41b3-86ea-2435a8066418?#")},changeToggle:function(e){e.expand=!e.expand},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(n.b)("/haoban-manage3-web/admin-list",a).then(function(e){var a=e.data;1==a.errorCode&&(a.result&&a.result.length&&a.result.forEach(function(e){e.expand=!1}),t.roleList=[],a.result.forEach(function(e){e.roleUser.length&&(t.roleList=t.roleList.concat(e.roleUser))})),t.isManager=10030!=a.errorCode,r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},refresh:function(){var e=this;Object(n.b)("/haoban-manage3-web/sync-qywx",{}).then(function(t){s.a.showmsg("刷新成功","success"),e.getData()})}},watch:{},mounted:function(){this.getData()},components:{NotManager:o.default}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[e.isManager?a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("1.好办管理后台管理员需在企业微信后台添加,"),a("el-button",{staticStyle:{"font-size":"13px"},attrs:{type:"text"},on:{click:e.goto}},[e._v("详情请见")]),e._v(" "),a("br"),e._v("\n 2.企业微信后台新增管理员后,请点击右侧【刷新】按钮刷新企业成员,否则不会同步到好办管理员列表。\n ")],1)])]),e._v(" "),e.$getButtonLimit(e.$buttonCode.refreshAdminList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.refreshAdminList,type:"primary"},on:{click:e.refresh}},[e._v("刷新")]):e._e()],1),e._v(" "),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.roleList}},[a("el-table-column",{attrs:{prop:"userName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"departmentName",label:"部门"}})],1)],1):a("not-manager")],1)},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("AQLT")},"data-v-ebd8891c",null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([53],{tIHq:function(t,e){},zYBJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),s=a("3E4D"),o=a("Ch4/"),r={props:{},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[]}},methods:{changeRoute:function(){this.$router.push("/contactsList")},goto:function(){window.open("https://www.yuque.com/docs/share/89a899fe-caae-41b3-86ea-2435a8066418?#")},changeToggle:function(t){t.expand=!t.expand},getData:function(t){var e=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(n.a)("/haoban-manage3-web/admin-list",a).then(function(t){var a=t.data;1==a.errorCode&&(a.result&&a.result.length&&a.result.forEach(function(t){t.expand=!1}),a.result.forEach(function(t){t.roleUser.length&&(e.roleList=e.roleList.concat(t.roleUser))})),o.a.errorMsg(a)}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})},refresh:function(){var t=this;Object(n.a)("/haoban-manage3-web/sync-qywx",{}).then(function(e){s.a.showmsg("刷新成功","success"),t.getData()})}},watch:{},mounted:function(){this.$emit("showTab",2),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("1.好办管理后台管理员需在企业微信后台添加,"),a("el-button",{staticStyle:{"font-size":"13px"},attrs:{type:"text"},on:{click:t.goto}},[t._v("详情请见")]),t._v(" "),a("br"),t._v("\n 2.企业微信后台新增管理员后,请点击右侧【刷新】按钮刷新企业成员,否则不会同步到好办管理员列表。\n ")],1)])]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.refresh}},[t._v("刷新")])],1),t._v(" "),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.roleList}},[a("el-table-column",{attrs:{prop:"userName",label:"姓名"}}),t._v(" "),a("el-table-column",{attrs:{prop:"userPhone",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"departmentName",label:"部门"}})],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("tIHq")},"data-v-c94a8626",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([54],{QRSH:function(e,t){},Z3Aa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),s=a("Ch4/"),o=a("P9l9"),n={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:0,handoverFlag:0},loading:!1}},methods:{setData:function(){var e={enterpriseId:this.brandId,wxEnterpriseRelatedId:this.wxEnterpriseRelatedId};e.searchFlag=this.myCustomData.searchFlag,e.handoverFlag=this.myCustomData.handoverFlag,Object(o.g)("/haoban-app-customer-web/customer/save-customer-setting",e).then(function(e){var t=e.data;1!=t.errorCode?s.a.errorMsg(t):r.a.showmsg("保存成功","success")})},getCustomerSet:function(){var e=this,t={enterpriseId:this.brandId,wxEnterpriseRelatedId:this.wxEnterpriseRelatedId};Object(o.g)("/haoban-app-customer-web/customer/find-customer-setting",t).then(function(t){var a=t.data||{},r=a.errorCode,o=a.result;1!=r?s.a.errorMsg(t.data):o&&(e.myCustomData.searchFlag=o.searchFlag,e.myCustomData.handoverFlag=o.handoverFlag)})}},mounted:function(){this.getCustomerSet()}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-form",[a("el-form-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.myCustomData.searchFlag,callback:function(t){e.$set(e.myCustomData,"searchFlag",t)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")])],1),e._v(" "),a("el-form-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.myCustomData.handoverFlag,callback:function(t){e.$set(e.myCustomData,"handoverFlag",t)},expression:"myCustomData.handoverFlag"}},[e._v("离职继承")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,店长可以选择离职的导购名下的好友会员,选择离职继承")])],1)],1),e._v(" "),a("div",{staticClass:"m-t-46"},[e.$getButtonLimit(e.$buttonCode.searchSetSave)?a("el-button",{attrs:{"limit-code":e.$buttonCode.searchSetSave,type:"primary",loading:e.loading},on:{click:e.setData}},[e._v("保 存")]):e._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,l,!1,function(e){a("QRSH")},"data-v-d98378a2",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([55],{"Q3j/":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={name:"page404",data:function(){return{gicHost:"",message:""}},methods:{toLogin:function(){location.href=this.gicHost+"/gic-web/#/login?ishb=1"}},mounted:function(){var e=this.$route.query.errorCode;this.message={1000:"系统异常",1001:"您还不是好办的管理员,请在 GIC 后台绑定好办企业后再登录",1003:"系统异常,通过手机号查询失败",1004:"企微应用未授权",1005:"登录超时,请重新登录",1006:"账号已冻结,请联系管理员"}[e]||"系统异常,请联系达摩管理员",this.$message.error(this.message),setTimeout(this.toLogin,3e3);var t=JSON.parse(sessionStorage.getItem("userInfos")||"{}");this.gicHost="string"==typeof t.gicHost?t.gicHost.replace(/\/$/,""):""}},o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"error-page"})},staticRenderFns:[]};var r=s("VU/8")(i,o,!1,function(e){s("hG/u")},"data-v-d96ad228",null);t.default=r.exports},"hG/u":function(e,t){}});
\ No newline at end of file
webpackJsonp([56],{"8fbE":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("3E4D"),n=o("Ch4/"),i=o("P9l9"),r={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var t=this;Object(i.b)("/haoban-app-customer-web/get-template-count",{}).then(function(e){var o=e.data||{},a=o.errorCode,i=o.result;1==a?t.canAddTemp=i>=20:n.a.errorMsg(e.data)})},toDel:function(t,e){var o=this;o.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.delTempList(e.templateId)}).catch(function(){})},delTempList:function(t){var e=this,o={templateId:t};Object(i.g)("/haoban-app-customer-web/del-group-template",o).then(function(t){var o=t.data;if(1==o.errorCode)return a.a.showmsg("删除成功","success"),void e.getTableList();n.a.errorMsg(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/editGroupTemplate?templateId="+e.templateId)},toStore:function(t,e){this.$router.push("/storeRangeSet?templateId="+e.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var t=this,e={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(i.g)("/haoban-app-customer-web/get-template-list",e).then(function(e){var o=e.data;1!=o.errorCode?n.a.errorMsg(o):t.templateList=o.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:" border-box p-lbr-20"},[o("div",{staticClass:"flex flex-space-between"},[o("div"),t._v(" "),o("div",[o("span",{staticClass:"font-12 color-909399"},[t._v("最多新建20个模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addGroupTemp)?o("el-button",{staticClass:"m-l-20",attrs:{"limit-code":t.$buttonCode.addGroupTemp,disabled:t.$store.state.wxEnterpriseType||t.canAddTemp,type:"primary"},on:{click:t.addTemplate}},[t._v("新建模版")]):t._e()],1)]),t._v(" "),o("div",{staticClass:"m-t-20"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.templateList,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.templateName))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.templateId))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),t._v(" "),o("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.editPerson))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.editTime)))]),t._v(" "),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.editTime)))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editGroupTemp)||t.$getButtonLimit(t.$buttonCode.setStoreArea)||t.$getButtonLimit(t.$buttonCode.delGroupTemp)?o("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.editGroupTemp)?o("el-button",{attrs:{"limit-code":t.$buttonCode.editGroupTemp,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.setStoreArea)?o("el-button",{attrs:{"limit-code":t.$buttonCode.setStoreArea,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toStore(e.$index,e.row)}}},[t._v("门店范围设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delGroupTemp)?o("el-button",{attrs:{"limit-code":t.$buttonCode.delGroupTemp,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1)])},staticRenderFns:[]};var l=o("VU/8")(r,s,!1,function(t){o("S+Rt")},"data-v-c61619d6",null);e.default=l.exports},"S+Rt":function(t,e){}});
\ No newline at end of file
webpackJsonp([57],{i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),l=a.n(i),n=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(n.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(n||{}).clerkEditInfo;l()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(n.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var c=a("VU/8")(r,d,!1,function(t){a("ih88")},"data-v-9518b3c2",null);e.default=c.exports},ih88:function(t,e){}});
\ No newline at end of file
webpackJsonp([58],{"8dpP":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"image-com flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var n=a("VU/8")(i,s,!1,function(t){a("OoNg")},"data-v-93ad74e2",null);e.default=n.exports},OoNg:function(t,e){}});
\ No newline at end of file
webpackJsonp([59],{"b+Km":function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("b+Km")},"data-v-92f687dc",null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([59],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("rU5F")},"data-v-785aa3f6",null);e.default=o.exports},rU5F:function(t,e){}});
\ No newline at end of file
webpackJsonp([6,58,67,68,70,86],{"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("csI9")},"data-v-7040e068",null);t.default=s.exports},"6usF":function(e,t){},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("OoNg")},"data-v-93ad74e2",null);t.default=s.exports},EmEY:function(e,t){},FQZX:function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),n=i.n(a),s=i("Gu7T"),l=i.n(s),r=i("gBtx"),c=i.n(r),o=i("mvHQ"),d=i.n(o),u=i("u4Bf"),p=i.n(u),m=i("Isrn"),h=i("l46T"),f=i("8dpP"),v=i("rYZf"),g=i("2WGr"),_=i("zHtI"),y=i("O3gZ"),b=i("fPyK"),C=i("fZjL"),I=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){I()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"title",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"description",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}),0)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("6usF")},"data-v-2d3c525a",null).exports,T=i("3E4D"),F=i("Ch4/"),$=i("PI0u"),O=i("P9l9"),M={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1,loadingBtn:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var n=this;if(n.tempaletDataList.splice(i,1),n.currentIndex--,n.currentIndex<=0&&(n.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&n[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;n[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,n){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!n.systemFlag)return!1;this[n.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object($.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;this.loadingBtn=!0,"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i=this,a={status:1,enterpriseId:i.enterpriseId,templateContent:d()(e),title:i.templateObj.title,description:i.templateObj.description,storeType:i.templateObj.storeType,memory:[]};Object(O.g)("/haoban-app-daily-three-web/daily/save-define-template",a).then(function(e){var a=e.data;if(i.loadingBtn=!1,1==a.errorCode)return T.a.showmsg("保存成功","success"),void t.$router.go(-1);F.a.errorMsg(a)}).catch(function(e){i.loadingBtn=!1,i.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(O.g)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}F.a.errorMsg(i)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(O.g)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?F.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(c()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(O.g)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));F.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(O.g)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();F.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(c()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(c()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;n.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:f.default,selectCom:v.default,dateRangeCom:g.default,inputCom:_.default,blockCom:y.default,qrcodeDialog:b.a,customSet:k},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;e.$emit("showTab","32","copy"===t.type?"322":t.templateId?"321":"322"),n.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}),0)],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){return e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(n,s){return a("li",{key:"li"+s,class:["filed-item","child-filed-item",e.currentChildKey==n.name&&e.currentChildIndex==s?"active-item":""],on:{click:function(a){return a.stopPropagation(),e.selectChildItem(n.name,i,s,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteChildItem(n.name,i,s,t.children,n)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==n.type||5==n.type?a("select-com",{attrs:{childItem:n}}):e._e(),e._v(" "),6==n.type?a("date-range-com",{attrs:{childItem:n}}):e._e(),e._v(" "),7==n.type?a("image-com",{attrs:{childItem:n}}):e._e(),e._v(" "),1==n.type||2==n.type||3==n.type||10==n.type||9==n.type?a("input-com",{attrs:{childItem:n}}):e._e(),e._v(" "),"11"==n.type&&n.systemFlag?a("block-com",{attrs:{childItem:n}}):e._e()],1)}),0)],1)]):e._e()]],2)}),0)],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,n){return[e.currentChildIndex!=n||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"unit",i)},"update:input-value":function(i){return e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=n||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child11"+n,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=n||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child12"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var V=i("VU/8")(M,L,!1,function(e){i("EmEY")},"data-v-b2e360f4",null);t.default=V.exports},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])}),0),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("Q9Uw")},"data-v-67147ae0",null);t.default=s.exports},OoNg:function(e,t){},Q9Uw:function(e,t){},Tvq6:function(e,t){},csI9:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("Tvq6")},"data-v-67cc7786",null);t.default=s.exports},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("FQZX")},"data-v-4cfabcb1",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([60],{QHTa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Gu7T"),i=a.n(n),c=a("bzW+"),o=a("Qie6"),r=a("Z8ln"),s=a("Ch4/"),h=a("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}],navName:{1:"会员基础设置",11:"客户展示设置",12:"客户分组设置",13:"客户搜索设置",14:"客户详情设置",15:"客户标签设置",151:"同步记录",2:"我的客户列表"},navFrontPath:{11:"/memberShowSet",12:"/memberShowSet",13:"/memberShowSet",14:"/memberShowSet",15:"/memberShowSet",151:"/memberTagSet",2:"/memberShowSet",21:"/myCustomerList"},activeBrand:"",activeGroup:"",expiredFlag:!1,loading:!0}},computed:{},methods:{checkTagTab:function(){var e=this;this.loading=!0;var t={enterpriseId:this.activeBrand},a=[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}];Object(h.b)("/haoban-app-customer-web/tag/open-tag",t).then(function(t){t.data.result?a[0].children[4]={tabId:"15",tabName:"客户标签设置",icon:""}:"/memberTagSet"===e.$route.path&&e.$router.replace("memberShowSet"),e.$nextTick(function(){e.tabListData=[].concat(a)})}).finally(function(t){return e.loading=!1})},getExpired:function(){var e=this,t={enterpriseId:e.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.expiredFlag=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){this.activeBrand=e,this.activeGroup=t,this.getExpired(),this.checkTagTab()},setSelectTab:function(e){switch(this.activeTab=e.tabId,e.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet");break;case"14":this.changeRoute("memberDetailSet");break;case"15":this.changeRoute("memberTagSet");break;case"2":this.changeRoute("myCustomerList")}},showTab:function(e){var t=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=e,this.activeSelTab=e,this.navpath=[].concat(i()(this.defaultNavpath)),a.length&&a.map(function(e){t.navpath[t.navpath.length-1].path=t.navFrontPath[e],t.navpath.push({name:t.navName[e],path:""})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath},on:{selectBrandId:e.selectBrandId}}),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e.loading?e._e():a("common-detail-left",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[e.activeBrand?a("router-view",{attrs:{brandId:e.activeBrand,activeGroupId:e.activeGroup,tabType:e.activeTab},on:{showTab:e.showTab}}):e._e()],1)],1)])])]),e._v(" "),e.expiredFlag?a("expired-dialog"):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(d,m,!1,function(e){a("jkgv")},"data-v-873ccd5c",null);t.default=b.exports},jkgv:function(e,t){}});
\ No newline at end of file
webpackJsonp([61],{KNi5:function(t,e){},z2RJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("woOf"),o=s.n(a),i=s("PI0u"),l=s("Ch4/"),r=s("3E4D"),n=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],activeId:"1",setObj:{taskCallTypes:[],taskType:0,overDayJudge:"3",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(i.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallTypes:t.setObj.taskCallTypes.join(","),taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(n.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?l.a.errorMsg(s):r.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(n.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1!=s.errorCode)l.a.errorMsg(s);else{s.result.relaxTaskJudge=1==s.result.relaxTaskJudge;var a="string"==typeof s.result.taskCallTypes?s.result.taskCallTypes.split(","):[];t.setObj=o()({},s.result,{taskCallTypes:a})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item flex"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"代理商户默认关闭双向呼叫功能,如需开通请联系达摩运营或实施进行开通",placement:"top-start","open-delay":200}},[s("span",{staticClass:"set-line-item_title text-right m-r-4"},[s("i",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","font-style":"normal","padding-bottom":"2px","border-bottom":"1px dashed rgb(47, 84, 235)"}},[t._v("不良评价拨打")]),t._v(":")])]),t._v(" "),s("el-checkbox-group",{model:{value:t.setObj.taskCallTypes,callback:function(e){t.$set(t.setObj,"taskCallTypes",e)},expression:"setObj.taskCallTypes"}},t._l(t.options,function(e){return s("el-checkbox",{key:e.value,attrs:{label:e.value}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start","open-delay":200}},[s("template",{slot:"content"},t._l(e.tooltips,function(e){return s("p",{key:e},[t._v(t._s(e))])}),0),t._v(" "),s("i",{class:["tooltips",t.setObj.taskCallTypes.includes(e.value)?"color-303133":"color-606266"]},[t._v(t._s(e.label))])],2)],1)}),1)],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var u=s("VU/8")(c,d,!1,function(t){s("KNi5")},"data-v-803bf094",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([61],{FLMi:function(t,e){},K8Yn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),r=a("Ch4/"),i=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"组织架构管理",path:"/orgStructSet"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1,recoverItem:{}}},computed:{},methods:{toRecover:function(t,e){this.recoverItem=e,this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",storeFlag:e.storeFlag,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.a)("/haoban-manage3-web/department-recycle-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:s.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:t.changeType},model:{value:t.storeFlag,callback:function(e){t.storeFlag=e},expression:"storeFlag"}},t._l(t.options,function(t){return a("el-option",{key:t.value+"type",attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["iconfont-hb3 color-2f54eb",1==e.row.isStore?"icondianpu-kuai":"iconqiye-tianchong"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRecover(e.$index,e.row)}}},[t._v("恢复")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])]),t._v(" "),t.setVisible?a("set-department",{attrs:{recoverItem:t.recoverItem},on:{closeSet:t.closeSet}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),e("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var u=a("VU/8")(o,c,!1,function(t){a("FLMi")},"data-v-76ee3008",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([62],{"0T6a":function(t,e){},IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},loading:!1,selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,defaultStoreList:[],loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.e)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:Object(l.a)(function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.b)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="云日报记录.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},300),handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;e.loading=!0;var a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(s.a)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","11"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("仅统计近两年数据")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("0T6a")},"data-v-757254ac",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([62],{aILu:function(t,a){},nV1L:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),r=e("Qie6"),o=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),v={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",defaultNavpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navName:{1:"卡券列表",11:"编辑卡券",12:"新增卡券",2:"卡券记录"},navFrontPath:{1:"/cardList",11:"/cardList",12:"/cardList",2:"/cardList"},tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path=a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:r.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(v,h,!1,function(t){e("aILu")},"data-v-7d35b933",null);a.default=u.exports}});
\ No newline at end of file
webpackJsonp([63],{g9l9:function(t,e){},z2RJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("woOf"),o=s.n(a),i=s("PI0u"),l=s("Ch4/"),r=s("3E4D"),n=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],activeId:"1",setObj:{taskCallTypes:[],taskType:0,overDayJudge:"3",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(i.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallTypes:t.setObj.taskCallTypes.join(","),taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(n.e)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?l.a.errorMsg(s):r.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(n.e)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1!=s.errorCode)l.a.errorMsg(s);else{s.result.relaxTaskJudge=1==s.result.relaxTaskJudge;var a="string"==typeof s.result.taskCallTypes?s.result.taskCallTypes.split(","):[];t.setObj=o()({},s.result,{taskCallTypes:a})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item flex"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"代理商户默认关闭双向呼叫功能,如需开通请联系达摩运营或实施进行开通",placement:"top-start","open-delay":200}},[s("span",{staticClass:"set-line-item_title text-right m-r-4"},[s("i",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","font-style":"normal","padding-bottom":"2px","border-bottom":"1px dashed rgb(47, 84, 235)"}},[t._v("不良评价拨打")]),t._v(":")])]),t._v(" "),s("el-checkbox-group",{model:{value:t.setObj.taskCallTypes,callback:function(e){t.$set(t.setObj,"taskCallTypes",e)},expression:"setObj.taskCallTypes"}},t._l(t.options,function(e){return s("el-checkbox",{key:e.value,attrs:{label:e.value}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start","open-delay":200}},[s("template",{slot:"content"},t._l(e.tooltips,function(e){return s("p",{key:e},[t._v(t._s(e))])}),0),t._v(" "),s("i",{class:["tooltips",t.setObj.taskCallTypes.includes(e.value)?"color-303133":"color-606266"]},[t._v(t._s(e.label))])],2)],1)}),1)],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var u=s("VU/8")(c,d,!1,function(t){s("g9l9")},"data-v-74784215",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([63],{LVyV:function(t,e){},c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),s=a.n(n),r=a("exGp"),i=a.n(r),o=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.templateId)}).catch(function(){})},delCardList:function(t){var e=this,a={templateId:t};Object(u.g)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardTemp?templateId="+e.templateId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardTemp")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(s.a.mark(function e(){var a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!0,n={wxEnterpriseId:a.wxEnterpriseId,search:a.searchInput||""},Object(u.g)("/haoban-app-customer-web/inner/list-template",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result||[],void(!a.searchInput&&e.result&&e.result.length&&(a.total=e.result.length));o.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入模板名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[t._v("内购券是选取GIC中针对企业内部员工发下的,最多创建20个模板")])],1),t._v(" "),t._m(0)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.templateName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.commitName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("微信卡券将暂停服务,后续优化后开放新增功能")])])])}]};var f=a("VU/8")(p,d,!1,function(t){a("LVyV")},"data-v-7aa85c5d",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([64],{fAFA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("PI0u"),c=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota"},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],loading:!1,tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return i()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={enterpriseId:a.brandId},Object(c.a)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):s.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return i()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(a=e).loading=!0,t.next=4,n={enterpriseId:e.brandId,year:e.year},Object(c.a)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 4:r=t.sent,o=r.data,a.loading=!1,1==o.errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.c)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 8:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getYearList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth)}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth)}}},[e._v("商户日权重")])]}}])})],2)],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("fni5")},"data-v-70988675",null);t.default=h.exports},fni5:function(e,t){}});
\ No newline at end of file
webpackJsonp([64],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("rU5F")},"data-v-785aa3f6",null);e.default=o.exports},rU5F:function(t,e){}});
\ No newline at end of file
webpackJsonp([65],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("csI9")},"data-v-7040e068",null);e.default=l.exports},csI9:function(t,e){}});
\ No newline at end of file
webpackJsonp([65],{Yz8m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("yJpZ")},"data-v-75a0055f",null);t.default=m.exports},yJpZ:function(e,t){}});
\ No newline at end of file
webpackJsonp([66],{Tvq6:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var i=a("VU/8")(s,c,!1,function(t){a("Tvq6")},"data-v-67cc7786",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([66],{hK2g:function(t,e){},xWf4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("P9l9"),l=a("PI0u"),s=a("+hGG"),r={data:function(){return{form:{title:"",pageSize:20,pageNum:1},dialogVisible:!1,welcomeId:"",total:0,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",friendSettingId:"",btnLoading:!1,iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},tableData:[],loading:!1}},mounted:function(){this.getData()},activated:function(){this.getData()},props:{type:{type:[Number,String],default:1}},components:{relationDialog:s.default},watch:{type:function(t){this.form={title:"",pageSize:20,pageNum:1},this.getData()}},methods:{toInput:Object(l.a)(function(t,e){this.getData()},500),clearSearch:function(){this.getData()},changeRoute:function(t){this.$router.push({path:"/editSalutatorySet",query:{id:t.welcomeId,isDefalut:t.defaultWelcomeFlag,type:t.type}})},addSalutatory:function(){this.$router.push({path:"/salutatorySet",query:{type:this.type}})},remove:function(t){2==t.type?this.delType2(t):this.delType1(t)},delType1:function(t){var e=this,a="模板删除后将无法恢复";1==t.defaultWelcomeFlag&&(a="此条欢迎语为全员欢迎语,删除后可能影响欢迎语发送"),this.$confirm(a,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})})},delType2:function(t){var e=this;Object(o.b)("/haoban-manage3-web/welcome/statistics",{welcomeId:t.welcomeId}).then(function(a){var i=a.data.result,n="";i?(i.qrCodeReferNum&&i.linkReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+")、链接("+i.linkReferNum+"),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板":i.qrCodeReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+"),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板":i.linkReferNum&&(n="当前欢迎语已关联链接("+i.linkReferNum+"),请确认相关链接已投放结束,解除关联后才可删除该模板"),e.$confirm(n,"无法删除该欢迎语",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(){e.showRelateDetail(t)})):(n="欢迎语删除后将无法恢复",e.$confirm(n,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})}))})},showRelateDetail:function(t){this.dialogVisible=!0,this.welcomeId=t.welcomeId},goLinkDetail:function(t){2==t.type?window.open("/haoban-3/#/actCodeDetail?hmId="+t.referId):window.open("/haoban-3/#/attractFlowLinkInfo/"+t.referId)},getData:function(){var t=this;this.loading=!0,Object(o.f)("/haoban-manage3-web/welcome/list",n()({},this.form,{wxEnterpriseId:this.wxEnterpriseId,type:this.type})).then(function(e){var a=e.data;0==a.code&&a.result&&(t.tableData=a.result.result,t.tableData.forEach(function(t){t.suitDepartmentName=[],t.suitDepartmentList&&t.suitDepartmentList.length&&t.suitDepartmentList.forEach(function(e){t.suitDepartmentName.push(e.departmentName)})}),t.total=a.result.totalCount,t.$nextTick(function(){var e=document.createElement("span");e.style.position="fixed",e.style.opacity=0,e.style.visibility="hidden";var a=t.$refs.title&&t.$refs.title.offsetWidth-85;t.tableData.map(function(t){return e.innerHTML=t.title,document.body.appendChild(e),t.isOverflow=e.offsetWidth>a,t}),document.body.removeChild(e)}))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getData()},handleCurrentChange:function(t){this.form.pageNum=t,this.getData()}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"admin-tip-body"},[1==t.type?a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(0)]):a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-20 m-t-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入标题",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addSalutatory,type:"primary"},on:{click:t.addSalutatory}},[t._v("新建欢迎语")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"标题",width:"200",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{ref:"title"},[i.isOverflow?a("el-tooltip",{attrs:{placement:"top",content:i.title}},[a("span",{staticClass:"title-text"},[t._v(t._s(i.title))])]):a("span",[t._v(t._s(i.title))]),t._v(" "),1==i.defaultWelcomeFlag?a("el-tag",{attrs:{size:"mini"}},[t._v("默认欢迎语")]):t._e()],1)}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"welcomeContent",label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.welcomeContent))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"附件",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.welcomeMediaList&&i.welcomeMediaList.length?a("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t._l(i.welcomeMediaList,function(e){return a("div",{key:e.welcomeMediaId,staticClass:"flexBox"},[a("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:t.iconType[e.mediaType],size:"16"}}),t._v(" "),a("span",{staticClass:"popverText"},[t._v(t._s(e.mediaTitle))])],1)}),t._v(" "),i.welcomeMediaList&&i.welcomeMediaList.length?a("div",{staticClass:"flexBox",attrs:{slot:"reference"},slot:"reference"},[a("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{iconname:t.iconType[i.welcomeMediaList[0].mediaType],size:"40"}}),t._v(" "),a("span",{staticClass:"wrapText"},[t._v(" "+t._s(i.welcomeMediaList[0].mediaTitle))])],1):t._e()],2):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("formatTimeStamp")(a.updateTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"creatorName",label:"创建人",width:"120","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"modifierName",label:"操作人",width:"120","show-overflow-tooltip":""}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{prop:"suitDepartmentName",label:"适用范围",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.defaultWelcomeFlag?a("div",[a("div",[t._v("全体成员")])]):a("div",[i.suitDepartmentName.join(",").length>40?a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(",").slice(0,40)+"...")+"\n ")]):a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(","))+"\n ")])])]}}])}):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)||t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-table-column",{attrs:{label:"操作",width:2==t.type?220:180,fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2==i.type,expression:"row.type == 2"}],attrs:{type:"text"},on:{click:function(e){return t.showRelateDetail(i)}}},[t._v("关联详情")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editSalutatory,type:"text"},on:{click:function(e){return t.changeRoute(i)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delSalutatory,type:"text"},on:{click:function(e){return t.remove(i)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),a("relation-dialog",{attrs:{dialogVisible:t.dialogVisible,id:t.welcomeId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e},goLinkDetail:t.goLinkDetail}}),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.form.pageNum,"page-sizes":[20,40,60,80],"page-size":t.form.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 1、若使用此处的好办欢迎语,请关闭企微欢迎语或其他自建应用/第三方应用的欢迎语配置,否则会产生冲突,好办欢迎语不生效。"),e("br"),this._v("\n 2、在使用此处好办欢迎语的情况下,只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语。 "),e("br"),this._v("\n 3、可按照企微不同的组织架构来分别配置不同的欢迎语。(若某企微员工在多个企微部门,或者某企微部门配置了多条欢迎语,则仅发送“更新时间”最新的那条欢迎语) "),e("br"),this._v("\n 4、创建欢迎语时,可在欢迎语内容中配置“带参会员小程序/带参公众号二维码”,以便于在“不同开平”的情况下,保证“客户”身份与“好友”身份的对应,"),e("a",{staticStyle:{color:"#2f54eb"},attrs:{href:"https://www.yuque.com/exnmlu/oo64hg/bsabp2",target:"_blank"}},[this._v("详见>>>")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 作为一个“欢迎语库”,下方所创建的欢迎语将可被不同模块进行引用,如【活码管理】中的活码欢迎语、链接欢迎语。\n ")])])}]};var u=a("VU/8")(r,c,!1,function(t){a("hK2g")},"data-v-737714c8",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([67],{O3gZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])}),0),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("Q9Uw")},"data-v-67147ae0",null);e.default=a.exports},Q9Uw:function(t,e){}});
\ No newline at end of file
webpackJsonp([67],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("csI9")},"data-v-7040e068",null);e.default=l.exports},csI9:function(t,e){}});
\ No newline at end of file
webpackJsonp([68],{lNsz:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),n={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"私人电话",value:1},{label:"企业电话",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(a.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.e)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?i.a.errorMsg(s):o.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.e)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10 set-long-tip"},[t._v("第三方双向呼叫及透传(透传功能暂无法使用,外呼显示号码为固定电话),可监控通话状态。呼叫结算及通话记录存储于GIC计费中心。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费。")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(n,r,!1,function(t){s("lNsz")},"data-v-65cf4516",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([69],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){return t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont-hb3 icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(t){a("lgO+")},"data-v-647acdf8",null);e.default=b.exports},"lgO+":function(t,e){}});
\ No newline at end of file
webpackJsonp([69],{"2FUZ":function(e,t){},RvMj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),r=a.n(l),s=a("Ch4/"),o=a("P9l9"),i={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{enterpriseId:"",guideReplyFlag:0,allOrderFlag:0,taskCallTypes:[],distributeCustomerJudge:"",overDayJudge:2},formRules:{distributeCustomerJudge:{required:!0,validator:function(e,t,a){if(1!=t&&2!=t)return a(new Error("请设置任务分配"));a()},trigger:"blur"},overDayJudge:{required:!0},taskCallTypes:{required:!0,message:"请选择拨打方式",trigger:"change"}},callTypes:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],loading:!1}},methods:{onSave:function(){var e=this;this.loading=!0,this.$refs.formData.validate(function(t){if(t){var a=e.formData,l=a.enterpriseId,r=a.guideReplyFlag,i=a.allOrderFlag,n=a.taskCallTypes,u=a.distributeCustomerJudge,d=a.overDayJudge;Object(o.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",{enterpriseId:l,guideReplyFlag:r,allOrderFlag:i,taskCallTypes:n.join(","),distributeCustomerJudge:u,overDayJudge:d,taskType:0}).then(function(t){if(1!=(t.data||{}).errorCode)return s.a.errorMsg(t.data);e.$message.success("保存成功")}).finally(function(){setTimeout(function(){return e.loading=!1},100)})}else e.loading=!1})},getConfig:function(){var e=this;Object(o.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",{enterpriseId:this.formData.enterpriseId,taskType:0}).then(function(t){var a=t.data||{},l=a.errorCode,o=a.result;if(1!=l)return s.a.errorMsg(t.data);r()(e.formData,{guideReplyFlag:o.guideReplyFlag,allOrderFlag:o.allOrderFlag,taskCallTypes:"string"==typeof o.taskCallTypes?o.taskCallTypes.split(","):[],distributeCustomerJudge:o.distributeCustomerJudge,overDayJudge:o.overDayJudge})})}},created:function(){this.formData.enterpriseId=this.brandId,this.getConfig()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"evaluate-set"},[a("el-form",[a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("订单评价设置")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.guideReplyFlag,callback:function(t){e.$set(e.formData,"guideReplyFlag",t)},expression:"formData.guideReplyFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("禁止订单关联导购回复评价")]),e._v(" "),a("p",{staticClass:"switch-tip"},[e._v(" 开启后,订单关联导购不可回复评价")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.allOrderFlag,callback:function(t){e.$set(e.formData,"allOrderFlag",t)},expression:"formData.allOrderFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("允许店员查看所有订单评价")])],1),e._v(" "),a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("不良评价回访设置")])],1),e._v(" "),a("el-form",{ref:"formData",attrs:{model:e.formData,rules:e.formRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"不良评价拨打",prop:"taskCallTypes"}},[a("el-checkbox-group",{model:{value:e.formData.taskCallTypes,callback:function(t){e.$set(e.formData,"taskCallTypes",t)},expression:"formData.taskCallTypes"}},e._l(e.callTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n "),a("el-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"content"},e._l(t.tooltips,function(t,l){return a("p",{key:l},[e._v(e._s(t))])}),0),e._v(" "),a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})],2)],1)}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"任务分配",prop:"distributeCustomerJudge"}},[a("el-radio-group",{model:{value:e.formData.distributeCustomerJudge,callback:function(t){e.$set(e.formData,"distributeCustomerJudge",t)},expression:"formData.distributeCustomerJudge"}},[a("el-radio",{attrs:{label:1}},[e._v("\n 分配给消费门店店长\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("\n 分配给专属导购\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"逾期设置",prop:"overDayJudge"}},[a("div",{staticClass:"delay-config"},[e._v("\n 不良评价回访下发后"),a("el-input-number",{staticClass:"delay-count",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:e.formData.overDayJudge,callback:function(t){e.$set(e.formData,"overDayJudge",t)},expression:"formData.overDayJudge"}}),e._v("天\n "),a("p",{staticClass:"delay-tip"},[e._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1)])],1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.saveEvaluateSet)?a("hb-form-bottom",[a("el-button",{attrs:{"limit-code":e.$buttonCode.saveEvaluateSet,type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1):e._e()],1)},staticRenderFns:[]};var u=a("VU/8")(i,n,!1,function(e){a("2FUZ")},"data-v-6740f24d",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([7,9,94],{"/mo2":function(t,e){},AIQa:function(t,e){},EGFN:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),o=a("u4Bf"),l=a.n(o),c=a("Isrn"),d=a("l46T"),p={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var u=a("VU/8")(p,v,!1,function(t){a("aqQ7")},"data-v-94775b56",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(m,f,!1,function(t){a("h7wL")},"data-v-66c2fe71",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(h,g,!1,function(t){a("zGvM")},"data-v-6f4f982c",null).exports,C={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(C,y,!1,function(t){a("cfOg")},"data-v-64e9da9d",null).exports,w={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(w,I,!1,function(t){a("pJmJ")},"data-v-b7ca6e44",null).exports,$={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},S={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")($,S,!1,function(t){a("AIQa")},"data-v-b252e530",null).exports,R=a("fPyK"),M={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},E={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(M,E,!1,function(t){a("S4PB")},"data-v-08c44adc",null).exports,P=a("3E4D"),T=a("Ch4/"),V=a("PI0u"),B=a("P9l9"),L={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(V.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(B.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?T.a.errorMsg(a):P.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(B.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}T.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(B.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}T.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(B.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?T.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:l.a,AddInput:c.a,limitInput:d.a,timeProgress:u,storePerformance:_,errorMointor:x,membershipData:b,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:R.a,systemSet:N},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},F={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var O=a("VU/8")(L,F,!1,function(t){a("Sxk4")},"data-v-0be1ec60",null);e.default=O.exports},RnLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("J/6z"),i=a("ak3k"),n={name:"DailySetting",props:{brandId:{type:String,default:""}},components:{SystemReport:s.default,CustomReport:i.default},data:function(){return{activeName:"first"}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{staticClass:"daily-setting",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统报表",name:"first"}},[a("system-report",{attrs:{"brand-id":t.brandId}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义报表",name:"second"}},[a("custom-report",{attrs:{"brand-id":t.brandId}})],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("EGFN")},"data-v-11c5da3a",null);e.default=o.exports},S4PB:function(t,e){},Sxk4:function(t,e){},ak3k:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),r=a("P9l9"),o=a("Ch4/"),l=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var a=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var s=e.data;if(1==s.errorCode)return l.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);o.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=[],void(a.result&&a.result.length&&(t.tableData=a.result));o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),a("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?a("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?a("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?a("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?a("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?a("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(a){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(a){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var p=a("VU/8")(c,d,!1,function(t){a("/mo2")},"data-v-4023dc20",null);e.default=p.exports},aqQ7:function(t,e){},cfOg:function(t,e){},h7wL:function(t,e){},pJmJ:function(t,e){},zGvM:function(t,e){}});
\ No newline at end of file
webpackJsonp([70],{JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),s=a("Ch4/"),o=a("PI0u"),n=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1,templateList:[]}},beforeDestroy:function(){sessionStorage.removeItem("memberGroupSet")},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delTempList(t.templateId)}).catch(function(){})},delTempList:function(e){var t=this,a={templateId:e};Object(n.e)("/haoban-app-customer-web/del-group-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEdit:function(e,t){this.$router.push("/addGroupTemplate?templateId="+t.templateId)},toStore:function(e,t){this.$router.push("/storeRangeSet?templateId="+t.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.e)("/haoban-app-customer-web/get-template-list",t).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.templateList=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleClick:function(e,t){this.currentPage=1,this.pageSize=20,this.total=0,"first"==e.name?(this.getGroupClassify(),this.getGroupList(),this.getGroupClassSet(),this.getSyncDate()):this.getTableList()},getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(n.e)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(o.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.e)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();s.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(n.e)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(n.e)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;s.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(o.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(n.e)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toChangeTemp:function(e,t,a){var o=this,i={enterpriseId:o.brandId,wxEnterpriseRelatedId:o.wxEnterpriseRelatedId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(n.e)("/haoban-app-customer-web/memberGroup/save-member-group-is-template-message",i).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("操作成功","success"),o.pageNum=1,void o.getGroupList(o.brandId);a.isSendTemplate=!1,s.a.errorMsg(t)}).catch(function(e){o.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(n.e)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo.total);s.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)),"second"==this.activeName&&this.getTableList()}},mounted:function(){this.$emit("showTab","12"),this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)),this.brandId&&"second"==sessionStorage.getItem("memberGroupSet")&&(this.activeName="second",this.getTableList())},components:{}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"会员分组列表",name:"first"}},[a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[a("el-checkbox",{attrs:{disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("el-tab-pane",{attrs:{label:"分组展示设置",name:"second"}},[a("div",{staticClass:" border-box p-lbr-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div"),e._v(" "),a("div",[a("span",{staticClass:"font-12 color-909399"},[e._v("最多新建20个模板")]),a("el-button",{staticClass:"m-l-20",attrs:{disabled:e.$store.state.wxEnterpriseType||e.templateList.length>=20,type:"primary"},on:{click:e.addTemplate}},[e._v("新建模版")])],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.templateList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateId))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.editPerson))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.editTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.editTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toStore(t.$index,t.row)}}},[e._v("门店范围设置")]),e._v(" "),a("el-button",{attrs:{type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("Liar")},"data-v-6411a4ea",null);t.default=c.exports},Liar:function(e,t){}});
\ No newline at end of file
webpackJsonp([71],{mjMK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("P9l9"),i=a("Ch4/"),r={name:"authMerchant",data:function(){return{loading:!0,currentPage:1,pageSize:20,total:0,tableData:[],addShow:!1}},computed:{},filters:{wxEnterpriseTypeFilter:function(t){return 0==t?"总部":1==t?"代理":""}},methods:{AddAuthMerchant:function(t){t.enterpriseId?this.changeRoute("authMerchantForm?enterprise="+t.enterpriseId):this.changeRoute("authMerchantForm")},refreshData:function(t){if(this.addShow=!1,"close"==t)return!1;this.getTableList()},changeRoute:function(t){this.$router.push(t)},toStoreList:function(t){this.changeRoute("merchantStoreList?enterprise="+t.enterpriseId)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this;e.loading=!0;Object(n.b)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){e.loading=!1;var a=t.data;if(1==a.errorCode)return e.tableData=a.result||[],!1;i.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},refreshStoreBind:function(t){var e=this;e.$confirm("确认要刷新吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0;var a={enterpriseId:t.enterpriseId};Object(n.b)("/haoban-manage3-web/flush-bind-store-list",a).then(function(t){e.loading=!1;var a=t.data;if(1==a.errorCode)return e.$message.success({duration:1e3,message:"刷新成功"}),!1;i.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}).catch(function(){})},clerkEditFlagChange:function(t,e){var a=this,r=this;r.$confirm("是否确认修改导购编辑权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.loading=!0;var o={wxEnterprieseRelatedId:t.wxEnterpriseRelatedId,clerkEditFlag:r.tableData[e].clerkEditFlag?1:0};Object(n.b)("/haoban-manage3-web/set-clerk-edit",o).then(function(t){r.loading=!1;var e=t.data;if(1==e.errorCode)return r.$message.success({duration:1e3,message:"修改成功"}),a.getTableList(),!1;a.getTableList(),i.a.errorMsg(e)}).catch(function(t){r.loading=!1,r.$message.error({duration:1e3,message:t.message}),this.getTableList()})}).catch(function(){r.tableData[e].clerkEditFlag=r.tableData[e].clerkEditFlag?0:1})}},mounted:function(){this.getTableList()}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[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:"flex flex-space-between flex-align-center"},[a("el-alert",{staticStyle:{width:"300px"},attrs:{type:"info","show-icon":"",closable:!1,title:"如需新增商户,请联系达摩运营人员"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商户列表","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"ul-li-cell flex"},[a("div",{staticClass:"cell-img"},[a("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}})]),t._v(" "),a("div",{staticClass:"cell-info"},[a("div",{staticClass:"cell-info-name flex font-14 color-303133"},[a("span",{staticClass:"gic-name color-606266"},[t._v(t._s(e.row.enterpriseName||"--"))]),a("span",{staticClass:"gic-version color-606266"},[t._v(t._s(e.row.version||"3.0"))])]),t._v(" "),a("div",{staticClass:"cell-info-name flex font-14 color-606266"},[a("span",{staticClass:"gic-name"},[t._v(t._s(e.row.brandName||"--"))])])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"color-606266"},[t._v(t._s(t._f("wxEnterpriseTypeFilter")(e.row.wxEnterpriseType)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"微信开放平台类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"color-606266"},[t._v(t._s(e.row.memberOpenCardFlag?"不同微信开放平台":"同一微信开放平台"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.checkAuth)?a("el-button",{attrs:{type:"text","limit-code":t.$buttonCode.checkAuth},on:{click:function(a){return t.AddAuthMerchant(e.row)}}},[t._v("查看授权设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.bindStoreList)?a("el-button",{attrs:{"limit-code":t.$buttonCode.bindStoreList,type:"text"},on:{click:function(a){return t.toStoreList(e.row)}}},[t._v("绑定门店列表")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.refreshStore)?a("el-button",{attrs:{"limit-code":t.$buttonCode.refreshStore,type:"text"},on:{click:function(a){return t.refreshStoreBind(e.row)}}},[t._v("刷新门店 ")]):t._e()]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:8},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[]};var s=a("VU/8")(r,o,!1,function(t){a("vulW")},"data-v-5f66f32f",null);e.default=s.exports},vulW:function(t,e){}});
\ No newline at end of file
webpackJsonp([71],{"4QyY":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),o=e("Qie6"),r=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",defaultNavpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navName:{11:"云日报-云日报记录",111:"云日报-记录详情",12:"云日报导出",2:"任务下发设置",3:"云日报设置",31:"云日报设置-系统报表",32:"云日报设置-自定义报表",321:"编辑模板",322:"新建模板"},navFrontPath:{11:"/dailyRecord",111:"/dailyRecord",12:"/dailyRecord",2:"/dailyRecord",31:"/dailyRecord",32:"/dailyRecord",321:"/customReport",322:"/customReport"},tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.a)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?s.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeRoute:function(a){this.$router.push(a)},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getExpired()},setSelectTab:function(a){switch(this.activeTab=a.tabId,a.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a;var n=[].concat(i()(this.defaultNavpath));e.length&&e.map(function(a){n[n.length-1].path=t.navFrontPath[a],n.push({name:t.navName[a],path:""})}),this.$nextTick(function(){return t.navpath=[].concat(n)})},changeNavShow:function(a){"/dailyDetail"==a.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(a,t){this.changeNavShow(a)},deep:!0},activeBrand:function(a,t){this.activeBrand=a},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},l={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:a.tabListData,activeSelTab:a.activeSelTab},on:{setSelectTab:a.setSelectTab}})],1),a._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[a.activeBrand?e("router-view",{attrs:{brandId:a.activeBrand,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab}}):a._e()],1)],1)])])]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var p=e("VU/8")(h,l,!1,function(a){e("YXcV")},"data-v-63f80218",null);t.default=p.exports},YXcV:function(a,t){}});
\ No newline at end of file
webpackJsonp([72],{"1I9l":function(t,e){},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),o=a("P9l9"),s=a("Ch4/"),c={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(o.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},n=a.errorCode,i=a.result;if(1!=n)return s.a.errorMsg(e.data);var o=(i||{}).allList;o=Array.isArray(o)?o:[],t.allApps=o,t.settingData.checked=o.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),n={dataJson:i()(a)};Object(o.g)("/haoban-manage3-web/open-or-close",n).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var r=a("VU/8")(c,l,!1,function(t){a("1I9l")},"data-v-5d9db47e",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([73],{"9liv":function(e,t){},Uvr8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Dd8w"),s=a.n(n),l=a("P9l9"),i=a("3E4D"),o=a("Ch4/"),r=a("PI0u"),c={name:"taskList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,pageParams:{pageNum:1,pageSize:20,taskType:2,ecmPlanName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!this.multipleSelection.length)return i.a.showmsg("请选择计划","warning"),!1;this.loadingBtn=!0;var a=s()({},this.pageParams,{enterpriseId:this.brandId,qywxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.ecmPlanId}).join(",")});Array.isArray(a.date)&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),Object(l.c)("/haoban-task-manage-web/market/clue/export/plan-view",a).then(function(e){if(t.loadingBtn=!1,!e.data)return o.a.errorMsg("暂无数据"),!1;var n=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.pageParams.date.length?"群发任务-计划视图_"+a.startTime+"至"+a.endTime+".xls":"群发任务-计划视图.xls",l=document.createElement("a");l.download=s,l.style.display="none",l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),URL.revokeObjectURL(l.href),document.body.removeChild(l)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loadingBtn=!1})},changeRoute:function(e){this.$router.push(e)},reFetch:Object(r.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=s()({},t.pageParams,{enterpriseId:this.brandId,qywxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId});a.date&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),Object(l.b)("/haoban-task-manage-web/market/clue/web/plan-list",a).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode&&a.result?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):(t.tableData=[],o.a.errorMsg(a))}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$router.push("grStoreList?ecmPlanId="+e.ecmPlanId+"&ecmPlanName="+e.ecmPlanName)}},watch:{brandId:function(e){this.getTableList()}},mounted:function(){this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入计划名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch,clear:e.clearInput},model:{value:e.pageParams.ecmPlanName,callback:function(t){e.$set(e.pageParams,"ecmPlanName",t)},expression:"pageParams.ecmPlanName"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportGrTaskList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportGrTaskList,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmPlanName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkGrTaskList)?a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkGrTaskList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkGrTaskList,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.pageParams.pageNum,"page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(e){a("9liv")},"data-v-5ca6a477",null);t.default=p.exports}});
\ No newline at end of file
webpackJsonp([74],{QUIg:function(e,t){},z3jf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3E4D"),s=a("Ch4/"),o=a("PI0u"),r=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{setRange:{show:!1,isAdd:!0,loading:!1,storeWidgetId:"",options:[0,1,2,3,4,5]},wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],loading:!1,multipleSelection:[],currentPage:1,pageSize:20,total:0,disableSet:!1}},methods:{onClosed:function(){this.setRange.storeWidgetId=""},toSetStore:function(){this.setRange.show=!0},submitStore:function(){var e=this,t={templateId:this.$route.query.templateId,storeWidgetId:this.setRange.storeWidgetId};this.setRange.loading=!0,Object(r.g)("/haoban-app-customer-web/save-template-store",t).then(function(t){1==(t.data||{}).errorCode?(e.$message.success("保存成功"),e.setRange.show=!1,e.currentPage=1,e.getTableList()):s.a.errorMsg(t.data)}).finally(function(){setTimeout(function(){return e.setRange.loading=!1},200)})},toInput:Object(o.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delRow:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={storeTemplateRelatedIds:t.storeTemplateRelatedId,enterpriseId:this.brandId};Object(r.g)("/haoban-app-customer-web/del-template-store",o).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("删除成功","success"),a.currentPage=1,void a.getTableList();s.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.postMultDel()},postMultDel:function(){var e=this,t={enterpriseId:this.brandId,storeTemplateRelatedIds:e.multipleSelection.map(function(e){return e.storeTemplateRelatedId}).join(",")||""};Object(r.g)("/haoban-app-customer-web/del-template-store",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList();s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={search:t.searchInput,templateId:t.$route.query.templateId,enterpriseId:t.brandId,pageNum:t.currentPage,pageSize:t.pageSize};Object(r.g)("/haoban-app-customer-web/get-template-store-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],t.total=a.result.totalCount,t.disableSet=!1,void(t.$route.query.brandId!=t.brandId&&(t.tableData=[],t.total=0,t.disableSet=!0));s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.getTableList(this.brandId)}},mounted:function(){this.$emit("showTab","12"),this.brandId&&this.getTableList(this.brandId)}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-369",attrs:{placeholder:"搜索门店名称或代码",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:e.disableSet,type:"primary"},on:{click:e.toSetStore}},[e._v("新增门店")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量移除")])],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"no-empty-icon-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeCode||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeGroupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delRow(t.$index,t.row)}}},[e._v("移除")])]}}])}),e._v(" "),a("template",{slot:"empty"},[a("div",[a("span",[e._v("暂无门店分组,")]),a("el-button",{attrs:{disabled:e.disableSet,type:"text"},on:{click:function(t){return e.toSetStore()}}},[e._v("去设置")])],1)])],2),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),0==e.tableData.length?a("div",{staticClass:"text-center table-set-line"},[a("span",{staticClass:"font-14 color-606266"},[e._v("暂无门店分组,")]),a("el-button",{attrs:{disabled:e.disableSet,type:"text"},on:{click:function(t){return e.toSetStore()}}},[e._v("去设置")])],1):e._e()],1)]),e._v(" "),a("el-dialog",{attrs:{visible:e.setRange.show,title:"可见范围",width:"873px"},on:{"update:visible":function(t){return e.$set(e.setRange,"show",t)},closed:e.onClosed}},[a("el-form",[a("el-form-item",{attrs:{label:"选择范围"}},[e.setRange.isAdd||!e.setRange.isAdd&&e.setRange.storeWidgetId?a("dm-store-selector",{attrs:{options:e.setRange.options,uuid:e.setRange.storeWidgetId},on:{"update:uuid":function(t){return e.$set(e.setRange,"storeWidgetId",t)}}}):e._e()],1)],1),e._v(" "),a("template",{slot:"footer"},[a("el-button",{on:{click:function(t){e.setRange.show=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{loading:e.setRange.loading,type:"primary"},on:{click:e.submitStore}},[e._v("确定")])],1)],2)],1)},staticRenderFns:[]};var u=a("VU/8")(i,l,!1,function(e){a("QUIg")},"data-v-5a608caa",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([75],{GkFz:function(t,e){},odfG:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("P9l9"),n=a("Ch4/"),l={name:"MemberShowSet",data:function(){return{tableData:[]}},created:function(){this.getTableData()},methods:{formatStoreType:function(t,e,a){var o=[];if("string"==typeof a){var n=a.split(",");o=[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}].filter(function(t){return n.includes(t.value)}).map(function(t){return t.label})}return o.join("/")},formatSetting:function(t){var e=[];return 1==t.mainStoreFlag&&e.push("展示服务门店客户"),1==t.minorStoreFlag&&e.push("展示协管门店客户"),1==t.openCardStoreFlag&&e.push("展示开卡门店客户"),1==t.showFreezeFlag&&e.push("展示冻结会员"),1==t.isSeeAuthMember&&e.push("展示已开卡会员"),1==t.clerkSeeOtherFlag&&e.push("允许导购查看其他导购客户"),e.join(";")},getTableData:function(){var t=this;Object(o.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(e){var a=e.data||{},o=a.code,l=a.result;0==o?(t.tableData=Array.isArray(l)?l:[],t.$nextTick(function(){t.tableData.map(function(e,a){var o=t.$refs["setContent"+a];t.$set(e,"isOverflow",o.scrollHeight>o.clientHeight)})})):n.a.errorMsg(e.data)})},onDel:function(t){var e=this;this.$set(t,"loading",!0),Object(o.b)("/haoban-app-customer-web/customer/del-member-setting",{memberManageSettingId:t.memberManageSettingId}).then(function(a){if(0!=(a.data||{}).code)return n.a.errorMsg(a.data),void e.$set(t,"loading",!1);e.$message.success("删除成功"),e.getTableData()}).catch(function(){return e.$set(t,"loading",!1)})}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"show-set"},[a("div",{staticClass:"show-set-header"},[a("el-alert",{staticClass:"show-set-tips",attrs:{type:"info","show-icon":"",closable:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"tips-text"},[t._v("1. 同一商户下,各子管理员新增的特殊策略的门店类型不能重复;")]),t._v(" "),a("div",{staticClass:"tips-text"},[t._v("2. 子管理员设置的门店类型和默认重复时,按子管理员设置的逻辑生效;")])])]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addShowRules,type:"primary"},on:{click:function(e){return t.$router.push("/addMemberShowRules")}}},[t._v("新增特殊策略")]):t._e()],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"策略名称",prop:"strategyName","min-width":"185px","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[0==e.$index?a("span",{staticClass:"default-store"},[t._v("默认")]):t._e(),t._v("\n "+t._s(o.strategyName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"策略类型",prop:"storeType",formatter:function(t,e,a){return"-999"==a?"通用策略":"特殊策略"},"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeType",formatter:t.formatStoreType,"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"设置内容","min-width":"310px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[o.isOverflow?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatSetting(o)))]),t._v(" "),a("div",{staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]):a("div",{ref:"setContent"+n,staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"最近编辑时间",prop:"updateTime","min-width":"110px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[t._v(t._s(t._f("timeStampToYmd")(o.updateTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(o.updateTime)))])])}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editShowRules)||t.$getButtonLimit(t.$buttonCode.delShowRules)?a("el-table-column",{attrs:{label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[t.$getButtonLimit(t.$buttonCode.editShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editShowRules,type:"text"},on:{click:function(e){return t.$router.push("/editMemberShowRules?id="+o.memberManageSettingId)}}},[t._v("编辑")]):t._e(),t._v(" "),n>0&&t.$getButtonLimit(t.$buttonCode.delShowRules)?a("dm-delete",{attrs:{tips:"是否删除?"},on:{confirm:function(e){return t.onDel(o)}}},[a("el-button",{attrs:{loading:o.loading,"limit-code":t.$buttonCode.delShowRules,type:"text"}},[t._v("删除")])],1):t._e()]}}])}):t._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("GkFz")},"data-v-5a0ea6ba",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([76],{FIFf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("Z8ln"),s=a("Ch4/"),o=a("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"商品中心",path:"/goodsShowSet"},{name:"商品展示设置",path:""}],tabListData:[{tabId:"1",tabName:"商品展示设置",icon:"iconshangpinshezhi"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(o.b)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("goodsShowSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(r,d,!1,function(t){a("UHMw")},"data-v-59e6b13e",null);e.default=h.exports},UHMw:function(t,e){}});
\ No newline at end of file
webpackJsonp([77],{JW3W:function(t,e){},fAFA:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("Xxa5"),n=r.n(a),o=r("exGp"),i=r.n(o),s=r("Ch4/"),l=r("PI0u"),c=r("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{yearList:[],year:"",tableList:[],loading:!1,tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getYearList()}},methods:{handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.apiMonthPerformanceList()},handleCurrentChange:function(t){this.currentPage=t,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var t=this;return i()(n.a.mark(function e(){var r,a,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,e.next=3,n={enterpriseId:r.brandId},Object(c.b)("/haoban-app-performance-three-web/performance/get-years",n);case 3:a=e.sent,1==(o=a.data).errorCode?(r.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(t){r.yearList.push({id:t,label:t+"年"})}),r.year=o.result[0],r.apiMonthPerformanceList())):s.a.errorMsg(o);case 6:case"end":return e.stop()}var n},e,t)}))()},apiMonthPerformanceList:function(){var t=this;return i()(n.a.mark(function e(){var r,a,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t).loading=!0,e.next=4,n={enterpriseId:t.brandId,year:t.year},Object(c.b)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 4:a=e.sent,o=a.data,r.loading=!1,1==o.errorCode&&(o.result.length&&o.result.forEach(function(t){t.totalPerformance=Object(l.c)(Number(t.totalPerformance).toFixed(2))}),r.tableList=o.result||[]);case 8:case"end":return e.stop()}var n},e,t)}))()}},mounted:function(){this.brandId&&this.getYearList()}},d={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("section",{staticClass:"common-right-wrap"},[r("div",{staticClass:"p-20"},[r("el-select",{staticClass:"m-b-23 w-123",on:{change:t.changeYear},model:{value:t.year,callback:function(e){t.year=e},expression:"year"}},[r("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),t._v(" "),t._l(t.yearList,function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.label}})})],2),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableList}},[t._l(t.tabelHeader,function(t,e){return r("el-table-column",{key:e,attrs:{label:t.label,prop:t.prop}})}),t._v(" "),t.$getButtonLimit(t.$buttonCode.monthTarget)||t.$getButtonLimit(t.$buttonCode.dayTarget)?r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.settingStatus&&t.$getButtonLimit(t.$buttonCode.monthTarget)?r("el-button",{attrs:{"limit-code":t.$buttonCode.monthTarget,type:"text"},on:{click:function(r){return t.$router.push("/storeMonthTask?yearMonth="+e.row.yearMonth)}}},[t._v("门店月指标")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.dayTarget)?r("el-button",{attrs:{"limit-code":t.$buttonCode.dayTarget,type:"text"},on:{click:function(r){return t.$router.push("/companyDaySet?yearMonth="+e.row.yearMonth)}}},[t._v("商户日权重")]):t._e()]}}])}):t._e()],2)],1)])},staticRenderFns:[]};var p=r("VU/8")(u,d,!1,function(t){r("JW3W")},"data-v-587096fc",null);e.default=p.exports}});
\ No newline at end of file
webpackJsonp([78],{"+qr5":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("PI0u"),s=r("Ch4/"),c=r("3E4D"),l=r("P9l9"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,operationStaffName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",tableData:[],performanceSum:"0.00",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(2===e.columnIndex)return 0==t?{rowspan:this.tableData.length,colspan:1}:{rowspan:0,colspan:0}},inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputValue:function(e,t){t.performanceValue=Number(String(e).replace(/[^\d.]/g,""))?String(e).replace(/[^\d+(.\d+)]/g,""):"";var r=0;this.tableData.forEach(function(e){r+=Number(e.performanceValue)}),this.performanceSum=Number(r).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(n.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance,operationStaffName:this.operationStaffName};this.postSave(e)},500),postSave:function(e){var t=this,r={enterpriseId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(l.g)("/haoban-app-performance-three-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?s.a.errorMsg(t):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={enterpriseId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(l.g)("/haoban-app-performance-three-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}s.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},components:{}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("div",{staticClass:"task-set-content border-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])])]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{"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))])]}}])}),e._v(" "),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:"12",placeholder:"请输入",disabled:0==e.clerkObj.settingAble||0==t.row.bindFlag},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.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"12px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"总计=门店月指标",width:"418px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index;return[r("div",{key:a},[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("门店月指标")])]),e._v(" "),r("div",{staticStyle:{"margin-top":"4px"}},[r("el-input",{staticClass:"w-161",attrs:{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("¥")])]),e._v(" "),r("span",{staticClass:"p-l-10 p-r-10"},[e._v("=")]),e._v(" "),r("el-input",{staticClass:"w-161 p-l-8",attrs:{maxlength:"50",placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},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)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确认")]):e._e()],1)])])},staticRenderFns:[]};var u=r("VU/8")(i,f,!1,function(e){r("jFhT")},"data-v-568718dc",null);t.default=u.exports},jFhT:function(e,t){}});
\ No newline at end of file
webpackJsonp([79],{"1/jf":function(t,e){},X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),d=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{loading:!1,searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(d.g)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList(e.brandId);100013==a.errorCode&&(e.currentPage=1,e.getTableList(e.brandId)),s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/editCard?coupCardId="+e.coupCardId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCard")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!0,n={gicEnterpriseId:a.brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(d.g)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo?e.result.pageInfo.total:0);s.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.brandId&&this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCard,type:"primary",disabled:t.$store.state.wxEnterpriseType},on:{click:t.toNewCard}},[t._v("新增卡券")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":"","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","min-width":"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板有效期","show-overflow-tooltip":"","min-width":"260px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"卡券库状态",prop:"cardStatus","min-width":"90px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[0==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[t._v("已删除")]):t._e(),t._v(" "),1==n.cardStatus?a("span",{staticClass:"state-point state-point-success"},[t._v("正常")]):t._e(),t._v(" "),2==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[t._v("已过期")]):t._e(),t._v(" "),3==n.cardStatus?a("span",{staticClass:"state-point state-point-default"},[t._v("未生效")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"120px"}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","show-overflow-tooltip":"","min-width":"120px"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[n.createTime?[a("p",[t._v(t._s(t._f("timeStampToYmd")(n.createTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(n.createTime)))])]:[t._v("--")]],2)}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCard)||t.$getButtonLimit(t.$buttonCode.delCard)?a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.editCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCard,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCard,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var f=a("VU/8")(u,p,!1,function(t){a("1/jf")},"data-v-55fed22f",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([8],{"0AqF":function(e,t){},"5j1q":function(e,t){},"8CY7":function(e,t){},"Ds/D":function(e,t){},GiPh:function(e,t){e.exports="data:image/png;base64,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"},Q5DS:function(e,t){},UHMk:function(e,t){},eeVN:function(e,t){},lZ2s:function(e,t){},tr4N:function(e,t){},xW93:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("Gu7T"),a=n.n(i),s=n("P9l9"),o=n("Ch4/"),r={name:"ChangeStore",components:{expiredDialog:n("Z8ln").a},data:function(){return{changeStore:{show:!1,loading:!1,storeId:""},storeList:[],activedStoreId:"",isExpired:!1}},computed:{getActiveStoreName:function(){var e=this,t=this.storeList.find(function(t){return t.enterpriseId==e.activedStoreId})||{};return t.brandName?t.brandName:""}},created:function(){this.getStoreList(),this.activedStoreId=JSON.parse(sessionStorage.getItem("userInfos")||"{}").enterpriseId},methods:{getStoreList:function(){var e=this;Object(s.b)("/haoban-manage3-web/wx-enterprise-list",{filteRight:1}).then(function(t){var n=t.data||{},i=n.errorCode,a=n.result;1==i?e.storeList=Array.isArray(a)?a:[]:o.a.errorMsg(t.data)})},onChangeStore:function(e){var t=this;"changeDefaultStore"!=e?e!=this.activedStoreId&&(this.$emit("changeStore",!0),Object(s.b)("/haoban-manage3-web/enterprise-is-over",{enterpriseId:e}).then(function(e){var n=e.data||{},i=n.errorCode,a=n.result;1==i?(t.isExpired=a,a||(sessionStorage.setItem("hbReloadPath",t.$route.path),setTimeout(function(){location.reload()},100))):o.a.errorMsg(e.data)}).finally(function(){return t.$emit("changeStore",!1)})):this.changeStore.show=!0},onSave:function(){var e=this;this.changeStore.loading=!0,Object(s.b)("/haoban-manage3-web/set-default-gicenterprise",{enterpriseId:this.changeStore.storeId}).then(function(t){1==(t.data||{}).errorCode?(e.getStoreList(),e.changeStore.show=!1,e.$message.succes("设置成功")):o.a.errorMsg(t.data)}).finally(function(){setTimeout(function(){e.changeStore.loading=!1},100)})}}},u={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.storeList.length>1?n("div",[n("el-dropdown",{on:{command:e.onChangeStore}},[n("span",{staticClass:"change-store-btn"},[e._v("\n "+e._s(e.getActiveStoreName)+"\n "),n("i",{staticClass:"iconfont-hb3 iconxiajiantou change-store-icon"})]),e._v(" "),n("el-dropdown-menu",{staticClass:"change-store-popper",attrs:{slot:"dropdown"},slot:"dropdown"},[n("div",{staticClass:"store-list"},e._l(e.storeList,function(t){return n("el-dropdown-item",{key:t.enterpriseId,class:["store-item",{actived:t.enterpriseId==e.activedStoreId}],attrs:{command:t.enterpriseId}},[n("div",[n("div",{staticClass:"store-name"},[e._v(e._s(t.brandName))]),e._v(" "),1==t.defaultFlag?n("div",{staticClass:"default-store-tag"},[e._v("默认商户")]):e._e()]),e._v(" "),t.enterpriseId==e.activedStoreId?n("i",{staticClass:"el-icon-check checked"}):e._e()])}),1),e._v(" "),n("el-dropdown-item",{staticClass:"change-default-store",attrs:{command:"changeDefaultStore"}},[n("div",{staticClass:"change-default-store-btn"},[e._v("更改默认商户")])])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.changeStore.show,"append-to-body":"",title:"更改默认商户",width:"600px"},on:{"update:visible":function(t){return e.$set(e.changeStore,"show",t)},closed:e.onClosed}},[n("div",{staticClass:"change-store-title"},[e._v("选择商户")]),e._v(" "),n("el-select",{staticClass:"change-store-selector",model:{value:e.changeStore.storeId,callback:function(t){e.$set(e.changeStore,"storeId",t)},expression:"changeStore.storeId"}},e._l(e.storeList,function(e){return n("el-option",{key:e.enterpriseId,attrs:{label:e.brandName,value:e.enterpriseId}})}),1),e._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.changeStore.show=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary",loading:e.changeStore.loading},on:{click:e.onSave}},[e._v("确定")])],1)],1),e._v(" "),n("expired-dialog",{attrs:{visible:e.isExpired},on:{"update:visible":function(t){e.isExpired=t}}})],1):e._e()},staticRenderFns:[]};var c={name:"UserInfo",data:function(){return{userInfo:{headImg:"",clerkName:""}}},created:function(){var e=JSON.parse(sessionStorage.getItem("userInfos")||"{}");this.userInfo.headImg=e.headImg,this.userInfo.clerkName=e.clerkName},methods:{handleCommand:function(e){switch(e){case"info":case"modify-password":break;case"logout":this.$confirm("确认退出吗?","提示",{type:"warning"}).then(this.logout)}},logout:function(){var e=this;this.$emit("showLoading",!0),Object(s.g)("/haoban-manage3-web/login-out",{}).then(function(t){if(1==(t.data||{}).errorCode){e.$message.success("退出成功");var n=JSON.parse(sessionStorage.getItem("userInfos")||"{}"),i="string"==typeof n.gicHost?n.gicHost.replace(/\/$/,""):"";window.location.href=i+"/gic-web/#/login?ishb=1"}else o.a.errorMsg(t.data)}).finally(function(){return e.$emit("showLoading",!1)})}}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dropdown",{on:{command:e.handleCommand}},[i("span",{staticClass:"user-info"},[e.userInfo.headImg?i("img",{staticClass:"logo-img",attrs:{src:e.userInfo.headImg,alt:""}}):i("img",{staticClass:"logo-img",attrs:{src:n("GiPh"),alt:""}}),e._v(" "),i("span",{staticClass:"realname-box"},[i("span",{staticClass:"realname"},[e._v(e._s(e.userInfo.clerkName))]),e._v(" "),i("i",{staticClass:"el-icon-arrow-down user-info-arrow"})])]),e._v(" "),i("el-dropdown-menu",{staticClass:"user-info-menu",attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"logout"}},[e._v("退出登录")])],1)],1)},staticRenderFns:[]};var l={name:"main-menu",components:{ChangeStore:n("VU/8")(r,u,!1,function(e){n("8CY7"),n("eeVN")},"data-v-0c139480",null).exports,UserInfo:n("VU/8")(c,d,!1,function(e){n("tr4N"),n("lZ2s")},"data-v-065f2c16",null).exports},provide:{projectName:"haoban-manage-web"},props:{menuList:{type:Array,default:function(){return[]}},activedCode:String},computed:{getMenuList:function(){return this.menuList.filter(function(e){return e.hasRight&&e.isShow})}},data:function(){return{applyCount:0}},created:function(){this.updateAplyCount()},methods:{toIndex:function(){this.$router.push("/index")},toPage:function(e){var t="";e.childList.some(function(e){return e.hasRight&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&(t=e.menuUrl),e.hasRight}),t}),t&&this.$router.push("/"+t)},updateAplyCount:function(){var e=this;Object(s.b)("/haoban-manage3-web/audit/get-audit-count",{}).then(function(t){var n=t.data||{},i=n.errorCode,a=n.result;1==i?e.applyCount=a||0:o.a.errorMsg(t.data)})}}},h={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"main-menu-box"},[i("div",{staticClass:"main-menu"},[i("img",{staticClass:"main-menu-logo",attrs:{src:n("yoNH"),alt:""},on:{click:e.toIndex}}),e._v(" "),e._l(e.getMenuList,function(t){return i("div",{key:t.menuCode,class:["main-menu-item",{actived:e.activedCode==t.menuCode}],on:{click:function(n){return e.toPage(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])})],2),e._v(" "),i("div",{staticClass:"main-info"},[i("change-store",{on:{showLoading:function(t){return e.$emit("showLoading",t)}}}),e._v(" "),i("div",{staticClass:"apply-info",on:{click:function(t){return e.$router.push("/unreview")}}},[e._v("\n 待审核 "),e.applyCount>0?i("span",[e._v("("+e._s(e.applyCount>99?"99+":e.applyCount)+")")]):e._e()]),e._v(" "),i("user-info",{on:{showLoading:function(t){return e.$emit("showLoading",t)}}})],1)])},staticRenderFns:[]};var g=n("VU/8")(l,h,!1,function(e){n("0AqF")},"data-v-5909cd1e",null).exports,A={name:"AsideMenu",props:{menuList:{type:Array,default:function(){return[]}},activedCode:String},computed:{getMenuList:function(){return this.menuList.filter(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&(e.childList=e.childList.filter(function(e){return e.hasRight&&e.isShow})),e.hasRight&&e.isShow}).filter(function(e){return Array.isArray(e.childList)&&e.childList.length>0})}},methods:{toPage:function(e){this.$router.push("/"+e.menuUrl)}}},m={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{staticClass:"aside-menu-box",attrs:{"default-openeds":e.menuList.map(function(e){return e.menuCode})}},e._l(e.getMenuList,function(t){return n("el-submenu",{key:t.menuCode,staticClass:"aside-menu-list",attrs:{index:t.menuCode}},[n("div",{staticClass:"aside-menu-list-title",attrs:{slot:"title"},slot:"title"},[n("i",{class:["menu-icon iconfont-hb3",t.iconUrl]}),e._v(" "),n("span",[e._v(e._s(t.menuName))])]),e._v(" "),e._l(t.childList,function(t){return n("el-menu-item",{key:t.menuCode,class:["aside-menu-title",{actived:e.activedCode==t.menuCode}],attrs:{index:t.menuCode},on:{click:function(n){return e.toPage(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])})],2)}),1)},staticRenderFns:[]};var f=n("VU/8")(A,m,!1,function(e){n("Q5DS"),n("5j1q")},"data-v-4fc481c0",null).exports,p={name:"BreadMenu",props:{menuList:{type:Array,default:function(){return[]}}},methods:{toPage:function(e){e!=this.menuList.length-1&&this.$router.go(-1)}}},C={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bread-menu"},e._l(e.menuList,function(t,i){return n("span",{key:t.menuCode,staticClass:"bread-menu-item"},[i>0?n("i",{staticClass:"bread-menu-icon iconfont-hb3 iconnavigate_next"}):e._e(),e._v(" "),n("span",{class:["bread-menu-text",i==e.menuList.length-1?"bread-menu-actived":"is-link"],on:{click:function(t){return e.toPage(i)}}},[e._v(e._s(t.menuName))])])}),0)},staticRenderFns:[]};var v={layoutVm:{}},I={name:"DmHbLayout",components:{MainMenu:g,AsideMenu:f,BreadMenu:n("VU/8")(p,C,!1,function(e){n("Ds/D")},"data-v-2d771880",null).exports},provide:function(){return v},props:{menuList:{type:Array,default:function(){return[]}},pageRight:{type:Array,default:function(){return[]}}},data:function(){return{keepAlive:[],showAside:!0,pagePaddingBottom:null,enterpriseId:"",flatMenuList:[],asideMenu:[],activedMenu:[],fullLoading:{visible:!1,timer:null}}},watch:{menuList:{immediate:!0,handler:function(e){this.flatMenuList=this.getFlatMenuList(e),this.activedMenu=this.getActivedMenu(this.getMenuByPath(this.$route.path.slice(1)))}}},created:function(){var e=this;this.setKeepAlive(this.$route,{}),this.$router.beforeEach(function(t,n,i){e.activedMenu=e.getActivedMenu(e.getMenuByPath(t.path.slice(1))),e.setKeepAlive(t,n),i()}),v.layoutVm=this,this.enterpriseId=JSON.parse(sessionStorage.getItem("userInfos")||"{}").enterpriseId,this.$on("command",this.onCommand),this.getEnterpriseSecret()},methods:{getEnterpriseSecret:function(){var e=this;"/enterpriseSet"!=this.$route.path&&Object(s.b)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(t){var n=t.data||{},i=n.errorCode,a=n.result;1==i?a||e.$confirm("提示","请先完成商户初始化设置后,再进行其他操作",{type:"warning",cancelButtonText:"忽略",confirmButtonText:"去完成"}).then(function(){e.$router.push("/enterpriseSet")}):o.a.errorMsg(t.data)})},getFlatMenuList:function(e){var t=this;return e.reduce(function(e,n){return Array.isArray(n.childList)&&(e=e.concat(t.getFlatMenuList(n.childList))),e.push(n),e},[])},getActivedMenu:function(e){if(!e.menuCode)return[];var t=[e],n=this.flatMenuList.find(function(t){return t.menuCode==e.parentCode})||{};return n.menuCode&&(t=[].concat(a()(this.getActivedMenu(n)),a()(t))),t},getMenuByPath:function(e){return this.pageRight.find(function(t){return t.regexp.test("/"+e)})||{}},setKeepAlive:function(e,t){var n=this;Array.isArray(e.meta.fromPath)&&(e.meta.fromPath.some(function(e){for(var n=e,i=/(:.*)(\/?)/;i.test(n);)n=n.replace(i,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(i=/(\/\*)(\/?)/;i.test(n);)n=n.replace(i,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return new RegExp("^"+n+"$").test(t.path)})||(this.keepAlive=this.keepAlive.filter(function(t){return t!=e.meta.componentName})),setTimeout(function(){n.keepAlive.every(function(t){return t!=e.meta.componentName})&&n.keepAlive.push(e.meta.componentName)},100))},onShowLoading:function(e){var t=this;e?(this.fullLoading.visible=!0,this.timer&&(clearTimeout(this.fullLoading.timer),this.fullLoading.timer=null)):this.fullLoading.timer=setTimeout(function(){t.fullLoading.visible=!1},500)},onCommand:function(e){var t=this,n={updateApplyCount:function(){return t.$refs.mainMenu.updateAplyCount()},showAside:function(){return t.showAside=!0},hideAside:function(){return t.showAside=!1}};"function"==typeof n[e]&&n[e]()}}},B={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.fullLoading.visible,expression:"fullLoading.visible"}],staticClass:"hb-layout"},[n("main-menu",{ref:"mainMenu",attrs:{"menu-list":e.menuList,"actived-code":e.activedMenu.length>0?e.activedMenu[0].menuCode:""},on:{showLoading:e.onShowLoading}}),e._v(" "),n("aside-menu",{directives:[{name:"show",rawName:"v-show",value:e.showAside,expression:"showAside"}],attrs:{"menu-list":e.activedMenu.length>0?e.activedMenu[0].childList:[],"actived-code":e.activedMenu.length>2?e.activedMenu[2].menuCode:""}}),e._v(" "),n("div",{staticClass:"hb-layout-content",style:{width:e.showAside?"calc(100% - 206px)":"100%"}},[e.activedMenu.length>3?n("bread-menu",{attrs:{"menu-list":e.activedMenu.slice(2)}}):e._e(),e._v(" "),n("div",{staticClass:"hb-layout-pager",style:{height:e.activedMenu.length>3?"calc(100% - 30px)":"100%","padding-bottom":e.pagePaddingBottom},attrs:{id:"hb-layout-pager-one"}},[n("keep-alive",{attrs:{include:e.keepAlive}},[n("router-view",{key:e.$route.path,attrs:{"brand-id":e.enterpriseId}})],1)],1)],1)],1)},staticRenderFns:[]};var Q=n("VU/8")(I,B,!1,function(e){n("UHMk")},"data-v-46f8aeee",null);t.default=Q.exports},yoNH:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAAA4CAYAAAAxUiDuAAAbJklEQVR4Xu1dC5QcVZn+7qOq393zyIRkIJAXRAiQhAAighsIgUUWlocDIVFEVNBVURB3dVlxsqAbISEQZQVRwSgsmlVWUXn4ICsqq4JAIKKLCEJC3pnJPLq7qu5jz1/dPamp9Mx0MqN4zs5/zgBdde+t+/jqv9//uAXDGMiZq23eN5jKfH0opD7UajEbzBwAMAXoV7lIrIfRLyklXpzg4JW1V7PSGDx2vIkxnAG2f21ZdvYKtPYLfxFj7lth9JvB0M6ESDAGWA1YawFmwcDBOGCNhbVB0TL2vAH7kTby28UMnnryChbsXx/Ga43lDOwbEKxlZyz3ZgQp8R5wvhiMH0KLbDT9+bBKgRkLAgPnAlwSDAgIDIxV/iA4LKPyplcx+6hv1J1bTOKHf7iSeWM5sPG29m0GGgbCacttwSbVh43gHzAOn2gVvfU6XHzj+5CWQUgHQsoQBNQwrXv4gPDHnv/mdI3+IQFt0BcY+4hietW6K5yf7Vv3x0uP1QyMDIROy8/IB8eWXL6KOeJErW2oAkjV61IZQlm4yRSEcMItALQjVBd9RCAQHqisAJQ1W33w2/pYz22Pv6ewa6wGON5OYzMwLBDmX/6EUzh87tsCl99qHdZmAhWusg4C2N4yUjIBmUiFCx+++JF/RzUCbQU1xUCaIVz8UC1UlQVdE6GGKPrKPuJxdu2PL2O/bWwI46XGYgaGBMIRndadVAiu8JNihRbcpS2AVlB5HvhuD+lkDsKRewFgYHVtpXtCAAkJSAcQDCCFogxAzRlLXKIKDNIOHGAOlNb2SR/smofezca3irFY5QbaGBIIC1f5H/AT4lZfMmGJDTIG5XsQuzxk0gVwUXmlQ/Vfa8UiJILpJNCWAyakgQwMnMCHDXQFAaQOkg6UK9ELga4S0NUP+EHlFmkGzmE0xzNegKsfei9b18A4xouMcgbqAuGMm9RZXop9qz/JEiEIQG+yBtvah3yyCUyIvbYBAkA+DbTnLPKlMoJXu9Hzcg+KO8oI+g20Im5BKgAQLoebk0i3p5Gb0QRnSg67mYttPYBPiofKcBjF8Os+iyU/voz9cZTjHK8+wgzsBYSFK8uHgcuf9uXFAYpMAwCGVPqOXjTpNEQiMWg7oD3fEUB7waKppw+9T29Bz0u90GVAhhYEkUgOVjMbSGvAkPkIoxUMU5DNDpqPbEby8DZ0OQl091Y4BOPwlcCNuwRu/tlS1jW+mn++GRgEBOIFB2aCB8sF59Q+qcgfBEtbQrmM9HaFdLaA0E9U3Q6IBiQc4KBEADy3GT3rd4IbCSeRAefEHxgsNKw14eIPSJU/0G9qz5oAKvAgWh0UjpsIM70VO0s8VCCQeLGkcf1DWXwdF7KKehqXMZ+BQUA4fYX/D9Z1btuVUdBEAcjxQxphay9abR5MErWvcgLSBBKYzDyYn7+CYHMAmXSNtWa7AV62CLqstcYa28xhD4EV7UK4ISB4zWYkFFQbJLCYIIDiAdKHN0HOb0cPc8LnK2YfKDPW+fA72G/GeAY2ApgYafOTAD47zDOOBZAfRR+2A3h2FPWp6r0A3hZrYzWAa0bT7gAQTr/JTrRQT3lp0d6d1aE2ICT4JkB6o4dcqlD1CFWAQKSuxXhI/GIT/K2920Uy+R3O9LeLGfXk/fffvwPorKqATn7e6edNEFodD8OXcLBzORMpCLIkXHAmKm8+/TELowyM8SAOTsM5cQr6HReBRZeCWd5n+ep172Ll0Qw4UjcJIB7zWALgP4Zp/1cAjhvF898P4PZR1KeqDwD4u1gbywF8YjTtDgDhtJXBtVLKG3alFEopNrAt+MUiWrdxuKn0nucIIGcNsk9sVPrVnf/FEs513/jRUc+P1JH5859wZrS6Z0GzTzCL42EVnCT5IlxYw6GNCbmE1RpK++BT0sCbD0YgBTTDD/pNsOzhd7q0GGMhswE8F2vojQCGa380QNgN4EAA/aPs/H8DeEusjesAXD+adkMgvPmzNpcSwdOQcvqOJgNNO4AFtGDQO3sxsS8N4TgDrmLJLJpe2O7JZzcu3yJ7bli37pQKq2xILDvnnPWHpcpyGbS+CFpBJiVSuRSMkfB9E2ocqw2U8SHeOAl6RjN8zbb6wPWpNG5fOzZc4TwA3451uQXAcKR0NEC4FcBHhpiiCQBOa2j6gH8DMDVW9usAvj9M/SKA7w7XfgiEhSu8c6Vw7veYxo7WWlAAUIKBb+nFhHIOXBKNr8QIcj2Bl/nF88vve2ROZ4Od36vY+QvXT3ek+AxT9iKtAyRSEvkJaXgeh+dT1BIwSkM3cbB5E6EmZqGAuzyOZT9Yyv60n89dCGBZte5kANMj7dDm9Ith2j0DwN0Ajmrg2YcAoK2nJtT2LAAvDFH3RAA/b6Dd/S2yCcBBIwJh0Qr/LuE4l/YKhV0t9DpW1twXgLupD21BHozcgpxIvFXZ51+73/nSLy5eiwtHw+JZx6INc4Q2d4Cx441RSOccNE/KYne3QRBU+qCCMvT0AtjcNqiEfLxs0fm9t7NH9nNGFo/AAYZqlkLlboPPJBD8b6z8QwDOHKb+6w+EN91sUxkTPM2ZPKw3rdFdqPADWgRPEhD60ebnqkCwcPuCjRN+/dtT7/3evLroPn2NzXgZHL/d6mklB75JiN/+6X+wHp2UpDJYzp7/RDrblDjfwt4BbdNkcbZMSsPNp7B9m6pohUBBJxnMvFbogwqbA41l37kEd4KxiD3a4BIB+wuE16r7eyMPIjW9NFZwEYAf/VUD4bTPeodDsKc5mLs7B/TkKkAgCRwGubkfE0tZMElhZus724urH/p09mPxQc1c/ULigMzMUws5u8x37HHbBEefBErclgOJHyrLPtW9iD0Vr9dxyjOzhJArGfhZ2vjI5AQmzyhg506gWCTyCCjfh56Wg549wfcdcUsxjc/86EJG5GtfZX+B8DSAeQ087BQAP4mVuw/AxSPUff01wqKV6hwmxHdsEKAnzwYBgTgCuoqY1J0Gd8IYc3fCKy18+NrMIHt+5mqbmCz1mUiwu2e280KvNng5sOhmDP0JBi/NTMDxgnawtHgCezI6KecueKrJSSTeyZVZZWAYcdL2aTmIVAKvbQrAGQv9C0FOQh/VCjM581VfYdkDl7CXGliYeJEcgHYAxA8ejd18B4BfV68dESOStBURRxhOyKx6BsDMSCEinocD2NpAXytOmuFlPoBf1ilCJLener21zvNG5giLVgQf5a5cYbwgBEFvfo9GMJzBL3lo3yIhkw65B58us40nPX71lEH298JVdrongweQcY44rE0jlwWe6QO2WoYe0goOg59hvjL2J+WAnYdT9vgCOjqswK6nT+Vc3gPL2hizaJ2UwKTpebz4YhDmPZD7UVkNNasJ+tDm7/oCnd+9eG/tMtIsRu4TQ/9hrHwbgB3Va+RPuCdyn9Q9AWU4+TyAD8QKvAfAl/ehXyMVrWfpkDmajVQkINTGUbtcA8IXAZwUKUtOqB/Qb7ZohX83k847SSP0Zxh2VzlCWJgBJabR9qpByk0qa/DAuo+y86O9XdBppcjrpUFC3O1LhUIOOGEqx/P9Fi8GDNsZUJQMZRdQKbZNc5wTHMsGobpj0Ya5ArhbMDZHG41cs4tpR+bxykaNUqmS+qZ9BTUlh/Ksll+Vc6zzwcXswZFmbZj7HwZwS+Q+vbGTIr8/E3PQ3ACAvI5DyQUA/jN2k6Kmp1ZdZfvSVbI2Ik4bECGvbYNXAiAzNCrE1Q5rEAh3AiBw1uSfUTFHwRau8B/hwlkEFcBLMnQ3V6yGSo4ZUHYsMpt9NNt0YCzWrLuaRRvCmattwjfqepOQH+tnCsoFprUxTGkBnisy/EkDuyVDyQH8POu2Hj7kn8DoDRuQi8/YMNsCtwuIk5QOkMlJTJ9TwM5uhl07dZjBZHwN1ZJEaVZhc6kt0fnQYkbo3l/5EoB3RyoTkSNCVxOyuc+O/L4QwNphHkZbZZRDUP7l0VXrYV/7uCrmb4j2bQWAj8YaJAfTggaBQAv/6UhZmof3DgKC1QG0BLpbKv4CijiSkFPJlDxM7EoFjGHNo3WA4JlguU04HykyBd8FPJdhUhOQzzBs1MBWzrBbAF6OdRsPVwVvYmSPD8gFZ2yY7YB9QUCerLSHVEZi+tF59PsSW7aoSha0MtAZif7D8rvK7WnSCJ/b1xmOlCeNdHzkN03+1ZHfFPaeFvlNPgAyCYcSIpNzYvVn7Gf/flzVJLXqUUfUNwAQKKMSJ6PDbQ3xLW8AZOy0lf5XuXAuMSoIk0p6WjhUJXAYKga6FgiDwhZHpRS++5NrGKnBAZl/h3Xy/cEHbcq5uVQFgu9UtgKRZOBJoOgw7JaAl2E7VICl6oTBfoCLznhuDmPiK8KKY7SpAGHq7Bw87mLTxiDMT6CAhEo66J2Wfbl4SLrzkYvYV/dzoomUEbGKqt9LAdTao/2W7tfc7+SVI5JJjqQpQzyTgj5R4GypvWl1ypP2IHN0KKHAFHkaa3IFgJr2I4fXm2IVb45pieGAELdOfg/gDdQeO21lcI1w5E2aUoTIEV5g4RZBQiAgMBgJ8CIzhR32ie1Txcm/vZD5ezpj2amrgnnKFQ/7Dp9QlgqBZFCORSnB4SWAwGXwk8wEAuu9AhZiNoskp1q+5K3Pn2QMv1dYHEgcIZXhmHpkAR6X2LRJVYBgLUwygb4DM4/1zkh2PnIhi5tpjeKCLIINscKkxmtRwbfG3LVkSZD2+AqAdzX6kGHKkSlJb3E9IYuGiF1UiNzVvI6v1vEQEuFbGakwHBAIyK9EyhLIMyEQFq5Q5wop7jc6CBfdTzKU8pRHUJEQDETWBJDeZrY1wznxwSvZi9GeLrjNZjVTVwYJ+eky1wiEhRIWvstQSnP4CY4gjZ2B0R8unySjbBwdHRuyKLoXSa1uh4WkgzHprMC0OXn0KYEtW3Qll5FyHdMuSgekvrV7VqrzkfNZPGDU6Bq9HcDXIoWJdRdoF6xei/OHf69aA38JIFBUkaKLNaFlaK6SRSKR1Ndq2u9AmYsAfLNBIJCup+ht1FQl7bOTLbzJO5ox/qTlkJayBQRQLHBY2perIAg5A1U1vJzdaq9+7Crxhfisz7/DFjhXncqVHwmgEJC5l2DoLzjwU6zbAp/sOoWRiTVIOs5+eRrnwQ2Oz5fQtkAjz+Ulps3NY0evQFe3rqTFWSDISNPf6tyxfVb++scuYJsbXflYuXqEi3wE5CugUZJaj6rmv68GbP4SQKA4CEUSa/IHAIdWfxAHIS4Sl2MARB11w2kEqks5GBQFrclc8n8wijwmHP85COdgU01NC1KMTL2QMNa2BwKDdrkRfcGzue7ignVXNXfHezR3VVeTac5+yjL+EUVOoCTQPzHRray5bvsZYi9yd0THBvcNIrPI7fPXCGVbKllMDIUJDg6em8crm2wYgCJhjMNLi+7+VvmZZ4/Krf7DW/f7ZBTlEzweeytIXR4JgBw2UUcT7Zc0sb0AbgLQMQT4SKU7kXvkTo+r+NrtD8Xe+miTZNNHYxJEDskbShInerV6lChD/avJSECgsZ8QKU9a6PshGThllfct7rrnK1XhCUYwqCwLtUCNMA4AIsV9VtS3PPF255/qTcrUVV1N2XxmGRSu9NK8u9QiPrXxLEZkai+54IIXD5UaN7oBO1drP+QBFOVsOziB5ml5vPzqnmORXDgoZeWz3a2y8/tXpePh4yHWZ8jLRLCuit0lbUXDpYWqSdw0G6rBsbIatgEgx1ZNaI5vrP4gs4/Mv6iQ9iIvaVRGAgKZwdEMpzBZpgoE/zKWcL6sQ8uBVdLTkoBJVLhCdIuwnME66DO+vfSpJfJb9WbmqH/rbjau+rjOutt+d0U+SmQGip999u8nZKVzBQ/sMqtVCDniBxSObj88iyDhYscuHaa4k1gp0Z+Ra1+bnOh87H2J0R5+IYJEHCMa16dhk7XQFBkTZf1Q9s9IMhZAoL7E3ebkASVzkuS/ANA2FZXH6iSpjAQEMkfJMVWT0FkWTvPJq+xkLtSzlvNWA/IkVxc/xWBl5TWp+RbCU0sOp3TU13igz39i6b5nDC0984W8lWwxM+xGWFOgfMXwEQzItSUwYVYO27oMdJW+0UFaJdnuYgLLf3lq8y0vR1zUI63QMPdPB/DwMPdp2BQ3aCSVfiyAECexNHoiijW1Tx7EaByDuk68JeoYo2sjAeHjNW9idex3AbhsIFXtLZ/z72AJ53LlqwENQIQxTK8gLVBNa69oBwu4koIAz1sdvO03ixMjpqnVJvycc36Xa9JOhwW7yQIt1lbVvwVkkmPCzAxsNondvZXIIwmlxGvJHytLb9k9/zqh9oaMAgMDVSk/sbYHx9trdFugemMBhDsAXB7pBBFAIoIkQ1kM9TTWSEC4JOIzobbDgNoAEN78eW82uPiVZSwdpp/XLAYCg8v2WBGRrYIlhIGx62HY255cPNikrLdKHR0bXIHcEunrFVC21VLOUVXoyHxmoovC9By6eivbREURhRZMyeO4pZzHZ9d+vGV/ws9DgYbiC7+rmo/xMuQzGOQBHQZ5YwEEeplC505ViLPU+AqROyJ5calZNNHrIwGBXOnRxB7aIo8alM5+4m3BrSwpr6QAT2g+RhbdEieuprgTj6h5HhGCQf/KN+Z9Gxa7FIatK2QhHOWmFogi/7rQto0ykqLiZiQKM7OhEykI9uSccOFCc/ZoEaVl/3F9G72lYy1ElshXEBWytcmEbDTRdLRAIIJIRDEqpKnIaiAh93c9rkUOIjIH9wUIZB1FU+p30lgHAeHk1bYtcPXjkGIGnUIKP2hR9SfQkyxROvrgBX0cg2qS1iBnT0p02bK5dv3ivf0LVI9OVc/om3SSU9JrhDYHRUFAL75MCGSmpiAKSZS8Sr4iCZmMlvFtvgmWb5vU8u8P/nk+pnEygJ/WQVfNt9AI8EirUDyiJgOu20YqV83SqFOIqpFJWvOVUGRzkGu/CpwD6rQ/kkaIg47e96ovOdLaG28vL2LSeUADifDQSdWPFfoUqlwh5A7VrYMlhW8Ds+Jwwa+rl128YIGVLRNfOjEV8DVS80MoC6kmpP6F5EgelIZ7QBIe0YWBU1DhcSqrmf1K0bc33Le8+eUGJ3VfitFInhgi+4gsE3LiNJKhTT4DWriarI8FoUbqExE2incMVZ9iE3EzkYju39ZpmDQZxSuiEk1MoTHTTEc9lAfXPQQ7/4v+h7jjrDb0RRTy8UdBUHMy0TqlRGA9fZ91xHsGxx8qfViw4FHZNvnQ4xIl8zVh2QytKTpbjWPQeVgJJChH8cAUFH13KdJ1zkkbyD/2B+VL7rm+5c+V4UvkjEjaUEJ5C3V9ILEKZHZSYKomtfjESACg+zQh9OZH327yHdT8NPXMSqpHeQRxvwJdj6t+ukYhgajFEfdXHF8XCFTzmK8ENzApr9WaiCM5n/f4E0gzsCRXxtff84145x/ezmppUgMDD0HQNvOYZGDWcCtmkft4QCg51mFwD0jBaU9XTkXWjr+FW4IA484mT5VuvOtTTZ8jzdDIjO5jGTLNKLQcdSfHm6BUM3Lx0j46lFA78S+8xPMbhusaeTNJK0WFElpqHs6hPIrkFKrnxyECST6HqMSBSUE3Cr7V5OwhgUDJqOns9Ku5yzqtZG74pTQqLenLOdaHsV/2LP94PRBQ+hnnf5rj+vxr3IgjjI2BQDA4k5OQB6aj6x92itFHuJjzWjkorrjLNt2Kzv3KVm4EE+Ty/mCsIAEjmu1Dt2+rUy5aLc7C6R5ZG41GKkkTRPkF1ScLoeZWjW8btWdTvKBeOJs8puQ5jUp8G6Gkm+iZz3VDAiFs5ZtWHF1WfwPOL7HAkYb2Cc6eATP3blji1A0Dd3R8U3B+4pFuYNcII47Whgj4nsfQF9bEpARcOs7GWOV0dZUa0DlIcLlZBd7K3etzt6xd+2c7/UxEkFLdouOnAA/FIcgCoLMJNaEFobeH7teTf62TxkbBo/0+/BN5CO3jlEYX11qhyTdEf+L+CCo2Ys7l8ECIPslahmVgw72hBALXfcsRvKS+KiyfN2g7qJxxhZiUhDs1E/nMSuUhVU2wJfBKt3TPyq0Yo2Nt9eaKSBctdvSNoK2H1DHlGdKZhEGpdFUzrp7jiYxqOnUVJ3Jn1ZJCG1FNw5ShXARyI8clnoxSu0/ZzESqo3yF7r1vBC406I0YVZ9pOwgKr8zN9Lh3OQGOGgyCShKkaHaRmJUDZPW8ffWJZCYK6W4tF0ufn6KyyzvrHIYZVef2VKY3jPZvOn8QFToKT65XEipDdnZ0D6UBkLYYlIpfzS2kNLeokAokR9VYOL4o4lnvuDtFKOn0VFzqBaaoDB3tGzb9v3GNMOxKdPLz3vuBmZle/z4nEPM0fS6lJrUPaxRcJN+QozjFYGLIOThPbPf84u0HlbI3dHZGs5/GaPn3NEMZ2PHDOZT1Q4QsaibSHhpn5ETeotdobyeHT+UTMnuEXOD/MkY9XxPJR6g1SdyaglHxI/10JO97dbQBbS3njtSfMQFCR8erLY7gK5PKvVQpyn6qSggCC5ZzkTwiByQpHXmPAUCagEt3py57d5aLqWV3d47Ztw9GGvf4/dgMjB4InZZf/OLWBbKkvs+1TVYMzT0fvuBZB8nZOSBF5kYEBJzTRzp3+WXvrgxPfXLV+Ie6X1dwjhoIZ575QqK5OXNdMnD/WUe0QWj5ZwSSRxbAcqQJ9oyTPq7FudMVBP6aXV09/7K2c2Lf6zoL4w8fPVns6Hg15brOlxO+uDjKDegYvXtELjQVB9JCQaeWOJhwduvAv8ex/Z/43JWtezmjxtflLz8Do9YICy59Kdlu0jcny/L9FY0QfkgPvM1FYk7su1Pht5ecXqP0N3bvLv7jvZ9oGv9k3l9+zes+cfRAWPConDhtTkeq6N8bBgzorecM7uFZyCmpyjd3qyJd1w/84L6y711z15W5eGDkr2RK/n92Y9RAoGlbvPiVdsmdNUmdWKhUCczlSBxTAG92KgSR/jcNUgZa6Z/68JZ+6b3ZRo6J//9ckddp1GMCBHImpZ3Nc7kS93CIWcYNkDyuuUISKd9AyEAp9bjS6h1fvCIVPWnzOg17/LHxGRgTIFCjFG2ceuDRxyLQX5dJZ4ZzbAo8LyGFUErpXxqrLvnCZclGEkHHV+l1mIExA0IFDFYe0r75RM7dr6XmNR0s24Uygf2NV/bfceflyeFOE78OQx9/ZHQGxhQI1PDl861TnLdtQXZK7m4+M7kjCIIld16aiB86HV+Fv7IZGHMghJqh86XkVDHpBNMuvTXvdupl3/6VTcN4d/4Pgv3uh0Sgx/8AAAAASUVORK5CYII="}});
\ No newline at end of file
webpackJsonp([80],{"4QyY":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),o=e("Qie6"),r=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",defaultNavpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navName:{11:"云日报-云日报记录",111:"云日报-记录详情",12:"云日报导出",2:"任务下发设置",3:"云日报设置",31:"云日报设置-系统报表",32:"云日报设置-自定义报表",321:"编辑模板",322:"新建模板"},navFrontPath:{11:"/dailyRecord",111:"/dailyRecord",12:"/dailyRecord",2:"/dailyRecord",31:"/dailyRecord",32:"/dailyRecord",321:"/customReport",322:"/customReport"},tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?s.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeRoute:function(a){this.$router.push(a)},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getExpired()},setSelectTab:function(a){switch(this.activeTab=a.tabId,a.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a;var n=[].concat(i()(this.defaultNavpath));e.length&&e.map(function(a){n[n.length-1].path=t.navFrontPath[a],n.push({name:t.navName[a],path:""})}),this.$nextTick(function(){return t.navpath=[].concat(n)})},changeNavShow:function(a){"/dailyDetail"==a.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(a,t){this.changeNavShow(a)},deep:!0},activeBrand:function(a,t){this.activeBrand=a},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},l={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:a.tabListData,activeSelTab:a.activeSelTab},on:{setSelectTab:a.setSelectTab}})],1),a._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[a.activeBrand?e("router-view",{attrs:{brandId:a.activeBrand,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab}}):a._e()],1)],1)])])]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var p=e("VU/8")(h,l,!1,function(a){e("hy8p")},"data-v-50d9ddbf",null);t.default=p.exports},hy8p:function(a,t){}});
\ No newline at end of file
webpackJsonp([81],{YKf6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),s=a("P9l9"),l=a("Ch4/"),r=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],loading:!1,tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(s.e)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2","21"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(s.e)("/haoban-app-performance-three-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示").then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,enterpriseId:this.activeBrand};Object(s.a)("/haoban-app-performance-three-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");l.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;t.loading=!0;var a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(s.a)("/haoban-app-performance-three-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-133 ",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-select",{staticClass:"w-133 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"first-item font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("dWHn")},"data-v-42ae645a",null);t.default=u.exports},dWHn:function(e,t){}});
\ No newline at end of file
webpackJsonp([81],{EzCA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("PeHS"),s=a("Q0Ca"),n={name:"operateLog",data:function(){return{filters:s.a,requestProject:"gic-web",loading:!1,search:{businessType:"",optType:"",optUser:"",search:"",dateRange:[]},clerkListPager:{searchName:"",pageNum:1,pageSize:20,totalPage:1},moduleList:[],businessList:[],userList:[],tableData:[],pager:{currentPage:1,pageSize:20,total:0},enterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,pickerOptions:{disabledDate:function(e){var t=new Date,a=new Date;return a=new Date(a.setMonth(t.getMonth()-3)),e.getTime()<a.getTime()||e.getTime()>t.getTime()}}}},mounted:function(){this.initData(),this.getTableData()},methods:{initData:function(){var e=this,t={};t.requestProject=this.requestProject,Object(r.c)(t).then(function(t){var a=t.data||{},r=a.code,s=a.result;0==r&&(e.moduleList=(s||[]).filter(function(e){return 1001!=e.key}))}),Object(r.s)({params:t}).then(function(t){var a=t.data||{},r=a.code,s=a.result;0==r&&(e.businessList=(s||[]).filter(function(e){return 1001!=e.key}))}),this.getClerkList()},loadMoreClerk:function(){this.clerkListPager.pageNum>=this.clerkListPager.totalPage||(this.clerkListPager.pageNum+=1,this.getClerkList())},searchClerk:function(e){this.clerkListPager.searchName=e,this.clerkListPager.pageNum=1,this.clerkListPager.totalPage=1,document.querySelector(".operate-clerk-list .el-scrollbar__wrap").scrollTop=0,this.getClerkList()},getClerkList:function(){var e=this,t=this.clerkListPager,a=t.pageNum,s=t.pageSize,n={searchName:t.searchName,pageNum:a,pageSize:s};n.requestProject=this.requestProject,Object(r.q)(n).then(function(t){var r=t.data||{},s=r.code,n=r.result;1==a&&(e.userList=[]),0==s&&(e.userList=e.userList.concat(n.result||[]),e.clerkListPager.totalPage=n.totalPage)})},getTableData:function(){var e=this;this.loading=!0;var t=this.pager,a=t.pageSize,s=t.currentPage,n=this.search,l=n.businessType,i=n.optType,o=n.optUser,c=n.search,u=n.dateRange,p={businessType:l,optType:i,optUser:o,search:c,startDate:Array.isArray(u)?u[0]:"",endDate:Array.isArray(u)?u[1]:"",pageSize:a,pageNum:s,enterpriseId:this.enterpriseId};p.requestProject=this.requestProject,Object(r.r)(p).then(function(t){var a=t.data;0==a.code&&(e.tableData=a.result.result,e.pager.total=a.result.totalCount),e.loading=!1})},onSearch:function(){this.handleCurrentChange(1)},handleCurrentChange:function(e){this.pager.currentPage=e,this.getTableData()},handleSizeChange:function(e){this.pager.pageSize=e,this.handleCurrentChange(1)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-box"},[a("div",[a("el-select",{staticStyle:{width:"160px"},attrs:{placeholder:"选择业务模块",clearable:""},on:{change:e.onSearch},model:{value:e.search.businessType,callback:function(t){e.$set(e.search,"businessType",t)},expression:"search.businessType"}},e._l(e.moduleList,function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1),e._v(" "),a("el-select",{staticStyle:{width:"160px","margin-left":"10px"},attrs:{placeholder:"选择操作事项",clearable:""},on:{change:e.onSearch},model:{value:e.search.optType,callback:function(t){e.$set(e.search,"optType",t)},expression:"search.optType"}},e._l(e.businessList,function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1),e._v(" "),a("el-select",{directives:[{name:"select-loadmore",rawName:"v-select-loadmore",value:e.loadMoreClerk,expression:"loadMoreClerk"}],staticStyle:{width:"170px","margin-left":"10px"},attrs:{placeholder:"操作人姓名/手机号","popper-class":"operate-clerk-list",clearable:"",filterable:"","filter-method":e.searchClerk},on:{clear:function(t){e.userList=[]},change:e.onSearch},model:{value:e.search.optUser,callback:function(t){e.$set(e.search,"optUser",t)},expression:"search.optUser"}},e._l(e.userList,function(t){return a("el-option",{key:t.clerkId,attrs:{value:t.clerkId,label:t.clerkName}},[a("p",[e._v(e._s(t.clerkName))]),e._v(" "),a("p",[e._v(e._s(t.phoneNumber))])])}),1),e._v(" "),a("el-input",{staticStyle:{width:"260px","margin-left":"10px"},attrs:{placeholder:"操作内容",clearable:"","prefix-icon":"el-icon-search"},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search",t)},expression:"search.search"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"256px","margin-left":"10px"},attrs:{"picker-options":e.pickerOptions,clearable:"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.onSearch},model:{value:e.search.dateRange,callback:function(t){e.$set(e.search,"dateRange",t)},expression:"search.dateRange"}})],1),e._v(" "),a("el-table",{staticStyle:{margin:"20px 0"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"业务模块",prop:"businessTypeName",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作事项",prop:"optTypeName",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作页面",prop:"optPage",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作账号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.userName||r.phoneNumber?[a("p",{staticClass:"text-overflow"},[e._v("\n "+e._s(r.userName?r.userName:"")+"\n "),r.ywName?a("span",{staticStyle:{color:"#909399"}},[e._v("("+e._s(r.ywName)+")")]):e._e()]),e._v(" "),a("p",[e._v(e._s(r.phoneNumber?r.phoneNumber:""))])]:[e._v("--")]]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作内容",prop:"content",formatter:function(e,t,a){return a||"--"},"show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"createTime"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[e._v("\n "+e._s(e.filters.timeStampToYmd(Number(r.createTime)))),a("br"),e._v("\n "+e._s(e.filters.timeStampToHms(Number(r.createTime)))+"\n ")]:void 0}}],!0)})],1),e._v(" "),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total, sizes, prev, pager, next",total:e.pager.total,"current-page":e.pager.currentPage,"page-size":e.pager.pageSize,"page-sizes":[20,40,60,80]},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)])},staticRenderFns:[]};var i=a("VU/8")(n,l,!1,function(e){a("tw8h")},"data-v-5041b7de",null);t.default=i.exports},tw8h:function(e,t){}});
\ No newline at end of file
webpackJsonp([82],{"64R1":function(t,e){},IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},loading:!1,selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,defaultStoreList:[],loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.g)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:Object(l.a)(function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.c)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="云日报记录.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},300),handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;e.loading=!0;var a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Array(this.conditionObj.dateRange)&&this.conditionObj.dateRange.length>0&&(n.startDate=this.conditionObj.dateRange[0]+" 00:00:00",n.endDate=this.conditionObj.dateRange[1]+" 23:59:59"),Object(s.b)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},mounted:function(){var t=new Date;t=new Date(t.setMonth(t.getMonth()-1));var e=new Date,a=[],n=[];a.push(t.getFullYear()),a.push((t.getMonth()+1).toString().padStart(2,"0")),a.push(t.getDate().toString().padStart(2,"0")),n.push(e.getFullYear()),n.push((e.getMonth()+1).toString().padStart(2,"0")),n.push(e.getDate().toString().padStart(2,"0")),this.conditionObj.dateRange=[a.join("-"),n.join("-")];this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.multipleDelReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.multipleDelReport,type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportReport,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-button",{attrs:{"limit-code":t.$buttonCode.reportDetail,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("仅统计近两年数据")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("64R1")},"data-v-4ee414f4",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([83],{"iD/V":function(e,t){},t6Nl:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("Dd8w"),a=r.n(i),o=r("Xxa5"),s=r.n(o),u=r("exGp"),n=r.n(u),p=r("PeHS"),c=r("P9l9"),l={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=n()(s.a.mark(function e(r,i,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var r=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=r&&a(new Error("该分组名称已存在,请重新输入")),a()}else t.checkNameLength>0&&a(new Error("该分组名称已存在,请重新输入")),a()});case 2:case"end":return e.stop()}},e,t)})),function(t,r,i){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:40},checkNameLength:-1,editNamePre:""}},created:function(){this.searchGroup()},activated:function(){this.searchGroup()},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=a()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){if(!(t.groupList.findIndex(function(t){return t.groupId===e.groupId})<0)){var r={groupId:e.groupId};Object(p.d)(r).then(function(r){0==r.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.currentListItemUuid==e.groupId&&(t.pageP.pageNum=1,t.currentListItemUuid=-1,t.$emit("updateList",t.currentListItemUuid)),t.pageP.pageNum=1,t.searchGroup())})}}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=n()(s.a.mark(function e(r){var i,a,o,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}if(i={},a=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return o={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(p.f)(o);case 7:i=e.sent,e.next=14;break;case 10:return u={groupName:t.groupListForm.groupName},e.next=13,Object(p.b)(u);case 13:i=e.sent;case 14:0==i.data.code?(t.$message({type:"success",message:a,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"warning",message:i.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return n()(s.a.mark(function e(){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(c.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return r=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=r.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(c.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var r=e.data.result||{},i=r.result,a=r.pages;t.groupList=t.groupList.concat(i),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=a||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",[r("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"lists-content-box infinite-list-wrapper"},[r("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return r("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(r){return e.clickGroupListItem(t)}}},[r("div",{staticClass:"wrap"},[r("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),r("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?r("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[r("p",{staticClass:"more",on:{click:function(r){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():r("p",{staticClass:"more",on:{click:function(r){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?r("i",{staticClass:"iconfont-hb3 icongengduo3 icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),r("li",[e.groupLoading?r("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[r("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?r("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?r("div",{staticClass:"add-category"},[r("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),r("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[r("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[r("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=r("VU/8")(l,g,!1,function(e){r("iD/V")},"data-v-4eae5476",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([84],{NmKt:function(e,t){},"t/sc":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("feRM"),o=a("RSOD"),r=a("PeHS"),n={components:{previewPage:o.a,singleUpload:i.a},data:function(){return{form:{pageName:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:"长按保存图片并识别二维码添加您的专属导购"},wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",logoImageList:[],isEdit:"edit"==this.$route.meta.type,isAdd:"add"==this.$route.meta.type,loading:!1,btnLoading:!1,rules:{merchantPhoneNumber:[{validator:function(e,t,a){t?((/^\s*$/.test(t)||/^\+*$/.test(t)||/^\-*$/.test(t))&&a("请输入正确的手机号"),/^[0-9 \+\-]{0,20}$/.test(t)||a("仅支持输入数字,空格,-,+"),a()):a()}}],pageName:[{required:!0,message:"请输入模板名称"}]}}},mounted:function(){this.isEdit?this.getDetail():this.getEchoEnterpriseInfo()},methods:{getDetail:function(){var e=this;console.log(this.$route),this.loading=!0,Object(r.h)({pageId:this.$route.params.id}).then(function(t){if(t.data.result){var a=t.data.result;e.form=a}}).finally(function(t){e.loading=!1})},getEchoEnterpriseInfo:function(){var e=this;Object(r.y)({}).then(function(t){var a=t.data;if(a.result&&a.result.length){var i=a.result.filter(function(t){return t.wxEnterpriseId==e.wxEnterpriseId})[0],o=i.customerPhone,r=i.enterpriseLogo,n=i.enterpriseName;e.form.merchantLogo=r,e.form.merchantPhoneNumber=o,e.form.merchantName=n}})},guidePageEdit:function(){var e=this;this.btnLoading=!0,Object(r.i)(this.form).then(function(t){e.$router.push("/ladingPageList"),e.$message.success("保存成功")}).finally(function(t){e.btnLoading=!1})},guidePageSave:function(){var e=this;this.btnLoading=!0,Object(r.l)(this.form).then(function(t){e.$router.push("/ladingPageList"),e.$message.success("保存成功")}).finally(function(t){e.btnLoading=!1})},save:function(){var e=this;this.$refs.form.validate(function(t){t&&(e.isEdit?e.guidePageEdit():e.guidePageSave())})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"daily-set-content"},[a("el-form",{ref:"form",staticClass:"form",attrs:{"label-width":"100px",model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"模板名称",prop:"pageName"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入模板名称",type:"text",maxlength:"20"},model:{value:e.form.pageName,callback:function(t){e.$set(e.form,"pageName",t)},expression:"form.pageName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"页面标题",prop:"pageTitle"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入页面标题",type:"text",maxlength:"10"},model:{value:e.form.pageTitle,callback:function(t){e.$set(e.form,"pageTitle",t)},expression:"form.pageTitle"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户名称",prop:"merchantName"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入商户名称",type:"text",maxlength:"20"},model:{value:e.form.merchantName,callback:function(t){e.$set(e.form,"merchantName",t)},expression:"form.merchantName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户电话",prop:"merchantPhoneNumber"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入商户电话",type:"text",maxlength:"20"},model:{value:e.form.merchantPhoneNumber,callback:function(t){e.$set(e.form,"merchantPhoneNumber",t)},expression:"form.merchantPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户LOGO"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",showDel:!0,showTips:!1,imgSrc:e.form.merchantLogo,field:"",uploadLimit:"200/KB",imgType:["image/jpeg","image/jpg","image/png","image/gif"]},on:{"update:imgSrc":function(t){return e.$set(e.form,"merchantLogo",t)},"update:img-src":function(t){return e.$set(e.form,"merchantLogo",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"6px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("图片建议尺寸 240*240px,格式 jpg/jpep/png/gif,大小 200KB 以内。")])],1),e._v(" "),a("el-form-item",{attrs:{label:"页面背景"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",showDel:!0,showTips:!1,imgSrc:e.form.pageBackgroundImg,field:"",imgType:["image/jpeg","image/jpg","image/png","image/gif"]},on:{"update:imgSrc":function(t){return e.$set(e.form,"pageBackgroundImg",t)},"update:img-src":function(t){return e.$set(e.form,"pageBackgroundImg",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"6px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("图片建议尺寸 750*1334px,格式 jpg/png/gif,大小 2M 以内。")])],1),e._v(" "),a("el-form-item",{attrs:{label:"引导语",prop:"guideComment"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入引导语",type:"textarea",maxlength:"50",autosize:{minRows:4,maxRows:6}},model:{value:e.form.guideComment,callback:function(t){e.$set(e.form,"guideComment",t)},expression:"form.guideComment"}})],1)],1),e._v(" "),a("div",{staticClass:"rightContent"},[a("p",{staticClass:"previewTitle"},[e._v("落地页预览")]),e._v(" "),a("previewPage",{staticClass:"preview",attrs:{data:e.form}}),e._v(" "),a("p",{staticClass:"previewBottom"},[e._v("此二维码只是样式预览效果,请勿直接使用")])],1)],1),e._v(" "),a("div",{staticClass:"footBtn"},[a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("保存")])],1)])},staticRenderFns:[]};var m=a("VU/8")(n,s,!1,function(e){a("NmKt")},"data-v-4e68fb10",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([85],{GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var l=a("VU/8")(o,r,!1,function(e){a("Y9S2")},"data-v-4d696228",null);t.default=l.exports},Y9S2:function(e,t){}});
\ No newline at end of file
webpackJsonp([86],{TvgO:function(e,t){},w4UW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Dd8w"),o=a.n(s),n=a("3E4D"),r=a("Ggl+"),l=a("3Xzz"),i=a("P9l9"),c=a("Ch4/"),d=a("PI0u"),p={name:"storeList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],bgHeight:window.screen.availHeight-298+"px",dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,navpath:[{name:"首页",path:"/index"},{name:"营销任务",path:"/trafficTaskSet"},{name:"话务任务-话务任务设置",path:""}],pageParams:{pageNum:1,pageSize:20,storeGroup:[],storeName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(){var e=this;if(!this.multipleSelection.length)return n.a.showmsg("请选择门店","warning"),!1;this.loadingBtn=!0;var t="/haoban-task-manage-web/market/clue/export/store-view",a=this.pageParams,s={pageNum:a.pageNum,pageSize:a.pageSize,storeName:a.storeName,taskType:2,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.storeId}).join(","),enterpriseId:sessionStorage.getItem("userInfoBrandId"),qywxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,startTime:this.pageParams.date[0],endTime:this.pageParams.date[1]};if(this.pageParams.storeGroup){var r=[];this.pageParams.storeGroup.forEach(function(e){r.push(e.storeGroupId)}),s.storeGroupIds=r.join(",")||""}var l=this.pageParams.date.length?"群发任务-门店视图_"+s.startTime+"至"+s.endTime+".xls":"群发任务-门店视图.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(s=o()({},s,this.$route.query),t="/haoban-task-manage-web/market/clue/export/plan-view-task-store-detail",l=this.pageParams.date.length?"群发任务-计划视图-任务门店详情_"+s.startTime+"至"+s.endTime+".xls":"群发任务-计划视图-任务门店详情.xls"),Object(i.b)(t,s).then(function(t){if(e.loadingBtn=!1,!t.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=l,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){e.loadingBtn=!1})},checkGroupIds:function(e){this.pageParams.storeGroup=e,this.reFetch()},changeRoute:function(e){this.$router.push(e)},reFetch:Object(d.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=o()({},t.pageParams,{enterpriseId:sessionStorage.getItem("userInfoBrandId"),qywxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,taskType:2});if(t.pageParams.storeGroup){var s=[];t.pageParams.storeGroup.forEach(function(e){s.push(e.storeGroupId)}),delete a.storeGroup,a.storeGroupIds=s.join(",")||""}a.date&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),t.$route.query.ecmPlanId&&(a.ecmPlanId=t.$route.query.ecmPlanId),Object(i.a)("/haoban-task-manage-web/market/clue/web/store-list",a).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):c.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$route.query.ecmPlanId?this.$router.push("grStoreDetail/"+e.storeId+"?tab=2&ecmPlanId="+this.$route.query.ecmPlanId+"&ecmPlanName="+this.$route.query.ecmPlanName):this.$router.push("grStoreDetail/"+e.storeId)}},watch:{brandId:function(e){this.getTableList()},$route:function(e,t){this.$route.query.ecmPlanId||this.getTableList()}},mounted:function(){this.getTableList(),this.$route.query.ecmPlanId?this.$emit("showTab","212","2121"):this.$emit("showTab","211"),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:l.a,gicSelectGroup:r.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":e.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入门店名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch},model:{value:e.pageParams.storeName,callback:function(t){e.$set(e.pageParams,"storeName",t)},expression:"pageParams.storeName"}}),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.pageParams.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")])],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--")+"\n "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeGroupName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.invalidCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,"current-page":e.pageParams.pageNum,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var m=a("VU/8")(p,u,!1,function(e){a("TvgO")},"data-v-292394a1",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([86],{FQZX:function(t,e){},zHtI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("FQZX")},"data-v-4cfabcb1",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([87],{NiGE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("mvHQ"),n=a.n(r),s=a("Gu7T"),i=a.n(s),c=a("Xxa5"),o=a.n(c),u=a("exGp"),d=a.n(u),h=a("PI0u"),l=a("Ch4/"),p=a("3E4D"),y=a("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{brandName:"",activeBrand:this.brandId,yearMonth:"",myObject:{hasEmptyGrid:!1,empytGrids:[],days:[],hasLastEmptyGrid:!1,lastEmpytGrids:[],beginDate:"",endDate:""},performanceWeightSettingList:[],settingStatus:1,settingAble:1}},computed:{},methods:{is_leap:function(t){return t%400==0||t%4==0&&t%100!=0},m_days:function(t){return[31,28+this.is_leap(t),31,30,31,30,31,31,30,31,30,31]},addZero:function(t){return t<10?"0"+parseInt(t):t},getThisMonthDays:function(t,e){return new Date(t,e,0).getDate()},getFirstDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,1)).getDay()},getLastDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,this.getThisMonthDays(t,e))).getDay()},getYearMonthDayWeek:function(t,e,a){return new Date(t,e-1,a).getDay()},isOverMonth:function(t,e){return t.split("-")[1]==e.split("-")[1]},calculateEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function r(){var n,s,i;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.getFirstDayOfWeek(t,e);case 2:if(n=r.sent,s=[],n>0)for(i=0;i<n;i++)s.push(i);return r.abrupt("return",s);case 6:case"end":return r.stop()}},r,a)}))()},calDayEmptyGrids:function(t,e,a){var r=this;return d()(o.a.mark(function n(){var s,i,c;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getYearMonthDayWeek(t,e,a);case 2:if(s=n.sent,i=[],s>0)for(c=0;c<s;c++)i.push(c);return n.abrupt("return",i);case 6:case"end":return n.stop()}},n,r)}))()},calculateLastEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function r(){var n,s,i;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.getLastDayOfWeek(t,e);case 2:if(n=r.sent,s=[],n>=0)for(i=0;i<6-n;i++)s.push(i);return r.abrupt("return",s);case 6:case"end":return r.stop()}},r,a)}))()},calLastEmptyGrids:function(t,e,a){var r=this;return d()(o.a.mark(function n(){var s,i,c;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getYearMonthDayWeek(t,e,a);case 2:if(s=n.sent,i=[],s>=0)for(c=0;c<6-s;c++)i.push(c);return n.abrupt("return",i);case 6:case"end":return n.stop()}},n,r)}))()},calculateDays:function(t,e,a,r){var n=this;return d()(o.a.mark(function s(){var c,u,d,h,l,p,y,f,m,v;return o.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return c=n,(u={}).beginDate=a,u.endDate=r,u.year=t,s.next=7,c.addZero(e);case 7:return u.month=s.sent,d=a.split("-"),h=r.split("-"),s.next=12,c.isOverMonth(a,r);case 12:return l=s.sent,s.next=15,c.calDayEmptyGrids(d[0],d[1],d[2]);case 15:return(p=s.sent).length>0?(u.hasEmptyGrid=!0,u.empytGrids=p):(u.hasEmptyGrid=!1,u.empytGrids=[]),s.next=19,c.calLastEmptyGrids(h[0],h[1],h[2]);case 19:if((y=s.sent).length>0?(u.hasLastEmptyGrid=!0,u.lastEmpytGrids=y):(u.hasLastEmptyGrid=!1,u.lastEmpytGrids=[]),!l){s.next=27;break}return s.next=24,c.setCurrentMonth(d[0],d[1],d[2],h[2]);case 24:u.days=s.sent,s.next=37;break;case 27:return s.next=29,c.getThisMonthDays(d[0],d[1]);case 29:return f=s.sent,s.next=32,c.setCurrentMonth(d[0],d[1],d[2],f);case 32:return m=s.sent,s.next=35,c.setCurrentMonth(h[0],h[1],1,h[2]);case 35:v=s.sent,u.days=[].concat(i()(m),i()(v));case 37:return c.myObject=u,s.abrupt("return",u);case 39:case"end":return s.stop()}},s,n)}))()},setCurrentMonth:function(t,e,a,r){for(var n=this,s=[],i=function(a){var r={};if(n.performanceWeightSettingList.length)n.performanceWeightSettingList.forEach(function(t,e){parseInt(t.date.split("-")[2])==a&&(r.weightValue=Number(t.weightValue).toFixed(2))});else{var i=n.getYearMonthDayWeek(t,e,a);r.weightValue=5==i?Number(1.8).toFixed(2):6==i||0==i?Number(2).toFixed(2):Number(1).toFixed(2)}r.performanceDay=n.addZero(a),r.date=t+"-"+n.addZero(e)+"-"+n.addZero(a),r.month=n.addZero(e),s.push(r)},c=a;c<=r;c++)i(c);return s},resetData:function(){this.performanceWeightSettingList=[];var t=this.yearMonth.split("-");this.calculateDays(t[0],t[1],this.myObject.beginDate,this.myObject.endDate)},saveSet:Object(h.a)(function(){var t=this,e=!0;if(t.myObject.days.forEach(function(t){(!t.weightValue||t.weightValue<=0||!Number(t.weightValue))&&(e=!1)}),!e)return this.$confirm("每日的权重不能为空,必须为数字,且不小于 0 ?","提示").then(function(){}),!1;t.$confirm(0==t.settingStatus?"点击即下发门店月指标任务,请确认是否提交?":"此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?","提示").then(function(){t.postSave(t.myObject.days)}).catch(function(){})},500),postSave:function(t){var e=this,a={enterpriseId:e.activeBrand,yearMonth:e.yearMonth,performanceWeightSettingList:n()(t)};Object(y.g)("/haoban-app-performance-three-web/performance/save-performance-weight-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("保存成功","success"),void e.getData();l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,yearMonth:t.yearMonth};Object(y.g)("/haoban-app-performance-three-web/performance/query-performance-weight-setting",e).then(function(e){var a=e.data,r=t.yearMonth.split("-");if(1==a.errorCode)return t.performanceWeightSettingList=a.result.performanceWeightSettingList||[],t.settingStatus=a.result.settingStatus,t.settingAble=a.result.settingAble,t.brandName=a.result.enterpriseName,t.myObject.beginDate=a.result.beginDate,t.myObject.endDate=a.result.endDate,void t.calculateDays(r[0],r[1],a.result.beginDate,a.result.endDate);l.a.errorMsg(a),t.settingAble=0}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getData())}},mounted:function(){this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getData())},components:{}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap common-right-wrap"},[a("div",{staticClass:"day-set-content border-box"},[a("div",{staticClass:"day-set-title m-b-20"},[a("span",{staticClass:"font-18 color-303133"},[t._v(t._s(t.yearMonth))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("首次设置提交即下发门店月指标任务;"),a("br"),t._v("门店月指标将依照日权重自动分配,日指标=当月月指标*(日权重/∑当月日权重);")]),t._v(" "),a("span",{staticClass:"font-14 color-606266 m-l-10",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v(t._s(t.brandName)+"日权重")])])],1),t._v(" "),a("section",[t._m(0),t._v(" "),a("div",{staticClass:"week week-body"},[t.myObject.hasEmptyGrid?t._l(t.myObject.empytGrids,function(t,e){return a("div",{key:e+"empytGrids",staticClass:"day grid white-color"})}):t._e(),t._v(" "),t._l(t.myObject.days,function(e,r){return a("div",{key:r,staticClass:"day w-p-14 selectable",class:0==e?"hide":""},[a("div",{staticClass:"w-120 font-14 color-909399 day-performance"},[t._v(t._s(e.month+"-"+e.performanceDay))]),t._v(" "),a("div",{staticClass:"target-value "},[a("el-input",{staticClass:"w-120",attrs:{maxlength:"50",placeholder:"请输入权重值",disabled:0==t.settingAble},model:{value:e.weightValue,callback:function(a){t.$set(e,"weightValue",a)},expression:"day.weightValue"}})],1)])}),t._v(" "),t.myObject.hasLastEmptyGrid?t._l(t.myObject.lastEmpytGrids,function(t,e){return a("div",{key:e+"lastEmpytGrids",staticClass:"day grid white-color"})}):t._e()],2)]),t._v(" "),t.$store.state.wxEnterpriseType||1!=t.settingAble?t._e():a("div",{staticClass:"day-set-btn m-t-24 text-center"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.resetData}},[t._v("重置")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("提交")])],1)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"week"},[a("div",{staticClass:"week-head day w-p-14"},[t._v("周日")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周一")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周二")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周三")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周四")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周五")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周六")])])}]};var v=a("VU/8")(f,m,!1,function(t){a("lcKW")},"data-v-4c601d49",null);e.default=v.exports},lcKW:function(t,e){}});
\ No newline at end of file
webpackJsonp([87],{TLVp:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"},{tabId:"4",tabName:"欢迎语",icon:"iconhuanyingci"},{tabId:"5",tabName:"审核中心",icon:"iconshenhezhongxin"},{tabId:"6",tabName:"操作设置",icon:"iconshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,console.log(this.activeTab),t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material");break;case"4":this.changeRoute("salutatory");break;case"5":this.changeRoute("reviewCenter");break;case"6":this.changeRoute("setting")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,console.log(this.activeTab),console.log(this.activeSelTab),this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("TLVp")},"data-v-260d1026",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([88],{"0p3D":function(t,e){},"qWC+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("fPyK"),l=a("Ggl+"),i=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},loading:!1,completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},searchStore:Object(c.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth)},getTableList:function(t){var e=this;e.loading=!0;var a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(i.b)("/haoban-app-performance-three-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(c.c)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(c.c)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(c.c)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(c.c)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo?a.result.pageInfo.total:0);n.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},components:{qrcodeDialog:s.a,gicSelectGroup:l.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{maxlength:"50",placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"门店完善状态"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.operationStaffName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("0p3D")},"data-v-4ab46017",null);e.default=p.exports}});
\ No newline at end of file
webpackJsonp([88],{"4N1S":function(t,e){},FIFf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("Z8ln"),s=a("Ch4/"),o=a("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"商品中心",path:"/goodsShowSet"},{name:"商品展示设置",path:""}],tabListData:[{tabId:"1",tabName:"商品展示设置",icon:"iconshangpinshezhi"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(o.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("goodsShowSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(r,d,!1,function(t){a("4N1S")},"data-v-21978d24",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([89],{"+lem":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"reviewed",data:function(){return{activeTab:"1",tabListData:[{tabId:"1",tabName:"待审核",icon:"icondaishenhe_orange"},{tabId:"2",tabName:"已审核",icon:"iconrenwu1"},{tabId:"3",tabName:"审核设置",icon:"iconshenhe"}]}},computed:{},methods:{handleClick:function(e,t){switch(e.name){case"1":this.$router.push("unreview");break;case"2":this.$router.push("reviewed");break;case"3":this.$router.push("reviewSet")}console.log(e,t)}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",5),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.tabListData,function(e){return a("el-tab-pane",{key:e.tabId,attrs:{label:e.tabName,name:e.tabId}},[a("div",{staticClass:"border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])}),1)],1)])},staticRenderFns:[]};var i=a("VU/8")(n,o,!1,function(e){a("ztov")},"data-v-21288b0d",null);t.default=i.exports},ztov:function(e,t){}});
\ No newline at end of file
webpackJsonp([89],{"+lem":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"reviewed",data:function(){return{activeTab:"1",tabListData:[{tabId:"1",tabName:"待审核",icon:"icondaishenhe_orange"},{tabId:"2",tabName:"已审核",icon:"iconrenwu1"},{tabId:"3",tabName:"审核设置",icon:"iconshenhe"}]}},computed:{},methods:{handleClick:function(e,t){switch(e.name){case"1":this.$router.push("unreview");break;case"2":this.$router.push("reviewed");break;case"3":this.$router.push("reviewSet")}console.log(e,t)}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",5),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.tabListData,function(e){return a("el-tab-pane",{key:e.tabId,attrs:{label:e.tabName,name:e.tabId}},[a("div",{staticClass:"border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])}),1)],1)])},staticRenderFns:[]};var i=a("VU/8")(n,o,!1,function(e){a("wO2V")},"data-v-489d1244",null);t.default=i.exports},wO2V:function(e,t){}});
\ No newline at end of file
webpackJsonp([9],{AIQa:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),l=a("u4Bf"),o=a.n(l),c=a("Isrn"),d=a("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var m=a("VU/8")(v,p,!1,function(t){a("aqQ7")},"data-v-94775b56",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(f,u,!1,function(t){a("h7wL")},"data-v-66c2fe71",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var C=a("VU/8")(h,g,!1,function(t){a("zGvM")},"data-v-6f4f982c",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},x={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var y=a("VU/8")(b,x,!1,function(t){a("cfOg")},"data-v-64e9da9d",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(I,w,!1,function(t){a("pJmJ")},"data-v-b7ca6e44",null).exports,S={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},M={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")(S,M,!1,function(t){a("AIQa")},"data-v-b252e530",null).exports,$=a("fPyK"),E={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},N={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var P=a("VU/8")(E,N,!1,function(t){a("S4PB")},"data-v-08c44adc",null).exports,V=a("3E4D"),R=a("Ch4/"),L=a("PI0u"),B=a("P9l9"),F={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(L.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(B.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?R.a.errorMsg(a):V.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(B.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}R.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(B.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}R.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(B.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?R.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:o.a,AddInput:c.a,limitInput:d.a,timeProgress:m,storePerformance:_,errorMointor:y,membershipData:C,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:$.a,systemSet:P},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},O={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var A=a("VU/8")(F,O,!1,function(t){a("Sxk4")},"data-v-0be1ec60",null);e.default=A.exports},S4PB:function(t,e){},Sxk4:function(t,e){},aqQ7:function(t,e){},cfOg:function(t,e){},h7wL:function(t,e){},pJmJ:function(t,e){},zGvM:function(t,e){}});
\ No newline at end of file
webpackJsonp([90],{"9B3n":function(t,e){},mjMK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),r=a("P9l9"),s=a("Ch4/"),i={name:"authMerchant",data:function(){return{bgHeight:window.screen.availHeight-104+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],loading:!0,currentPage:1,pageSize:20,total:0,tableData:[],addShow:!1,activeBrand:""}},computed:{},filters:{wxEnterpriseTypeFilter:function(t){return 0==t?"总部":1==t?"代理":""}},methods:{AddAuthMerchant:function(t){t.enterpriseId?this.changeRoute("authMerchantForm?enterprise="+t.enterpriseId):this.changeRoute("authMerchantForm")},refreshData:function(t){if(this.addShow=!1,"close"==t)return!1;this.getTableList()},changeRoute:function(t){this.$router.push(t)},toStoreList:function(t){this.changeRoute("merchantStoreList?enterprise="+t.enterpriseId)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this;e.loading=!0;Object(r.a)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){e.loading=!1;var a=t.data;if(1==a.errorCode)return e.tableData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},refreshStoreBind:function(t){var e=this;e.$confirm("确认要刷新吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0;var a={enterpriseId:t.enterpriseId};Object(r.a)("/haoban-manage3-web/flush-bind-store-list",a).then(function(t){e.loading=!1;var a=t.data;if(1==a.errorCode)return e.$message.success({duration:1e3,message:"刷新成功"}),!1;s.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}).catch(function(){})},clerkEditFlagChange:function(t,e){var a=this,n=this;n.$confirm("是否确认修改导购编辑权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.loading=!0;var i={wxEnterprieseRelatedId:t.wxEnterpriseRelatedId,clerkEditFlag:n.tableData[e].clerkEditFlag?1:0};Object(r.a)("/haoban-manage3-web/set-clerk-edit",i).then(function(t){n.loading=!1;var e=t.data;if(1==e.errorCode)return n.$message.success({duration:1e3,message:"修改成功"}),a.getTableList(),!1;a.getTableList(),s.a.errorMsg(e)}).catch(function(t){n.loading=!1,n.$message.error({duration:1e3,message:t.message}),this.getTableList()})}).catch(function(){n.tableData[e].clerkEditFlag=n.tableData[e].clerkEditFlag?0:1})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",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:"flex flex-space-between flex-align-center"},[t._m(0),t._v(" "),a("div",[a("span",{staticClass:"color-909399 font-13 m-r-19"},[t._v("最多授权 10 个商户")]),t._v(" "),t.tableData.length<10?a("el-button",{attrs:{type:"primary"},on:{click:t.AddAuthMerchant}},[t._v("新建授权")]):t._e()],1)]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商户列表","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"ul-li-cell flex"},[a("div",{staticClass:"cell-img"},[a("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}})]),t._v(" "),a("div",{staticClass:"cell-info"},[a("div",{staticClass:"cell-info-name flex font-14 color-303133"},[a("span",{staticClass:"gic-name color-606266"},[t._v(t._s(e.row.enterpriseName||"--"))]),a("span",{staticClass:"gic-version color-606266"},[t._v(t._s(e.row.version||"3.0"))])]),t._v(" "),a("div",{staticClass:"cell-info-name flex font-14 color-606266"},[a("span",{staticClass:"gic-name"},[t._v(t._s(e.row.brandName||"--"))])])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"color-606266"},[t._v(t._s(t._f("wxEnterpriseTypeFilter")(e.row.wxEnterpriseType)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"开平类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"color-606266"},[t._v(t._s(e.row.memberOpenCardFlag?"不同开平":"同一开平"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购编辑","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:1===e.row.wxEnterpriseType},on:{change:function(a){return t.clerkEditFlagChange(e.row,e.$index)}},model:{value:e.row.clerkEditFlag,callback:function(a){t.$set(e.row,"clerkEditFlag",a)},expression:"scope.row.clerkEditFlag"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"color-606266"},[t._v(t._s(e.row.staffName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.AddAuthMerchant(e.row)}}},[t._v("编辑授权设置")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toStoreList(e.row)}}},[t._v("绑定门店列表")]),t._v(" "),a("el-button",{attrs:{slot:"reference",type:"text",size:"small"},on:{click:function(a){return t.refreshStoreBind(e.row)}},slot:"reference"},[t._v("刷新门店 ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:8},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-center",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-warning font-13 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("绑定门店:绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等。")]),this._v(" "),e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("刷新门店:编辑或修改绑定门店范围,手动刷新获取最近门店列表。")])])])])}]};var l=a("VU/8")(i,o,!1,function(t){a("9B3n")},"data-v-1b46d11a",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([90],{YQXN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("/p6h"),s=e("eaYI"),n=e("P9l9"),c=e("ckKa"),l=e("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:i.default,newAddChart:s.default},props:{hmId:{type:String,default:function(){return""}},chartWidth:Number},mixins:[c.a],data:function(){return{loading:!1,dateList:[],overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,a={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",a).then(function(a){var e=a.data;if(t.loading=!1,0==e.code){var i=e.result||{addNumT:0,addNum:0,dateList:[]};return i.dateList.map(function(t,a){t["新增人数"]=t.addNum}),void(t.overViewData=i)}l.a.errorMsg(e)}).catch(function(a){t.loading=!1,t.$message.error({duration:1e3,message:a.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:codeGl",arg:"codeGl"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("ul",{staticClass:"flex"},[e("li",{staticClass:"data-total-cell m-r-22"},[e("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("添加好友人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell"},[e("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),e("div",{staticClass:"flex justify-end"},[e("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(a,i){return e("ul",{key:a.key,staticClass:"datebox"},[e("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(a){return t.btnChange(i)}}},[t._v(t._s(a.value))])])}),t._v(" "),e("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(a){t.dateDefault=a},expression:"dateDefault"}})],2)]),t._v(" "),e("new-add-chart",{attrs:{"chart-width":t.chartWidth,charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:codeCkmx",arg:"codeCkmx"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background"},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=e("VU/8")(d,o,!1,function(t){e("ptcL")},"data-v-4789dc53",null);a.default=r.exports},ptcL:function(t,a){}});
\ No newline at end of file
webpackJsonp([91],{"BDe+":function(t,e){},F1Rz:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),o=a("PI0u"),n=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{wmOrderShow:0,damoOrderShow:0,integralOrderShow:0},loading:!1}},methods:{submit:Object(o.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,wmOrderShow:e.myCustomData.wmOrderShow,damoOrderShow:e.myCustomData.damoOrderShow,integralOrderShow:this.myCustomData.integralOrderShow};Object(n.g)("/haoban-app-customer-web/customer/save-consume-setting",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return s.a.showmsg("保存成功","success"),void e.getShowSet();r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},getShowSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/customer/find-consume-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){this.getShowSet(this.brandId)}},mounted:function(){this.getShowSet(this.brandId)},components:{}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.wmOrderShow,callback:function(e){t.$set(t.myCustomData,"wmOrderShow",e)},expression:"myCustomData.wmOrderShow"}},[t._v("展示微盟商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示微盟商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.damoOrderShow,callback:function(e){t.$set(t.myCustomData,"damoOrderShow",e)},expression:"myCustomData.damoOrderShow"}},[t._v("展示达摩商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示达摩商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.integralOrderShow,callback:function(e){t.$set(t.myCustomData,"integralOrderShow",e)},expression:"myCustomData.integralOrderShow"}},[t._v("展示积分商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示GIC积分商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[a("el-button",{attrs:{type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(e){return t.submit("showFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var l=a("VU/8")(i,d,!1,function(t){a("BDe+")},"data-v-4731d992",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([92],{"0nOD":function(e,a){},tF0P:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t("mvHQ"),r=t.n(o),i=t("l46T"),n=t("Kkt8"),s=t("P9l9"),l=t("3E4D"),m=t("Ch4/"),p=t("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:n.a},data:function(){return{activeBrand:this.brandId,activeId:"3",commitName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{templateId:"",templateName:"",cardType:"0",cardApplicationChannel:["offlineStore"],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:""},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],cardApplicationChannel:[{type:"array",required:!0,message:"请至少选择一个卡券适用渠道",trigger:"change"}],cardDenomination:[{required:!0,message:"请输入减免金额",trigger:"blur"}],costValue:[{required:!0,message:"请输入成本费用",trigger:"blur"}],cardExplain:[{required:!0,message:"请输入适用门店说明",trigger:"blur"}],applicationStoreType:[{required:!0,message:"请选择适用门店",trigger:"change"}],useDescript:[{required:!0,message:"请输入使用说明",trigger:"blur"}],gicEnterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},cardSelectShow:!1,brandListData:[],chanelList:[],loadingBtn:!1}},methods:{changeEnterprise:function(){this.formData.cardApplicationChannel=[],this.getChanel()},getChanel:function(){var e=this,a={gicEnterpriseId:e.formData.gicEnterpriseId};Object(s.b)("/haoban-app-customer-web/inner/get-channel-type",a).then(function(a){var t=a.data;return 1==t.errorCode&&(e.chanelList=t.result||[],t.result.length&&!e.$route.query.templateId&&(e.formData.cardApplicationChannel=[t.result[0].value])),!1}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeTop:function(e){0==e&&(this.formData.limitTop=0)},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},submitForm:Object(p.a)(function(e,a){var t=this;return t.formData.fitGoodCheck&&!t.formData.fitGoodDes&&t.formData.noFitGoodDes?(t.$message.error({duration:1e3,message:"适用商品至少填写一项"}),!1):t.formData.minCostCheck&&!t.formData.minCost?(t.$message.error({duration:1e3,message:"请输入最低消费"}),!1):1!=t.formData.limitTopType||t.formData.limitTop?1!=t.formData.minGoodsType||t.formData.minApplicableGoods?1!=t.formData.maxGoodsType||t.formData.maxApplicableGoods?2!=t.formData.cardLimitType||t.formData.cardLimit?(t.loadingBtn=!0,void t.$refs[e].validate(function(e){e?t.postSaveCard(a):t.loadingBtn=!1})):(t.$message.error({duration:1e3,message:"请输入领券限制"}),!1):(t.$message.error({duration:1e3,message:"请输入最高适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入最低适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入封顶金额"}),!1)},1e3),postSaveCard:function(e){var a=this,t={sale_limit:{fee:0},goods:{ok:a.formData.fitGoodDes,no:a.formData.noFitGoodDes},only:a.formData.shareCheck?1:0,discount_amount_upper_limit:1==a.formData.cardType&&1==a.formData.limitTopType?a.formData.limitTop:0,goods_discounts_number_lower_limit:1==a.formData.minGoodsType?a.formData.minApplicableGoods:0,goods_discounts_number_upper_limit:1==a.formData.maxGoodsType?a.formData.maxApplicableGoods:0};a.formData.minCostCheck&&(t.sale_limit={fee:a.formData.minCost});var o={templateId:a.formData.templateId,templateName:a.formData.templateName,cardType:a.formData.cardType,cardApplicationChannel:a.formData.cardApplicationChannel.join(","),erpDemoCode:a.formData.erpDemoCode,cardColor:a.formData.cardColor,cardDenomination:a.formData.cardDenomination,minGoodsType:a.formData.minGoodsType,minApplicableGoods:a.formData.minApplicableGoods,maxGoodsType:a.formData.maxGoodsType,maxApplicableGoods:a.formData.maxApplicableGoods,limitTopType:a.formData.limitTopType,limitTop:a.formData.limitTop,useCondition:r()(t),cardLimitType:a.formData.cardLimitType,cardLimit:a.formData.cardLimit,costValue:a.formData.costValue,useCustomCode:a.formData.useCustomCode,cardExplain:a.formData.cardExplain,applicationStoreType:a.formData.applicationStoreType,useDescript:a.formData.useDescript,gicEnterpriseId:a.formData.gicEnterpriseId,commitName:a.commitName,wxEnterpriseId:a.wxEnterpriseId};Object(s.g)((a.$route.query.templateId,"/haoban-app-customer-web/inner/save-template"),o).then(function(t){var o=t.data;a.loadingBtn=!1,1==o.errorCode&&(l.a.showmsg(a.$route.query.templateId?"编辑卡券模板成功":"新建卡券模板成功","success"),e?(a.formData={templateId:"",templateName:"",cardType:"0",cardApplicationChannel:[],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:a.brandListData[0].enterpriseId},a.getChanel()):a.$router.push("/cardTemplate")),m.a.errorMsg(o)}).catch(function(e){a.loadingBtn=!1,a.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/cardTemplate")}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,a={templateId:e.$route.query.templateId};Object(s.b)("/haoban-app-customer-web/inner/find-template",a).then(function(a){var t=a.data;if(1==t.errorCode){var o=JSON.parse(t.result.useCondition);return e.formData={templateId:t.result.templateId,templateName:t.result.templateName,cardType:String(t.result.cardType),cardApplicationChannel:t.result.cardApplicationChannel.split(",")||[],erpDemoCode:t.result.erpDemoCode,cardColor:t.result.cardColor,cardDenomination:t.result.cardDenomination,limitTopType:String(t.result.limitTopType),limitTop:t.result.limitTop,minGoodsType:String(t.result.minGoodsType),minApplicableGoods:t.result.minApplicableGoods,maxGoodsType:String(t.result.maxGoodsType),maxApplicableGoods:t.result.maxApplicableGoods,minCostCheck:!!o.sale_limit.fee,minCost:o.sale_limit.fee?o.sale_limit.fee:"1",shareCheck:!!o.only,fitGoodCheck:!(!o.goods.ok&&!o.goods.no),fitGoodDes:o.goods.ok,noFitGoodDes:o.goods.no,cardLimitType:String(t.result.cardLimitType),cardLimit:t.result.cardLimit,costValue:t.result.costValue,useCustomCode:String(t.result.useCustomCode),cardExplain:t.result.cardExplain,applicationStoreType:String(t.result.applicationStoreType),useDescript:t.result.useDescript,gicEnterpriseId:t.result.gicEnterpriseId},e.getChanel(),!1}m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},getBrandData:function(){var e=this;Object(s.g)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(a){var t=a.data;if(1==t.errorCode)return e.brandListData=t.result||[],void(t.result.length&&!e.$route.query.templateId&&(e.formData.gicEnterpriseId=t.result[0].enterpriseId,e.getChanel()));m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(e,a){e&&this.$route.query.templateId&&(this.activeBrand=e)}},mounted:function(){var e=this;e.$emit("showTab","1"),e.getBrandData(),e.$route.query.templateId&&e.$nextTick(function(){e.getCardData()})}},d={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"common-right-wrap"},[t("div",{staticClass:"new-card-body border-box"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"142px"}},[t("el-form-item",{attrs:{label:"卡券模板名称",prop:"templateName"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.templateName,getByType:"word",holder:"请输入卡券模板名称",maxLength:6},on:{"update:inputValue":function(a){return e.$set(e.formData,"templateName",a)},"update:input-value":function(a){return e.$set(e.formData,"templateName",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券类型",prop:"cardType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("抵金券")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("折扣券")])],1),e._v(" "),t("el-form-item",{attrs:{label:"选择商户",prop:"gicEnterpriseId"}},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeEnterprise},model:{value:e.formData.gicEnterpriseId,callback:function(a){e.$set(e.formData,"gicEnterpriseId",a)},expression:"formData.gicEnterpriseId"}},e._l(e.brandListData,function(e){return t("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券适用渠道",prop:"cardApplicationChannel"}},[t("el-checkbox-group",{model:{value:e.formData.cardApplicationChannel,callback:function(a){e.$set(e.formData,"cardApplicationChannel",a)},expression:"formData.cardApplicationChannel"}},e._l(e.chanelList,function(a,o){return t("el-checkbox",{key:o+"chanel",attrs:{label:a.value}},[e._v(e._s(a.name))])}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"demo券号",prop:"erpDemoCode"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.erpDemoCode,getByType:"word",holder:"请输入demo券号",maxLength:200},on:{"update:inputValue":function(a){return e.$set(e.formData,"erpDemoCode",a)},"update:input-value":function(a){return e.$set(e.formData,"erpDemoCode",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券颜色",prop:"cardColor"}},[t("div",{staticClass:"card-color flex flex-space-between"},[t("span",[e._v(e._s(e.formData.cardColor))]),e._v(" "),t("el-color-picker",{model:{value:e.formData.cardColor,callback:function(a){e.$set(e.formData,"cardColor",a)},expression:"formData.cardColor"}})],1)]),e._v(" "),0==e.formData.cardType?t("el-form-item",{attrs:{label:"减免金额",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("输入大于0的整数")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"折扣额度",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:1,min:1,max:9.9,step:.1},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("折")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写1-9.9之间的数字")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"优惠金额封顶",prop:""}},[t("el-radio",{attrs:{label:"0"},on:{change:e.changeTop},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("不封顶")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("限制封顶")]),1==e.formData.limitTopType?t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.limitTop,callback:function(a){e.$set(e.formData,"limitTop",a)},expression:"formData.limitTop"}}):e._e(),e._v(" "),1==e.formData.limitTopType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]):e._e()],1):e._e(),e._v(" "),t("el-form-item",{attrs:{label:"最低适用商品件数",prop:"minGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("限制")]),1==e.formData.minGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minApplicableGoods,callback:function(a){e.$set(e.formData,"minApplicableGoods",a)},expression:"formData.minApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.minGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"最高适用商品件数",prop:"maxGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("限制")]),1==e.formData.maxGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.maxApplicableGoods,callback:function(a){e.$set(e.formData,"maxApplicableGoods",a)},expression:"formData.maxApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.maxGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"适用条件",prop:"minCostCheck"}},[t("div",[t("el-checkbox",{model:{value:e.formData.minCostCheck,callback:function(a){e.$set(e.formData,"minCostCheck",a)},expression:"formData.minCostCheck"}},[e._v("最低消费")]),t("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minCost,callback:function(a){e.$set(e.formData,"minCost",a)},expression:"formData.minCost"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元可用")])],1),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.fitGoodCheck,callback:function(a){e.$set(e.formData,"fitGoodCheck",a)},expression:"formData.fitGoodCheck"}},[e._v("适用商品")]),t("span",{staticClass:"font-14 color-909399"},[e._v("(至少填写一项)")])],1),e._v(" "),e.formData.fitGoodCheck?t("div",{staticClass:"fit-good border-box m-b-20"},[t("div",[t("div",{staticClass:"m-b-20 flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.fitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){return e.$set(e.formData,"fitGoodDes",a)},"update:input-value":function(a){return e.$set(e.formData,"fitGoodDes",a)}}})],1),e._v(" "),t("div",{staticClass:"flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("不适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.noFitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){return e.$set(e.formData,"noFitGoodDes",a)},"update:input-value":function(a){return e.$set(e.formData,"noFitGoodDes",a)}}})],1)])]):e._e(),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.shareCheck,callback:function(a){e.$set(e.formData,"shareCheck",a)},expression:"formData.shareCheck"}},[e._v("不与其他优惠共享")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"领券限制",prop:"cardLimitType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("1张/人")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("100张/人")]),e._v(" "),t("el-radio",{attrs:{label:"2"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("自定义")]),2==e.formData.cardLimitType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardLimit,callback:function(a){e.$set(e.formData,"cardLimit",a)},expression:"formData.cardLimit"}}):e._e(),e._v(" "),2==e.formData.cardLimitType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("张/人")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"成本费用",prop:"costValue"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.costValue,callback:function(a){e.$set(e.formData,"costValue",a)},expression:"formData.costValue"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写大于0的数字(限制两位小数)")])],1),e._v(" "),t("el-form-item",{attrs:{label:"code类型",prop:"useCustomCode"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.useCustomCode,callback:function(a){e.$set(e.formData,"useCustomCode",a)},expression:"formData.useCustomCode"}},[e._v("随机生成")])],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店说明",prop:"cardExplain"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.cardExplain,holder:"请输入适用门店说明",getByType:"word",maxLength:50},on:{"update:inputValue":function(a){return e.$set(e.formData,"cardExplain",a)},"update:input-value":function(a){return e.$set(e.formData,"cardExplain",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店",prop:"applicationStoreType"}},[t("el-radio",{attrs:{label:"1"},model:{value:e.formData.applicationStoreType,callback:function(a){e.$set(e.formData,"applicationStoreType",a)},expression:"formData.applicationStoreType"}},[e._v("所有门店")])],1),e._v(" "),t("el-form-item",{attrs:{label:"使用说明",prop:"useDescript"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.useDescript,holder:"请输入使用说明",getByType:"word",maxLength:500},on:{"update:inputValue":function(a){return e.$set(e.formData,"useDescript",a)},"update:input-value":function(a){return e.$set(e.formData,"useDescript",a)}}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),t("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(a){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.templateId?"编辑":"新建"))]),e._v(" "),e.$route.query.templateId?e._e():t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(c,d,!1,function(e){t("0nOD")},"data-v-450d562c",null);a.default=u.exports}});
\ No newline at end of file
webpackJsonp([92],{JbAx:function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"/newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"/newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"查看补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("JbAx")},"data-v-125e6edc",null);a.default=h.exports}});
\ No newline at end of file
webpackJsonp([93],{QZxC:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Dd8w"),n=a.n(s),i=a("3Xzz"),l=a("P9l9"),o=a("Ch4/"),r={name:"authMerchant",data:function(){return{bgHeight:window.screen.availHeight-104+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:"门店绑定列表",path:""}],pageParams:{pageNum:1,pageSize:20,enterpriseId:this.$route.query.enterprise||""},total:0,tableData:[],addShow:!1}},computed:{},methods:{toInput:function(t){this.pageParams.pageNum=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.pageParams.pageNum=1,this.pageParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.pageParams.pageNum=t,this.getTableList()},getTableList:function(t){var e=this,a=this,s=n()({},this.pageParams);Object(l.a)("/haoban-manage3-web/bind-store-list",s).then(function(t){var s=t.data;if(1==s.errorCode&&s.result)return a.tableData=s.result.result||[],e.total=s.result.totalCount||0,!1;a.tableData=[],o.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition m-b-19"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return t.toInput(e)}},model:{value:t.pageParams.search,callback:function(e){t.$set(t.pageParams,"search",e)},expression:"pageParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"门店 ","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticClass:"gic-name color-606266"},[t._v(t._s(e.row.storeName||""))]),t._v(" "),a("p",{staticClass:"gic-version color-606266"},[t._v(t._s(e.row.storeCode||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||""))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"绑定时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1),t._v(" "),t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.pageParams.pageNum,"page-sizes":[10,20,30],"page-size":t.pageParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip m-b-19"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-center w-604",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-warning font-13 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("授权范围:展示授权商户资源组全部授权范围,包含关联企业的门店和未关联企业的门店")])])])])}]};var u=a("VU/8")(r,c,!1,function(t){a("lMNC")},"data-v-1132a12a",null);e.default=u.exports},lMNC:function(t,e){}});
\ No newline at end of file
webpackJsonp([93],{jFep:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),c=a("Qie6"),n=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"},{tabId:"4",tabName:"欢迎语",icon:"iconhuanyingci"},{tabId:"5",tabName:"审核中心",icon:"iconshenhezhongxin"},{tabId:"6",tabName:"操作设置",icon:"iconshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,console.log(this.activeTab),t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material");break;case"4":this.changeRoute("salutatory");break;case"5":this.changeRoute("reviewCenter");break;case"6":this.changeRoute("setting")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,console.log(this.activeTab),console.log(this.activeSelTab),this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:c.a,vueOfficeHeader:n.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("jFep")},"data-v-4240c36a",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([94],{"6j9f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(e){var t={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.e)("/haoban-manage3-web/audit/open-or-close",t).then(function(e){var t=e.data;1!=t.errorCode?r.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.a)("/haoban-manage3-web/audit/find-setting",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.storeSwitch=a.result.auditFlag,void(t.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.storeSwitch,callback:function(t){e.storeSwitch=t},expression:"storeSwitch"}},[e._v("开启门店资料修改审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkChangeFlag,callback:function(t){e.clerkChangeFlag=t},expression:"clerkChangeFlag"}},[e._v("门店导购变更审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),e._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.postData}},[e._v("保 存")])],1)])])])},staticRenderFns:[]};var l=a("VU/8")(n,c,!1,function(e){a("rw7a")},"data-v-0bfaf0e6",null);t.default=l.exports},rw7a:function(e,t){}});
\ No newline at end of file
webpackJsonp([98],{"Hb/M":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("PI0u"),i=a("Ch4/"),n=a("3E4D"),o=a("P9l9"),l={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrand:this.brandId,setData:{status:!1,time:"12:00",releaseFlag:!1},loadingBtn:!1}},computed:{},methods:{saveSet:Object(s.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time,releaseFlag:t.setData.releaseFlag?1:0};Object(o.g)("/haoban-app-daily-three-web/daily/create-setting",e).then(function(e){var a=e.data;t.loadingBtn=!1,1!=a.errorCode?i.a.errorMsg(a):n.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand};Object(o.g)("/haoban-app-daily-three-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,t.setData.releaseFlag=1==a.result.releaseFlag,void(t.setData.time=a.result.time);i.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){this.brandId&&this.getData()},components:{}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"task-set-content border-box"},[a("div",{staticClass:"task-set-cell font-0"},[a("div",{staticClass:"inline-block font-14 color-606266 m-b-10 w-100"},[t._v("日报开关设置:")]),t._v(" "),a("div",{staticClass:"inline-block font-14 "},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1),t._v(" "),a("div",{staticClass:"inline-block m-l-10 font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")])]),t._v(" "),a("div",{staticClass:"task-set-cell font-0"},[a("div",{staticClass:"inline-block font-14 color-606266 m-b-10 w-100"}),t._v(" "),a("div",{staticClass:"inline-block m-l-10 vertical-top font-14 right-set-body"},[a("div",{staticClass:"font-14 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:" font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)])]),t._v(" "),a("div",{staticClass:"task-set-cell font-0"},[a("div",{staticClass:"inline-block font-14 color-606266 m-b-10 w-100"}),t._v(" "),a("div",{staticClass:"inline-block m-l-10 task-set-save m-t-50 font-14"},[t.$getButtonLimit(t.$buttonCode.saveTaskSet)?a("el-button",{attrs:{"limit-code":t.$buttonCode.saveTaskSet,type:"primary",loading:t.loadingBtn},on:{click:t.saveSet}},[t._v("保 存")]):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(t){a("IWvn")},"data-v-3b45fd95",null);e.default=c.exports},IWvn:function(t,e){}});
\ No newline at end of file
webpackJsonp([99],{iUia:function(e,t){},w4UW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Dd8w"),o=a.n(s),r=a("3E4D"),n=a("Ggl+"),l=a("P9l9"),i=a("Ch4/"),c=a("PI0u"),d={name:"grStoreList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,pageParams:{pageNum:1,pageSize:20,storeGroup:[],storeName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(){var e=this;if(!this.multipleSelection.length)return r.a.showmsg("请选择门店","warning"),!1;this.loadingBtn=!0;var t="/haoban-task-manage-web/market/clue/export/store-view",a=JSON.parse(sessionStorage.getItem("userInfos")),s=this.pageParams,n={pageNum:s.pageNum,pageSize:s.pageSize,storeName:s.storeName,taskType:2,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.storeId}).join(","),enterpriseId:a.enterpriseId,qywxEnterpriseId:a.wxEnterpriseId,startTime:this.pageParams.date[0],endTime:this.pageParams.date[1]};if(this.pageParams.storeGroup){var c=[];this.pageParams.storeGroup.forEach(function(e){c.push(e.storeGroupId)}),n.storeGroupIds=c.join(",")||""}var d=this.pageParams.date.length?"群发任务-门店视图_"+n.startTime+"至"+n.endTime+".xls":"群发任务-门店视图.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(n=o()({},n,this.$route.query),t="/haoban-task-manage-web/market/clue/export/plan-view-task-store-detail",d=this.pageParams.date.length?"群发任务-计划视图-任务门店详情_"+n.startTime+"至"+n.endTime+".xls":"群发任务-计划视图-任务门店详情.xls"),Object(l.c)(t,n).then(function(t){if(e.loadingBtn=!1,!t.data)return i.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=d,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){e.loadingBtn=!1})},checkGroupIds:function(e){this.pageParams.storeGroup=e,this.reFetch()},changeRoute:function(e){this.$router.push(e)},reFetch:Object(c.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=JSON.parse(sessionStorage.getItem("userInfos")),s=o()({},t.pageParams,{enterpriseId:a.enterpriseId,qywxEnterpriseId:a.wxEnterpriseId,taskType:2});if(t.pageParams.storeGroup){var r=[];t.pageParams.storeGroup.forEach(function(e){r.push(e.storeGroupId)}),delete s.storeGroup,s.storeGroupIds=r.join(",")||""}s.date&&(s.startTime=s.date[0],s.endTime=s.date[1],delete s.date),t.$route.query.ecmPlanId&&(s.ecmPlanId=t.$route.query.ecmPlanId),Object(l.b)("/haoban-task-manage-web/market/clue/web/store-list",s).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):i.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$route.query.ecmPlanId?this.$router.push("grStoreDetail/"+e.storeId+"?tab=2&ecmPlanId="+this.$route.query.ecmPlanId+"&ecmPlanName="+this.$route.query.ecmPlanName):this.$router.push("grStoreDetail/"+e.storeId)}},watch:{brandId:function(e){this.getTableList()},$route:function(e,t){"/grStoreList"==e.path&&this.getTableList()}},mounted:function(){this.getTableList()},components:{gicSelectGroup:n.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入门店名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch},model:{value:e.pageParams.storeName,callback:function(t){e.$set(e.pageParams,"storeName",t)},expression:"pageParams.storeName"}}),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.pageParams.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportStoreList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportStoreList,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--")+"\n "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeGroupName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkStoreList)?a("el-table-column",{attrs:{prop:"",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkStoreList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkStoreList,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,"current-page":e.pageParams.pageNum,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var u=a("VU/8")(d,p,!1,function(e){a("iUia")},"data-v-371135e0",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([99],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"0xDb":function(e,t,a){"use strict";t.a=function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),n=e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),o=n<10?"0"+n:n,p=new Date(t),s=p.getFullYear(),i=p.getMonth()+1,c=p.getDate()<10?"0"+p.getDate():p.getDate();return[s+"-"+(i<10?"0"+i:i)+"-"+c,a+"-"+o+"-"+r]};var n=a("woOf"),r=(a.n(n),a("fZjL")),o=(a.n(r),a("pFYg"));a.n(o),new Date},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),r=a.n(n),o=(a("j1ja"),a("hKoQ")),p=a.n(o),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=a("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){a("a75N")},null,null).exports,c=a("lRwf"),u=a.n(c),m=a("pRNm"),d=a.n(m),l=a("5tgt"),h=a.n(l);u.a.use(d.a);var v=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var g,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:h()("login","index")},{path:"/loginMore",name:"登录",component:h()("login","login-more")},{path:"/index",name:"index",component:h()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:h()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:h()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:h()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:h()("business","authMerchant")},{path:"/authMerchantForm",name:"新建授权商户",component:h()("business","authMerchant-form")},{path:"/merchantStoreList",name:"绑定门店列表",component:h()("business","storeList")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:h()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:h()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:h()("enterprise","adminList")},{path:"/material",name:"素材库",component:h()("enterprise","material")},{path:"/salutatory",name:"欢迎语",component:h()("enterprise","salutatory")},{path:"/salutatorySet",name:"欢迎语",component:h()("enterprise","salutatorySet")},{path:"/setting",name:"操作设置",component:h()("setting","index")},{path:"/reviewCenter",name:"审核中心",redirect:"/unreview",component:h()("reviewCenter","index"),children:[{path:"/unreview",name:"未审核",component:h()("reviewCenter","unreview")},{path:"/reviewed",name:"已审核",component:h()("reviewCenter","reviewed")},{path:"/reviewSet",name:"审核设置",component:h()("reviewCenter","reviewSet")}]}]},{path:"/salesleads",name:"销售线索",redirect:"trafficTaskSet",component:h()("salesleads","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:h()("salesleads/trafficTask","taskRecord"),meta:{keepAlive:!0}},{path:"/taskView",name:"话务任务记录",component:h()("salesleads/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:h()("salesleads/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:h()("salesleads/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:h()("salesleads/trafficTask","trafficTaskSet")},{path:"/grStoreList",name:"门店视图",component:h()("salesleads/groupSend","grStoreList")},{path:"/grStoreDetail/:id",name:"门店视图",component:h()("salesleads/groupSend","grStoreDetail")},{path:"/grTaskList",name:"计划视图",component:h()("salesleads/groupSend","grTaskList")}]},{path:"/enterpriseData",name:"企业数据",redirect:"enterpriseUseData",component:h()("enterpriseData","index"),children:[{path:"/enterpriseUseData",name:"好办使用详情",component:h()("enterpriseData","enterpriseUseData")},{path:"/activeDetail",name:"激活人员明细",component:h()("enterpriseData","activeDetail")},{path:"/loginDetail",name:"登录人员明细",component:h()("enterpriseData","loginDetail")},{path:"/areaLoginDetail",name:"区域登录人员明细",component:h()("enterpriseData","areaLoginDetail")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:h()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:h()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:h()("apps","index"),children:[{path:"/mycustomer",name:"我的客户的",redirect:"/memberShowSet",component:h()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"客户展示设置",component:h()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"客户分组设置",component:h()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"客户搜索设置",component:h()("apps/customerApp","memberSearchSet")},{path:"/memberDetailSet",name:"客户详情设置",component:h()("apps/customerApp","memberDetailSet")},{path:"/memberTagSet",name:"客户标签设置",component:h()("apps/customerApp","memberTagSet")},{path:"/syncHistory",name:"同步历史",component:h()("apps/customerApp","syncHistory")},{path:"/myCustomerList",name:"我的客户列表",component:h()("apps/customerApp","myCustomerList")},{path:"/addGroupTemplate",name:"添加模板",component:h()("apps/customerApp","addGroupTemplate")},{path:"/storeRangeSet",name:"门店范围设置",component:h()("apps/customerApp","storeRangeSet")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:h()("apps/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:h()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:h()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:h()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:h()("apps/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:h()("apps/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:h()("apps/cloudDaily","customReport")},{path:"/customReportSet",name:"自定义报表设置",component:h()("apps/cloudDaily","customReportSet")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:h()("apps/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:h()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:h()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:h()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:h()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:h()("apps/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:h()("apps/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/cardList",name:"卡券赠送",redirect:"/cardList",component:h()("apps/card","index"),children:[{path:"/cardList",name:"卡券列表",component:h()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:h()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:h()("apps/card","newCard")}]},{path:"/protectCard",name:"内购券",redirect:"/cardTemplate",component:h()("apps/protectCard","index"),children:[{path:"/cardTemplate",name:"卡券模板",component:h()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:h()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:h()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:h()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:h()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:h()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:h()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:h()("apps/protectCard","cardGetRecord")}]},{path:"/shoppingCenter",name:"商品中心",redirect:"/goodsShowSet",component:h()("apps/shoppingCenter","index"),children:[{path:"/goodsShowSet",name:"商品展示设置",component:h()("apps/shoppingCenter","goodsShowSet")}]},{path:"/order-evaluate",name:"订单评价设置",redirect:"/evaluate-set",component:h()("apps/order-evaluate","index"),children:[{path:"/evaluate-set",name:"订单评价",component:h()("apps/order-evaluate","evaluate-set")},{path:"/bad-evaluate",name:"不良评价回访设置",component:h()("apps/order-evaluate","bad-evaluate-set")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:h()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],D=new d.a({routes:f,scrollBehavior:function(){return{y:0}}}),S=a("Rf8U"),w=a.n(S),y=a("OMN4"),x=a.n(y),C=a("bOdI"),T=a.n(C),b=a("SJI6"),k=a.n(b),M=a("0xDb");u.a.use(k.a);var A=new k.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[],wxEnterpriseType:0,salesDate:Object(M.a)()},mutations:(g={},T()(g,"login",function(e,t){sessionStorage.token=t,e.token=t}),T()(g,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),T()(g,"title",function(e,t){e.title=t}),T()(g,"show",function(e,t){e.show=t}),T()(g,"saveAdd",function(e,t){e.addDepartment.push(t)}),T()(g,"saveEdit",function(e,t){e.editDepartment.push(t)}),T()(g,"saveDel",function(e,t){e.delDepartment.push(t)}),T()(g,"clearAdd",function(e){e.addDepartment=[]}),T()(g,"clearEdit",function(e){e.editDepartment=[]}),T()(g,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),T()(g,"changeWxEntertype",function(e,t){e.wxEnterpriseType=t}),T()(g,"changeSalesDate",function(e,t){e.salesDate=t}),g),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")},changeWxEntertypeData:function(e,t){e.commit("changeWxEntertype",t)},changeSales:function(e,t){e.commit("changeSalesDate",t)}}}),L=(a("4qCZ"),a("Xcu2"),a("xtVA"),a("Q0Ca")),R={props:{size:{type:[Number,String],default:20},iconname:{type:String,default:""}},computed:{ClassStyle:function(){return"width:"+parseInt(this.size)+";height:"+parseInt(this.size)+";"},IconName:function(){return"#"+this.iconname}}},E={render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"icon svg-icon svg-iconfont-hb3",style:this.ClassStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":this.IconName}})])},staticRenderFns:[]};var V=a("VU/8")(R,E,!1,function(e){a("mF/g")},"data-v-aa28dd00",null).exports,P=a("TUaa"),q=a.n(P),I=a("tyqE"),F=a.n(I),H=a("pRVe"),N=a.n(H),j=a("XsK6"),Y=a.n(j),G=a("QRL9"),O=a.n(G),U=a("eMjc"),W=a.n(U),X=a("l9mu"),z=a.n(X),J={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;W()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,n=t.height,r=a/592.28*841.89,o=n,p=0,s=592.28/a*n,i=t.toDataURL("image/jpeg",1),c=new z.a("","pt","a4");if(o<r)c.addImage(i,"JPEG",0,0,595.28,s);else for(;o>0;)c.addImage(i,"JPEG",0,p,595.28,s),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}},Q=a("/IwO"),Z=a.n(Q);p.a.polyfill(),Vue.component("svg-icon",V),Vue.use(Z.a),Z.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(J),Vue.use(Y.a),Vue.use(O.a),Vue.use(N.a),Vue.use(F.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(w.a,x.a),Vue.axios.defaults.withCredentials=!0,r()(L.a).forEach(function(e){Vue.filter(e,L.a[e])}),D.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var n=window.location.origin;n.indexOf("localhost"),localStorage.getItem("userInfos"),"/"==e.path?a({path:"/login"}):a()}),new Vue({el:"#app",router:D,store:A,components:{App:i},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},Opzk:function(e,t,a){var n={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,97],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,69],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,68],"./apps/badEvaluate/index.vue":["AG22",0,28],"./apps/card/cardList.vue":["X5LE",0,58],"./apps/card/cardRecord.vue":["xDJN",0,23],"./apps/card/index.vue":["nV1L",0,55],"./apps/card/newCard.vue":["7/Zw",0,16],"./apps/cloudDaily/customReport.vue":["ak3k",0,46],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,5],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,21],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,36],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,62],"./apps/cloudDaily/index.vue":["4QyY",0,71],"./apps/cloudDaily/systemReport.vue":["J/6z",0,7],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,57],"./apps/cloudDaily/template/block.vue":["O3gZ",67],"./apps/cloudDaily/template/date-range.vue":["2WGr",65],"./apps/cloudDaily/template/image.vue":["8dpP",44],"./apps/cloudDaily/template/input.vue":["zHtI",78],"./apps/cloudDaily/template/select.vue":["rYZf",66],"./apps/customerApp/addGroupTemplate.vue":["vIlm",0,27],"./apps/customerApp/index.vue":["QHTa",0,49],"./apps/customerApp/memberDetailSet.vue":["F1Rz",0,54],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,70],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,83],"./apps/customerApp/memberShowSet.vue":["odfG",0,42],"./apps/customerApp/memberTagSet.vue":["HmLC",0,40],"./apps/customerApp/myCustomerList.vue":["9CCr",0,8],"./apps/customerApp/storeRangeSet.vue":["z3jf",0,17],"./apps/customerApp/syncHistory.vue":["T435",0,41],"./apps/index.vue":["K1Vb",0,59],"./apps/order-evaluate/bad-evaluate-set.vue":["z2RJ",0,63],"./apps/order-evaluate/evaluate-set.vue":["RvMj",0,50],"./apps/order-evaluate/index.vue":["NUSj",0,48],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,96],"./apps/protectCard/cardPut.vue":["cD4x",0,85],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,74],"./apps/protectCard/cardStrategy.vue":["rUvh",0,39],"./apps/protectCard/cardTemplate.vue":["c7iB",0,56],"./apps/protectCard/index.vue":["aWmL",0,92],"./apps/protectCard/newCardPut.vue":["9db3",0,11],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,12],"./apps/protectCard/newCardTemp.vue":["tF0P",0,76],"./apps/quota/companyDaySet.vue":["NiGE",0,84],"./apps/quota/index.vue":["qSX4",0,77],"./apps/quota/monthList.vue":["fAFA",0,64],"./apps/quota/monthTask.vue":["NpHY",0,79],"./apps/quota/monthTaskDetail.vue":["YKf6",0,81],"./apps/quota/salerMonthDetail.vue":["+qr5",0,75],"./apps/quota/storeMonthTask.vue":["qWC+",0,43],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,51],"./apps/shoppingCenter/index.vue":["FIFf",0,88],"./business/authMerchant-dailog.vue":["/cEq",0,30],"./business/authMerchant-form.vue":["2xxS",0,10],"./business/authMerchant.vue":["mjMK",0,90],"./business/contacts.vue":["/W60",0,4],"./business/index.vue":["jPcV",0,82],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,61],"./business/storeList.vue":["QZxC",0,93],"./business/syncLog.vue":["20P3",0,34],"./enterprise/adminList.vue":["zYBJ",0,53],"./enterprise/enterpriseSet.vue":["x5Fx",0,14],"./enterprise/index.vue":["m9dW",0,87],"./enterprise/material.vue":["q+Sm",0,2],"./enterprise/salutatory.vue":["xWf4",0,73],"./enterprise/salutatorySet.vue":["vqCN",0,19],"./enterpriseData/activeDetail.vue":["h9Ca",0,20],"./enterpriseData/areaLoginDetail.vue":["TLd+",0,24],"./enterpriseData/enterpriseUseData.vue":["i4c9",0,6],"./enterpriseData/index.vue":["CTf4",0,72],"./enterpriseData/loginDetail.vue":["kX6v",0,9],"./errorPage/403.vue":["6XGN",33],"./errorPage/404.vue":["AejC",31],"./errorPage/500.vue":["FskK",26],"./errorPage/gic-error.vue":["Q3j/",25],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,35],"./login/index.vue":["T+/8",0,29],"./login/login-more.vue":["AVFt",0,38],"./overstore/index.vue":["Y55K",0,91],"./overstore/overStoreList.vue":["vuAV",0,45],"./reviewCenter/index.vue":["+lem",89],"./reviewCenter/reviewSet.vue":["6j9f",0,94],"./reviewCenter/reviewed.vue":["CLYF",0,22],"./reviewCenter/unreview.vue":["xCEU",0,15],"./salesleads/groupSend/grStoreDetail.vue":["XF7X",0,13],"./salesleads/groupSend/grStoreList.vue":["w4UW",0,86],"./salesleads/groupSend/grTaskList.vue":["Uvr8",0,52],"./salesleads/index.vue":["owWS",0,32],"./salesleads/trafficTask/taskDetail.vue":["wRTX",0,18],"./salesleads/trafficTask/taskRecord.vue":["Wj0m",0,47],"./salesleads/trafficTask/taskView.vue":["TsS9",0,37],"./salesleads/trafficTask/taskViewDetail.vue":["f1qT",0,80],"./salesleads/trafficTask/trafficTaskSet.vue":["3Qek",0,60],"./setting/index.vue":["VlR1",0,95]};function r(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(n)},r.id="Opzk",e.exports=r},Q0Ca:function(e,t,a){"use strict";t.a={dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),n={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),r=a<10?"0"+a:a,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+n+" "+o+":"+p+":"+s}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=a<10?"0"+a:a;return t.getFullYear()+"-"+n}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),r=a<10?"0"+a:a;return t.getFullYear()+"-"+r+"-"+n}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),r=a<10?"0"+a:a,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+n+" "+o+":"+p+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},timeStampToYmd2:function(e){if(e){var t=new Date(e-864e5),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),r=a<10?"0"+a:a;return t.getFullYear()+"-"+r+"-"+n}},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var n=a%864e5,r=n%36e5;return Math.floor(a/864e5)+"天"+Math.floor(n/36e5)+"小时"+Math.floor(r/6e4)+"分"}},formatTime:function(e){if(!e)return"00:00:00";var t=e/1e3,a=Math.floor(t/60/60/24);return(24*a+Math.floor(t/60/60)%24<10?"0"+(24*a+Math.floor(t/60/60)%24):24*a+Math.floor(t/60/60)%24)+":"+(Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60)+":"+(Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60)},formatInvalidStatus:function(e){var t="--";return 1==e?t="未失效":2==e&&(t="已失效"),t}}},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},a75N:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},"mF/g":function(e,t){},pRNm:function(e,t){e.exports=VueRouter},xtVA:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([126],{"/wAz":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"0xDb":function(e,t,a){"use strict";t.a=function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),o=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),r=o<10?"0"+o:o,s=new Date(t),i=s.getFullYear(),p=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[i+"-"+(p<10?"0"+p:p)+"-"+c,a+"-"+r+"-"+n]};var o=a("woOf"),n=(a.n(o),a("fZjL")),r=(a.n(n),a("pFYg"));a.n(r),new Date},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(o){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"6bDD":function(e,t){},CNbB:function(e,t){},"Ch4/":function(e,t,a){"use strict";var o=a("l6IN"),n=(a.n(o),JSON.parse(sessionStorage.getItem("userInfos")||"{}")),r="string"==typeof n.gicHost?n.gicHost.replace(/\/$/,""):"";location.origin.indexOf("localhost")>=0&&(r=location.origin),t.a={errorMsg:function(e){if(1!=e.errorCode){if(4==e.errorCode)return window.location.href=r+"/gic-web/#/login?ishb=1",!1;if(10==e.errorCode)return window.location.href=r+"/haoban-3/#/index",!1;o.Message.error({duration:2e3,message:e.message||"接口异常"})}}}},FHfR:function(e,t){e.exports={multipleAssign:"multipleAssign",assign:"assign",willSyncTag:"willSyncTag",breakSyncTag:"breakSyncTag",addShowRules:"addShowRules",editShowRules:"editShowRules",delShowRules:"delShowRules",groupExpire:"groupExpire",syncGroup:"syncGroup",addGroupTemp:"addGroupTemp",editGroupTemp:"editGroupTemp",setStoreArea:"setStoreArea",delGroupTemp:"delGroupTemp",searchSetSave:"searchSetSave",saveTrafficTaskSet:"saveTrafficTaskSet",addCard:"addCard",editCard:"editCard",delCard:"delCard",sendCardLog:"sendCardLog",getCardLog:"getCardLog",saveEvaluateSet:"saveEvaluateSet",addMaterialGroup:"addMaterialGroup",editMaterialGroup:"editMaterialGroup",delMaterialGroup:"delMaterialGroup",multipleDelAssets:"multipleDelAssets",multipleMoveAssets:"multipleMoveAssets",addText:"addText",editText:"editText",delText:"delText",textAssignStore:"textAssignStore",addImage:"addImage",editImage:"editImage",delImage:"delImage",imageAssignStore:"imageAssignStore",addWeb:"addWeb",editWeb:"editWeb",delWeb:"delWeb",webAssignStore:"webAssignStore",addVideo:"addVideo",editVideo:"editVideo",delVideo:"delVideo",videoAssignStore:"videoAssignStore",addFile:"addFile",editFile:"editFile",delFile:"delFile",fileAssignStore:"fileAssignStore",addApps:"addApps",editApps:"editApps",delApps:"delApps",appsAssignStore:"appsAssignStore",saveGoodsSet:"saveGoodsSet",exportActiveUser:"exportActiveUser",exportLoginUser:"exportLoginUser",exportAreaLoginUser:"exportAreaLoginUser",multipleDelReport:"multipleDelReport",exportReport:"exportReport",reportDetail:"reportDetail",multipleDelReportDetail:"multipleDelReportDetail",delReportDetail:"delReportDetail",showReportDetail:"showReportDetail",multipleExportReport:"multipleExportReport",saveTaskSet:"saveTaskSet",settingSystemReport:"settingSystemReport",saveSystemReport:"saveSystemReport",addCustomReport:"addCustomReport",copyCustomReport:"copyCustomReport",editCustomReport:"editCustomReport",delCustomReport:"delCustomReport",monthTarget:"monthTarget",dayTarget:"dayTarget",exportMonthTask:"exportMonthTask",checkMonthTask:"checkMonthTask",multipleDelTask:"multipleDelTask",delTask:"delTask",exportStoreList:"exportStoreList",checkStoreList:"checkStoreList",exportStoreDetail:"exportStoreDetail",checkStoreDetail:"checkStoreDetail",exportStoreDetailPop:"exportStoreDetailPop",previewStoreDetail:"previewStoreDetail",exportGrTaskList:"exportGrTaskList",checkGrTaskList:"checkGrTaskList",exportTaskRecord:"exportTaskRecord",multipleDelTaskRecord:"multipleDelTaskRecord",checkTaskRecord:"checkTaskRecord",exportTaskDetail:"exportTaskDetail",multipleDelTaskDetail:"multipleDelTaskDetail",delTaskDetail:"delTaskDetail",resolveTaskDetail:"resolveTaskDetail",previewTaskDetail:"previewTaskDetail",exportTaskView:"exportTaskView",multipleDelTaskView:"multipleDelTaskView",checkTaskView:"checkTaskView",exportTaskViewDetail:"exportTaskViewDetail",multipleDelTaskViewDetail:"multipleDelTaskViewDetail",checkTaskDetail:"checkTaskDetail",addSalutatory:"addSalutatory",editSalutatory:"editSalutatory",delSalutatory:"delSalutatory",multipleResolve:"multipleResolve",singleResolve:"singleResolve",singleReject:"singleReject",saveApplySetting:"saveApplySetting",refreshStoreMember:"refreshStoreMember",exportContact:"exportContact",checkContactDetail:"checkContactDetail",checkContactMemberDetail:"checkContactMemberDetail",checkLog:"checkLog",saveGuideSetting:"saveGuideSetting",saveAppsVisible:"saveAppsVisible",refreshStoreInfo:"refreshStoreInfo",saveMemberSecret:"saveMemberSecret",addMemberAppsSecret:"addMemberAppsSecret",editMemberAppsSecret:"editMemberAppsSecret",delMemberAppsSecret:"delMemberAppsSecret",addAppsSecret:"addAppsSecret",getAppsSecret:"getAppsSecret",editAppsSecret:"editAppsSecret",delAppsSecret:"delAppsSecret",checkAuth:"checkAuth",bindStoreList:"bindStoreList",refreshStore:"refreshStore",refreshAdminList:"refreshAdminList",addActCode:"addActCode",batchActCode:"batchActCode",batchGroup:"batchGroup",dataActCode:"dataActCode",infoActCode:"infoActCode",editActCode:"editActCode",downActCode:"downActCode",delActCode:"delActCode",recordCode:"recordCode",addLink:"addLink",dataLink:"dataLink",infoLink:"infoLink",editLink:"editLink",downLink:"downLink",recordLink:"recordLink"}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),r=(a("j1ja"),a("hKoQ")),s=a.n(r),i=a("mvHQ"),p=a.n(i),c=a("//Fk"),d=a.n(c),l=a("lRwf"),u=a.n(l),m=a("Ch4/"),g=a("P9l9"),h=a("Gu7T"),f=a.n(h),v=a("pRNm"),w=a.n(v),S=a("5tgt"),C=a.n(S),D=[{path:"/staffActCode",name:"员工活码",component:C()("salesleads/actCodeManage/staffActCode","index"),meta:{componentName:"staffActCode",fromPath:["/actCodeEdit","/actCodeBatch","/actCodeDetail","/actCodeDetails"]}},{path:"/actCodeRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/actCodeDetail",name:"活码详情-数据",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeDetails",name:"活码详情-详情",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail"),meta:{componentName:"actCodeDetail",fromPath:["/actCodeRecord"]}},{path:"/actCodeAdd",name:"新增活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode")},{path:"/actCodeEdit",name:"编辑活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode")},{path:"/actCodeBatch",name:"批量创建活码",component:C()("salesleads/actCodeManage/staffActCode/views","batchAddCode")}],k=[{path:"/attractFlowLink",name:"引流链接",component:C()("salesleads/actCodeManage/attractFlowLink","index"),meta:{componentName:"attractFlowLink",fromPath:["/attractFlowLinkEdit/:id","/attractFlowLinkInfo/:id","/attractFlowLinkInfos/:id"]}},{path:"/attractFlowLinkAdd",name:"新增引流链接",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkEdit/:id",name:"编辑引流链接",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkInfo/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attractFlowLinkInfos/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attLinkRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/ladingPageList",name:"落地页列表",component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","list"),meta:{componentName:"ladingPageList",fromPath:["/ladingPageEdit/:id"]}},{path:"/ladingPageAdd",name:"新建落地页",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/ladingPageEdit/:id",name:"编辑落地页",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/operationLog",name:"操作日志",component:C()("salesleads/actCodeManage","operateLog")}],b=[].concat(f()(D),f()(k));u.a.use(w.a);var x=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var y=[{path:"/loginMore",name:"登录",component:C()("login","login-more")},{path:"/refresh",name:"刷新",component:C()("errorPage","refresh")},{path:"/",redirect:"/index",component:function(){return Promise.all([a.e(0),a.e(8)]).then(a.bind(null,"xW93"))},children:[{path:"/contactsList",name:"通讯录",component:C()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:C()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:C()("business","authMerchant")},{path:"/authMerchantForm",name:"新建授权商户",component:C()("business","authMerchant-form")},{path:"/merchantStoreList",name:"绑定门店列表",component:C()("business","storeList")},{path:"/enterpriseSet",name:"企业信息",component:C()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:C()("enterprise","adminList")},{path:"/material",name:"素材库",component:C()("enterprise","material")},{path:"/salutatory",name:"欢迎语",component:C()("enterprise","salutatoryIndex"),meta:{componentName:"salutatoryIndex",fromPath:["/editSalutatorySet"]}},{path:"/salutatorySet",name:"新建欢迎语",component:C()("enterprise","salutatorySet")},{path:"/editSalutatorySet",name:"编辑欢迎语",component:C()("enterprise","salutatorySet")},{path:"/guide-setting",name:"导购设置",component:C()("enterprise","guide-setting")},{path:"/setting",name:"操作设置",component:C()("setting","index")},{path:"/unreview",name:"未审核",component:C()("reviewCenter","unreview")},{path:"/reviewed",name:"已审核",component:C()("reviewCenter","reviewed")},{path:"/reviewSet",name:"审核设置",component:C()("reviewCenter","reviewSet")},{path:"/taskRecord",name:"话务任务记录",component:C()("salesleads/trafficTask","taskRecord"),meta:{componentName:"TaskRecord",fromPath:["/taskDetail"]}},{path:"/taskView",name:"话务任务记录",component:C()("salesleads/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:C()("salesleads/trafficTask","trafficTaskSet")},{path:"/grStoreList",name:"门店视图",component:C()("salesleads/groupSend","grStoreList"),meta:{componentName:"grStoreList",fromPath:["/grStoreDetail/:id"]}},{path:"/grStoreDetail/:id",name:"门店视图",component:C()("salesleads/groupSend","grStoreDetail")},{path:"/grTaskList",name:"计划视图",component:C()("salesleads/groupSend","grTaskList")},{path:"/enterpriseUseData",name:"好办使用详情",component:C()("enterpriseData","enterpriseUseData")},{path:"/activeDetail",name:"激活人员明细",component:C()("enterpriseData","activeDetail")},{path:"/loginDetail",name:"登录人员明细",component:C()("enterpriseData","loginDetail")},{path:"/areaLoginDetail",name:"区域登录人员明细",component:C()("enterpriseData","areaLoginDetail")},{path:"/overStoreList",name:"溢出门店",component:C()("overstore","overStoreList")},{path:"/memberShowSet",name:"客户展示设置",component:C()("apps/customerApp","memberShowSet")},{path:"/addMemberShowRules",name:"新增特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/editMemberShowRules",name:"编辑特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/memberGroupSet",name:"客户分组设置",component:C()("apps/customerApp","memberGroupSet"),meta:{componentName:"memberGroupSet",fromPath:["/addGroupTemplate","/editGroupTemplate","/storeRangeSet"]}},{path:"/memberSearchSet",name:"客户搜索设置",component:C()("apps/customerApp","memberSearchSet")},{path:"/memberTagSet",name:"客户标签设置",component:C()("apps/customerApp","memberTagSet")},{path:"/syncHistory",name:"同步历史",component:C()("apps/customerApp","syncHistory")},{path:"/myCustomerList",name:"我的客户列表",component:C()("apps/customerApp","myCustomerList")},{path:"/addGroupTemplate",name:"添加模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/editGroupTemplate",name:"编辑模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/storeRangeSet",name:"门店范围设置",component:C()("apps/customerApp","storeRangeSet")},{path:"/dailyRecord",name:"云日报记录",component:C()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:C()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:C()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:C()("apps/cloudDaily","taskAssign")},{path:"/daily-setting",name:"系统报表",component:C()("apps/cloudDaily","daily-setting")},{path:"/customReportSet",name:"新增自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportCopy",name:"复制自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportEdit",name:"编辑自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/monthList",name:"月指标列表",component:C()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:C()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:C()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:C()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:C()("apps/quota","monthTask"),meta:{componentName:"monthTask",fromPath:["/monthTaskDetail"]}},{path:"/monthTaskDetail",name:"月指标任务详情",component:C()("apps/quota","monthTaskDetail")},{path:"/cardList",name:"卡券列表",component:C()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:C()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:C()("apps/card","newCard")},{path:"/editCard",name:"编辑卡券",component:C()("apps/card","newCard")},{path:"/cardTemplate",name:"卡券模板",component:C()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:C()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:C()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:C()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:C()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:C()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:C()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:C()("apps/protectCard","cardGetRecord")},{path:"/goodsShowSet",name:"商品展示设置",component:C()("apps/shoppingCenter","goodsShowSet")},{path:"/evaluate-set",name:"订单评价",component:C()("apps/order-evaluate","evaluate-set")}].concat(f()(b),[{path:"/403",name:"无权访问",component:x},{path:"/404",name:"error404",component:x},{path:"/500",name:"error500",component:x}])},{path:"/gic-error",name:"gic跳转失败页",component:C()("errorPage","gic-error")}],A=new w.a({routes:y,scrollBehavior:function(){return{y:0}}}),T=["/login","/loginMore"],M="",R="";A.beforeEach(function(e,t,a){M=e.path,R=t.path,sessionStorage.getItem("hbReload")?sessionStorage.removeItem("hbReload"):T.includes(R)&&(sessionStorage.setItem("hbReload",1),setTimeout(function(){location.reload()},50)),a()});var L={name:"App",data:function(){return{loading:!0,menuList:[],pageRight:[]}},beforeDestroy:function(){document.removeEventListener("visibilitychange",this.checkUser)},created:function(){var e=this;document.addEventListener("visibilitychange",this.checkUser),this.getUserInfo().then(function(){T.includes(M)||T.includes(R)?e.loading=!1:d.a.all([e.getRight(),e.getMenuList()]).finally(function(){setTimeout(function(){return e.loading=!1},200)})})},methods:{checkUser:function(){var e=this;if(!document.hidden){var t=JSON.parse(sessionStorage.getItem("userInfos"));this.getUserInfo().then(function(){JSON.parse(sessionStorage.getItem("userInfos")).clerkId!=t.clerkId&&e.$router.push("/refresh")})}},getUserInfo:function(){return Object(g.g)("/haoban-manage3-web/get-login-info",{}).then(function(e){var t=e.data||{},a=t.errorCode,o=t.result;1==a?(sessionStorage.setItem("userInfos",p()(o)),o.enterpriseId&&(u.a.axios.defaults.headers.common.enterpriseId=o.enterpriseId)):m.a.errorMsg(e.data)})},getMenuList:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-menu",{}).then(function(t){var a=t.data||[],o=a.errorCode,n=a.result;1==o?Array.isArray(n)&&(e.menuList=n,e.setIndexRoute(n)):m.a.errorMsg(t.data)})},getRight:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-right",{}).then(function(t){var a=t.data||{},o=a.errorCode,n=a.result;1==o?(e.pageRight=e.getPageRight(n.menu),e.checkButtonRight(n.button),e.checkPageRight(e.pageRight,function(e){return function(e,t){e&&e.menuCode&&console.log(t.filter(function(t){return t.parentCode==e.menuCode}))}(e,n.button)})):m.a.errorMsg(t.data)})},getPageRight:function(e){return e.filter(function(e){return"string"==typeof e.menuUrl&&e.menuUrl.length>0}).map(function(e){for(var t=e.menuUrl,a=/(:.*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(a=/(\/\*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return e.regexp=new RegExp("^/"+t+"$"),e})},checkButtonRight:function(e){u.a.prototype.$getButtonLimit=function(t){return 1==(e.find(function(e){return e.menuCode==t})||{}).hasRight}},checkPageRight:function(e,t){var a=e.find(function(e){return e.regexp.test(M)});if(a&&0==a.hasRight){var o=sessionStorage.getItem("hbReloadPath")||"";a.menuUrl==o.substr(1)?(this.$router.push("/index"),sessionStorage.removeItem("hbReloadPath")):this.$router.push({path:"/403"})}t(a),A.beforeEach(function(a,o,n){var r=e.find(function(e){return e.regexp.test(a.path)});if(t(r),r&&0==r.hasRight)return n({path:"/403"});n()})},setIndexRoute:function(e){var t="",a=[{path:"*",redirect:"/404"}];e.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&(t=e.menuUrl),e.hasRight&&e.isShow}),t}),t}),t&&a.push({path:"/index",redirect:"/"+t}),this.$router.addRoutes(a)}}},E={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticStyle:{"min-height":"100vh"},attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[this.loading?this._e():t("router-view",{attrs:{"menu-list":this.menuList,"page-right":this.pageRight}})],1)],1)},staticRenderFns:[]};var I,P=a("VU/8")(L,E,!1,function(e){a("CNbB")},null,null).exports,F=a("bOdI"),G=a.n(F),V=a("SJI6"),j=a.n(V),N=a("0xDb");u.a.use(j.a);var q=new j.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[],wxEnterpriseType:0,salesDate:Object(N.a)()},mutations:(I={},G()(I,"login",function(e,t){sessionStorage.token=t,e.token=t}),G()(I,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),G()(I,"title",function(e,t){e.title=t}),G()(I,"show",function(e,t){e.show=t}),G()(I,"saveAdd",function(e,t){e.addDepartment.push(t)}),G()(I,"saveEdit",function(e,t){e.editDepartment.push(t)}),G()(I,"saveDel",function(e,t){e.delDepartment.push(t)}),G()(I,"clearAdd",function(e){e.addDepartment=[]}),G()(I,"clearEdit",function(e){e.editDepartment=[]}),G()(I,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),G()(I,"changeWxEntertype",function(e,t){e.wxEnterpriseType=t}),G()(I,"changeSalesDate",function(e,t){e.salesDate=t}),I),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")},changeWxEntertypeData:function(e,t){e.commit("changeWxEntertype",t)},changeSales:function(e,t){e.commit("changeSalesDate",t)}}}),H={codeList:"https://www.yuque.com/exnmlu/oo64hg/thm172#WRdju",codeGl:"https://www.yuque.com/exnmlu/oo64hg/thm172#ADEzt",codeCkmx:"https://www.yuque.com/exnmlu/oo64hg/thm172#mDlza",linkList:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#WRdju",linkGl:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#ADEzt",linkCkmx:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#mDlza"},U={clipboard:{bind:function(e,t,a,o){e.val=t.value,e.handler=function(){var t=e.val,a=document.createElement("input");e.appendChild(a),a.value=t,a.select(),document.execCommand("Copy"),u.a.prototype.$message({type:"success",message:"复制成功"}),a.parentNode.removeChild(a)},e.addEventListener("click",e.handler)},update:function(e,t,a,o){e.val=t.value},unbind:function(e){e.removeEventListener("click",e.handler)}},jumpLink:{bind:function(e,t){var a=t.arg;e.handler=function(){window.open(H[a])},e.addEventListener("click",e.handler)},unbind:function(e){e.removeEventListener("click",e.handler)}}},O=(a("/wAz"),a("pc4g"),a("4qCZ"),a("xtVA"),a("Q0Ca")),Y={props:{size:{type:[Number,String],default:20},iconname:{type:String,default:""}},computed:{ClassStyle:function(){return"width:"+parseInt(this.size)+";height:"+parseInt(this.size)+";"},IconName:function(){return"#"+this.iconname}}},z={render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"icon svg-icon svg-iconfont-hb3",style:this.ClassStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":this.IconName}})])},staticRenderFns:[]};var W=a("VU/8")(Y,z,!1,function(e){a("6bDD")},"data-v-7a760b56",null).exports,$=a("TUaa"),B=a.n($),J=a("tyqE"),X=a.n(J),Q=a("pRVe"),Z=a.n(Q),K=a("XsK6"),_=a.n(K),ee=a("QRL9"),te=a.n(ee),ae=a("eMjc"),oe=a.n(ae),ne=a("l9mu"),re=a.n(ne),se={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;oe()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,o=t.height,n=a/592.28*841.89,r=o,s=0,i=592.28/a*o,p=t.toDataURL("image/jpeg",1),c=new re.a("","pt","a4");if(r<n)c.addImage(p,"JPEG",0,0,595.28,i);else for(;r>0;)c.addImage(p,"JPEG",0,s,595.28,i),s-=841.89,(r-=n)>0&&c.addPage();c.save(e+".pdf")})}}},ie=a("/IwO"),pe=a.n(ie),ce=a("FHfR"),de=a.n(ce),le={name:"HbFormBottom",inject:["layoutVm"],props:{horizontal:{type:String,default:"center"}},data:function(){return{width:"0px"}},mounted:function(){this.width=this.$parent.$el.offsetWidth+"px",this.layoutVm.pagePaddingBottom=this.$el.offsetHeight+"px"},beforeDestroy:function(){this.layoutVm.pagePaddingBottom=null}},ue={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"hb-form-bottom",style:{width:this.width,"justify-content":"left"==this.horizontal?"flex-start":"right"==this.horizontal?"flex-end":"center"}},[this._t("default")],2)},staticRenderFns:[]};var me=a("VU/8")(le,ue,!1,function(e){a("mBu+")},"data-v-5e054248",null).exports;s.a.polyfill(),u.a.component("svg-icon",W),n()(U).map(function(e){return u.a.directive(e,U[e])}),u.a.use(pe.a),pe.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,u.a.use(se),u.a.use(_.a),u.a.use(te.a),u.a.use(Z.a),u.a.use(X.a),u.a.use(B.a),u.a.component("hb-form-bottom",me),u.a.config.productionTip=!1,n()(O.a).forEach(function(e){u.a.filter(e,O.a[e])}),A.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var o=window.location.origin;o.indexOf("localhost"),a()}),u.a.prototype.$buttonCode=de.a,new u.a({el:"#app",router:A,store:q,components:{App:P},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},Opzk:function(e,t,a){var o={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,65],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,118],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,116],"./apps/badEvaluate/index.vue":["AG22",0,39],"./apps/card/cardList.vue":["X5LE",0,79],"./apps/card/cardRecord.vue":["xDJN",0,32],"./apps/card/index.vue":["nV1L",0,62],"./apps/card/newCard.vue":["7/Zw",0,20],"./apps/cloudDaily/customReport.vue":["ak3k",0,94],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,6],"./apps/cloudDaily/daily-setting.vue":["RnLd",0,7],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,28],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,44],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,82],"./apps/cloudDaily/index.vue":["4QyY",0,80],"./apps/cloudDaily/systemReport.vue":["J/6z",0,9],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,98],"./apps/cloudDaily/template/block.vue":["O3gZ",70],"./apps/cloudDaily/template/date-range.vue":["2WGr",67],"./apps/cloudDaily/template/image.vue":["8dpP",58],"./apps/cloudDaily/template/input.vue":["zHtI",86],"./apps/cloudDaily/template/select.vue":["rYZf",68],"./apps/customerApp/add-member-show-rules.vue":["SUcx",106],"./apps/customerApp/addGroupTemplate.vue":["vIlm",0,47],"./apps/customerApp/index.vue":["QHTa",0,60],"./apps/customerApp/memberDetailSet.vue":["F1Rz",0,91],"./apps/customerApp/memberGroupList.vue":["scn4",0,59],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,16],"./apps/customerApp/memberGroupSetList.vue":["8fbE",0,56],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,54],"./apps/customerApp/memberShowSet.vue":["odfG",75],"./apps/customerApp/memberTagSet.vue":["HmLC",51],"./apps/customerApp/myCustomerList.vue":["9CCr",0,14],"./apps/customerApp/storeRangeSet.vue":["z3jf",0,74],"./apps/customerApp/syncHistory.vue":["T435",52],"./apps/index.vue":["K1Vb",0,64],"./apps/order-evaluate/bad-evaluate-set.vue":["z2RJ",0,61],"./apps/order-evaluate/evaluate-set.vue":["RvMj",69],"./apps/order-evaluate/index.vue":["NUSj",0,111],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,108],"./apps/protectCard/cardPut.vue":["cD4x",0,95],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,102],"./apps/protectCard/cardStrategy.vue":["rUvh",0,42],"./apps/protectCard/cardTemplate.vue":["c7iB",0,63],"./apps/protectCard/index.vue":["aWmL",0,114],"./apps/protectCard/newCardPut.vue":["9db3",0,15],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,18],"./apps/protectCard/newCardTemp.vue":["tF0P",0,92],"./apps/quota/companyDaySet.vue":["NiGE",0,87],"./apps/quota/index.vue":["qSX4",0,101],"./apps/quota/monthList.vue":["fAFA",0,77],"./apps/quota/monthTask.vue":["NpHY",0,107],"./apps/quota/monthTaskDetail.vue":["YKf6",0,104],"./apps/quota/salerMonthDetail.vue":["+qr5",0,78],"./apps/quota/storeMonthTask.vue":["qWC+",0,88],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,103],"./apps/shoppingCenter/index.vue":["FIFf",0,76],"./business/authMerchant-dailog.vue":["/cEq",0,45],"./business/authMerchant-form.vue":["2xxS",0,13],"./business/authMerchant.vue":["mjMK",71],"./business/contacts.vue":["/W60",0,4],"./business/index.vue":["jPcV",0,97],"./business/not-manager.vue":["9F6+",0],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,115],"./business/storeList.vue":["QZxC",0,100],"./business/syncLog.vue":["20P3",0,48],"./enterprise/adminList.vue":["zYBJ",0,53],"./enterprise/app-visible-setting.vue":["w5vQ",72],"./enterprise/enterpriseSet.vue":["x5Fx",0,23],"./enterprise/guide-auth-setting.vue":["i0rV",57],"./enterprise/guide-setting.vue":["tPY2",21],"./enterprise/index.vue":["m9dW",0,93],"./enterprise/material.vue":["q+Sm",0,2],"./enterprise/relationDialog.vue":["+hGG",0],"./enterprise/salutatory.vue":["xWf4",0,66],"./enterprise/salutatoryIndex.vue":["nExe",0,26],"./enterprise/salutatorySet.vue":["vqCN",0,19],"./enterpriseData/activeDetail.vue":["h9Ca",0,29],"./enterpriseData/areaLoginDetail.vue":["TLd+",0,31],"./enterpriseData/enterpriseUseData.vue":["i4c9",0,5],"./enterpriseData/index.vue":["CTf4",0,119],"./enterpriseData/loginDetail.vue":["kX6v",0,12],"./errorPage/403.vue":["6XGN",41],"./errorPage/404.vue":["AejC",40],"./errorPage/500.vue":["FskK",36],"./errorPage/gic-error.vue":["Q3j/",55],"./errorPage/index.vue":["ODjX",1],"./errorPage/refresh.vue":["0/JE",124],"./index/index.vue":["JXTs",0,35],"./login/index.vue":["T+/8",0,49],"./login/login-more.vue":["AVFt",0,43],"./overstore/index.vue":["Y55K",0,113],"./overstore/overStoreList.vue":["vuAV",0,109],"./reviewCenter/index.vue":["+lem",89],"./reviewCenter/reviewSet.vue":["6j9f",0,117],"./reviewCenter/reviewed.vue":["CLYF",0,27],"./reviewCenter/unreview.vue":["xCEU",0,17],"./salesleads/actCodeManage/attractFlowLink/detail.vue":["ATNk",0,50],"./salesleads/actCodeManage/attractFlowLink/index.vue":["7m4r",0,123],"./salesleads/actCodeManage/attractFlowLink/info.vue":["phd8",0,24],"./salesleads/actCodeManage/attractFlowLink/landingPage/cardView.vue":["4KYo",34],"./salesleads/actCodeManage/attractFlowLink/landingPage/detail.vue":["t/sc",0,84],"./salesleads/actCodeManage/attractFlowLink/landingPage/list.vue":["fjEt",0,11],"./salesleads/actCodeManage/attractFlowLink/landingPage/relationDialog.vue":["GdW8",0,85],"./salesleads/actCodeManage/attractFlowLink/newAddChart.vue":["tqu3",0,110],"./salesleads/actCodeManage/components/select-clerk/index.vue":["znzC",0],"./salesleads/actCodeManage/components/select-clerk/select-clerk.vue":["1Am8",0],"./salesleads/actCodeManage/components/select-clerk/selected-clerk-item.vue":["jMsE",0],"./salesleads/actCodeManage/operateLog.vue":["EzCA",0,81],"./salesleads/actCodeManage/staffActCode/actCodeDetail.vue":["DWsn",0,30],"./salesleads/actCodeManage/staffActCode/actCodeDetailStatistics.vue":["YQXN",0,90],"./salesleads/actCodeManage/staffActCode/actCodeRecord.vue":["jx8Q",0,38],"./salesleads/actCodeManage/staffActCode/index.vue":["tVK0",0,10],"./salesleads/actCodeManage/staffActCode/newAddChart.vue":["eaYI",0],"./salesleads/actCodeManage/staffActCode/views/act-code-table.vue":["XZyq",0,33],"./salesleads/actCodeManage/staffActCode/views/batchAddCode.vue":["/pg7",0,121],"./salesleads/actCodeManage/staffActCode/views/group-list.vue":["t6Nl",0,83],"./salesleads/actCodeManage/staffActCode/views/setActCode.vue":["txZy",0,112],"./salesleads/components/act-code-set.vue":["1fzb",0],"./salesleads/components/actCodeDetailInfo.vue":["DvcT",0],"./salesleads/components/dataDetail.vue":["/p6h",0],"./salesleads/components/welcomesItem.vue":["42hH",0],"./salesleads/groupSend/grStoreDetail.vue":["XF7X",0,25],"./salesleads/groupSend/grStoreList.vue":["w4UW",0,99],"./salesleads/groupSend/grTaskList.vue":["Uvr8",0,73],"./salesleads/index.vue":["owWS",0,37],"./salesleads/trafficTask/taskDetail.vue":["wRTX",0,22],"./salesleads/trafficTask/taskRecord.vue":["Wj0m",0,96],"./salesleads/trafficTask/taskView.vue":["TsS9",0,46],"./salesleads/trafficTask/taskViewDetail.vue":["f1qT",0,120],"./salesleads/trafficTask/trafficTaskSet.vue":["3Qek",0,122],"./setting/index.vue":["VlR1",0,105]};function n(e){var t=o[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}n.keys=function(){return Object.keys(o)},n.id="Opzk",e.exports=n},P9l9:function(e,t,a){"use strict";a.d(t,"b",function(){return D}),a.d(t,"a",function(){return k}),a.d(t,"g",function(){return b}),a.d(t,"f",function(){return x}),a.d(t,"e",function(){return y}),a.d(t,"d",function(){return A}),a.d(t,"c",function(){return T});var o=a("//Fk"),n=a.n(o),r=a("lRwf"),s=a.n(r),i=a("Rf8U"),p=a.n(i),c=a("OMN4"),d=a.n(c),l=a("mw3O"),u=a.n(l),m=a("l6IN");a.n(m);s.a.use(p.a,d.a),s.a.axios.defaults.withCredentials=!0,s.a.axios.defaults.headers.common.platform="haoban",s.a.axios.defaults.timeout=5e5;var g=window.location.origin,h=JSON.parse(sessionStorage.getItem("userInfos")||"{}"),f="string"==typeof h.gicHost?h.gicHost.replace(/\/$/,""):"";console.log(f),g.indexOf("localhost")>=0&&(f=g);var v=[],w=[],S=s.a.axios.CancelToken,C=function(e){for(var t in w)w[t].u===e.url+"&"+e.method&&(w[t].f(),w.splice(t,1))};s.a.axios.interceptors.request.use(function(e){if(C(e),e.cancelToken=new S(function(t){w.push({u:e.url+"&"+e.method,f:t})}),e.cancelToken=new s.a.axios.CancelToken(function(e){v.push({cancel:e})}),sessionStorage.getItem("userInfoBrandId")){var t=sessionStorage.getItem("userInfoBrandId");t&&(e.headers.enterpriseId=t)}return e},function(e){return m.Message.error({message:"请求超时!"}),n.a.resolve(e)}),s.a.axios.interceptors.response.use(function(e){if(C(e.config),e.status&&200==e.status&&1!=e.data.errorCode&&0!=e.data.code){if(4==e.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/gic-web/#/login?ishb=1"}return 10!=e.data.errorCode&&7!=e.data.errorCode||(window.location.href=f+"/haoban-3/#/index"),e}return e},function(e){return 502==e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"服务异常⊙﹏⊙∥"})),403!=e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"登录失效!"})),n.a.resolve(e)});var D=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"get",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},k=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"delete",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},b=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),headers:{"Content-type":"application/x-www-form-urlencoded"}})},x=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},y=function(e,t){return s.a.axios({method:"post",url:""+g+e,data:t,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},A=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{}})},T=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})}},Q0Ca:function(e,t,a){"use strict";t.a={dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),o={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+n+"-"+o+" "+r+":"+s+":"+i}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=a<10?"0"+a:a;return t.getFullYear()+"-"+o}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+n+"."+o+" "+r+":"+s+":"+i}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},timeStampToYmd2:function(e){if(e){var t=new Date(e-864e5),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var o=a%864e5,n=o%36e5;return Math.floor(a/864e5)+"天"+Math.floor(o/36e5)+"小时"+Math.floor(n/6e4)+"分"}},formatTime:function(e){if(!e)return"00:00:00";var t=e/1e3,a=Math.floor(t/60/60/24);return(24*a+Math.floor(t/60/60)%24<10?"0"+(24*a+Math.floor(t/60/60)%24):24*a+Math.floor(t/60/60)%24)+":"+(Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60)+":"+(Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60)},formatInvalidStatus:function(e){var t="--";return 1==e?t="未失效":2==e&&(t="已失效"),t}}},SJI6:function(e,t){e.exports=Vuex},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},"mBu+":function(e,t){},pRNm:function(e,t){e.exports=VueRouter},pc4g:function(e,t){},xtVA:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={100:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"d679b80703f2669db906",1:"80ec7107adf684998411",2:"3034f3a1f8a7d4f6d6c5",3:"377353a38b767fb62eee",4:"eede7e36ee16bde24164",5:"7378fa081f28ad5cddc1",6:"89462395604bb0d7bb75",7:"1e22c07cfd143a1409c8",8:"7ed88220477c88b9927c",9:"8d329056b9b78feb1400",10:"98003472262c23bc7efc",11:"153319071ea978071aad",12:"8ac369a6e81098c19345",13:"c2c296ddddc2aa6fcbf1",14:"328dc62f1f3e36fbdfa4",15:"9a92296630d5b001ad0f",16:"cee69c95a4372b9e9c28",17:"5d851e70cd060878ed42",18:"4156d4299272b81036cf",19:"70802847841c1a3a50e4",20:"92a8e93fcd6ac454128c",21:"6f994db499de1ba15fe5",22:"6adece1d2e86f3ed7cf2",23:"237cb95a65eb94db7a8b",24:"7c5542f618f65a285227",25:"fb9c519070e24154d531",26:"98090da394d2fcd7acbd",27:"51d36982fe3d273b6576",28:"6abd7682e8f6844e4ddb",29:"8e0491e5fbcf1e20c5d4",30:"04bcad60c1958de411e4",31:"0d36905eeecb78bad936",32:"6bcadc6624199bec17af",33:"74e6c489c2bea79419b4",34:"6f0e4cede2487bdfc50d",35:"d77a9ad28cf62e8b4d0f",36:"6458f79f23bd8ccc6a6b",37:"8ab1df6a5bafee48605c",38:"0fac9278df1c16b54135",39:"54db58847207cf164940",40:"fdfd68b9985ed0b67522",41:"1dc7c5eaba06197f0709",42:"289031a79a2414c7040e",43:"138a75393a0e4c8ed4da",44:"16f634308d955a641c55",45:"cc863df4da2023dcc47a",46:"890ef4651ff5f9722c34",47:"c0e8fd82b6a44d464cc8",48:"4e178bb297fc047a4e6a",49:"0daa7809040e93803e83",50:"64ced5e2031e4b0dfcc0",51:"fe011d94cdc9d72fc38f",52:"e48cf3632f4d4cb20a53",53:"6588521caa413d25a6fe",54:"be329e39745eb328cda0",55:"019949d300a25e2f4468",56:"f552a773086fddf5eca0",57:"479ef643ba99824488da",58:"2b5d8e6e2f66855fc275",59:"c28752d0234c9c700c8e",60:"bf782d61a066f8e2b82d",61:"b5734e895b90e705ed4e",62:"3cacc7be6f8eb3f495e3",63:"0007f2a8b2fba2e8753f",64:"5ff784ec7cc64e54d24c",65:"2d167cdd8558c117e2ef",66:"2b5e6cf2c08b7ab6b4b3",67:"56a404cfb44ba6622364",68:"0ce0804b021f56596877",69:"7eb083424293dbf485ef",70:"8f5f8e725387e359ab8b",71:"9d0cb4f8a4538cb34866",72:"9e875a71a651c1a1c22d",73:"94c01a3f083ce12e3f24",74:"8ab98e5783671742091b",75:"8131754c6eaa08fafd0b",76:"327bea0c231ddb2d6c74",77:"66bda1c6fc52232c849f",78:"45f83001940afd9cb558",79:"dc1109ef034989f47090",80:"48e89f85ccc3f873f001",81:"0f1ed4767d48e858dad3",82:"910b419f5da9b489e7fc",83:"bb9fb3cbd5523d0102af",84:"a17d997e2e103de48737",85:"5fd148670020fb7f6125",86:"0671a705b9c09cf0a21a",87:"687b8f53eaedf25f541d",88:"b09e43b757bcb35577b5",89:"29ea1638fd4a0ab982cf",90:"10a2b74a1d025dc97679",91:"64ad30b4854f335b1896",92:"68033632b9635a5adba2",93:"c2f441747bf184bbf8a7",94:"332429cb6e9230d79cac",95:"85daa3cd0fe450e34122",96:"d9ce69de9695ef330393",97:"d2a1d0fad63546829407"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={127:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"80aa5c4f9c8b972c1624",1:"8c21cdd422f3828e0980",2:"625b091a4a3aee332a32",3:"b3d731844e068c929ccb",4:"68d2044efb371f39be25",5:"4cb19733e33daf9045c7",6:"8b8ceceb77c45a3eb241",7:"63b458abf0af163ecd9d",8:"f1625f009f8025dc7e06",9:"b54542eea4e78547170f",10:"4d0a4dc80e419d8f13b3",11:"17971226fd3a8c91ce62",12:"ff52f31dfe7dbe4f3a36",13:"5bff82fdfa22836b94ed",14:"020593230ca621af0fec",15:"a534d65c856a07456f99",16:"743a9ade5c8fbe4c01e3",17:"ae005110a2d382f61662",18:"59f744b6a28e0dd18406",19:"b60f87f858dc6a6cfe5c",20:"e419d0b3c9399298b06f",21:"cd3b36cfe1287f21085a",22:"00ccf811ec90a473af99",23:"8bf67849f707b47ba86b",24:"4526a4d3b45d90268979",25:"5bc1ddd821d7952038f1",26:"9de38833091e64c95607",27:"37f4db0d4e618f858cad",28:"013c8710715750725ae6",29:"db6e997cb686d2783d3f",30:"e124fef0e33aa9a6514c",31:"56b20d5b32d9c2f4888e",32:"4211c9a00aa0f3b3a750",33:"5cae64449d239d70e8a9",34:"86f0f2adbb271149812c",35:"76de65f9460eacd444de",36:"ed589290b06b4e2d2cfa",37:"c88007c565ddb2c014d7",38:"32fec3361ce95c402509",39:"7d0a142d772546c5956b",40:"cfed961aa84d46763ae9",41:"87e55e5418671a46683e",42:"247f37c84c672b490aae",43:"b82227d6e8d3b92286d4",44:"1e9a26f9ca9d66a3cfcf",45:"d1eb0cc984dfcad00a16",46:"2a755517bb4775d058fc",47:"2a1d541c2a8755ca5561",48:"cada5d91205dc3217fe9",49:"bcba53597bc0409388af",50:"c8d1cb893d9126364f54",51:"a2b8f6cb28625752085c",52:"9e1ff26e9708e16f41f1",53:"578f3040ac831a93d9e2",54:"80a9d7934ce32aef403b",55:"841ae24e6ad711dd0724",56:"f441733d75c7ab766298",57:"896d0fb81665557420bd",58:"ff04641b52b62507958c",59:"94c4c4f18f0569116d49",60:"af2565e8989c037b9353",61:"2deee89a2db3a301811d",62:"8353fadd1be907d0ce86",63:"339a5c2e1ff27abc185e",64:"8f931ae5c230a8078f56",65:"62684b95efd3341980f4",66:"dffcc62971ed8cfe2ced",67:"b367c36043f148c9d0f4",68:"75ce985994b52d0989ac",69:"90d155ad83da4c31f10f",70:"4f90c0e655cfb7093805",71:"1f9bf07954012e5331bd",72:"da9ee551342f9cf3a351",73:"8842a4a413cabbf9f6ac",74:"ee94b7e3d75840b4e633",75:"c1cf787a414273cf93af",76:"65d9ebd7d900ff93299e",77:"a28b458aef055f6bd919",78:"4ab073f7ae2f22d25881",79:"81f0c7cdc654f60a276b",80:"6d6f161f656f47c766df",81:"6440d73a0d910c1edda1",82:"659cf0cfcab599a75a8a",83:"824a68836ce47036106d",84:"a3cf2cacdac957e45980",85:"78516ab1cedae0f971c7",86:"5ba93cb8c68332bf5434",87:"35e1a04d0d90fcc9cfb6",88:"17baf49845881c030b87",89:"b9ff253b3ae095077178",90:"a0cf2e7677f363a211c4",91:"85a838427d4a84a1fab1",92:"5fb7611d69b9bcee1ae9",93:"cde2bba0734fba834116",94:"9dd6925c4492cc34c03f",95:"d37a97bd25023b58caeb",96:"0358ce4b94a445e60b6b",97:"b09d8bd34179f669239d",98:"e583e592b01b2a369b2e",99:"cfd39a56ea0b48b7f584",100:"2e364f88fb3d36a7affc",101:"a652e4e9543ae73113ba",102:"b7978e016378e1fdb4d2",103:"7401cd7e1a549cb44977",104:"523f0420228d5661d67e",105:"d032372fab756f261a57",106:"3acb8bdd4ee57610e918",107:"7b96cff50fbbddd0d0bb",108:"6ee1f348910c4ddf4ccd",109:"234195bfaeb9f1a73d46",110:"f3aada24239ddde8da61",111:"0f1d30a6d3e5b5a0b1e4",112:"45ba09d517f64ca4947f",113:"fdff70366711cb20abf3",114:"76e088c0b90755ce2dbb",115:"b7eba3943e7fabe83378",116:"ff068a480bd5c99b629d",117:"868a77202cabdc4a6f89",118:"76c4cf3934317e774791",119:"791865e71b6cd654a11f",120:"8e1e1bc88343b986900e",121:"0a8ebaf225e743dd7c6f",122:"c9dbbb1c3bd14b36409c",123:"071277d43d261b6e24c8",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<template>
<div class="expire-alert-box">
<el-dialog title="接口许可证即将到期" :visible.sync="visible" width="600px" @close="onClose">
<div class="label">企微企业名称:{{ expireData.corpName }}</div>
<div class="label">品牌名称:{{ expireData.enterpriseNames }}</div>
<div class="label">到期时间:{{ expireData.interceptTime | timeStampToYmd3 }}</div>
<div class="label" v-if="interceptTimeNew > 0">
企业微信自2022年5月16日起,面对服务商进行平台收费模式调整,服务商需接入接口收费模式,购买并激活接口调用许可后,才可使用企业微信接口;<span>{{ expireData.interceptTimeNew }}</span>后将有<span>{{ expireData.interceptUserNum }}</span
>个接口许可证即将过期,您总共还剩余<span>{{ expireData.permissionUserNum }}</span
>个可用的接口许可证,请保证数量充足,如需增加请及时联系运营人员续费,避免影响使用;
</div>
<div class="label" v-else>
企业微信自2022年5月16日起,面对服务商进行平台收费模式调整,服务商需接入接口收费模式,购买并激活接口调用许可后,才可使用企业微信接口;<span>今日{{ expireData.interceptTime | timeStampToHms }}</span
>后将有<span>{{ expireData.interceptUserNum }}</span
>个接口许可证即将过期,您总共还剩余<span>{{ expireData.permissionUserNum }}</span
>个可用的接口许可证,请保证数量充足,如需增加请及时联系运营人员续费,避免影响使用;
</div>
<el-row type="flex" justify="end" align="middle" style="margin: 14px 0;">
<el-button @click="onClose">知道了</el-button>
</el-row>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'ExpireDialog',
data() {
return {};
},
props: {
expireData: {},
visible: false
},
methods: {
onClose() {
let now = new Date().getTime();
sessionStorage.setItem('permission-interceptor-time', now);
this.$emit('update:visible', false);
}
}
// filters: {
// formatDate(value) {
// if (!value) {
// return '';
// }
// let arr = value.split(' ');
// let arr1 = arr[0].split('-');
// return `${arr1[0]}年${parseInt(arr1[1])}月${parseInt(arr1[2])}日`;
// }
// }
};
</script>
<style lang="scss">
.expire-alert-box .el-dialog {
background-repeat: no-repeat;
background-image: url('../images/alert_bg.png') !important;
background-size: 100% 177px;
padding: 0 10px;
}
</style>
<style lang="scss" scoped>
.label {
color: #303133;
font-size: 14px;
padding-bottom: 10px;
line-height: 20px;
}
.label span {
color: #f5222d;
}
.sub-enterprise-box {
border-radius: 4px;
background: #f7f8fa;
margin-bottom: 16px;
}
.sub-enterprise-box .cell {
padding: 10px 12px;
color: #303133;
font-size: 14px;
}
.sub-enterprise-box .line {
height: 1px;
border-bottom: 1px dashed #dcdfe6;
box-sizing: border-box;
margin: 0 22px 0 12px;
}
</style>
......@@ -11,6 +11,7 @@
</keep-alive>
</div>
</div>
<expire-dialog :visible.sync="showExpireDialog" :expireData="expireData"></expire-dialog>
</div>
</template>
......@@ -21,10 +22,12 @@ import errorMsg from '@/common/js/error.js';
import MainMenu from './main-menu.vue';
import AsideMenu from './aside-menu.vue';
import BreadMenu from './bread-menu.vue';
import filters from '@/filters/index.js';
import ExpireDialog from './components/expire-dialog.vue';
let provideData = { layoutVm: {} };
export default {
name: 'DmHbLayout',
components: { Notice, MainMenu, AsideMenu, BreadMenu },
components: { Notice, MainMenu, AsideMenu, BreadMenu, ExpireDialog },
provide: () => provideData,
props: {
// 菜单树数据
......@@ -52,7 +55,10 @@ export default {
fullLoading: {
visible: false,
timer: null
}
},
// 接口到期弹窗
showExpireDialog: false,
expireData: {}
};
},
watch: {
......@@ -75,8 +81,29 @@ export default {
this.enterpriseId = JSON.parse(sessionStorage.getItem('userInfos') || '{}').enterpriseId;
this.$on('command', this.onCommand);
this.getEnterpriseSecret();
this.getEnterpriseOverdue();
},
methods: {
getEnterpriseOverdue() {
let para = {
wxEnterpriseId: JSON.parse(sessionStorage.getItem('userInfos')).wxEnterpriseId
};
getRequest('/haoban-manage3-web/qywx-fee-wxEnterprise-detail', para).then(res => {
const { code, result } = res.data || {};
if (code != 0) {
errorMsg.errorMsg(res.data);
return;
}
if (!result) return;
// result.interceptTime = 1660319999000;
let last = sessionStorage.getItem('permission-interceptor-time');
if (filters.timeStampMode(last) == 0) return;
result.interceptTimeNew = filters.timeStampMode(result.interceptTime);
if (result.interceptTimeNew < 0) return;
this.expireData = result;
this.showExpireDialog = true;
});
},
getEnterpriseSecret() {
if (this.$route.path == '/enterpriseSet') return;
getRequest('/haoban-manage3-web/is-wx-enterprise-secret-set', {}).then(res => {
......
......@@ -97,7 +97,20 @@ const timeStampToYmd = function(data) {
let newMonth = month < 10 ? '0' + month : month;
return `${date.getFullYear()}-${newMonth}-${day}`;
};
/**
* 时间戳---> 年-月-日
* @param timestamp
*/
const timeStampToYmd3 = function(data) {
if (!data) {
return;
}
let date = new Date(data);
let month = date.getMonth() + 1;
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
let newMonth = month < 10 ? '0' + month : month;
return `${date.getFullYear()}${newMonth}${day}日`;
};
/**
* 时间戳---> 年-月-日
* @param timestamp
......@@ -154,7 +167,34 @@ const timeStampSpace = function(date) {
// let seconds = Math.round(leave3 / 1000);
return `${days}${hours}小时${minutes}分`;
};
// 时间戳转化为明后天系列
const timeStampMode = function(time) {
if (!isNaN(time)) time = Number(time);
let now = new Date(); // 当前时间
console.log(now);
let today = new Date(`${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()} 23:59:59`).getTime(); // 今天
let yesterday = new Date(`${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate() - 1} 23:59:59`).getTime(); // 昨天
let tomorrow = new Date(`${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate() + 1} 23:59:59`).getTime(); // 明天
let dayAfterTomorrow = new Date(`${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate() + 2} 23:59:59`).getTime(); // 后天
console.log((time - today) / (24 * 60 * 60 * 1000));
if (time <= today && time > yesterday) {
// 今天
return 0;
} else if (time > today && time <= tomorrow) {
// 明天
return 1;
} else if (time > tomorrow && time <= dayAfterTomorrow) {
// 后天
return 2;
} else if (time > dayAfterTomorrow) {
// 未来时间
let sub = parseInt((time - today) / (24 * 60 * 60 * 1000)) + 1;
return sub;
} else if (time <= yesterday) {
// 昨天以前
return -1;
}
};
/**
* 手机号格式化
* @param {String} phone
......@@ -217,6 +257,8 @@ export default {
formatTimeYmdHms,
formatPhoneNum,
timeStampToYmd2,
timeStampToYmd3,
timeStampMode,
formatName,
timeStampSpace,
formatTime,
......
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