Commit 0fa98251 by caoyanzhi

update: dist

parent d537cbf0
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.69.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.04936650bcfde289fbf53e89ae9133c1.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script>(function() { <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.69.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.64e19c47d0b09855c89daf6fd0fb2e6a.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script>(function() {
var src = '/component/static/import-component.js?timestrap='+ new Date().getTime(); var src = '/component/static/import-component.js?timestrap='+ new Date().getTime();
var host = window.location.host; var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host; host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
document.write('<script src="//'+ host + src +'"><\/script>') document.write('<script src="//'+ host + src +'"><\/script>')
})()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.6b676c4bf7fde9488829.js></script><script type=text/javascript src=./static/js/vendor.06dddcebe00088992b67.js></script><script type=text/javascript src=./static/js/app.f10ee8822f826e6497ff.js></script></body></html> })()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.501f21eaa2a268518706.js></script><script type=text/javascript src=./static/js/vendor.06dddcebe00088992b67.js></script><script type=text/javascript src=./static/js/app.17b69f07a3a7a9149337.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10,28],{"/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 function(t){return e.toInput(t,e.searchSelect)}.apply(null,arguments)}},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","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("Gex3")},"data-v-2a64bdc8",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},Gex3:function(e,t){},QtFz:function(e,t){},d6vV:function(e,t){},o1sq:function(e,t){},zeGv:function(e,t){}}); webpackJsonp([10,28],{"/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","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("Gex3")},"data-v-2a64bdc8",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},Gex3: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 \ No newline at end of file
webpackJsonp([11],{NebN:function(t,e){},QJEo:function(t,e){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"},Xevq:function(t,e){},aQ8o:function(t,e){},jNLg:function(t,e,a){"use strict";var i=a("5i7M"),s=a("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,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),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()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("Xevq")},"data-v-2e746f7c",null);e.a=r.exports},kX6v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),s=a("ApSX"),n=a("jNLg"),o=a("rbYK"),r=a("P9l9"),l=a("Ch4/"),c=a("Q0Ca"),d={name:"activeDetail",data:function(){return{navpath:[{name:"好办使用详情",path:"/enterpriseUseData?brandId="+this.$route.query.brandId},{name:"登录人员明细",path:""}],selectTendDay:"",activeName:"first",selectStartDay:"",endDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],charData:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],sortColumn:"",sortType:"",addShow:!1,loadingBtn:!1,selectRadio:0,tabActive:"1",storeId:""}},computed:{},methods:{changeTableDate:function(){this.getTableList()},changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},checkGroupIds:function(t){this.groupIds=t,this.storeId="",this.getTableList()},handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,this.selectRadio=0,this.tableData=[],this.getTableList()},sortChangeLogin:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",this.getTableList()},sortChange:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",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,startDate:t.selectEndDay,endDate:t.selectEndDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:t.storeId,loginStatus:"first"==t.activeName?1:"0",selectType:t.selectRadio};Object(r.b)("/haoban-manage3-web/web/export-login-detail-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return l.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=("first"==t.activeName?"登录明细":"未登录明细")+"报表.csv",s=document.createElement("a");s.download=i,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()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,datesType:e.tabActive,startDate:1==e.tabActive?e.selectStartDay:e.selectTendDay,endDate:1==e.tabActive?e.endDay:e.selectTendDay};Object(r.a)("/haoban-manage3-web/web/total-login-data",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.bizDates=1==e.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),e.charData=a.result.result||[],!1;l.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.selectEndDay,endDate:e.selectEndDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:e.storeId,loginStatus:"first"==e.activeName?1:"0",sortColumn:e.sortColumn,sortType:e.sortType,pageSize:e.pageSize,currentPage:e.currentPage};Object(r.e)("/haoban-manage3-web/web/login-detail-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;l.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=c.a.timeStampToYmd((new Date).getTime()-6048e5),t.endDay=c.a.timeStampToYmd((new Date).getTime()-864e5),t.selectEndDay=t.$route.query.selectTableDay?t.$route.query.selectTableDay:c.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTendDay=c.a.timeStampToYmd((new Date).getTime()-864e5),t.storeId=t.$route.query.storeId?t.$route.query.storeId:"",t.$nextTick(function(){t.getTableList(),t.getTendData()}),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,gicSelectGroupMult:s.a,dayLoginChart:n.a,timeLoginChart:o.a}},u={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content-right"},[i("div",{staticClass:"flex flex-space-between"},[i("div",{staticClass:"font-16 color-303133"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-600 cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-600 day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("2")}}},[t._v("日时段访问趋势")])])]),t._v(" "),t._m(0)]),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(e){t.selectTendDay=e},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-body m-t-20"},[i("div",{staticClass:"flex flex-space-between"},[t.charData.length?i("day-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("time-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"time-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"登录人员",name:"first"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"未登录人员",name:"second"}})],1)],1),t._v(" "),i("div",{staticClass:"table-search"},[i("div",{staticClass:"flex flex-space-between"},[i("div",[i("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.selectEndDay,callback:function(e){t.selectEndDay=e},expression:"selectEndDay"}}),i("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),i("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,"+t._s("second"==t.activeName?"未":"")+"登录人员有 "+t._s(t.total)+" 人,名单如下:")])],1),t._v(" "),i("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},["first"==t.activeName?i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChangeLogin,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}],null,!1,408316756)}),t._v(" "),i("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||"--"))]}}],null,!1,874500869)}),t._v(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"最后登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))])]}}],null,!1,584422710)}),t._v(" "),i("el-table-column",{attrs:{prop:"loginTimes",label:"登录次数",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.loginTimes||"0")+"\n ")]}}],null,!1,1477346088)}),t._v(" "),i("el-table-column",{attrs:{prop:"avgVisitTime",label:"平均访问时长",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.avgVisitTime))+" ")]}}],null,!1,1883207981)})],1)],1):i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"上次登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])})],1)],1),t._v(" "),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right m-t-24"},[i("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:"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 h=a("VU/8")(d,u,!1,function(t){a("aQ8o")},"data-v-205a624e",null);e.default=h.exports},rbYK:function(t,e,a){"use strict";var i=a("5i7M"),s=a("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,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),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()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("NebN")},"data-v-9eaa33dc",null);e.a=r.exports}}); webpackJsonp([11],{NebN:function(t,e){},QJEo:function(t,e){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"},Xevq:function(t,e){},aQ8o:function(t,e){},jNLg:function(t,e,a){"use strict";var i=a("5i7M"),s=a("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,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),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()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("Xevq")},"data-v-2e746f7c",null);e.a=r.exports},kX6v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),s=a("ApSX"),n=a("jNLg"),o=a("rbYK"),r=a("P9l9"),l=a("Ch4/"),c=a("Q0Ca"),d={name:"activeDetail",data:function(){return{navpath:[{name:"好办使用详情",path:"/enterpriseUseData?brandId="+this.$route.query.brandId},{name:"登录人员明细",path:""}],selectTendDay:"",activeName:"first",selectStartDay:"",endDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],charData:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],sortColumn:"",sortType:"",addShow:!1,loadingBtn:!1,selectRadio:0,tabActive:"1",storeId:""}},computed:{},methods:{changeTableDate:function(){this.getTableList()},changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},checkGroupIds:function(t){this.groupIds=t,this.storeId="",this.getTableList()},handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,this.selectRadio=0,this.tableData=[],this.getTableList()},sortChangeLogin:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",this.getTableList()},sortChange:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",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,startDate:t.selectEndDay,endDate:t.selectEndDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:t.storeId,loginStatus:"first"==t.activeName?1:"0",selectType:t.selectRadio};Object(r.b)("/haoban-manage3-web/web/export-login-detail-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return l.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=("first"==t.activeName?"登录明细":"未登录明细")+"报表.csv",s=document.createElement("a");s.download=i,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()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,datesType:e.tabActive,startDate:1==e.tabActive?e.selectStartDay:e.selectTendDay,endDate:1==e.tabActive?e.endDay:e.selectTendDay};Object(r.a)("/haoban-manage3-web/web/total-login-data",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.bizDates=1==e.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),e.charData=a.result.result||[],!1;l.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.selectEndDay,endDate:e.selectEndDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:e.storeId,loginStatus:"first"==e.activeName?1:"0",sortColumn:e.sortColumn,sortType:e.sortType,pageSize:e.pageSize,currentPage:e.currentPage};Object(r.e)("/haoban-manage3-web/web/login-detail-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;l.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=c.a.timeStampToYmd((new Date).getTime()-6048e5),t.endDay=c.a.timeStampToYmd((new Date).getTime()-864e5),t.selectEndDay=t.$route.query.selectTableDay?t.$route.query.selectTableDay:c.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTendDay=c.a.timeStampToYmd((new Date).getTime()-864e5),t.storeId=t.$route.query.storeId?t.$route.query.storeId:"",t.$nextTick(function(){t.getTableList(),t.getTendData()}),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,gicSelectGroupMult:s.a,dayLoginChart:n.a,timeLoginChart:o.a}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content-right"},[i("div",{staticClass:"flex flex-space-between"},[i("div",{staticClass:"font-16 color-303133"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-600 cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-600 day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("2")}}},[t._v("日时段访问趋势")])])]),t._v(" "),t._m(0)]),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(e){t.selectTendDay=e},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-body m-t-20"},[i("div",{staticClass:"flex flex-space-between"},[t.charData.length?i("day-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("time-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"time-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"登录人员",name:"first"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"未登录人员",name:"second"}})],1)],1),t._v(" "),i("div",{staticClass:"table-search"},[i("div",{staticClass:"flex flex-space-between"},[i("div",[i("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.selectEndDay,callback:function(e){t.selectEndDay=e},expression:"selectEndDay"}}),i("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),i("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,"+t._s("second"==t.activeName?"未":"")+"登录人员有 "+t._s(t.total)+" 人,名单如下:")])],1),t._v(" "),i("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},["first"==t.activeName?i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChangeLogin,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"最后登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"loginTimes",label:"登录次数",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.loginTimes||"0")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"avgVisitTime",label:"平均访问时长",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.avgVisitTime))+" ")]}}])})],1)],1):i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"上次登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])})],1)],1),t._v(" "),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right m-t-24"},[i("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:"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 u=a("VU/8")(d,h,!1,function(t){a("aQ8o")},"data-v-205a624e",null);e.default=u.exports},rbYK:function(t,e,a){"use strict";var i=a("5i7M"),s=a("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,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),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()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("NebN")},"data-v-9eaa33dc",null);e.a=r.exports}});
\ No newline at end of file \ 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([13],{"+kZ0":function(e,t,a){"use strict";var r=a("3Xzz"),n=a("Qs+A"),o=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(o.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:n.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},"/wuU":function(e,t){},"9db3":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),n=a.n(r),o=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:o.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(n()(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:n()(t.formData.cardTemplateJson),sendRange:t.formData.sendRange,positionFlag:t.formData.positionFlag?1:0,positionNames:t.formData.positionNames.length?t.formData.positionNames.join(","):"",departmentJson:n()(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))]}}],null,!1,293362474)}),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()]}}],null,!1,59961390)}),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()]}}],null,!1,4037816032)}),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 ")]}}],null,!1,813772436)}),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("删除")])]}}],null,!1,2766142666)})],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.apply(null,arguments)}},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"),n=a.n(r),o=a("Xxa5"),i=a.n(o),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 n;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=a,0!==e.level){r.next=5;break}return r.abrupt("return",t(n.getGroup()));case 5:return r.next=7,n.getGroup(e,e.data,t);case 7:n.checkedKeys=n.departArr.length?n.departArr.map(function(e){return e.departmentId}):[],n.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,n={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",n).then(function(n){var o=n.data;if(1==o.errorCode)return o.result&&o.result.length&&o.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName,e.isLeaf=!e.hasSonNode}),e?(a(o.result),t.children||r.$set(t,"children",[]),t.children=o.result||[],r.$forceUpdate(),!1):(r.groupData=o.result||[],void r.initData());d.a.errorMsg(o)}).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(n()(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(n()(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,n=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",1==n.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==n.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("/wuU")},"data-v-1f7d80b0",null);t.a=f.exports}}); webpackJsonp([13],{"+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},"/wuU":function(e,t){},"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",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("/wuU")},"data-v-1f7d80b0",null);t.a=f.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([14],{"+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},"/wuU":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"),u={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()}},m={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))]}}],null,!1,293362474)}),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()]}}],null,!1,59961390)}),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()]}}],null,!1,3799369071)}),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 ")]}}],null,!1,813772436)}),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("删除")])]}}],null,!1,2024547077)})],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.apply(null,arguments)}},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 function(t){return e.toInput(t)}.apply(null,arguments)}},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 function(t){return e.toInput(t)}.apply(null,arguments)}},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")(u,m,!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()})}},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 n=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",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 m=a("VU/8")(d,u,!1,function(e){a("/wuU")},"data-v-1f7d80b0",null);t.a=m.exports}}); webpackJsonp([14],{"+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},"/wuU":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""}},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",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("/wuU")},"data-v-1f7d80b0",null);t.a=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([15],{"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 function(t){return e.toInput(t,e.searchInput)}.apply(null,arguments)}},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 function(t){return e.toInput(t,e.searchSelect)}.apply(null,arguments)}},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([15],{"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([16],{"/JwF":function(e,t){},"XD/l":function(e,t){},aGSg:function(e,t){},cXH0: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 function(t){return e.toInput(t,e.searchSelect)}.apply(null,arguments)}},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 function(t){return e.toInput(t,e.searchSelect)}.apply(null,arguments)}},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",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("/JwF")},"data-v-64335de6",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 function(t){return e.toInput(t,e.searchInput)}.apply(null,arguments)}},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([16],{"/JwF":function(e,t){},"XD/l":function(e,t){},aGSg:function(e,t){},cXH0: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",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("/JwF")},"data-v-64335de6",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([17],{"6S9C":function(e,t){},"8ZrH":function(e,t){},CNus: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},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("xmcr")},"data-v-0ae22dd6",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 function(t){return e.searchEnterFun(t,e.searchInput)}.apply(null,arguments)}},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 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 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("6S9C")},"data-v-6342901a",null);t.default=b.exports},xmcr:function(e,t){}}); webpackJsonp([17],{"6S9C":function(e,t){},"8ZrH":function(e,t){},CNus: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},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("xmcr")},"data-v-0ae22dd6",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 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 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("6S9C")},"data-v-6342901a",null);t.default=b.exports},xmcr:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([18],{Jty8:function(e,t){},Kz4e:function(e,t){},oLtF: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 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",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 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("oLtF")},"data-v-346b9ef1",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("Jty8")},"data-v-0576a380",null).exports,b=a("P9l9"),h=a("Ch4/"),g=a("3E4D"),_={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},enableDownloadCompleteData:{type:[Number,String],default:function(){return 0}}},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,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:"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:{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,createTimeStart:this.conditionObj.date[0],createTimeEnd:this.conditionObj.date[1],title:this.conditionObj.title};Object(b.b)("/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.e)("/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.e)("/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.e)("/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.a)("/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.a)("/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.total,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())}},mounted:function(){this.$route.query.ecmId?this.$emit("showTab","122","1221","12211"):this.$emit("showTab","121","1211"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},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"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{type:"primary",loading:e.loadingBtn,plain:""},on:{click:e.beforeExportExcel}},[e._v("导出")]),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 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 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 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 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:"逾期情况"},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._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(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},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.getPreviewData(t.$index,t.row)}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getTaskDetail(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("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("Kz4e")},"data-v-556addf0",null);t.default=k.exports}});
\ No newline at end of file
webpackJsonp([18],{Jty8:function(e,t){},Kz4e:function(e,t){},oLtF: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.apply(null,arguments)}}}),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 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",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 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.apply(null,arguments)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("oLtF")},"data-v-346b9ef1",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("Jty8")},"data-v-0576a380",null).exports,b=a("P9l9"),h=a("Ch4/"),g=a("3E4D"),_={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},enableDownloadCompleteData:{type:[Number,String],default:function(){return 0}}},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,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:"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:{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,createTimeStart:this.conditionObj.date[0],createTimeEnd:this.conditionObj.date[1],title:this.conditionObj.title};Object(b.b)("/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.e)("/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.e)("/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.e)("/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.a)("/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.a)("/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.total,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())}},mounted:function(){this.$route.query.ecmId?this.$emit("showTab","122","1221","12211"):this.$emit("showTab","121","1211"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},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"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{type:"primary",loading:e.loadingBtn,plain:""},on:{click:e.beforeExportExcel}},[e._v("导出")]),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 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 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 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 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:"逾期情况"},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._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(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},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.getPreviewData(t.$index,t.row)}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getTaskDetail(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("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("Kz4e")},"data-v-556addf0",null);t.default=k.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],{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 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 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("eQgm")},"data-v-e5d883de",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},eQgm:function(t,e){}});
\ No newline at end of file
webpackJsonp([20],{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 function(e){return t.searchEnterFun(e,t.searchInput)}.apply(null,arguments)}},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 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 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("eQgm")},"data-v-e5d883de",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},eQgm:function(t,e){}});
\ No newline at end of file
webpackJsonp([21],{"4N0h":function(e,t){},Ghuu:function(e,t){},YlaI: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("YlaI")},"data-v-5684521e",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([21],{"4N0h":function(e,t){},Ghuu:function(e,t){},YlaI: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 function(t){return e.toInput(t,e.conditionObj.searchInput)}.apply(null,arguments)}},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 function(t){return e.toInput(t,e.conditionObj.searchInput)}.apply(null,arguments)}},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("YlaI")},"data-v-5684521e",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 function(t){return e.toInput(t,e.searchInput)}.apply(null,arguments)}},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],{JwJ7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("fZjL"),i=a.n(s),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,activeId:"2",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.e)("/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,s={storeId:a.conditionObj.storeId,taskId:t.taskId,clerkId:t.clerkId};a.previewVisible=!0,Object(r.e)("/haoban-app-daily-three-web/daily/get-daily-report-detail",s).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,!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})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,chooseAll:t.selectRadio};Object(r.e)("/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,s={taskId:t.taskId};Object(r.a)("/haoban-app-daily-three-web/daily/delete-task-items",s).then(function(t){var s=t.data;if(1==s.errorCode)return d.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(s)}).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.a)("/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(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11","111"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},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"},[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",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 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 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(" "),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"}}),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("YAm7")},"data-v-0d8dd106",null);t.default=f.exports},YAm7:function(e,t){},oLtF:function(e,t){},"swl+":function(e,t,a){"use strict";var s=a("mvHQ"),i=a.n(s),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 s=a%864e5,i=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(i/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(i()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(i()(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.apply(null,arguments)}}}),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,s){return a("div",{key:s+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont 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",s!=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",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 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.apply(null,arguments)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("oLtF")},"data-v-346b9ef1",null);t.a=c.exports}}); webpackJsonp([23],{JwJ7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("fZjL"),i=a.n(s),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,activeId:"2",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.e)("/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,s={storeId:a.conditionObj.storeId,taskId:t.taskId,clerkId:t.clerkId};a.previewVisible=!0,Object(r.e)("/haoban-app-daily-three-web/daily/get-daily-report-detail",s).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,!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})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,chooseAll:t.selectRadio};Object(r.e)("/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,s={taskId:t.taskId};Object(r.a)("/haoban-app-daily-three-web/daily/delete-task-items",s).then(function(t){var s=t.data;if(1==s.errorCode)return d.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(s)}).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.a)("/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(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11","111"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},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"},[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",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 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 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(" "),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"}}),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("YAm7")},"data-v-0d8dd106",null);t.default=f.exports},YAm7:function(e,t){},oLtF:function(e,t){},"swl+":function(e,t,a){"use strict";var s=a("mvHQ"),i=a.n(s),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 s=a%864e5,i=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(i/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(i()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(i()(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,s){return a("div",{key:s+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont 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",s!=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",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 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("oLtF")},"data-v-346b9ef1",null);t.a=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([26],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.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){}}); webpackJsonp([25],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.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 \ No newline at end of file
webpackJsonp([25],{"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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"},FZoc:function(e,t){},"T+/8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),o=r.n(n),s=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:o()(t)}),document.getElementById("qrcode").title=""},refreshCode:Object(s.a)(function(){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear()),this.getQrcode(),this.expiredFlag=!1},500),toIndex:Object(s.a)(function(){this.toLogin()},500),toLogin:Object(s.a)(function(){var e=this,t={qrcode:e.qrcodeNum||"debug",enterpriseId:e.enterpriseId,userId:e.userId};Object(l.e)("/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",o()(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.e)("/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.e)("/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(),localStorage.getItem("userInfos")&&localStorage.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 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("FZoc")},"data-v-d93a52b4",null);t.default=g.exports}});
\ No newline at end of file
webpackJsonp([26],{"4XLP":function(e,t){},hi5g: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{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:!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.e)("/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.total,!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",{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:"450","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 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("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("hi5g")},"data-v-ac2cedcc",null).exports,p=a("3E4D"),c={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:"",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.e)("/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.e)("/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"),sessionStorage.setItem("memberGroupSet","second"),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("4XLP")},"data-v-6ea145c1",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([27],{"4XLP":function(e,t){},hi5g: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{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:!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.e)("/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.total,!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",{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 function(t){return e.toInput(t,e.searchInput)}.apply(null,arguments)}},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:"450","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 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("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("hi5g")},"data-v-ac2cedcc",null).exports,p=a("3E4D"),c={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:"",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.e)("/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.e)("/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"),sessionStorage.setItem("memberGroupSet","second"),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("4XLP")},"data-v-6ea145c1",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([31],{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.e)("/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),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var p=e("VU/8")(u,l,!1,function(t){e("Jxvo")},"data-v-4e1561d8",null);a.default=p.exports},Jxvo:function(t,a){},P1JT:function(t,a){}}); webpackJsonp([27],{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.e)("/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("dLTz")},"data-v-81187592",null);a.default=p.exports},P1JT:function(t,a){},dLTz:function(t,a){}});
\ No newline at end of file \ 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],{AVFt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("PI0u"),r=n("Ch4/"),o=n("P9l9"),a={name:"login",data:function(){return{active:0,enterpriseId:"",enterpriseList:[],numberCode:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},toIndex:Object(i.a)(function(){this.toLogin()},500),toLogin:function(){var t=window.location.origin+"/haoban-manage3-web/gic-login?wxEnterpriseId="+this.enterpriseList[this.active].wxEnterpriseId+"&random="+this.$route.query.random;window.location.href=t},changeEnterprise:function(t){this.active=t},getList:function(){var t=this;Object(o.a)("/haoban-manage3-web/login-wx-enterprise-list?random="+this.$route.query.random,{}).then(function(e){var n=e.data;if(1==n.errorCode)return t.enterpriseList=n.result,1===n.result.length?void t.toLogin():void 0;r.a.errorMsg(n)}).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(),localStorage.getItem("userInfos")&&localStorage.removeItem("userInfos")},components:{}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login-wrap"},[n("section",[t._m(0),t._v(" "),n("div",{staticClass:"login-body"},[n("i",{staticClass:"iconfont iconpre",on:{click:function(e){return t.arrowClick("left")}}}),t._v(" "),n("i",{staticClass:"iconfont iconnext",on:{click:function(e){return t.arrowClick("right")}}}),t._v(" "),n("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 n("el-carousel-item",{key:e.wxEnterpriseId},[n("div",{staticClass:"info flex"},[n("p",{staticClass:"info_img"},[n("img",{attrs:{src:e.corpSquareLogoUrl,alt:""}})]),t._v(" "),n("p",{staticClass:"info_name"},[t._v(t._s(e.corpName))])])])}),1),t._v(" "),n("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:n("wdS9"),alt:"logo"}})])}]};var c=n("VU/8")(a,s,!1,function(t){n("O9QU")},"data-v-52a2a42a",null);e.default=c.exports},O9QU:function(t,e){},wdS9:function(t,e,n){t.exports=n.p+"static/img/logo-text.3ba0f9e.png"}});
\ No newline at end of file
webpackJsonp([30],{Ntl3:function(t,e){},V2mO:function(t,e){},owWS:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Gu7T"),n=a.n(i),s=a("bzW+"),r=a("Qie6"),o=a("Z8ln"),c=a("NKg7"),d=a("Ch4/"),h=a("P9l9"),l=a("0xDb"),u={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,e){this.activeBrand=t,this.activeGroup=e,sessionStorage.setItem("userInfoBrandId",t),this.getInfo(t),this.getExpired()},getInfo:function(t){var e=this;Object(h.a)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.enableDownloadCompleteData=a.result.enableDownloadCompleteData}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(h.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?d.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showTab:function(t){var e=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(n()(this.defaultNavpath)),a.length&&a.map(function(t){e.navpath[e.navpath.length-1].path="21211"===t?"/grStoreList?ecmPlanId="+e.$route.query.ecmPlanId:"12211"===t?"/taskViewDetail?ecmId="+e.$route.query.ecmId:e.navFrontPath[t],e.navpath.push({name:e.navName[t],path:""})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.activeBrand=sessionStorage.getItem("userInfoBrandId"),this.activeBrand&&this.getExpired(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:s.a,commonDetailLeft:r.a,vueOfficeHeader:c.a,expiredDialog:o.a,errMsg:d.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap salesleads-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("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),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"}},[t.activeBrand?a("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?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var b=a("VU/8")(u,p,!1,function(t){a("V2mO"),a("Ntl3")},"data-v-523e21dc",null);e.default=b.exports}}); webpackJsonp([31],{Ntl3:function(t,e){},V2mO:function(t,e){},owWS:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Gu7T"),n=a.n(i),s=a("bzW+"),r=a("Qie6"),o=a("Z8ln"),c=a("NKg7"),d=a("Ch4/"),h=a("P9l9"),l=a("0xDb"),u={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,e){this.activeBrand=t,this.activeGroup=e,sessionStorage.setItem("userInfoBrandId",t),this.getInfo(t),this.getExpired()},getInfo:function(t){var e=this;Object(h.a)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.enableDownloadCompleteData=a.result.enableDownloadCompleteData}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(h.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?d.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showTab:function(t){var e=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(n()(this.defaultNavpath)),a.length&&a.map(function(t){e.navpath[e.navpath.length-1].path="21211"===t?"/grStoreList?ecmPlanId="+e.$route.query.ecmPlanId:"12211"===t?"/taskViewDetail?ecmId="+e.$route.query.ecmId:e.navFrontPath[t],e.navpath.push({name:e.navName[t],path:""})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.activeBrand=sessionStorage.getItem("userInfoBrandId"),this.activeBrand&&this.getExpired(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:s.a,commonDetailLeft:r.a,vueOfficeHeader:c.a,expiredDialog:o.a,errMsg:d.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap salesleads-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("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),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"}},[t.activeBrand?a("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?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var b=a("VU/8")(u,p,!1,function(t){a("V2mO"),a("Ntl3")},"data-v-523e21dc",null);e.default=b.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([33],{cuwz:function(t,e){},nfpZ:function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("mvHQ"),r=n.n(o),i=n("P9l9"),a=n("Ch4/"),l=n("PI0u"),s={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(l.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(i.e)("/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;a.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 function(e){return t.toInput(e,t.conditionObj.searchInput)}.apply(null,arguments)}},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")(s,c,!1,function(t){n("nfpZ")},"data-v-48fb59e7",null).exports; webpackJsonp([33],{cuwz:function(t,e){},nfpZ:function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("mvHQ"),r=n.n(o),i=n("P9l9"),a=n("Ch4/"),l=n("PI0u"),s={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(l.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(i.e)("/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;a.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")(s,c,!1,function(t){n("nfpZ")},"data-v-48fb59e7",null).exports;
/**! /**!
* Sortable 1.14.0 * Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org> * @author RubaXa <trash@rubaxa.org>
......
webpackJsonp([35],{"20P3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),o=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.a)("/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:s.a,setDepartment:o.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{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},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.getBrandData(),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()},getBrandData:function(){var t=this;Object(l.e)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(e){var a=e.data;1!=a.errorCode?n.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindist:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};Object(l.a)("/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.a)("/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})})}},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:s.a,setDepartment:o.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("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("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(" "),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?a("el-button",{attrs:{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 function(e){return t.toInput(e,t.searchInput)}.apply(null,arguments)}},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.enterpriseId,callback:function(e){t.enterpriseId=e},expression:"enterpriseId"}},[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("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()]}}])})],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("uLZh")},"data-v-4da51f8b",null);e.default=f.exports},"4/8+":function(t,e){},uLZh:function(t,e){}}); webpackJsonp([34],{"20P3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),o=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.a)("/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:s.a,setDepartment:o.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{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},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.getBrandData(),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()},getBrandData:function(){var t=this;Object(l.e)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(e){var a=e.data;1!=a.errorCode?n.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindist:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};Object(l.a)("/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.a)("/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})})}},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:s.a,setDepartment:o.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("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("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(" "),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?a("el-button",{attrs:{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.enterpriseId,callback:function(e){t.enterpriseId=e},expression:"enterpriseId"}},[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("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()]}}])})],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("uLZh")},"data-v-4da51f8b",null);e.default=f.exports},"4/8+":function(t,e){},uLZh:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([34],{"56+N":function(t,e){},AVFt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("PI0u"),r=n("Ch4/"),o=n("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(i.a)(function(){this.toLogin()},500),toLogin:function(){var t=window.location.origin+"/haoban-manage3-web/gic-login?wxEnterpriseId="+this.enterpriseList[this.active].wxEnterpriseId+"&random="+this.$route.query.random;window.location.href=t},changeEnterprise:function(t){this.active=t},getList:function(){var t=this;Object(o.a)("/haoban-manage3-web/login-wx-enterprise-list?random="+this.$route.query.random,{}).then(function(e){var n=e.data;if(1==n.errorCode)return t.enterpriseList=n.result,1===n.result.length?void t.toLogin():void 0;r.a.errorMsg(n)}).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(),localStorage.getItem("userInfos")&&localStorage.removeItem("userInfos")},components:{}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login-wrap"},[n("section",[t._m(0),t._v(" "),n("div",{staticClass:"login-body"},[n("i",{staticClass:"iconfont iconpre",on:{click:function(e){return t.arrowClick("left")}}}),t._v(" "),n("i",{staticClass:"iconfont iconnext",on:{click:function(e){return t.arrowClick("right")}}}),t._v(" "),n("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 n("el-carousel-item",{key:e.wxEnterpriseId},[n("div",{staticClass:"info flex"},[n("p",{staticClass:"info_img"},[n("img",{attrs:{src:e.corpSquareLogoUrl,alt:""}})]),t._v(" "),n("p",{staticClass:"info_name"},[t._v(t._s(e.corpName))])])])}),1),t._v(" "),n("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:n("wdS9"),alt:"logo"}})])}]};var c=n("VU/8")(s,a,!1,function(t){n("56+N")},"data-v-3c6b2e1d",null);e.default=c.exports},wdS9:function(t,e,n){t.exports=n.p+"static/img/logo-text.3ba0f9e.png"}});
\ No newline at end of file
webpackJsonp([35],{"/FnJ":function(e,t){},"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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"},"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.e)("/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.e)("/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.e)("/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(),localStorage.getItem("userInfos")&&localStorage.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 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("/FnJ")},"data-v-388644e1",null);t.default=g.exports}});
\ No newline at end of file
webpackJsonp([36],{"7K6H":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.apply(null,arguments)}},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 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["-"!=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("7K6H")},"data-v-52543156",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){}}); webpackJsonp([36],{"7K6H":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 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["-"!=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("7K6H")},"data-v-52543156",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 \ No newline at end of file
webpackJsonp([38],{"1jP6":function(e,t){},"8Bu6":function(e,t){},H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),s=a.n(r),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,r=t.minDate;e.choiceDateCopy=[r.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,r=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>r||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"}),r=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",s=document.createElement("a");s.download=r,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})})},toInput:Object(l.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(s()(this.storesCopy)));var a=JSON.parse(s()(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(s()(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(s()(a.result.list))||[],e.storesCopy=JSON.parse(s()(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 function(t){return e.toInput(t,e.searchSelect)}.apply(null,arguments)}},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}}); webpackJsonp([38],{"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 \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([44],{"HPJ+":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"),i=a("Ggl+"),l=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,activeGroup:this.activeGroupId,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(l.a)("/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.total);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())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1","11"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{qrcodeDialog:s.a,gicSelectGroup:i.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 function(e){return t.searchStore(e)}.apply(null,arguments)},clear:function(e){return t.clearInput.apply(null,arguments)}},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("HPJ+")},"data-v-f5108f68",null);e.default=p.exports}}); webpackJsonp([44],{"HPJ+":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"),i=a("Ggl+"),l=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,activeGroup:this.activeGroupId,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(l.a)("/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.total);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())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1","11"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{qrcodeDialog:s.a,gicSelectGroup:i.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("HPJ+")},"data-v-f5108f68",null);e.default=p.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([47],{Wj0m:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("Ggl+"),s=a("LRn8"),l=a("P9l9"),r=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={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,actictiveGroup:this.activeGroupId,showDialog:!1,activeId:"1",conditionObj:{tableType:"1",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},selectRadio:2,loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){var e=this;this.selectRadio=t,console.log(this.selectRadio),this.tableRefresh=!this.tableRefresh,1==t||0==t?this.$nextTick(function(){e.$refs.multipleTable.toggleAllSelection()}):2==t&&this.$refs.multipleTable.clearSelection()},toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t?this.$store.dispatch("changeSales",t):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t,!t.length&&(this.selectRadio=2)},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=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)});var o={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==e.selectRadio?"":e.multipleSelection.map(function(t){return t.storeId}).join(","),storeType:e.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(l.e)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).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:function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)});var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(t){return t.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:this.conditionObj.dateRange?this.conditionObj.dateRange[0]:"",endDate:this.conditionObj.dateRange?this.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand,selectType:2==t.selectRadio&&t.multipleSelection.length?0:this.selectRadio};Object(l.b)("/haoban-app-tel-task-three-web/task/export-store-task-list",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"}),o=(t.tableData[0]?t.tableData[0].storeName:"")+"门店任务报表.xls",n=document.createElement("a");n.download=o,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})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList(this.selectRadio)},handleCurrentChange:function(t){this.currentPage=t,this.getTableList(this.selectRadio)},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;console.log(this.selectRadio);var a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(t){o.push(t.storeGroupId)});var n={search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(l.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo.total,1==t?e.$nextTick(function(){e.$refs.multipleTable.toggleAllSelection()}):e.selectRadio=2),d.a.errorMsg(n)}).catch(function(t){a.loading=!1,a.$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(){var t=this;document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,t.$emit("showTab",121),this.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:i.a,multipleDel:s.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-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(e){return function(e){return t.toInput(e,t.conditionObj.searchInput)}.apply(null,arguments)}},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",staticStyle:{"min-width":"213px !important"},attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[t._v("任务创建时间:")]),t._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: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"}],key:t.tableRefresh,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","class-name":1==t.selectRadio?"cell-disabled":"font-size-zero"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._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 icongengduo"})]),t._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:t.handleCommand},model:{value:t.selectRadio,callback:function(e){t.selectRadio=e},expression:"selectRadio"}},[t._v("选择当页")])],1),t._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:t.handleCommand},model:{value:t.selectRadio,callback:function(e){t.selectRadio=e},expression:"selectRadio"}},[t._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(e){return[t._v(t._s(" "))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称","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("p",{staticStyle:{color:"#909399"}},[t._v(t._s(e.row.storeCode))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"storeGroupName",label:"门店分组"}}),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:{prop:"",label:"删除状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return["-"!=e.row.delStatusDesc?a("span",{staticClass:"state-point state-point-error"},[t._v(t._s(e.row.delStatusDesc))]):a("span",[t._v(t._s(e.row.delStatusDesc))])]}}])}),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,showTip:!0},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 flex flex-align-start",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("\n 1.此处仅统计近一年内的数据"),e("br"),this._v("\n 2.门店下具体某条话务任务的完成状态每天更新一次;下方列表中任务完成数据统计也为每天统计更新一次,非实时刷新。\n ")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("e7ho")},"data-v-d73f1658",null);e.default=h.exports},e7ho:function(t,e){}});
\ No newline at end of file
webpackJsonp([47],{Wj0m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("Ggl+"),s=a("LRn8"),l=a("P9l9"),r=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={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,actictiveGroup:this.activeGroupId,showDialog:!1,activeId:"1",conditionObj:{tableType:"1",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},selectRadio:2,loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1}},computed:{},methods:{checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,console.log(this.selectRadio),this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),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,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.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-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this;e.loadingBtn=!0;var t=[];e.conditionObj.storeGroup.forEach(function(e){t.push(e.storeGroupId)});var a={search:e.conditionObj.searchInput||"",storeGroupIds:t.join(",")||"",storeIds:1==e.selectRadio?"":e.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:e.conditionObj.storeType||"",startDate:this.conditionObj.dateRange?this.conditionObj.dateRange[0]:"",endDate:this.conditionObj.dateRange?this.conditionObj.dateRange[1]:"",enterpriseId:e.activeBrand,selectType:2==e.selectRadio&&e.multipleSelection.length?0:this.selectRadio};Object(l.b)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(t){if(e.loadingBtn=!1,!t.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.xls",n=document.createElement("a");n.download=o,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("taskDetail?storeId="+t.storeId)},getTableList:function(e){var t=this;console.log(this.selectRadio);var a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(l.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo.total,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),d.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},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,e.$emit("showTab",121),this.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={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"},[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 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("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",staticStyle:{"min-width":"213px !important"},attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),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.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:{type:"primary",loading:e.loadingBtn},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 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[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeGroupName",label:"门店分组"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),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.completedCount))]}}])}),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.completedRate))]}}])}),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.noCompletedCount))]}}])}),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.overdueCount))]}}])}),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},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 h=a("VU/8")(u,p,!1,function(e){a("e7ho")},"data-v-d73f1658",null);t.default=h.exports},e7ho:function(e,t){}});
\ No newline at end of file
webpackJsonp([5,66,67,68,73,77],{"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},"3b2J":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 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("GUEL")},"data-v-5b202a63",null);t.default=s.exports},FQZX:function(e,t){},GUEL:function(e,t){},Isrn:function(e,t,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(e){console.log(e)},toInput:function(e){var t="",i={};return t=a.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.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(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=a.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),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 e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){return e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return i=t,e.toInput(i);var i}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(n,s,!1,function(e){i("b7y3")},"data-v-e569320a",null);t.a=l.exports},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("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"),b=i("fPyK"),_=i("fZjL"),C=i.n(_),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){C()("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("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(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)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},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(O.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={status:1,enterpriseId:t.enterpriseId,templateContent:d()(e),title:t.templateObj.title,description:t.templateObj.description,storeType:t.templateObj.storeType,memory:[]};Object(F.e)("/haoban-app-daily-three-web/daily/save-define-template",i).then(function(e){var i=e.data;t.loadingBtn=!1,1!=i.errorCode?L.a.errorMsg(i):M.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(F.e)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){JSON.parse(localStorage.getItem("userInfos")).enterpriseId;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)}L.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(F.e)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?L.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(F.e)("/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));L.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(F.e)("/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();L.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:v.default,selectCom:f.default,dateRangeCom:g.default,inputCom:y.default,blockCom:I.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"}},V={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 j=i("VU/8")(T,V,!1,function(e){i("3b2J")},"data-v-216803fb",null);t.default=j.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},Q9Uw:function(e,t){},Tvq6:function(e,t){},Y7wY:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja7J0LcJ1lmcebS3NOEnJrE5I2aUJrLyksrYBctlDxxqAdEWVwhV1kvY84OoPCLO7gwojrrO64qzM64nhDO7jVtVNXYdLtAiJia5GFGhCalrVt2iRNmrQnl57kpLn5Sx58ef2+c05OCt00J///ZDJfvvOd93ve5/0//+d53u8kyemNnVwgCPMAuXKBIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrgviuiCI64IgrguCuC4I4rogiOuCIK4LgrguCOK6IIjrgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogrguCuC4IWYL8WbdgYGBgZGRkYmJCi5HdyMnJWbhwYUlJyawZMLv/VyMWi42Pj4sH86iQyM2tqKiYd7qOokP0/Py8aLQgZ0GOeBBGYvjUyMhoQUHBOcXFOblzu+CcGB8/GY+fOnWKdZ8VdZ9N91G68F1ET4OxsTG+ZwHRJ0uI3Fwm4tZ9fnHdanQRPQ3GxyeMJVlSsk9NZLZ6M+3DCPOmVZALBHFdEMR1QRDXBUFcF4RZRr5ckDXo7Ooc6B8oLi4sKiwuKS3Jy9PiiutZiory8qHBwf6Bgbb2dn4sLiouKSmpqqosLCyWc8T1rEIkEl2+fIUdD6DwA/2xWC9iHymIVFRUiPTienaihCKmpHTp0rrh4cTx4z3d3T2QHqWvrq6urKwS14XsFHsYzxcy39nZdeDggfb2djSeM+L6HEMikeg5HrPPSDXU/8X6tR5u8388S15taz9aubgiGo2eCW8MDcVHR8fGRscGh+LuZG5efnFREQcrVixvbu4fPjVMQU9VM99KmjnPdUf0uQKsxea62iWvyWhWl8fjNKVxSJzhu0pLS+dh7T7nuW5EX1a3NDf0YcCAoJ4lrzqbX8WUR2OT6I31nnAnqcUnGVxUhIQXFBRQugTe1dHRZvsz+Xn5DfX1qtfnHqYlVjYZ3BuLdff0OIrDWkqRivKKaXfTe3q6jeiTlczyFfNzQ0a96ZzIXaNdXZ3d3T2uSqmqrILi5Zn9MhtEpyV1RC+fpV+BE9eFdBgfH+/r62ttPTQ6NmpCXlNTXV1dk/kz0QDR5+2Go7h+VrO8u7v7WHfP2PhkcR8piNTW1s6UqSJ6VnHdNvjmUNWeicEnemNdnV3Dp05xnJebt2RJzWlshw8NxR3R6+sb5jnRpeuvLfqbm5pe6K+78qarGk53iEQi0d7RMXDy5T9kUl4+2XpWVc2YppT4e/e2uOK+prpGyyOun0Xo6uo62tVlxyXnnFO7dOnI6Gn+8ZyWlhYr8YuLiuvn5Q6juH6WIh6PHz5y5JWipaa6srKS45GTg6cx2sGDB+KDcetlV65cqQ/3iuuvGWLP79j+B/dY58jOLVt2LliQU7fh5o0Z1TIdHUeP9XQ7Oa9ftmzhwoWnbUzLvr39/f1G9LVrG8MPlcR1YXYwsWC8t68vIOevBrVLa/Ny88fGRxvq6/XJdR+z+fccjx8/PqVkRfO8Nx0cGmxv71hWVxf+QNjAVA2zePHirCGcLfqszEi6PvsoKixauXJFjn739wxD/j070qsWQro+p1C6ftNN6+UG6foZQuvhtsDvRshgQTWMIK4Lgrg+V6B/RCNkf2+al5c3NjZ2pK1jwRz53WqzWcyTrs8YlYsr5hZ18vPysFnM+/+Hnpue1dBzU+m6IIjrgiCuC+K6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogiOuCuC4I4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCuC4K4LgjiuiCI6xkiJydnweQ/gpvQMqRcntwpF2XLXyG2idi6zy+u23/xTCROie6pYH+W9WQ8ngV0Hx8fZyJu3WdBW2fxb5eCWCymP50+zzJVbkVFxXzkOhgYGBgZGZmYkLRnP8vz8/NLSkpmrWaeda4LQvbX64IgrguCuC4I4rogiOuCIK4L4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64K4LgjiuiCI64Iw97g+PDwcOHOs+9gjj+5IevGRI4f58s/85je/TnPL5//wXPoLwEsv7Q/bYOjv72MEN5Q7Bt+8/+u8mvnkf/DD74VPhmfKmaf/93dJR+C8b0DYpMzvG5gjN01qWyq3JF2IMwrWiC87/sVD/5XGMPzpG8ZxKi5l7iVuF2YRw6YxIz+pyx56+Oc33vi+aCTy3HPNdvJE7MT+/fsKo4XusquueqMdtLYe4vuyZfXuJWbuXg3jmWeeXvm6Venn+Z3vfuu9773phReed2cuueTS1avW9PX3DScSjHDhX63jZF9vr8+DwcHB0tKypDMyIw1l5eX29hdffCGJExOJ9vY2/0xZaVlT08M11TX+HA1PPPH41Ve/2W7R2dV56Rsu801KhaT39fHt73wrHo/fdtsnz6061z/f1PTQW99yDWb41Dn33Opjx7o42PP7Z93JSDTq3gtp8ExRUVHSe/X09Fxx+V+zXjiQ8dMbtmnTdTYslPqPLQ9+6IMfsYCHGxe9/mL/SmfApHY8suPyy65wL2Hn0NBQeI3CXgqcLCsrc+sbiUT+748vQct3XfduR3QWjvMz4DquXLVq9f33f+PTt9/R0HCeM72t7Yj7cabwQ5A5LFq0OKm0r1u3nsmgFjAbznGZeRDvwCFW9LFfPsJiJ73F7t27uOAf7vpM4Py/fvnfT89mxNWFekNDw67f7qydChgXKpPqe6xrzeo1HLfs2+sLQUDpCc70ouU4ZGvGElx80SWbNz9w660f5Lz5ypcP/MB3GHzo0MHP3X2vRfKJE8dNemAAxx/4+w+76y+99HJiNal5LkII6YBvkby6umU+icv+TLUd/7N9w4YrsXMqQh7GP2aSi5/KykoMsLkTjeZJ+MNb9ux5trFxrSOA+dN/e2Cavt6Z5xkWPtTW1u3atbMQRAuHEkNE1DXXXMuwboGm5zq45m3XNq5ZC+2e+t1uEznc2t3d7e7NXcMilwlYBr4vqliU5pq9LS+ef/4FTIbLevt6U13vaE0aufPOz+LBL9z3L4Q1YhCwjR8DZxzVfM6x0l//xtfc4AjG7qd+i+bxo0tE2I+cmCtZv/POW25K09z8+9Wr1+BoXg0kkIb6hvKy8kQiEY1GXbQ7Vtl5xyFWkaE+9cnbmQhEN7qH5w6NUNbvff/b73//B/r6+kyDzLccmzD5fjh6tAPtSOVw7DSlDHiJVIDnwwttVSj+wYatW3+yadM7SWimaAQkJ3HjlRs2Wg5HsMx75hnmW1xcXLu01oayk3jJj0y3BOGTrjRgWGx761veZgTAGBN4f4Ey4rqrSSC9SzEQPdW909f6viYhWsRJmgoHscRlaIkVA2lKAgTbCR6UxeOWv3D0tFpuVHOco/z46U9/zOx4o5spB3gNRXz66acsxVPUQSwX8EQC6uXyb6oAJhgikShWmUj77iWD/fwXP7vzjrsch7Zt20rpYhPhYt7y+OOPOWb4QFkRXRbVCaSv62gTB46maxvP7+rq9BXHLnavZq5W+AEjWUSO97+0DxsgOouOza52vf5d76E0sOtZSj9adu56kqrPYsOnOz50QhOWs3CK9of1a2ZbvoxqGHdLooS8EKhcfRV0abe9o/0vfDFVO4bF1YBoXXvtO9K40pUNM8LNN93y6yd/xTKYSZCms/MoTFp34XrqovCYlkz9NoM8G4525vilL3/xhhtu5Ee4whpToVrAcwtmalzHuVbyhmPbFZfMmrLQL8GxlpLXBjeN2LFjO8WAXzSjXu/7m5vD9R53R7k//KGPWX1iPvd1HSr7NpA6/Przueebr3vn9f4CcXcbxAcBw5jhoplZ7N/XYnrMF1Qjzu12jOM8FgaMYkyr+sLeDigURE+jWYHA8KOCoiAjrtstzbmIOioLUqn+yxMYQkJaLY/8OUmdg1KGuQ75cCgsTKrWLAZ+fOyXj1IYZM5yVAF9/dhHP87giJUtDIK9YsXrkBz/Sov+VOprrHVrbHspkO9vb77FJIpFra6uga8sJMe8ZD5ldZk+wZbeTt7CrMu81png8alPPFC6bPnxgxdccKHV1vjQ784DSZxK/Z/u+UeOk9brSd/1/Qe+SyxxQDlKLW7dKr5ixWn6w3LIZZN09zKA0zjjOnPHYALSxRWzYFJ4yaYcGJDCmvgMpLjCwiK/NUq/oeduhK8cwfyomIGuh1XWZWq/ufQDjkYEtcN3Rneq7Ysuupi87+cpl7/gh+vhwuQj11OKpFrgQKmz7WdbsYQBIbptXEDKd7x90z9/8fNoofMUJQR3IRJQbtezm1OIycCY2/+7ifME5OLFlXSHZFsU0Rc2zDt48AAlOMeUpMyI1f3sXXenav8DqZkpJ83OlqBtEH/DJ5UrCC27+PP33WMy4et6qi2Eqqoqq9lYLNet2qYQzAsXqKRxSu00BSerbBfgajTb/MlQ0J06fvWqNQEBxv+YTYVDMDinhSs0azQZjYNUHT8ttb+39kohlyLOp+e6CV5gi9DfMrPcx9pYvFKO0yN++vY7IB/U8XcApzb+WnnJnWThA8XcZEZ+w2WZcN36RTpxfMGAlLwsjPXTvsucp57d8wxVBCY9+KPNmIqX6XpN5HwsWrQI15MriBZqDKhsxmA5RDEhpFTlLgSYZbykhabjNPLj64IJIQ4kd5kZqXoeXkLX0bxUGRxppN1kCpgR0PVw7rWdNALYXkWtXbeaKuOnh4WT3QJrJ7vb3gVQ3H6E7p+47VMBAXZ0RJI2bLiSxhoPQE3EzvTIzZ2XnAjaeaSKtZg2eabH9FwnQ6XZaqQ7sTbF9g2am/fgfUynfv3VE4/7OvqT/9xC15x0/zt9iYIU+RHsGj6Tk1QPLxAGhNz4Pbkn2LL33dffYNzCZtIrhKNacJshNiZlm7WkAakjkGxj2zfAuB4oNMP7g3604wS8xK03bryaFb3l725N6hCojIIgbMaeMHDv7t27CgsLmUJglyl8a27HRDAsaY+LZFCwJd24SLP90LJvL77CLYyMutMAuNDlR3/bO9VGn8kQ8ekndnMR07FNHvxA3YhOcZ6ldNIQSEHpn+dkxHV7WLh//75AxebjySefYNncj7t27bTnC6RIehQn22kYkAq2e0X5TvllNWLmDwVxpe0g4QV4fODAHwkz245EVCZbwPoGSl4KHlc6n9FHjEyE1pm+3NWpcCsaiZL9Ak2twe3MkFsgYlhrzL0ckCfdhgHFpNvWcLvRk/36VNuNK5BY15suWbIUaee7Vf8z4jpiQWvkMjz2kzTIV1AQAcZaxnf9W5r1DRSQiCNFAfnTYtLUk2qHktg5JGn5l6omzIjrZH9Yy13XXbg+vBhuXCZGNjQ3sZybNz9gzxfMULo6miGUiVxpW+AzpQj8YJ5XXLHBtpkZ2bYC07/Ld3Fb25G1jecj6iynazwoRaj1mZSvqamqhVcPJKOp6eHGxrW2a+7OE3UUQlhiu/jQN1zSkNB6e2NhInIl+ZPKqvVwqxO5pIJCE7l+/etdVWPXsGqor/Wd5KsMi8ZXtjt3bKfmDlSeUMVaMtoYNN6Uzi+sCcLw83JssJD+yle+hOWErmtSOUnucp3um65+s61XmMTpd2ym4Xp7exusRRr9IsEeVrkWxJ4S2+4SZln8uf14V5ZxHtJ/9CMfR8/CwReodP3mmlsTS5YZqZ6bmh664T03utrUOnf0A4q4Wov0Z2w2bTM/Ysa999wX2LDbtm0ro2E2RRfJlOxB02k3be9oN977G6yQym1cBB5zTrsbDavIdUl3YFk8i14mZURnFu4B7dRu5qN42H3GATMiUw+k0A5mx0vQjrnAe2hkbZm/ZKvXNDICBArU2S4eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},b7y3:function(e,t){},csI9:function(e,t){},dy5a: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([5,66,67,68,73,77],{"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},"3b2J":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 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("GUEL")},"data-v-5b202a63",null);t.default=s.exports},FQZX:function(e,t){},GUEL:function(e,t){},Isrn:function(e,t,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(e){console.log(e)},toInput:function(e){var t="",i={};return t=a.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.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(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=a.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),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 e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){return e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return function(t){return e.toInput(t)}.apply(null,arguments)}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(n,s,!1,function(e){i("b7y3")},"data-v-e569320a",null);t.a=l.exports},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("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"),b=i("fPyK"),_=i("fZjL"),C=i.n(_),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){C()("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("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(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)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},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(O.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={status:1,enterpriseId:t.enterpriseId,templateContent:d()(e),title:t.templateObj.title,description:t.templateObj.description,storeType:t.templateObj.storeType,memory:[]};Object(F.e)("/haoban-app-daily-three-web/daily/save-define-template",i).then(function(e){var i=e.data;t.loadingBtn=!1,1!=i.errorCode?L.a.errorMsg(i):M.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(F.e)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){JSON.parse(localStorage.getItem("userInfos")).enterpriseId;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)}L.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(F.e)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?L.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(F.e)("/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));L.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(F.e)("/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();L.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:v.default,selectCom:f.default,dateRangeCom:g.default,inputCom:y.default,blockCom:I.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"}},V={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 j=i("VU/8")(T,V,!1,function(e){i("3b2J")},"data-v-216803fb",null);t.default=j.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},Q9Uw:function(e,t){},Tvq6:function(e,t){},Y7wY:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja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"},b7y3:function(e,t){},csI9:function(e,t){},dy5a: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([51],{WLvO: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.a)("/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 function(e){return t.toInput(e,t.searchInput)}.apply(null,arguments)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.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("WLvO")},"data-v-ce3e2b1c",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([51],{WLvO: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.a)("/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 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("WLvO")},"data-v-ce3e2b1c",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([53],{"5GE8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){var e=this;return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},conditionObj:{getDateRange:[],useDateRange:[],searchInput:""},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}}},loading:!1,templateList:[],strategyList:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(t.coupCardId)}).catch(function(){})},delCardList:function(e){var t=this,a={coupCardId:e};Object(u.e)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),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(){var e=this;return i()(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,a.conditionObj.getDateRange||(a.conditionObj.getDateRange=[]),a.conditionObj.useDateRange||(a.conditionObj.useDateRange=[]),n={queryType:2,wxEnterpriseId:a.wxEnterpriseId,receiveStartDate:a.conditionObj.getDateRange[0],receiveEndDate:a.conditionObj.getDateRange[1],useStartDate:a.conditionObj.useDateRange[0],useEndDate:a.conditionObj.useDateRange[1],search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.e)("/haoban-app-customer-web/inner/find-card-log-page",n).then(function(e){var t=e.data;if(a.loading=!1,1==t.errorCode)return a.tableData=t.result.result||[],void(a.total=t.result.totalCount);r.a.errorMsg(t)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})});case 6:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","42"),this.getTableList()}},d={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:"flex flex-space-between m-b-20"},[a("div",{staticClass:"flex "},[a("el-date-picker",{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.getDateRange,callback:function(t){e.$set(e.conditionObj,"getDateRange",t)},expression:"conditionObj.getDateRange"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",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.useDateRange,callback:function(t){e.$set(e.conditionObj,"useDateRange",t)},expression:"conditionObj.useDateRange"}}),e._v(" "),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.conditionObj.searchInput)}.apply(null,arguments)}},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"})])],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:"领取时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiveTime?a("div",[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)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.useTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.useTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-14 color-606266 line-18"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[e._v(e._s(e._f("formatPhoneNum")(t.row.phoneNum)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headImg?a("img",{attrs:{src:t.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[e._v(e._s(t.row.staffName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[e._v(e._s(t.row.departmentName||"--"))])])])]}}])}),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:"卡券名称","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:"卡券状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):e._e(),4==t.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):e._e(),5==t.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):e._e(),6==t.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):e._e(),7==t.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):e._e(),8==t.row.status?a("span",{staticClass:"status-dot bg-faad14"}):e._e(),a("span",{staticClass:"inline-block"},[e._v(e._s(e.statusObj[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"投放来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 好办内购券\n ")]}}])}),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(5!=t.row.status?"--":0==t.row.checkSource?"订单核销":"手动核销")+"\n ")]}}])})],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 g=a("VU/8")(p,d,!1,function(e){a("L1pc")},"data-v-af26a452",null);t.default=g.exports},L1pc:function(e,t){}});
\ No newline at end of file
webpackJsonp([53],{"5GE8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){var e=this;return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},conditionObj:{getDateRange:[],useDateRange:[],searchInput:""},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}}},loading:!1,templateList:[],strategyList:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(t.coupCardId)}).catch(function(){})},delCardList:function(e){var t=this,a={coupCardId:e};Object(u.e)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),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(){var e=this;return i()(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,a.conditionObj.getDateRange||(a.conditionObj.getDateRange=[]),a.conditionObj.useDateRange||(a.conditionObj.useDateRange=[]),n={queryType:2,wxEnterpriseId:a.wxEnterpriseId,receiveStartDate:a.conditionObj.getDateRange[0],receiveEndDate:a.conditionObj.getDateRange[1],useStartDate:a.conditionObj.useDateRange[0],useEndDate:a.conditionObj.useDateRange[1],search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.e)("/haoban-app-customer-web/inner/find-card-log-page",n).then(function(e){var t=e.data;if(a.loading=!1,1==t.errorCode)return a.tableData=t.result.result||[],void(a.total=t.result.totalCount);r.a.errorMsg(t)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})});case 6:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","42"),this.getTableList()}},d={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:"flex flex-space-between m-b-20"},[a("div",{staticClass:"flex "},[a("el-date-picker",{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.getDateRange,callback:function(t){e.$set(e.conditionObj,"getDateRange",t)},expression:"conditionObj.getDateRange"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",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.useDateRange,callback:function(t){e.$set(e.conditionObj,"useDateRange",t)},expression:"conditionObj.useDateRange"}}),e._v(" "),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",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("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",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiveTime?a("div",[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)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.useTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.useTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-14 color-606266 line-18"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[e._v(e._s(e._f("formatPhoneNum")(t.row.phoneNum)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headImg?a("img",{attrs:{src:t.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[e._v(e._s(t.row.staffName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[e._v(e._s(t.row.departmentName||"--"))])])])]}}])}),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:"卡券名称","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:"卡券状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):e._e(),4==t.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):e._e(),5==t.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):e._e(),6==t.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):e._e(),7==t.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):e._e(),8==t.row.status?a("span",{staticClass:"status-dot bg-faad14"}):e._e(),a("span",{staticClass:"inline-block"},[e._v(e._s(e.statusObj[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"投放来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 好办内购券\n ")]}}])}),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(5!=t.row.status?"--":0==t.row.checkSource?"订单核销":"手动核销")+"\n ")]}}])})],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 g=a("VU/8")(p,d,!1,function(e){a("L1pc")},"data-v-af26a452",null);t.default=g.exports},L1pc:function(e,t){}});
\ No newline at end of file
webpackJsonp([56],{c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),s=a("exGp"),l=a.n(s),i=a("Ch4/"),o=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.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.e)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return o.a.showmsg("删除成功","success"),void e.getTableList();i.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 l()(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={wxEnterpriseId:a.wxEnterpriseId,search:a.searchInput||""},Object(u.e)("/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));i.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 function(e){return t.toInput(e,t.searchInput)}.apply(null,arguments)}},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("pXOk")},"data-v-94fb7106",null);e.default=f.exports},pXOk:function(t,e){}});
\ No newline at end of file
webpackJsonp([56],{c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),s=a("exGp"),i=a.n(s),l=a("Ch4/"),o=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.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.e)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return o.a.showmsg("删除成功","success"),void e.getTableList();l.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()(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={wxEnterpriseId:a.wxEnterpriseId,search:a.searchInput||""},Object(u.e)("/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));l.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("pXOk")},"data-v-94fb7106",null);e.default=f.exports},pXOk:function(t,e){}});
\ No newline at end of file
webpackJsonp([60],{AipD: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 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("AipD")},"data-v-856eb1f4",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([60],{AipD: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 function(e){return t.toInput(e,t.searchInput)}.apply(null,arguments)}},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 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("AipD")},"data-v-856eb1f4",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([61],{X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),s=a.n(o),i=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",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(u.e)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList(e.brandId);100013==a.errorCode&&(e.currentPage=1,e.getTableList(e.brandId)),i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCard?coupCardId="+e.coupCardId)},toInput:Object(l.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 s()(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(u.e)("/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.total);i.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.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 function(e){return t.toInput(e,t.searchInput)}.apply(null,arguments)}},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("el-button",{attrs:{type:"primary",disabled:t.$store.state.wxEnterpriseType},on:{click:t.toNewCard}},[t._v("新增卡券")])],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":""},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:"卡券类型"},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":""},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:"库存"},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:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toDel(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)])},staticRenderFns:[]};var f=a("VU/8")(d,p,!1,function(t){a("taTK")},"data-v-7b31e3ee",null);e.default=f.exports},taTK:function(t,e){}}); webpackJsonp([61],{X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),s=a.n(o),i=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",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(u.e)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList(e.brandId);100013==a.errorCode&&(e.currentPage=1,e.getTableList(e.brandId)),i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCard?coupCardId="+e.coupCardId)},toInput:Object(l.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 s()(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(u.e)("/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.total);i.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.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(" "),a("el-button",{attrs:{type:"primary",disabled:t.$store.state.wxEnterpriseType},on:{click:t.toNewCard}},[t._v("新增卡券")])],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":""},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:"卡券类型"},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":""},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:"库存"},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:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toDel(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)])},staticRenderFns:[]};var g=a("VU/8")(d,p,!1,function(t){a("taTK")},"data-v-7b31e3ee",null);e.default=g.exports},taTK:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([62],{"C/vp":function(t,e){},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}},b={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 function(e){return t.toInput(e,t.conditionObj.searchInput)}.apply(null,arguments)}},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 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 g=a("VU/8")(h,b,!1,function(t){a("C/vp")},"data-v-78a422da",null);e.default=g.exports}}); webpackJsonp([62],{"C/vp":function(t,e){},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}},b={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 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 g=a("VU/8")(h,b,!1,function(t){a("C/vp")},"data-v-78a422da",null);e.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([7],{"5wqm":function(t,e){},AIQa:function(t,e){},Isrn:function(t,e,a){"use strict";var i=a("Mk6G"),s={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){console.log(t)},toInput:function(t){var e="",a={};return e=i.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=i.a.getZhLen(this.itemValue),this.childFlag?(a.child=this.childFlag,a.value=this.itemValue,"title"==this.titleFlag&&(a.title=this.titleFlag),"k303"==this.c3Flag&&(a.c3Index=this.c3Index,a.flag=this.c3Flag),void this.$emit("itemInput",a)):"title"==this.titleFlag?(a.value=this.itemValue,a.title=this.titleFlag,void this.$emit("itemInput",a)):"k303"==this.c3Flag?(a.value=this.itemValue,a.flag=this.c3Flag,a.c3Index=this.c3Index,void this.$emit("itemInput",a)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,this.inputNum=i.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(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=i.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}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell"},[a("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 a=e,t.toInput(a);var a}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var r=a("VU/8")(s,n,!1,function(t){a("b7y3")},"data-v-e569320a",null);e.a=r.exports},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),n=a("mvHQ"),r=a.n(n),l=a("w/TU"),o=a.n(l),c=a("Isrn"),d=a("l46T"),u={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 p=a("VU/8")(u,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 h=a("VU/8")(m,f,!1,function(t){a("h7wL")},"data-v-66c2fe71",null).exports,g={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},C={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")(g,C,!1,function(t){a("zGvM")},"data-v-6f4f982c",null).exports,_={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={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")(_,I,!1,function(t){a("cfOg")},"data-v-64e9da9d",null).exports,y={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 M=a("VU/8")(y,w,!1,function(t){a("pJmJ")},"data-v-b7ca6e44",null).exports,N={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},k={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 L=a("VU/8")(N,k,!1,function(t){a("AIQa")},"data-v-b252e530",null).exports,V=a("fPyK"),O={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}},D={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 Z=a("VU/8")(O,D,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,R=a("3E4D"),j=a("Ch4/"),S=a("PI0u"),F=a("P9l9"),W={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",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},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 i;t.name==e.selectKey&&(i=t.parentCode,e[i].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(S.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(F.e)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?j.a.errorMsg(a):R.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(F.e)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;e.loadingBtn=!1;JSON.parse(localStorage.getItem("userInfos")).enterpriseId;if(1==a.errorCode){var i=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(i,"daily-preview"),void(e.dialogVisible=!0)}j.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(F.a)("/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 i=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(i)},200);return!1}j.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(F.a)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?j.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=[],s.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:p,storePerformance:h,errorMointor:x,membershipData:b,oldCustomerData:M,birthdayMembershipData:L,qrcodeDialog:V.a,systemSet:Z},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,s.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"}},A={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"template-wrap",style:{minHeight:t.bodyHeight}},[i("div",{staticClass:"template-contain"},[i("div",{staticClass:"template-head"},[t._m(0),t._v(" "),i("div",{staticClass:"template-btns flex-1 flex-r"},[i("el-button",{attrs:{type:"primary",plain:""},on:{click:t.templateSet}},[t._v("模板设置")]),t._v(" "),i("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),i("div",{staticClass:"template-body"},[i("div",{staticClass:"template-cell template-cell-l system-template-tab"},[i("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),i("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("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)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"交易",name:"second"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"会员",name:"four"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),i("div",{staticClass:"template-cell template-cell-m"},[i("div",{staticClass:"phone-view"},[i("div",{staticClass:"phone-show-content"},[i("div",{staticClass:"drag-show-content"},[i("div",{staticClass:"view-container"},[i("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[i("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),i("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 i("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(i){return i.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[i("span",{staticClass:"item-close p-item-close",on:{click:function(i){return i.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[i("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?i("div",{staticClass:"filed-item-name"},[i("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?i("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?i("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?i("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?i("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?i("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?i("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),i("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?i("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 E=a("VU/8")(W,A,!1,function(t){a("5wqm")},"data-v-1c2bc88d",null);e.default=E.exports},Y7wY:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja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"},aqQ7:function(t,e){},b7y3:function(t,e){},cfOg:function(t,e){},eUKg:function(t,e){},h7wL:function(t,e){},pJmJ:function(t,e){},zGvM:function(t,e){}});
\ No newline at end of file
webpackJsonp([7],{"5wqm":function(t,e){},AIQa:function(t,e){},Isrn:function(t,e,a){"use strict";var i=a("Mk6G"),s={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){console.log(t)},toInput:function(t){var e="",a={};return e=i.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=i.a.getZhLen(this.itemValue),this.childFlag?(a.child=this.childFlag,a.value=this.itemValue,"title"==this.titleFlag&&(a.title=this.titleFlag),"k303"==this.c3Flag&&(a.c3Index=this.c3Index,a.flag=this.c3Flag),void this.$emit("itemInput",a)):"title"==this.titleFlag?(a.value=this.itemValue,a.title=this.titleFlag,void this.$emit("itemInput",a)):"k303"==this.c3Flag?(a.value=this.itemValue,a.flag=this.c3Flag,a.c3Index=this.c3Index,void this.$emit("itemInput",a)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,this.inputNum=i.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(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=i.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}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell"},[a("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 function(e){return t.toInput(e)}.apply(null,arguments)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var l=a("VU/8")(s,n,!1,function(t){a("b7y3")},"data-v-e569320a",null);e.a=l.exports},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("//Fk"),s=a.n(i),n=a("mvHQ"),l=a.n(n),r=a("w/TU"),o=a.n(r),c=a("Isrn"),d=a("l46T"),u={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 p=a("VU/8")(u,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 h=a("VU/8")(m,f,!1,function(t){a("h7wL")},"data-v-66c2fe71",null).exports,g={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},C={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")(g,C,!1,function(t){a("zGvM")},"data-v-6f4f982c",null).exports,_={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={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")(_,I,!1,function(t){a("cfOg")},"data-v-64e9da9d",null).exports,y={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 M=a("VU/8")(y,w,!1,function(t){a("pJmJ")},"data-v-b7ca6e44",null).exports,N={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},k={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 L=a("VU/8")(N,k,!1,function(t){a("AIQa")},"data-v-b252e530",null).exports,V=a("fPyK"),O={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}},D={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 Z=a("VU/8")(O,D,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,R=a("3E4D"),j=a("Ch4/"),S=a("PI0u"),F=a("P9l9"),W={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",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},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 i;t.name==e.selectKey&&(i=t.parentCode,e[i].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(l()(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(S.a)(function(t){var e=JSON.parse(l()(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:l()({setting:e.setting,data:t})};Object(F.e)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?j.a.errorMsg(a):R.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:l()(t)};Object(F.e)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;e.loadingBtn=!1;JSON.parse(localStorage.getItem("userInfos")).enterpriseId;if(1==a.errorCode){var i=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(i,"daily-preview"),void(e.dialogVisible=!0)}j.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(F.a)("/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 i=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(i)},200);return!1}j.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(F.a)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?j.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(l()(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=[],s.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:p,storePerformance:h,errorMointor:x,membershipData:b,oldCustomerData:M,birthdayMembershipData:L,qrcodeDialog:V.a,systemSet:Z},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,s.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"}},A={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"template-wrap",style:{minHeight:t.bodyHeight}},[i("div",{staticClass:"template-contain"},[i("div",{staticClass:"template-head"},[t._m(0),t._v(" "),i("div",{staticClass:"template-btns flex-1 flex-r"},[i("el-button",{attrs:{type:"primary",plain:""},on:{click:t.templateSet}},[t._v("模板设置")]),t._v(" "),i("el-button",{attrs:{type:"primary",loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),i("div",{staticClass:"template-body"},[i("div",{staticClass:"template-cell template-cell-l system-template-tab"},[i("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),i("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("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)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"交易",name:"second"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"会员",name:"four"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),i("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[i("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[i("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 i("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[i("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),i("div",{staticClass:"template-cell template-cell-m"},[i("div",{staticClass:"phone-view"},[i("div",{staticClass:"phone-show-content"},[i("div",{staticClass:"drag-show-content"},[i("div",{staticClass:"view-container"},[i("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[i("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),i("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 i("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(i){return i.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[i("span",{staticClass:"item-close p-item-close",on:{click:function(i){return i.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[i("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?i("div",{staticClass:"filed-item-name"},[i("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?i("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?i("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?i("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?i("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?i("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?i("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),i("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?i("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 E=a("VU/8")(W,A,!1,function(t){a("5wqm")},"data-v-1c2bc88d",null);e.default=E.exports},Y7wY:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja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"},aqQ7:function(t,e){},b7y3:function(t,e){},cfOg:function(t,e){},eUKg: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 function(t){return e.toInput(t,e.conditionObj.searchInput)}.apply(null,arguments)}},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){}}); 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 \ No newline at end of file
webpackJsonp([78],{IXe9:function(t,e){},NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={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:"2",topMenuData:[{id:"1",name:"指标管理",path:"/monthList"},{id:"2",name:"月指标任务",path:""}],showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],loading:!1,selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this;t.loadingBtn=!0;var e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="store-month-performance-task.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(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.a)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).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.total,!1;r.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(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-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"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.conditionObj.searchInput)}.apply(null,arguments)}},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.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._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: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:"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"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},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)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("IXe9")},"data-v-3e63b58d",null);e.default=c.exports}}); webpackJsonp([78],{IXe9:function(t,e){},NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={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:"2",topMenuData:[{id:"1",name:"指标管理",path:"/monthList"},{id:"2",name:"月指标任务",path:""}],showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],loading:!1,selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this;t.loadingBtn=!0;var e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="store-month-performance-task.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(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.a)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).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.total,!1;r.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(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-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"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code",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.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._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: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:"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"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},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)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("IXe9")},"data-v-3e63b58d",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([82],{dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),o=a("3E4D"),s=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,n=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>n}}},templateData:[],strategyData:[],loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},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(i.e)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return o.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(s.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(){var t=this;t.loading=!0,t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.e)("/haoban-app-customer-web/inner/find-card-log-page",e).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","41"),this.getTableList()}},l={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-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,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.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.conditionObj.searchInput)}.apply(null,arguments)}},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"})])],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":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),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.cardName||"--")+"\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 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],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,l,!1,function(t){a("enRz")},"data-v-334fcd92",null);e.default=c.exports},enRz:function(t,e){}});
\ No newline at end of file
webpackJsonp([82],{dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),o=a("3E4D"),s=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,n=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>n}}},templateData:[],strategyData:[],loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},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(i.e)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return o.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(s.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(){var t=this;t.loading=!0,t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.e)("/haoban-app-customer-web/inner/find-card-log-page",e).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","41"),this.getTableList()}},l={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-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,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.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:t.clearInput},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"})])],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":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),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.cardName||"--")+"\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 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],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,l,!1,function(t){a("enRz")},"data-v-334fcd92",null);e.default=c.exports},enRz:function(t,e){}});
\ No newline at end of file
webpackJsonp([9],{FFFL:function(e,t){e.exports="data:image/jpeg;base64,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"},Ss2Q:function(e,t){},XF7X:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Dd8w"),i=a.n(s),n=a("mvHQ"),l=a.n(n),o=a("fZjL"),r=a.n(o),c=a("woOf"),d=a.n(c),u=a("P9l9"),m=a("CMYX"),p=a("Ch4/"),h={props:{item:{type:Object,default:function(){return{}}},enableDownloadCompleteData:{type:[Number,String],default:function(){return 0}},date:{type:[Array],default:function(){return[]}},storeId:"",ecmPlanName:""},components:{exportDialog:m.a},data:function(){return{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:{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",s={enterpriseId:sessionStorage.getItem("userInfoBrandId"),dataType:e,pageNum:this.pageParams.pageNum,pageSize:this.pageParams.pageSize,taskId:this.pageParams.taskId,storeId:this.storeId},i=this.date.length?"群发任务-门店视图-任务详情-完成详情_"+this.date[0]+"至"+this.date[1]+".xls":"群发任务-门店视图-任务详情-完成详情.xls";this.ecmPlanName&&(s.ecmPlanName=this.ecmPlanName,a="/haoban-task-manage-web/market/clue/export/plan-view-task-store-task-comp-detail",i=this.date.length?"群发任务-计划视图-任务门店详情-任务详情-完成详情_"+this.date[0]+"至"+this.date[1]+".xls":"群发任务-计划视图-任务门店详情-任务详情-完成详情.xls"),null!=this.tabsList[this.activeName].params&&(s.sendStatus=this.tabsList[this.activeName].params),Object(u.b)(a,s).then(function(e){if(t.loadingBtn=!1,!e.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=i,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.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=i()({},t.pageParams);Object(u.a)("/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):p.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.a)("/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.total||0):p.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()})}},g={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(" "),a("el-button",{staticClass:"btn",attrs:{loading:e.loadingBtn,type:"primary"},on:{click:e.beforeExportExcel}},[e._v("导出")]),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")(h,g,!1,function(e){a("Ss2Q")},"data-v-8b07a97c",null).exports,f=a("FFFL"),A=a.n(f),b=a("3Xzz"),w=a("3E4D"),k=a("PI0u"),C=a("jpPc"),S=a.n(C),D={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:S.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 s=a%864e5,i=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(i/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}},y={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.apply(null,arguments)}}}),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.apply(null,arguments)}}})])])])])},staticRenderFns:[]};var I=a("VU/8")(D,y,!1,function(e){a("wPOy")},"data-v-3431c27b",null).exports,x={name:"storeDetail",props:{brandId:{type:String,default:function(){return""}},enableDownloadCompleteData:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],headDefault:A.a,bgHeight:window.screen.availHeight-298+"px",loading:!1,dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,navpath:[{name:"首页",path:"/index"},{name:"销售线索",path:""}],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",s=this.pageParams,i=s.finishOverStatus,n=s.taskType,l=s.pageNum,o=s.pageSize,r={enterpriseId:sessionStorage.getItem("userInfoBrandId"),dataType:1,finishOverStatus:i,taskType:n,pageNum:l,pageSize:o,startTime:this.pageParams.date[0],endTime:this.pageParams.date[1],selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.taskId}).join(","),storeId:this.$route.params.id},c=this.pageParams.date.length?"群发任务-门店视图-任务详情_"+r.startTime+"至"+r.endTime+".xls":"群发任务-门店视图-任务详情.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(r.ecmPlanName=this.$route.query.ecmPlanName,a="/haoban-task-manage-web/market/clue/export/plan-view-task-store-task-detail",r.ecmPlanId=this.$route.query.ecmPlanId,c=this.pageParams.date.length?"群发任务-计划视图-任务门店详情-任务详情_"+r.startTime+"至"+r.endTime+".xls":"群发任务-计划视图-任务门店详情-任务详情.xls"),Object(u.b)(a,r).then(function(e){if(t.loadingBtn=!1,!e.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=c,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(){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=i()({},t.pageParams,{enterpriseId:sessionStorage.getItem("userInfoBrandId"),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.a)("/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.total||0):p.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},getFilterOpts:function(){var e=this;Object(u.a)("/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"):p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showDetail:function(e){this.finishDetail={enterpriseId:sessionStorage.getItem("userInfoBrandId"),taskId:e.taskId},this.finishDetailShow=!0},close:function(){this.finishDetailShow=!1,this.finishDetail={}},showPreview:function(e){var t=this,a={enterpriseId:sessionStorage.getItem("userInfoBrandId"),taskId:e.taskId};Object(u.e)("/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);p.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;console.log(this.enableDownloadCompleteData),e.getFilterOpts(),e.$nextTick(function(){e.getTableList()}),e.$route.query.tab?e.$emit("showTab","212","2121","21211"):e.$emit("showTab","211","2111"),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:b.a,salesleadsTaskinfo:v,detailPreview:I}},O={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("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"},[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 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":"90"},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._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(" "),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.showDetail(t.row)}}},[e._v("详情")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showPreview(t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.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,enableDownloadCompleteData:e.enableDownloadCompleteData,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 F=a("VU/8")(x,O,!1,function(e){a("i4VA"),a("igoL")},"data-v-449fd251",null);t.default=F.exports},i4VA:function(e,t){},igoL: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="},wPOy:function(e,t){}}); webpackJsonp([9],{FFFL:function(e,t){e.exports="data:image/jpeg;base64,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"},Ss2Q:function(e,t){},XF7X:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Dd8w"),i=a.n(s),n=a("mvHQ"),l=a.n(n),o=a("fZjL"),r=a.n(o),c=a("woOf"),d=a.n(c),u=a("P9l9"),m=a("CMYX"),p=a("Ch4/"),h={props:{item:{type:Object,default:function(){return{}}},enableDownloadCompleteData:{type:[Number,String],default:function(){return 0}},date:{type:[Array],default:function(){return[]}},storeId:"",ecmPlanName:""},components:{exportDialog:m.a},data:function(){return{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:{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",s={enterpriseId:sessionStorage.getItem("userInfoBrandId"),dataType:e,pageNum:this.pageParams.pageNum,pageSize:this.pageParams.pageSize,taskId:this.pageParams.taskId,storeId:this.storeId},i=this.date.length?"群发任务-门店视图-任务详情-完成详情_"+this.date[0]+"至"+this.date[1]+".xls":"群发任务-门店视图-任务详情-完成详情.xls";this.ecmPlanName&&(s.ecmPlanName=this.ecmPlanName,a="/haoban-task-manage-web/market/clue/export/plan-view-task-store-task-comp-detail",i=this.date.length?"群发任务-计划视图-任务门店详情-任务详情-完成详情_"+this.date[0]+"至"+this.date[1]+".xls":"群发任务-计划视图-任务门店详情-任务详情-完成详情.xls"),null!=this.tabsList[this.activeName].params&&(s.sendStatus=this.tabsList[this.activeName].params),Object(u.b)(a,s).then(function(e){if(t.loadingBtn=!1,!e.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=i,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.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=i()({},t.pageParams);Object(u.a)("/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):p.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.a)("/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.total||0):p.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()})}},g={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(" "),a("el-button",{staticClass:"btn",attrs:{loading:e.loadingBtn,type:"primary"},on:{click:e.beforeExportExcel}},[e._v("导出")]),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")(h,g,!1,function(e){a("Ss2Q")},"data-v-8b07a97c",null).exports,f=a("FFFL"),A=a.n(f),b=a("3Xzz"),w=a("3E4D"),k=a("PI0u"),C=a("jpPc"),S=a.n(C),D={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:S.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 s=a%864e5,i=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(i/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}},I={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 y=a("VU/8")(D,I,!1,function(e){a("wPOy")},"data-v-3431c27b",null).exports,x={name:"storeDetail",props:{brandId:{type:String,default:function(){return""}},enableDownloadCompleteData:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],headDefault:A.a,bgHeight:window.screen.availHeight-298+"px",loading:!1,dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,navpath:[{name:"首页",path:"/index"},{name:"销售线索",path:""}],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",s=this.pageParams,i=s.finishOverStatus,n=s.taskType,l=s.pageNum,o=s.pageSize,r={enterpriseId:sessionStorage.getItem("userInfoBrandId"),dataType:1,finishOverStatus:i,taskType:n,pageNum:l,pageSize:o,startTime:this.pageParams.date[0],endTime:this.pageParams.date[1],selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.taskId}).join(","),storeId:this.$route.params.id},c=this.pageParams.date.length?"群发任务-门店视图-任务详情_"+r.startTime+"至"+r.endTime+".xls":"群发任务-门店视图-任务详情.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(r.ecmPlanName=this.$route.query.ecmPlanName,a="/haoban-task-manage-web/market/clue/export/plan-view-task-store-task-detail",r.ecmPlanId=this.$route.query.ecmPlanId,c=this.pageParams.date.length?"群发任务-计划视图-任务门店详情-任务详情_"+r.startTime+"至"+r.endTime+".xls":"群发任务-计划视图-任务门店详情-任务详情.xls"),Object(u.b)(a,r).then(function(e){if(t.loadingBtn=!1,!e.data)return p.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=c,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(){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=i()({},t.pageParams,{enterpriseId:sessionStorage.getItem("userInfoBrandId"),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.a)("/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.total||0):p.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},getFilterOpts:function(){var e=this;Object(u.a)("/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"):p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showDetail:function(e){this.finishDetail={enterpriseId:sessionStorage.getItem("userInfoBrandId"),taskId:e.taskId},this.finishDetailShow=!0},close:function(){this.finishDetailShow=!1,this.finishDetail={}},showPreview:function(e){var t=this,a={enterpriseId:sessionStorage.getItem("userInfoBrandId"),taskId:e.taskId};Object(u.e)("/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);p.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;console.log(this.enableDownloadCompleteData),e.getFilterOpts(),e.$nextTick(function(){e.getTableList()}),e.$route.query.tab?e.$emit("showTab","212","2121","21211"):e.$emit("showTab","211","2111"),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:b.a,salesleadsTaskinfo:v,detailPreview:y}},O={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("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"},[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 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":"90"},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._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(" "),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.showDetail(t.row)}}},[e._v("详情")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showPreview(t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.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,enableDownloadCompleteData:e.enableDownloadCompleteData,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 F=a("VU/8")(x,O,!1,function(e){a("i4VA"),a("igoL")},"data-v-449fd251",null);t.default=F.exports},i4VA:function(e,t){},igoL: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="},wPOy:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([90],{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 function(e){return t.toInput(e,t.conditionObj.searchInput)}.apply(null,arguments)}},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("hay5")},"data-v-1ce01d00",null);e.default=h.exports},hay5:function(t,e){}}); webpackJsonp([90],{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("hay5")},"data-v-1ce01d00",null);e.default=h.exports},hay5:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([93],{A3mC:function(e,t){},f1qT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("CMYX"),l=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),c=a("PI0u"),d=a("3E4D"),u=a("Ch4/"),p={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}},enableDownloadCompleteData:{type:[Number,String],default:function(){return 0}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},loading:!1,selectRadio:2,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,exportDialog:!1}},computed:{},methods:{beforeExportExcel:function(){if(!this.multipleSelection.length)return d.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 d.a.showmsg("请选择门店","warning"),!1;var a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)}),t.loadingBtn=!0;var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",ecmId:t.$route.query.ecmId,ecmPlanName:this.$route.query.ecmName,storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),gicEnterpriseId:t.activeBrand,selectType:2==t.selectRadio&&t.multipleSelection.length?0:this.selectRadio,dataType:e};Object(r.b)("/haoban-app-tel-task-three-web/task/export-task-view-store-list",o).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"}),o=document.createElement("a");o.download="话务任务视图详情门店报表.xls",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})})},checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},changeTable:function(e){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:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),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,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio,ecmId:t.$route.query.ecmId};Object(r.e)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();u.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(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}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId)},getTableList:function(e){var t=this,a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={ecmId:a.$route.query.ecmId,search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:a.conditionObj.dateRange[0]||"",endDate:a.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo.total,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),u.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","122","1221"),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:l.a,multipleDel:s.a,exportDialog:i.a}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[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",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.conditionObj.searchInput)}.apply(null,arguments)}},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("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),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.beforeExportExcel}},[e._v("导出")]),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 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(e){var t=e.$index;return[a("p",{key:t})]}}])}),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.storeGroupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),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.taskCount))]}}])}),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.completedCount))]}}])}),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.completedRate))]}}])}),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.noCompletedCount))]}}])}),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.overdueCount))]}}])}),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("export-dialog",{attrs:{dialogVisible:e.exportDialog},on:{export:e.exportExcel,"update:dialogVisible":e.changeExportDialog}}),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(p,h,!1,function(e){a("A3mC")},"data-v-12f14856",null);t.default=g.exports}}); webpackJsonp([93],{A3mC:function(e,t){},f1qT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("CMYX"),l=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),c=a("PI0u"),d=a("3E4D"),u=a("Ch4/"),p={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}},enableDownloadCompleteData:{type:[Number,String],default:function(){return 0}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},loading:!1,selectRadio:2,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,exportDialog:!1}},computed:{},methods:{beforeExportExcel:function(){if(!this.multipleSelection.length)return d.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 d.a.showmsg("请选择门店","warning"),!1;var a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)}),t.loadingBtn=!0;var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",ecmId:t.$route.query.ecmId,ecmPlanName:this.$route.query.ecmName,storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),gicEnterpriseId:t.activeBrand,selectType:2==t.selectRadio&&t.multipleSelection.length?0:this.selectRadio,dataType:e};Object(r.b)("/haoban-app-tel-task-three-web/task/export-task-view-store-list",o).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"}),o=document.createElement("a");o.download="话务任务视图详情门店报表.xls",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})})},checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},changeTable:function(e){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:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),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,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio,ecmId:t.$route.query.ecmId};Object(r.e)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();u.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(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}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId)},getTableList:function(e){var t=this,a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={ecmId:a.$route.query.ecmId,search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:a.conditionObj.dateRange[0]||"",endDate:a.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo.total,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),u.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","122","1221"),document.documentElement.style.backgroundColor="#f0f2f5",e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:l.a,multipleDel:s.a,exportDialog:i.a}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[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",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},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("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),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.beforeExportExcel}},[e._v("导出")]),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 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(e){var t=e.$index;return[a("p",{key:t})]}}])}),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.storeGroupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),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.taskCount))]}}])}),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.completedCount))]}}])}),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.completedRate))]}}])}),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.noCompletedCount))]}}])}),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.overdueCount))]}}])}),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("export-dialog",{attrs:{dialogVisible:e.exportDialog},on:{export:e.exportExcel,"update:dialogVisible":e.changeExportDialog}}),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(p,h,!1,function(e){a("A3mC")},"data-v-12f14856",null);t.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([95],{QZxC:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Dd8w"),n=a.n(s),l=a("3Xzz"),i=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(i.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:l.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.apply(null,arguments)}},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([95],{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
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,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:"6cd070dbdcd4a67baf2c",1:"80ec7107adf684998411",2:"e965b7da41692adc7e27",3:"309cf3b5eb35967bf048",4:"98abe88e827fda7f81d6",5:"62c26dd99ea071b8a320",6:"eec60b89d02eaa190f58",7:"28ebaf59428a429f57e1",8:"025984955d9b21ace11f",9:"b0fc35e74a246b54c2b1",10:"aefd58d1729dec90a302",11:"d5fdca6dd9161971aa09",12:"8d7050113ab392f19840",13:"b7d5aada6f65686a665f",14:"788cf98de2694b3c5758",15:"c30ed0527da5a2d2d194",16:"3d1597d6ece613afb350",17:"d220d175330cbff1fe95",18:"85f809cb74f6d50b93cd",19:"8f535da68e03d90954e6",20:"498f65c0e1f6796e9f8d",21:"938f46bac35a2a4c4421",22:"bc3dd491cf1f1752fd81",23:"e496a13fd2c7f261fb8a",24:"9b6c0ece181d5be053df",25:"5492feace4aa1696c3b3",26:"d79d9f9587c53eedfb8b",27:"7258fa9ccd560c39d52a",28:"03ce202ec88e05f7efaf",29:"c2819057b29b56d63feb",30:"1594ff7934afe1a4ef8e",31:"7b8aea061e5fc7f0df70",32:"21525729585fc8d2e630",33:"96cf6ddca1ea3f0b0e3d",34:"6f0e4cede2487bdfc50d",35:"74e0ebd55386ded71b3b",36:"6b50ec67550a24f7a80f",37:"cde869c7c61e151dcc38",38:"4eb5322269d636714c92",39:"2d621fd881d24be8da97",40:"fdfd68b9985ed0b67522",41:"1dc7c5eaba06197f0709",42:"d321b97e442a341c5250",43:"2be2bc5ca81368fb5656",44:"10d2ad5ad30fa8e2731a",45:"cd93268acdf262702d75",46:"890ef4651ff5f9722c34",47:"9962508a94ff02c76db8",48:"4e178bb297fc047a4e6a",49:"9b8ba9a96f126ccfe81b",50:"ea7512bec3250c05c5e8",51:"5de3cb7330d9f7655821",52:"b81c836457c10ffd9fa0",53:"dcacd18eb7ddde9fc78c",54:"be329e39745eb328cda0",55:"019949d300a25e2f4468",56:"f552a773086fddf5eca0",57:"479ef643ba99824488da",58:"bb47cc7ed88b5509e4d4",59:"0cf4a1f38106c48f37ce",60:"686c99fe3d602346dbd3",61:"3efbac3e4fdbafccbe1d",62:"0ee9bac30d66fb287c8f",63:"ae8434a8d7d95e4e3c64",64:"c798a9d89a8d87a43cf9",65:"984d09205b393acae25e",66:"ef9b45f25efacaeb2a6e",67:"2c46e3d1f4d1fb88d2f8",68:"87393519c0dc17c5c150",69:"c7899ecae2f2a6096c5b",70:"8f5f8e725387e359ab8b",71:"9d0cb4f8a4538cb34866",72:"67ff9934970aa6896a37",73:"2c9f39fb1f4ea9102c10",74:"e8f3c9592ed7a27f835f",75:"04c768f9b9ce3a00aac0",76:"c495e5572029de61b6bd",77:"69f6b1f64144ec9aad9f",78:"d8edc7b4d364e5078766",79:"d3d476ebbc06278aabe6",80:"d83ff5ea65a02bb86d16",81:"ea72d7d0fa4199844933",82:"fae83cd3d910c8745509",83:"55e7bac3d80fce83e41d",84:"e41ce67b219d6540a93c",85:"21c5a01ba6d0a776ae5e",86:"4cf3b774fab6733e4014",87:"1bafc4d0ac06d977df3b",88:"622bb868c4f5f2fbed2a",89:"706a3b38b3bb95d3b39f",90:"fdaa6db7cc3f25b8775f",91:"7f8a60cdfaf0fedd1c2e",92:"82fbdbd88cff015de5ef",93:"e85618ce6f7e5c1e636a",94:"65b43e7b692924a8e258",95:"39b945c075952036b933",96:"8a51816679db7d3cee81",97:"de5a55c54c0cc07ae309"}[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={100: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:"86837a2ca6def8759438",1:"80ec7107adf684998411",2:"d854fd44763a364e1275",3:"8e6a98e4f3e296b4faf0",4:"3a686b9dd41319e52398",5:"be1a7d00d5b2bac3d9c3",6:"eec60b89d02eaa190f58",7:"691df89cf2f3aee2b80a",8:"025984955d9b21ace11f",9:"9303d042d077fb4e588a",10:"c835c64e6f0d1b730e2e",11:"880662b7b914b56183d6",12:"9105f5c043108a849678",13:"9f96d27c806b6cee2a22",14:"f8615573c9269c39a93f",15:"bc441feabb34f9fffea7",16:"23a325bd42a1978ea43b",17:"b7feb44bbc97050583f0",18:"af5a057822fa979a8149",19:"8f535da68e03d90954e6",20:"7bfae1b87b1755c87d1f",21:"b4d4a7d0f95758486f16",22:"bc3dd491cf1f1752fd81",23:"004eb31b258dd091d629",24:"9b6c0ece181d5be053df",25:"a5c41dd5a0103159ce24",26:"98090da394d2fcd7acbd",27:"641bd8e26628dd9e0142",28:"03ce202ec88e05f7efaf",29:"c2819057b29b56d63feb",30:"9c4f34487539a93e13a8",31:"5bea54d13510b6ea893e",32:"21525729585fc8d2e630",33:"f0b85de427ee11efdf70",34:"b37fea57f02cc31b9003",35:"7241ff52a41e0b2b0e18",36:"98712e07e134565bb69f",37:"cde869c7c61e151dcc38",38:"848dc8ce6082c9ef897c",39:"2d621fd881d24be8da97",40:"fdfd68b9985ed0b67522",41:"1dc7c5eaba06197f0709",42:"d321b97e442a341c5250",43:"2be2bc5ca81368fb5656",44:"a8cd5650c5d444ee8d1a",45:"cd93268acdf262702d75",46:"890ef4651ff5f9722c34",47:"21bc6cb9ba8f015317e3",48:"4e178bb297fc047a4e6a",49:"9b8ba9a96f126ccfe81b",50:"ea7512bec3250c05c5e8",51:"4eb5021d98576051a14d",52:"b81c836457c10ffd9fa0",53:"b95a592d91cdd69e0818",54:"be329e39745eb328cda0",55:"019949d300a25e2f4468",56:"8afeda94caebaf57a459",57:"479ef643ba99824488da",58:"bb47cc7ed88b5509e4d4",59:"0cf4a1f38106c48f37ce",60:"a7468c8fe894d7d551de",61:"15e64535dcc55087015b",62:"272451849a2916a29a75",63:"ae8434a8d7d95e4e3c64",64:"c798a9d89a8d87a43cf9",65:"984d09205b393acae25e",66:"ef9b45f25efacaeb2a6e",67:"2c46e3d1f4d1fb88d2f8",68:"87393519c0dc17c5c150",69:"c7899ecae2f2a6096c5b",70:"98d3e8ab218e12f05455",71:"9d0cb4f8a4538cb34866",72:"67ff9934970aa6896a37",73:"2c9f39fb1f4ea9102c10",74:"e8f3c9592ed7a27f835f",75:"04c768f9b9ce3a00aac0",76:"c495e5572029de61b6bd",77:"69f6b1f64144ec9aad9f",78:"e24ee6cab3cb42c574ae",79:"d3d476ebbc06278aabe6",80:"d83ff5ea65a02bb86d16",81:"ea72d7d0fa4199844933",82:"10d14d643ea462567ccc",83:"55e7bac3d80fce83e41d",84:"e41ce67b219d6540a93c",85:"21c5a01ba6d0a776ae5e",86:"4cf3b774fab6733e4014",87:"1bafc4d0ac06d977df3b",88:"622bb868c4f5f2fbed2a",89:"706a3b38b3bb95d3b39f",90:"f1c3ba9355254c9e089a",91:"7f8a60cdfaf0fedd1c2e",92:"82fbdbd88cff015de5ef",93:"d6d6ae24e9c3b998b618",94:"65b43e7b692924a8e258",95:"21d3685aee64f8564752",96:"8a51816679db7d3cee81",97:"de5a55c54c0cc07ae309"}[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
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