Commit c46fab81 by 无尘

fix: 修改同步

parent 2df5614a
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.7845e9a9f0fabb88261ae72196f89721.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.7dbb0a71a993b5c3b5f3.js></script><script type=text/javascript src=./static/js/vendor.2be08ecde5c9eaaad9c2.js></script><script type=text/javascript src=./static/js/app.85a1e5510eac99617167.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.06e9755b90891cb0592b87558aeb3b32.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.28de0a3a3975e85ea610.js></script><script type=text/javascript src=./static/js/vendor.2be08ecde5c9eaaad9c2.js></script><script type=text/javascript src=./static/js/app.d974aac9fddb3446f065.js></script></body></html>
\ 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([23],{"33SU":function(t,e){},"AKs/":function(t,e){},ahzF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"card-record-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"52"}}},data:function(){return{}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{toSendDetail:function(t,e,a){this.$router.push("/"+(1==a?"cardSendRecord":"cardGetRecord")+"?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-record-table m-t-20"},[a("el-table",{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:"",width:"96"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("发送数量"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity))]}}])}),t._v(" "),a("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(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.usageQuantity))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])}),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.saleAmount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送卡券人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sendMemberCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("领取记录")])]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(t){a("AKs/")},"data-v-0698d03e",null).exports,r={name:"card-list-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"51"}}},data:function(){return{}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.$emit("delCard",e.coupCardId)}).catch(function(){})},toEdit:function(t,e){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{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",size:"small"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(r,l,!1,function(t){a("33SU")},"data-v-552374d2",null).exports,c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),p=a("PI0u"),f={name:"online-chat",props:{brandId:{type:String,default:function(){return""}}},components:{cardRecordTable:i,cardListTable:n},data:function(){return{activeTab:"1",leftData:[{tabId:"1",tabName:"短信提醒"},{tabId:"2",tabName:"模板消息"},{tabId:"3",tabName:"图文"},{tabId:"4",tabName:"商品"},{tabId:"5",tabName:"卡券",children:[{tabId:"51",tabName:"卡券列表"},{tabId:"52",tabName:"卡券记录"}]}],chatData:{chatFlag:!1,isMessageRemind:!1,messageRemindTime:"",isTemplateMessage:!1,isImgMessage:!1,isGoodMessage:!1,isIntegralGoodMessage:!1},rules:{messageRemindTime:[{required:!0,message:"请选择时间",trigger:"blur"}]},templateName:"",articleList:[],pageSize:4,pageNum:1,total:0,activeName:"first",goodsList:[],pointList:[],cardCoupChatSwitch:!1,cardListData:[],cardRecordData:[]}},methods:{toNewCard:function(){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon)},delCard:function(t){this.delCardList(t)},toSendDetail:function(t,e,a){this.$router.push("/sendRecord?activeTab="+this.activeTab+"&tabType="+a+"&appIcon="+this.$route.query.appIcon+"&relatedId="+(e.id||e.goodId))},changeChatFlag:function(){this.postSave(this.brandId)},handleCurrentChange:function(t){this.pageNum=t,3==this.activeTab?this.getArticleList(this.brandId):4==this.activeTab?"first"==this.activeName?this.getGoodsList(this.brandId):this.getPointList(this.brandId):51==this.activeTab?this.getCardList(this.brandId):52==this.activeTab&&this.getCardRecord(this.brandId)},saveData:Object(p.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postSave(e.brandId)})},500),postSave:function(t){var e=this;e.pageNum=1,e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second");var a={brandId:t,chatFlag:e.chatData.chatFlag?1:0,isMessageRemind:e.chatData.isMessageRemind?1:0,messageRemindTime:e.chatData.messageRemindTime,isTemplateMessage:e.chatData.isTemplateMessage?1:0,isImgMessage:e.chatData.isImgMessage?1:0,isGoodMessage:e.chatData.isGoodMessage?1:0,isIntegralGoodMessage:e.chatData.isIntegralGoodMessage?1:0,mainStoreFlag:e.chatData.mainStoreFlag,minorStoreFlag:e.chatData.minorStoreFlag,openCardStoreFlag:e.chatData.openCardStoreFlag,clerkSeeOtherFlag:e.chatData.clerkSeeOtherFlag,allowGuideContact:e.chatData.allowGuideContact,allowGuideMobile:e.chatData.allowGuideMobile,allowGuideMessage:e.chatData.allowGuideMessage,allowGuideOnlineChat:e.chatData.allowGuideOnlineChat,isSeeAuthMember:e.chatData.isSeeAuthMember};Object(c.e)("/haoban-app-member-web/customer/save-member-show-setting",a).then(function(a){var s=a.data;if(1==s.errorCode)return u.a.showmsg("保存成功","success"),3==e.activeTab&&e.chatData.isImgMessage&&e.getArticleList(t),void(4==e.activeTab&&(e.chatData.isGoodMessage&&e.getGoodsList(t),e.chatData.isIntegralGoodMessage&&e.getPointList(t),e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second"),e.chatData.isGoodMessage&&!e.chatData.isIntegralGoodMessage&&(e.activeName="first")));d.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTab:function(t){if(t.children)return this.activeTab=t.children[0].tabId,this.getCardSet(this.brandId),!1;this.pageNum=1,this.activeTab=t.tabId,this.getChatSet(this.brandId),this.getCardSet(this.brandId)},handleTab:function(t,e){this.pageNum=1,"first"==t.name?this.getGoodsList(this.brandId):this.getPointList(this.brandId)},getTemplate:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_message_template",a).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.templateName=a.result||"--"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsList:function(t){var e=this,a={pageSize:e.pageSize,pageNum:e.pageNum,brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.goodsList=a.result.list||[],void("first"==e.activeName&&(e.total=a.result.total));e.goodsList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getPointList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_integal_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.pointList=a.result.list||[],void("second"==e.activeName&&(e.total=a.result.total));e.pointList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getArticleList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_img_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.articleList=a.result.list||[],void(e.total=a.result.total);e.articleList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delCardList:function(t){var e=this,a={brandId:e.brandId,coupCardId:t};Object(c.e)("/haoban-app-member-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getCardList(e.brandId);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardListData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardRecord:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardRecordData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postSaveCard:function(t){var e=this,a={cardCoupChatSwitch:e.cardCoupChatSwitch?1:0,brandId:t};Object(c.e)("/haoban-app-member-web/customer/save-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("设置成功","success"),void(e.cardCoupChatSwitch&&e.getCardList(e.brandId));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardCoupChatSwitch=1==a.result.cardCoupChatSwitch,e.cardCoupChatSwitch=a.result.cardCoupChatSwitch,"51"==e.activeTab&&e.cardCoupChatSwitch&&(e.pageSize=4,e.getCardList(e.brandId)),void("52"==e.activeTab&&(e.pageSize=6,e.getCardRecord(e.brandId)));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-online-chat-setting",a).then(function(a){var s=a.data;1!=s.errorCode?d.a.errorMsg(s):s.result&&(s.result.chatFlag=1==s.result.chatFlag,s.result.isMessageRemind=1==s.result.isMessageRemind,s.result.messageRemindTime=s.result.messageRemindTime,s.result.isTemplateMessage=1==s.result.isTemplateMessage,s.result.isImgMessage=1==s.result.isImgMessage,s.result.isGoodMessage=1==s.result.isGoodMessage,s.result.isIntegralGoodMessage=1==s.result.isIntegralGoodMessage,e.chatData=s.result,2==e.activeTab&&e.getTemplate(t),3==e.activeTab&&s.result.isImgMessage&&(e.pageSize=4,e.getArticleList(t)),4==e.activeTab&&(e.pageSize=3,s.result.isGoodMessage&&e.getGoodsList(t),s.result.isIntegralGoodMessage&&e.getPointList(t),s.result.isIntegralGoodMessage&&!s.result.isGoodMessage&&(e.activeName="second"),s.result.isGoodMessage&&!s.result.isIntegralGoodMessage&&(e.activeName="first")))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){""!=t&&(this.getChatSet(t),this.getCardSet(t))}},mounted:function(){this.$emit("showTab","2"),""!=this.brandId&&(this.getChatSet(this.brandId),this.getCardSet(this.brandId)),""!=this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab||"1")}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"online-chat-content border-box"},[a("div",{staticClass:"online-chat-switch"},[a("span",{staticClass:"font-14 color-606266 p-r-18"},[t._v("在线沟通")]),a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeChatFlag},model:{value:t.chatData.chatFlag,callback:function(e){t.$set(t.chatData,"chatFlag",e)},expression:"chatData.chatFlag"}})],1),t._v(" "),a("div",{staticClass:"online-chat-body"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"online-chat-left"},[a("ul",[t._l(t.leftData,function(e,s){return[a("li",{key:s+"left",class:["online-chat-left_li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))]),t._v(" "),e.children&&e.children.length?a("ul",{key:s+"left1"},[t._l(e.children,function(e,s){return[a("li",{key:s+"left12",class:["online-chat-left_li child-li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))])]})],2):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"online-chat-right border-box"},[a("div",{staticClass:"online-chat-right_body"},[1==t.activeTab?a("div",{staticClass:"online-chat-message"},[a("el-form",{ref:"msgForm",staticClass:"demo-ruleForm",attrs:{model:t.chatData,rules:t.rules,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"短信提醒",prop:"name"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},model:{value:t.chatData.isMessageRemind,callback:function(e){t.$set(t.chatData,"isMessageRemind",e)},expression:"chatData.isMessageRemind"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心")])],1),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:"",prop:"messageRemindTime"}},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("下发时间设置")]),a("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:59"},placeholder:"选择时间"},model:{value:t.chatData.messageRemindTime,callback:function(e){t.$set(t.chatData,"messageRemindTime",e)},expression:"chatData.messageRemindTime"}}),a("span",{staticClass:"font-14 color-909399 p-l-20"},[t._v("该事件设置将在当日生效")])],1):t._e(),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveData("msgForm")}}},[t._v("保存")])],1):t._e()],1)],1):t._e(),t._v(" "),2==t.activeTab?a("div",{staticClass:"online-chat-template"},[t._m(0),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板消息")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isTemplateMessage,callback:function(e){t.$set(t.chatData,"isTemplateMessage",e)},expression:"chatData.isTemplateMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后次日生效。")])],1),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板名字:")]),t._v(t._s(t.templateName))])]):t._e(),t._v(" "),3==t.activeTab?a("div",{staticClass:"online-chat-article"},[t._m(1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("图文")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isImgMessage,callback:function(e){t.$set(t.chatData,"isImgMessage",e)},expression:"chatData.isImgMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC图文")])],1),t._v(" "),t.chatData.isImgMessage?a("div",{staticClass:"m-t-20 p-l-50"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.articleList,"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"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.img?a("img",{attrs:{src:e.row.img,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.title)+"\n ")])])]}}])}),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.authorName||"--"))]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),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",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"4")}}},[t._v("发送记录")])]}}])})],1),t._v(" "),0!=t.articleList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),4==t.activeTab?a("div",{staticClass:"online-chat-goods"},[t._m(2),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("达摩微商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isGoodMessage,callback:function(e){t.$set(t.chatData,"isGoodMessage",e)},expression:"chatData.isGoodMessage"}}),a("span",{staticClass:"font-14 color-303133 p-l-40"},[t._v("积分商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isIntegralGoodMessage,callback:function(e){t.$set(t.chatData,"isIntegralGoodMessage",e)},expression:"chatData.isIntegralGoodMessage"}})],1),t._v(" "),t.chatData.isGoodMessage||t.chatData.isIntegralGoodMessage?a("div",{staticClass:"m-t-20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.chatData.isGoodMessage?a("el-tab-pane",{attrs:{label:"达摩微商城",name:"first"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.goodsList,"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"},[a("div",{staticClass:"img-wrap flex flex-align-center flex-pack-center border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"单价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.stock||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"总销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.saleAmount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),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",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")])]}}])})],1)],1):t._e(),t._v(" "),t.chatData.isIntegralGoodMessage?a("el-tab-pane",{attrs:{label:"积分商城",name:"second"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.pointList,"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"},[a("div",{staticClass:"img-wrap border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"积分费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.integral))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"现金费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),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",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("发送记录")])]}}])})],1)],1):t._e()],1),t._v(" "),0!=t.goodsList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),51==t.activeTab?a("div",{staticClass:"online-chat-card"},[t._m(3),t._v(" "),a("div",{staticClass:"m-t-20 m-b-20 flex flex-space-between"},[a("div",{staticClass:"card-top-left"},[a("span",{staticClass:"font-14 color-303133"},[t._v("卡券")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSaveCard(t.brandId)}},model:{value:t.cardCoupChatSwitch,callback:function(e){t.cardCoupChatSwitch=e},expression:"cardCoupChatSwitch"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC卡券")])],1),t._v(" "),a("div",{staticClass:"card-top-right"},[a("el-button",{attrs:{disabled:!t.cardCoupChatSwitch,type:"primary"},on:{click:t.toNewCard}},[t._v("新建卡券")])],1)]),t._v(" "),t.cardCoupChatSwitch?a("card-list-table",{attrs:{activeTab:t.activeTab,tableData:t.cardListData},on:{delCard:t.delCard}}):t._e(),t._v(" "),t.cardListData.length&&t.cardCoupChatSwitch?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e(),t._v(" "),52==t.activeTab?a("div",{staticClass:"online-chat-card_record"},[t._m(4),t._v(" "),a("card-record-table",{attrs:{activeTab:t.activeTab,tableData:t.cardRecordData}}),t._v(" "),t.cardRecordData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()])])])])])])},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 font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:导购可主动发起聊天,发送形式为模板消息,请配置模板消息内容。频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用。")])])])},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 font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员")])])])},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 font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员")])])])},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 font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员")])])])},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 font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])}]};var h=a("VU/8")(f,m,!1,function(t){a("lJsx")},"data-v-350dec7c",null);e.default=h.exports},lJsx:function(t,e){}});
\ No newline at end of file
webpackJsonp([23],{"33SU":function(t,e){},"AKs/":function(t,e){},AyF0:function(t,e){},ahzF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"card-record-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"52"}}},data:function(){return{}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{toSendDetail:function(t,e,a){this.$router.push("/"+(1==a?"cardSendRecord":"cardGetRecord")+"?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-record-table m-t-20"},[a("el-table",{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:"",width:"96"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("发送数量"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity))]}}])}),t._v(" "),a("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(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.usageQuantity))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])}),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.saleAmount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送卡券人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sendMemberCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("领取记录")])]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(t){a("AKs/")},"data-v-0698d03e",null).exports,r={name:"card-list-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"51"}}},data:function(){return{}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.$emit("delCard",e.coupCardId)}).catch(function(){})},toEdit:function(t,e){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{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",size:"small"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(r,l,!1,function(t){a("33SU")},"data-v-552374d2",null).exports,c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),p=a("PI0u"),f={name:"online-chat",props:{brandId:{type:String,default:function(){return""}}},components:{cardRecordTable:i,cardListTable:n},data:function(){return{activeTab:"1",leftData:[{tabId:"1",tabName:"短信提醒"},{tabId:"2",tabName:"模板消息"},{tabId:"3",tabName:"图文"},{tabId:"4",tabName:"商品"},{tabId:"5",tabName:"卡券",children:[{tabId:"51",tabName:"卡券列表"},{tabId:"52",tabName:"卡券记录"}]}],chatData:{chatFlag:!1,isMessageRemind:!1,messageRemindTime:"",isTemplateMessage:!1,isImgMessage:!1,isGoodMessage:!1,isIntegralGoodMessage:!1},rules:{messageRemindTime:[{required:!0,message:"请选择时间",trigger:"blur"}]},templateName:"",articleList:[],pageSize:4,pageNum:1,total:0,activeName:"first",goodsList:[],pointList:[],cardCoupChatSwitch:!1,cardListData:[],cardRecordData:[]}},methods:{toNewCard:function(){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon)},delCard:function(t){this.delCardList(t)},toSendDetail:function(t,e,a){this.$router.push("/sendRecord?activeTab="+this.activeTab+"&tabType="+a+"&appIcon="+this.$route.query.appIcon+"&relatedId="+(e.id||e.goodId))},changeChatFlag:function(){this.postSave(this.brandId)},handleCurrentChange:function(t){this.pageNum=t,3==this.activeTab?this.getArticleList(this.brandId):4==this.activeTab?"first"==this.activeName?this.getGoodsList(this.brandId):this.getPointList(this.brandId):51==this.activeTab?this.getCardList(this.brandId):52==this.activeTab&&this.getCardRecord(this.brandId)},saveData:Object(p.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postSave(e.brandId)})},500),postSave:function(t){var e=this;e.pageNum=1,e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second");var a={brandId:t,chatFlag:e.chatData.chatFlag?1:0,isMessageRemind:e.chatData.isMessageRemind?1:0,messageRemindTime:e.chatData.messageRemindTime,isTemplateMessage:e.chatData.isTemplateMessage?1:0,isImgMessage:e.chatData.isImgMessage?1:0,isGoodMessage:e.chatData.isGoodMessage?1:0,isIntegralGoodMessage:e.chatData.isIntegralGoodMessage?1:0,mainStoreFlag:e.chatData.mainStoreFlag,minorStoreFlag:e.chatData.minorStoreFlag,openCardStoreFlag:e.chatData.openCardStoreFlag,clerkSeeOtherFlag:e.chatData.clerkSeeOtherFlag,allowGuideContact:e.chatData.allowGuideContact,allowGuideMobile:e.chatData.allowGuideMobile,allowGuideMessage:e.chatData.allowGuideMessage,allowGuideOnlineChat:e.chatData.allowGuideOnlineChat,isSeeAuthMember:e.chatData.isSeeAuthMember};Object(c.e)("/haoban-app-member-web/customer/save-member-show-setting",a).then(function(a){var s=a.data;if(1==s.errorCode)return u.a.showmsg("保存成功","success"),3==e.activeTab&&e.chatData.isImgMessage&&e.getArticleList(t),void(4==e.activeTab&&(e.chatData.isGoodMessage&&e.getGoodsList(t),e.chatData.isIntegralGoodMessage&&e.getPointList(t),e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second"),e.chatData.isGoodMessage&&!e.chatData.isIntegralGoodMessage&&(e.activeName="first")));d.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTab:function(t){if(t.children)return this.activeTab=t.children[0].tabId,this.getCardSet(this.brandId),!1;this.pageNum=1,this.activeTab=t.tabId,this.getChatSet(this.brandId),this.getCardSet(this.brandId)},handleTab:function(t,e){this.pageNum=1,"first"==t.name?this.getGoodsList(this.brandId):this.getPointList(this.brandId)},getTemplate:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_message_template",a).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.templateName=a.result||"--"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsList:function(t){var e=this,a={pageSize:e.pageSize,pageNum:e.pageNum,brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.goodsList=a.result.list||[],void("first"==e.activeName&&(e.total=a.result.total));e.goodsList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getPointList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_integal_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.pointList=a.result.list||[],void("second"==e.activeName&&(e.total=a.result.total));e.pointList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getArticleList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_img_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.articleList=a.result.list||[],void(e.total=a.result.total);e.articleList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delCardList:function(t){var e=this,a={brandId:e.brandId,coupCardId:t};Object(c.e)("/haoban-app-member-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getCardList(e.brandId);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardListData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardRecord:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardRecordData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postSaveCard:function(t){var e=this,a={cardCoupChatSwitch:e.cardCoupChatSwitch?1:0,brandId:t};Object(c.e)("/haoban-app-member-web/customer/save-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("设置成功","success"),void(e.cardCoupChatSwitch&&e.getCardList(e.brandId));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardCoupChatSwitch=1==a.result.cardCoupChatSwitch,e.cardCoupChatSwitch=a.result.cardCoupChatSwitch,"51"==e.activeTab&&e.cardCoupChatSwitch&&(e.pageSize=4,e.getCardList(e.brandId)),void("52"==e.activeTab&&(e.pageSize=6,e.getCardRecord(e.brandId)));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-online-chat-setting",a).then(function(a){var s=a.data;1!=s.errorCode?d.a.errorMsg(s):s.result&&(s.result.chatFlag=1==s.result.chatFlag,s.result.isMessageRemind=1==s.result.isMessageRemind,s.result.messageRemindTime=s.result.messageRemindTime,s.result.isTemplateMessage=1==s.result.isTemplateMessage,s.result.isImgMessage=1==s.result.isImgMessage,s.result.isGoodMessage=1==s.result.isGoodMessage,s.result.isIntegralGoodMessage=1==s.result.isIntegralGoodMessage,e.chatData=s.result,2==e.activeTab&&e.getTemplate(t),3==e.activeTab&&s.result.isImgMessage&&(e.pageSize=4,e.getArticleList(t)),4==e.activeTab&&(e.pageSize=3,s.result.isGoodMessage&&e.getGoodsList(t),s.result.isIntegralGoodMessage&&e.getPointList(t),s.result.isIntegralGoodMessage&&!s.result.isGoodMessage&&(e.activeName="second"),s.result.isGoodMessage&&!s.result.isIntegralGoodMessage&&(e.activeName="first")))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){""!=t&&(this.getChatSet(t),this.getCardSet(t))}},mounted:function(){this.$emit("showTab","2"),""!=this.brandId&&(this.getChatSet(this.brandId),this.getCardSet(this.brandId)),""!=this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab||"1")}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"online-chat-content border-box"},[a("div",{staticClass:"online-chat-switch"},[a("span",{staticClass:"font-14 color-606266 p-r-18"},[t._v("在线沟通")]),a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeChatFlag},model:{value:t.chatData.chatFlag,callback:function(e){t.$set(t.chatData,"chatFlag",e)},expression:"chatData.chatFlag"}})],1),t._v(" "),a("div",{staticClass:"online-chat-body"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"online-chat-left"},[a("ul",[t._l(t.leftData,function(e,s){return[a("li",{key:s+"left",class:["online-chat-left_li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))]),t._v(" "),e.children&&e.children.length?a("ul",{key:s+"left1"},[t._l(e.children,function(e,s){return[a("li",{key:s+"left12",class:["online-chat-left_li child-li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))])]})],2):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"online-chat-right border-box"},[a("div",{staticClass:"online-chat-right_body"},[1==t.activeTab?a("div",{staticClass:"online-chat-message"},[a("el-form",{ref:"msgForm",staticClass:"demo-ruleForm",attrs:{model:t.chatData,rules:t.rules,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"短信提醒",prop:"name"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isMessageRemind,callback:function(e){t.$set(t.chatData,"isMessageRemind",e)},expression:"chatData.isMessageRemind"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心")])],1),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:"",prop:"messageRemindTime"}},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("下发时间设置")]),a("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:59"},placeholder:"选择时间"},model:{value:t.chatData.messageRemindTime,callback:function(e){t.$set(t.chatData,"messageRemindTime",e)},expression:"chatData.messageRemindTime"}}),a("span",{staticClass:"font-14 color-909399 p-l-20"},[t._v("该事件设置将在当日生效")])],1):t._e(),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveData("msgForm")}}},[t._v("保存")])],1):t._e()],1)],1):t._e(),t._v(" "),2==t.activeTab?a("div",{staticClass:"online-chat-template"},[t._m(0),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板消息")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isTemplateMessage,callback:function(e){t.$set(t.chatData,"isTemplateMessage",e)},expression:"chatData.isTemplateMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后次日生效。")])],1),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板名字:")]),t._v(t._s(t.templateName))])]):t._e(),t._v(" "),3==t.activeTab?a("div",{staticClass:"online-chat-article"},[t._m(1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("图文")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isImgMessage,callback:function(e){t.$set(t.chatData,"isImgMessage",e)},expression:"chatData.isImgMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC图文")])],1),t._v(" "),t.chatData.isImgMessage?a("div",{staticClass:"m-t-20 p-l-50"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.articleList,"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"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.img?a("img",{attrs:{src:e.row.img,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.title)+"\n ")])])]}}])}),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.authorName||"--"))]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),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",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"4")}}},[t._v("发送记录")])]}}])})],1),t._v(" "),0!=t.articleList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),4==t.activeTab?a("div",{staticClass:"online-chat-goods"},[t._m(2),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("达摩微商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isGoodMessage,callback:function(e){t.$set(t.chatData,"isGoodMessage",e)},expression:"chatData.isGoodMessage"}}),a("span",{staticClass:"font-14 color-303133 p-l-40"},[t._v("积分商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isIntegralGoodMessage,callback:function(e){t.$set(t.chatData,"isIntegralGoodMessage",e)},expression:"chatData.isIntegralGoodMessage"}})],1),t._v(" "),t.chatData.isGoodMessage||t.chatData.isIntegralGoodMessage?a("div",{staticClass:"m-t-20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.chatData.isGoodMessage?a("el-tab-pane",{attrs:{label:"达摩微商城",name:"first"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.goodsList,"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"},[a("div",{staticClass:"img-wrap flex flex-align-center flex-pack-center border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"单价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.stock||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"总销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.saleAmount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),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",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")])]}}])})],1)],1):t._e(),t._v(" "),t.chatData.isIntegralGoodMessage?a("el-tab-pane",{attrs:{label:"积分商城",name:"second"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.pointList,"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"},[a("div",{staticClass:"img-wrap border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"积分费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.integral))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"现金费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),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",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("发送记录")])]}}])})],1)],1):t._e()],1),t._v(" "),0!=t.goodsList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),51==t.activeTab?a("div",{staticClass:"online-chat-card"},[t._m(3),t._v(" "),a("div",{staticClass:"m-t-20 m-b-20 flex flex-space-between"},[a("div",{staticClass:"card-top-left"},[a("span",{staticClass:"font-14 color-303133"},[t._v("卡券")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSaveCard(t.brandId)}},model:{value:t.cardCoupChatSwitch,callback:function(e){t.cardCoupChatSwitch=e},expression:"cardCoupChatSwitch"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC卡券")])],1),t._v(" "),a("div",{staticClass:"card-top-right"},[a("el-button",{attrs:{disabled:!t.cardCoupChatSwitch,type:"primary"},on:{click:t.toNewCard}},[t._v("新建卡券")])],1)]),t._v(" "),t.cardCoupChatSwitch?a("card-list-table",{attrs:{activeTab:t.activeTab,tableData:t.cardListData},on:{delCard:t.delCard}}):t._e(),t._v(" "),t.cardListData.length&&t.cardCoupChatSwitch?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e(),t._v(" "),52==t.activeTab?a("div",{staticClass:"online-chat-card_record"},[t._m(4),t._v(" "),a("card-record-table",{attrs:{activeTab:t.activeTab,tableData:t.cardRecordData}}),t._v(" "),t.cardRecordData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()])])])])])])},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 font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:导购可主动发起聊天,发送形式为模板消息,请配置模板消息内容。频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用。")])])])},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 font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员")])])])},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 font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员")])])])},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 font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员")])])])},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 font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])}]};var h=a("VU/8")(f,m,!1,function(t){a("AyF0")},"data-v-c95a8b4a",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([49],{Ltee:function(e,t){},"N+Or":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("gBtx"),o=a.n(s),r=a("Xxa5"),n=a.n(r),i=a("exGp"),l=a.n(i),c=a("Ke24"),u=a("Ie7z"),m=a("jxcq"),d=a("a9gP"),p=a("3E4D"),g=a("Ch4/"),b=a("PI0u"),h=a("P9l9"),f={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,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},topMenuData:[{id:"1",name:"会员搜索设置"}],activeId:"1",overTimeSeeFlag:"",conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,a={brandId:t.brandId||e};Object(h.e)("/haoban-app-member-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(b.a)(function(){var e=this,t={brandId:e.brandId};Object(h.e)("/haoban-app-member-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("同步成功","success"),void e.getSyncDate();g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return l()(n.a.mark(function t(){var s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a,"first"!=e.name){t.next=5;break}s.getCustomerSet(s.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}s.getShowSet(s.brandId),t.next=15;break;case 9:return t.next=11,s.getGroupClassSet(s.brandId);case 11:return t.next=13,s.getGroupClassify(s.brandId);case 13:return t.next=15,s.getGroupList(s.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.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={brandId:e.brandId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("设置成功","success"),!1;g.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(b.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={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEditGroup:function(e,t){this.memberTagGroupId=t.memberTagGroupId,this.getGroupSet()},getGroupSet:function(){var e=this,t={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId};Object(h.e)("/haoban-app-member-web/memberGroup/find-gorup-see-range",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.label=e.name}),e.defaultStoreList=a.result||[],void(e.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1});g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelectedList:function(e){console.log(e);this.defaultStoreList=e||[],this.saveGorupRange()},saveGorupRange:function(){var e=this,t=[],a=[];e.defaultStoreList.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var s={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId,groupList:t||[],storeList:a||[]};Object(h.e)("/haoban-app-member-web/memberGroup/save-gorup-see-range",s).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("编辑成功","success"),void(e.defaultStoreList=[]);g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toChangeTemp:function(e,t,a){var s=this;console.log(e,t,a);var o={brandId:s.brandId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-is-template-message",o).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("操作成功","success"),s.pageNum=1,void s.getGroupList(s.brandId);a.isSendTemplate=!1,g.a.errorMsg(t)}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={brandId:e,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(h.e)("/haoban-app-member-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(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);g.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submit:Object(b.a)(function(e){this.setData(e)},500),setData:function(e){var t=this,a={brandId:t.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},s=void 0;"showFlag"!=e?(a[e]=t.myCustomData[e]?1:0,s="/haoban-app-member-web/customer/save-online-chat-setting","searchFlag"===e&&(s="/haoban-app-member-web/customer/save-customer-setting")):(a.mainStoreFlag=t.myCustomData.mainStoreFlag?1:0,a.minorStoreFlag=t.myCustomData.minorStoreFlag?1:0,a.openCardStoreFlag=t.myCustomData.openCardStoreFlag?1:0,a.clerkSeeOtherFlag=t.myCustomData.clerkSeeOtherFlag?1:0,a.allowGuideContact=t.myCustomData.allowGuideContact?1:0,a.allowGuideMobile=t.myCustomData.allowGuideMobile?1:0,a.allowGuideMessage=t.myCustomData.allowGuideMessage?1:0,a.allowGuideOnlineChat=t.myCustomData.allowGuideOnlineChat?1:0,a.isSeeAuthMember=t.myCustomData.isSeeAuthMember?1:0,a.chatFlag=t.myCustomData.chatFlag,a.isMessageRemind=t.myCustomData.isMessageRemind,a.messageRemindTime=t.myCustomData.messageRemindTime,a.isTemplateMessage=t.myCustomData.isTemplateMessage,a.isImgMessage=t.myCustomData.isImgMessage,a.isGoodMessage=t.myCustomData.isGoodMessage,a.isIntegralGoodMessage=t.myCustomData.isIntegralGoodMessage,s="/haoban-app-member-web/customer/save-member-show-setting"),Object(h.e)(s,a).then(function(e){var t=e.data;1!=t.errorCode?g.a.errorMsg(t):p.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-customer-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(t.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getShowSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-member-show-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(a.result.mainStoreFlag=1==a.result.mainStoreFlag,a.result.minorStoreFlag=1==a.result.minorStoreFlag,a.result.openCardStoreFlag=1==a.result.openCardStoreFlag,a.result.clerkSeeOtherFlag=1==a.result.clerkSeeOtherFlag,a.result.allowGuideContact=1==a.result.allowGuideContact,a.result.allowGuideMobile=1==a.result.allowGuideMobile,a.result.allowGuideMessage=1==a.result.allowGuideMessage,a.result.allowGuideOnlineChat=1==a.result.allowGuideOnlineChat,a.result.isSeeAuthMember=1==a.result.isSeeAuthMember,a.result.searchFlag=1==a.result.searchFlag,t.myCustomData=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getCustomerSet(e),this.getShowSet(e),this.getGroupClassify(e),this.getGroupList(e),this.getGroupClassSet(e),this.getSyncDate(e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){1==e?(this.getShowSet(this.brandId),this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},mounted:function(){this.$emit("showTab","1"),this.brandId&&1!=this.brandId&&(this.getCustomerSet(this.brandId),this.getShowSet(this.brandId),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))},components:{commonDetailTop:c.a,vueSelectStore:u.a,onlineChat:m.a,chatLog:d.a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[1==e.tabType?a("div",[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"会员搜索设置",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员展示设置",name:"second"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员分组设置",name:"third"}})],1)],1),e._v(" "),"first"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:e.myCustomData.searchFlag,callback:function(t){e.$set(e.myCustomData,"searchFlag",t)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")]),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("searchFlag")}}},[e._v("保 存")])],1)],1):e._e(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已认证会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店已认证会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.changeAllowGuide},model:{value:e.myCustomData.allowGuideContact,callback:function(t){e.$set(e.myCustomData,"allowGuideContact",t)},expression:"myCustomData.allowGuideContact"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("允许导购主动联系会员")]),a("span",{staticClass:"font-14 color-909399 p-l-38"},[e._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),e._v(" "),e.myCustomData.allowGuideContact?a("div",[a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(t){e.$set(e.myCustomData,"allowGuideMobile",t)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(t){e.$set(e.myCustomData,"allowGuideMessage",t)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(t){e.$set(e.myCustomData,"allowGuideOnlineChat",t)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("消息")])],1):e._e(),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("showFlag")}}},[e._v("保 存")])],1)]):e._e(),e._v(" "),"third"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap font-0"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入分组名称搜索","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"}}),e._v(" "),a("el-select",{staticClass:"w-105 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),e._v(" "),a("el-select",{staticClass:"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(" "),e._m(0),e._v(" "),a("div",{staticClass:"m-t-20 m-b-20"},[a("div",{staticClass:"switch-wrap m-t-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-align-center"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[e._v("会员分组到期后不展示"),a("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),a("div",[a("span",{staticClass:"font-14 color-606266"},[e._v("最近一次同步时间:")]),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")])],1)])])]),e._v(" "),a("div",[a("el-table",{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.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+"号":"-")+"\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.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",[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("模板消息设置"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.toChangeTemp(a,t.$index,t.row)}},model:{value:t.row.isSendTemplate,callback:function(a){e.$set(t.row,"isSendTemplate",a)},expression:"scope.row.isSendTemplate"}})]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅可编辑能在好办展示的分组",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("操作"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditGroup(t.$index,t.row)}}},[e._v("编辑分组可见范围")])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)]):e._e()]):e._e(),e._v(" "),2==e.tabType?a("div",[a("online-chat",{attrs:{brandId:e.brandId}})],1):e._e(),e._v(" "),3==e.tabType?a("div",[a("chat-log",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"condition-tip m-t-20 m-b-20"},[t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("注:GIC设置分组后,好办会员分组列表次日刷新,每日刷新一次,仅展示GIC中开启【好办展示】的会员分组")])])])])}]};var C=a("VU/8")(f,v,!1,function(e){a("Ltee")},"data-v-78204e64",null);t.default=C.exports}});
\ No newline at end of file
webpackJsonp([5,45,52,63,71,88],{"1NWy":function(t,e){},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){},FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),o=i.n(c),r=i("mvHQ"),d=i.n(r),m=i("DAYN"),p=i.n(m),u=i("Isrn"),h=i("l46T"),v=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),k=i("P9l9"),w={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"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}]}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(k.e)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId+"&appIcon="+e.$route.query.appIcon);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,brandId:e.brandId,templateContent:d()(t)};Object(k.e)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(k.e)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(o()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(k.e)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(k.e)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(o()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(o()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:h.a,imageCom:v.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(w,T,!1,function(t){i("z4Rk")},"data-v-0e7e2e81",null);e.default=M.exports},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=l.exports},"fIe/":function(t,e){},lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("fIe/")},"data-v-3fd29910",null);e.default=l.exports},z4Rk:function(t,e){}});
\ No newline at end of file
webpackJsonp([5,45,53,63,71,88],{"1NWy":function(t,e){},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){},FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),o=i.n(c),r=i("mvHQ"),d=i.n(r),m=i("DAYN"),p=i.n(m),u=i("Isrn"),h=i("l46T"),v=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),k=i("P9l9"),w={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"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}]}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(k.e)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId+"&appIcon="+e.$route.query.appIcon);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:1,brandId:e.brandId,templateContent:d()(t)};Object(k.e)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(k.e)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(o()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(k.e)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(k.e)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(o()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(o()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:h.a,imageCom:v.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e(),t._v(" "),9==e.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):t._e(),t._v(" "),10==e.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):t._e(),t._v(" "),11==e.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.getZhLen(e.title)>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(w,T,!1,function(t){i("z4Rk")},"data-v-0e7e2e81",null);e.default=M.exports},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("1NWy")},"data-v-97f6d394",null);e.default=l.exports},"fIe/":function(t,e){},lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("fIe/")},"data-v-3fd29910",null);e.default=l.exports},z4Rk:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{"4m/B":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){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("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("Dpp6")},"data-v-77cdecbc",null);t.default=m.exports},Dpp6:function(e,t){}});
\ No newline at end of file
webpackJsonp([50],{"4m/B":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.e)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){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("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("Dpp6")},"data-v-77cdecbc",null);t.default=m.exports},Dpp6:function(e,t){}});
\ No newline at end of file
webpackJsonp([50],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("Xxa5"),o=t.n(n),r=t("exGp"),s=t.n(r),m=t("3Xzz"),i=t("WSbm"),c=t("P9l9"),d={name:"employeeDetail",components:{navCrumb:m.a,employeeInfo:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this;return s()(o.a.mark(function t(){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.$refs.emmployInfo.submitForm("employeeForm");case 2:t.sent&&(n=a.$refs.emmployInfo.info,a.isNew?a.addEmployee(n,e):a.saveEmployeeInfo(n));case 4:case"end":return t.stop()}},t,a)}))()},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?(t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1,nationcode:"86"},t.$refs.emmployInfo.defaultSelection=[],t.$refs.emmployInfo.resetForm("employeeForm")):window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},p={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var u=t("VU/8")(d,p,!1,function(e){t("XqOc")},null,null);a.default=u.exports},XqOc:function(e,a){}});
\ No newline at end of file
webpackJsonp([51],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("Xxa5"),o=t.n(n),r=t("exGp"),s=t.n(r),m=t("3Xzz"),i=t("WSbm"),c=t("P9l9"),d={name:"employeeDetail",components:{navCrumb:m.a,employeeInfo:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this;return s()(o.a.mark(function t(){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.$refs.emmployInfo.submitForm("employeeForm");case 2:t.sent&&(n=a.$refs.emmployInfo.info,a.isNew?a.addEmployee(n,e):a.saveEmployeeInfo(n));case 4:case"end":return t.stop()}},t,a)}))()},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?(t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1,nationcode:"86"},t.$refs.emmployInfo.defaultSelection=[],t.$refs.emmployInfo.resetForm("employeeForm")):window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode,nationcode:e.nationcode};Object(c.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},p={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var u=t("VU/8")(d,p,!1,function(e){t("XqOc")},null,null);a.default=u.exports},XqOc:function(e,a){}});
\ No newline at end of file
webpackJsonp([51],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([52],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("yw/n")},null,null);n.default=u.exports},"yw/n":function(e,n){}});
\ No newline at end of file
webpackJsonp([53],{"N+Or":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("gBtx"),o=a.n(s),r=a("Xxa5"),n=a.n(r),i=a("exGp"),l=a.n(i),c=a("Ke24"),u=a("Ie7z"),m=a("jxcq"),d=a("a9gP"),p=a("3E4D"),g=a("Ch4/"),b=a("PI0u"),h=a("P9l9"),f={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,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},topMenuData:[{id:"1",name:"会员搜索设置"}],activeId:"1",overTimeSeeFlag:"",conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{toSync:Object(b.a)(function(){var e=this,t={brandId:e.brandId};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-group-setting",t).then(function(e){var t=e.data;1!=t.errorCode?g.a.errorMsg(t):p.a.showmsg("同步成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return l()(n.a.mark(function t(){var s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a,"first"!=e.name){t.next=5;break}s.getCustomerSet(s.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}s.getShowSet(s.brandId),t.next=15;break;case 9:return t.next=11,s.getGroupClassSet(s.brandId);case 11:return t.next=13,s.getGroupClassify(s.brandId);case 13:return t.next=15,s.getGroupList(s.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.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={brandId:e.brandId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("设置成功","success"),!1;g.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(b.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={brandId:e};Object(h.e)("/haoban-app-member-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEditGroup:function(e,t){this.memberTagGroupId=t.memberTagGroupId,this.getGroupSet()},getGroupSet:function(){var e=this,t={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId};Object(h.e)("/haoban-app-member-web/memberGroup/find-gorup-see-range",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result&&a.result.length&&a.result.forEach(function(e){2===o()(e.type)&&(e.groupId=e.id),e.label=e.name}),e.defaultStoreList=a.result||[],void(e.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1});g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelectedList:function(e){console.log(e);this.defaultStoreList=e||[],this.saveGorupRange()},saveGorupRange:function(){var e=this,t=[],a=[];e.defaultStoreList.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var s={brandId:e.brandId,memberTagGroupId:e.memberTagGroupId,groupList:t||[],storeList:a||[]};Object(h.e)("/haoban-app-member-web/memberGroup/save-gorup-see-range",s).then(function(t){var a=t.data;if(1==a.errorCode)return p.a.showmsg("编辑成功","success"),void(e.defaultStoreList=[]);g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toChangeTemp:function(e,t,a){var s=this;console.log(e,t,a);var o={brandId:s.brandId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(h.e)("/haoban-app-member-web/memberGroup/save-member-group-is-template-message",o).then(function(e){var t=e.data;if(1==t.errorCode)return p.a.showmsg("操作成功","success"),s.pageNum=1,void s.getGroupList(s.brandId);g.a.errorMsg(t)}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={brandId:e,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(h.e)("/haoban-app-member-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(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);g.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},submit:Object(b.a)(function(e){this.setData(e)},500),setData:function(e){var t=this,a={brandId:t.brandId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId},s=void 0;"showFlag"!=e?(a[e]=t.myCustomData[e]?1:0,s="/haoban-app-member-web/customer/save-online-chat-setting","searchFlag"===e&&(s="/haoban-app-member-web/customer/save-customer-setting")):(a.mainStoreFlag=t.myCustomData.mainStoreFlag?1:0,a.minorStoreFlag=t.myCustomData.minorStoreFlag?1:0,a.openCardStoreFlag=t.myCustomData.openCardStoreFlag?1:0,a.clerkSeeOtherFlag=t.myCustomData.clerkSeeOtherFlag?1:0,a.allowGuideContact=t.myCustomData.allowGuideContact?1:0,a.allowGuideMobile=t.myCustomData.allowGuideMobile?1:0,a.allowGuideMessage=t.myCustomData.allowGuideMessage?1:0,a.allowGuideOnlineChat=t.myCustomData.allowGuideOnlineChat?1:0,a.isSeeAuthMember=t.myCustomData.isSeeAuthMember?1:0,a.chatFlag=t.myCustomData.chatFlag,a.isMessageRemind=t.myCustomData.isMessageRemind,a.messageRemindTime=t.myCustomData.messageRemindTime,a.isTemplateMessage=t.myCustomData.isTemplateMessage,a.isImgMessage=t.myCustomData.isImgMessage,a.isGoodMessage=t.myCustomData.isGoodMessage,a.isIntegralGoodMessage=t.myCustomData.isIntegralGoodMessage,s="/haoban-app-member-web/customer/save-member-show-setting"),Object(h.e)(s,a).then(function(e){var t=e.data;1!=t.errorCode?g.a.errorMsg(t):p.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-customer-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(t.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getShowSet:function(e){var t=this,a={brandId:e};Object(h.e)("/haoban-app-member-web/customer/find-member-show-setting",a).then(function(e){var a=e.data;1!=a.errorCode?g.a.errorMsg(a):a.result&&(a.result.mainStoreFlag=1==a.result.mainStoreFlag,a.result.minorStoreFlag=1==a.result.minorStoreFlag,a.result.openCardStoreFlag=1==a.result.openCardStoreFlag,a.result.clerkSeeOtherFlag=1==a.result.clerkSeeOtherFlag,a.result.allowGuideContact=1==a.result.allowGuideContact,a.result.allowGuideMobile=1==a.result.allowGuideMobile,a.result.allowGuideMessage=1==a.result.allowGuideMessage,a.result.allowGuideOnlineChat=1==a.result.allowGuideOnlineChat,a.result.isSeeAuthMember=1==a.result.isSeeAuthMember,a.result.searchFlag=1==a.result.searchFlag,t.myCustomData=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getCustomerSet(e),this.getShowSet(e),this.getGroupClassify(e),this.getGroupList(e),this.getGroupClassSet(e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)},tabType:function(e,t){1==e?(this.getShowSet(this.brandId),this.topMenuData=[{id:"1",name:"会员搜索设置"}],this.activeId=1):(this.topMenuData=[{id:"2",name:"在线沟通设置"}],this.activeId="2")}},mounted:function(){this.$emit("showTab","1"),this.brandId&&1!=this.brandId&&(this.getCustomerSet(this.brandId),this.getShowSet(this.brandId),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId))},components:{commonDetailTop:c.a,vueSelectStore:u.a,onlineChat:m.a,chatLog:d.a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[1==e.tabType?a("div",[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"会员搜索设置",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员展示设置",name:"second"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"会员分组设置",name:"third"}})],1)],1),e._v(" "),"first"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:e.myCustomData.searchFlag,callback:function(t){e.$set(e.myCustomData,"searchFlag",t)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")]),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("searchFlag")}}},[e._v("保 存")])],1)],1):e._e(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已认证会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店已认证会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),a("span",{staticClass:"font-14 color-909399"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.changeAllowGuide},model:{value:e.myCustomData.allowGuideContact,callback:function(t){e.$set(e.myCustomData,"allowGuideContact",t)},expression:"myCustomData.allowGuideContact"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("允许导购主动联系会员")]),a("span",{staticClass:"font-14 color-909399 p-l-38"},[e._v("注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员")])],1),e._v(" "),e.myCustomData.allowGuideContact?a("div",[a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(t){e.$set(e.myCustomData,"allowGuideMobile",t)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(t){e.$set(e.myCustomData,"allowGuideMessage",t)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(t){e.$set(e.myCustomData,"allowGuideOnlineChat",t)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("消息")])],1):e._e(),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("showFlag")}}},[e._v("保 存")])],1)]):e._e(),e._v(" "),"third"==e.activeName?a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap font-0"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入分组名称搜索","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"}}),e._v(" "),a("el-select",{staticClass:"w-105 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),e._v(" "),a("el-select",{staticClass:"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(" "),e._m(0),e._v(" "),a("div",{staticClass:"m-t-20 m-b-20"},[a("div",{staticClass:"switch-wrap m-t-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-align-center"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[e._v("会员分组到期后不展示"),a("span",{staticClass:"el-icon-info font-12 color-909399"})])])],1),e._v(" "),a("div",[a("span",{staticClass:"font-14 color-606266"},[e._v("最近一次同步时间:")]),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")])],1)])])]),e._v(" "),a("div",[a("el-table",{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.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+"号":"-")+"\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.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",[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"<前提:开启模板消息开关。仅支持专属导购对<我的顾客-会员分组>中的分组下会员发送模板消息>",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("模板消息设置"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){e.toChangeTemp(a,t.$index,t.row)}},model:{value:t.row.isSendTemplate,callback:function(a){e.$set(t.row,"isSendTemplate",a)},expression:"scope.row.isSendTemplate"}})]}}])}),e._v(" "),a("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"仅可编辑能在好办展示的分组",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[e._v("操作"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.toEditGroup(t.$index,t.row)}}},[e._v("编辑分组可见范围")])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)]):e._e()]):e._e(),e._v(" "),2==e.tabType?a("div",[a("online-chat",{attrs:{brandId:e.brandId}})],1):e._e(),e._v(" "),3==e.tabType?a("div",[a("chat-log",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"condition-tip m-t-20 m-b-20"},[t("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("注:GIC设置分组后,好办会员分组列表次日刷新,每日刷新一次,仅展示GIC中开启【好办展示】的会员分组")])])])])}]};var C=a("VU/8")(f,v,!1,function(e){a("VG5c")},"data-v-6a2309ef",null);t.default=C.exports},VG5c:function(e,t){}});
\ No newline at end of file
webpackJsonp([52],{FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([53],{FdYP:function(t,e){},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("FdYP")},"data-v-6c75d59f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([92],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("fZjL"),p=n.n(r),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,u=n("lRwf"),d=n.n(u),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);d.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"我的顾客的",redirect:"/workTimeManage",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/workTimeManage",name:"会员基础设置",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],D=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),k=n("zL8q"),w=n.n(k),R=n("Rf8U"),x=n.n(R),C=n("mtWM"),S=n.n(C),T=n("bOdI"),b=n.n(T),E=n("SJI6"),I=n.n(E);d.a.use(I.a);var M=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},b()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(f,"title",function(e,t){e.title=t}),b()(f,"show",function(e,t){e.show=t}),f)}),V=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+a+" "+r+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n;return t.getFullYear()+"-"+o+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+a+" "+r+":"+p+":"+i}}}),q=n("TUaa"),H=n.n(q),P=n("tyqE"),j=n.n(P),F=n("pRVe"),L=n.n(F),G=n("SE7k"),N=n.n(G),O=n("XsK6"),Y=n.n(O),z=n("QRL9"),J=n.n(z),K=n("2Pnh"),U=n.n(K),B=n("l9mu"),X=n.n(B),Z={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(r<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(Z),Vue.use(Y.a),Vue.use(J.a),Vue.use(N.a),Vue.use(L.a),Vue.use(j.a),Vue.use(H.a),Vue.config.productionTip=!1,Vue.use(w.a,{size:"large"}),Vue.use(x.a,S.a),Vue.axios.defaults.withCredentials=!0,p()(V).forEach(function(e){Vue.filter(e,V[e])}),D.beforeEach(function(e,t,n){var a=void 0,r=window.location.origin;a=-1!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||S.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){k.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:D,store:M,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,20],"./contacts/addDepartment.vue":["HHRu",0,18],"./contacts/addEmployee.vue":["00Sv",51],"./contacts/addGroup.vue":["mPjx",0,60],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,50],"./contacts/employeeIo.vue":["Rwbg",0,73],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,58],"./contacts/recordInfo.vue":["67iC",0,15],"./contacts/recordIo.vue":["738z",0,21],"./contacts/recycle.vue":["HkK0",0,31],"./contacts/shareAddDepartment.vue":["q5Ri",0,17],"./contacts/shareCode.vue":["JsWW",0,36],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,82],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,48],"./contacts/storeIo.vue":["RHxA",0,80],"./contacts/unemployee.vue":["TGrv",0,16],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,33],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,49],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,44],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,72],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,42],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,78],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,56],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,34],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,90],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,35],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,74],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",45],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",88],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",52],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",63],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",71],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,77],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",27],"./enterpriseApp/index.vue":["da9f",43],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,67],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,87],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,47],"./enterpriseApp/myCustomer/index.vue":["/rje",0,89],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,53],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,62],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,23],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,76],"./enterpriseApp/mycustomer.vue":["cuIN",0,40],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,57],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,39],"./enterpriseApp/quota/index.vue":["FB5x",0,79],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,69],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,75],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,68],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,54],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,38],"./enterpriseApp/signApp/index.vue":["Gk4o",0,61],"./enterpriseApp/signApp/signList.vue":["kCy7",0,55],"./enterpriseApp/trafficTask/index.vue":["e88N",0,59],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,41],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,28],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,65],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,86],"./errorPage/403.vue":["6XGN",29],"./errorPage/404.vue":["AejC",32],"./errorPage/500.vue":["FskK",24],"./errorPage/gic-error.vue":["Q3j/",26],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,30],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",83],"./reviewCenter/reviewed.vue":["CLYF",0,19],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,46],"./setting/addAdminRole.vue":["fZsz",0,70],"./setting/companyAddress.vue":["SKyE",0,66],"./setting/companyCertify.vue":["3zYh",0,14],"./setting/contactPermission.vue":["6zFj",0,64],"./setting/index.vue":["VlR1",37],"./setting/replaceAdmin.vue":["ys9I",0,81],"./setting/setChildAdmin.vue":["VqB7",0,84],"./setting/staffDetails.vue":["Zyzf",0,25],"./setting/storePermission.vue":["Xwfy",0,22],"./sign/index.vue":["RQuk",0,85]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([92],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("fZjL"),p=n.n(r),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,u=n("lRwf"),d=n.n(u),l=n("pRNm"),h=n.n(l),v=n("5tgt"),g=n.n(v);d.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/download",name:"下载",component:g()("download","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/sign",name:"index",component:g()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:g()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:g()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:g()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:g()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:g()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:g()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:g()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:g()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:g()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:g()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:g()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:g()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:g()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:g()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:g()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:g()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:g()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:g()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:g()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:g()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:g()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:g()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:g()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:g()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:g()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:g()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:g()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:g()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:g()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:g()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:g()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:g()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:g()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:g()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:g()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:g()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:g()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:g()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:g()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:g()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:g()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:g()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:g()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:g()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:g()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:g()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:g()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:g()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:g()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:g()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:g()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:g()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:g()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:g()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"我的顾客的",redirect:"/workTimeManage",component:g()("enterpriseApp/dailyAttendance","index"),children:[{path:"/workTimeManage",name:"会员基础设置",component:g()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:g()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:g()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:g()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:g()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:g()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:g()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:g()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:g()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:g()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:g()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:g()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:g()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:g()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:g()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:g()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:g()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],D=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),k=n("zL8q"),w=n.n(k),R=n("Rf8U"),x=n.n(R),C=n("mtWM"),S=n.n(C),T=n("bOdI"),b=n.n(T),E=n("SJI6"),I=n.n(E);d.a.use(I.a);var M=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},b()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(f,"title",function(e,t){e.title=t}),b()(f,"show",function(e,t){e.show=t}),f)}),V=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+a+" "+r+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n;return t.getFullYear()+"-"+o+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),o=n<10?"0"+n:n,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+a+" "+r+":"+p+":"+i}}}),q=n("TUaa"),H=n.n(q),P=n("tyqE"),j=n.n(P),F=n("pRVe"),L=n.n(F),G=n("SE7k"),N=n.n(G),O=n("XsK6"),Y=n.n(O),z=n("QRL9"),J=n.n(z),K=n("2Pnh"),U=n.n(K),B=n("l9mu"),X=n.n(B),Z={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(r<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;r>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(Z),Vue.use(Y.a),Vue.use(J.a),Vue.use(N.a),Vue.use(L.a),Vue.use(j.a),Vue.use(H.a),Vue.config.productionTip=!1,Vue.use(w.a,{size:"large"}),Vue.use(x.a,S.a),Vue.axios.defaults.withCredentials=!0,p()(V).forEach(function(e){Vue.filter(e,V[e])}),D.beforeEach(function(e,t,n){var a=void 0,r=window.location.origin;a=-1!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||S.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){k.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:D,store:M,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,20],"./contacts/addDepartment.vue":["HHRu",0,18],"./contacts/addEmployee.vue":["00Sv",52],"./contacts/addGroup.vue":["mPjx",0,60],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,51],"./contacts/employeeIo.vue":["Rwbg",0,73],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,58],"./contacts/recordInfo.vue":["67iC",0,15],"./contacts/recordIo.vue":["738z",0,21],"./contacts/recycle.vue":["HkK0",0,31],"./contacts/shareAddDepartment.vue":["q5Ri",0,17],"./contacts/shareCode.vue":["JsWW",0,36],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,82],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,48],"./contacts/storeIo.vue":["RHxA",0,80],"./contacts/unemployee.vue":["TGrv",0,16],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,33],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,50],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,44],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,72],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,42],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,78],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,56],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,34],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,90],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,35],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,74],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",45],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",88],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",53],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",63],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",71],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,77],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",27],"./enterpriseApp/index.vue":["da9f",43],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,67],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,87],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,47],"./enterpriseApp/myCustomer/index.vue":["/rje",0,89],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,49],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,62],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,23],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,76],"./enterpriseApp/mycustomer.vue":["cuIN",0,40],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,57],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,39],"./enterpriseApp/quota/index.vue":["FB5x",0,79],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,69],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,75],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,68],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,54],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,38],"./enterpriseApp/signApp/index.vue":["Gk4o",0,61],"./enterpriseApp/signApp/signList.vue":["kCy7",0,55],"./enterpriseApp/trafficTask/index.vue":["e88N",0,59],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,41],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,28],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,65],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,86],"./errorPage/403.vue":["6XGN",29],"./errorPage/404.vue":["AejC",32],"./errorPage/500.vue":["FskK",24],"./errorPage/gic-error.vue":["Q3j/",26],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,30],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",83],"./reviewCenter/reviewed.vue":["CLYF",0,19],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,46],"./setting/addAdminRole.vue":["fZsz",0,70],"./setting/companyAddress.vue":["SKyE",0,66],"./setting/companyCertify.vue":["3zYh",0,14],"./setting/contactPermission.vue":["6zFj",0,64],"./setting/index.vue":["VlR1",37],"./setting/replaceAdmin.vue":["ys9I",0,81],"./setting/setChildAdmin.vue":["VqB7",0,84],"./setting/staffDetails.vue":["Zyzf",0,25],"./setting/storePermission.vue":["Xwfy",0,22],"./sign/index.vue":["RQuk",0,85]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(b,d,n){for(var r,t,o,i=0,u=[];i<b.length;i++)t=b[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(b,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var b={},a={94:0};function f(c){if(b[c])return b[c].exports;var a=b[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,f),a.l=!0,a.exports}f.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var b=new Promise(function(b,f){c=a[e]=[b,f]});c[2]=b;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"4c74393bc3912fece07d",1:"fe9dec1f31b04053fd7e",2:"5ebe7babd3dcb729fda8",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"d927d679c894b8852c12",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"2502e450d1f12cb280d2",14:"906484db655680062129",15:"dc1ca8ebc6cc47b86e2d",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"4b5e4ee96f2607285a8a",19:"87254c3ea737cf4a3a52",20:"3b3584307ac3ff46beef",21:"c50987389f9771604c9c",22:"f08c872fb1b9438d09ff",23:"5436bc66295808882704",24:"9d547e5255fc6330d24b",25:"eec22b32acb05418f905",26:"d898666a33f9f66c7e10",27:"57275464453929900972",28:"02b12130006b11944970",29:"e53bb378b608c8c019ac",30:"edefacaf87ff01399d2b",31:"f5995e97021a541fab69",32:"0a78ac901bb244b3a211",33:"be4c1b8d954b7a0dfcbd",34:"3072610dd40c9bc22a0a",35:"e9723ab5e67c6f46abe7",36:"d269a4c027b9923c8f0b",37:"032b04ab3168d233c759",38:"f269dae801787747180c",39:"f20dd6d71ebc39700f39",40:"3548050450854d3f79b7",41:"d1a01c481b63fe169fc8",42:"eec975c417c042a14578",43:"e386ed64995ca06996f1",44:"ebf089cd236f952c4ed5",45:"67c57cfc14847ad350df",46:"7fe51c0f71cfaec33913",47:"3e6826374ecefce69c18",48:"d6ccd29f5cd5515fe3c8",49:"a506c08b27c8706990e4",50:"43b4530ad8b72c54ecc4",51:"7fc0ff7b08a3b083ca59",52:"32f90b9a69e582931b38",53:"2419cbc2f0880d51da48",54:"1eedcc8a2ca81c7faba7",55:"c0163e3368ab1e90e0c7",56:"d2c81446cfcbc93dd6bf",57:"2501a20b61201f56dc56",58:"1b7cb6a215c43472b34a",59:"6692b1c65ee9871115a3",60:"ebe002fa906bb34ed644",61:"ec8f2dd38d665784752e",62:"38bb5f56afa8e07c1d8d",63:"ba0e409d551f280b8347",64:"6b10e9463ae74778cab4",65:"8d5e39df7c9345d6be58",66:"2326bfba0f3bb9687d4b",67:"ec64054836d24d69d770",68:"be228ce7e1705d45d921",69:"7c0d219f199de7a5aa08",70:"40949db65dde54d20563",71:"88c61f6808601aa94619",72:"fc9124a2742130a58dd5",73:"90c8570de7549c40e059",74:"e6cb1e6e66639bb9eae0",75:"e33b8312c981514cb576",76:"55fdeb4c208665576c2e",77:"0b7caafe8eb01d917eee",78:"0ff2525f65d5301b1885",79:"a52d9e17e23daa6ca67b",80:"6c4a35948b55bb20867c",81:"1d07c71ce77a84631f29",82:"ba8c6bfcc229cd575bd1",83:"c38972b6190154b3d0d0",84:"c1450a8881d7cff8480b",85:"56e5bfa61707b0db1ef0",86:"8c8bb30a423586d7ef97",87:"9beb2ffaabf2854a2f6b",88:"abf95430e8a950680b13",89:"911695626dd8f017cc55",90:"f7b006894387acfdd5cc",93:"e411b5ea8357bd76cdac"}[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,d.appendChild(n),b},f.m=e,f.c=b,f.d=function(e,c,b){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:b})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],b[t]&&u.push(b[t][0]),b[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},b={94:0};function f(c){if(a[c])return a[c].exports;var b=a[c]={i:c,l:!1,exports:{}};return e[c].call(b.exports,b,b.exports,f),b.l=!0,b.exports}f.e=function(e){var c=b[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=b[e]=[a,f]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"d878b967bd54839e45d2",1:"fe9dec1f31b04053fd7e",2:"5ebe7babd3dcb729fda8",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"e09a2e326af7febf25e6",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"2502e450d1f12cb280d2",14:"906484db655680062129",15:"dc1ca8ebc6cc47b86e2d",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"4b5e4ee96f2607285a8a",19:"87254c3ea737cf4a3a52",20:"3b3584307ac3ff46beef",21:"c50987389f9771604c9c",22:"f08c872fb1b9438d09ff",23:"d6ffaa81aa27d7115c7e",24:"9d547e5255fc6330d24b",25:"eec22b32acb05418f905",26:"d898666a33f9f66c7e10",27:"57275464453929900972",28:"02b12130006b11944970",29:"e53bb378b608c8c019ac",30:"edefacaf87ff01399d2b",31:"f5995e97021a541fab69",32:"0a78ac901bb244b3a211",33:"be4c1b8d954b7a0dfcbd",34:"3072610dd40c9bc22a0a",35:"e9723ab5e67c6f46abe7",36:"d269a4c027b9923c8f0b",37:"032b04ab3168d233c759",38:"f269dae801787747180c",39:"f20dd6d71ebc39700f39",40:"3548050450854d3f79b7",41:"d1a01c481b63fe169fc8",42:"eec975c417c042a14578",43:"e386ed64995ca06996f1",44:"ebf089cd236f952c4ed5",45:"67c57cfc14847ad350df",46:"7fe51c0f71cfaec33913",47:"3e6826374ecefce69c18",48:"d6ccd29f5cd5515fe3c8",49:"b6b6b5eaba87d23440ce",50:"97bfabc741af04439409",51:"255edf9edd96daa860bb",52:"b107eee70ea68c43c909",53:"c51a40cbf12e84ae59ad",54:"1eedcc8a2ca81c7faba7",55:"c0163e3368ab1e90e0c7",56:"d2c81446cfcbc93dd6bf",57:"2501a20b61201f56dc56",58:"1b7cb6a215c43472b34a",59:"6692b1c65ee9871115a3",60:"ebe002fa906bb34ed644",61:"ec8f2dd38d665784752e",62:"38bb5f56afa8e07c1d8d",63:"ba0e409d551f280b8347",64:"6b10e9463ae74778cab4",65:"8d5e39df7c9345d6be58",66:"2326bfba0f3bb9687d4b",67:"ec64054836d24d69d770",68:"be228ce7e1705d45d921",69:"7c0d219f199de7a5aa08",70:"40949db65dde54d20563",71:"88c61f6808601aa94619",72:"fc9124a2742130a58dd5",73:"90c8570de7549c40e059",74:"e6cb1e6e66639bb9eae0",75:"e33b8312c981514cb576",76:"55fdeb4c208665576c2e",77:"0b7caafe8eb01d917eee",78:"0ff2525f65d5301b1885",79:"a52d9e17e23daa6ca67b",80:"6c4a35948b55bb20867c",81:"1d07c71ce77a84631f29",82:"ba8c6bfcc229cd575bd1",83:"c38972b6190154b3d0d0",84:"c1450a8881d7cff8480b",85:"56e5bfa61707b0db1ef0",86:"8c8bb30a423586d7ef97",87:"9beb2ffaabf2854a2f6b",88:"abf95430e8a950680b13",89:"911695626dd8f017cc55",90:"f7b006894387acfdd5cc",93:"083cbc673f1bbd390b27"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=b[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),b[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-19 10:44:47
* @LastEditors: 无尘
* @LastEditTime: 2019-11-12 19:47:53
* @LastEditTime: 2019-11-13 15:46:54
-->
<!--
<chat-log-list :brandId="brandId" :itemRow="itemRow" :showFlag='showFlag' @hideDetail="hideDetail"></chat-log-list>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2019-11-12 16:06:26
* @LastEditTime: 2019-11-14 15:27:59
-->
<!--
......@@ -234,7 +234,9 @@ export default {
isSelectPerson: false, // 控制只能选部门(false)
dialogVisible: false, // 控制显示/隐藏
isSingle: false // 是否单选
}
},
// 最近同步时间
syncDate: ''
};
},
beforeMount() {
......@@ -248,6 +250,30 @@ export default {
},
methods: {
/**
* 获取同步时间
*/
getSyncDate(brandId) {
const that = this;
let para = {
brandId: that.brandId || brandId
};
postRequest('/haoban-app-member-web/memberGroup/get-group_last_syn_time', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.syncDate = resData.result;
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
/**
* 立即同步
*/
toSync: _debounce(function() {
......@@ -255,11 +281,12 @@ export default {
let para = {
brandId: that.brandId
};
postRequest('/haoban-app-member-web/memberGroup/get-member-group-setting', para)
postRequest('/haoban-app-member-web/memberGroup/syn-group', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('同步成功', 'success');
that.getSyncDate();
return;
}
errMsg.errorMsg(resData);
......@@ -481,6 +508,8 @@ export default {
that.pageNum = 1;
that.getGroupList(that.brandId)
return;
}else {
row.isSendTemplate = false;
}
errMsg.errorMsg(resData);
})
......@@ -696,6 +725,7 @@ export default {
that.getGroupClassify(newData);
that.getGroupList(newData);
that.getGroupClassSet(newData);
that.getSyncDate(newData);
},
activeGroupId: function(newData, oldData) {
let that = this;
......@@ -734,6 +764,7 @@ export default {
that.getGroupClassify(that.brandId);
that.getGroupList(that.brandId);
that.getGroupClassSet(that.brandId);
that.getSyncDate(that.brandId);
}
},
components: {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-18 15:24:50
* @LastEditors: 无尘
* @LastEditTime: 2019-11-07 19:17:09
* @LastEditTime: 2019-11-14 15:33:10
-->
<!--
......@@ -37,7 +37,7 @@ components: {
<!--短信-->
<div v-if="activeTab == 1" class="online-chat-message">
<el-form :model="chatData" :rules="rules" ref="msgForm" label-width="70px" class="demo-ruleForm">
<el-form-item label="短信提醒" prop="name"> <el-switch v-model="chatData.isMessageRemind" active-text="" inactive-text=""> </el-switch><span class="font-14 color-909399 p-l-24">开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心</span> </el-form-item>
<el-form-item label="短信提醒" prop="name"> <el-switch v-model="chatData.isMessageRemind" active-text="" inactive-text="" @change="postSave(brandId)"> </el-switch><span class="font-14 color-909399 p-l-24">开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心</span> </el-form-item>
<el-form-item v-if="chatData.isMessageRemind" label="" prop="messageRemindTime">
<span class="font-14 color-606266 p-r-10">下发时间设置</span
><el-time-select
......
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