Commit f15db8c6 by huaying

update: dist

parent 9d2a0a7e
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.76.css><script src=//at.alicdn.com/t/font_1628375_vcg1gtmx7lb.js></script><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_udehp133w1.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.2bdd3c63cf43b8e19352b9623bab4bbd.css rel=stylesheet></head><body class=damolish><div id=app></div><script>(function() { <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.76.css><script src=//at.alicdn.com/t/font_1628375_vcg1gtmx7lb.js></script><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_udehp133w1.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.64729adcfefe4484a1f334f1d06d456a.css rel=stylesheet></head><body class=damolish><div id=app></div><script>(function() {
var src = '/component/static/import-component.js?timestrap='+ new Date().getTime(); var src = '/component/static/import-component.js?timestrap='+ new Date().getTime();
var host = window.location.host; var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host; host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
document.write('<script src="//'+ host + src +'"><\/script>') document.write('<script src="//'+ host + src +'"><\/script>')
})()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.a83a1e0a582251599fa0.js></script><script type=text/javascript src=./static/js/vendor.01dc77f7336738e5cf77.js></script><script type=text/javascript src=./static/js/app.abd05679fc9003d3d31c.js></script></body></html> })()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.647d4fd69512db0a66a5.js></script><script type=text/javascript src=./static/js/vendor.01dc77f7336738e5cf77.js></script><script type=text/javascript src=./static/js/app.8b7962fd950098ef27d9.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([100],{VF3b:function(t,e){},X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),d=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{loading:!1,searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(d.g)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList(e.brandId);100013==a.errorCode&&(e.currentPage=1,e.getTableList(e.brandId)),s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/editCard?coupCardId="+e.coupCardId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCard")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!0,n={gicEnterpriseId:a.brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(d.g)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo?e.result.pageInfo.total:0);s.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.brandId&&this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCard,type:"primary",disabled:t.$store.state.wxEnterpriseType},on:{click:t.toNewCard}},[t._v("新增卡券")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":"","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","min-width":"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板有效期","show-overflow-tooltip":"","min-width":"260px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"卡券库状态",prop:"cardStatus","min-width":"90px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[0==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[t._v("已删除")]):t._e(),t._v(" "),1==n.cardStatus?a("span",{staticClass:"state-point state-point-success"},[t._v("正常")]):t._e(),t._v(" "),2==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[t._v("已过期")]):t._e(),t._v(" "),3==n.cardStatus?a("span",{staticClass:"state-point state-point-default"},[t._v("未生效")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"120px"}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","show-overflow-tooltip":"","min-width":"120px"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[n.createTime?[a("p",[t._v(t._s(t._f("timeStampToYmd")(n.createTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(n.createTime)))])]:[t._v("--")]],2)}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCard)||t.$getButtonLimit(t.$buttonCode.delCard)?a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.editCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCard,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCard,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var f=a("VU/8")(u,p,!1,function(t){a("VF3b")},"data-v-3c35e7f3",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([100],{NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],loading:!1,selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this;t.loadingBtn=!0;var e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.c)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="store-month-performance-task.xls",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},activated:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},mounted:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px","vertical-align":"middle"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.exportMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportMonthTask,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.checkMonthTask,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("owZ0")},"data-v-3b76ff1c",null);e.default=c.exports},owZ0:function(t,e){}}); webpackJsonp([101],{NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],loading:!1,selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this;t.loadingBtn=!0;var e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.c)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="store-month-performance-task.xls",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},activated:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},mounted:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px","vertical-align":"middle"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.exportMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportMonthTask,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.checkMonthTask,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("owZ0")},"data-v-3b76ff1c",null);e.default=c.exports},owZ0:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([101],{c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),s=a.n(n),r=a("exGp"),i=a.n(r),o=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.templateId)}).catch(function(){})},delCardList:function(t){var e=this,a={templateId:t};Object(u.g)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardTemp?templateId="+e.templateId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardTemp")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(s.a.mark(function e(){var a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!0,n={wxEnterpriseId:a.wxEnterpriseId,search:a.searchInput||""},Object(u.g)("/haoban-app-customer-web/inner/list-template",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result||[],void(!a.searchInput&&e.result&&e.result.length&&(a.total=e.result.length));o.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入模板名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[t._v("内购券是选取GIC中针对企业内部员工发下的,最多创建20个模板")])],1),t._v(" "),t._m(0)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.templateName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.commitName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("微信卡券将暂停服务,后续优化后开放新增功能")])])])}]};var f=a("VU/8")(p,d,!1,function(t){a("p/+T")},"data-v-39c481ce",null);e.default=f.exports},"p/+T":function(t,e){}}); webpackJsonp([102],{c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),s=a.n(n),r=a("exGp"),i=a.n(r),o=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.templateId)}).catch(function(){})},delCardList:function(t){var e=this,a={templateId:t};Object(u.g)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardTemp?templateId="+e.templateId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardTemp")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(s.a.mark(function e(){var a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!0,n={wxEnterpriseId:a.wxEnterpriseId,search:a.searchInput||""},Object(u.g)("/haoban-app-customer-web/inner/list-template",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result||[],void(!a.searchInput&&e.result&&e.result.length&&(a.total=e.result.length));o.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入模板名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[t._v("内购券是选取GIC中针对企业内部员工发下的,最多创建20个模板")])],1),t._v(" "),t._m(0)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.templateName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.commitName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("微信卡券将暂停服务,后续优化后开放新增功能")])])])}]};var f=a("VU/8")(p,d,!1,function(t){a("p/+T")},"data-v-39c481ce",null);e.default=f.exports},"p/+T":function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([102],{VKgB:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("VKgB")},"data-v-39067a2d",null);e.default=l.exports}}); webpackJsonp([103],{VKgB:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("VKgB")},"data-v-39067a2d",null);e.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([103],{"4f1d":function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"/newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"/newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"查看补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("4f1d")},"data-v-38e91801",null);a.default=h.exports}}); webpackJsonp([104],{"4f1d":function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"/newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"/newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"查看补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("4f1d")},"data-v-38e91801",null);a.default=h.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([104],{"4ye2":function(e,t){},"6j9f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(e){var t={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.g)("/haoban-manage3-web/audit/open-or-close",t).then(function(e){var t=e.data;1!=t.errorCode?r.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.b)("/haoban-manage3-web/audit/find-setting",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.storeSwitch=a.result.auditFlag,void(t.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.storeSwitch,callback:function(t){e.storeSwitch=t},expression:"storeSwitch"}},[e._v("开启门店资料修改审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkChangeFlag,callback:function(t){e.clerkChangeFlag=t},expression:"clerkChangeFlag"}},[e._v("门店导购变更审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),e._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[e.$getButtonLimit(e.$buttonCode.saveApplySetting)?a("el-button",{attrs:{"limit-code":e.$buttonCode.saveApplySetting,type:"primary",loading:e.loading},on:{click:e.postData}},[e._v("保 存")]):e._e()],1)])])])},staticRenderFns:[]};var l=a("VU/8")(n,o,!1,function(e){a("4ye2")},"data-v-386819a0",null);t.default=l.exports}}); webpackJsonp([105],{"4ye2":function(e,t){},"6j9f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(e){var t={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.g)("/haoban-manage3-web/audit/open-or-close",t).then(function(e){var t=e.data;1!=t.errorCode?r.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.b)("/haoban-manage3-web/audit/find-setting",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.storeSwitch=a.result.auditFlag,void(t.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.storeSwitch,callback:function(t){e.storeSwitch=t},expression:"storeSwitch"}},[e._v("开启门店资料修改审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkChangeFlag,callback:function(t){e.clerkChangeFlag=t},expression:"clerkChangeFlag"}},[e._v("门店导购变更审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),e._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[e.$getButtonLimit(e.$buttonCode.saveApplySetting)?a("el-button",{attrs:{"limit-code":e.$buttonCode.saveApplySetting,type:"primary",loading:e.loading},on:{click:e.postData}},[e._v("保 存")]):e._e()],1)])])])},staticRenderFns:[]};var l=a("VU/8")(n,o,!1,function(e){a("4ye2")},"data-v-386819a0",null);t.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([105],{dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),s=a("3E4D"),o=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,n=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>n}}},templateData:[],strategyData:[],loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(i.g)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(){var t=this;t.loading=!0,t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.g)("/haoban-app-customer-web/inner/find-card-log-page",e).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);n.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","41"),this.getTableList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"发送开始时间","end-placeholder":"发送结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"成员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发券渠道","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("nYmP")},"data-v-3812422a",null);e.default=c.exports},nYmP:function(t,e){}}); webpackJsonp([106],{dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),s=a("3E4D"),o=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,n=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>n}}},templateData:[],strategyData:[],loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(i.g)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(){var t=this;t.loading=!0,t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.g)("/haoban-app-customer-web/inner/find-card-log-page",e).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);n.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","41"),this.getTableList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"发送开始时间","end-placeholder":"发送结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"成员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发券渠道","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("nYmP")},"data-v-3812422a",null);e.default=c.exports},nYmP:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([106],{GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var l=a("VU/8")(o,r,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=l.exports},YYEh:function(e,t){}}); webpackJsonp([107],{GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var l=a("VU/8")(o,r,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=l.exports},YYEh:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([108],{C6q6:function(e,t){},txZy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("Dd8w"),n=r.n(a),o=r("Xxa5"),i=r.n(o),s=r("exGp"),m=r.n(s),l=r("1fzb"),u=r("znzC"),d=r("P9l9"),c={components:{setActCode:l.default,SelectClerk:u.default},data:function(){return{loading:!1,form:{hmType:1,name:"",clerkIdList:[],hmUserNum:null},multiple:!1,data:[],dataArr:[],detailCode:[],clerkDisabled:!1}},created:function(){this.$route.query.hmId&&this.getActCodeInfo()},methods:{changeEvent:function(e){this.data=[],this.dataArr=[],2==e?(this.multiple=!0,this.clerkDisabled=!1):1==e&&(this.multiple=!1)},onChange:function(e){this.data=e,this.form.hmUserNum=e.length,this.form.clerkIdList=e.map(function(e){return e.clerkId}),this.dataArr=e.map(function(e){return e.clerkName}),""==this.form.name&&(this.form.name=this.dataArr.toString())},getActCodeInfo:function(){var e=this;return m()(i.a.mark(function t(){var r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e).loading=!0,!e.$route.query.hmId){t.next=5;break}return t.next=5,Object(d.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:e.$route.query.hmId}).then(function(t){e.detailCode=t.data.result,e.form.hmType=e.detailCode.hmType,e.form.name=e.detailCode.name,e.form.clerkIdList=e.detailCode.clerkList.map(function(e){return e.clerkId}),e.form.hmUserNum=e.form.clerkIdList.length,e.data=e.detailCode.clerkList,1==e.form.hmType?(e.clerkDisabled=!0,e.multiple=!1):2==e.form.hmType&&(e.multiple=!0,e.clerkDisabled=!1),r.loading=!1});case 5:case"end":return t.stop()}},t,e)}))()},onSubmit:function(e){var t=this;return m()(i.a.mark(function r(){var a;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n()({},e,t.form),!t.$route.query.hmId){r.next=7;break}return a=n()({},a,{hmId:t.$route.query.hmId}),r.next=5,Object(d.f)("/haoban-manage3-web/hm/qrcode/update",a).then(function(e){if(0!=e.data.code)return t.$message.error(e.data.message);setTimeout(function(){t.$router.go(-1),t.form={hmType:1,name:"",clerkIdList:[],hmUserNum:null}},1e3)});case 5:r.next=9;break;case 7:return r.next=9,Object(d.f)("/haoban-manage3-web/hm/qrcode/add",a).then(function(e){if(0!=e.data.code)return t.$message.error(e.data.message);setTimeout(function(){t.$route.meta.refresh=!0,t.$router.go(-1),t.form={hmType:1,name:"",clerkIdList:[],hmUserNum:null}},1e3)});case 9:case"end":return r.stop()}},r,t)}))()}}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("setActCode",{attrs:{actCodeData:e.detailCode},on:{sumbit:e.onSubmit},scopedSlots:e._u([{key:"typeCode",fn:function(){return[r("el-form-item",{attrs:{label:"活码类型",rules:[{required:!0,message:"请选择活码类型",trigger:"blur"}]}},[r("el-radio-group",{on:{change:e.changeEvent},model:{value:e.form.hmType,callback:function(t){e.$set(e.form,"hmType",t)},expression:"form.hmType"}},[r("el-radio",{attrs:{label:1}},[e._v("单人活码")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("多人活码")])],1)],1)]},proxy:!0},{key:"codeName",fn:function(){return[r("el-form-item",{attrs:{label:"活码名称",rules:[{required:!0,message:"请输入活码名称",trigger:"blur"}]}},[r("el-input",{staticClass:"w340",attrs:{placeholder:"请输入活码名称,默认使用成员名称",maxlength:"20","show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)]},proxy:!0},{key:"member",fn:function(){return[r("el-form-item",{attrs:{label:"关联导购",rules:[{required:!0,message:"请选择使用成员",trigger:"blur"}]}},[1==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("单人活码仅可选择一名成员")]):e._e(),e._v(" "),2==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("若选择多名成员,则随机分配企微员工")]):e._e(),e._v(" "),r("select-clerk",{attrs:{multiple:e.multiple,data:e.data,disabled:e.clerkDisabled},on:{change:e.onChange}})],1)]},proxy:!0}])})],1)},staticRenderFns:[]};var h=r("VU/8")(c,f,!1,function(e){r("C6q6")},"data-v-23e94354",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([107],{TLVp:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"},{tabId:"4",tabName:"欢迎语",icon:"iconhuanyingci"},{tabId:"5",tabName:"审核中心",icon:"iconshenhezhongxin"},{tabId:"6",tabName:"操作设置",icon:"iconshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,console.log(this.activeTab),t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material");break;case"4":this.changeRoute("salutatory");break;case"5":this.changeRoute("reviewCenter");break;case"6":this.changeRoute("setting")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,console.log(this.activeTab),console.log(this.activeSelTab),this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("TLVp")},"data-v-260d1026",null);e.default=r.exports}}); webpackJsonp([108],{TLVp:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"},{tabId:"4",tabName:"欢迎语",icon:"iconhuanyingci"},{tabId:"5",tabName:"审核中心",icon:"iconshenhezhongxin"},{tabId:"6",tabName:"操作设置",icon:"iconshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,console.log(this.activeTab),t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material");break;case"4":this.changeRoute("salutatory");break;case"5":this.changeRoute("reviewCenter");break;case"6":this.changeRoute("setting")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,console.log(this.activeTab),console.log(this.activeSelTab),this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("TLVp")},"data-v-260d1026",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([13,49,106],{"4KYo":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={data:function(){return{card:{pageName:"",pageCode:"",pageId:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:""}}},props:{content:{type:Object,default:function(){}}},watch:{content:{handler:function(e){if(e){var t=e.pageName,a=e.pageCode,n=e.pageId,i=e.pageTitle,r=e.merchantName,o=e.merchantPhoneNumber,s=e.merchantLogo,c=e.pageBackgroundImg,l=e.guideComment,g=e.createorName,d=e.createTime;this.card={pageName:t,pageCode:a,pageId:n,pageTitle:i,merchantName:r,merchantPhoneNumber:o,merchantLogo:s,pageBackgroundImg:c,guideComment:l,createorName:g,createTime:d}}},immediate:!0}}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card"},[n("div",{staticClass:"head"},[n("div",{staticClass:"operation"},[n("div",{staticClass:"idNum"},[e._v("ID:"+e._s(e.card.pageCode))]),e._v(" "),n("div",{staticClass:"btns"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("relationDetail")}}},[e._v("关联详情")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("deleteTemp")}}},[e._v("删除")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("editTemp")}}},[e._v("编辑")])],1)]),e._v(" "),n("div",{staticClass:"tempName"},[e._v(e._s(e.card.pageName))]),e._v(" "),n("div",{staticClass:"cardName"},[n("div",{staticClass:"createName"},[e._v(e._s(e.card.createorName))]),e._v(" "),n("div",{staticClass:"createTime"},[e._v(e._s(e._f("formatTimeStamp")(e.card.createTime)))])])]),e._v(" "),n("div",{staticClass:"iphone-content"},[n("div",{staticClass:"iphone"},[n("span",{staticClass:"pageTitle"},[e._v(e._s(e.card.pageTitle))]),e._v(" "),n("img",{attrs:{src:a("NBDD")}}),e._v(" "),n("div",{staticClass:"content"},[n("img",{directives:[{name:"show",rawName:"v-show",value:e.card.pageBackgroundImg,expression:"card.pageBackgroundImg"}],staticClass:"bgImg",attrs:{src:e.card.pageBackgroundImg}}),e._v(" "),n("div",{staticClass:"enterpriseInfo"},[n("div",{staticClass:"logo"},[n("img",{attrs:{src:e.card.merchantLogo}})]),e._v(" "),n("div",{staticClass:"name"},[e._v(e._s(e.card.merchantName))])]),e._v(" "),n("div",{staticClass:"QRcode"}),e._v(" "),n("div",{staticClass:"leadingText"},[e._v(e._s(e.card.guideComment))]),e._v(" "),n("div",{staticClass:"enterpriseNum"},[n("i",{staticClass:"iconfont-hb3 iconhuawushuju"}),e._v(" "),n("p",[e._v(e._s(e.card.merchantPhoneNumber))])])])])])])},staticRenderFns:[]};var r=a("VU/8")(n,i,!1,function(e){a("hegY")},"data-v-00439c3c",null);t.default=r.exports},GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),r={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var s=a("VU/8")(r,o,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=s.exports},Iojf:function(e,t){},NBDD:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABMCAYAAAAcJW5lAAAAAXNSR0IArs4c6QAAFD1JREFUeF7tnQl0jVe7x//vGTMaK8bWp99tJYJPaihuiSFiaGgFFVRIzDOta1YkaoiWEpVKdaCqgg4kdam096O37lJBBlNXaxaV0BIynZMz3PXs5ByJIec9ySEn8uy1smTFfvfw2+/5n2fv59l7SyiWcszmBgq9YaIC6Gcym/8JwK34//PvTIAJMIFKSCBXIUnnTMAek0a1wV2Srln6IFl+0ekMAxRK6SOj0fSM2WyuhH3kJjMBJsAEHk1AkiQolYqbJqN5vFar+ppyCgHMy9OHqdTKWIPBqGKATIAJMIGnmYBKpTQYCoxjXV01n0k5OTkNNFrXZIPBUOdp7jT3jQkwASZgIaBSqW7odXmtpLw83SJJoVjM015+OZgAE6gqBGg6bDaZFkv5+fpUM9CiqnSc+8kEmAATKFr/S5PydQXZZrPZnZEwASbABKoSAUmScqS8fD27fKvSqHNfmQATsBJgAeSXgQkwgSpLgAWwyg49d5wJMAEWQH4HmAATqLIEWACr7NBzx5kAE2AB5HeACTCBKkuABbDKDj13nAkwARZAfgeYABN4KIGcnBzs2rkDGq0GgwYNhkrl2KMCaPeZwWCAyWQqxwhIUKtVUCgUZSrDoQKYm5uL9KtXUWAwoFGjRqhWrZqsRun1evz111+oVasWtFptiWcyMzPh7u4ufjgxASbweAlI1vOhJHzz9S4MHTpEVJiWdhL/8cKLsisXW81snCqVmJiIuXNmIzs7W3a5QMmwZRLl3n36YOWKKEhlEEGHCeDvv/+OsJGhOHXqlPimaFC/ATbGxqJ9h46ldo6AR0RE4L1Vq/Dtd9+hW7fuIn9BQQG2bNmM+fPmYUlEBMaNG28HJM7KBJiAvQRItL7Yshl7/3svAgJ6wN3NFSNHjhTFJCenoKm3j/j9r79uIiUlxVq8QlKgdZs28PT0hMFgRGrKCSGYtZ+pjZdfbo86dR48Z0WlVKBdu3ZYvmIF6tWrR/tyZTVXpdYI48qS8vLy8Fq/IKxduw5+L7WWVUbxTA4RQLL8OnZoj7r16mLjRxvh7uGBFcuXIS4uDsdPpMDLy6uwThJv6zdM4Z+++eYbjBs7GmRuxyd8j+7dA3DyZBpCQ4cjMyMDWVlZWBm1ChMnTrK7c/wAE2ACNgiYzcjJzRXT0OrVPNGuXVshbk29vTF3zpyHCuCOuO1YvHgROnXqVPSRljBv/nx4edXFqPAwpKeno0OHDrh+/TqOHDmCr7bHoVWrViUaQgL4/PNNsG//D/Dv3Al3796VNVQ+Ps1w9OhRGIz3BDN0+Jt4c/ibCAzsJasMhwvgsWNJeOU/O+J/fzmM1q3biPJJ0Jr84znMX7AA06e/hQsXLghTt3nz5tb6T58+jaBXeyMsPByroqLw7Xe7hQAeOngQX277EsOGDcXAAQOweEkEC6DdQ8sPMAHbBMia69ixA7Ju38aOHTsxa9YspKQkw9vbG3MeIoBkJUavWys+zytWRomZmpubG2gm9+H69cLoIVFzc3cXts7SpRHIzMjEB2vXPVwA9/2Ajh3bC0NHTvL1bY7k5OQSAjj8zWHo0sUf4eFjICnus7BsFOoQC/Dnnw8hsEcAkpKOwbd54cEyOp0OjZ9rhFeDgrBlyxfw82slLLpTp8+K9bysrNsIerUPOvv7Izg4GF38/fHd7j1CAM0wQ6lQ4tKli2j9kh8LoJw3g/MwAZkE6LN3Mi1NTE1pzd3bu6l4ckNMjJjBlSaA5GyYPeu/cP78OTHdvXv3DoKDB2DipEkICOiOkJAhCA8fBZPJiAK9HrS+T9PUOl51QeJpSVYL0AECSBZgQkI8Tp0+g/r1G8ikUJjNIQL4999/418tW8C/SxdER0dDq9EiOnotIiMj0alTZxxITERsbCzIoTFr9myYTWZMnDAOGRmZ2Lnra6SmJpcQQEsPrly5zAJo13ByZiZQOgESoYUL5mPVqijUrl1bzNp8igQwJiYGH9kQQKVSgRXLlyMjIwNvz5yJmzdvol/fvti8eTNmzJiOxUsi0bdvXxw6dBAzpk+DwWhEw4YNkZCwt4Sn1tECuHPnDpw9+xsa/6OJXa+AQwSQaoyL246335oBjUYDd3cP+Pj44MLFC/Bt5outW7fCYDIDRV6hTz7ZhOh167Bv337Ur19PzOm7du0ipsABAQHWhUIWQLvGkjMzAZsESABJmGJiNgjrLzkl1S4BpAoyMq7D07Na0dRXQsjgQejWPQA//fgjWvn5ialzXl4+bt26hR8TD2DNmtU4mnT8sQrg7t3f4fSZs2jY8J6DxCYMR1mAJGxGowHnzp/D2TNnUL16DbR7uT38WrXE8NBQLFy4yBrrQwPwwgv/RF0vLwGLNPHmjUzEx8cjsGdP4X2aMmUKTCYzWADlDCHnYQLyCTwggMkp8PHxFgWUZgGeOJECbx8fulQIY8eMQf369YUFeOfOHQT26IH3V78PlUqN8ePG4stt2+DbrDlMZhO2bN6MTz/9BL8ePfbYBJDWAFu0bIG3Z86C0s5QGIdYgOTweK1vEMaOH4/Bg0NE/E98/G6EjRyJXw7/H5o29calixeRnZON5r7NEbk0skTsD60Nbt/+FV57vT96BgYifBStIbAAyn+tOScTkElAkvDpJ5swb+4c4ZDcsetrdPXvjL9v3ULc9jhs27YNNJ3s1+81jB8/HgMGBItZHU2VyctLiQyT8LCRInZXry9AyJAhmD9/gVjj27Vrp4gAMRpNYi2/mqcnpk2bgeCBAyAVCwEpPgXu3LkT7tyR5wRp1swXSUlJDzhBQkeEokePnjIh3MvmEAE0m00IGzkCBw8exOTJU0Woy9oP1ogAxdjYTQJMu7atcePGDaSmnYSHhyeE26goJR09ItYAd5MTJKCHNYDyypVLaP3SS+wEsXtY+QEm8GgCJrMZep0OSqUSarVaOCooDEbrooXJaBKeXZVaLaw9nU4vZOv+DQoFhgJkXM+Ah6cnqlevXiK6jcqjz7qrq6uIDVRrNNblL0urSABbtfoXPt70KTIzM2AoMMgaMvIuv/LKK1aNoJ0kA4L7Y9GiRTZjjh9WgUMEkAq+ffs25s2bg+PHjgsPEHlzFyx8x7qD44M1q5F+7RpWrox6YNvKb7+dFesSEZHvok2bwjAaSgRm7JjRGDEyDP37B8sCxJmYABNwfgJkFJElSs5R8gOUNZGHmeKOt23bLixVe5PDBJAqpm8MMonFt4lWW2KPn9irJ0F8w9yfCIZCIYlpb4ntM3SR8cP+bm8vOT8TYAJOR4A+9zduZIowmbImsmLr1q0LpbJs+5QdKoBl7QQ/xwSYABOoCAIsgBVBnetkAkzAKQiwADrFMHAjmAATqAgCLIAVQZ3rZAJMwCkIsAA6xTBwI5gAE6gIAiyAFUGd62QCTMApCLAAOsUwcCOYABOoCAIsgBVBnetkAkzAKQiwADrFMHAjmAATqAgCLIAVQZ3rZAJMwCkIsAA6xTBwI5gAE6gIAiyAFUGd62QCTMApCLAAOsUwcCOYABOoCAIsgBVBnetkAk+QgDhhyUzHk1IqebH4E2yGg6oqOlZVkkpcslTWwlkAy0qOn2MCTkyARI8uGzcYCo+nK0yVXfwswAsPU6Yj9pQqtfi3+I1z9gwLC6A9tDgvE3B2AnQ/T9GVlNRUjUYtTn0mkRBncj4FiQSdfujkan1BgdB1tUZbeB9IsZPm5XSVBVAOJc7DBCoBAbL66C5ek8kgjqO3CF8laHqZm2gRQjpUVaFQCiG0xxpkASwzen6QCTgRAbMZOl2+mOZ6eHiI+z6qUjIajaDL2ehUea2Lq2wRZAGsSm8J9/WpJECWX+ElR5K4g8ceC8jZgJAlp9PpxNUYZMG6ubnJnrrTMzk5uTAYjNC6uMji4BABzM6+Czc3d9kNdTbo3B4mUJkJ6PU6mE1GVKtWTdaH/nH1le4IpjbYm0i40tLSsGvXLvz666/iRjm67a1mzZrw9fVFUFAQunXr9sDNdA+rh8rKzs6GGRI0Gq3NppRbAOlu0Anjx6Fnr14YNXrMA9ff2WwBZ2ACTKDMBOgGRl1+nriasqKdHH/++ae4MN2elJubi/Xr1yM6OhrXr18Xz9epUwcqlUrcNHn58mVhCb7++utYunQpnnvuOZvF07pgVlYWNFpXm0sB5RJAquTNYUPx73//D6ZNm45ly5aD7hzlxASYwJMhkJebAzc3V1nW0eNukb0CSNPdSZMmYevWrWjatCmmTp0qLD0vLy8hXCSAZBlu2LABe/fuRYsWLcTF7d7e3ja7QncT5+TmwsXVvcSdxfc/WGYBJMtv9KhwJCYewPQZM7BgwUJotS42G8YZmAATcAwBsnR0+bmoUaNGhU59Lb2xRwBpqjp79my8//77CA4OxurVq/Hss88+FAw5Nz788EO88847aNmyJfbv3y+mx6UlKp8MNLXGpVQrsEwCeOvWLSF++/fvw/QZb4lb2dVq+y8ldsxrwKUwgapJgNb+VEqFcBQ4Q7JHAJOSktClSxdh+ZF1R3f7lpZoTXDu3Ll47733sGbNGkybNs2m6Ofl5YMsQfIKPyrZLYC00Dl2zBgkJOzB2LHjsDIqisXPGd4+bkOVI0DTX09PD7FeZm8i6/HMmTM4deoUGjZsiLZt20KjKZ8RI1cAyTqbMmUKYmJi8P3336NXr17W5t+9exe//PKLCGlp3769aJsl0ayzXbt2wkNM7aZYx9IShcZk3bkDNzcPxwjgtWvXMGjgAJw8dRLvvrsMEyZMKPON7PYOGOdnAkzgHgESARLAmjVLn/6SwZKamirWzZ555hlrATTlXLx4MUhwXFxcxDT0888/Fw4HSvn5+Th27Bief/552Y4NuQJIbWrTpo0I2aE6LM4b8v727NlTrPuReJFD5LPPPkNgYKC13cuWLcP8+fPx008/oWvXrjanwbdvZ8HF1e2R1qJsC5DEb0jIGzhx4gQWLHwHM2fOFJHXnJgAE3jyBAoFMBu1atV6ZOU0/QsNDRVWFoWTJCQkCBG8efOmWEsjwbIkcjr88MMPwglB4jNu3DjExcWhSZMm2LdvHxo0aGCzk3IF8OrVq3jxxRfxxhtvCNG1JFoPJF0pnjp06IDDhw9b/0TC1717d3z88ccYPXq0zTbdzroNjcb1kR5yWQJICj1t6hR89FEM/P39ER+fILaccGICTKBiCMgRwIyMDOFYoD2zFBxNQkbW1KVLl4Rld++QhMI+kBiNGDECFJpCa3IUT0dp586dGDhwoM2OyhXAixcvivonTpwoQmAsafLkycLZUTyR8Kanp1v/dOTIETE1pnXA6dOn22wTeZIpHOZRIUKyBJBquZZ+FUOHDRUW4Nw5czFn7jyblXMGJsAEHg8BOQJIFmBYWJiw5GjtbM+ePcICpJ0WNNU8ePCgtXG1a9cW09HGjRsLC5DEiKwsshxJOOXE98kVQBLmZs2aoXPnzvj222+tbThw4AD69OkjgqAtiUSyuChSsPSgQYPw1VdfISQkxCZch1iAllrIdA0Z/AZOnkzDkiWRmCrDE2OzhZyBCTABuwlYBJDCQUrb+kYW0B9//CECiCm+zpJSUlJE3N3x48eFlbh8+XL069fPWhY5IchJQhaYnOkvlStXAEmYaapN7Tp//rzVi03CFxUVJZwjtDZJ7aFpMQVGU6I+jxo1Cps3b8bp06eFB7m0ZAmFKdwb/PCTcGRbgJaK0tOvYkjIYKSkpiIiIlKYoRz7bPf7yw8wgfIRMAO5udmoXr2azd0OD6vIsmWMYuUojMaWkMpprFwBpLKWLFkifsi6I2eqJZH1SWuUJIZkrWq195bazp07J5wnJHw///yz1WHzqLaJHSHkBHHzeOQpWXYLIFUmRHBICFKSkxG59F1MnTpNDh/OwwSYgAMJ6HX5UKtVNsNBHFhlqUXZI4CUl8SM1id3794NcnaUlkio+/fvj0OHDiE+Ph69e/e22S3yZOfr9HBxZBygpdYrVy6L6TCZohGRSzF5yhQUHVZts2GcgQkwgfITIAtHryvcB+wMJ8DYI4DUe3KuDB8+XEzBN27cKBys9x/jRZYqLb2RV5rWIslJExsba9P6o/JJNFUqDZSlxEmWyQK0DN3VK1fQr19fXLhwXoggWYLi/gFOTIAJPH4CNA3Oy4aHu3u5g5gd0Vh7BZCmu5s2bRJb4kjMycKjeESa4lI8IglfYmIivvjiC/H7sGHDsG7dOiH4thJZlnezs+FKe4FLOSW6XAJIjbhy+RKGhw7Hq68GYdas2SyAtkaG/58JOJCA0WgATYUr62kwJIJHjx4FBTiTF5jEinZ4UNgKeaspFIc8xvPmzRMCaWv3B6ElMaVga7VaW6r1R3nLLYBUyI0bmahRo6Yss9SBY89FMQEmYAb0+sKToD09PSt0Kkze3bJupyOhI68zBTpTnCCJX6NGjdCxY0f4+fkJD7acaX7hoag5MJpM0GpcUepRMI4SQH4LmQATqDgC9KGnMwHJIUIeXTlCUXGtLb1mcZtdsWU0e844FKFBeXlFByDI4+AQC9BZYXK7mEBVIUCaodPlQiFJ4k4Qe4TjaWBE016yIulfrYs88XPYFPhpAMh9YAKVngDdDaLXgU6JJkuQHAmV2RqUMx7iJryCArF9T1IoxTH49vSZLUA5lDkPE6gsBOheYKNRCCE5PymQmNblynN5uLN1nUTPch1mfn7hBUokfCKEhu8Fdrbh4vYwgSdPQIiE0QiDoUCIhaR4uqJ06fpLSaEQZyEqlSq7rL7io8EW4JN/N7lGJvDkCBQ5FIRzAWZyFlfuJImVO7HWKZKdFt/9nWcBrNyvA7eeCTCBchBgASwHPH6UCTCByk2ABbByjx+3ngkwgXIQYAEsBzx+lAkwgcpNgAWwco8ft54JMIFyEGABLAc8fpQJMIHKTUAym82l30hcufvHrWcCTIAJPJLA/wO/IhCDzzZbpQAAAABJRU5ErkJggg=="},YYEh:function(e,t){},fjEt:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Dd8w"),i=a.n(n),r=a("4KYo"),o=a("GdW8"),s=a("PeHS"),c=a("PI0u"),l={data:function(){return{form:{pageSearchText:"",dateRange:[],pageSize:20,pageNum:1},loading:!1,total:0,pageId:"",dialogVisible:!1,list:[{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"1",pageTitle:"页面页面页面页面标题",merchantName:"商户名称商户名称商户名称商户名称商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按保存图片并识别二长按保存图片并识别二长按保存图片并识别二长按保存图片并识别二长按保存图片并识别二",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"2",pageTitle:"页面标题2",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"3",pageTitle:"页面标题3",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"4",pageTitle:"页面标题4",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"5",pageTitle:"页面标题5",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3}]}},components:{cardView:r.default,relationDialog:o.default},mounted:function(){this.getList()},activated:function(){this.$route.meta.refresh&&(this.form={pageSearchText:"",dateRange:[],pageSize:20,pageNum:1}),this.getList()},methods:{toInput:Object(c.a)(function(e,t){this.getList()},500),getList:function(){var e=this,t=i()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(t.startTime=this.form.dateRange[0]+" 00:00:00",t.endTime=this.form.dateRange[1]+" 23:59:59"),delete t.dateRange,this.loading=!0,Object(s.j)(t).then(function(t){var a=t.data.result,n=a.result,i=a.totalCount;n&&(e.total=i,e.list=n)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()},addTemp:function(){this.$router.push("/ladingPageAdd")},relationDetail:function(e){this.dialogVisible=!0,this.pageId=e.pageId},deleteTemp:function(e){var t=this;Object(s.k)({pageId:e.pageId}).then(function(a){var n=a.data.result.totalCount;n?t.$confirm("当前模板已关联链接("+n+"),请确认投放链接已投放结束,取消关联后才可删除该模板","无法删除该模板",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(a){t.relationDetail(e)}):t.$confirm("模板删除后将无法恢复","确认要删除该模板吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(a){t.deleteRequest(e)})})},deleteRequest:function(e){var t=this;Object(s.g)({pageId:e.pageId}).then(function(e){t.$message.success("删除成功"),t.getList()})},editTemp:function(e){this.$router.push("/ladingPageEdit/"+e.pageId)},goLinkDetail:function(e){this.dialogVisible=!1,this.$router.push("/attractFlowLinkInfo/"+e)}}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-content"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入模板ID/名称、创建人",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.form.pageSearchText,callback:function(t){e.$set(e.form,"pageSearchText",t)},expression:"form.pageSearchText"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("模板创建时间:")]),e._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.getList,clear:e.getList},model:{value:e.form.dateRange,callback:function(t){e.$set(e.form,"dateRange",t)},expression:"form.dateRange"}})],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.addTemp}},[e._v("新增模板")])],1),e._v(" "),a("div",{staticClass:"tips m-b-16"},[e._v("\n 二维码只是样式预览效果,请勿直接使用\n ")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"card-content"},e._l(e.list,function(t){return a("card-view",{key:t.pageId,attrs:{content:t},on:{relationDetail:function(a){return e.relationDetail(t)},deleteTemp:function(a){return e.deleteTemp(t)},editTemp:function(a){return e.editTemp(t)}}})}),1),e._v(" "),a("relation-dialog",{attrs:{dialogVisible:e.dialogVisible,pageId:e.pageId},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},goLinkDetail:e.goLinkDetail}}),e._v(" "),0!=e.list.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1):e._e()],1)},staticRenderFns:[]};var d=a("VU/8")(l,g,!1,function(e){a("Iojf")},"data-v-7a7d1744",null);t.default=d.exports},hegY:function(e,t){}}); webpackJsonp([13,49,107],{"4KYo":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={data:function(){return{card:{pageName:"",pageCode:"",pageId:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:""}}},props:{content:{type:Object,default:function(){}}},watch:{content:{handler:function(e){if(e){var t=e.pageName,a=e.pageCode,n=e.pageId,i=e.pageTitle,r=e.merchantName,o=e.merchantPhoneNumber,s=e.merchantLogo,c=e.pageBackgroundImg,l=e.guideComment,g=e.createorName,d=e.createTime;this.card={pageName:t,pageCode:a,pageId:n,pageTitle:i,merchantName:r,merchantPhoneNumber:o,merchantLogo:s,pageBackgroundImg:c,guideComment:l,createorName:g,createTime:d}}},immediate:!0}}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card"},[n("div",{staticClass:"head"},[n("div",{staticClass:"operation"},[n("div",{staticClass:"idNum"},[e._v("ID:"+e._s(e.card.pageCode))]),e._v(" "),n("div",{staticClass:"btns"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("relationDetail")}}},[e._v("关联详情")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("deleteTemp")}}},[e._v("删除")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("editTemp")}}},[e._v("编辑")])],1)]),e._v(" "),n("div",{staticClass:"tempName"},[e._v(e._s(e.card.pageName))]),e._v(" "),n("div",{staticClass:"cardName"},[n("div",{staticClass:"createName"},[e._v(e._s(e.card.createorName))]),e._v(" "),n("div",{staticClass:"createTime"},[e._v(e._s(e._f("formatTimeStamp")(e.card.createTime)))])])]),e._v(" "),n("div",{staticClass:"iphone-content"},[n("div",{staticClass:"iphone"},[n("span",{staticClass:"pageTitle"},[e._v(e._s(e.card.pageTitle))]),e._v(" "),n("img",{attrs:{src:a("NBDD")}}),e._v(" "),n("div",{staticClass:"content"},[n("img",{directives:[{name:"show",rawName:"v-show",value:e.card.pageBackgroundImg,expression:"card.pageBackgroundImg"}],staticClass:"bgImg",attrs:{src:e.card.pageBackgroundImg}}),e._v(" "),n("div",{staticClass:"enterpriseInfo"},[n("div",{staticClass:"logo"},[n("img",{attrs:{src:e.card.merchantLogo}})]),e._v(" "),n("div",{staticClass:"name"},[e._v(e._s(e.card.merchantName))])]),e._v(" "),n("div",{staticClass:"QRcode"}),e._v(" "),n("div",{staticClass:"leadingText"},[e._v(e._s(e.card.guideComment))]),e._v(" "),n("div",{staticClass:"enterpriseNum"},[n("i",{staticClass:"iconfont-hb3 iconhuawushuju"}),e._v(" "),n("p",[e._v(e._s(e.card.merchantPhoneNumber))])])])])])])},staticRenderFns:[]};var r=a("VU/8")(n,i,!1,function(e){a("hegY")},"data-v-00439c3c",null);t.default=r.exports},GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),r={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var s=a("VU/8")(r,o,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=s.exports},Iojf:function(e,t){},NBDD:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABMCAYAAAAcJW5lAAAAAXNSR0IArs4c6QAAFD1JREFUeF7tnQl0jVe7x//vGTMaK8bWp99tJYJPaihuiSFiaGgFFVRIzDOta1YkaoiWEpVKdaCqgg4kdam096O37lJBBlNXaxaV0BIynZMz3PXs5ByJIec9ySEn8uy1smTFfvfw2+/5n2fv59l7SyiWcszmBgq9YaIC6Gcym/8JwK34//PvTIAJMIFKSCBXIUnnTMAek0a1wV2Srln6IFl+0ekMAxRK6SOj0fSM2WyuhH3kJjMBJsAEHk1AkiQolYqbJqN5vFar+ppyCgHMy9OHqdTKWIPBqGKATIAJMIGnmYBKpTQYCoxjXV01n0k5OTkNNFrXZIPBUOdp7jT3jQkwASZgIaBSqW7odXmtpLw83SJJoVjM015+OZgAE6gqBGg6bDaZFkv5+fpUM9CiqnSc+8kEmAATKFr/S5PydQXZZrPZnZEwASbABKoSAUmScqS8fD27fKvSqHNfmQATsBJgAeSXgQkwgSpLgAWwyg49d5wJMAEWQH4HmAATqLIEWACr7NBzx5kAE2AB5HeACTCBKkuABbDKDj13nAkwARZAfgeYABN4KIGcnBzs2rkDGq0GgwYNhkrl2KMCaPeZwWCAyWQqxwhIUKtVUCgUZSrDoQKYm5uL9KtXUWAwoFGjRqhWrZqsRun1evz111+oVasWtFptiWcyMzPh7u4ufjgxASbweAlI1vOhJHzz9S4MHTpEVJiWdhL/8cKLsisXW81snCqVmJiIuXNmIzs7W3a5QMmwZRLl3n36YOWKKEhlEEGHCeDvv/+OsJGhOHXqlPimaFC/ATbGxqJ9h46ldo6AR0RE4L1Vq/Dtd9+hW7fuIn9BQQG2bNmM+fPmYUlEBMaNG28HJM7KBJiAvQRItL7Yshl7/3svAgJ6wN3NFSNHjhTFJCenoKm3j/j9r79uIiUlxVq8QlKgdZs28PT0hMFgRGrKCSGYtZ+pjZdfbo86dR48Z0WlVKBdu3ZYvmIF6tWrR/tyZTVXpdYI48qS8vLy8Fq/IKxduw5+L7WWVUbxTA4RQLL8OnZoj7r16mLjRxvh7uGBFcuXIS4uDsdPpMDLy6uwThJv6zdM4Z+++eYbjBs7GmRuxyd8j+7dA3DyZBpCQ4cjMyMDWVlZWBm1ChMnTrK7c/wAE2ACNgiYzcjJzRXT0OrVPNGuXVshbk29vTF3zpyHCuCOuO1YvHgROnXqVPSRljBv/nx4edXFqPAwpKeno0OHDrh+/TqOHDmCr7bHoVWrViUaQgL4/PNNsG//D/Dv3Al3796VNVQ+Ps1w9OhRGIz3BDN0+Jt4c/ibCAzsJasMhwvgsWNJeOU/O+J/fzmM1q3biPJJ0Jr84znMX7AA06e/hQsXLghTt3nz5tb6T58+jaBXeyMsPByroqLw7Xe7hQAeOngQX277EsOGDcXAAQOweEkEC6DdQ8sPMAHbBMia69ixA7Ju38aOHTsxa9YspKQkw9vbG3MeIoBkJUavWys+zytWRomZmpubG2gm9+H69cLoIVFzc3cXts7SpRHIzMjEB2vXPVwA9/2Ajh3bC0NHTvL1bY7k5OQSAjj8zWHo0sUf4eFjICnus7BsFOoQC/Dnnw8hsEcAkpKOwbd54cEyOp0OjZ9rhFeDgrBlyxfw82slLLpTp8+K9bysrNsIerUPOvv7Izg4GF38/fHd7j1CAM0wQ6lQ4tKli2j9kh8LoJw3g/MwAZkE6LN3Mi1NTE1pzd3bu6l4ckNMjJjBlSaA5GyYPeu/cP78OTHdvXv3DoKDB2DipEkICOiOkJAhCA8fBZPJiAK9HrS+T9PUOl51QeJpSVYL0AECSBZgQkI8Tp0+g/r1G8ikUJjNIQL4999/418tW8C/SxdER0dDq9EiOnotIiMj0alTZxxITERsbCzIoTFr9myYTWZMnDAOGRmZ2Lnra6SmJpcQQEsPrly5zAJo13ByZiZQOgESoYUL5mPVqijUrl1bzNp8igQwJiYGH9kQQKVSgRXLlyMjIwNvz5yJmzdvol/fvti8eTNmzJiOxUsi0bdvXxw6dBAzpk+DwWhEw4YNkZCwt4Sn1tECuHPnDpw9+xsa/6OJXa+AQwSQaoyL246335oBjUYDd3cP+Pj44MLFC/Bt5outW7fCYDIDRV6hTz7ZhOh167Bv337Ur19PzOm7du0ipsABAQHWhUIWQLvGkjMzAZsESABJmGJiNgjrLzkl1S4BpAoyMq7D07Na0dRXQsjgQejWPQA//fgjWvn5ialzXl4+bt26hR8TD2DNmtU4mnT8sQrg7t3f4fSZs2jY8J6DxCYMR1mAJGxGowHnzp/D2TNnUL16DbR7uT38WrXE8NBQLFy4yBrrQwPwwgv/RF0vLwGLNPHmjUzEx8cjsGdP4X2aMmUKTCYzWADlDCHnYQLyCTwggMkp8PHxFgWUZgGeOJECbx8fulQIY8eMQf369YUFeOfOHQT26IH3V78PlUqN8ePG4stt2+DbrDlMZhO2bN6MTz/9BL8ePfbYBJDWAFu0bIG3Z86C0s5QGIdYgOTweK1vEMaOH4/Bg0NE/E98/G6EjRyJXw7/H5o29calixeRnZON5r7NEbk0skTsD60Nbt/+FV57vT96BgYifBStIbAAyn+tOScTkElAkvDpJ5swb+4c4ZDcsetrdPXvjL9v3ULc9jhs27YNNJ3s1+81jB8/HgMGBItZHU2VyctLiQyT8LCRInZXry9AyJAhmD9/gVjj27Vrp4gAMRpNYi2/mqcnpk2bgeCBAyAVCwEpPgXu3LkT7tyR5wRp1swXSUlJDzhBQkeEokePnjIh3MvmEAE0m00IGzkCBw8exOTJU0Woy9oP1ogAxdjYTQJMu7atcePGDaSmnYSHhyeE26goJR09ItYAd5MTJKCHNYDyypVLaP3SS+wEsXtY+QEm8GgCJrMZep0OSqUSarVaOCooDEbrooXJaBKeXZVaLaw9nU4vZOv+DQoFhgJkXM+Ah6cnqlevXiK6jcqjz7qrq6uIDVRrNNblL0urSABbtfoXPt70KTIzM2AoMMgaMvIuv/LKK1aNoJ0kA4L7Y9GiRTZjjh9WgUMEkAq+ffs25s2bg+PHjgsPEHlzFyx8x7qD44M1q5F+7RpWrox6YNvKb7+dFesSEZHvok2bwjAaSgRm7JjRGDEyDP37B8sCxJmYABNwfgJkFJElSs5R8gOUNZGHmeKOt23bLixVe5PDBJAqpm8MMonFt4lWW2KPn9irJ0F8w9yfCIZCIYlpb4ntM3SR8cP+bm8vOT8TYAJOR4A+9zduZIowmbImsmLr1q0LpbJs+5QdKoBl7QQ/xwSYABOoCAIsgBVBnetkAkzAKQiwADrFMHAjmAATqAgCLIAVQZ3rZAJMwCkIsAA6xTBwI5gAE6gIAiyAFUGd62QCTMApCLAAOsUwcCOYABOoCAIsgBVBnetkAkzAKQiwADrFMHAjmAATqAgCLIAVQZ3rZAJMwCkIsAA6xTBwI5gAE6gIAiyAFUGd62QCTMApCLAAOsUwcCOYABOoCAIsgBVBnetkAk+QgDhhyUzHk1IqebH4E2yGg6oqOlZVkkpcslTWwlkAy0qOn2MCTkyARI8uGzcYCo+nK0yVXfwswAsPU6Yj9pQqtfi3+I1z9gwLC6A9tDgvE3B2AnQ/T9GVlNRUjUYtTn0mkRBncj4FiQSdfujkan1BgdB1tUZbeB9IsZPm5XSVBVAOJc7DBCoBAbL66C5ek8kgjqO3CF8laHqZm2gRQjpUVaFQCiG0xxpkASwzen6QCTgRAbMZOl2+mOZ6eHiI+z6qUjIajaDL2ehUea2Lq2wRZAGsSm8J9/WpJECWX+ElR5K4g8ceC8jZgJAlp9PpxNUYZMG6ubnJnrrTMzk5uTAYjNC6uMji4BABzM6+Czc3d9kNdTbo3B4mUJkJ6PU6mE1GVKtWTdaH/nH1le4IpjbYm0i40tLSsGvXLvz666/iRjm67a1mzZrw9fVFUFAQunXr9sDNdA+rh8rKzs6GGRI0Gq3NppRbAOlu0Anjx6Fnr14YNXrMA9ff2WwBZ2ACTKDMBOgGRl1+nriasqKdHH/++ae4MN2elJubi/Xr1yM6OhrXr18Xz9epUwcqlUrcNHn58mVhCb7++utYunQpnnvuOZvF07pgVlYWNFpXm0sB5RJAquTNYUPx73//D6ZNm45ly5aD7hzlxASYwJMhkJebAzc3V1nW0eNukb0CSNPdSZMmYevWrWjatCmmTp0qLD0vLy8hXCSAZBlu2LABe/fuRYsWLcTF7d7e3ja7QncT5+TmwsXVvcSdxfc/WGYBJMtv9KhwJCYewPQZM7BgwUJotS42G8YZmAATcAwBsnR0+bmoUaNGhU59Lb2xRwBpqjp79my8//77CA4OxurVq/Hss88+FAw5Nz788EO88847aNmyJfbv3y+mx6UlKp8MNLXGpVQrsEwCeOvWLSF++/fvw/QZb4lb2dVq+y8ldsxrwKUwgapJgNb+VEqFcBQ4Q7JHAJOSktClSxdh+ZF1R3f7lpZoTXDu3Ll47733sGbNGkybNs2m6Ofl5YMsQfIKPyrZLYC00Dl2zBgkJOzB2LHjsDIqisXPGd4+bkOVI0DTX09PD7FeZm8i6/HMmTM4deoUGjZsiLZt20KjKZ8RI1cAyTqbMmUKYmJi8P3336NXr17W5t+9exe//PKLCGlp3769aJsl0ayzXbt2wkNM7aZYx9IShcZk3bkDNzcPxwjgtWvXMGjgAJw8dRLvvrsMEyZMKPON7PYOGOdnAkzgHgESARLAmjVLn/6SwZKamirWzZ555hlrATTlXLx4MUhwXFxcxDT0888/Fw4HSvn5+Th27Bief/552Y4NuQJIbWrTpo0I2aE6LM4b8v727NlTrPuReJFD5LPPPkNgYKC13cuWLcP8+fPx008/oWvXrjanwbdvZ8HF1e2R1qJsC5DEb0jIGzhx4gQWLHwHM2fOFJHXnJgAE3jyBAoFMBu1atV6ZOU0/QsNDRVWFoWTJCQkCBG8efOmWEsjwbIkcjr88MMPwglB4jNu3DjExcWhSZMm2LdvHxo0aGCzk3IF8OrVq3jxxRfxxhtvCNG1JFoPJF0pnjp06IDDhw9b/0TC1717d3z88ccYPXq0zTbdzroNjcb1kR5yWQJICj1t6hR89FEM/P39ER+fILaccGICTKBiCMgRwIyMDOFYoD2zFBxNQkbW1KVLl4Rld++QhMI+kBiNGDECFJpCa3IUT0dp586dGDhwoM2OyhXAixcvivonTpwoQmAsafLkycLZUTyR8Kanp1v/dOTIETE1pnXA6dOn22wTeZIpHOZRIUKyBJBquZZ+FUOHDRUW4Nw5czFn7jyblXMGJsAEHg8BOQJIFmBYWJiw5GjtbM+ePcICpJ0WNNU8ePCgtXG1a9cW09HGjRsLC5DEiKwsshxJOOXE98kVQBLmZs2aoXPnzvj222+tbThw4AD69OkjgqAtiUSyuChSsPSgQYPw1VdfISQkxCZch1iAllrIdA0Z/AZOnkzDkiWRmCrDE2OzhZyBCTABuwlYBJDCQUrb+kYW0B9//CECiCm+zpJSUlJE3N3x48eFlbh8+XL069fPWhY5IchJQhaYnOkvlStXAEmYaapN7Tp//rzVi03CFxUVJZwjtDZJ7aFpMQVGU6I+jxo1Cps3b8bp06eFB7m0ZAmFKdwb/PCTcGRbgJaK0tOvYkjIYKSkpiIiIlKYoRz7bPf7yw8wgfIRMAO5udmoXr2azd0OD6vIsmWMYuUojMaWkMpprFwBpLKWLFkifsi6I2eqJZH1SWuUJIZkrWq195bazp07J5wnJHw///yz1WHzqLaJHSHkBHHzeOQpWXYLIFUmRHBICFKSkxG59F1MnTpNDh/OwwSYgAMJ6HX5UKtVNsNBHFhlqUXZI4CUl8SM1id3794NcnaUlkio+/fvj0OHDiE+Ph69e/e22S3yZOfr9HBxZBygpdYrVy6L6TCZohGRSzF5yhQUHVZts2GcgQkwgfITIAtHryvcB+wMJ8DYI4DUe3KuDB8+XEzBN27cKBys9x/jRZYqLb2RV5rWIslJExsba9P6o/JJNFUqDZSlxEmWyQK0DN3VK1fQr19fXLhwXoggWYLi/gFOTIAJPH4CNA3Oy4aHu3u5g5gd0Vh7BZCmu5s2bRJb4kjMycKjeESa4lI8IglfYmIivvjiC/H7sGHDsG7dOiH4thJZlnezs+FKe4FLOSW6XAJIjbhy+RKGhw7Hq68GYdas2SyAtkaG/58JOJCA0WgATYUr62kwJIJHjx4FBTiTF5jEinZ4UNgKeaspFIc8xvPmzRMCaWv3B6ElMaVga7VaW6r1R3nLLYBUyI0bmahRo6Yss9SBY89FMQEmYAb0+sKToD09PSt0Kkze3bJupyOhI68zBTpTnCCJX6NGjdCxY0f4+fkJD7acaX7hoag5MJpM0GpcUepRMI4SQH4LmQATqDgC9KGnMwHJIUIeXTlCUXGtLb1mcZtdsWU0e844FKFBeXlFByDI4+AQC9BZYXK7mEBVIUCaodPlQiFJ4k4Qe4TjaWBE016yIulfrYs88XPYFPhpAMh9YAKVngDdDaLXgU6JJkuQHAmV2RqUMx7iJryCArF9T1IoxTH49vSZLUA5lDkPE6gsBOheYKNRCCE5PymQmNblynN5uLN1nUTPch1mfn7hBUokfCKEhu8Fdrbh4vYwgSdPQIiE0QiDoUCIhaR4uqJ06fpLSaEQZyEqlSq7rL7io8EW4JN/N7lGJvDkCBQ5FIRzAWZyFlfuJImVO7HWKZKdFt/9nWcBrNyvA7eeCTCBchBgASwHPH6UCTCByk2ABbByjx+3ngkwgXIQYAEsBzx+lAkwgcpNgAWwco8ft54JMIFyEGABLAc8fpQJMIHKTUAym82l30hcufvHrWcCTIAJPJLA/wO/IhCDzzZbpQAAAABJRU5ErkJggg=="},YYEh:function(e,t){},fjEt:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Dd8w"),i=a.n(n),r=a("4KYo"),o=a("GdW8"),s=a("PeHS"),c=a("PI0u"),l={data:function(){return{form:{pageSearchText:"",dateRange:[],pageSize:20,pageNum:1},loading:!1,total:0,pageId:"",dialogVisible:!1,list:[{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"1",pageTitle:"页面页面页面页面标题",merchantName:"商户名称商户名称商户名称商户名称商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按保存图片并识别二长按保存图片并识别二长按保存图片并识别二长按保存图片并识别二长按保存图片并识别二",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"2",pageTitle:"页面标题2",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"3",pageTitle:"页面标题3",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"4",pageTitle:"页面标题4",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3},{pageName:"模板名称模板名称模板名称模板名称模板",pageCode:"MB01123456789012300001",pageId:"5",pageTitle:"页面标题5",merchantName:"商户名称",merchantPhoneNumber:"0571-1234567",merchantLogo:"https://pic01-10001430.image.myqcloud.com/d4b383df-8eb1-49d6-9c84-8e3e36958464",pageBackgroudImg:"https://pic01-10001430.image.myqcloud.com/b91f73af-43e4-4733-a4d3-0ab0bcb4ce7f",guideComment:"长按识别二维码添加您的专属导购",createorName:"艾蜜雪管理员",createTime:1657257986e3}]}},components:{cardView:r.default,relationDialog:o.default},mounted:function(){this.getList()},activated:function(){this.$route.meta.refresh&&(this.form={pageSearchText:"",dateRange:[],pageSize:20,pageNum:1}),this.getList()},methods:{toInput:Object(c.a)(function(e,t){this.getList()},500),getList:function(){var e=this,t=i()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(t.startTime=this.form.dateRange[0]+" 00:00:00",t.endTime=this.form.dateRange[1]+" 23:59:59"),delete t.dateRange,this.loading=!0,Object(s.j)(t).then(function(t){var a=t.data.result,n=a.result,i=a.totalCount;n&&(e.total=i,e.list=n)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()},addTemp:function(){this.$router.push("/ladingPageAdd")},relationDetail:function(e){this.dialogVisible=!0,this.pageId=e.pageId},deleteTemp:function(e){var t=this;Object(s.k)({pageId:e.pageId}).then(function(a){var n=a.data.result.totalCount;n?t.$confirm("当前模板已关联链接("+n+"),请确认投放链接已投放结束,取消关联后才可删除该模板","无法删除该模板",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(a){t.relationDetail(e)}):t.$confirm("模板删除后将无法恢复","确认要删除该模板吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(a){t.deleteRequest(e)})})},deleteRequest:function(e){var t=this;Object(s.g)({pageId:e.pageId}).then(function(e){t.$message.success("删除成功"),t.getList()})},editTemp:function(e){this.$router.push("/ladingPageEdit/"+e.pageId)},goLinkDetail:function(e){this.dialogVisible=!1,this.$router.push("/attractFlowLinkInfo/"+e)}}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-content"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入模板ID/名称、创建人",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.form.pageSearchText,callback:function(t){e.$set(e.form,"pageSearchText",t)},expression:"form.pageSearchText"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("模板创建时间:")]),e._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.getList,clear:e.getList},model:{value:e.form.dateRange,callback:function(t){e.$set(e.form,"dateRange",t)},expression:"form.dateRange"}})],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.addTemp}},[e._v("新增模板")])],1),e._v(" "),a("div",{staticClass:"tips m-b-16"},[e._v("\n 二维码只是样式预览效果,请勿直接使用\n ")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"card-content"},e._l(e.list,function(t){return a("card-view",{key:t.pageId,attrs:{content:t},on:{relationDetail:function(a){return e.relationDetail(t)},deleteTemp:function(a){return e.deleteTemp(t)},editTemp:function(a){return e.editTemp(t)}}})}),1),e._v(" "),a("relation-dialog",{attrs:{dialogVisible:e.dialogVisible,pageId:e.pageId},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},goLinkDetail:e.goLinkDetail}}),e._v(" "),0!=e.list.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1):e._e()],1)},staticRenderFns:[]};var d=a("VU/8")(l,g,!1,function(e){a("Iojf")},"data-v-7a7d1744",null);t.default=d.exports},hegY:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([14,55,66],{UJH1:function(e,t){},VMUs:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("jssv"),d=a("P9l9"),p={name:"actCodeTable",components:{links:u.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(t){e.wxQrcode=t.wxQrcode,e.imageName=t.hmId+"_"+t.hmName,e.show=!0}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag&&2==t.hmType&&""==t.clerkCode)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(d.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{search:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.$route.meta.keepAlive||(this.getTableList(),this.searchGroup())},activated:function(){this.$route.meta.refresh&&(this.inFields={hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},this.pageParam={pageSize:20,pageNo:1}),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(d.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},r=a.result,o=a.pages;e.pageParamGroup.total=o,Array.isArray(r)&&(e.groupList=e.groupList.concat(r))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){""!==e?(this.pageParamGroup.search=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()):this.groupList=[]},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId}),console.log(this.selectHmIds,"this.selectHmIds")},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码!",type:"warning"});this.dialogGroupFormVisible=!0},batchOK:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(d.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length&&(this.inFields.startTime=this.dateTime?Date.parse(new Date(this.dateTime[0]).toString()):"",this.inFields.endTime=this.dateTime?Date.parse(new Date(this.dateTime[1]).toString()):""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=o()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{"limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:r.hmName}},[e._v(e._s(r.hmName?r.hmName:"--"))]),e._v(" "),a("p",[1==r.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[1==r.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==r.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==r.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==r.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNumT?r.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNum?r.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.clerkList[0]?r.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(r.clerkList[0]?"code:"+r.clerkList[0].clerkCode:"--"))]),e._v(" "),r.clerkList&&r.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.storeList[0]?r.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v(e._s(r.storeList[0]?"code:"+r.storeList[0].storeCode:"--"))]),e._v(" "),r.storeList&&r.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.hmGroupName?r.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.creatorName?r.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("dm-dropdown",{attrs:{"scope-data":r,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"25%"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活动区域",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],attrs:{placeholder:"选择分组",remote:"",filterable:"","remote-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("VMUs")},"data-v-b0cf74ae",null);t.default=h.exports},mKc4:function(e,t){},t6Nl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("P9l9"),d={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=l()(i.a.mark(function e(a,r,o){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var a=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=a&&o(new Error("该分组名称已存在,请重新输入")),o()}else t.checkNameLength>0&&o(new Error("该分组名称已存在,请重新输入")),o()});case 2:case"end":return e.stop()}},e,t)})),function(t,a,r){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:20},checkNameLength:-1,editNamePre:""}},created:function(){this.$route.meta.refresh||this.searchGroup()},activated:function(){this.$route.meta.refresh&&(this.pageP={groupName:"",pageNum:1,pageSize:20},this.searchGroup())},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=o()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){var a={groupId:e.groupId};Object(c.d)(a).then(function(e){0==e.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.pageP.pageNum=1,t.searchGroup())})}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=l()(i.a.mark(function e(a){var r,o,s,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(r={},o=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return s={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(c.f)(s);case 7:r=e.sent,e.next=14;break;case 10:return n={groupName:t.groupListForm.groupName},e.next=13,Object(c.b)(n);case 13:r=e.sent;case 14:0==r.data.code?(t.$message({type:"success",message:o,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"error",message:r.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return l()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(u.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return a=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=a.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(u.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var a=e.data.result||{},r=a.result,o=a.pages;t.groupList=t.groupList.concat(r),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=o||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"lists-content-box infinite-list-wrapper"},[a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return a("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(a){return e.clickGroupListItem(t)}}},[a("div",{staticClass:"wrap"},[a("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),a("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?a("el-popover",{attrs:{placement:"bottom",trigger:"click"}},[a("p",{staticClass:"more",on:{click:function(a){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():a("p",{staticClass:"more",on:{click:function(a){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?a("i",{staticClass:"iconfont-hb3 icongengduo icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),a("li",[e.groupLoading?a("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[a("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?a("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?a("div",{staticClass:"add-category"},[a("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[a("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[a("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}}),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("UJH1")},"data-v-ebb8fcd0",null);t.default=m.exports},tVK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("t6Nl"),o=a("XZyq"),s={name:"staffActCode",components:{GroupList:r.default,ActCodeTable:o.default},data:function(){return{currentGroupId:null}},methods:{getCurrentGroupID:function(e){this.currentGroupId=e}},watch:{currentGroupId:{handler:function(e){console.log(e,111),this.currentGroupId=e},immediate:!0}}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"border-box"},[t("div",{staticClass:"list-body flex"},[t("div",{staticClass:"list-left border-box"},[t("group-list",{ref:"groupListRef",on:{updateList:this.getCurrentGroupID}})],1),this._v(" "),t("div",{staticClass:"list-right p-20 border-box"},[t("dm-sub-title",{staticClass:"m-b-10",attrs:{text:"配置标签"}},[t("div",{staticClass:"title"},[t("span",[this._v("员工活码")]),this._v(" "),t("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[t("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),this._v("指标说明")])],1)]),this._v(" "),t("act-code-table",{attrs:{currentGroupId:this.currentGroupId}})],1)])])])},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("mKc4")},"data-v-f7c0ab88",null);t.default=n.exports}}); webpackJsonp([14,54,65],{UJH1:function(e,t){},VMUs:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("jssv"),d=a("P9l9"),p={name:"actCodeTable",components:{links:u.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(t){e.wxQrcode=t.wxQrcode,e.imageName=t.hmId+"_"+t.hmName,e.show=!0}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag&&2==t.hmType&&""==t.clerkCode)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(d.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{search:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.$route.meta.keepAlive||(this.getTableList(),this.searchGroup())},activated:function(){this.$route.meta.refresh&&(this.inFields={hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},this.pageParam={pageSize:20,pageNo:1}),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(d.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},r=a.result,o=a.pages;e.pageParamGroup.total=o,Array.isArray(r)&&(e.groupList=e.groupList.concat(r))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){""!==e?(this.pageParamGroup.search=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()):this.groupList=[]},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId}),console.log(this.selectHmIds,"this.selectHmIds")},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码!",type:"warning"});this.dialogGroupFormVisible=!0},batchOK:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(d.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length&&(this.inFields.startTime=this.dateTime?Date.parse(new Date(this.dateTime[0]).toString()):"",this.inFields.endTime=this.dateTime?Date.parse(new Date(this.dateTime[1]).toString()):""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=o()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{"limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:r.hmName}},[e._v(e._s(r.hmName?r.hmName:"--"))]),e._v(" "),a("p",[1==r.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[1==r.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==r.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==r.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==r.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNumT?r.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNum?r.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.clerkList[0]?r.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(r.clerkList[0]?"code:"+r.clerkList[0].clerkCode:"--"))]),e._v(" "),r.clerkList&&r.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.storeList[0]?r.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v(e._s(r.storeList[0]?"code:"+r.storeList[0].storeCode:"--"))]),e._v(" "),r.storeList&&r.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.hmGroupName?r.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.creatorName?r.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("dm-dropdown",{attrs:{"scope-data":r,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"25%"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活动区域",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],attrs:{placeholder:"选择分组",remote:"",filterable:"","remote-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("VMUs")},"data-v-b0cf74ae",null);t.default=h.exports},mKc4:function(e,t){},t6Nl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("P9l9"),d={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=l()(i.a.mark(function e(a,r,o){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var a=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=a&&o(new Error("该分组名称已存在,请重新输入")),o()}else t.checkNameLength>0&&o(new Error("该分组名称已存在,请重新输入")),o()});case 2:case"end":return e.stop()}},e,t)})),function(t,a,r){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:20},checkNameLength:-1,editNamePre:""}},created:function(){this.$route.meta.refresh||this.searchGroup()},activated:function(){this.$route.meta.refresh&&(this.pageP={groupName:"",pageNum:1,pageSize:20},this.searchGroup())},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=o()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){var a={groupId:e.groupId};Object(c.d)(a).then(function(e){0==e.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.pageP.pageNum=1,t.searchGroup())})}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=l()(i.a.mark(function e(a){var r,o,s,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(r={},o=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return s={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(c.f)(s);case 7:r=e.sent,e.next=14;break;case 10:return n={groupName:t.groupListForm.groupName},e.next=13,Object(c.b)(n);case 13:r=e.sent;case 14:0==r.data.code?(t.$message({type:"success",message:o,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"error",message:r.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return l()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(u.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return a=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=a.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(u.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var a=e.data.result||{},r=a.result,o=a.pages;t.groupList=t.groupList.concat(r),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=o||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"lists-content-box infinite-list-wrapper"},[a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return a("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(a){return e.clickGroupListItem(t)}}},[a("div",{staticClass:"wrap"},[a("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),a("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?a("el-popover",{attrs:{placement:"bottom",trigger:"click"}},[a("p",{staticClass:"more",on:{click:function(a){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():a("p",{staticClass:"more",on:{click:function(a){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?a("i",{staticClass:"iconfont-hb3 icongengduo icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),a("li",[e.groupLoading?a("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[a("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?a("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?a("div",{staticClass:"add-category"},[a("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[a("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[a("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}}),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("UJH1")},"data-v-ebb8fcd0",null);t.default=m.exports},tVK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("t6Nl"),o=a("XZyq"),s={name:"staffActCode",components:{GroupList:r.default,ActCodeTable:o.default},data:function(){return{currentGroupId:null}},methods:{getCurrentGroupID:function(e){this.currentGroupId=e}},watch:{currentGroupId:{handler:function(e){console.log(e,111),this.currentGroupId=e},immediate:!0}}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"border-box"},[t("div",{staticClass:"list-body flex"},[t("div",{staticClass:"list-left border-box"},[t("group-list",{ref:"groupListRef",on:{updateList:this.getCurrentGroupID}})],1),this._v(" "),t("div",{staticClass:"list-right p-20 border-box"},[t("dm-sub-title",{staticClass:"m-b-10",attrs:{text:"配置标签"}},[t("div",{staticClass:"title"},[t("span",[this._v("员工活码")]),this._v(" "),t("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[t("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),this._v("指标说明")])],1)]),this._v(" "),t("act-code-table",{attrs:{currentGroupId:this.currentGroupId}})],1)])])])},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("mKc4")},"data-v-f7c0ab88",null);t.default=n.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([18,71,113],{"8fbE":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("P9l9"),s={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var e=this;Object(n.b)("/haoban-app-customer-web/get-template-count",{}).then(function(t){var a=t.data||{},r=a.errorCode,n=a.result;1==r?e.canAddTemp=n>=20:o.a.errorMsg(t.data)})},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delTempList(t.templateId)}).catch(function(){})},delTempList:function(e){var t=this,a={templateId:e};Object(n.g)("/haoban-app-customer-web/del-group-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEdit:function(e,t){this.$router.push("/editGroupTemplate?templateId="+t.templateId)},toStore:function(e,t){this.$router.push("/storeRangeSet?templateId="+t.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/get-template-list",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):e.templateList=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:" border-box p-lbr-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div"),e._v(" "),a("div",[a("span",{staticClass:"font-12 color-909399"},[e._v("最多新建20个模板")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.addGroupTemp)?a("el-button",{staticClass:"m-l-20",attrs:{"limit-code":e.$buttonCode.addGroupTemp,disabled:e.$store.state.wxEnterpriseType||e.canAddTemp,type:"primary"},on:{click:e.addTemplate}},[e._v("新建模版")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.templateList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateId))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.editPerson))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.editTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.editTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.editGroupTemp)||e.$getButtonLimit(e.$buttonCode.setStoreArea)||e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.editGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.editGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.setStoreArea)?a("el-button",{attrs:{"limit-code":e.$buttonCode.setStoreArea,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toStore(t.$index,t.row)}}},[e._v("门店范围设置")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])}):e._e()],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(e){a("m59b")},"data-v-1c8e199b",null);t.default=l.exports},AYL1:function(e,t){},JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("scn4"),o=a("8fbE"),n={name:"app-detail",components:{MemberGroupList:r.default,MemberGroupSetList:o.default},props:{brandId:{type:String,default:""}},data:function(){return{activeName:"first"}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"客户分组列表",name:"first"}},[a("member-group-list",{attrs:{"brand-id":e.brandId}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"分组展示设置",name:"second"}},[a("member-group-set-list",{attrs:{"brand-id":e.brandId}})],1)],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(e){a("X1Gq")},"data-v-46c0621f",null);t.default=i.exports},X1Gq:function(e,t){},m59b:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var d=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=d.exports}}); webpackJsonp([18,70,113],{"8fbE":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("P9l9"),s={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var e=this;Object(n.b)("/haoban-app-customer-web/get-template-count",{}).then(function(t){var a=t.data||{},r=a.errorCode,n=a.result;1==r?e.canAddTemp=n>=20:o.a.errorMsg(t.data)})},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delTempList(t.templateId)}).catch(function(){})},delTempList:function(e){var t=this,a={templateId:e};Object(n.g)("/haoban-app-customer-web/del-group-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEdit:function(e,t){this.$router.push("/editGroupTemplate?templateId="+t.templateId)},toStore:function(e,t){this.$router.push("/storeRangeSet?templateId="+t.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/get-template-list",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):e.templateList=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:" border-box p-lbr-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div"),e._v(" "),a("div",[a("span",{staticClass:"font-12 color-909399"},[e._v("最多新建20个模板")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.addGroupTemp)?a("el-button",{staticClass:"m-l-20",attrs:{"limit-code":e.$buttonCode.addGroupTemp,disabled:e.$store.state.wxEnterpriseType||e.canAddTemp,type:"primary"},on:{click:e.addTemplate}},[e._v("新建模版")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.templateList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateId))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.editPerson))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.editTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.editTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.editGroupTemp)||e.$getButtonLimit(e.$buttonCode.setStoreArea)||e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.editGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.editGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.setStoreArea)?a("el-button",{attrs:{"limit-code":e.$buttonCode.setStoreArea,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toStore(t.$index,t.row)}}},[e._v("门店范围设置")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])}):e._e()],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(e){a("m59b")},"data-v-1c8e199b",null);t.default=l.exports},AYL1:function(e,t){},JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("scn4"),o=a("8fbE"),n={name:"app-detail",components:{MemberGroupList:r.default,MemberGroupSetList:o.default},props:{brandId:{type:String,default:""}},data:function(){return{activeName:"first"}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"客户分组列表",name:"first"}},[a("member-group-list",{attrs:{"brand-id":e.brandId}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"分组展示设置",name:"second"}},[a("member-group-set-list",{attrs:{"brand-id":e.brandId}})],1)],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(e){a("X1Gq")},"data-v-46c0621f",null);t.default=i.exports},X1Gq:function(e,t){},m59b:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var d=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([20,74],{AfRy:function(t,e){},NB3z:function(t,e){},cRNv:function(t,e){},phd8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("PeHS"),o=a("DvcT"),c=a("/p6h"),d=a("RSOD"),u=a("PI0u"),p={name:"TargetGroup",props:{dataList:{type:Array,default:function(){return[]}}}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"target-group"},t._l(t.dataList,function(e,i){return a("div",{key:i,staticClass:"target",style:{width:100/t.dataList.length+"%"}},[a("div",{staticClass:"target-label"},[t._v("\n "+t._s(e.label)+"\n "),e.tips?a("el-tooltip",{attrs:{placement:"top","popper-class":"target-tooltip"}},[a("div",{staticStyle:{"max-width":"450px"},attrs:{slot:"content"},domProps:{innerHTML:t._s(e.tips)},slot:"content"}),t._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined target-label-icon"})]):t._e()],1),t._v(" "),a("div",{staticClass:"target-value"},[t._v("\n "+t._s(e.value)),e.unit?a("span",{staticClass:"target-value-unit"},[t._v(t._s(e.unit))]):t._e()])])}),0)},staticRenderFns:[]};var v=a("VU/8")(p,m,!1,function(t){a("cRNv")},"data-v-d9e8cd40",null).exports,h=a("X2mQ"),f=a("tqu3"),g=a("Q0Ca"),b=a("ckKa"),k={name:"actCodeDetail",components:{actCodeDetailInfo:o.default,previewPage:d.a,VueQr:h.a,targetGroup:v,newAddChart:f.default,dataDetail:c.default},props:{hmId:{type:String,default:""}},mixins:[b.a],data:function(){return{fixedHeight:280,filters:g.a,statisticsClerk:l.u,loading:!1,activeName:this.$route.query.type?this.$route.query.type:"first",link:{},page:{},originTargetList:[[{label:"添加好友人数",value:"",key:"addNumT",type:"number"},{label:"今日新增人数",value:"",key:"addNum",type:"number"}],[{label:"点击总人次",value:"",key:"clickTimesT",type:"number"},{label:"今日点击人次",value:"",key:"clickTimes",type:"number"}],[{label:"点击总人数",value:"",key:"clickNumT",type:"number"},{label:"今日点击人数",value:"",key:"clickNum",type:"number"}]],charData:[],welcome:{},targetData:{},scrollTop:0,linkId:this.$route.params.id}},computed:{targetList:function(){var t=this;return this.originTargetList.map(function(e){return e.filter(function(e){var a=t.targetData[e.key]||0;return e.value=a.toLocaleString(),!0})}).filter(function(t){return t.length>0})}},methods:{getChartList:function(){var t=this,e={linkId:this.linkId,startTime:this.dateDefault[0]+" 00:00:00",endTime:this.dateDefault[1]+" 23:59:59"};Object(l.t)(e).then(function(e){var a=e.data.result;t.charData=a||[]})},statisticsTotal:function(){var t=this;Object(l.v)({linkId:this.linkId}).then(function(e){var a=e.data.result;a&&(t.targetData=a)})},downloadQR:function(){var t=document.getElementById("qrImg");console.log(t);var e=t.getElementsByTagName("img")[0],a=document.createElement("a"),i=e.getAttribute("src");a.setAttribute("href",i),a.setAttribute("download",this.link.linkId+"_"+this.link.name+".png"),a.click()},goEdit:function(){this.$router.push("/attractFlowLinkEdit/"+this.link.linkId)},getDetail:function(){var t=this;return r()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.loading=!0,Object(l.n)({linkId:t.linkId}).then(function(e){var a=e.data.result;if(a){var i=a.link,n=a.page,s=a.welcome;t.link=i,t.page=n,t.welcome=s}}).catch(function(t){this.$message.error({duration:1e3,message:t.message})}).finally(function(e){t.loading=!1});case 2:case"end":return e.stop()}},e,t)}))()},onDateChange:function(){this.dateKey=-1,this.getChartList()},scrollMethod:Object(u.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),handleClick:function(t){"first"==t.name?this.getDetail():this.getChartList()}},mounted:function(){this.getDetail(),this.getChartList(),this.statisticsTotal(),this.btnChange(0),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"info p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.link.linkType?a("vue-qr",{attrs:{id:"qrImg",text:t.link.linkUrl,size:200,margin:5}}):t._e(),t._v(" "),a("div",{staticClass:"title-right"},[a("el-descriptions",{attrs:{title:t.link.name}},[a("el-descriptions-item",{attrs:{label:"ID"}},[t._v(t._s(t.link.linkCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"code"}},[t._v(t._s(t.link.shortCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接类型"}},[a("el-tag",{class:2==t.link.linkType?"el-tag--cyan":"",attrs:{size:"mini"}},[t._v(t._s(1==t.link.linkType?"专用链接":"通用链接"))])],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.link.creatorName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.filters.formatTimeStamp(t.link.createTime)))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接标签"}},[a("el-tooltip",{attrs:{disabled:0!=t.link.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"mini",type:0==t.link.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.link.memberLabelName))])],1)],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接描述"}},[t._v(t._s(t.link.remark))])],1),t._v(" "),a("div",{staticClass:"m-t-10"},[2==t.link.linkType?a("el-button",{attrs:{icon:"el-icon-download",type:"primary",plain:""},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),2==t.link.linkType?a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:text",value:t.link.linkUrl,expression:"link.linkUrl",arg:"text"}],attrs:{type:"primary",plain:""}},[t._v("复制链接")]):t._e(),t._v(" "),a("el-button",{attrs:{plain:""},on:{click:t.goEdit}},[t._v("修改")])],1)],1)],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoLink)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoLink}},[a("act-code-detail-info",{attrs:{type:"actLink","enterprise-id":t.link.enterpriseId,"welcome-id":t.link.welcomeId}}),t._v(" "),a("dm-sub-title",[t._v("落地页配置")]),t._v(" "),a("div",{staticClass:"m-t-15"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"welcome-left-view"},[a("el-descriptions",{attrs:{column:1}},[a("el-descriptions-item",{attrs:{label:"页面标题"}},[t._v(t._s(t.page.pageTitle))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户名称"}},[t._v(t._s(t.page.merchantName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户电话"}},[t._v(t._s(t.page.merchantPhoneNumber))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户LOGO"}},[a("img",{staticClass:"merchantLogo",attrs:{src:t.page.merchantLogo}})]),t._v(" "),a("el-descriptions-item",{attrs:{label:"引导语"}},[t._v(t._s(t.page.guideComment))])],1)],1),t._v(" "),a("div",{staticClass:"preview"},[a("p",{staticClass:"previewTitle"},[t._v("落地页预览")]),t._v(" "),a("previewPage",{attrs:{data:t.page}}),t._v(" "),a("p",{staticClass:"previewBottom"},[t._v("此二维码只是样式预览效果,请勿直接使用")])],1)])])],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataLink)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataLink}},[a("div",{staticClass:"statistics"},[a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("概览")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:link",arg:"link"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("el-row",{attrs:{gutter:20}},t._l(t.targetList,function(t,e){return a("el-col",{key:e,attrs:{span:8}},[a("target-group",{attrs:{"data-list":t}})],1)}),1),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,i){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(e){return t.btnChange(i)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{staticStyle:{"margin-top":"26px"},attrs:{charData:t.charData,id:"new-add-chart"}}),t._v(" "),a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("查看明细")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:link",arg:"link"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{staticClass:"m-t-15",attrs:{id:t.linkId,typeT:"link",api:t.statisticsClerk}})],1)]):t._e()],1)],1)},staticRenderFns:[]};var y=a("VU/8")(k,_,!1,function(t){a("AfRy")},"data-v-7b9820bb",null);e.default=y.exports},tqu3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("5i7M"),o={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){e.next=3;break}return e.abrupt("return");case 3:a=t.handleData(t.charData),t.chart=new l.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(a,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:5,nice:!0},times:{min:0,tickCount:5,nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return(t>=1?t:0)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(105,200,168,1)","rgba(251, 159, 45, 1)"]),t.chart.line().position("date*times").color("type",["rgba(251, 159, 45, 1)"]),t.chart.render();case 15:case"end":return e.stop()}},e,t)}))()},handleData:function(t){var e=[];return t.forEach(function(t){e.push({date:t.bizDate,type:"今日添加人数",num:t.addNum}),e.push({date:t.bizDate,type:"今日点击人数",num:t.clickNum}),e.push({date:t.bizDate,type:"今日点击人次",times:t.clickTimes})}),e}}},c={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():e("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),e("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(o,c,!1,function(t){a("NB3z")},"data-v-867bb266",null);e.default=d.exports}}); webpackJsonp([20,73],{AfRy:function(t,e){},NB3z:function(t,e){},cRNv:function(t,e){},phd8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("PeHS"),o=a("DvcT"),c=a("/p6h"),d=a("RSOD"),u=a("PI0u"),p={name:"TargetGroup",props:{dataList:{type:Array,default:function(){return[]}}}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"target-group"},t._l(t.dataList,function(e,i){return a("div",{key:i,staticClass:"target",style:{width:100/t.dataList.length+"%"}},[a("div",{staticClass:"target-label"},[t._v("\n "+t._s(e.label)+"\n "),e.tips?a("el-tooltip",{attrs:{placement:"top","popper-class":"target-tooltip"}},[a("div",{staticStyle:{"max-width":"450px"},attrs:{slot:"content"},domProps:{innerHTML:t._s(e.tips)},slot:"content"}),t._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined target-label-icon"})]):t._e()],1),t._v(" "),a("div",{staticClass:"target-value"},[t._v("\n "+t._s(e.value)),e.unit?a("span",{staticClass:"target-value-unit"},[t._v(t._s(e.unit))]):t._e()])])}),0)},staticRenderFns:[]};var v=a("VU/8")(p,m,!1,function(t){a("cRNv")},"data-v-d9e8cd40",null).exports,h=a("X2mQ"),f=a("tqu3"),g=a("Q0Ca"),b=a("ckKa"),k={name:"actCodeDetail",components:{actCodeDetailInfo:o.default,previewPage:d.a,VueQr:h.a,targetGroup:v,newAddChart:f.default,dataDetail:c.default},props:{hmId:{type:String,default:""}},mixins:[b.a],data:function(){return{fixedHeight:280,filters:g.a,statisticsClerk:l.u,loading:!1,activeName:this.$route.query.type?this.$route.query.type:"first",link:{},page:{},originTargetList:[[{label:"添加好友人数",value:"",key:"addNumT",type:"number"},{label:"今日新增人数",value:"",key:"addNum",type:"number"}],[{label:"点击总人次",value:"",key:"clickTimesT",type:"number"},{label:"今日点击人次",value:"",key:"clickTimes",type:"number"}],[{label:"点击总人数",value:"",key:"clickNumT",type:"number"},{label:"今日点击人数",value:"",key:"clickNum",type:"number"}]],charData:[],welcome:{},targetData:{},scrollTop:0,linkId:this.$route.params.id}},computed:{targetList:function(){var t=this;return this.originTargetList.map(function(e){return e.filter(function(e){var a=t.targetData[e.key]||0;return e.value=a.toLocaleString(),!0})}).filter(function(t){return t.length>0})}},methods:{getChartList:function(){var t=this,e={linkId:this.linkId,startTime:this.dateDefault[0]+" 00:00:00",endTime:this.dateDefault[1]+" 23:59:59"};Object(l.t)(e).then(function(e){var a=e.data.result;t.charData=a||[]})},statisticsTotal:function(){var t=this;Object(l.v)({linkId:this.linkId}).then(function(e){var a=e.data.result;a&&(t.targetData=a)})},downloadQR:function(){var t=document.getElementById("qrImg");console.log(t);var e=t.getElementsByTagName("img")[0],a=document.createElement("a"),i=e.getAttribute("src");a.setAttribute("href",i),a.setAttribute("download",this.link.linkId+"_"+this.link.name+".png"),a.click()},goEdit:function(){this.$router.push("/attractFlowLinkEdit/"+this.link.linkId)},getDetail:function(){var t=this;return r()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.loading=!0,Object(l.n)({linkId:t.linkId}).then(function(e){var a=e.data.result;if(a){var i=a.link,n=a.page,s=a.welcome;t.link=i,t.page=n,t.welcome=s}}).catch(function(t){this.$message.error({duration:1e3,message:t.message})}).finally(function(e){t.loading=!1});case 2:case"end":return e.stop()}},e,t)}))()},onDateChange:function(){this.dateKey=-1,this.getChartList()},scrollMethod:Object(u.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),handleClick:function(t){"first"==t.name?this.getDetail():this.getChartList()}},mounted:function(){this.getDetail(),this.getChartList(),this.statisticsTotal(),this.btnChange(0),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"info p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.link.linkType?a("vue-qr",{attrs:{id:"qrImg",text:t.link.linkUrl,size:200,margin:5}}):t._e(),t._v(" "),a("div",{staticClass:"title-right"},[a("el-descriptions",{attrs:{title:t.link.name}},[a("el-descriptions-item",{attrs:{label:"ID"}},[t._v(t._s(t.link.linkCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"code"}},[t._v(t._s(t.link.shortCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接类型"}},[a("el-tag",{class:2==t.link.linkType?"el-tag--cyan":"",attrs:{size:"mini"}},[t._v(t._s(1==t.link.linkType?"专用链接":"通用链接"))])],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.link.creatorName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.filters.formatTimeStamp(t.link.createTime)))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接标签"}},[a("el-tooltip",{attrs:{disabled:0!=t.link.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"mini",type:0==t.link.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.link.memberLabelName))])],1)],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接描述"}},[t._v(t._s(t.link.remark))])],1),t._v(" "),a("div",{staticClass:"m-t-10"},[2==t.link.linkType?a("el-button",{attrs:{icon:"el-icon-download",type:"primary",plain:""},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),2==t.link.linkType?a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:text",value:t.link.linkUrl,expression:"link.linkUrl",arg:"text"}],attrs:{type:"primary",plain:""}},[t._v("复制链接")]):t._e(),t._v(" "),a("el-button",{attrs:{plain:""},on:{click:t.goEdit}},[t._v("修改")])],1)],1)],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoLink)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoLink}},[a("act-code-detail-info",{attrs:{type:"actLink","enterprise-id":t.link.enterpriseId,"welcome-id":t.link.welcomeId}}),t._v(" "),a("dm-sub-title",[t._v("落地页配置")]),t._v(" "),a("div",{staticClass:"m-t-15"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"welcome-left-view"},[a("el-descriptions",{attrs:{column:1}},[a("el-descriptions-item",{attrs:{label:"页面标题"}},[t._v(t._s(t.page.pageTitle))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户名称"}},[t._v(t._s(t.page.merchantName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户电话"}},[t._v(t._s(t.page.merchantPhoneNumber))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户LOGO"}},[a("img",{staticClass:"merchantLogo",attrs:{src:t.page.merchantLogo}})]),t._v(" "),a("el-descriptions-item",{attrs:{label:"引导语"}},[t._v(t._s(t.page.guideComment))])],1)],1),t._v(" "),a("div",{staticClass:"preview"},[a("p",{staticClass:"previewTitle"},[t._v("落地页预览")]),t._v(" "),a("previewPage",{attrs:{data:t.page}}),t._v(" "),a("p",{staticClass:"previewBottom"},[t._v("此二维码只是样式预览效果,请勿直接使用")])],1)])])],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataLink)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataLink}},[a("div",{staticClass:"statistics"},[a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("概览")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:link",arg:"link"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("el-row",{attrs:{gutter:20}},t._l(t.targetList,function(t,e){return a("el-col",{key:e,attrs:{span:8}},[a("target-group",{attrs:{"data-list":t}})],1)}),1),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,i){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(e){return t.btnChange(i)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{staticStyle:{"margin-top":"26px"},attrs:{charData:t.charData,id:"new-add-chart"}}),t._v(" "),a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("查看明细")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:link",arg:"link"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{staticClass:"m-t-15",attrs:{id:t.linkId,typeT:"link",api:t.statisticsClerk}})],1)]):t._e()],1)],1)},staticRenderFns:[]};var y=a("VU/8")(k,_,!1,function(t){a("AfRy")},"data-v-7b9820bb",null);e.default=y.exports},tqu3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("5i7M"),o={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){e.next=3;break}return e.abrupt("return");case 3:a=t.handleData(t.charData),t.chart=new l.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(a,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:5,nice:!0},times:{min:0,tickCount:5,nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return(t>=1?t:0)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(105,200,168,1)","rgba(251, 159, 45, 1)"]),t.chart.line().position("date*times").color("type",["rgba(251, 159, 45, 1)"]),t.chart.render();case 15:case"end":return e.stop()}},e,t)}))()},handleData:function(t){var e=[];return t.forEach(function(t){e.push({date:t.bizDate,type:"今日添加人数",num:t.addNum}),e.push({date:t.bizDate,type:"今日点击人数",num:t.clickNum}),e.push({date:t.bizDate,type:"今日点击人次",times:t.clickTimes})}),e}}},c={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():e("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),e("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(o,c,!1,function(t){a("NB3z")},"data-v-867bb266",null);e.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([24,76,114],{"7koN":function(t,e){},ZEf4:function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,l=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(l||{}).clerkEditInfo;n()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(l.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=o.exports},tPY2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("i0rV"),n=a("w5vQ"),l={name:"GuideSetting",components:{GuideAuthSetting:i.default,AppVisibleSetting:n.default},data:function(){return{activeName:"first"}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"导购操作权限设置",name:"first"}},[a("guide-auth-setting")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"应用可见权限设置",name:"second"}},[a("app-visible-setting")],1)],1)],1)},staticRenderFns:[]},r=a("VU/8")(l,s,!1,null,null,null);e.default=r.exports},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var l=(n||{}).allList;l=Array.isArray(l)?l:[],t.allApps=l,t.settingData.checked=l.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),i={dataJson:n()(a)};Object(l.g)("/haoban-manage3-web/open-or-close",i).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=o.exports}}); webpackJsonp([24,75,114],{"7koN":function(t,e){},ZEf4:function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,l=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(l||{}).clerkEditInfo;n()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(l.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=o.exports},tPY2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("i0rV"),n=a("w5vQ"),l={name:"GuideSetting",components:{GuideAuthSetting:i.default,AppVisibleSetting:n.default},data:function(){return{activeName:"first"}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"导购操作权限设置",name:"first"}},[a("guide-auth-setting")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"应用可见权限设置",name:"second"}},[a("app-visible-setting")],1)],1)],1)},staticRenderFns:[]},r=a("VU/8")(l,s,!1,null,null,null);e.default=r.exports},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var l=(n||{}).allList;l=Array.isArray(l)?l:[],t.allApps=l,t.settingData.checked=l.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),i={dataJson:n()(a)};Object(l.g)("/haoban-manage3-web/open-or-close",i).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=o.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([27,65],{"5k/n":function(t,e){},DWsn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),i=a.n(s),n=a("exGp"),o=a.n(n),l=a("DvcT"),d=a("YQXN"),c=a("PI0u"),r=a("P9l9"),u=a("Ch4/"),f={name:"actCodeDetail",components:{actCodeDetailInfo:l.default,actCodeDetailStatistics:d.default},props:{hmId:{type:String,default:""}},data:function(){return{fixedHeight:237,codeInfo:{},loading:!1,activeName:"first",codeStatusLis:[{value:"",style:""},{value:"正常",style:"success"},{value:"已作废",style:"danger"},{value:"待生效",style:"info"},{value:"正常-今日已达上限",style:"warning"}],statusIndex:1,scrollTop:0,useMemberList:[]}},methods:{downloadQR:function(){var t,e,a,s;t=this.codeInfo.hmId+"_"+this.codeInfo.name,e=this.codeInfo.wxQrcode,a=e,(s=new XMLHttpRequest).open("GET",a,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),i=window.URL.createObjectURL(a),n=document.createElement("a");n.href=i,n.download=t+".png",n.click()},s.send()},modifyCode:function(){this.$router.push("/actCodeEdit?hmId="+this.$route.query.hmId)},discardCode:function(){var t=this,e=this;this.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(r.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:e.$route.query.hmId}).then(function(a){e.loading=!1,0!=a.data.code?u.a.errorMsg(a.data):t.getActCodeInfo()})})},getActCodeInfo:function(){var t=this;return o()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=t).$route.query.hmId.length<=0)){e.next=3;break}return e.abrupt("return");case 3:a.loading=!0,Object(r.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:a.$route.query.hmId}).then(function(t){var e=t.data;if(a.loading=!1,0==e.code)return a.statusIndex=1==e.result.statusFlag&&1==e.result.overFlag?4:e.result.statusFlag,a.codeInfo=e.result,void(a.fixedHeight=2!=a.codeInfo.statusFlag?280:237);u.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 5:case"end":return e.stop()}},e,t)}))()},scrollMethod:Object(c.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),useMemberData:function(t){this.useMemberList=t}},mounted:function(){this.activeName=this.$route.query.activeName||"first",this.getActCodeInfo(),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-detail-wrap p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.codeInfo.hmType?a("el-image",{staticClass:"img-200",attrs:{src:t.codeInfo.wxQrcode}}):t._e(),t._v(" "),a("div",{staticClass:"text-ellipsis-white color-303133",style:1==t.codeInfo.hmType?"width:100%;":"width: calc(100% - 230px);"},[a("div",{staticClass:"p-t-12 flex height-22"},[a("div",{staticClass:"font-16 line-22 text-ellipsis-white font-w-500"},[t._v(t._s(t.codeInfo.name))]),t._v(" "),a("el-tag",{staticStyle:{"margin-left":"8px"},attrs:{size:"small",effect:"dark",type:t.codeStatusLis[t.statusIndex].style}},[t._v(t._s(t.codeStatusLis[t.statusIndex].value))])],1),t._v(" "),a("p",{staticClass:"font-14 m-t-10 "},[t._v("ID:"+t._s(t.codeInfo.hmCode))]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"20px"}},[a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("\n 类       型:\n ")]),t._v(" "),a("el-tag",{attrs:{size:"small"}},[t._v(t._s(1==t.codeInfo.hmType?"单人活码":"多人活码"))])],1),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建人:"+t._s(t.codeInfo.creatorName||"--"))]),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建时间:"+t._s(t._f("formatTimeStamp")(t.codeInfo.createTime)))])]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"15px"}},[a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("所属分组:"+t._s(t.codeInfo.hmGroupName||"--"))]),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("自动通过好友:")]),t._v(" "),a("el-tag",{attrs:{size:"small",type:1==t.codeInfo.passFlag?"":"danger"}},[t._v(t._s(1==t.codeInfo.passFlag?"已开启":"已关闭"))])],1),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("活码标签:")]),t._v(" "),a("el-tooltip",{attrs:{disabled:0!=t.codeInfo.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"small",type:0==t.codeInfo.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.codeInfo.memberLabelName||"--"))])],1)],1)]),t._v(" "),2!=t.codeInfo.statusFlag&&t.codeInfo.statusFlag?a("div",{staticClass:"flex",staticStyle:{"padding-top":"20px"}},[2==t.codeInfo.hmType&&1==t.codeInfo.statusFlag?a("el-button",{staticStyle:{width:"120px","margin-right":"12px"},attrs:{icon:"el-icon-download",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{type:"primary",plain:""},on:{click:t.modifyCode}},[t._v("编辑")]),t._v(" "),a("el-button",{staticClass:"button-discard specter",style:2==t.codeInfo.hmType&&t.useMemberList.length>0?"":"border-color: #F5222D;",attrs:{type:"danger",plain:"",disabled:2==t.codeInfo.hmType&&t.useMemberList.length>0},on:{click:t.discardCode}},[t._v("作废")])],1):t._e()])],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoActCode)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoActCode}},[a("act-code-detail-info",{attrs:{"enterprise-id":t.codeInfo.enterpriseId,"welcome-id":t.codeInfo.welcomeId,"hm-id":t.$route.query.hmId},on:{useMemberList:t.useMemberData}})],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataActCode)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataActCode}},[a("act-code-detail-statistics",{attrs:{"hm-id":t.$route.query.hmId}})],1):t._e()],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,v,!1,function(t){a("5k/n")},"data-v-636d090a",null);e.default=m.exports},YQXN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("/p6h"),i=a("eaYI"),n=a("P9l9"),o=a("ckKa"),l=a("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:s.default,newAddChart:i.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[o.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,e={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",e).then(function(e){var a=e.data;if(t.loading=!1,0==a.code){var s=a.result||{addNumT:0,addNum:0,dateList:[]};return s.dateList.map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=s)}l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("ul",{staticClass:"flex"},[a("li",{staticClass:"data-total-cell m-r-22"},[a("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),a("li",{staticClass:"data-total-cell "},[a("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,s){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==s?"activeClass":"noActive",on:{click:function(e){return t.btnChange(s)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background"},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=a("VU/8")(d,c,!1,function(t){a("kRHg")},"data-v-b0df7d22",null);e.default=r.exports},kRHg:function(t,e){}}); webpackJsonp([27,64],{"5k/n":function(t,e){},DWsn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),i=a.n(s),n=a("exGp"),o=a.n(n),l=a("DvcT"),d=a("YQXN"),c=a("PI0u"),r=a("P9l9"),u=a("Ch4/"),f={name:"actCodeDetail",components:{actCodeDetailInfo:l.default,actCodeDetailStatistics:d.default},props:{hmId:{type:String,default:""}},data:function(){return{fixedHeight:237,codeInfo:{},loading:!1,activeName:"first",codeStatusLis:[{value:"",style:""},{value:"正常",style:"success"},{value:"已作废",style:"danger"},{value:"待生效",style:"info"},{value:"正常-今日已达上限",style:"warning"}],statusIndex:1,scrollTop:0,useMemberList:[]}},methods:{downloadQR:function(){var t,e,a,s;t=this.codeInfo.hmId+"_"+this.codeInfo.name,e=this.codeInfo.wxQrcode,a=e,(s=new XMLHttpRequest).open("GET",a,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),i=window.URL.createObjectURL(a),n=document.createElement("a");n.href=i,n.download=t+".png",n.click()},s.send()},modifyCode:function(){this.$router.push("/actCodeEdit?hmId="+this.$route.query.hmId)},discardCode:function(){var t=this,e=this;this.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(r.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:e.$route.query.hmId}).then(function(a){e.loading=!1,0!=a.data.code?u.a.errorMsg(a.data):t.getActCodeInfo()})})},getActCodeInfo:function(){var t=this;return o()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=t).$route.query.hmId.length<=0)){e.next=3;break}return e.abrupt("return");case 3:a.loading=!0,Object(r.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:a.$route.query.hmId}).then(function(t){var e=t.data;if(a.loading=!1,0==e.code)return a.statusIndex=1==e.result.statusFlag&&1==e.result.overFlag?4:e.result.statusFlag,a.codeInfo=e.result,void(a.fixedHeight=2!=a.codeInfo.statusFlag?280:237);u.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 5:case"end":return e.stop()}},e,t)}))()},scrollMethod:Object(c.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),useMemberData:function(t){this.useMemberList=t}},mounted:function(){this.activeName=this.$route.query.activeName||"first",this.getActCodeInfo(),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-detail-wrap p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.codeInfo.hmType?a("el-image",{staticClass:"img-200",attrs:{src:t.codeInfo.wxQrcode}}):t._e(),t._v(" "),a("div",{staticClass:"text-ellipsis-white color-303133",style:1==t.codeInfo.hmType?"width:100%;":"width: calc(100% - 230px);"},[a("div",{staticClass:"p-t-12 flex height-22"},[a("div",{staticClass:"font-16 line-22 text-ellipsis-white font-w-500"},[t._v(t._s(t.codeInfo.name))]),t._v(" "),a("el-tag",{staticStyle:{"margin-left":"8px"},attrs:{size:"small",effect:"dark",type:t.codeStatusLis[t.statusIndex].style}},[t._v(t._s(t.codeStatusLis[t.statusIndex].value))])],1),t._v(" "),a("p",{staticClass:"font-14 m-t-10 "},[t._v("ID:"+t._s(t.codeInfo.hmCode))]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"20px"}},[a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("\n 类       型:\n ")]),t._v(" "),a("el-tag",{attrs:{size:"small"}},[t._v(t._s(1==t.codeInfo.hmType?"单人活码":"多人活码"))])],1),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建人:"+t._s(t.codeInfo.creatorName||"--"))]),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建时间:"+t._s(t._f("formatTimeStamp")(t.codeInfo.createTime)))])]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"15px"}},[a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("所属分组:"+t._s(t.codeInfo.hmGroupName||"--"))]),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("自动通过好友:")]),t._v(" "),a("el-tag",{attrs:{size:"small",type:1==t.codeInfo.passFlag?"":"danger"}},[t._v(t._s(1==t.codeInfo.passFlag?"已开启":"已关闭"))])],1),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("活码标签:")]),t._v(" "),a("el-tooltip",{attrs:{disabled:0!=t.codeInfo.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"small",type:0==t.codeInfo.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.codeInfo.memberLabelName||"--"))])],1)],1)]),t._v(" "),2!=t.codeInfo.statusFlag&&t.codeInfo.statusFlag?a("div",{staticClass:"flex",staticStyle:{"padding-top":"20px"}},[2==t.codeInfo.hmType&&1==t.codeInfo.statusFlag?a("el-button",{staticStyle:{width:"120px","margin-right":"12px"},attrs:{icon:"el-icon-download",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{type:"primary",plain:""},on:{click:t.modifyCode}},[t._v("编辑")]),t._v(" "),a("el-button",{staticClass:"button-discard specter",style:2==t.codeInfo.hmType&&t.useMemberList.length>0?"":"border-color: #F5222D;",attrs:{type:"danger",plain:"",disabled:2==t.codeInfo.hmType&&t.useMemberList.length>0},on:{click:t.discardCode}},[t._v("作废")])],1):t._e()])],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoActCode)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoActCode}},[a("act-code-detail-info",{attrs:{"enterprise-id":t.codeInfo.enterpriseId,"welcome-id":t.codeInfo.welcomeId,"hm-id":t.$route.query.hmId},on:{useMemberList:t.useMemberData}})],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataActCode)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataActCode}},[a("act-code-detail-statistics",{attrs:{"hm-id":t.$route.query.hmId}})],1):t._e()],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,v,!1,function(t){a("5k/n")},"data-v-636d090a",null);e.default=m.exports},YQXN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("/p6h"),i=a("eaYI"),n=a("P9l9"),o=a("ckKa"),l=a("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:s.default,newAddChart:i.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[o.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,e={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",e).then(function(e){var a=e.data;if(t.loading=!1,0==a.code){var s=a.result||{addNumT:0,addNum:0,dateList:[]};return s.dateList.map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=s)}l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("ul",{staticClass:"flex"},[a("li",{staticClass:"data-total-cell m-r-22"},[a("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),a("li",{staticClass:"data-total-cell "},[a("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,s){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==s?"activeClass":"noActive",on:{click:function(e){return t.btnChange(s)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background"},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=a("VU/8")(d,c,!1,function(t){a("kRHg")},"data-v-b0df7d22",null);e.default=r.exports},kRHg:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([53],{"/pg7":function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("Xxa5"),a=t.n(n),m=t("Dd8w"),o=t.n(m),s=t("exGp"),u=t.n(s),i=t("1fzb"),l=t("znzC"),c=t("P9l9"),d={components:{setActCode:i.default,SelectClerk:l.default},data:function(){return{hmMemberNum:0,form:{hmType:1,clerkIdList:[],hmUserNum:null},memberType:1,data:[],storeClerkList:[]}},created:function(){this.getClerkNum()},methods:{radioChange:function(e){1==e&&(this.form.clerkIdList=["-1"],this.data=[],this.form.hmUserNum=this.hmMemberNum)},getClerkNum:function(){var e=this;Object(c.b)("/haoban-manage3-web/hm/qrcode/getAddCount",{}).then(function(r){0==r.data.code&&(e.hmMemberNum=r.data.result||0)})},onChange:function(e){this.data=e,this.form.clerkIdList=e.map(function(e){return e.clerkId}),this.form.hmUserNum=e.length},onSubmit:function(e){var r=this;return u()(a.a.mark(function t(){var n;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==r.memberType&&(r.form.clerkIdList=["-1"],r.form.hmUserNum=r.hmMemberNum),n=o()({},e,r.form),t.next=4,Object(c.f)("/haoban-manage3-web/hm/qrcode/addList",n).then(function(e){if(0!=e.data.code)return r.$message.error(e.data.message);setTimeout(function(){r.$route.meta.refresh=!0,r.$router.go(-1),r.form={hmType:1,clerkIdList:[],hmUserNum:null}},1e3)});case 4:case"end":return t.stop()}},t,r)}))()}}},f={render:function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",[t("setActCode",{on:{sumbit:e.onSubmit},scopedSlots:e._u([{key:"typeCode",fn:function(){return[t("el-form-item",{attrs:{label:"活码类型",rules:[{required:!0,message:"请选择活码类型",trigger:"blur"}]}},[t("el-radio-group",{model:{value:e.form.hmType,callback:function(r){e.$set(e.form,"hmType",r)},expression:"form.hmType"}},[t("el-radio",{attrs:{label:1}},[e._v("单人活码")])],1)],1)]},proxy:!0},{key:"member",fn:function(){return[t("el-form-item",{attrs:{label:"关联导购",rules:[{required:!0,message:"请选择使用成员",trigger:"blur"}]}},[t("el-radio-group",{on:{change:e.radioChange},model:{value:e.memberType,callback:function(r){e.memberType=r},expression:"memberType"}},[t("el-radio",{attrs:{label:1}},[e._v("全部成员")]),e._v(" "),t("el-radio",{attrs:{label:2}},[e._v("部分成员")])],1),e._v(" "),t("br"),e._v(" "),1==e.memberType?t("p",{staticClass:"tips"},[e._v("当前已选择 "+e._s(e.hmMemberNum)+" 个成员 "),t("span",[e._v("(活码名称默认为使用成员名称)")])]):e._e(),e._v(" "),2==e.memberType?t("select-clerk",{attrs:{multiple:!0,data:e.data},on:{change:e.onChange}}):e._e()],1)]},proxy:!0}])})],1)},staticRenderFns:[]};var h=t("VU/8")(d,f,!1,function(e){t("DGVQ")},"data-v-fce32800",null);r.default=h.exports},DGVQ:function(e,r){}});
\ No newline at end of file
webpackJsonp([54],{F1Rz:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),o=a("PI0u"),n=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{wmOrderShow:0,damoOrderShow:0,integralOrderShow:0},loading:!1}},methods:{submit:Object(o.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,wmOrderShow:e.myCustomData.wmOrderShow,damoOrderShow:e.myCustomData.damoOrderShow,integralOrderShow:this.myCustomData.integralOrderShow};Object(n.g)("/haoban-app-customer-web/customer/save-consume-setting",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return s.a.showmsg("保存成功","success"),void e.getShowSet();r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},getShowSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/customer/find-consume-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){this.getShowSet(this.brandId)}},mounted:function(){this.getShowSet(this.brandId)},components:{}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.wmOrderShow,callback:function(e){t.$set(t.myCustomData,"wmOrderShow",e)},expression:"myCustomData.wmOrderShow"}},[t._v("展示微盟商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示微盟商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.damoOrderShow,callback:function(e){t.$set(t.myCustomData,"damoOrderShow",e)},expression:"myCustomData.damoOrderShow"}},[t._v("展示达摩商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示达摩商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.integralOrderShow,callback:function(e){t.$set(t.myCustomData,"integralOrderShow",e)},expression:"myCustomData.integralOrderShow"}},[t._v("展示积分商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示GIC积分商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[a("el-button",{attrs:{type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(e){return t.submit("showFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var l=a("VU/8")(i,d,!1,function(t){a("x8+l")},"data-v-f4928c2e",null);e.default=l.exports},"x8+l":function(t,e){}}); webpackJsonp([53],{F1Rz:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),o=a("PI0u"),n=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{wmOrderShow:0,damoOrderShow:0,integralOrderShow:0},loading:!1}},methods:{submit:Object(o.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,wmOrderShow:e.myCustomData.wmOrderShow,damoOrderShow:e.myCustomData.damoOrderShow,integralOrderShow:this.myCustomData.integralOrderShow};Object(n.g)("/haoban-app-customer-web/customer/save-consume-setting",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return s.a.showmsg("保存成功","success"),void e.getShowSet();r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},getShowSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/customer/find-consume-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){this.getShowSet(this.brandId)}},mounted:function(){this.getShowSet(this.brandId)},components:{}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.wmOrderShow,callback:function(e){t.$set(t.myCustomData,"wmOrderShow",e)},expression:"myCustomData.wmOrderShow"}},[t._v("展示微盟商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示微盟商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.damoOrderShow,callback:function(e){t.$set(t.myCustomData,"damoOrderShow",e)},expression:"myCustomData.damoOrderShow"}},[t._v("展示达摩商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示达摩商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.myCustomData.integralOrderShow,callback:function(e){t.$set(t.myCustomData,"integralOrderShow",e)},expression:"myCustomData.integralOrderShow"}},[t._v("展示积分商城订单")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,客户详情 - 消费记录中将展示GIC积分商城交易成功的订单")])],1),t._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[a("el-button",{attrs:{type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(e){return t.submit("showFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var l=a("VU/8")(i,d,!1,function(t){a("x8+l")},"data-v-f4928c2e",null);e.default=l.exports},"x8+l":function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([55],{UJH1:function(e,t){},t6Nl:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("Dd8w"),i=r.n(a),o=r("Xxa5"),s=r.n(o),u=r("exGp"),n=r.n(u),p=r("PeHS"),c=r("P9l9"),l={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=n()(s.a.mark(function e(r,a,i){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var r=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=r&&i(new Error("该分组名称已存在,请重新输入")),i()}else t.checkNameLength>0&&i(new Error("该分组名称已存在,请重新输入")),i()});case 2:case"end":return e.stop()}},e,t)})),function(t,r,a){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:20},checkNameLength:-1,editNamePre:""}},created:function(){this.$route.meta.refresh||this.searchGroup()},activated:function(){this.$route.meta.refresh&&(this.pageP={groupName:"",pageNum:1,pageSize:20},this.searchGroup())},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=i()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){var r={groupId:e.groupId};Object(p.d)(r).then(function(e){0==e.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.pageP.pageNum=1,t.searchGroup())})}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=n()(s.a.mark(function e(r){var a,i,o,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}if(a={},i=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return o={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(p.f)(o);case 7:a=e.sent,e.next=14;break;case 10:return u={groupName:t.groupListForm.groupName},e.next=13,Object(p.b)(u);case 13:a=e.sent;case 14:0==a.data.code?(t.$message({type:"success",message:i,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"error",message:a.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return n()(s.a.mark(function e(){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(c.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return r=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=r.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(c.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var r=e.data.result||{},a=r.result,i=r.pages;t.groupList=t.groupList.concat(a),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=i||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",[r("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"lists-content-box infinite-list-wrapper"},[r("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return r("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(r){return e.clickGroupListItem(t)}}},[r("div",{staticClass:"wrap"},[r("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),r("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?r("el-popover",{attrs:{placement:"bottom",trigger:"click"}},[r("p",{staticClass:"more",on:{click:function(r){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():r("p",{staticClass:"more",on:{click:function(r){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?r("i",{staticClass:"iconfont-hb3 icongengduo icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),r("li",[e.groupLoading?r("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[r("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?r("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?r("div",{staticClass:"add-category"},[r("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),r("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[r("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[r("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}}),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=r("VU/8")(l,g,!1,function(e){r("UJH1")},"data-v-ebb8fcd0",null);t.default=m.exports}}); webpackJsonp([54],{UJH1:function(e,t){},t6Nl:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("Dd8w"),i=r.n(a),o=r("Xxa5"),s=r.n(o),u=r("exGp"),n=r.n(u),p=r("PeHS"),c=r("P9l9"),l={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=n()(s.a.mark(function e(r,a,i){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var r=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=r&&i(new Error("该分组名称已存在,请重新输入")),i()}else t.checkNameLength>0&&i(new Error("该分组名称已存在,请重新输入")),i()});case 2:case"end":return e.stop()}},e,t)})),function(t,r,a){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:20},checkNameLength:-1,editNamePre:""}},created:function(){this.$route.meta.refresh||this.searchGroup()},activated:function(){this.$route.meta.refresh&&(this.pageP={groupName:"",pageNum:1,pageSize:20},this.searchGroup())},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=i()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){var r={groupId:e.groupId};Object(p.d)(r).then(function(e){0==e.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.pageP.pageNum=1,t.searchGroup())})}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=n()(s.a.mark(function e(r){var a,i,o,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}if(a={},i=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return o={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(p.f)(o);case 7:a=e.sent,e.next=14;break;case 10:return u={groupName:t.groupListForm.groupName},e.next=13,Object(p.b)(u);case 13:a=e.sent;case 14:0==a.data.code?(t.$message({type:"success",message:i,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"error",message:a.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return n()(s.a.mark(function e(){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(c.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return r=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=r.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(c.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var r=e.data.result||{},a=r.result,i=r.pages;t.groupList=t.groupList.concat(a),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=i||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",[r("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"lists-content-box infinite-list-wrapper"},[r("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return r("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(r){return e.clickGroupListItem(t)}}},[r("div",{staticClass:"wrap"},[r("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),r("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?r("el-popover",{attrs:{placement:"bottom",trigger:"click"}},[r("p",{staticClass:"more",on:{click:function(r){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():r("p",{staticClass:"more",on:{click:function(r){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?r("i",{staticClass:"iconfont-hb3 icongengduo icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),r("li",[e.groupLoading?r("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[r("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?r("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?r("div",{staticClass:"add-category"},[r("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),r("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[r("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[r("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}}),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=r("VU/8")(l,g,!1,function(e){r("UJH1")},"data-v-ebb8fcd0",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([56],{"8dpP":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"image-com flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var c=a("VU/8")(i,s,!1,function(t){a("ut2q")},"data-v-e9ece5a0",null);e.default=c.exports},ut2q:function(t,e){}}); webpackJsonp([55],{"8dpP":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"image-com flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var c=a("VU/8")(i,s,!1,function(t){a("ut2q")},"data-v-e9ece5a0",null);e.default=c.exports},ut2q:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([57],{"4O7P":function(t,e){},vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-298+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.b)("/haoban-manage3-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont-hb3 icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.storeName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("4O7P")},"data-v-e847b13c",null);e.default=c.exports}}); webpackJsonp([56],{"4O7P":function(t,e){},vuAV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-298+"px",navpath:[{name:"首页",path:"/index"},{name:"溢出门店",path:""}],searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(s.b)("/haoban-manage3-web/store-full-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入门店名称/CODE/ID",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}})],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"iconfont-hb3 icondianpu-kuai color-2f54eb"}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.storeName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"企业微信部门ID","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxDepartmentId||"--"))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是溢出门店?"),e("br"),this._v("当新增的门店超出你所订购的门店容量,系统会自动将其放入该列表。这些门店的所有业务功能都被禁用了,请尽快前往应用市场扩容门店容量,溢出门店将在门店容量充足的情况下自动恢复为可用状态。")])])])])}]};var c=a("VU/8")(o,i,!1,function(t){a("4O7P")},"data-v-e847b13c",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([58],{Fs0C:function(e,t){},SUcx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("woOf"),r=a.n(s),o=a("Ch4/"),n=a("P9l9"),l={name:"AddMemberShowRules",props:{brandId:{type:String,default:function(){return""}}},data:function(){var e=this;return{storeTypes:[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}],selectedTypes:[],wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{memberManageSettingId:"",strategyName:"",storeType:[],mainStoreFlag:0,minorStoreFlag:0,openCardStoreFlag:0,clerkSeeOtherFlag:0,showFreezeFlag:0,isSeeAuthMember:0,options:""},rules:{strategyName:{required:!0,message:"请输入策略名称",trigger:"blur"},storeType:{required:!0,validator:function(t,a,s){var r=a.filter(function(t){return!e.selectedTypes.includes(t)});return e.myCustomData.storeType.includes("-999")?s():e.storeTypes.every(function(t){return e.selectedTypes.includes(t.value)})?s(new Error("一种门店类型仅能包含在一个特殊策略中,当前所有门店类型已被其它特殊策略占用,无法创建")):0==r.length?s(new Error("请选择门店类型")):void s()},trigger:"blur"},options:{required:!0,message:"请选择设置项",trigger:"blur"}},loading:!1}},methods:{onOptionsChange:function(){var e=this.myCustomData,t=e.mainStoreFlag,a=e.minorStoreFlag,s=e.openCardStoreFlag,r=e.clerkSeeOtherFlag,o=e.showFreezeFlag,n=e.isSeeAuthMember,l=1==t||1==a||1==s||1==r||1==o||1==n;this.myCustomData.options=l?1:""},getSettingList:function(){var e=this;Object(n.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(t){var a=t.data||{},s=a.code,r=a.result;0==s?e.myCustomData.storeType.includes("-999")||(Array.isArray(r)&&(e.selectedTypes=r.reduce(function(t,a){if("string"==typeof a.storeType&&a.memberManageSettingId!=e.myCustomData.memberManageSettingId&&"-999"!=a.storeType){var s=a.storeType.split(",");s=s.filter(function(e){return!t.includes(e)}),t=t.concat(s)}return t},[]),e.myCustomData.storeType=e.myCustomData.storeType.concat(e.selectedTypes)),e.$nextTick(function(){e.rules.storeType.trigger="change"})):o.a.errorMsg(t.data)})},onSave:function(){var e=this;this.loading=!0,this.onOptionsChange(),this.$refs.myCustomData.validate(function(t){if(t){var a=e.myCustomData,s=a.memberManageSettingId,r=a.strategyName,l=a.storeType,i={memberManageSettingId:s,strategyName:r,mainStoreFlag:a.mainStoreFlag,minorStoreFlag:a.minorStoreFlag,openCardStoreFlag:a.openCardStoreFlag,clerkSeeOtherFlag:a.clerkSeeOtherFlag,showFreezeFlag:a.showFreezeFlag,isSeeAuthMember:a.isSeeAuthMember};i.storeType=l.filter(function(t){return!e.selectedTypes.includes(t)}).join(","),Object(n.g)("/haoban-app-customer-web/customer/save-member-show-setting",i).then(function(t){1==(t.data||{}).errorCode?(e.$message.success("保存成功"),e.$router.go(-1)):o.a.errorMsg(t.data)}).finally(function(){return e.loading=!1})}else e.loading=!1})},getShowSet:function(){var e=this;Object(n.g)("/haoban-app-customer-web/customer/find-member-manage-setting-detail",{memberManageSettingId:this.myCustomData.memberManageSettingId}).then(function(t){var a=t.data||{},s=a.code,n=a.result;if(0==s){var l=n||{},i=l.strategyName,m=l.storeType,u=l.mainStoreFlag,c=l.minorStoreFlag,g=l.openCardStoreFlag,d=l.clerkSeeOtherFlag,p=l.showFreezeFlag,y=l.isSeeAuthMember;r()(e.myCustomData,{strategyName:i,storeType:e.selectedTypes.concat("string"==typeof m?m.split(","):[]),mainStoreFlag:u,minorStoreFlag:c,openCardStoreFlag:g,clerkSeeOtherFlag:d,showFreezeFlag:p,isSeeAuthMember:y}),"-999"==m&&(e.selectedTypes=e.storeTypes.map(function(e){return e.value}),e.myCustomData.storeType=e.storeTypes.map(function(e){return e.value}),e.myCustomData.storeType.push("-999")),e.$nextTick(function(){e.rules.options.trigger="change"})}else o.a.errorMsg(t.data)})}},created:function(){this.getSettingList(),this.$route.query.id&&(this.myCustomData.memberManageSettingId=this.$route.query.id,this.getShowSet())}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-rules"},[a("el-form",{ref:"myCustomData",attrs:{model:e.myCustomData,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"策略名称",prop:"strategyName"}},[a("el-input",{staticStyle:{width:"460px"},attrs:{placeholder:"请输入策略名称",maxlength:"10","show-word-limit":""},model:{value:e.myCustomData.strategyName,callback:function(t){e.$set(e.myCustomData,"strategyName",t)},expression:"myCustomData.strategyName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[a("el-checkbox-group",{model:{value:e.myCustomData.storeType,callback:function(t){e.$set(e.myCustomData,"storeType",t)},expression:"myCustomData.storeType"}},e._l(e.storeTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{disabled:e.selectedTypes.includes(t.value),label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"设置项",prop:"options"}},[a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店作为服务门店名下客户")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店作为协管门店名下客户")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下客户")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.showFreezeFlag,callback:function(t){e.$set(e.myCustomData,"showFreezeFlag",t)},expression:"myCustomData.showFreezeFlag"}},[e._v("展示冻结会员")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店冻结会员")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已开卡会员")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员,不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购可查看本门店其他导购名下客户")])],1)])],1),e._v(" "),a("hb-form-bottom",[a("el-button",{on:{click:function(t){return e.$router.go(-1)}}},[e._v("返回")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var m=a("VU/8")(l,i,!1,function(e){a("Fs0C")},"data-v-e17ade14",null);t.default=m.exports}}); webpackJsonp([57],{Fs0C:function(e,t){},SUcx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("woOf"),r=a.n(s),o=a("Ch4/"),n=a("P9l9"),l={name:"AddMemberShowRules",props:{brandId:{type:String,default:function(){return""}}},data:function(){var e=this;return{storeTypes:[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}],selectedTypes:[],wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{memberManageSettingId:"",strategyName:"",storeType:[],mainStoreFlag:0,minorStoreFlag:0,openCardStoreFlag:0,clerkSeeOtherFlag:0,showFreezeFlag:0,isSeeAuthMember:0,options:""},rules:{strategyName:{required:!0,message:"请输入策略名称",trigger:"blur"},storeType:{required:!0,validator:function(t,a,s){var r=a.filter(function(t){return!e.selectedTypes.includes(t)});return e.myCustomData.storeType.includes("-999")?s():e.storeTypes.every(function(t){return e.selectedTypes.includes(t.value)})?s(new Error("一种门店类型仅能包含在一个特殊策略中,当前所有门店类型已被其它特殊策略占用,无法创建")):0==r.length?s(new Error("请选择门店类型")):void s()},trigger:"blur"},options:{required:!0,message:"请选择设置项",trigger:"blur"}},loading:!1}},methods:{onOptionsChange:function(){var e=this.myCustomData,t=e.mainStoreFlag,a=e.minorStoreFlag,s=e.openCardStoreFlag,r=e.clerkSeeOtherFlag,o=e.showFreezeFlag,n=e.isSeeAuthMember,l=1==t||1==a||1==s||1==r||1==o||1==n;this.myCustomData.options=l?1:""},getSettingList:function(){var e=this;Object(n.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(t){var a=t.data||{},s=a.code,r=a.result;0==s?e.myCustomData.storeType.includes("-999")||(Array.isArray(r)&&(e.selectedTypes=r.reduce(function(t,a){if("string"==typeof a.storeType&&a.memberManageSettingId!=e.myCustomData.memberManageSettingId&&"-999"!=a.storeType){var s=a.storeType.split(",");s=s.filter(function(e){return!t.includes(e)}),t=t.concat(s)}return t},[]),e.myCustomData.storeType=e.myCustomData.storeType.concat(e.selectedTypes)),e.$nextTick(function(){e.rules.storeType.trigger="change"})):o.a.errorMsg(t.data)})},onSave:function(){var e=this;this.loading=!0,this.onOptionsChange(),this.$refs.myCustomData.validate(function(t){if(t){var a=e.myCustomData,s=a.memberManageSettingId,r=a.strategyName,l=a.storeType,i={memberManageSettingId:s,strategyName:r,mainStoreFlag:a.mainStoreFlag,minorStoreFlag:a.minorStoreFlag,openCardStoreFlag:a.openCardStoreFlag,clerkSeeOtherFlag:a.clerkSeeOtherFlag,showFreezeFlag:a.showFreezeFlag,isSeeAuthMember:a.isSeeAuthMember};i.storeType=l.filter(function(t){return!e.selectedTypes.includes(t)}).join(","),Object(n.g)("/haoban-app-customer-web/customer/save-member-show-setting",i).then(function(t){1==(t.data||{}).errorCode?(e.$message.success("保存成功"),e.$router.go(-1)):o.a.errorMsg(t.data)}).finally(function(){return e.loading=!1})}else e.loading=!1})},getShowSet:function(){var e=this;Object(n.g)("/haoban-app-customer-web/customer/find-member-manage-setting-detail",{memberManageSettingId:this.myCustomData.memberManageSettingId}).then(function(t){var a=t.data||{},s=a.code,n=a.result;if(0==s){var l=n||{},i=l.strategyName,m=l.storeType,u=l.mainStoreFlag,c=l.minorStoreFlag,g=l.openCardStoreFlag,d=l.clerkSeeOtherFlag,p=l.showFreezeFlag,y=l.isSeeAuthMember;r()(e.myCustomData,{strategyName:i,storeType:e.selectedTypes.concat("string"==typeof m?m.split(","):[]),mainStoreFlag:u,minorStoreFlag:c,openCardStoreFlag:g,clerkSeeOtherFlag:d,showFreezeFlag:p,isSeeAuthMember:y}),"-999"==m&&(e.selectedTypes=e.storeTypes.map(function(e){return e.value}),e.myCustomData.storeType=e.storeTypes.map(function(e){return e.value}),e.myCustomData.storeType.push("-999")),e.$nextTick(function(){e.rules.options.trigger="change"})}else o.a.errorMsg(t.data)})}},created:function(){this.getSettingList(),this.$route.query.id&&(this.myCustomData.memberManageSettingId=this.$route.query.id,this.getShowSet())}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"add-rules"},[a("el-form",{ref:"myCustomData",attrs:{model:e.myCustomData,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"策略名称",prop:"strategyName"}},[a("el-input",{staticStyle:{width:"460px"},attrs:{placeholder:"请输入策略名称",maxlength:"10","show-word-limit":""},model:{value:e.myCustomData.strategyName,callback:function(t){e.$set(e.myCustomData,"strategyName",t)},expression:"myCustomData.strategyName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[a("el-checkbox-group",{model:{value:e.myCustomData.storeType,callback:function(t){e.$set(e.myCustomData,"storeType",t)},expression:"myCustomData.storeType"}},e._l(e.storeTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{disabled:e.selectedTypes.includes(t.value),label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"设置项",prop:"options"}},[a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店作为服务门店名下客户")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店作为协管门店名下客户")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下客户")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.showFreezeFlag,callback:function(t){e.$set(e.myCustomData,"showFreezeFlag",t)},expression:"myCustomData.showFreezeFlag"}},[e._v("展示冻结会员")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店冻结会员")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已开卡会员")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员,不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),e._v(" "),a("div",{staticClass:"setting-item"},[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:e.onOptionsChange},model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购客户")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后,门店导购可查看本门店其他导购名下客户")])],1)])],1),e._v(" "),a("hb-form-bottom",[a("el-button",{on:{click:function(t){return e.$router.go(-1)}}},[e._v("返回")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var m=a("VU/8")(l,i,!1,function(e){a("Fs0C")},"data-v-e17ade14",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([59],{Wj0m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("Ggl+"),s=a("LRn8"),l=a("P9l9"),r=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"TaskRecord",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,showDialog:!1,activeId:"1",conditionObj:{tableType:"1",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},selectRadio:2,loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}}}},computed:{},methods:{checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,console.log(this.selectRadio),this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(l.g)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this;e.loadingBtn=!0;var t=[];e.conditionObj.storeGroup.forEach(function(e){t.push(e.storeGroupId)});var a={search:e.conditionObj.searchInput||"",storeGroupIds:t.join(",")||"",storeIds:1==e.selectRadio?"":e.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:e.conditionObj.storeType||"",startDate:this.conditionObj.dateRange?this.conditionObj.dateRange[0]:"",endDate:this.conditionObj.dateRange?this.conditionObj.dateRange[1]:"",enterpriseId:e.activeBrand,selectType:2==e.selectRadio&&e.multipleSelection.length?0:this.selectRadio};Object(l.c)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(t){if(e.loadingBtn=!1,!t.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.xls",n=document.createElement("a");n.download=o,n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId)},getTableList:function(e){var t=this;console.log(this.selectRadio);var a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(l.b)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo?n.result.pageInfo.total:0,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),d.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},activated:function(){var e=this;e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},mounted:function(){var e=this;e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[e._m(0),e._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left flex flex-align-center"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",staticStyle:{"min-width":"213px !important"},attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("任务创建时间:")]),e._v(" "),a("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTaskRecord)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTaskRecord,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportTaskRecord)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportTaskRecord,type:"primary",loading:e.loadingBtn},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeGroupName",label:"门店分组"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount+" / "+t.row.invalidCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"删除状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["-"!=t.row.delStatusDesc?a("span",{staticClass:"state-point state-point-error"},[e._v(e._s(t.row.delStatusDesc))]):a("span",[e._v(e._s(t.row.delStatusDesc))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkTaskRecord)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkTaskRecord)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkTaskRecord,type:"text"},on:{click:function(a){return e.toDetail(t.$index,t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"m-b-20"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title"},[this._v("\n 1.此处仅统计近一年内的数据"),t("br"),this._v("\n 2.门店下具体某条话务任务的完成状态每天更新一次;下方列表中任务完成数据统计也为每天统计更新一次,非实时刷新。\n ")])])])])}]};var h=a("VU/8")(u,p,!1,function(e){a("mwxF")},"data-v-d990e3fe",null);t.default=h.exports},mwxF:function(e,t){}}); webpackJsonp([58],{Wj0m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("Ggl+"),s=a("LRn8"),l=a("P9l9"),r=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"TaskRecord",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,showDialog:!1,activeId:"1",conditionObj:{tableType:"1",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},selectRadio:2,loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}}}},computed:{},methods:{checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,console.log(this.selectRadio),this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio};Object(l.g)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this;e.loadingBtn=!0;var t=[];e.conditionObj.storeGroup.forEach(function(e){t.push(e.storeGroupId)});var a={search:e.conditionObj.searchInput||"",storeGroupIds:t.join(",")||"",storeIds:1==e.selectRadio?"":e.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:e.conditionObj.storeType||"",startDate:this.conditionObj.dateRange?this.conditionObj.dateRange[0]:"",endDate:this.conditionObj.dateRange?this.conditionObj.dateRange[1]:"",enterpriseId:e.activeBrand,selectType:2==e.selectRadio&&e.multipleSelection.length?0:this.selectRadio};Object(l.c)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(t){if(e.loadingBtn=!1,!t.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),o=(e.tableData[0]?e.tableData[0].storeName:"")+"门店任务报表.xls",n=document.createElement("a");n.download=o,n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId)},getTableList:function(e){var t=this;console.log(this.selectRadio);var a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(l.b)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo?n.result.pageInfo.total:0,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),d.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},activated:function(){var e=this;e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},mounted:function(){var e=this;e.activeBrand=e.brandId,this.brandId&&e.$nextTick(function(){e.getTableList()})},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[e._m(0),e._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left flex flex-align-center"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",staticStyle:{"min-width":"213px !important"},attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("任务创建时间:")]),e._v(" "),a("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTaskRecord)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTaskRecord,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportTaskRecord)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportTaskRecord,type:"primary",loading:e.loadingBtn},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeGroupName",label:"门店分组"}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount+" / "+t.row.invalidCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"删除状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["-"!=t.row.delStatusDesc?a("span",{staticClass:"state-point state-point-error"},[e._v(e._s(t.row.delStatusDesc))]):a("span",[e._v(e._s(t.row.delStatusDesc))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkTaskRecord)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkTaskRecord)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkTaskRecord,type:"text"},on:{click:function(a){return e.toDetail(t.$index,t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"m-b-20"},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title"},[this._v("\n 1.此处仅统计近一年内的数据"),t("br"),this._v("\n 2.门店下具体某条话务任务的完成状态每天更新一次;下方列表中任务完成数据统计也为每天统计更新一次,非实时刷新。\n ")])])])])}]};var h=a("VU/8")(u,p,!1,function(e){a("mwxF")},"data-v-d990e3fe",null);t.default=h.exports},mwxF:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([60],{"Jhz/":function(t,a){},NUSj:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),s=e("Qie6"),o=e("Z8ln"),r=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"订单评价",path:"/evaluate-set"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"订单评价",path:"/evaluate-set"}],tabListData:[{tabId:"1",tabName:"订单评价设置",icon:"iconshangpinshezhi"},{tabId:"2",tabName:"不良评价回访设置",icon:"icondingdan_pingjia"}],navName:{1:"订单评价设置",2:"不良评价回访设置"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("evaluate-set");break;case"2":this.changeRoute("bad-evaluate")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:s.a,expiredDialog:o.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var l=e("VU/8")(h,v,!1,function(t){e("Jhz/")},"data-v-d3ab38e0",null);a.default=l.exports}}); webpackJsonp([59],{"Jhz/":function(t,a){},NUSj:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),s=e("Qie6"),o=e("Z8ln"),r=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"订单评价",path:"/evaluate-set"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"订单评价",path:"/evaluate-set"}],tabListData:[{tabId:"1",tabName:"订单评价设置",icon:"iconshangpinshezhi"},{tabId:"2",tabName:"不良评价回访设置",icon:"icondingdan_pingjia"}],navName:{1:"订单评价设置",2:"不良评价回访设置"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("evaluate-set");break;case"2":this.changeRoute("bad-evaluate")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:s.a,expiredDialog:o.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var l=e("VU/8")(h,v,!1,function(t){e("Jhz/")},"data-v-d3ab38e0",null);a.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([61],{QHTa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Gu7T"),i=a.n(n),c=a("bzW+"),o=a("Qie6"),r=a("Z8ln"),s=a("Ch4/"),h=a("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}],navName:{1:"会员基础设置",11:"客户展示设置",12:"客户分组设置",13:"客户搜索设置",14:"客户详情设置",15:"客户标签设置",151:"同步记录",2:"我的客户列表"},navFrontPath:{11:"/memberShowSet",12:"/memberShowSet",13:"/memberShowSet",14:"/memberShowSet",15:"/memberShowSet",151:"/memberTagSet",2:"/memberShowSet",21:"/myCustomerList"},activeBrand:"",activeGroup:"",expiredFlag:!1,loading:!0}},computed:{},methods:{checkTagTab:function(){var e=this;this.loading=!0;var t={enterpriseId:this.activeBrand},a=[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}];Object(h.b)("/haoban-app-customer-web/tag/open-tag",t).then(function(t){t.data.result?a[0].children[4]={tabId:"15",tabName:"客户标签设置",icon:""}:"/memberTagSet"===e.$route.path&&e.$router.replace("memberShowSet"),e.$nextTick(function(){e.tabListData=[].concat(a)})}).finally(function(t){return e.loading=!1})},getExpired:function(){var e=this,t={enterpriseId:e.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.expiredFlag=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){this.activeBrand=e,this.activeGroup=t,this.getExpired(),this.checkTagTab()},setSelectTab:function(e){switch(this.activeTab=e.tabId,e.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet");break;case"14":this.changeRoute("memberDetailSet");break;case"15":this.changeRoute("memberTagSet");break;case"2":this.changeRoute("myCustomerList")}},showTab:function(e){var t=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=e,this.activeSelTab=e,this.navpath=[].concat(i()(this.defaultNavpath)),a.length&&a.map(function(e){t.navpath[t.navpath.length-1].path=t.navFrontPath[e],t.navpath.push({name:t.navName[e],path:""})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath},on:{selectBrandId:e.selectBrandId}}),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e.loading?e._e():a("common-detail-left",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[e.activeBrand?a("router-view",{attrs:{brandId:e.activeBrand,activeGroupId:e.activeGroup,tabType:e.activeTab},on:{showTab:e.showTab}}):e._e()],1)],1)])])]),e._v(" "),e.expiredFlag?a("expired-dialog"):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(d,m,!1,function(e){a("S/p6")},"data-v-d377b818",null);t.default=b.exports},"S/p6":function(e,t){}}); webpackJsonp([60],{QHTa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Gu7T"),i=a.n(n),c=a("bzW+"),o=a("Qie6"),r=a("Z8ln"),s=a("Ch4/"),h=a("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}],navName:{1:"会员基础设置",11:"客户展示设置",12:"客户分组设置",13:"客户搜索设置",14:"客户详情设置",15:"客户标签设置",151:"同步记录",2:"我的客户列表"},navFrontPath:{11:"/memberShowSet",12:"/memberShowSet",13:"/memberShowSet",14:"/memberShowSet",15:"/memberShowSet",151:"/memberTagSet",2:"/memberShowSet",21:"/myCustomerList"},activeBrand:"",activeGroup:"",expiredFlag:!1,loading:!0}},computed:{},methods:{checkTagTab:function(){var e=this;this.loading=!0;var t={enterpriseId:this.activeBrand},a=[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}];Object(h.b)("/haoban-app-customer-web/tag/open-tag",t).then(function(t){t.data.result?a[0].children[4]={tabId:"15",tabName:"客户标签设置",icon:""}:"/memberTagSet"===e.$route.path&&e.$router.replace("memberShowSet"),e.$nextTick(function(){e.tabListData=[].concat(a)})}).finally(function(t){return e.loading=!1})},getExpired:function(){var e=this,t={enterpriseId:e.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.expiredFlag=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){this.activeBrand=e,this.activeGroup=t,this.getExpired(),this.checkTagTab()},setSelectTab:function(e){switch(this.activeTab=e.tabId,e.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet");break;case"14":this.changeRoute("memberDetailSet");break;case"15":this.changeRoute("memberTagSet");break;case"2":this.changeRoute("myCustomerList")}},showTab:function(e){var t=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=e,this.activeSelTab=e,this.navpath=[].concat(i()(this.defaultNavpath)),a.length&&a.map(function(e){t.navpath[t.navpath.length-1].path=t.navFrontPath[e],t.navpath.push({name:t.navName[e],path:""})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath},on:{selectBrandId:e.selectBrandId}}),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e.loading?e._e():a("common-detail-left",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[e.activeBrand?a("router-view",{attrs:{brandId:e.activeBrand,activeGroupId:e.activeGroup,tabType:e.activeTab},on:{showTab:e.showTab}}):e._e()],1)],1)])])]),e._v(" "),e.expiredFlag?a("expired-dialog"):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(d,m,!1,function(e){a("S/p6")},"data-v-d377b818",null);t.default=b.exports},"S/p6":function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([62],{L1Lf:function(e,t){},f1qT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("CMYX"),l=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),c=a("PI0u"),d=a("3E4D"),u=a("Ch4/"),p={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{enableDownloadCompleteData:0,tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},loading:!1,selectRadio:2,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,exportDialog:!1}},computed:{},methods:{getInfo:function(){var e=this,t=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId;Object(r.b)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):e.enableDownloadCompleteData=a.result.enableDownloadCompleteData})},beforeExportExcel:function(){if(!this.multipleSelection.length)return d.a.showmsg("请选择门店","warning"),!1;1==this.enableDownloadCompleteData?this.exportDialog=!0:this.exportExcel(0)},changeExportDialog:function(){this.exportDialog=!1,this.multipleSelection=[],this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!t.multipleSelection.length)return d.a.showmsg("请选择门店","warning"),!1;var a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)}),t.loadingBtn=!0;var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",ecmId:t.$route.query.ecmId,ecmPlanName:this.$route.query.ecmName,storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),gicEnterpriseId:t.activeBrand,selectType:2==t.selectRadio&&t.multipleSelection.length?0:this.selectRadio,dataType:e};Object(r.c)("/haoban-app-tel-task-three-web/task/export-task-view-store-list",o).then(function(e){if(t.loadingBtn=!1,!e.data)return u.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=document.createElement("a");o.download="话务任务视图详情门店报表.xls",o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio,ecmId:t.$route.query.ecmId};Object(r.g)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId)},getTableList:function(e){var t=this,a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={ecmId:a.$route.query.ecmId,search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:a.conditionObj.dateRange[0]||"",endDate:a.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(r.b)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo?n.result.pageInfo.total:0,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),u.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList()),this.multipleSelection=[]}},mounted:function(){var e=this;e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()}),this.getInfo()},components:{gicSelectGroup:l.a,multipleDel:s.a,exportDialog:i.a}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTaskViewDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTaskViewDetail,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportTaskViewDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportTaskViewDetail,loading:e.loadingBtn,type:"primary"},on:{click:e.beforeExportExcel}},[e._v("导出")]):e._e(),e._v(" "),a("el-tooltip",{attrs:{content:"导出结果中会员姓名、手机号等敏感信息将进行加密,实现隐私保护",placement:"top"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:0==e.enableDownloadCompleteData,expression:"enableDownloadCompleteData == 0"}],staticClass:"el-icon-warning-outline font-14 p-l-6"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(e){var t=e.$index;return[a("p",{key:t})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店分组",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeGroupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkTaskDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkTaskDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkTaskDetail,type:"text"},on:{click:function(a){return e.toDetail(t.$index,t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("export-dialog",{attrs:{dialogVisible:e.exportDialog},on:{export:e.exportExcel,"update:dialogVisible":e.changeExportDialog}}),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(p,h,!1,function(e){a("L1Lf")},"data-v-d1d01a54",null);t.default=g.exports}}); webpackJsonp([61],{L1Lf:function(e,t){},f1qT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("CMYX"),l=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),c=a("PI0u"),d=a("3E4D"),u=a("Ch4/"),p={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{enableDownloadCompleteData:0,tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:this.$store.state.salesDate},loading:!1,selectRadio:2,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,loadingBtn:!1,tableRefresh:!1,exportDialog:!1}},computed:{},methods:{getInfo:function(){var e=this,t=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId;Object(r.b)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:t}).then(function(t){var a=t.data;1!=a.errorCode?u.a.errorMsg(a):e.enableDownloadCompleteData=a.result.enableDownloadCompleteData})},beforeExportExcel:function(){if(!this.multipleSelection.length)return d.a.showmsg("请选择门店","warning"),!1;1==this.enableDownloadCompleteData?this.exportDialog=!0:this.exportExcel(0)},changeExportDialog:function(){this.exportDialog=!1,this.multipleSelection=[],this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!t.multipleSelection.length)return d.a.showmsg("请选择门店","warning"),!1;var a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)}),t.loadingBtn=!0;var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",ecmId:t.$route.query.ecmId,ecmPlanName:this.$route.query.ecmName,storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),gicEnterpriseId:t.activeBrand,selectType:2==t.selectRadio&&t.multipleSelection.length?0:this.selectRadio,dataType:e};Object(r.c)("/haoban-app-tel-task-three-web/task/export-task-view-store-list",o).then(function(e){if(t.loadingBtn=!1,!e.data)return u.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=document.createElement("a");o.download="话务任务视图详情门店报表.xls",o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},checkGroupIds:function(e){this.conditionObj.storeGroup=e,this.currentPage=1,this.getTableList()},changeTable:function(e){this.currentPage=1,this.getTableList()},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e?this.$store.dispatch("changeSales",e):this.$store.dispatch("changeSales",[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},delDepart:function(e,t){t.splice(e,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[];t.conditionObj.storeGroup.forEach(function(e){a.push(e.storeGroupId)});var o={search:t.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:1==t.selectRadio?"":t.multipleSelection.map(function(e){return e.storeId}).join(","),storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,delTaskStatus:e.delOptFlag,reason:e.reason,isAll:t.selectRadio,ecmId:t.$route.query.ecmId};Object(r.g)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",o).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList(this.selectRadio)},handleCurrentChange:function(e){this.currentPage=e,this.getTableList(this.selectRadio)},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("taskDetail?storeId="+t.storeId+"&ecmId="+this.$route.query.ecmId)},getTableList:function(e){var t=this,a=this;a.loading=!0;var o=[];a.conditionObj.storeGroup.forEach(function(e){o.push(e.storeGroupId)});var n={ecmId:a.$route.query.ecmId,search:a.conditionObj.searchInput||"",storeGroupIds:o.join(",")||"",storeType:a.conditionObj.storeType||"",startDate:a.conditionObj.dateRange[0]||"",endDate:a.conditionObj.dateRange[1]||"",pageNum:a.currentPage,pageSize:a.pageSize,enterpriseId:a.activeBrand};Object(r.b)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(o){var n=o.data;a.loading=!1,1==n.errorCode&&(a.tableData=n.result.list||[],a.total=n.result.pageInfo?n.result.pageInfo.total:0,1==e?t.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):t.selectRadio=2),u.a.errorMsg(n)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList()),this.multipleSelection=[]}},mounted:function(){var e=this;e.activeBrand=e.brandId,e.brandId&&e.$nextTick(function(){e.getTableList()}),this.getInfo()},components:{gicSelectGroup:l.a,multipleDel:s.a,exportDialog:i.a}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.conditionObj.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTaskViewDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTaskViewDetail,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.exportTaskViewDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportTaskViewDetail,loading:e.loadingBtn,type:"primary"},on:{click:e.beforeExportExcel}},[e._v("导出")]):e._e(),e._v(" "),a("el-tooltip",{attrs:{content:"导出结果中会员姓名、手机号等敏感信息将进行加密,实现隐私保护",placement:"top"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:0==e.enableDownloadCompleteData,expression:"enableDownloadCompleteData == 0"}],staticClass:"el-icon-warning-outline font-14 p-l-6"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(e){var t=e.$index;return[a("p",{key:t})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店分组",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeGroupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkTaskDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkTaskDetail)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkTaskDetail,type:"text"},on:{click:function(a){return e.toDetail(t.$index,t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("export-dialog",{attrs:{dialogVisible:e.exportDialog},on:{export:e.exportExcel,"update:dialogVisible":e.changeExportDialog}}),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1,showTip:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var g=a("VU/8")(p,h,!1,function(e){a("L1Lf")},"data-v-d1d01a54",null);t.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([63],{"3Qek":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("woOf"),i=s.n(a),l=s("PI0u"),o=s("Ch4/"),n=s("3E4D"),r=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,options:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态,免费保留3天的通话录音,费用结算存储于GIC计费中心;2.如果这个配置打开了,则商户好办端所有的话务任务都可以用企业电话,前提是企业电话对应账户不欠费;"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],setObj:{taskCallTypes:[],taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:"",relaxTaskJudge:!1},loadingBtn:!1}},computed:{},methods:{saveSet:Object(l.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={taskCallTypes:t.setObj.taskCallTypes.join(","),enterpriseId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(r.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?o.a.errorMsg(s):n.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:1};Object(r.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1!=s.errorCode)o.a.errorMsg(s);else{s.result.relaxTaskJudge=1==s.result.relaxTaskJudge;var a="string"==typeof s.result.taskCallTypes?s.result.taskCallTypes.split(","):[];t.setObj=i()({},s.result,{taskCallTypes:a})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},u={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item flex"},[t._m(0),t._v(" "),s("el-checkbox-group",{model:{value:t.setObj.taskCallTypes,callback:function(e){t.$set(t.setObj,"taskCallTypes",e)},expression:"setObj.taskCallTypes"}},t._l(t.options,function(e){return s("el-checkbox",{key:e.value,attrs:{label:e.value}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start","open-delay":200}},[s("template",{slot:"content"},t._l(e.tooltips,function(e){return s("p",{key:e},[t._v(t._s(e))])}),0),t._v(" "),s("i",{staticClass:"tooltips"},[t._v(t._s(e.label))])],2)],1)}),1)],1),t._v(" "),s("div",{staticClass:"set-line-item font-0"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务下发:")]),t._v(" "),s("div",{staticClass:"inline-block vertical-top"},[s("table",{staticClass:"font-14"},[s("tbody",[s("tr",{staticClass:"el-table__row"},[t._m(1),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1)])]),t._v(" "),s("tr",{staticClass:"el-table__row"},[t._m(2),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1)])])])])])]),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("话务任务下发后 ")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条话务任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveTrafficTaskSet)?s("el-button",{attrs:{"limit-code":t.$buttonCode.saveTrafficTaskSet,type:"primary",loading:t.loadingBtn},on:{click:t.saveSet}},[t._v("保存")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"set-line-item_title text-right"},[e("i",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","font-style":"normal","padding-bottom":"2px"}},[this._v("话务任务拨打")]),this._v(":")])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("POS会员")])])}]};var d=s("VU/8")(c,u,!1,function(t){s("NKCF")},"data-v-cd4e6778",null);e.default=d.exports},NKCF:function(t,e){}}); webpackJsonp([62],{"3Qek":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("woOf"),i=s.n(a),l=s("PI0u"),o=s("Ch4/"),n=s("3E4D"),r=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,options:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态,免费保留3天的通话录音,费用结算存储于GIC计费中心;2.如果这个配置打开了,则商户好办端所有的话务任务都可以用企业电话,前提是企业电话对应账户不欠费;"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],setObj:{taskCallTypes:[],taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:"",relaxTaskJudge:!1},loadingBtn:!1}},computed:{},methods:{saveSet:Object(l.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={taskCallTypes:t.setObj.taskCallTypes.join(","),enterpriseId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(r.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?o.a.errorMsg(s):n.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:1};Object(r.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1!=s.errorCode)o.a.errorMsg(s);else{s.result.relaxTaskJudge=1==s.result.relaxTaskJudge;var a="string"==typeof s.result.taskCallTypes?s.result.taskCallTypes.split(","):[];t.setObj=i()({},s.result,{taskCallTypes:a})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},u={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item flex"},[t._m(0),t._v(" "),s("el-checkbox-group",{model:{value:t.setObj.taskCallTypes,callback:function(e){t.$set(t.setObj,"taskCallTypes",e)},expression:"setObj.taskCallTypes"}},t._l(t.options,function(e){return s("el-checkbox",{key:e.value,attrs:{label:e.value}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start","open-delay":200}},[s("template",{slot:"content"},t._l(e.tooltips,function(e){return s("p",{key:e},[t._v(t._s(e))])}),0),t._v(" "),s("i",{staticClass:"tooltips"},[t._v(t._s(e.label))])],2)],1)}),1)],1),t._v(" "),s("div",{staticClass:"set-line-item font-0"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务下发:")]),t._v(" "),s("div",{staticClass:"inline-block vertical-top"},[s("table",{staticClass:"font-14"},[s("tbody",[s("tr",{staticClass:"el-table__row"},[t._m(1),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1)])]),t._v(" "),s("tr",{staticClass:"el-table__row"},[t._m(2),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1)])])])])])]),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("话务任务下发后 ")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条话务任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveTrafficTaskSet)?s("el-button",{attrs:{"limit-code":t.$buttonCode.saveTrafficTaskSet,type:"primary",loading:t.loadingBtn},on:{click:t.saveSet}},[t._v("保存")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"set-line-item_title text-right"},[e("i",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","font-style":"normal","padding-bottom":"2px"}},[this._v("话务任务拨打")]),this._v(":")])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("POS会员")])])}]};var d=s("VU/8")(c,u,!1,function(t){s("NKCF")},"data-v-cd4e6778",null);e.default=d.exports},NKCF:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([64],{"4BjW":function(t,e){},"7m4r":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),i=a.n(n),o=a("PI0u"),r=a("PeHS"),s=a("Q0Ca"),l=[{label:"添加好友人数",prop:"addNumT",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNumT?t.addNumT:"- -")+"</span>"}},{label:"今日新增人数",prop:"addNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNum?t.addNum:"- -")+"</span>"}},{label:"点击总人次",prop:"clickTimesT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimesT?t.clickTimesT:"- -")+"</span>"}},{label:"今日点击人次",prop:"clickTimes",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimes?t.clickTimes:"- -")+"</span>"}},{label:"点击总人数",prop:"clickNumT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNumT?t.clickNumT:"- -")+"</span>"}},{label:"今日点击人数",prop:"clickNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNum?t.clickNum:"- -")+"</span>"}},{label:"创建人",minWidth:"100",tooltip:!0,prop:"creatorName",formatter:function(t){return"<span>"+(t.creatorName?t.creatorName:"- -")+"</span>"}},{label:"创建时间",width:"120",tooltip:!0,prop:"createTime",formatter:function(t){return s.a.timeStampToYmd(t.createTime)+"<br /> "+s.a.timeStampToHms(t.createTime)}}],c={data:function(){var t=this;return{tableMaxHeight:document.body.clientHeight-285+"px",activeName:"first",loading:!1,form:{pageSize:20,pageNum:1,linkType:"",searchParams:"",dateRange:[]},options:[{label:"专用链接",key:1},{label:"通用链接",key:2}],btnArr:[{text:"数据",visible:function(e){return t.$getButtonLimit(t.$buttonCode.dataLink)},props:{limitCode:this.$buttonCode.dataLink},handler:function(e){return t.goDetail(e,"second")}},{text:"详情",visible:function(e){return t.$getButtonLimit(t.$buttonCode.infoLink)},props:{limitCode:this.$buttonCode.infoLink},handler:function(e){return t.goDetail(e,"first")}},{text:"链接",visible:function(e){return t.$getButtonLimit(t.$buttonCode.downLink)&&2==e.linkType},props:{limitCode:this.$buttonCode.downLink},handler:function(e){return t.goLink(e)}},{text:"编辑",visible:function(e){return t.$getButtonLimit(t.$buttonCode.editLink)},props:{limitCode:this.$buttonCode.editLink},handler:function(e){return t.goEdit(e)}}],total:"",tableData:[],tableHeader:l,show:!1,linkUrl:""}},mounted:function(){this.getList()},activated:function(){this.$route.meta.refresh&&(this.form={pageSize:20,pageNum:1,linkType:"",searchParams:"",dateRange:[]}),this.getList()},components:{links:a("jssv").a},methods:{clear:function(){console.log("clear")},toInput:Object(o.a)(function(t,e){this.getList()},500),getList:function(){var t=this,e=i()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(e.startDate=this.form.dateRange[0]+" 00:00:00",e.endDate=this.form.dateRange[1]+" 23:59:59"),delete e.dateRange,console.log(e),this.loading=!0,Object(r.o)(e).then(function(e){if(console.log(e),e.data.result){var a=e.data.result,n=a.totalCount,i=a.result;t.tableData=i,t.total=n}}).finally(function(e){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getList()},handleCurrentChange:function(t){this.form.pageNum=t,this.getList()},handleSortChange:function(t){var e=t.prop,a=t.order;console.log(a),"descending"==a?(this.form.sortColumn=e,this.form.sortType="desc"):"ascending"===a?(this.form.sortColumn=e,this.form.sortType="asc"):(this.form.sortColumn="",this.form.sortType=void 0),this.form.pageNum=1,this.getList()},goLanding:function(){this.$router.push("/ladingPageList")},goDetail:function(t,e){"second"==e?this.$router.push("attractFlowLinkInfo/"+t.linkId+"?type="+e):this.$router.push("attractFlowLinkInfos/"+t.linkId+"?type="+e)},goLink:function(t){this.linkUrl=t.linkUrl,this.imageName=t.linkId+"_"+t.name,this.show=!0},goEdit:function(t){this.$router.push("attractFlowLinkEdit/"+t.linkId)}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-20"},[a("dm-sub-title",{staticClass:"m-b-10"},[a("div",{staticClass:"title"},[a("span",[t._v("引流加入")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:link",arg:"link"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接ID/名称、创建人",clearable:""},on:{clear:t.getList},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.searchParams,callback:function(e){t.$set(t.form,"searchParams",e)},expression:"form.searchParams"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-select",{staticClass:"m-l-10 w-160",attrs:{placeholder:"全部类型",clearable:""},on:{change:t.getList,clear:t.clear},model:{value:t.form.linkType,callback:function(e){t.$set(t.form,"linkType",e)},expression:"form.linkType"}},t._l(t.options,function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:t.getList,clear:t.getList},model:{value:t.form.dateRange,callback:function(e){t.$set(t.form,"dateRange",e)},expression:"form.dateRange"}})],1),t._v(" "),a("div",[a("el-button",{on:{click:t.goLanding}},[t._v("落地页模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addLink)?a("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.addLink},on:{click:function(e){return t.$router.push("attractFlowLinkAdd")}}},[t._v("新增链接")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,"max-height":t.tableMaxHeight},on:{"sort-change":t.handleSortChange}},[a("el-table-column",{attrs:{"min-width":"120",prop:"linkCode",label:"链接ID"}}),t._v(" "),a("el-table-column",{attrs:{minWidth:"180",prop:"memberId",label:"链接信息"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("p",{staticClass:"overFlow"},[t._v(t._s(n.name))]),t._v(" "),a("p",{staticClass:"tips"},[t._v("code:"+t._s(n.shortCode))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"110",prop:"linkType",label:"链接类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.linkType?a("el-tag",{attrs:{size:"mini"}},[t._v(" 专用链接 ")]):a("el-tag",{staticClass:"el-tag--cyan",attrs:{size:"mini"}},[t._v("通用链接")])]}}])}),t._v(" "),t._l(t.tableHeader,function(e){return a("el-table-column",{key:e.prop,attrs:{"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable,fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(n){return[e.formatter?a("span",{domProps:{innerHTML:t._s(e.formatter(n.row))}}):a("span",[t._v(t._s(n.row[e.prop]))])]}}])})}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("dm-dropdown",{ref:"drop",attrs:{"scope-data":n,configs:t.btnArr}})]}}])})],2),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":t.form.pageSize,"current-page":t.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:pageSize":function(e){return t.$set(t.form,"pageSize",e)},"update:page-size":function(e){return t.$set(t.form,"pageSize",e)},"update:currentPage":function(e){return t.$set(t.form,"pageNum",e)},"update:current-page":function(e){return t.$set(t.form,"pageNum",e)}}})],1):t._e(),t._v(" "),a("links",{attrs:{src:t.linkUrl,show:t.show,imageName:t.imageName},on:{"update:show":function(e){t.show=e}}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("4BjW")},"data-v-b6360080",null);e.default=d.exports}}); webpackJsonp([63],{"4BjW":function(t,e){},"7m4r":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),i=a.n(n),o=a("PI0u"),r=a("PeHS"),s=a("Q0Ca"),l=[{label:"添加好友人数",prop:"addNumT",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNumT?t.addNumT:"- -")+"</span>"}},{label:"今日新增人数",prop:"addNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNum?t.addNum:"- -")+"</span>"}},{label:"点击总人次",prop:"clickTimesT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimesT?t.clickTimesT:"- -")+"</span>"}},{label:"今日点击人次",prop:"clickTimes",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimes?t.clickTimes:"- -")+"</span>"}},{label:"点击总人数",prop:"clickNumT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNumT?t.clickNumT:"- -")+"</span>"}},{label:"今日点击人数",prop:"clickNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNum?t.clickNum:"- -")+"</span>"}},{label:"创建人",minWidth:"100",tooltip:!0,prop:"creatorName",formatter:function(t){return"<span>"+(t.creatorName?t.creatorName:"- -")+"</span>"}},{label:"创建时间",width:"120",tooltip:!0,prop:"createTime",formatter:function(t){return s.a.timeStampToYmd(t.createTime)+"<br /> "+s.a.timeStampToHms(t.createTime)}}],c={data:function(){var t=this;return{tableMaxHeight:document.body.clientHeight-285+"px",activeName:"first",loading:!1,form:{pageSize:20,pageNum:1,linkType:"",searchParams:"",dateRange:[]},options:[{label:"专用链接",key:1},{label:"通用链接",key:2}],btnArr:[{text:"数据",visible:function(e){return t.$getButtonLimit(t.$buttonCode.dataLink)},props:{limitCode:this.$buttonCode.dataLink},handler:function(e){return t.goDetail(e,"second")}},{text:"详情",visible:function(e){return t.$getButtonLimit(t.$buttonCode.infoLink)},props:{limitCode:this.$buttonCode.infoLink},handler:function(e){return t.goDetail(e,"first")}},{text:"链接",visible:function(e){return t.$getButtonLimit(t.$buttonCode.downLink)&&2==e.linkType},props:{limitCode:this.$buttonCode.downLink},handler:function(e){return t.goLink(e)}},{text:"编辑",visible:function(e){return t.$getButtonLimit(t.$buttonCode.editLink)},props:{limitCode:this.$buttonCode.editLink},handler:function(e){return t.goEdit(e)}}],total:"",tableData:[],tableHeader:l,show:!1,linkUrl:""}},mounted:function(){this.getList()},activated:function(){this.$route.meta.refresh&&(this.form={pageSize:20,pageNum:1,linkType:"",searchParams:"",dateRange:[]}),this.getList()},components:{links:a("jssv").a},methods:{clear:function(){console.log("clear")},toInput:Object(o.a)(function(t,e){this.getList()},500),getList:function(){var t=this,e=i()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(e.startDate=this.form.dateRange[0]+" 00:00:00",e.endDate=this.form.dateRange[1]+" 23:59:59"),delete e.dateRange,console.log(e),this.loading=!0,Object(r.o)(e).then(function(e){if(console.log(e),e.data.result){var a=e.data.result,n=a.totalCount,i=a.result;t.tableData=i,t.total=n}}).finally(function(e){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getList()},handleCurrentChange:function(t){this.form.pageNum=t,this.getList()},handleSortChange:function(t){var e=t.prop,a=t.order;console.log(a),"descending"==a?(this.form.sortColumn=e,this.form.sortType="desc"):"ascending"===a?(this.form.sortColumn=e,this.form.sortType="asc"):(this.form.sortColumn="",this.form.sortType=void 0),this.form.pageNum=1,this.getList()},goLanding:function(){this.$router.push("/ladingPageList")},goDetail:function(t,e){"second"==e?this.$router.push("attractFlowLinkInfo/"+t.linkId+"?type="+e):this.$router.push("attractFlowLinkInfos/"+t.linkId+"?type="+e)},goLink:function(t){this.linkUrl=t.linkUrl,this.imageName=t.linkId+"_"+t.name,this.show=!0},goEdit:function(t){this.$router.push("attractFlowLinkEdit/"+t.linkId)}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-20"},[a("dm-sub-title",{staticClass:"m-b-10"},[a("div",{staticClass:"title"},[a("span",[t._v("引流加入")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:link",arg:"link"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接ID/名称、创建人",clearable:""},on:{clear:t.getList},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.searchParams,callback:function(e){t.$set(t.form,"searchParams",e)},expression:"form.searchParams"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-select",{staticClass:"m-l-10 w-160",attrs:{placeholder:"全部类型",clearable:""},on:{change:t.getList,clear:t.clear},model:{value:t.form.linkType,callback:function(e){t.$set(t.form,"linkType",e)},expression:"form.linkType"}},t._l(t.options,function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:t.getList,clear:t.getList},model:{value:t.form.dateRange,callback:function(e){t.$set(t.form,"dateRange",e)},expression:"form.dateRange"}})],1),t._v(" "),a("div",[a("el-button",{on:{click:t.goLanding}},[t._v("落地页模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addLink)?a("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.addLink},on:{click:function(e){return t.$router.push("attractFlowLinkAdd")}}},[t._v("新增链接")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,"max-height":t.tableMaxHeight},on:{"sort-change":t.handleSortChange}},[a("el-table-column",{attrs:{"min-width":"120",prop:"linkCode",label:"链接ID"}}),t._v(" "),a("el-table-column",{attrs:{minWidth:"180",prop:"memberId",label:"链接信息"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("p",{staticClass:"overFlow"},[t._v(t._s(n.name))]),t._v(" "),a("p",{staticClass:"tips"},[t._v("code:"+t._s(n.shortCode))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"110",prop:"linkType",label:"链接类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.linkType?a("el-tag",{attrs:{size:"mini"}},[t._v(" 专用链接 ")]):a("el-tag",{staticClass:"el-tag--cyan",attrs:{size:"mini"}},[t._v("通用链接")])]}}])}),t._v(" "),t._l(t.tableHeader,function(e){return a("el-table-column",{key:e.prop,attrs:{"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable,fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(n){return[e.formatter?a("span",{domProps:{innerHTML:t._s(e.formatter(n.row))}}):a("span",[t._v(t._s(n.row[e.prop]))])]}}])})}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("dm-dropdown",{ref:"drop",attrs:{"scope-data":n,configs:t.btnArr}})]}}])})],2),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":t.form.pageSize,"current-page":t.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:pageSize":function(e){return t.$set(t.form,"pageSize",e)},"update:page-size":function(e){return t.$set(t.form,"pageSize",e)},"update:currentPage":function(e){return t.$set(t.form,"pageNum",e)},"update:current-page":function(e){return t.$set(t.form,"pageNum",e)}}})],1):t._e(),t._v(" "),a("links",{attrs:{src:t.linkUrl,show:t.show,imageName:t.imageName},on:{"update:show":function(e){t.show=e}}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("4BjW")},"data-v-b6360080",null);e.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([65],{YQXN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("/p6h"),s=e("eaYI"),n=e("P9l9"),l=e("ckKa"),c=e("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:i.default,newAddChart:s.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[l.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,a={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",a).then(function(a){var e=a.data;if(t.loading=!1,0==e.code){var i=e.result||{addNumT:0,addNum:0,dateList:[]};return i.dateList.map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=i)}c.a.errorMsg(e)}).catch(function(a){t.loading=!1,t.$message.error({duration:1e3,message:a.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("ul",{staticClass:"flex"},[e("li",{staticClass:"data-total-cell m-r-22"},[e("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell "},[e("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),e("div",{staticClass:"flex justify-end"},[e("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(a,i){return e("ul",{key:a.key,staticClass:"datebox"},[e("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(a){return t.btnChange(i)}}},[t._v(t._s(a.value))])])}),t._v(" "),e("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(a){t.dateDefault=a},expression:"dateDefault"}})],2)]),t._v(" "),e("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background"},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=e("VU/8")(d,o,!1,function(t){e("kRHg")},"data-v-b0df7d22",null);a.default=r.exports},kRHg:function(t,a){}}); webpackJsonp([64],{YQXN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("/p6h"),s=e("eaYI"),n=e("P9l9"),l=e("ckKa"),c=e("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:i.default,newAddChart:s.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[l.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,a={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",a).then(function(a){var e=a.data;if(t.loading=!1,0==e.code){var i=e.result||{addNumT:0,addNum:0,dateList:[]};return i.dateList.map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=i)}c.a.errorMsg(e)}).catch(function(a){t.loading=!1,t.$message.error({duration:1e3,message:a.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("ul",{staticClass:"flex"},[e("li",{staticClass:"data-total-cell m-r-22"},[e("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell "},[e("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),e("div",{staticClass:"flex justify-end"},[e("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(a,i){return e("ul",{key:a.key,staticClass:"datebox"},[e("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(a){return t.btnChange(i)}}},[t._v(t._s(a.value))])])}),t._v(" "),e("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(a){t.dateDefault=a},expression:"dateDefault"}})],2)]),t._v(" "),e("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background"},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=e("VU/8")(d,o,!1,function(t){e("kRHg")},"data-v-b0df7d22",null);a.default=r.exports},kRHg:function(t,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([66],{VMUs:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),s=a.n(o),r=a("Xxa5"),i=a.n(r),l=a("exGp"),n=a.n(l),c=a("PeHS"),d=a("jssv"),u=a("P9l9"),m={name:"actCodeTable",components:{links:d.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(t){e.wxQrcode=t.wxQrcode,e.imageName=t.hmId+"_"+t.hmName,e.show=!0}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag&&2==t.hmType&&""==t.clerkCode)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(u.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{search:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.$route.meta.keepAlive||(this.getTableList(),this.searchGroup())},activated:function(){this.$route.meta.refresh&&(this.inFields={hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},this.pageParam={pageSize:20,pageNo:1}),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(u.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},o=a.result,s=a.pages;e.pageParamGroup.total=s,Array.isArray(o)&&(e.groupList=e.groupList.concat(o))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){""!==e?(this.pageParamGroup.search=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()):this.groupList=[]},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId}),console.log(this.selectHmIds,"this.selectHmIds")},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码!",type:"warning"});this.dialogGroupFormVisible=!0},batchOK:function(){var e=this;return n()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(u.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length&&(this.inFields.startTime=this.dateTime?Date.parse(new Date(this.dateTime[0]).toString()):"",this.inFields.endTime=this.dateTime?Date.parse(new Date(this.dateTime[1]).toString()):""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=s()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{"limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:o.hmName}},[e._v(e._s(o.hmName?o.hmName:"--"))]),e._v(" "),a("p",[1==o.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[1==o.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==o.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==o.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==o.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNumT?o.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNum?o.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.clerkList[0]?o.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?"code:"+o.clerkList[0].clerkCode:"--"))]),e._v(" "),o.clerkList&&o.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.storeList[0]?o.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v(e._s(o.storeList[0]?"code:"+o.storeList[0].storeCode:"--"))]),e._v(" "),o.storeList&&o.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.hmGroupName?o.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.creatorName?o.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return o.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(o.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(o.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("dm-dropdown",{attrs:{"scope-data":o,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"25%"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活动区域",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],attrs:{placeholder:"选择分组",remote:"",filterable:"","remote-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(m,p,!1,function(e){a("VMUs")},"data-v-b0cf74ae",null);t.default=h.exports}}); webpackJsonp([65],{VMUs:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),s=a.n(o),r=a("Xxa5"),i=a.n(r),l=a("exGp"),n=a.n(l),c=a("PeHS"),d=a("jssv"),u=a("P9l9"),m={name:"actCodeTable",components:{links:d.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(t){e.wxQrcode=t.wxQrcode,e.imageName=t.hmId+"_"+t.hmName,e.show=!0}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag&&2==t.hmType&&""==t.clerkCode)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(u.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{search:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.$route.meta.keepAlive||(this.getTableList(),this.searchGroup())},activated:function(){this.$route.meta.refresh&&(this.inFields={hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},this.pageParam={pageSize:20,pageNo:1}),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(u.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},o=a.result,s=a.pages;e.pageParamGroup.total=s,Array.isArray(o)&&(e.groupList=e.groupList.concat(o))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){""!==e?(this.pageParamGroup.search=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()):this.groupList=[]},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId}),console.log(this.selectHmIds,"this.selectHmIds")},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码!",type:"warning"});this.dialogGroupFormVisible=!0},batchOK:function(){var e=this;return n()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(u.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length&&(this.inFields.startTime=this.dateTime?Date.parse(new Date(this.dateTime[0]).toString()):"",this.inFields.endTime=this.dateTime?Date.parse(new Date(this.dateTime[1]).toString()):""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=s()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v(e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{"limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:o.hmName}},[e._v(e._s(o.hmName?o.hmName:"--"))]),e._v(" "),a("p",[1==o.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[1==o.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==o.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==o.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==o.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNumT?o.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNum?o.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.clerkList[0]?o.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?"code:"+o.clerkList[0].clerkCode:"--"))]),e._v(" "),o.clerkList&&o.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.storeList[0]?o.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v(e._s(o.storeList[0]?"code:"+o.storeList[0].storeCode:"--"))]),e._v(" "),o.storeList&&o.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.hmGroupName?o.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.creatorName?o.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return o.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(o.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(o.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("dm-dropdown",{attrs:{"scope-data":o,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"25%"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活动区域",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],attrs:{placeholder:"选择分组",remote:"",filterable:"","remote-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(m,p,!1,function(e){a("VMUs")},"data-v-b0cf74ae",null);t.default=h.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([67],{"29DL":function(t,e){},ak3k:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("2eFk"),n=o("Ke24"),i=o("fPyK"),r=o("P9l9"),l=o("Ch4/"),s=o("3E4D"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var o=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(o,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var o=this;o.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var o=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var a=e.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void o.tableData.splice(t,1);l.a.errorMsg(a)}).catch(function(t){o.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var o=e.data;if(1==o.errorCode)return t.tableData=[],void(o.result&&o.result.length&&(t.tableData=o.result));l.a.errorMsg(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:a.a,commonDetailTop:n.a,qrcodeDialog:i.a}},c={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"custom-set-wrap"},[o("div",{staticClass:"custom-set-content border-box"},[o("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),o("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),o("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?o("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?o("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?o("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?o("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?o("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?o("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(o){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(o){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(o){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),o("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var u=o("VU/8")(d,c,!1,function(t){o("29DL")},"data-v-aa3f75f2",null);e.default=u.exports}}); webpackJsonp([66],{"29DL":function(t,e){},ak3k:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("2eFk"),n=o("Ke24"),i=o("fPyK"),r=o("P9l9"),l=o("Ch4/"),s=o("3E4D"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var o=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(o,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var o=this;o.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var o=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var a=e.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void o.tableData.splice(t,1);l.a.errorMsg(a)}).catch(function(t){o.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var o=e.data;if(1==o.errorCode)return t.tableData=[],void(o.result&&o.result.length&&(t.tableData=o.result));l.a.errorMsg(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:a.a,commonDetailTop:n.a,qrcodeDialog:i.a}},c={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"custom-set-wrap"},[o("div",{staticClass:"custom-set-content border-box"},[o("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),o("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),o("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?o("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?o("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?o("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?o("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?o("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?o("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(o){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(o){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?o("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(o){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),o("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var u=o("VU/8")(d,c,!1,function(t){o("29DL")},"data-v-aa3f75f2",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([68],{EzCA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("PeHS"),s=a("Q0Ca"),l={name:"operateLog",data:function(){return{filters:s.a,requestProject:"gic-web",loading:!1,search:{businessType:"",optType:"",optUser:"",search:"",dateRange:[]},clerkListPager:{searchName:"",pageNum:1,pageSize:20,totalPage:1},moduleList:[],businessList:[],userList:[],tableData:[],pager:{currentPage:1,pageSize:20,total:0},enterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,pickerOptions:{disabledDate:function(e){var t=new Date,a=new Date;return a=new Date(a.setMonth(t.getMonth()-3)),e.getTime()<a.getTime()||e.getTime()>t.getTime()}}}},mounted:function(){this.initData(),this.getTableData()},methods:{initData:function(){var e=this,t={};t.requestProject=this.requestProject,Object(r.c)(t).then(function(t){var a=t.data||{},r=a.code,s=a.result;0==r&&(e.moduleList=(s||[]).filter(function(e){return 1001!=e.key}))}),Object(r.s)({params:t}).then(function(t){var a=t.data||{},r=a.code,s=a.result;0==r&&(e.businessList=(s||[]).filter(function(e){return 1001!=e.key}))}),this.getClerkList()},loadMoreClerk:function(){this.clerkListPager.pageNum>=this.clerkListPager.totalPage||(this.clerkListPager.pageNum+=1,this.getClerkList())},searchClerk:function(e){this.clerkListPager.searchName=e,this.clerkListPager.pageNum=1,this.clerkListPager.totalPage=1,document.querySelector(".operate-clerk-list .el-scrollbar__wrap").scrollTop=0,this.getClerkList()},getClerkList:function(){var e=this,t=this.clerkListPager,a=t.pageNum,s=t.pageSize,l={searchName:t.searchName,pageNum:a,pageSize:s};l.requestProject=this.requestProject,Object(r.q)(l).then(function(t){var r=t.data||{},s=r.code,l=r.result;1==a&&(e.userList=[]),0==s&&(e.userList=e.userList.concat(l.result||[]),e.clerkListPager.totalPage=l.totalPage)})},getTableData:function(){var e=this;this.loading=!0;var t=this.pager,a=t.pageSize,s=t.currentPage,l=this.search,n=l.businessType,i=l.optType,o=l.optUser,c=l.search,u=l.dateRange,p={businessType:n,optType:i,optUser:o,search:c,startDate:Array.isArray(u)?u[0]:"",endDate:Array.isArray(u)?u[1]:"",pageSize:a,pageNum:s,enterpriseId:this.enterpriseId};p.requestProject=this.requestProject,Object(r.r)(p).then(function(t){var a=t.data;0==a.code&&(e.tableData=a.result.result,e.pager.total=a.result.totalCount),e.loading=!1})},onSearch:function(){this.handleCurrentChange(1)},handleCurrentChange:function(e){this.pager.currentPage=e,this.getTableData()},handleSizeChange:function(e){this.pager.pageSize=e,this.handleCurrentChange(1)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-box"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-select",{staticStyle:{width:"160px"},attrs:{placeholder:"选择业务模块",clearable:""},on:{change:e.onSearch},model:{value:e.search.businessType,callback:function(t){e.$set(e.search,"businessType",t)},expression:"search.businessType"}},e._l(e.moduleList,function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1),e._v(" "),a("el-select",{staticStyle:{width:"160px","margin-left":"10px"},attrs:{placeholder:"选择操作事项",clearable:""},on:{change:e.onSearch},model:{value:e.search.optType,callback:function(t){e.$set(e.search,"optType",t)},expression:"search.optType"}},e._l(e.businessList,function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1),e._v(" "),a("el-select",{directives:[{name:"select-loadmore",rawName:"v-select-loadmore",value:e.loadMoreClerk,expression:"loadMoreClerk"}],staticStyle:{width:"170px","margin-left":"10px"},attrs:{placeholder:"操作人姓名/手机号","popper-class":"operate-clerk-list",clearable:"",filterable:"","filter-method":e.searchClerk},on:{change:e.onSearch},model:{value:e.search.optUser,callback:function(t){e.$set(e.search,"optUser",t)},expression:"search.optUser"}},e._l(e.userList,function(t){return a("el-option",{key:t.clerkId,attrs:{value:t.clerkId,label:t.clerkName}},[a("p",[e._v(e._s(t.clerkName))]),e._v(" "),a("p",[e._v(e._s(t.phoneNumber))])])}),1),e._v(" "),a("el-input",{staticStyle:{width:"260px","margin-left":"10px"},attrs:{placeholder:"操作内容",clearable:"","prefix-icon":"el-icon-search"},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search",t)},expression:"search.search"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"256px","margin-left":"10px"},attrs:{"picker-options":e.pickerOptions,clearable:"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.onSearch},model:{value:e.search.dateRange,callback:function(t){e.$set(e.search,"dateRange",t)},expression:"search.dateRange"}})],1),e._v(" "),a("el-table",{staticStyle:{margin:"20px 0"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"业务模块",prop:"businessTypeName",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作事项",prop:"optTypeName",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作页面",prop:"optPage",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作账号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.userName||r.phoneNumber?[a("p",{staticClass:"text-overflow"},[e._v("\n "+e._s(r.userName?r.userName:"")+"\n "),r.ywName?a("span",{staticStyle:{color:"#909399"}},[e._v("("+e._s(r.ywName)+")")]):e._e()]),e._v(" "),a("p",[e._v(e._s(r.phoneNumber?r.phoneNumber:""))])]:[e._v("--")]]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作内容",prop:"content",formatter:function(e,t,a){return a||"--"},"show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"createTime"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[e._v("\n "+e._s(e.filters.timeStampToYmd(Number(r.createTime)))),a("br"),e._v("\n "+e._s(e.filters.timeStampToHms(Number(r.createTime)))+"\n ")]:void 0}}],!0)})],1),e._v(" "),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total, sizes, prev, pager, next",total:e.pager.total,"current-page":e.pager.currentPage,"page-size":e.pager.pageSize,"page-sizes":[20,40,60,80]},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)])},staticRenderFns:[]};var i=a("VU/8")(l,n,!1,function(e){a("tP5q")},"data-v-a537f36a",null);t.default=i.exports},tP5q:function(e,t){}}); webpackJsonp([67],{EzCA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("PeHS"),s=a("Q0Ca"),l={name:"operateLog",data:function(){return{filters:s.a,requestProject:"gic-web",loading:!1,search:{businessType:"",optType:"",optUser:"",search:"",dateRange:[]},clerkListPager:{searchName:"",pageNum:1,pageSize:20,totalPage:1},moduleList:[],businessList:[],userList:[],tableData:[],pager:{currentPage:1,pageSize:20,total:0},enterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,pickerOptions:{disabledDate:function(e){var t=new Date,a=new Date;return a=new Date(a.setMonth(t.getMonth()-3)),e.getTime()<a.getTime()||e.getTime()>t.getTime()}}}},mounted:function(){this.initData(),this.getTableData()},methods:{initData:function(){var e=this,t={};t.requestProject=this.requestProject,Object(r.c)(t).then(function(t){var a=t.data||{},r=a.code,s=a.result;0==r&&(e.moduleList=(s||[]).filter(function(e){return 1001!=e.key}))}),Object(r.s)({params:t}).then(function(t){var a=t.data||{},r=a.code,s=a.result;0==r&&(e.businessList=(s||[]).filter(function(e){return 1001!=e.key}))}),this.getClerkList()},loadMoreClerk:function(){this.clerkListPager.pageNum>=this.clerkListPager.totalPage||(this.clerkListPager.pageNum+=1,this.getClerkList())},searchClerk:function(e){this.clerkListPager.searchName=e,this.clerkListPager.pageNum=1,this.clerkListPager.totalPage=1,document.querySelector(".operate-clerk-list .el-scrollbar__wrap").scrollTop=0,this.getClerkList()},getClerkList:function(){var e=this,t=this.clerkListPager,a=t.pageNum,s=t.pageSize,l={searchName:t.searchName,pageNum:a,pageSize:s};l.requestProject=this.requestProject,Object(r.q)(l).then(function(t){var r=t.data||{},s=r.code,l=r.result;1==a&&(e.userList=[]),0==s&&(e.userList=e.userList.concat(l.result||[]),e.clerkListPager.totalPage=l.totalPage)})},getTableData:function(){var e=this;this.loading=!0;var t=this.pager,a=t.pageSize,s=t.currentPage,l=this.search,n=l.businessType,i=l.optType,o=l.optUser,c=l.search,u=l.dateRange,p={businessType:n,optType:i,optUser:o,search:c,startDate:Array.isArray(u)?u[0]:"",endDate:Array.isArray(u)?u[1]:"",pageSize:a,pageNum:s,enterpriseId:this.enterpriseId};p.requestProject=this.requestProject,Object(r.r)(p).then(function(t){var a=t.data;0==a.code&&(e.tableData=a.result.result,e.pager.total=a.result.totalCount),e.loading=!1})},onSearch:function(){this.handleCurrentChange(1)},handleCurrentChange:function(e){this.pager.currentPage=e,this.getTableData()},handleSizeChange:function(e){this.pager.pageSize=e,this.handleCurrentChange(1)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"right-wrap"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-box"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-select",{staticStyle:{width:"160px"},attrs:{placeholder:"选择业务模块",clearable:""},on:{change:e.onSearch},model:{value:e.search.businessType,callback:function(t){e.$set(e.search,"businessType",t)},expression:"search.businessType"}},e._l(e.moduleList,function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1),e._v(" "),a("el-select",{staticStyle:{width:"160px","margin-left":"10px"},attrs:{placeholder:"选择操作事项",clearable:""},on:{change:e.onSearch},model:{value:e.search.optType,callback:function(t){e.$set(e.search,"optType",t)},expression:"search.optType"}},e._l(e.businessList,function(e){return a("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1),e._v(" "),a("el-select",{directives:[{name:"select-loadmore",rawName:"v-select-loadmore",value:e.loadMoreClerk,expression:"loadMoreClerk"}],staticStyle:{width:"170px","margin-left":"10px"},attrs:{placeholder:"操作人姓名/手机号","popper-class":"operate-clerk-list",clearable:"",filterable:"","filter-method":e.searchClerk},on:{change:e.onSearch},model:{value:e.search.optUser,callback:function(t){e.$set(e.search,"optUser",t)},expression:"search.optUser"}},e._l(e.userList,function(t){return a("el-option",{key:t.clerkId,attrs:{value:t.clerkId,label:t.clerkName}},[a("p",[e._v(e._s(t.clerkName))]),e._v(" "),a("p",[e._v(e._s(t.phoneNumber))])])}),1),e._v(" "),a("el-input",{staticStyle:{width:"260px","margin-left":"10px"},attrs:{placeholder:"操作内容",clearable:"","prefix-icon":"el-icon-search"},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search",t)},expression:"search.search"}}),e._v(" "),a("el-date-picker",{staticStyle:{width:"256px","margin-left":"10px"},attrs:{"picker-options":e.pickerOptions,clearable:"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.onSearch},model:{value:e.search.dateRange,callback:function(t){e.$set(e.search,"dateRange",t)},expression:"search.dateRange"}})],1),e._v(" "),a("el-table",{staticStyle:{margin:"20px 0"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"业务模块",prop:"businessTypeName",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作事项",prop:"optTypeName",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作页面",prop:"optPage",formatter:function(e,t,a){return a||"--"}}}),e._v(" "),a("el-table-column",{attrs:{label:"操作账号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[r.userName||r.phoneNumber?[a("p",{staticClass:"text-overflow"},[e._v("\n "+e._s(r.userName?r.userName:"")+"\n "),r.ywName?a("span",{staticStyle:{color:"#909399"}},[e._v("("+e._s(r.ywName)+")")]):e._e()]),e._v(" "),a("p",[e._v(e._s(r.phoneNumber?r.phoneNumber:""))])]:[e._v("--")]]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作内容",prop:"content",formatter:function(e,t,a){return a||"--"},"show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作时间",prop:"createTime"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[e._v("\n "+e._s(e.filters.timeStampToYmd(Number(r.createTime)))),a("br"),e._v("\n "+e._s(e.filters.timeStampToHms(Number(r.createTime)))+"\n ")]:void 0}}],!0)})],1),e._v(" "),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total, sizes, prev, pager, next",total:e.pager.total,"current-page":e.pager.currentPage,"page-size":e.pager.pageSize,"page-sizes":[20,40,60,80]},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)])},staticRenderFns:[]};var i=a("VU/8")(l,n,!1,function(e){a("tP5q")},"data-v-a537f36a",null);t.default=i.exports},tP5q:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([69],{IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},loading:!1,selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,defaultStoreList:[],loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.g)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:Object(l.a)(function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.c)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="云日报记录.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},300),handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;e.loading=!0;var a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Array(this.conditionObj.dateRange)&&this.conditionObj.dateRange.length>0&&(n.startDate=this.conditionObj.dateRange[0]+" 00:00:00",n.endDate=this.conditionObj.dateRange[1]+" 23:59:59"),Object(s.b)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},mounted:function(){var t=new Date;t=new Date(t.setMonth(t.getMonth()-1));var e=new Date,a=[],n=[];a.push(t.getFullYear()),a.push((t.getMonth()+1).toString().padStart(2,"0")),a.push(t.getDate().toString().padStart(2,"0")),n.push(e.getFullYear()),n.push((e.getMonth()+1).toString().padStart(2,"0")),n.push(e.getDate().toString().padStart(2,"0")),this.conditionObj.dateRange=[a.join("-"),n.join("-")];this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.multipleDelReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.multipleDelReport,type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportReport,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-button",{attrs:{"limit-code":t.$buttonCode.reportDetail,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("仅统计近两年数据")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("JmzW")},"data-v-a0f8eb3e",null);e.default=h.exports},JmzW:function(t,e){}}); webpackJsonp([68],{IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},loading:!1,selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,defaultStoreList:[],loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.g)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:Object(l.a)(function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.c)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="云日报记录.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},300),handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;e.loading=!0;var a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Array(this.conditionObj.dateRange)&&this.conditionObj.dateRange.length>0&&(n.startDate=this.conditionObj.dateRange[0]+" 00:00:00",n.endDate=this.conditionObj.dateRange[1]+" 23:59:59"),Object(s.b)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},mounted:function(){var t=new Date;t=new Date(t.setMonth(t.getMonth()-1));var e=new Date,a=[],n=[];a.push(t.getFullYear()),a.push((t.getMonth()+1).toString().padStart(2,"0")),a.push(t.getDate().toString().padStart(2,"0")),n.push(e.getFullYear()),n.push((e.getMonth()+1).toString().padStart(2,"0")),n.push(e.getDate().toString().padStart(2,"0")),this.conditionObj.dateRange=[a.join("-"),n.join("-")];this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.multipleDelReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.multipleDelReport,type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportReport,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-button",{attrs:{"limit-code":t.$buttonCode.reportDetail,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("仅统计近两年数据")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("JmzW")},"data-v-a0f8eb3e",null);e.default=h.exports},JmzW:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([70],{"FG/P":function(t,a){},nV1L:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),r=e("Qie6"),o=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),v={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",defaultNavpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navName:{1:"卡券列表",11:"编辑卡券",12:"新增卡券",2:"卡券记录"},navFrontPath:{1:"/cardList",11:"/cardList",12:"/cardList",2:"/cardList"},tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path=a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:r.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(v,h,!1,function(t){e("FG/P")},"data-v-9bc8e98c",null);a.default=u.exports}}); webpackJsonp([69],{"FG/P":function(t,a){},nV1L:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),r=e("Qie6"),o=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),v={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",defaultNavpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navName:{1:"卡券列表",11:"编辑卡券",12:"新增卡券",2:"卡券记录"},navFrontPath:{1:"/cardList",11:"/cardList",12:"/cardList",2:"/cardList"},tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path=a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:r.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(v,h,!1,function(t){e("FG/P")},"data-v-9bc8e98c",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([7,56,89,93,102,116],{"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("MZ4b")},"data-v-59c3893a",null);t.default=s.exports},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("ut2q")},"data-v-e9ece5a0",null);t.default=s.exports},"92mS":function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),n=i.n(a),s=i("Gu7T"),l=i.n(s),r=i("gBtx"),c=i.n(r),o=i("mvHQ"),d=i.n(o),u=i("w/TU"),p=i.n(u),m=i("Isrn"),h=i("l46T"),f=i("8dpP"),v=i("rYZf"),g=i("2WGr"),_=i("zHtI"),y=i("O3gZ"),b=i("fPyK"),C=i("fZjL"),I=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){I()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"title",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"description",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}),0)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("dy5a")},"data-v-6c2a73fe",null).exports,T=i("3E4D"),F=i("Ch4/"),$=i("PI0u"),M=i("P9l9"),O={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1,loadingBtn:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var n=this;if(n.tempaletDataList.splice(i,1),n.currentIndex--,n.currentIndex<=0&&(n.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&n[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;n[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,n){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!n.systemFlag)return!1;this[n.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object($.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;this.loadingBtn=!0,"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i=this,a={status:1,enterpriseId:i.enterpriseId,templateContent:d()(e),title:i.templateObj.title,description:i.templateObj.description,storeType:i.templateObj.storeType,memory:[]};Object(M.g)("/haoban-app-daily-three-web/daily/save-define-template",a).then(function(e){var a=e.data;if(i.loadingBtn=!1,1==a.errorCode)return T.a.showmsg("保存成功","success"),void t.$router.go(-1);F.a.errorMsg(a)}).catch(function(e){i.loadingBtn=!1,i.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(M.g)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}F.a.errorMsg(i)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?F.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(c()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));F.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();F.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(c()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(c()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;n.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:f.default,selectCom:v.default,dateRangeCom:g.default,inputCom:_.default,blockCom:y.default,qrcodeDialog:b.a,customSet:k},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;e.$emit("showTab","32","copy"===t.type?"322":t.templateId?"321":"322"),n.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}),0)],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){return e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(n,s){return a("li",{key:"li"+s,class:["filed-item","child-filed-item",e.currentChildKey==n.name&&e.currentChildIndex==s?"active-item":""],on:{click:function(a){return a.stopPropagation(),e.selectChildItem(n.name,i,s,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteChildItem(n.name,i,s,t.children,n)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==n.type||5==n.type?a("select-com",{attrs:{childItem:n}}):e._e(),e._v(" "),6==n.type?a("date-range-com",{attrs:{childItem:n}}):e._e(),e._v(" "),7==n.type?a("image-com",{attrs:{childItem:n}}):e._e(),e._v(" "),1==n.type||2==n.type||3==n.type||10==n.type||9==n.type?a("input-com",{attrs:{childItem:n}}):e._e(),e._v(" "),"11"==n.type&&n.systemFlag?a("block-com",{attrs:{childItem:n}}):e._e()],1)}),0)],1)]):e._e()]],2)}),0)],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,n){return[e.currentChildIndex!=n||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"unit",i)},"update:input-value":function(i){return e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=n||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child11"+n,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=n||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child12"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var V=i("VU/8")(O,L,!1,function(e){i("zy2t")},"data-v-14decdbc",null);t.default=V.exports},MZ4b:function(e,t){},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])}),0),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("hEsI")},"data-v-51fed69c",null);t.default=s.exports},VKgB:function(e,t){},dy5a:function(e,t){},hEsI:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("VKgB")},"data-v-39067a2d",null);t.default=s.exports},ut2q:function(e,t){},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("92mS")},"data-v-17b428fa",null);t.default=s.exports},zy2t:function(e,t){}}); webpackJsonp([7,55,90,94,103,116],{"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("MZ4b")},"data-v-59c3893a",null);t.default=s.exports},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("ut2q")},"data-v-e9ece5a0",null);t.default=s.exports},"92mS":function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),n=i.n(a),s=i("Gu7T"),l=i.n(s),r=i("gBtx"),c=i.n(r),o=i("mvHQ"),d=i.n(o),u=i("w/TU"),p=i.n(u),m=i("Isrn"),h=i("l46T"),f=i("8dpP"),v=i("rYZf"),g=i("2WGr"),_=i("zHtI"),y=i("O3gZ"),b=i("fPyK"),C=i("fZjL"),I=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){I()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"title",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"description",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}),0)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("dy5a")},"data-v-6c2a73fe",null).exports,T=i("3E4D"),F=i("Ch4/"),$=i("PI0u"),M=i("P9l9"),O={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1,loadingBtn:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var n=this;if(n.tempaletDataList.splice(i,1),n.currentIndex--,n.currentIndex<=0&&(n.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&n[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;n[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,n){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!n.systemFlag)return!1;this[n.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object($.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;this.loadingBtn=!0,"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i=this,a={status:1,enterpriseId:i.enterpriseId,templateContent:d()(e),title:i.templateObj.title,description:i.templateObj.description,storeType:i.templateObj.storeType,memory:[]};Object(M.g)("/haoban-app-daily-three-web/daily/save-define-template",a).then(function(e){var a=e.data;if(i.loadingBtn=!1,1==a.errorCode)return T.a.showmsg("保存成功","success"),void t.$router.go(-1);F.a.errorMsg(a)}).catch(function(e){i.loadingBtn=!1,i.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(M.g)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}F.a.errorMsg(i)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?F.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(c()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));F.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();F.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(c()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(c()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;n.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:f.default,selectCom:v.default,dateRangeCom:g.default,inputCom:_.default,blockCom:y.default,qrcodeDialog:b.a,customSet:k},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;e.$emit("showTab","32","copy"===t.type?"322":t.templateId?"321":"322"),n.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}),0)],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){return e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(n,s){return a("li",{key:"li"+s,class:["filed-item","child-filed-item",e.currentChildKey==n.name&&e.currentChildIndex==s?"active-item":""],on:{click:function(a){return a.stopPropagation(),e.selectChildItem(n.name,i,s,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteChildItem(n.name,i,s,t.children,n)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==n.type||5==n.type?a("select-com",{attrs:{childItem:n}}):e._e(),e._v(" "),6==n.type?a("date-range-com",{attrs:{childItem:n}}):e._e(),e._v(" "),7==n.type?a("image-com",{attrs:{childItem:n}}):e._e(),e._v(" "),1==n.type||2==n.type||3==n.type||10==n.type||9==n.type?a("input-com",{attrs:{childItem:n}}):e._e(),e._v(" "),"11"==n.type&&n.systemFlag?a("block-com",{attrs:{childItem:n}}):e._e()],1)}),0)],1)]):e._e()]],2)}),0)],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,n){return[e.currentChildIndex!=n||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"unit",i)},"update:input-value":function(i){return e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=n||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child11"+n,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=n||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child12"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var V=i("VU/8")(O,L,!1,function(e){i("zy2t")},"data-v-14decdbc",null);t.default=V.exports},MZ4b:function(e,t){},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])}),0),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("hEsI")},"data-v-51fed69c",null);t.default=s.exports},VKgB:function(e,t){},dy5a:function(e,t){},hEsI:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("VKgB")},"data-v-39067a2d",null);t.default=s.exports},ut2q:function(e,t){},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("92mS")},"data-v-17b428fa",null);t.default=s.exports},zy2t:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([71],{AYL1:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=c.exports}}); webpackJsonp([70],{AYL1:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([72],{JPjq:function(t,e){},"qWC+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("fPyK"),l=a("Ggl+"),i=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},loading:!1,completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},searchStore:Object(c.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth)},getTableList:function(t){var e=this;e.loading=!0;var a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(i.b)("/haoban-app-performance-three-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(c.c)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(c.c)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(c.c)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(c.c)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo?a.result.pageInfo.total:0);n.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},components:{qrcodeDialog:s.a,gicSelectGroup:l.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{maxlength:"50",placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"门店完善状态"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.operationStaffName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("JPjq")},"data-v-91c827bc",null);e.default=p.exports}}); webpackJsonp([71],{JPjq:function(t,e){},"qWC+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("fPyK"),l=a("Ggl+"),i=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},loading:!1,completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},searchStore:Object(c.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth)},getTableList:function(t){var e=this;e.loading=!0;var a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(i.b)("/haoban-app-performance-three-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(c.c)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(c.c)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(c.c)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(c.c)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo?a.result.pageInfo.total:0);n.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},components:{qrcodeDialog:s.a,gicSelectGroup:l.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{maxlength:"50",placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"门店完善状态"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.operationStaffName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("JPjq")},"data-v-91c827bc",null);e.default=p.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([73],{"Q3j/":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={name:"page404",data:function(){return{gicHost:"",message:""}},methods:{toLogin:function(){location.href=this.gicHost+"/gic-web/#/login?ishb=1"}},mounted:function(){var e=this.$route.query.errorCode;this.message={1000:"系统异常",1001:"您还不是好办的管理员,请在 GIC 后台绑定好办企业后再登录",1003:"系统异常,通过手机号查询失败",1004:"企微应用未授权",1005:"登录超时,请重新登录",1006:"账号已冻结,请联系管理员"}[e]||"系统异常,请联系达摩管理员",this.$message.error(this.message),setTimeout(this.toLogin,3e3);var t=JSON.parse(sessionStorage.getItem("userInfos")||"{}");this.gicHost="string"==typeof t.gicHost?t.gicHost.replace(/\/$/,""):""}},o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"error-page"})},staticRenderFns:[]};var r=s("VU/8")(i,o,!1,function(e){s("xs31")},"data-v-8afbf5d0",null);t.default=r.exports},xs31:function(e,t){}}); webpackJsonp([72],{"Q3j/":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={name:"page404",data:function(){return{gicHost:"",message:""}},methods:{toLogin:function(){location.href=this.gicHost+"/gic-web/#/login?ishb=1"}},mounted:function(){var e=this.$route.query.errorCode;this.message={1000:"系统异常",1001:"您还不是好办的管理员,请在 GIC 后台绑定好办企业后再登录",1003:"系统异常,通过手机号查询失败",1004:"企微应用未授权",1005:"登录超时,请重新登录",1006:"账号已冻结,请联系管理员"}[e]||"系统异常,请联系达摩管理员",this.$message.error(this.message),setTimeout(this.toLogin,3e3);var t=JSON.parse(sessionStorage.getItem("userInfos")||"{}");this.gicHost="string"==typeof t.gicHost?t.gicHost.replace(/\/$/,""):""}},o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"error-page"})},staticRenderFns:[]};var r=s("VU/8")(i,o,!1,function(e){s("xs31")},"data-v-8afbf5d0",null);t.default=r.exports},xs31:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([74],{NB3z:function(t,a){},tqu3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("Xxa5"),n=e.n(r),i=e("exGp"),s=e.n(i),c=e("5i7M"),o={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return s()(n.a.mark(function a(){var e;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){a.next=3;break}return a.abrupt("return");case 3:e=t.handleData(t.charData),t.chart=new c.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(e,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:5,nice:!0},times:{min:0,tickCount:5,nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return(t>=1?t:0)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(105,200,168,1)","rgba(251, 159, 45, 1)"]),t.chart.line().position("date*times").color("type",["rgba(251, 159, 45, 1)"]),t.chart.render();case 15:case"end":return a.stop()}},a,t)}))()},handleData:function(t){var a=[];return t.forEach(function(t){a.push({date:t.bizDate,type:"今日添加人数",num:t.addNum}),a.push({date:t.bizDate,type:"今日点击人数",num:t.clickNum}),a.push({date:t.bizDate,type:"今日点击人次",times:t.clickTimes})}),a}}},h={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():a("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"image-120",attrs:{src:e("es7N")}}),this._v(" "),a("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var u=e("VU/8")(o,h,!1,function(t){e("NB3z")},"data-v-867bb266",null);a.default=u.exports}}); webpackJsonp([73],{NB3z:function(t,a){},tqu3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("Xxa5"),n=e.n(r),i=e("exGp"),s=e.n(i),c=e("5i7M"),o={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return s()(n.a.mark(function a(){var e;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){a.next=3;break}return a.abrupt("return");case 3:e=t.handleData(t.charData),t.chart=new c.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(e,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:5,nice:!0},times:{min:0,tickCount:5,nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return(t>=1?t:0)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(105,200,168,1)","rgba(251, 159, 45, 1)"]),t.chart.line().position("date*times").color("type",["rgba(251, 159, 45, 1)"]),t.chart.render();case 15:case"end":return a.stop()}},a,t)}))()},handleData:function(t){var a=[];return t.forEach(function(t){a.push({date:t.bizDate,type:"今日添加人数",num:t.addNum}),a.push({date:t.bizDate,type:"今日点击人数",num:t.clickNum}),a.push({date:t.bizDate,type:"今日点击人次",times:t.clickTimes})}),a}}},h={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():a("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"image-120",attrs:{src:e("es7N")}}),this._v(" "),a("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var u=e("VU/8")(o,h,!1,function(t){e("NB3z")},"data-v-867bb266",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([75],{jPcV:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("rvl7")},"data-v-7e45f36b",null);e.default=o.exports},rvl7:function(t,e){}}); webpackJsonp([74],{jPcV:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("rvl7")},"data-v-7e45f36b",null);e.default=o.exports},rvl7:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([76],{ZEf4:function(t,e){},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),o=a("P9l9"),s=a("Ch4/"),c={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(o.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},n=a.errorCode,i=a.result;if(1!=n)return s.a.errorMsg(e.data);var o=(i||{}).allList;o=Array.isArray(o)?o:[],t.allApps=o,t.settingData.checked=o.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),n={dataJson:i()(a)};Object(o.g)("/haoban-manage3-web/open-or-close",n).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var r=a("VU/8")(c,l,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=r.exports}}); webpackJsonp([75],{ZEf4:function(t,e){},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),o=a("P9l9"),s=a("Ch4/"),c={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(o.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},n=a.errorCode,i=a.result;if(1!=n)return s.a.errorMsg(e.data);var o=(i||{}).allList;o=Array.isArray(o)?o:[],t.allApps=o,t.settingData.checked=o.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),n={dataJson:i()(a)};Object(o.g)("/haoban-manage3-web/open-or-close",n).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var r=a("VU/8")(c,l,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([76],{"/pg7":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("Xxa5"),a=r.n(n),o=r("Dd8w"),m=r.n(o),s=r("exGp"),u=r.n(s),i=r("1fzb"),l=r("znzC"),c=r("P9l9"),d={components:{setActCode:i.default,SelectClerk:l.default},data:function(){return{hmMemberNum:0,form:{hmType:1,clerkIdList:[],hmUserNum:null},memberType:1,data:[],storeClerkList:[]}},created:function(){this.getClerkNum()},methods:{radioChange:function(e){1==e&&(this.form.clerkIdList=["-1"],this.data=[],this.form.hmUserNum=this.hmMemberNum)},getClerkNum:function(){var e=this;Object(c.b)("/haoban-manage3-web/hm/qrcode/getAddCount",{}).then(function(t){0==t.data.code&&(e.hmMemberNum=t.data.result||0)})},onChange:function(e){this.data=e,this.form.clerkIdList=e.map(function(e){return e.clerkId}),this.form.hmUserNum=e.length},onSubmit:function(e){var t=this;return u()(a.a.mark(function r(){var n;return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return 1==t.memberType&&(t.form.clerkIdList=["-1"],t.form.hmUserNum=t.hmMemberNum),n=m()({},e,t.form),r.next=4,Object(c.f)("/haoban-manage3-web/hm/qrcode/addList",n).then(function(e){if(0!=e.data.code)return t.$parent.btnLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$route.meta.refresh=!0,t.$parent.btnLoading=!1,t.$router.go(-1),t.form={hmType:1,clerkIdList:[],hmUserNum:null}},1e3)});case 4:case"end":return r.stop()}},r,t)}))()}}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("setActCode",{on:{sumbit:e.onSubmit},scopedSlots:e._u([{key:"typeCode",fn:function(){return[r("el-form-item",{attrs:{label:"活码类型",rules:[{required:!0,message:"请选择活码类型",trigger:"blur"}]}},[r("el-radio-group",{model:{value:e.form.hmType,callback:function(t){e.$set(e.form,"hmType",t)},expression:"form.hmType"}},[r("el-radio",{attrs:{label:1}},[e._v("单人活码")])],1)],1)]},proxy:!0},{key:"member",fn:function(){return[r("el-form-item",{attrs:{label:"关联导购",rules:[{required:!0,message:"请选择使用成员",trigger:"blur"}]}},[r("el-radio-group",{on:{change:e.radioChange},model:{value:e.memberType,callback:function(t){e.memberType=t},expression:"memberType"}},[r("el-radio",{attrs:{label:1}},[e._v("全部成员")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("部分成员")])],1),e._v(" "),r("br"),e._v(" "),1==e.memberType?r("p",{staticClass:"tips"},[e._v("当前已选择 "+e._s(e.hmMemberNum)+" 个成员 "),r("span",[e._v("(活码名称默认为使用成员名称)")])]):e._e(),e._v(" "),2==e.memberType?r("select-clerk",{attrs:{multiple:!0,data:e.data},on:{change:e.onChange}}):e._e()],1)]},proxy:!0}])})],1)},staticRenderFns:[]};var h=r("VU/8")(d,f,!1,function(e){r("udo8")},"data-v-78194b30",null);t.default=h.exports},udo8:function(e,t){}});
\ No newline at end of file
webpackJsonp([8,9,67],{"29DL":function(t,e){},"9Q6k":function(t,e){},BkG1:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),o=a("w/TU"),l=a.n(o),c=a("Isrn"),d=a("l46T"),p={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var u=a("VU/8")(p,v,!1,function(t){a("9Q6k")},"data-v-540cc965",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(m,f,!1,function(t){a("BkG1")},"data-v-537e48ec",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(h,g,!1,function(t){a("NzOk")},"data-v-79b73771",null).exports,C={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(C,y,!1,function(t){a("RHtY")},"data-v-13aa0e8a",null).exports,w={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(w,I,!1,function(t){a("g+0C")},"data-v-18397033",null).exports,$={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},S={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")($,S,!1,function(t){a("y9Xh")},"data-v-afb2e45a",null).exports,R=a("fPyK"),M={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},E={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(M,E,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,T=a("3E4D"),V=a("Ch4/"),L=a("PI0u"),P=a("P9l9"),B={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(L.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(P.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?V.a.errorMsg(a):T.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(P.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}V.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}V.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?V.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:l.a,AddInput:c.a,limitInput:d.a,timeProgress:u,storePerformance:_,errorMointor:x,membershipData:b,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:R.a,systemSet:N},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},F={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var O=a("VU/8")(B,F,!1,function(t){a("LTXF")},"data-v-65d8e9fa",null);e.default=O.exports},LTXF:function(t,e){},NzOk:function(t,e){},RHtY:function(t,e){},RnLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("J/6z"),i=a("ak3k"),n={name:"DailySetting",props:{brandId:{type:String,default:""}},components:{SystemReport:s.default,CustomReport:i.default},data:function(){return{activeName:"first"}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{staticClass:"daily-setting",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统报表",name:"first"}},[a("system-report",{attrs:{"brand-id":t.brandId}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义报表",name:"second"}},[a("custom-report",{attrs:{"brand-id":t.brandId}})],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("fn+l")},"data-v-c7453d62",null);e.default=o.exports},ak3k:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),r=a("P9l9"),o=a("Ch4/"),l=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var a=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var s=e.data;if(1==s.errorCode)return l.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);o.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=[],void(a.result&&a.result.length&&(t.tableData=a.result));o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),a("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?a("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?a("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?a("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?a("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?a("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(a){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(a){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var p=a("VU/8")(c,d,!1,function(t){a("29DL")},"data-v-aa3f75f2",null);e.default=p.exports},eUKg:function(t,e){},"fn+l":function(t,e){},"g+0C":function(t,e){},y9Xh:function(t,e){}}); webpackJsonp([8,9,66],{"29DL":function(t,e){},"9Q6k":function(t,e){},BkG1:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),o=a("w/TU"),l=a.n(o),c=a("Isrn"),d=a("l46T"),p={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var u=a("VU/8")(p,v,!1,function(t){a("9Q6k")},"data-v-540cc965",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(m,f,!1,function(t){a("BkG1")},"data-v-537e48ec",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(h,g,!1,function(t){a("NzOk")},"data-v-79b73771",null).exports,C={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(C,y,!1,function(t){a("RHtY")},"data-v-13aa0e8a",null).exports,w={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(w,I,!1,function(t){a("g+0C")},"data-v-18397033",null).exports,$={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},S={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")($,S,!1,function(t){a("y9Xh")},"data-v-afb2e45a",null).exports,R=a("fPyK"),M={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},E={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(M,E,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,T=a("3E4D"),V=a("Ch4/"),L=a("PI0u"),P=a("P9l9"),B={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(L.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(P.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?V.a.errorMsg(a):T.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(P.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}V.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}V.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?V.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:l.a,AddInput:c.a,limitInput:d.a,timeProgress:u,storePerformance:_,errorMointor:x,membershipData:b,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:R.a,systemSet:N},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},F={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var O=a("VU/8")(B,F,!1,function(t){a("LTXF")},"data-v-65d8e9fa",null);e.default=O.exports},LTXF:function(t,e){},NzOk:function(t,e){},RHtY:function(t,e){},RnLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("J/6z"),i=a("ak3k"),n={name:"DailySetting",props:{brandId:{type:String,default:""}},components:{SystemReport:s.default,CustomReport:i.default},data:function(){return{activeName:"first"}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{staticClass:"daily-setting",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统报表",name:"first"}},[a("system-report",{attrs:{"brand-id":t.brandId}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义报表",name:"second"}},[a("custom-report",{attrs:{"brand-id":t.brandId}})],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("fn+l")},"data-v-c7453d62",null);e.default=o.exports},ak3k:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),r=a("P9l9"),o=a("Ch4/"),l=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var a=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var s=e.data;if(1==s.errorCode)return l.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);o.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=[],void(a.result&&a.result.length&&(t.tableData=a.result));o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),a("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?a("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?a("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?a("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?a("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?a("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(a){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(a){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var p=a("VU/8")(c,d,!1,function(t){a("29DL")},"data-v-aa3f75f2",null);e.default=p.exports},eUKg:function(t,e){},"fn+l":function(t,e){},"g+0C":function(t,e){},y9Xh:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([86],{Y4y2:function(e,t){},txZy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("Dd8w"),n=r.n(a),o=r("Xxa5"),i=r.n(o),s=r("exGp"),m=r.n(s),l=r("1fzb"),u=r("znzC"),d=r("P9l9"),c={components:{setActCode:l.default,SelectClerk:u.default},data:function(){return{loading:!1,form:{hmType:1,name:"",clerkIdList:[],hmUserNum:null},multiple:!1,data:[],dataArr:[],detailCode:[],clerkDisabled:!1}},created:function(){this.$route.query.hmId&&this.getActCodeInfo()},methods:{changeEvent:function(e){this.data=[],this.dataArr=[],2==e?(this.multiple=!0,this.clerkDisabled=!1):1==e&&(this.multiple=!1)},onChange:function(e){this.data=e,this.form.hmUserNum=e.length,this.form.clerkIdList=e.map(function(e){return e.clerkId}),this.dataArr=e.map(function(e){return e.clerkName}),""==this.form.name&&(this.form.name=this.dataArr.toString())},getActCodeInfo:function(){var e=this;return m()(i.a.mark(function t(){var r;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e).loading=!0,!e.$route.query.hmId){t.next=5;break}return t.next=5,Object(d.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:e.$route.query.hmId}).then(function(t){e.detailCode=t.data.result,e.form.hmType=e.detailCode.hmType,e.form.name=e.detailCode.name,e.form.clerkIdList=e.detailCode.clerkList.map(function(e){return e.clerkId}),e.form.hmUserNum=e.form.clerkIdList.length,e.data=e.detailCode.clerkList,1==e.form.hmType?(e.clerkDisabled=!0,e.multiple=!1):2==e.form.hmType&&(e.multiple=!0,e.clerkDisabled=!1),r.loading=!1});case 5:case"end":return t.stop()}},t,e)}))()},onSubmit:function(e){var t=this;return m()(i.a.mark(function r(){var a;return i.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n()({},e,t.form),!t.$route.query.hmId){r.next=7;break}return a=n()({},a,{hmId:t.$route.query.hmId}),r.next=5,Object(d.f)("/haoban-manage3-web/hm/qrcode/update",a).then(function(e){if(0!=e.data.code)return t.$parent.btnLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$router.go(-1),t.$parent.btnLoading=!1,t.form={hmType:1,name:"",clerkIdList:[],hmUserNum:null}},1e3)});case 5:r.next=9;break;case 7:return r.next=9,Object(d.f)("/haoban-manage3-web/hm/qrcode/add",a).then(function(e){if(0!=e.data.code)return t.$parent.btnLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$route.meta.refresh=!0,t.$parent.btnLoading=!1,t.$router.go(-1),t.form={hmType:1,name:"",clerkIdList:[],hmUserNum:null}},1e3)});case 9:case"end":return r.stop()}},r,t)}))()}}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("setActCode",{attrs:{actCodeData:e.detailCode},on:{sumbit:e.onSubmit},scopedSlots:e._u([{key:"typeCode",fn:function(){return[r("el-form-item",{attrs:{label:"活码类型",rules:[{required:!0,message:"请选择活码类型",trigger:"blur"}]}},[r("el-radio-group",{on:{change:e.changeEvent},model:{value:e.form.hmType,callback:function(t){e.$set(e.form,"hmType",t)},expression:"form.hmType"}},[r("el-radio",{attrs:{label:1}},[e._v("单人活码")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("多人活码")])],1)],1)]},proxy:!0},{key:"codeName",fn:function(){return[r("el-form-item",{attrs:{label:"活码名称",rules:[{required:!0,message:"请输入活码名称",trigger:"blur"}]}},[r("el-input",{staticClass:"w340",attrs:{placeholder:"请输入活码名称,默认使用成员名称",maxlength:"20","show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)]},proxy:!0},{key:"member",fn:function(){return[r("el-form-item",{attrs:{label:"关联导购",rules:[{required:!0,message:"请选择使用成员",trigger:"blur"}]}},[1==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("单人活码仅可选择一名成员")]):e._e(),e._v(" "),2==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("若选择多名成员,则随机分配企微员工")]):e._e(),e._v(" "),r("select-clerk",{attrs:{multiple:e.multiple,data:e.data,disabled:e.clerkDisabled},on:{change:e.onChange}})],1)]},proxy:!0}])})],1)},staticRenderFns:[]};var h=r("VU/8")(c,f,!1,function(e){r("Y4y2")},"data-v-66607a1a",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([86],{lNsz:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),n={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"私人电话",value:1},{label:"企业电话",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(a.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?i.a.errorMsg(s):o.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10 set-long-tip"},[t._v("第三方双向呼叫及透传(透传功能暂无法使用,外呼显示号码为固定电话),可监控通话状态。呼叫结算及通话记录存储于GIC计费中心。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费。")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(n,r,!1,function(t){s("lNsz")},"data-v-65cf4516",null);e.default=c.exports}}); webpackJsonp([87],{lNsz:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),n={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"私人电话",value:1},{label:"企业电话",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(a.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?i.a.errorMsg(s):o.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10 set-long-tip"},[t._v("第三方双向呼叫及透传(透传功能暂无法使用,外呼显示号码为固定电话),可监控通话状态。呼叫结算及通话记录存储于GIC计费中心。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费。")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(n,r,!1,function(t){s("lNsz")},"data-v-65cf4516",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([87],{"4QyY":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),o=e("Qie6"),r=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",defaultNavpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navName:{11:"云日报-云日报记录",111:"云日报-记录详情",12:"云日报导出",2:"任务下发设置",3:"云日报设置",31:"云日报设置-系统报表",32:"云日报设置-自定义报表",321:"编辑模板",322:"新建模板"},navFrontPath:{11:"/dailyRecord",111:"/dailyRecord",12:"/dailyRecord",2:"/dailyRecord",31:"/dailyRecord",32:"/dailyRecord",321:"/customReport",322:"/customReport"},tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?s.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeRoute:function(a){this.$router.push(a)},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getExpired()},setSelectTab:function(a){switch(this.activeTab=a.tabId,a.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a;var n=[].concat(i()(this.defaultNavpath));e.length&&e.map(function(a){n[n.length-1].path=t.navFrontPath[a],n.push({name:t.navName[a],path:""})}),this.$nextTick(function(){return t.navpath=[].concat(n)})},changeNavShow:function(a){"/dailyDetail"==a.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(a,t){this.changeNavShow(a)},deep:!0},activeBrand:function(a,t){this.activeBrand=a},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},l={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:a.tabListData,activeSelTab:a.activeSelTab},on:{setSelectTab:a.setSelectTab}})],1),a._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[a.activeBrand?e("router-view",{attrs:{brandId:a.activeBrand,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab}}):a._e()],1)],1)])])]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var p=e("VU/8")(h,l,!1,function(a){e("YXcV")},"data-v-63f80218",null);t.default=p.exports},YXcV:function(a,t){}}); webpackJsonp([88],{"4QyY":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),o=e("Qie6"),r=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",defaultNavpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navName:{11:"云日报-云日报记录",111:"云日报-记录详情",12:"云日报导出",2:"任务下发设置",3:"云日报设置",31:"云日报设置-系统报表",32:"云日报设置-自定义报表",321:"编辑模板",322:"新建模板"},navFrontPath:{11:"/dailyRecord",111:"/dailyRecord",12:"/dailyRecord",2:"/dailyRecord",31:"/dailyRecord",32:"/dailyRecord",321:"/customReport",322:"/customReport"},tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?s.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeRoute:function(a){this.$router.push(a)},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getExpired()},setSelectTab:function(a){switch(this.activeTab=a.tabId,a.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a;var n=[].concat(i()(this.defaultNavpath));e.length&&e.map(function(a){n[n.length-1].path=t.navFrontPath[a],n.push({name:t.navName[a],path:""})}),this.$nextTick(function(){return t.navpath=[].concat(n)})},changeNavShow:function(a){"/dailyDetail"==a.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(a,t){this.changeNavShow(a)},deep:!0},activeBrand:function(a,t){this.activeBrand=a},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},l={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:a.tabListData,activeSelTab:a.activeSelTab},on:{setSelectTab:a.setSelectTab}})],1),a._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[a.activeBrand?e("router-view",{attrs:{brandId:a.activeBrand,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab}}):a._e()],1)],1)])])]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var p=e("VU/8")(h,l,!1,function(a){e("YXcV")},"data-v-63f80218",null);t.default=p.exports},YXcV:function(a,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([88],{CTf4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("Ql4E")},"data-v-61d0b205",null);e.default=i.exports},Ql4E:function(t,e){}}); webpackJsonp([89],{CTf4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("Ql4E")},"data-v-61d0b205",null);e.default=i.exports},Ql4E:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([89],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("MZ4b")},"data-v-59c3893a",null);e.default=l.exports},MZ4b:function(t,e){}}); webpackJsonp([90],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("MZ4b")},"data-v-59c3893a",null);e.default=l.exports},MZ4b:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([90],{EbcF:function(t,e){},NiGE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("mvHQ"),n=a.n(r),s=a("Gu7T"),i=a.n(s),c=a("Xxa5"),o=a.n(c),u=a("exGp"),d=a.n(u),h=a("PI0u"),p=a("Ch4/"),l=a("3E4D"),y=a("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{brandName:"",activeBrand:this.brandId,yearMonth:"",myObject:{hasEmptyGrid:!1,empytGrids:[],days:[],hasLastEmptyGrid:!1,lastEmpytGrids:[],beginDate:"",endDate:""},performanceWeightSettingList:[],settingStatus:1,settingAble:1}},computed:{},methods:{is_leap:function(t){return t%400==0||t%4==0&&t%100!=0},m_days:function(t){return[31,28+this.is_leap(t),31,30,31,30,31,31,30,31,30,31]},addZero:function(t){return t<10?"0"+parseInt(t):t},getThisMonthDays:function(t,e){return new Date(t,e,0).getDate()},getFirstDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,1)).getDay()},getLastDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,this.getThisMonthDays(t,e))).getDay()},getYearMonthDayWeek:function(t,e,a){return new Date(t,e-1,a).getDay()},isOverMonth:function(t,e){return t.split("-")[1]==e.split("-")[1]},calculateEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function r(){var n,s,i;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.getFirstDayOfWeek(t,e);case 2:if(n=r.sent,s=[],n>0)for(i=0;i<n;i++)s.push(i);return r.abrupt("return",s);case 6:case"end":return r.stop()}},r,a)}))()},calDayEmptyGrids:function(t,e,a){var r=this;return d()(o.a.mark(function n(){var s,i,c;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getYearMonthDayWeek(t,e,a);case 2:if(s=n.sent,i=[],s>0)for(c=0;c<s;c++)i.push(c);return n.abrupt("return",i);case 6:case"end":return n.stop()}},n,r)}))()},calculateLastEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function r(){var n,s,i;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.getLastDayOfWeek(t,e);case 2:if(n=r.sent,s=[],n>=0)for(i=0;i<6-n;i++)s.push(i);return r.abrupt("return",s);case 6:case"end":return r.stop()}},r,a)}))()},calLastEmptyGrids:function(t,e,a){var r=this;return d()(o.a.mark(function n(){var s,i,c;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getYearMonthDayWeek(t,e,a);case 2:if(s=n.sent,i=[],s>=0)for(c=0;c<6-s;c++)i.push(c);return n.abrupt("return",i);case 6:case"end":return n.stop()}},n,r)}))()},calculateDays:function(t,e,a,r){var n=this;return d()(o.a.mark(function s(){var c,u,d,h,p,l,y,f,m,v;return o.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return c=n,(u={}).beginDate=a,u.endDate=r,u.year=t,s.next=7,c.addZero(e);case 7:return u.month=s.sent,d=a.split("-"),h=r.split("-"),s.next=12,c.isOverMonth(a,r);case 12:return p=s.sent,s.next=15,c.calDayEmptyGrids(d[0],d[1],d[2]);case 15:return(l=s.sent).length>0?(u.hasEmptyGrid=!0,u.empytGrids=l):(u.hasEmptyGrid=!1,u.empytGrids=[]),s.next=19,c.calLastEmptyGrids(h[0],h[1],h[2]);case 19:if((y=s.sent).length>0?(u.hasLastEmptyGrid=!0,u.lastEmpytGrids=y):(u.hasLastEmptyGrid=!1,u.lastEmpytGrids=[]),!p){s.next=27;break}return s.next=24,c.setCurrentMonth(d[0],d[1],d[2],h[2]);case 24:u.days=s.sent,s.next=37;break;case 27:return s.next=29,c.getThisMonthDays(d[0],d[1]);case 29:return f=s.sent,s.next=32,c.setCurrentMonth(d[0],d[1],d[2],f);case 32:return m=s.sent,s.next=35,c.setCurrentMonth(h[0],h[1],1,h[2]);case 35:v=s.sent,u.days=[].concat(i()(m),i()(v));case 37:return c.myObject=u,s.abrupt("return",u);case 39:case"end":return s.stop()}},s,n)}))()},setCurrentMonth:function(t,e,a,r){for(var n=this,s=[],i=function(a){var r={};if(n.performanceWeightSettingList.length)n.performanceWeightSettingList.forEach(function(t,e){parseInt(t.date.split("-")[2])==a&&(r.weightValue=Number(t.weightValue).toFixed(2))});else{var i=n.getYearMonthDayWeek(t,e,a);r.weightValue=5==i?Number(1.8).toFixed(2):6==i||0==i?Number(2).toFixed(2):Number(1).toFixed(2)}r.performanceDay=n.addZero(a),r.date=t+"-"+n.addZero(e)+"-"+n.addZero(a),r.month=n.addZero(e),s.push(r)},c=a;c<=r;c++)i(c);return s},resetData:function(){this.performanceWeightSettingList=[];var t=this.yearMonth.split("-");this.calculateDays(t[0],t[1],this.myObject.beginDate,this.myObject.endDate)},saveSet:Object(h.a)(function(){var t=this,e=!0;if(t.myObject.days.forEach(function(t){(!t.weightValue||t.weightValue<=0||!Number(t.weightValue))&&(e=!1)}),!e)return this.$confirm("每日的权重不能为空,必须为数字,且不小于 0 ?","提示").then(function(){}),!1;t.$confirm(0==t.settingStatus?"点击即下发门店月指标任务,请确认是否提交?":"此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?","提示").then(function(){t.postSave(t.myObject.days)}).catch(function(){})},500),postSave:function(t){var e=this,a={enterpriseId:e.activeBrand,yearMonth:e.yearMonth,performanceWeightSettingList:n()(t)};Object(y.g)("/haoban-app-performance-three-web/performance/save-performance-weight-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("保存成功","success"),void e.getData();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,yearMonth:t.yearMonth};Object(y.g)("/haoban-app-performance-three-web/performance/query-performance-weight-setting",e).then(function(e){var a=e.data,r=t.yearMonth.split("-");if(1==a.errorCode)return t.performanceWeightSettingList=a.result.performanceWeightSettingList||[],t.settingStatus=a.result.settingStatus,t.settingAble=a.result.settingAble,t.brandName=a.result.enterpriseName,t.myObject.beginDate=a.result.beginDate,t.myObject.endDate=a.result.endDate,void t.calculateDays(r[0],r[1],a.result.beginDate,a.result.endDate);p.a.errorMsg(a),t.settingAble=0}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getData())}},mounted:function(){this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getData())},components:{}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap common-right-wrap"},[a("div",{staticClass:"day-set-content border-box"},[a("div",{staticClass:"day-set-title m-b-20"},[a("span",{staticClass:"font-18 color-303133"},[t._v(t._s(t.yearMonth))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("首次设置提交即下发门店月指标任务;"),a("br"),t._v("门店月指标将依照日权重自动分配,日指标=当月月指标*(日权重/∑当月日权重);")]),t._v(" "),a("span",{staticClass:"font-14 color-606266 m-l-10",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v(t._s(t.brandName)+"日权重")])])],1),t._v(" "),a("section",[t._m(0),t._v(" "),a("div",{staticClass:"week week-body"},[t.myObject.hasEmptyGrid?t._l(t.myObject.empytGrids,function(t,e){return a("div",{key:e+"empytGrids",staticClass:"day grid white-color"})}):t._e(),t._v(" "),t._l(t.myObject.days,function(e,r){return a("div",{key:r,staticClass:"day w-p-14 selectable",class:0==e?"hide":""},[a("div",{staticClass:"w-120 font-14 color-909399 day-performance"},[t._v(t._s(e.month+"-"+e.performanceDay))]),t._v(" "),a("div",{staticClass:"target-value "},[a("el-input",{staticClass:"w-120",attrs:{maxlength:"50",placeholder:"请输入权重值",disabled:0==t.settingAble},model:{value:e.weightValue,callback:function(a){t.$set(e,"weightValue",a)},expression:"day.weightValue"}})],1)])}),t._v(" "),t.myObject.hasLastEmptyGrid?t._l(t.myObject.lastEmpytGrids,function(t,e){return a("div",{key:e+"lastEmpytGrids",staticClass:"day grid white-color"})}):t._e()],2)]),t._v(" "),t.$store.state.wxEnterpriseType||1!=t.settingAble?t._e():a("div",{staticClass:"day-set-btn m-t-24 text-center"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.resetData}},[t._v("重置")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("提交")])],1)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"week"},[a("div",{staticClass:"week-head day w-p-14"},[t._v("周日")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周一")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周二")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周三")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周四")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周五")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周六")])])}]};var v=a("VU/8")(f,m,!1,function(t){a("EbcF")},"data-v-578a0762",null);e.default=v.exports}}); webpackJsonp([91],{EbcF:function(t,e){},NiGE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("mvHQ"),n=a.n(r),s=a("Gu7T"),i=a.n(s),c=a("Xxa5"),o=a.n(c),u=a("exGp"),d=a.n(u),h=a("PI0u"),p=a("Ch4/"),l=a("3E4D"),y=a("P9l9"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{brandName:"",activeBrand:this.brandId,yearMonth:"",myObject:{hasEmptyGrid:!1,empytGrids:[],days:[],hasLastEmptyGrid:!1,lastEmpytGrids:[],beginDate:"",endDate:""},performanceWeightSettingList:[],settingStatus:1,settingAble:1}},computed:{},methods:{is_leap:function(t){return t%400==0||t%4==0&&t%100!=0},m_days:function(t){return[31,28+this.is_leap(t),31,30,31,30,31,31,30,31,30,31]},addZero:function(t){return t<10?"0"+parseInt(t):t},getThisMonthDays:function(t,e){return new Date(t,e,0).getDate()},getFirstDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,1)).getDay()},getLastDayOfWeek:function(t,e){return new Date(Date.UTC(t,e-1,this.getThisMonthDays(t,e))).getDay()},getYearMonthDayWeek:function(t,e,a){return new Date(t,e-1,a).getDay()},isOverMonth:function(t,e){return t.split("-")[1]==e.split("-")[1]},calculateEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function r(){var n,s,i;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.getFirstDayOfWeek(t,e);case 2:if(n=r.sent,s=[],n>0)for(i=0;i<n;i++)s.push(i);return r.abrupt("return",s);case 6:case"end":return r.stop()}},r,a)}))()},calDayEmptyGrids:function(t,e,a){var r=this;return d()(o.a.mark(function n(){var s,i,c;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getYearMonthDayWeek(t,e,a);case 2:if(s=n.sent,i=[],s>0)for(c=0;c<s;c++)i.push(c);return n.abrupt("return",i);case 6:case"end":return n.stop()}},n,r)}))()},calculateLastEmptyGrids:function(t,e){var a=this;return d()(o.a.mark(function r(){var n,s,i;return o.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a.getLastDayOfWeek(t,e);case 2:if(n=r.sent,s=[],n>=0)for(i=0;i<6-n;i++)s.push(i);return r.abrupt("return",s);case 6:case"end":return r.stop()}},r,a)}))()},calLastEmptyGrids:function(t,e,a){var r=this;return d()(o.a.mark(function n(){var s,i,c;return o.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.getYearMonthDayWeek(t,e,a);case 2:if(s=n.sent,i=[],s>=0)for(c=0;c<6-s;c++)i.push(c);return n.abrupt("return",i);case 6:case"end":return n.stop()}},n,r)}))()},calculateDays:function(t,e,a,r){var n=this;return d()(o.a.mark(function s(){var c,u,d,h,p,l,y,f,m,v;return o.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return c=n,(u={}).beginDate=a,u.endDate=r,u.year=t,s.next=7,c.addZero(e);case 7:return u.month=s.sent,d=a.split("-"),h=r.split("-"),s.next=12,c.isOverMonth(a,r);case 12:return p=s.sent,s.next=15,c.calDayEmptyGrids(d[0],d[1],d[2]);case 15:return(l=s.sent).length>0?(u.hasEmptyGrid=!0,u.empytGrids=l):(u.hasEmptyGrid=!1,u.empytGrids=[]),s.next=19,c.calLastEmptyGrids(h[0],h[1],h[2]);case 19:if((y=s.sent).length>0?(u.hasLastEmptyGrid=!0,u.lastEmpytGrids=y):(u.hasLastEmptyGrid=!1,u.lastEmpytGrids=[]),!p){s.next=27;break}return s.next=24,c.setCurrentMonth(d[0],d[1],d[2],h[2]);case 24:u.days=s.sent,s.next=37;break;case 27:return s.next=29,c.getThisMonthDays(d[0],d[1]);case 29:return f=s.sent,s.next=32,c.setCurrentMonth(d[0],d[1],d[2],f);case 32:return m=s.sent,s.next=35,c.setCurrentMonth(h[0],h[1],1,h[2]);case 35:v=s.sent,u.days=[].concat(i()(m),i()(v));case 37:return c.myObject=u,s.abrupt("return",u);case 39:case"end":return s.stop()}},s,n)}))()},setCurrentMonth:function(t,e,a,r){for(var n=this,s=[],i=function(a){var r={};if(n.performanceWeightSettingList.length)n.performanceWeightSettingList.forEach(function(t,e){parseInt(t.date.split("-")[2])==a&&(r.weightValue=Number(t.weightValue).toFixed(2))});else{var i=n.getYearMonthDayWeek(t,e,a);r.weightValue=5==i?Number(1.8).toFixed(2):6==i||0==i?Number(2).toFixed(2):Number(1).toFixed(2)}r.performanceDay=n.addZero(a),r.date=t+"-"+n.addZero(e)+"-"+n.addZero(a),r.month=n.addZero(e),s.push(r)},c=a;c<=r;c++)i(c);return s},resetData:function(){this.performanceWeightSettingList=[];var t=this.yearMonth.split("-");this.calculateDays(t[0],t[1],this.myObject.beginDate,this.myObject.endDate)},saveSet:Object(h.a)(function(){var t=this,e=!0;if(t.myObject.days.forEach(function(t){(!t.weightValue||t.weightValue<=0||!Number(t.weightValue))&&(e=!1)}),!e)return this.$confirm("每日的权重不能为空,必须为数字,且不小于 0 ?","提示").then(function(){}),!1;t.$confirm(0==t.settingStatus?"点击即下发门店月指标任务,请确认是否提交?":"此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?","提示").then(function(){t.postSave(t.myObject.days)}).catch(function(){})},500),postSave:function(t){var e=this,a={enterpriseId:e.activeBrand,yearMonth:e.yearMonth,performanceWeightSettingList:n()(t)};Object(y.g)("/haoban-app-performance-three-web/performance/save-performance-weight-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("保存成功","success"),void e.getData();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,yearMonth:t.yearMonth};Object(y.g)("/haoban-app-performance-three-web/performance/query-performance-weight-setting",e).then(function(e){var a=e.data,r=t.yearMonth.split("-");if(1==a.errorCode)return t.performanceWeightSettingList=a.result.performanceWeightSettingList||[],t.settingStatus=a.result.settingStatus,t.settingAble=a.result.settingAble,t.brandName=a.result.enterpriseName,t.myObject.beginDate=a.result.beginDate,t.myObject.endDate=a.result.endDate,void t.calculateDays(r[0],r[1],a.result.beginDate,a.result.endDate);p.a.errorMsg(a),t.settingAble=0}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getData())}},mounted:function(){this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getData())},components:{}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap common-right-wrap"},[a("div",{staticClass:"day-set-content border-box"},[a("div",{staticClass:"day-set-title m-b-20"},[a("span",{staticClass:"font-18 color-303133"},[t._v(t._s(t.yearMonth))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("首次设置提交即下发门店月指标任务;"),a("br"),t._v("门店月指标将依照日权重自动分配,日指标=当月月指标*(日权重/∑当月日权重);")]),t._v(" "),a("span",{staticClass:"font-14 color-606266 m-l-10",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v(t._s(t.brandName)+"日权重")])])],1),t._v(" "),a("section",[t._m(0),t._v(" "),a("div",{staticClass:"week week-body"},[t.myObject.hasEmptyGrid?t._l(t.myObject.empytGrids,function(t,e){return a("div",{key:e+"empytGrids",staticClass:"day grid white-color"})}):t._e(),t._v(" "),t._l(t.myObject.days,function(e,r){return a("div",{key:r,staticClass:"day w-p-14 selectable",class:0==e?"hide":""},[a("div",{staticClass:"w-120 font-14 color-909399 day-performance"},[t._v(t._s(e.month+"-"+e.performanceDay))]),t._v(" "),a("div",{staticClass:"target-value "},[a("el-input",{staticClass:"w-120",attrs:{maxlength:"50",placeholder:"请输入权重值",disabled:0==t.settingAble},model:{value:e.weightValue,callback:function(a){t.$set(e,"weightValue",a)},expression:"day.weightValue"}})],1)])}),t._v(" "),t.myObject.hasLastEmptyGrid?t._l(t.myObject.lastEmpytGrids,function(t,e){return a("div",{key:e+"lastEmpytGrids",staticClass:"day grid white-color"})}):t._e()],2)]),t._v(" "),t.$store.state.wxEnterpriseType||1!=t.settingAble?t._e():a("div",{staticClass:"day-set-btn m-t-24 text-center"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.resetData}},[t._v("重置")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("提交")])],1)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"week"},[a("div",{staticClass:"week-head day w-p-14"},[t._v("周日")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周一")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周二")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周三")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周四")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周五")]),t._v(" "),a("div",{staticClass:"week-head day w-p-14"},[t._v("周六")])])}]};var v=a("VU/8")(f,m,!1,function(t){a("EbcF")},"data-v-578a0762",null);e.default=v.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([91],{"5gao":function(t,a){},XrL3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),o=e("Ch4/"),n=e("PI0u"),r=e("P9l9"),l={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{salesGoodsFlag:!1,notSalesGoodsFlag:!1,showPriceFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var a=this,e={enterpriseId:a.brandId,salesGoodsFlag:a.myCustomData.salesGoodsFlag?1:"0",notSalesGoodsFlag:a.myCustomData.notSalesGoodsFlag?1:"0",showPriceFlag:a.myCustomData.showPriceFlag?1:"0"};Object(r.g)("/haoban-app-aggregation-web/save-goods-setting",e).then(function(t){var e=t.data;a.loading=!1,a.getCustomerSet(),1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={enterpriseId:a.brandId,wxEnterpriseRelatedId:a.wxEnterpriseRelatedId};Object(r.g)("/haoban-app-aggregation-web/find-goods-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):e.result&&(a.myCustomData.salesGoodsFlag=1==e.result.salesGoodsFlag,a.myCustomData.notSalesGoodsFlag=1==e.result.notSalesGoodsFlag,a.myCustomData.showPriceFlag=1==e.result.showPriceFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.brandId&&this.getCustomerSet(this.brandId)},components:{}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("div",{staticClass:"m-b-20"},[e("span",{staticClass:"font-14 p-r-10"},[t._v("商品展示:")]),t._v(" "),e("el-checkbox",{model:{value:t.myCustomData.salesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"salesGoodsFlag",a)},expression:"myCustomData.salesGoodsFlag"}},[t._v("已上架商品")]),e("el-checkbox",{model:{value:t.myCustomData.notSalesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"notSalesGoodsFlag",a)},expression:"myCustomData.notSalesGoodsFlag"}},[t._v("未上架商品")])],1),t._v(" "),e("div",[e("el-switch",{model:{value:t.myCustomData.showPriceFlag,callback:function(a){t.$set(t.myCustomData,"showPriceFlag",a)},expression:"myCustomData.showPriceFlag"}}),e("span",{staticClass:"font-14 color-303133 p-l-10"},[t._v("商品详情屏蔽价格")]),e("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。")])],1),t._v(" "),e("div",{staticClass:"m-t-46"},[t.$getButtonLimit(t.$buttonCode.saveGoodsSet)?e("el-button",{attrs:{"limit-code":t.$buttonCode.saveGoodsSet,type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")]):t._e()],1)])])},staticRenderFns:[]};var d=e("VU/8")(l,i,!1,function(t){e("5gao")},"data-v-551cb015",null);a.default=d.exports}}); webpackJsonp([92],{"5gao":function(t,a){},XrL3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),o=e("Ch4/"),n=e("PI0u"),r=e("P9l9"),l={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{salesGoodsFlag:!1,notSalesGoodsFlag:!1,showPriceFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var a=this,e={enterpriseId:a.brandId,salesGoodsFlag:a.myCustomData.salesGoodsFlag?1:"0",notSalesGoodsFlag:a.myCustomData.notSalesGoodsFlag?1:"0",showPriceFlag:a.myCustomData.showPriceFlag?1:"0"};Object(r.g)("/haoban-app-aggregation-web/save-goods-setting",e).then(function(t){var e=t.data;a.loading=!1,a.getCustomerSet(),1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={enterpriseId:a.brandId,wxEnterpriseRelatedId:a.wxEnterpriseRelatedId};Object(r.g)("/haoban-app-aggregation-web/find-goods-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):e.result&&(a.myCustomData.salesGoodsFlag=1==e.result.salesGoodsFlag,a.myCustomData.notSalesGoodsFlag=1==e.result.notSalesGoodsFlag,a.myCustomData.showPriceFlag=1==e.result.showPriceFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.brandId&&this.getCustomerSet(this.brandId)},components:{}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("div",{staticClass:"m-b-20"},[e("span",{staticClass:"font-14 p-r-10"},[t._v("商品展示:")]),t._v(" "),e("el-checkbox",{model:{value:t.myCustomData.salesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"salesGoodsFlag",a)},expression:"myCustomData.salesGoodsFlag"}},[t._v("已上架商品")]),e("el-checkbox",{model:{value:t.myCustomData.notSalesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"notSalesGoodsFlag",a)},expression:"myCustomData.notSalesGoodsFlag"}},[t._v("未上架商品")])],1),t._v(" "),e("div",[e("el-switch",{model:{value:t.myCustomData.showPriceFlag,callback:function(a){t.$set(t.myCustomData,"showPriceFlag",a)},expression:"myCustomData.showPriceFlag"}}),e("span",{staticClass:"font-14 color-303133 p-l-10"},[t._v("商品详情屏蔽价格")]),e("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。")])],1),t._v(" "),e("div",{staticClass:"m-t-46"},[t.$getButtonLimit(t.$buttonCode.saveGoodsSet)?e("el-button",{attrs:{"limit-code":t.$buttonCode.saveGoodsSet,type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")]):t._e()],1)])])},staticRenderFns:[]};var d=e("VU/8")(l,i,!1,function(t){e("5gao")},"data-v-551cb015",null);a.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([92],{RvMj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),r=a.n(l),s=a("Ch4/"),o=a("P9l9"),i={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{enterpriseId:"",guideReplyFlag:0,allOrderFlag:0,taskCallTypes:[],distributeCustomerJudge:"",overDayJudge:2},formRules:{distributeCustomerJudge:{required:!0,validator:function(e,t,a){if(1!=t&&2!=t)return a(new Error("请设置任务分配"));a()},trigger:"blur"},overDayJudge:{required:!0},taskCallTypes:{required:!0,message:"请选择拨打方式",trigger:"change"}},callTypes:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],loading:!1}},methods:{onSave:function(){var e=this;this.loading=!0,this.$refs.formData.validate(function(t){if(t){var a=e.formData,l=a.enterpriseId,r=a.guideReplyFlag,i=a.allOrderFlag,n=a.taskCallTypes,u=a.distributeCustomerJudge,d=a.overDayJudge;Object(o.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",{enterpriseId:l,guideReplyFlag:r,allOrderFlag:i,taskCallTypes:n.join(","),distributeCustomerJudge:u,overDayJudge:d,taskType:0}).then(function(t){if(1!=(t.data||{}).errorCode)return s.a.errorMsg(t.data);e.$message.success("保存成功")}).finally(function(){setTimeout(function(){return e.loading=!1},100)})}else e.loading=!1})},getConfig:function(){var e=this;Object(o.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",{enterpriseId:this.formData.enterpriseId,taskType:0}).then(function(t){var a=t.data||{},l=a.errorCode,o=a.result;if(1!=l)return s.a.errorMsg(t.data);r()(e.formData,{guideReplyFlag:o.guideReplyFlag,allOrderFlag:o.allOrderFlag,taskCallTypes:"string"==typeof o.taskCallTypes?o.taskCallTypes.split(","):[],distributeCustomerJudge:o.distributeCustomerJudge,overDayJudge:o.overDayJudge})})}},created:function(){this.formData.enterpriseId=this.brandId,this.getConfig()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"evaluate-set"},[a("el-form",[a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("订单评价设置")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.guideReplyFlag,callback:function(t){e.$set(e.formData,"guideReplyFlag",t)},expression:"formData.guideReplyFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("禁止订单关联导购回复评价")]),e._v(" "),a("p",{staticClass:"switch-tip"},[e._v(" 开启后,订单关联导购不可回复评价")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.allOrderFlag,callback:function(t){e.$set(e.formData,"allOrderFlag",t)},expression:"formData.allOrderFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("允许店员查看所有订单评价")])],1),e._v(" "),a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("不良评价回访设置")])],1),e._v(" "),a("el-form",{ref:"formData",attrs:{model:e.formData,rules:e.formRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"不良评价拨打",prop:"taskCallTypes"}},[a("el-checkbox-group",{model:{value:e.formData.taskCallTypes,callback:function(t){e.$set(e.formData,"taskCallTypes",t)},expression:"formData.taskCallTypes"}},e._l(e.callTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n "),a("el-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"content"},e._l(t.tooltips,function(t,l){return a("p",{key:l},[e._v(e._s(t))])}),0),e._v(" "),a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})],2)],1)}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"任务分配",prop:"distributeCustomerJudge"}},[a("el-radio-group",{model:{value:e.formData.distributeCustomerJudge,callback:function(t){e.$set(e.formData,"distributeCustomerJudge",t)},expression:"formData.distributeCustomerJudge"}},[a("el-radio",{attrs:{label:1}},[e._v("\n 分配给消费门店店长\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("\n 分配给专属导购\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"逾期设置",prop:"overDayJudge"}},[a("div",{staticClass:"delay-config"},[e._v("\n 不良评价回访下发后"),a("el-input-number",{staticClass:"delay-count",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:e.formData.overDayJudge,callback:function(t){e.$set(e.formData,"overDayJudge",t)},expression:"formData.overDayJudge"}}),e._v("天\n "),a("p",{staticClass:"delay-tip"},[e._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1)])],1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.saveEvaluateSet)?a("hb-form-bottom",[a("el-button",{attrs:{"limit-code":e.$buttonCode.saveEvaluateSet,type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1):e._e()],1)},staticRenderFns:[]};var u=a("VU/8")(i,n,!1,function(e){a("dp7r")},"data-v-53c40c97",null);t.default=u.exports},dp7r:function(e,t){}}); webpackJsonp([93],{RvMj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),r=a.n(l),s=a("Ch4/"),o=a("P9l9"),i={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{enterpriseId:"",guideReplyFlag:0,allOrderFlag:0,taskCallTypes:[],distributeCustomerJudge:"",overDayJudge:2},formRules:{distributeCustomerJudge:{required:!0,validator:function(e,t,a){if(1!=t&&2!=t)return a(new Error("请设置任务分配"));a()},trigger:"blur"},overDayJudge:{required:!0},taskCallTypes:{required:!0,message:"请选择拨打方式",trigger:"change"}},callTypes:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],loading:!1}},methods:{onSave:function(){var e=this;this.loading=!0,this.$refs.formData.validate(function(t){if(t){var a=e.formData,l=a.enterpriseId,r=a.guideReplyFlag,i=a.allOrderFlag,n=a.taskCallTypes,u=a.distributeCustomerJudge,d=a.overDayJudge;Object(o.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",{enterpriseId:l,guideReplyFlag:r,allOrderFlag:i,taskCallTypes:n.join(","),distributeCustomerJudge:u,overDayJudge:d,taskType:0}).then(function(t){if(1!=(t.data||{}).errorCode)return s.a.errorMsg(t.data);e.$message.success("保存成功")}).finally(function(){setTimeout(function(){return e.loading=!1},100)})}else e.loading=!1})},getConfig:function(){var e=this;Object(o.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",{enterpriseId:this.formData.enterpriseId,taskType:0}).then(function(t){var a=t.data||{},l=a.errorCode,o=a.result;if(1!=l)return s.a.errorMsg(t.data);r()(e.formData,{guideReplyFlag:o.guideReplyFlag,allOrderFlag:o.allOrderFlag,taskCallTypes:"string"==typeof o.taskCallTypes?o.taskCallTypes.split(","):[],distributeCustomerJudge:o.distributeCustomerJudge,overDayJudge:o.overDayJudge})})}},created:function(){this.formData.enterpriseId=this.brandId,this.getConfig()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"evaluate-set"},[a("el-form",[a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("订单评价设置")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.guideReplyFlag,callback:function(t){e.$set(e.formData,"guideReplyFlag",t)},expression:"formData.guideReplyFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("禁止订单关联导购回复评价")]),e._v(" "),a("p",{staticClass:"switch-tip"},[e._v(" 开启后,订单关联导购不可回复评价")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.allOrderFlag,callback:function(t){e.$set(e.formData,"allOrderFlag",t)},expression:"formData.allOrderFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("允许店员查看所有订单评价")])],1),e._v(" "),a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("不良评价回访设置")])],1),e._v(" "),a("el-form",{ref:"formData",attrs:{model:e.formData,rules:e.formRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"不良评价拨打",prop:"taskCallTypes"}},[a("el-checkbox-group",{model:{value:e.formData.taskCallTypes,callback:function(t){e.$set(e.formData,"taskCallTypes",t)},expression:"formData.taskCallTypes"}},e._l(e.callTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n "),a("el-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"content"},e._l(t.tooltips,function(t,l){return a("p",{key:l},[e._v(e._s(t))])}),0),e._v(" "),a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})],2)],1)}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"任务分配",prop:"distributeCustomerJudge"}},[a("el-radio-group",{model:{value:e.formData.distributeCustomerJudge,callback:function(t){e.$set(e.formData,"distributeCustomerJudge",t)},expression:"formData.distributeCustomerJudge"}},[a("el-radio",{attrs:{label:1}},[e._v("\n 分配给消费门店店长\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("\n 分配给专属导购\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"逾期设置",prop:"overDayJudge"}},[a("div",{staticClass:"delay-config"},[e._v("\n 不良评价回访下发后"),a("el-input-number",{staticClass:"delay-count",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:e.formData.overDayJudge,callback:function(t){e.$set(e.formData,"overDayJudge",t)},expression:"formData.overDayJudge"}}),e._v("天\n "),a("p",{staticClass:"delay-tip"},[e._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1)])],1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.saveEvaluateSet)?a("hb-form-bottom",[a("el-button",{attrs:{"limit-code":e.$buttonCode.saveEvaluateSet,type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1):e._e()],1)},staticRenderFns:[]};var u=a("VU/8")(i,n,!1,function(e){a("dp7r")},"data-v-53c40c97",null);t.default=u.exports},dp7r:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([93],{O3gZ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"block block-field"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),s("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,i){return s("li",{key:"performance"+i,staticClass:"block-filed-item border-bottom-1"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])}),0),t._v(" "),"competitorInfo"==t.childItem.name?s("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=s("VU/8")(i,l,!1,function(t){s("hEsI")},"data-v-51fed69c",null);e.default=a.exports},hEsI:function(t,e){}}); webpackJsonp([94],{O3gZ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"block block-field"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),s("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,i){return s("li",{key:"performance"+i,staticClass:"block-filed-item border-bottom-1"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])}),0),t._v(" "),"competitorInfo"==t.childItem.name?s("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=s("VU/8")(i,l,!1,function(t){s("hEsI")},"data-v-51fed69c",null);e.default=a.exports},hEsI:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([94],{"Kj+C":function(t,a){},qSX4:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),o=e("bzW+"),c=e("Qie6"),s=e("Z8ln"),r=e("Ch4/"),h=e("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],tabListData:[{tabId:"1",tabName:"月指标",icon:"iconzhibiao"},{tabId:"2",tabName:"月指标任务",icon:"iconrenwu"}],navName:{1:"月指标",11:"门店月指标",111:"导购月指标详情",12:"商户日权重月指标",2:"月指标任务",21:"月指标任务详情"},navFrontPath:{1:"/monthList",11:"/monthList",111:"/storeMonthTask",12:"/monthList",13:"/monthList",2:"/monthList",21:"/monthTask"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("monthList");break;case"2":this.changeRoute("monthTask")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path="111"===t?a.navFrontPath[t]+"?yearMonth="+a.$route.query.yearMonth:a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,commonDetailLeft:c.a,expiredDialog:s.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(d,v,!1,function(t){e("Kj+C")},"data-v-4d124316",null);a.default=u.exports}}); webpackJsonp([95],{"Kj+C":function(t,a){},qSX4:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),o=e("bzW+"),c=e("Qie6"),s=e("Z8ln"),r=e("Ch4/"),h=e("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],tabListData:[{tabId:"1",tabName:"月指标",icon:"iconzhibiao"},{tabId:"2",tabName:"月指标任务",icon:"iconrenwu"}],navName:{1:"月指标",11:"门店月指标",111:"导购月指标详情",12:"商户日权重月指标",2:"月指标任务",21:"月指标任务详情"},navFrontPath:{1:"/monthList",11:"/monthList",111:"/storeMonthTask",12:"/monthList",13:"/monthList",2:"/monthList",21:"/monthTask"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("monthList");break;case"2":this.changeRoute("monthTask")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path="111"===t?a.navFrontPath[t]+"?yearMonth="+a.$route.query.yearMonth:a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,commonDetailLeft:c.a,expiredDialog:s.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(d,v,!1,function(t){e("Kj+C")},"data-v-4d124316",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([95],{fAFA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("PI0u"),c=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{yearList:[],year:"",tableList:[],loading:!1,tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getYearList()}},methods:{handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.apiMonthPerformanceList()},handleCurrentChange:function(t){this.currentPage=t,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,e.next=3,n={enterpriseId:a.brandId},Object(c.b)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=e.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(t){a.yearList.push({id:t,label:t+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):s.a.errorMsg(o);case 6:case"end":return e.stop()}var n},e,t)}))()},apiMonthPerformanceList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).loading=!0,e.next=4,n={enterpriseId:t.brandId,year:t.year},Object(c.b)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 4:r=e.sent,o=r.data,a.loading=!1,1==o.errorCode&&(o.result.length&&o.result.forEach(function(t){t.totalPerformance=Object(l.c)(Number(t.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 8:case"end":return e.stop()}var n},e,t)}))()}},mounted:function(){this.brandId&&this.getYearList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:t.changeYear},model:{value:t.year,callback:function(e){t.year=e},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),t._v(" "),t._l(t.yearList,function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.label}})})],2),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableList}},[t._l(t.tabelHeader,function(t,e){return a("el-table-column",{key:e,attrs:{label:t.label,prop:t.prop}})}),t._v(" "),t.$getButtonLimit(t.$buttonCode.monthTarget)||t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.settingStatus&&t.$getButtonLimit(t.$buttonCode.monthTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.monthTarget,type:"text"},on:{click:function(a){return t.$router.push("/storeMonthTask?yearMonth="+e.row.yearMonth)}}},[t._v("门店月指标")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.dayTarget,type:"text"},on:{click:function(a){return t.$router.push("/companyDaySet?yearMonth="+e.row.yearMonth)}}},[t._v("商户日权重")]):t._e()]}}])}):t._e()],2)],1)])},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(t){a("pQV7")},"data-v-4cf4a5fb",null);e.default=d.exports},pQV7:function(t,e){}}); webpackJsonp([96],{fAFA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("PI0u"),c=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{yearList:[],year:"",tableList:[],loading:!1,tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getYearList()}},methods:{handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.apiMonthPerformanceList()},handleCurrentChange:function(t){this.currentPage=t,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,e.next=3,n={enterpriseId:a.brandId},Object(c.b)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=e.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(t){a.yearList.push({id:t,label:t+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):s.a.errorMsg(o);case 6:case"end":return e.stop()}var n},e,t)}))()},apiMonthPerformanceList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).loading=!0,e.next=4,n={enterpriseId:t.brandId,year:t.year},Object(c.b)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 4:r=e.sent,o=r.data,a.loading=!1,1==o.errorCode&&(o.result.length&&o.result.forEach(function(t){t.totalPerformance=Object(l.c)(Number(t.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 8:case"end":return e.stop()}var n},e,t)}))()}},mounted:function(){this.brandId&&this.getYearList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:t.changeYear},model:{value:t.year,callback:function(e){t.year=e},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),t._v(" "),t._l(t.yearList,function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.label}})})],2),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableList}},[t._l(t.tabelHeader,function(t,e){return a("el-table-column",{key:e,attrs:{label:t.label,prop:t.prop}})}),t._v(" "),t.$getButtonLimit(t.$buttonCode.monthTarget)||t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.settingStatus&&t.$getButtonLimit(t.$buttonCode.monthTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.monthTarget,type:"text"},on:{click:function(a){return t.$router.push("/storeMonthTask?yearMonth="+e.row.yearMonth)}}},[t._v("门店月指标")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.dayTarget,type:"text"},on:{click:function(a){return t.$router.push("/companyDaySet?yearMonth="+e.row.yearMonth)}}},[t._v("商户日权重")]):t._e()]}}])}):t._e()],2)],1)])},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(t){a("pQV7")},"data-v-4cf4a5fb",null);e.default=d.exports},pQV7:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([96],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){return t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont-hb3 icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(t){a("XGRz")},"data-v-4918241e",null);e.default=g.exports},XGRz:function(t,e){}}); webpackJsonp([97],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){return t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont-hb3 icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(t){a("XGRz")},"data-v-4918241e",null);e.default=g.exports},XGRz:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([97],{"0zzn":function(t,e){},odfG:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("P9l9"),n=a("Ch4/"),l={name:"MemberShowSet",data:function(){return{tableData:[]}},created:function(){this.getTableData()},methods:{formatStoreType:function(t,e,a){var o=[];if("string"==typeof a){var n=a.split(",");o=[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}].filter(function(t){return n.includes(t.value)}).map(function(t){return t.label})}return o.join("/")},formatSetting:function(t){var e=[];return 1==t.mainStoreFlag&&e.push("展示服务门店客户"),1==t.minorStoreFlag&&e.push("展示协管门店客户"),1==t.openCardStoreFlag&&e.push("展示开卡门店客户"),1==t.showFreezeFlag&&e.push("展示冻结会员"),1==t.isSeeAuthMember&&e.push("展示已开卡会员"),1==t.clerkSeeOtherFlag&&e.push("允许导购查看其他导购客户"),e.join(";")},getTableData:function(){var t=this;Object(o.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(e){var a=e.data||{},o=a.code,l=a.result;0==o?(t.tableData=Array.isArray(l)?l:[],t.$nextTick(function(){t.tableData.map(function(e,a){var o=t.$refs["setContent"+a];t.$set(e,"isOverflow",o.scrollHeight>o.clientHeight)})})):n.a.errorMsg(e.data)})},onDel:function(t){var e=this;this.$set(t,"loading",!0),Object(o.b)("/haoban-app-customer-web/customer/del-member-setting",{memberManageSettingId:t.memberManageSettingId}).then(function(a){if(0!=(a.data||{}).code)return n.a.errorMsg(a.data),void e.$set(t,"loading",!1);e.$message.success("删除成功"),e.getTableData()}).catch(function(){return e.$set(t,"loading",!1)})}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"show-set"},[a("div",{staticClass:"show-set-header"},[a("el-alert",{staticClass:"show-set-tips",attrs:{type:"info","show-icon":"",closable:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"tips-text"},[t._v("1. 同一商户下,各子管理员新增的特殊策略的门店类型不能重复;")]),t._v(" "),a("div",{staticClass:"tips-text"},[t._v("2. 子管理员设置的门店类型和默认重复时,按子管理员设置的逻辑生效;")])])]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addShowRules,type:"primary"},on:{click:function(e){return t.$router.push("/addMemberShowRules")}}},[t._v("新增特殊策略")]):t._e()],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"策略名称",prop:"strategyName","min-width":"185px","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[0==e.$index?a("span",{staticClass:"default-store"},[t._v("默认")]):t._e(),t._v("\n "+t._s(o.strategyName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"策略类型",prop:"storeType",formatter:function(t,e,a){return"-999"==a?"通用策略":"特殊策略"},"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeType",formatter:t.formatStoreType,"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"设置内容","min-width":"310px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[o.isOverflow?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatSetting(o)))]),t._v(" "),a("div",{staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]):a("div",{ref:"setContent"+n,staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"最近编辑时间",prop:"updateTime","min-width":"110px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[t._v(t._s(t._f("timeStampToYmd")(o.updateTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(o.updateTime)))])])}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editShowRules)||t.$getButtonLimit(t.$buttonCode.delShowRules)?a("el-table-column",{attrs:{label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[t.$getButtonLimit(t.$buttonCode.editShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editShowRules,type:"text"},on:{click:function(e){return t.$router.push("/editMemberShowRules?id="+o.memberManageSettingId)}}},[t._v("编辑")]):t._e(),t._v(" "),n>0&&t.$getButtonLimit(t.$buttonCode.delShowRules)?a("dm-delete",{attrs:{tips:"是否删除?"},on:{confirm:function(e){return t.onDel(o)}}},[a("el-button",{attrs:{loading:o.loading,"limit-code":t.$buttonCode.delShowRules,type:"text"}},[t._v("删除")])],1):t._e()]}}])}):t._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("0zzn")},"data-v-46fb63d1",null);e.default=i.exports}}); webpackJsonp([98],{"0zzn":function(t,e){},odfG:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("P9l9"),n=a("Ch4/"),l={name:"MemberShowSet",data:function(){return{tableData:[]}},created:function(){this.getTableData()},methods:{formatStoreType:function(t,e,a){var o=[];if("string"==typeof a){var n=a.split(",");o=[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}].filter(function(t){return n.includes(t.value)}).map(function(t){return t.label})}return o.join("/")},formatSetting:function(t){var e=[];return 1==t.mainStoreFlag&&e.push("展示服务门店客户"),1==t.minorStoreFlag&&e.push("展示协管门店客户"),1==t.openCardStoreFlag&&e.push("展示开卡门店客户"),1==t.showFreezeFlag&&e.push("展示冻结会员"),1==t.isSeeAuthMember&&e.push("展示已开卡会员"),1==t.clerkSeeOtherFlag&&e.push("允许导购查看其他导购客户"),e.join(";")},getTableData:function(){var t=this;Object(o.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(e){var a=e.data||{},o=a.code,l=a.result;0==o?(t.tableData=Array.isArray(l)?l:[],t.$nextTick(function(){t.tableData.map(function(e,a){var o=t.$refs["setContent"+a];t.$set(e,"isOverflow",o.scrollHeight>o.clientHeight)})})):n.a.errorMsg(e.data)})},onDel:function(t){var e=this;this.$set(t,"loading",!0),Object(o.b)("/haoban-app-customer-web/customer/del-member-setting",{memberManageSettingId:t.memberManageSettingId}).then(function(a){if(0!=(a.data||{}).code)return n.a.errorMsg(a.data),void e.$set(t,"loading",!1);e.$message.success("删除成功"),e.getTableData()}).catch(function(){return e.$set(t,"loading",!1)})}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"show-set"},[a("div",{staticClass:"show-set-header"},[a("el-alert",{staticClass:"show-set-tips",attrs:{type:"info","show-icon":"",closable:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"tips-text"},[t._v("1. 同一商户下,各子管理员新增的特殊策略的门店类型不能重复;")]),t._v(" "),a("div",{staticClass:"tips-text"},[t._v("2. 子管理员设置的门店类型和默认重复时,按子管理员设置的逻辑生效;")])])]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addShowRules,type:"primary"},on:{click:function(e){return t.$router.push("/addMemberShowRules")}}},[t._v("新增特殊策略")]):t._e()],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"策略名称",prop:"strategyName","min-width":"185px","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[0==e.$index?a("span",{staticClass:"default-store"},[t._v("默认")]):t._e(),t._v("\n "+t._s(o.strategyName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"策略类型",prop:"storeType",formatter:function(t,e,a){return"-999"==a?"通用策略":"特殊策略"},"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeType",formatter:t.formatStoreType,"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"设置内容","min-width":"310px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[o.isOverflow?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatSetting(o)))]),t._v(" "),a("div",{staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]):a("div",{ref:"setContent"+n,staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"最近编辑时间",prop:"updateTime","min-width":"110px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[t._v(t._s(t._f("timeStampToYmd")(o.updateTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(o.updateTime)))])])}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editShowRules)||t.$getButtonLimit(t.$buttonCode.delShowRules)?a("el-table-column",{attrs:{label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[t.$getButtonLimit(t.$buttonCode.editShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editShowRules,type:"text"},on:{click:function(e){return t.$router.push("/editMemberShowRules?id="+o.memberManageSettingId)}}},[t._v("编辑")]):t._e(),t._v(" "),n>0&&t.$getButtonLimit(t.$buttonCode.delShowRules)?a("dm-delete",{attrs:{tips:"是否删除?"},on:{confirm:function(e){return t.onDel(o)}}},[a("el-button",{attrs:{loading:o.loading,"limit-code":t.$buttonCode.delShowRules,type:"text"}},[t._v("删除")])],1):t._e()]}}])}):t._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("0zzn")},"data-v-46fb63d1",null);e.default=i.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([99],{VF3b:function(t,e){},X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),d=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{loading:!1,searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(d.g)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),e.currentPage=1,void e.getTableList(e.brandId);100013==a.errorCode&&(e.currentPage=1,e.getTableList(e.brandId)),s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/editCard?coupCardId="+e.coupCardId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCard")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!0,n={gicEnterpriseId:a.brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(d.g)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo?e.result.pageInfo.total:0);s.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.brandId&&this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCard,type:"primary",disabled:t.$store.state.wxEnterpriseType},on:{click:t.toNewCard}},[t._v("新增卡券")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":"","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","min-width":"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板有效期","show-overflow-tooltip":"","min-width":"260px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"卡券库状态",prop:"cardStatus","min-width":"90px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[0==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[t._v("已删除")]):t._e(),t._v(" "),1==n.cardStatus?a("span",{staticClass:"state-point state-point-success"},[t._v("正常")]):t._e(),t._v(" "),2==n.cardStatus?a("span",{staticClass:"state-point state-point-error"},[t._v("已过期")]):t._e(),t._v(" "),3==n.cardStatus?a("span",{staticClass:"state-point state-point-default"},[t._v("未生效")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"120px"}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","show-overflow-tooltip":"","min-width":"120px"}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[n.createTime?[a("p",[t._v(t._s(t._f("timeStampToYmd")(n.createTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(n.createTime)))])]:[t._v("--")]],2)}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCard)||t.$getButtonLimit(t.$buttonCode.delCard)?a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.editCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCard,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCard)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCard,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var f=a("VU/8")(u,p,!1,function(t){a("VF3b")},"data-v-3c35e7f3",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([98],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("ibab")},"data-v-42a8460e",null);e.default=o.exports},ibab:function(t,e){}}); webpackJsonp([99],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("ibab")},"data-v-42a8460e",null);e.default=o.exports},ibab:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([126],{"/wAz":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"0xDb":function(e,t,a){"use strict";t.a=function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),o=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),r=o<10?"0"+o:o,s=new Date(t),i=s.getFullYear(),p=s.getMonth()+1,d=s.getDate()<10?"0"+s.getDate():s.getDate();return[i+"-"+(p<10?"0"+p:p)+"-"+d,a+"-"+r+"-"+n]};var o=a("woOf"),n=(a.n(o),a("fZjL")),r=(a.n(n),a("pFYg"));a.n(r),new Date},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(o){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"Ch4/":function(e,t,a){"use strict";var o=a("l6IN"),n=(a.n(o),JSON.parse(sessionStorage.getItem("userInfos")||"{}")),r="string"==typeof n.gicHost?n.gicHost.replace(/\/$/,""):"";location.origin.indexOf("localhost")>=0&&(r=location.origin),t.a={errorMsg:function(e){if(1!=e.errorCode){if(4==e.errorCode)return window.location.href=r+"/gic-web/#/login?ishb=1",!1;if(10==e.errorCode)return window.location.href=r+"/haoban-3/#/index",!1;o.Message.error({duration:2e3,message:e.message||"接口异常"})}}}},FHfR:function(e,t){e.exports={multipleAssign:"multipleAssign",assign:"assign",willSyncTag:"willSyncTag",breakSyncTag:"breakSyncTag",addShowRules:"addShowRules",editShowRules:"editShowRules",delShowRules:"delShowRules",groupExpire:"groupExpire",syncGroup:"syncGroup",addGroupTemp:"addGroupTemp",editGroupTemp:"editGroupTemp",setStoreArea:"setStoreArea",delGroupTemp:"delGroupTemp",searchSetSave:"searchSetSave",saveTrafficTaskSet:"saveTrafficTaskSet",addCard:"addCard",editCard:"editCard",delCard:"delCard",sendCardLog:"sendCardLog",getCardLog:"getCardLog",saveEvaluateSet:"saveEvaluateSet",addMaterialGroup:"addMaterialGroup",editMaterialGroup:"editMaterialGroup",delMaterialGroup:"delMaterialGroup",multipleDelAssets:"multipleDelAssets",multipleMoveAssets:"multipleMoveAssets",addText:"addText",editText:"editText",delText:"delText",textAssignStore:"textAssignStore",addImage:"addImage",editImage:"editImage",delImage:"delImage",imageAssignStore:"imageAssignStore",addWeb:"addWeb",editWeb:"editWeb",delWeb:"delWeb",webAssignStore:"webAssignStore",addVideo:"addVideo",editVideo:"editVideo",delVideo:"delVideo",videoAssignStore:"videoAssignStore",addFile:"addFile",editFile:"editFile",delFile:"delFile",fileAssignStore:"fileAssignStore",addApps:"addApps",editApps:"editApps",delApps:"delApps",appsAssignStore:"appsAssignStore",saveGoodsSet:"saveGoodsSet",exportActiveUser:"exportActiveUser",exportLoginUser:"exportLoginUser",exportAreaLoginUser:"exportAreaLoginUser",multipleDelReport:"multipleDelReport",exportReport:"exportReport",reportDetail:"reportDetail",multipleDelReportDetail:"multipleDelReportDetail",delReportDetail:"delReportDetail",showReportDetail:"showReportDetail",multipleExportReport:"multipleExportReport",saveTaskSet:"saveTaskSet",settingSystemReport:"settingSystemReport",saveSystemReport:"saveSystemReport",addCustomReport:"addCustomReport",copyCustomReport:"copyCustomReport",editCustomReport:"editCustomReport",delCustomReport:"delCustomReport",monthTarget:"monthTarget",dayTarget:"dayTarget",exportMonthTask:"exportMonthTask",checkMonthTask:"checkMonthTask",multipleDelTask:"multipleDelTask",delTask:"delTask",exportStoreList:"exportStoreList",checkStoreList:"checkStoreList",exportStoreDetail:"exportStoreDetail",checkStoreDetail:"checkStoreDetail",exportStoreDetailPop:"exportStoreDetailPop",previewStoreDetail:"previewStoreDetail",exportGrTaskList:"exportGrTaskList",checkGrTaskList:"checkGrTaskList",exportTaskRecord:"exportTaskRecord",multipleDelTaskRecord:"multipleDelTaskRecord",checkTaskRecord:"checkTaskRecord",exportTaskDetail:"exportTaskDetail",multipleDelTaskDetail:"multipleDelTaskDetail",delTaskDetail:"delTaskDetail",resolveTaskDetail:"resolveTaskDetail",previewTaskDetail:"previewTaskDetail",exportTaskView:"exportTaskView",multipleDelTaskView:"multipleDelTaskView",checkTaskView:"checkTaskView",exportTaskViewDetail:"exportTaskViewDetail",multipleDelTaskViewDetail:"multipleDelTaskViewDetail",checkTaskDetail:"checkTaskDetail",addSalutatory:"addSalutatory",editSalutatory:"editSalutatory",delSalutatory:"delSalutatory",multipleResolve:"multipleResolve",singleResolve:"singleResolve",singleReject:"singleReject",saveApplySetting:"saveApplySetting",refreshStoreMember:"refreshStoreMember",exportContact:"exportContact",checkContactDetail:"checkContactDetail",checkContactMemberDetail:"checkContactMemberDetail",checkLog:"checkLog",saveGuideSetting:"saveGuideSetting",saveAppsVisible:"saveAppsVisible",refreshStoreInfo:"refreshStoreInfo",saveMemberSecret:"saveMemberSecret",addMemberAppsSecret:"addMemberAppsSecret",editMemberAppsSecret:"editMemberAppsSecret",delMemberAppsSecret:"delMemberAppsSecret",addAppsSecret:"addAppsSecret",getAppsSecret:"getAppsSecret",editAppsSecret:"editAppsSecret",delAppsSecret:"delAppsSecret",checkAuth:"checkAuth",bindStoreList:"bindStoreList",refreshStore:"refreshStore",refreshAdminList:"refreshAdminList",addActCode:"addActCode",batchActCode:"batchActCode",batchGroup:"batchGroup",dataActCode:"dataActCode",infoActCode:"infoActCode",editActCode:"editActCode",downActCode:"downActCode",delActCode:"delActCode",recordCode:"recordCode",addLink:"addLink",dataLink:"dataLink",infoLink:"infoLink",editLink:"editLink",downLink:"downLink",recordLink:"recordLink"}},MtkU:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),r=(a("j1ja"),a("hKoQ")),s=a.n(r),i=a("mvHQ"),p=a.n(i),d=a("//Fk"),c=a.n(d),l=a("lRwf"),u=a.n(l),m=a("Ch4/"),g=a("P9l9"),h=a("Gu7T"),f=a.n(h),v=a("pRNm"),w=a.n(v),S=a("5tgt"),C=a.n(S),k=[{path:"/staffActCode",name:"员工活码",component:C()("salesleads/actCodeManage/staffActCode","index"),meta:{keepAlive:!0,fromPath:["/actCodeAdd","/actCodeEdit","/actCodeBatch","/actCodeDetail","/actCodeDetails"]}},{path:"/actCodeRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/actCodeDetail",name:"活码详情-数据",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeDetails",name:"活码详情-详情",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeAdd",name:"新增活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode"),meta:{keepAlive:!0,fromPath:["/salutatorySet"]}},{path:"/actCodeEdit",name:"编辑活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode"),meta:{keepAlive:!0,fromPath:["/salutatorySet"]}},{path:"/actCodeBatch",name:"批量创建活码",component:C()("salesleads/actCodeManage/staffActCode/views","batchAddCode"),meta:{keepAlive:!0,fromPath:["/salutatorySet"]}}],D=[{path:"/attractFlowLink",name:"引流链接",component:C()("salesleads/actCodeManage/attractFlowLink","index"),meta:{keepAlive:!0,fromPath:["/attractFlowLinkAdd","/attractFlowLinkEdit/:id","/attractFlowLinkInfo/:id","/attractFlowLinkInfos/:id"]}},{path:"/attractFlowLinkAdd",name:"新增引流链接",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkEdit/:id",name:"编辑引流链接",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkInfo/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attractFlowLinkInfos/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attLinkRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/ladingPageList",name:"落地页列表",component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","list"),meta:{keepAlive:!0,fromPath:["/ladingPageAdd","/ladingPageEdit/:id"]}},{path:"/ladingPageAdd",name:"新建落地页",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/ladingPageEdit/:id",name:"编辑落地页",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/operationLog",name:"操作日志",component:C()("salesleads/actCodeManage","operateLog")}],A=[].concat(f()(k),f()(D));u.a.use(w.a);var b=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var y=[{path:"/loginMore",name:"登录",component:C()("login","login-more")},{path:"/refresh",name:"刷新",component:C()("errorPage","refresh")},{path:"/",redirect:"/index",component:function(){return Promise.all([a.e(0),a.e(6)]).then(a.bind(null,"xW93"))},children:[{path:"/contactsList",name:"通讯录",component:C()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:C()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:C()("business","authMerchant")},{path:"/authMerchantForm",name:"新建授权商户",component:C()("business","authMerchant-form")},{path:"/merchantStoreList",name:"绑定门店列表",component:C()("business","storeList")},{path:"/enterpriseSet",name:"企业信息",component:C()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:C()("enterprise","adminList")},{path:"/material",name:"素材库",component:C()("enterprise","material")},{path:"/salutatory",name:"欢迎语",component:C()("enterprise","salutatoryIndex"),meta:{keepAlive:!0,fromPath:["/editSalutatorySet","/salutatorySet"]}},{path:"/salutatorySet",name:"新建欢迎语",component:C()("enterprise","salutatorySet")},{path:"/editSalutatorySet",name:"编辑欢迎语",component:C()("enterprise","salutatorySet")},{path:"/guide-setting",name:"导购设置",component:C()("enterprise","guide-setting")},{path:"/setting",name:"操作设置",component:C()("setting","index")},{path:"/unreview",name:"未审核",component:C()("reviewCenter","unreview")},{path:"/reviewed",name:"已审核",component:C()("reviewCenter","reviewed")},{path:"/reviewSet",name:"审核设置",component:C()("reviewCenter","reviewSet")},{path:"/taskRecord",name:"话务任务记录",component:C()("salesleads/trafficTask","taskRecord"),meta:{keepAlive:!0,fromPath:["/taskDetail"]}},{path:"/taskView",name:"话务任务记录",component:C()("salesleads/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:C()("salesleads/trafficTask","trafficTaskSet")},{path:"/grStoreList",name:"门店视图",component:C()("salesleads/groupSend","grStoreList"),meta:{keepAlive:!0,fromPath:["/grStoreDetail/:id"]}},{path:"/grStoreDetail/:id",name:"门店视图",component:C()("salesleads/groupSend","grStoreDetail")},{path:"/grTaskList",name:"计划视图",component:C()("salesleads/groupSend","grTaskList")},{path:"/enterpriseUseData",name:"好办使用详情",component:C()("enterpriseData","enterpriseUseData")},{path:"/activeDetail",name:"激活人员明细",component:C()("enterpriseData","activeDetail")},{path:"/loginDetail",name:"登录人员明细",component:C()("enterpriseData","loginDetail")},{path:"/areaLoginDetail",name:"区域登录人员明细",component:C()("enterpriseData","areaLoginDetail")},{path:"/overStoreList",name:"溢出门店",component:C()("overstore","overStoreList")},{path:"/memberShowSet",name:"客户展示设置",component:C()("apps/customerApp","memberShowSet")},{path:"/addMemberShowRules",name:"新增特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/editMemberShowRules",name:"编辑特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/memberGroupSet",name:"客户分组设置",component:C()("apps/customerApp","memberGroupSet"),meta:{keepAlive:!0,fromPath:["/addGroupTemplate","/editGroupTemplate","/storeRangeSet"]}},{path:"/memberSearchSet",name:"客户搜索设置",component:C()("apps/customerApp","memberSearchSet")},{path:"/memberTagSet",name:"客户标签设置",component:C()("apps/customerApp","memberTagSet")},{path:"/syncHistory",name:"同步历史",component:C()("apps/customerApp","syncHistory")},{path:"/myCustomerList",name:"我的客户列表",component:C()("apps/customerApp","myCustomerList")},{path:"/addGroupTemplate",name:"添加模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/editGroupTemplate",name:"编辑模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/storeRangeSet",name:"门店范围设置",component:C()("apps/customerApp","storeRangeSet")},{path:"/dailyRecord",name:"云日报记录",component:C()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:C()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:C()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:C()("apps/cloudDaily","taskAssign")},{path:"/daily-setting",name:"系统报表",component:C()("apps/cloudDaily","daily-setting")},{path:"/customReportSet",name:"新增自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportCopy",name:"复制自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportEdit",name:"编辑自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/monthList",name:"月指标列表",component:C()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:C()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:C()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:C()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:C()("apps/quota","monthTask"),meta:{keepAlive:!0,fromPath:["/monthTaskDetail"]}},{path:"/monthTaskDetail",name:"月指标任务详情",component:C()("apps/quota","monthTaskDetail")},{path:"/cardList",name:"卡券列表",component:C()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:C()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:C()("apps/card","newCard")},{path:"/editCard",name:"编辑卡券",component:C()("apps/card","newCard")},{path:"/cardTemplate",name:"卡券模板",component:C()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:C()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:C()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:C()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:C()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:C()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:C()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:C()("apps/protectCard","cardGetRecord")},{path:"/goodsShowSet",name:"商品展示设置",component:C()("apps/shoppingCenter","goodsShowSet")},{path:"/evaluate-set",name:"订单评价",component:C()("apps/order-evaluate","evaluate-set")}].concat(f()(A),[{path:"/403",name:"无权访问",component:b},{path:"/404",name:"error404",component:b},{path:"/500",name:"error500",component:b}])},{path:"/gic-error",name:"gic跳转失败页",component:C()("errorPage","gic-error")}],x=new w.a({routes:y,scrollBehavior:function(){return{y:0}}}),T=["/login","/loginMore"],M="",R="";x.beforeEach(function(e,t,a){M=e.path,R=t.path,sessionStorage.getItem("hbReload")?sessionStorage.removeItem("hbReload"):T.includes(R)&&(sessionStorage.setItem("hbReload",1),setTimeout(function(){location.reload()},50)),a()});var L={name:"App",data:function(){return{loading:!0,menuList:[],pageRight:[]}},beforeDestroy:function(){document.removeEventListener("visibilitychange",this.checkUser)},created:function(){var e=this;document.addEventListener("visibilitychange",this.checkUser),this.getUserInfo().then(function(){T.includes(M)||T.includes(R)?e.loading=!1:c.a.all([e.getRight(),e.getMenuList()]).finally(function(){setTimeout(function(){return e.loading=!1},200)})})},methods:{checkUser:function(){var e=this;if(!document.hidden){var t=JSON.parse(sessionStorage.getItem("userInfos"));this.getUserInfo().then(function(){JSON.parse(sessionStorage.getItem("userInfos")).clerkId!=t.clerkId&&e.$router.push("/refresh")})}},getUserInfo:function(){return Object(g.g)("/haoban-manage3-web/get-login-info",{}).then(function(e){var t=e.data||{},a=t.errorCode,o=t.result;1==a?(sessionStorage.setItem("userInfos",p()(o)),o.enterpriseId&&(u.a.axios.defaults.headers.common.enterpriseId=o.enterpriseId)):m.a.errorMsg(e.data)})},getMenuList:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-menu",{}).then(function(t){var a=t.data||[],o=a.errorCode,n=a.result;1==o?Array.isArray(n)&&(e.menuList=n,e.setIndexRoute(n)):m.a.errorMsg(t.data)})},getRight:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-right",{}).then(function(t){var a=t.data||{},o=a.errorCode,n=a.result;1==o?(e.pageRight=e.getPageRight(n.menu),e.checkButtonRight(n.button),e.checkPageRight(e.pageRight,function(e){return function(e,t){e&&e.menuCode&&console.log(t.filter(function(t){return t.parentCode==e.menuCode}))}(e,n.button)})):m.a.errorMsg(t.data)})},getPageRight:function(e){return e.filter(function(e){return"string"==typeof e.menuUrl&&e.menuUrl.length>0}).map(function(e){for(var t=e.menuUrl,a=/(:.*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(a=/(\/\*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return e.regexp=new RegExp("^/"+t+"$"),e})},checkButtonRight:function(e){u.a.prototype.$getButtonLimit=function(t){return 1==(e.find(function(e){return e.menuCode==t})||{}).hasRight}},checkPageRight:function(e,t){var a=e.find(function(e){return e.regexp.test(M)});if(a&&0==a.hasRight){var o=sessionStorage.getItem("hbReloadPath")||"";a.menuUrl==o.substr(1)?(this.$router.push("/index"),sessionStorage.removeItem("hbReloadPath")):this.$router.push({path:"/403"})}t(a),x.beforeEach(function(a,o,n){var r=e.find(function(e){return e.regexp.test(a.path)});if(t(r),r&&0==r.hasRight)return n({path:"/403"});n()})},setIndexRoute:function(e){var t="",a=[{path:"*",redirect:"/404"}];e.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&(t=e.menuUrl),e.hasRight&&e.isShow}),t}),t}),t&&a.push({path:"/index",redirect:"/"+t}),this.$router.addRoutes(a)}}},P={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticStyle:{"min-height":"100vh"},attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[this.loading?this._e():t("router-view",{attrs:{"menu-list":this.menuList,"page-right":this.pageRight}})],1)],1)},staticRenderFns:[]};var E,I=a("VU/8")(L,P,!1,function(e){a("MtkU")},null,null).exports,F=a("bOdI"),G=a.n(F),V=a("SJI6"),j=a.n(V),q=a("0xDb");u.a.use(j.a);var N=new j.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[],wxEnterpriseType:0,salesDate:Object(q.a)()},mutations:(E={},G()(E,"login",function(e,t){sessionStorage.token=t,e.token=t}),G()(E,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),G()(E,"title",function(e,t){e.title=t}),G()(E,"show",function(e,t){e.show=t}),G()(E,"saveAdd",function(e,t){e.addDepartment.push(t)}),G()(E,"saveEdit",function(e,t){e.editDepartment.push(t)}),G()(E,"saveDel",function(e,t){e.delDepartment.push(t)}),G()(E,"clearAdd",function(e){e.addDepartment=[]}),G()(E,"clearEdit",function(e){e.editDepartment=[]}),G()(E,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),G()(E,"changeWxEntertype",function(e,t){e.wxEnterpriseType=t}),G()(E,"changeSalesDate",function(e,t){e.salesDate=t}),E),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")},changeWxEntertypeData:function(e,t){e.commit("changeWxEntertype",t)},changeSales:function(e,t){e.commit("changeSalesDate",t)}}}),U={code:"https://www.yuque.com/exnmlu/oo64hg/thm172#w4sOg",link:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#eV2NM"},H={clipboard:{bind:function(e,t,a,o){e.val=t.value,e.handler=function(){var t=e.val,a=document.createElement("input");e.appendChild(a),a.value=t,a.select(),document.execCommand("Copy"),u.a.prototype.$message({type:"success",message:"复制成功"}),a.parentNode.removeChild(a)},e.addEventListener("click",e.handler)},update:function(e,t,a,o){e.val=t.value},unbind:function(e){e.removeEventListener("click",e.handler)}},jumpLink:{bind:function(e,t){var a=t.arg;e.handler=function(){window.open(U[a])},e.addEventListener("click",e.handler)},unbind:function(e){e.removeEventListener("click",e.handler)}}},O=(a("/wAz"),a("pc4g"),a("4qCZ"),a("xtVA"),a("Q0Ca")),Y={props:{size:{type:[Number,String],default:20},iconname:{type:String,default:""}},computed:{ClassStyle:function(){return"width:"+parseInt(this.size)+";height:"+parseInt(this.size)+";"},IconName:function(){return"#"+this.iconname}}},W={render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"icon svg-icon svg-iconfont-hb3",style:this.ClassStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":this.IconName}})])},staticRenderFns:[]};var $=a("VU/8")(Y,W,!1,function(e){a("mF/g")},"data-v-aa28dd00",null).exports,z=a("TUaa"),J=a.n(z),B=a("tyqE"),X=a.n(B),Q=a("pRVe"),K=a.n(Q),Z=a("XsK6"),_=a.n(Z),ee=a("QRL9"),te=a.n(ee),ae=a("eMjc"),oe=a.n(ae),ne=a("l9mu"),re=a.n(ne),se={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;oe()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,o=t.height,n=a/592.28*841.89,r=o,s=0,i=592.28/a*o,p=t.toDataURL("image/jpeg",1),d=new re.a("","pt","a4");if(r<n)d.addImage(p,"JPEG",0,0,595.28,i);else for(;r>0;)d.addImage(p,"JPEG",0,s,595.28,i),s-=841.89,(r-=n)>0&&d.addPage();d.save(e+".pdf")})}}},ie=a("/IwO"),pe=a.n(ie),de=a("FHfR"),ce=a.n(de),le={name:"HbFormBottom",inject:["layoutVm"],props:{horizontal:{type:String,default:"center"}},data:function(){return{width:"0px"}},mounted:function(){this.width=this.$parent.$el.offsetWidth+"px",this.layoutVm.pagePaddingBottom=this.$el.offsetHeight+"px"},beforeDestroy:function(){this.layoutVm.pagePaddingBottom=null}},ue={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"hb-form-bottom",style:{width:this.width,"justify-content":"left"==this.horizontal?"flex-start":"right"==this.horizontal?"flex-end":"center"}},[this._t("default")],2)},staticRenderFns:[]};var me=a("VU/8")(le,ue,!1,function(e){a("dKGT")},"data-v-87d7ea0c",null).exports;s.a.polyfill(),u.a.component("svg-icon",$),n()(H).map(function(e){return u.a.directive(e,H[e])}),u.a.use(pe.a),pe.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,u.a.use(se),u.a.use(_.a),u.a.use(te.a),u.a.use(K.a),u.a.use(X.a),u.a.use(J.a),u.a.component("hb-form-bottom",me),u.a.config.productionTip=!1,n()(O.a).forEach(function(e){u.a.filter(e,O.a[e])}),x.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var o=window.location.origin;o.indexOf("localhost");var n=t.meta||{},r=n.fromPath,s=void 0===r?[]:r,i=n.refresh;Array.isArray(s)&&(t.meta.keepAlive=s.some(function(t){for(var a=t,o=/(:.*)(\/?)/;o.test(a);)a=a.replace(o,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(o=/(\/\*)(\/?)/;o.test(a);)a=a.replace(o,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return new RegExp(a).test(e.path)}),t.meta.keepAlive?e.meta.refresh=!1:e.meta.refresh=i),a()}),u.a.prototype.$buttonCode=ce.a,new u.a({el:"#app",router:x,store:N,components:{App:I},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},Opzk:function(e,t,a){var o={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,80],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,96],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,86],"./apps/badEvaluate/index.vue":["AG22",0,38],"./apps/card/cardList.vue":["X5LE",0,99],"./apps/card/cardRecord.vue":["xDJN",0,28],"./apps/card/index.vue":["nV1L",0,70],"./apps/card/newCard.vue":["7/Zw",0,23],"./apps/cloudDaily/customReport.vue":["ak3k",0,67],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,7],"./apps/cloudDaily/daily-setting.vue":["RnLd",0,8],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,29],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,39],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,69],"./apps/cloudDaily/index.vue":["4QyY",0,87],"./apps/cloudDaily/systemReport.vue":["J/6z",0,9],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,52],"./apps/cloudDaily/template/block.vue":["O3gZ",93],"./apps/cloudDaily/template/date-range.vue":["2WGr",89],"./apps/cloudDaily/template/image.vue":["8dpP",56],"./apps/cloudDaily/template/input.vue":["zHtI",116],"./apps/cloudDaily/template/select.vue":["rYZf",102],"./apps/customerApp/add-member-show-rules.vue":["SUcx",58],"./apps/customerApp/addGroupTemplate.vue":["vIlm",0,40],"./apps/customerApp/index.vue":["QHTa",0,61],"./apps/customerApp/memberDetailSet.vue":["F1Rz",0,54],"./apps/customerApp/memberGroupList.vue":["scn4",0,71],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,18],"./apps/customerApp/memberGroupSetList.vue":["8fbE",0,113],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,120],"./apps/customerApp/memberShowSet.vue":["odfG",97],"./apps/customerApp/memberTagSet.vue":["HmLC",50],"./apps/customerApp/myCustomerList.vue":["9CCr",0,12],"./apps/customerApp/storeRangeSet.vue":["z3jf",0,85],"./apps/customerApp/syncHistory.vue":["T435",51],"./apps/index.vue":["K1Vb",0,98],"./apps/order-evaluate/bad-evaluate-set.vue":["z2RJ",0,79],"./apps/order-evaluate/evaluate-set.vue":["RvMj",92],"./apps/order-evaluate/index.vue":["NUSj",0,60],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,115],"./apps/protectCard/cardPut.vue":["cD4x",0,78],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,105],"./apps/protectCard/cardStrategy.vue":["rUvh",0,44],"./apps/protectCard/cardTemplate.vue":["c7iB",0,101],"./apps/protectCard/index.vue":["aWmL",0,103],"./apps/protectCard/newCardPut.vue":["9db3",0,15],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,16],"./apps/protectCard/newCardTemp.vue":["tF0P",0,83],"./apps/quota/companyDaySet.vue":["NiGE",0,90],"./apps/quota/index.vue":["qSX4",0,94],"./apps/quota/monthList.vue":["fAFA",0,95],"./apps/quota/monthTask.vue":["NpHY",0,100],"./apps/quota/monthTaskDetail.vue":["YKf6",0,82],"./apps/quota/salerMonthDetail.vue":["+qr5",0,119],"./apps/quota/storeMonthTask.vue":["qWC+",0,72],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,91],"./apps/shoppingCenter/index.vue":["FIFf",0,110],"./business/authMerchant-dailog.vue":["/cEq",0,33],"./business/authMerchant-form.vue":["2xxS",0,10],"./business/authMerchant.vue":["mjMK",121],"./business/contacts.vue":["/W60",0,4],"./business/index.vue":["jPcV",0,75],"./business/not-manager.vue":["9F6+",0],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,77],"./business/storeList.vue":["QZxC",0,112],"./business/syncLog.vue":["20P3",0,46],"./enterprise/adminList.vue":["zYBJ",0,117],"./enterprise/app-visible-setting.vue":["w5vQ",76],"./enterprise/enterpriseSet.vue":["x5Fx",0,22],"./enterprise/guide-auth-setting.vue":["i0rV",114],"./enterprise/guide-setting.vue":["tPY2",24],"./enterprise/index.vue":["m9dW",0,107],"./enterprise/material.vue":["q+Sm",0,2],"./enterprise/relationDialog.vue":["+hGG",0],"./enterprise/salutatory.vue":["xWf4",0,122],"./enterprise/salutatoryIndex.vue":["nExe",0,32],"./enterprise/salutatorySet.vue":["vqCN",0,19],"./enterpriseData/activeDetail.vue":["h9Ca",0,31],"./enterpriseData/areaLoginDetail.vue":["TLd+",0,26],"./enterpriseData/enterpriseUseData.vue":["i4c9",0,5],"./enterpriseData/index.vue":["CTf4",0,88],"./enterpriseData/loginDetail.vue":["kX6v",0,11],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",41],"./errorPage/500.vue":["FskK",34],"./errorPage/gic-error.vue":["Q3j/",73],"./errorPage/index.vue":["ODjX",1],"./errorPage/refresh.vue":["0/JE",124],"./index/index.vue":["JXTs",0,37],"./login/index.vue":["T+/8",0,36],"./login/login-more.vue":["AVFt",0,48],"./overstore/index.vue":["Y55K",0,81],"./overstore/overStoreList.vue":["vuAV",0,57],"./reviewCenter/index.vue":["+lem",111],"./reviewCenter/reviewSet.vue":["6j9f",0,104],"./reviewCenter/reviewed.vue":["CLYF",0,30],"./reviewCenter/unreview.vue":["xCEU",0,17],"./salesleads/actCodeManage/attractFlowLink/detail.vue":["ATNk",0,43],"./salesleads/actCodeManage/attractFlowLink/index.vue":["7m4r",0,64],"./salesleads/actCodeManage/attractFlowLink/info.vue":["phd8",0,20],"./salesleads/actCodeManage/attractFlowLink/landingPage/cardView.vue":["4KYo",49],"./salesleads/actCodeManage/attractFlowLink/landingPage/detail.vue":["t/sc",0,123],"./salesleads/actCodeManage/attractFlowLink/landingPage/list.vue":["fjEt",0,13],"./salesleads/actCodeManage/attractFlowLink/landingPage/relationDialog.vue":["GdW8",0,106],"./salesleads/actCodeManage/attractFlowLink/newAddChart.vue":["tqu3",0,74],"./salesleads/actCodeManage/components/select-clerk/index.vue":["znzC",0],"./salesleads/actCodeManage/components/select-clerk/select-clerk.vue":["1Am8",0],"./salesleads/actCodeManage/components/select-clerk/selected-clerk-item.vue":["jMsE",0],"./salesleads/actCodeManage/operateLog.vue":["EzCA",0,68],"./salesleads/actCodeManage/staffActCode/actCodeDetail.vue":["DWsn",0,27],"./salesleads/actCodeManage/staffActCode/actCodeDetailStatistics.vue":["YQXN",0,65],"./salesleads/actCodeManage/staffActCode/actCodeRecord.vue":["jx8Q",0,45],"./salesleads/actCodeManage/staffActCode/index.vue":["tVK0",0,14],"./salesleads/actCodeManage/staffActCode/newAddChart.vue":["eaYI",0],"./salesleads/actCodeManage/staffActCode/views/act-code-table.vue":["XZyq",0,66],"./salesleads/actCodeManage/staffActCode/views/batchAddCode.vue":["/pg7",0,53],"./salesleads/actCodeManage/staffActCode/views/group-list.vue":["t6Nl",0,55],"./salesleads/actCodeManage/staffActCode/views/setActCode.vue":["txZy",0,108],"./salesleads/components/act-code-set.vue":["1fzb",0],"./salesleads/components/actCodeDetailInfo.vue":["DvcT",0],"./salesleads/components/dataDetail.vue":["/p6h",0],"./salesleads/components/welcomesItem.vue":["42hH",0],"./salesleads/groupSend/grStoreDetail.vue":["XF7X",0,21],"./salesleads/groupSend/grStoreList.vue":["w4UW",0,118],"./salesleads/groupSend/grTaskList.vue":["Uvr8",0,109],"./salesleads/index.vue":["owWS",0,42],"./salesleads/trafficTask/taskDetail.vue":["wRTX",0,25],"./salesleads/trafficTask/taskRecord.vue":["Wj0m",0,59],"./salesleads/trafficTask/taskView.vue":["TsS9",0,47],"./salesleads/trafficTask/taskViewDetail.vue":["f1qT",0,62],"./salesleads/trafficTask/trafficTaskSet.vue":["3Qek",0,63],"./setting/index.vue":["VlR1",0,84]};function n(e){var t=o[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}n.keys=function(){return Object.keys(o)},n.id="Opzk",e.exports=n},P9l9:function(e,t,a){"use strict";a.d(t,"b",function(){return k}),a.d(t,"a",function(){return D}),a.d(t,"g",function(){return A}),a.d(t,"f",function(){return b}),a.d(t,"e",function(){return y}),a.d(t,"d",function(){return x}),a.d(t,"c",function(){return T});var o=a("//Fk"),n=a.n(o),r=a("lRwf"),s=a.n(r),i=a("Rf8U"),p=a.n(i),d=a("OMN4"),c=a.n(d),l=a("mw3O"),u=a.n(l),m=a("l6IN");a.n(m);s.a.use(p.a,c.a),s.a.axios.defaults.withCredentials=!0,s.a.axios.defaults.headers.common.platform="haoban",s.a.axios.defaults.timeout=5e5;var g=window.location.origin,h=JSON.parse(sessionStorage.getItem("userInfos")||"{}"),f="string"==typeof h.gicHost?h.gicHost.replace(/\/$/,""):"";console.log(f),g.indexOf("localhost")>=0&&(f=g);var v=[],w=[],S=s.a.axios.CancelToken,C=function(e){for(var t in w)w[t].u===e.url+"&"+e.method&&(w[t].f(),w.splice(t,1))};s.a.axios.interceptors.request.use(function(e){if(C(e),e.cancelToken=new S(function(t){w.push({u:e.url+"&"+e.method,f:t})}),e.cancelToken=new s.a.axios.CancelToken(function(e){v.push({cancel:e})}),sessionStorage.getItem("userInfoBrandId")){var t=sessionStorage.getItem("userInfoBrandId");t&&(e.headers.enterpriseId=t)}return e},function(e){return m.Message.error({message:"请求超时!"}),n.a.resolve(e)}),s.a.axios.interceptors.response.use(function(e){if(C(e.config),e.status&&200==e.status&&(1!=e.data.errorCode||1!=e.data.code)){if(4==e.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/gic-web/#/login?ishb=1"}return 10!=e.data.errorCode&&7!=e.data.errorCode||(window.location.href=f+"/haoban-3/#/index"),e}return e},function(e){return 502==e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"服务异常⊙﹏⊙∥"})),403!=e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"登录失效!"})),n.a.resolve(e)});var k=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"get",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},D=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"delete",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},A=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),headers:{"Content-type":"application/x-www-form-urlencoded"}})},b=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},y=function(e,t){return s.a.axios({method:"post",url:""+g+e,data:t,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},x=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{}})},T=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})}},Q0Ca:function(e,t,a){"use strict";t.a={dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),o={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+n+"-"+o+" "+r+":"+s+":"+i}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=a<10?"0"+a:a;return t.getFullYear()+"-"+o}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+n+"."+o+" "+r+":"+s+":"+i}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},timeStampToYmd2:function(e){if(e){var t=new Date(e-864e5),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var o=a%864e5,n=o%36e5;return Math.floor(a/864e5)+"天"+Math.floor(o/36e5)+"小时"+Math.floor(n/6e4)+"分"}},formatTime:function(e){if(!e)return"00:00:00";var t=e/1e3,a=Math.floor(t/60/60/24);return(24*a+Math.floor(t/60/60)%24<10?"0"+(24*a+Math.floor(t/60/60)%24):24*a+Math.floor(t/60/60)%24)+":"+(Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60)+":"+(Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60)},formatInvalidStatus:function(e){var t="--";return 1==e?t="未失效":2==e&&(t="已失效"),t}}},SJI6:function(e,t){e.exports=Vuex},dKGT:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},"mF/g":function(e,t){},pRNm:function(e,t){e.exports=VueRouter},pc4g:function(e,t){},xtVA:function(e,t){}},[0]); webpackJsonp([126],{"/wAz":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"0xDb":function(e,t,a){"use strict";t.a=function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),o=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),r=o<10?"0"+o:o,s=new Date(t),i=s.getFullYear(),p=s.getMonth()+1,d=s.getDate()<10?"0"+s.getDate():s.getDate();return[i+"-"+(p<10?"0"+p:p)+"-"+d,a+"-"+r+"-"+n]};var o=a("woOf"),n=(a.n(o),a("fZjL")),r=(a.n(n),a("pFYg"));a.n(r),new Date},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(o){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"Ch4/":function(e,t,a){"use strict";var o=a("l6IN"),n=(a.n(o),JSON.parse(sessionStorage.getItem("userInfos")||"{}")),r="string"==typeof n.gicHost?n.gicHost.replace(/\/$/,""):"";location.origin.indexOf("localhost")>=0&&(r=location.origin),t.a={errorMsg:function(e){if(1!=e.errorCode){if(4==e.errorCode)return window.location.href=r+"/gic-web/#/login?ishb=1",!1;if(10==e.errorCode)return window.location.href=r+"/haoban-3/#/index",!1;o.Message.error({duration:2e3,message:e.message||"接口异常"})}}}},FHfR:function(e,t){e.exports={multipleAssign:"multipleAssign",assign:"assign",willSyncTag:"willSyncTag",breakSyncTag:"breakSyncTag",addShowRules:"addShowRules",editShowRules:"editShowRules",delShowRules:"delShowRules",groupExpire:"groupExpire",syncGroup:"syncGroup",addGroupTemp:"addGroupTemp",editGroupTemp:"editGroupTemp",setStoreArea:"setStoreArea",delGroupTemp:"delGroupTemp",searchSetSave:"searchSetSave",saveTrafficTaskSet:"saveTrafficTaskSet",addCard:"addCard",editCard:"editCard",delCard:"delCard",sendCardLog:"sendCardLog",getCardLog:"getCardLog",saveEvaluateSet:"saveEvaluateSet",addMaterialGroup:"addMaterialGroup",editMaterialGroup:"editMaterialGroup",delMaterialGroup:"delMaterialGroup",multipleDelAssets:"multipleDelAssets",multipleMoveAssets:"multipleMoveAssets",addText:"addText",editText:"editText",delText:"delText",textAssignStore:"textAssignStore",addImage:"addImage",editImage:"editImage",delImage:"delImage",imageAssignStore:"imageAssignStore",addWeb:"addWeb",editWeb:"editWeb",delWeb:"delWeb",webAssignStore:"webAssignStore",addVideo:"addVideo",editVideo:"editVideo",delVideo:"delVideo",videoAssignStore:"videoAssignStore",addFile:"addFile",editFile:"editFile",delFile:"delFile",fileAssignStore:"fileAssignStore",addApps:"addApps",editApps:"editApps",delApps:"delApps",appsAssignStore:"appsAssignStore",saveGoodsSet:"saveGoodsSet",exportActiveUser:"exportActiveUser",exportLoginUser:"exportLoginUser",exportAreaLoginUser:"exportAreaLoginUser",multipleDelReport:"multipleDelReport",exportReport:"exportReport",reportDetail:"reportDetail",multipleDelReportDetail:"multipleDelReportDetail",delReportDetail:"delReportDetail",showReportDetail:"showReportDetail",multipleExportReport:"multipleExportReport",saveTaskSet:"saveTaskSet",settingSystemReport:"settingSystemReport",saveSystemReport:"saveSystemReport",addCustomReport:"addCustomReport",copyCustomReport:"copyCustomReport",editCustomReport:"editCustomReport",delCustomReport:"delCustomReport",monthTarget:"monthTarget",dayTarget:"dayTarget",exportMonthTask:"exportMonthTask",checkMonthTask:"checkMonthTask",multipleDelTask:"multipleDelTask",delTask:"delTask",exportStoreList:"exportStoreList",checkStoreList:"checkStoreList",exportStoreDetail:"exportStoreDetail",checkStoreDetail:"checkStoreDetail",exportStoreDetailPop:"exportStoreDetailPop",previewStoreDetail:"previewStoreDetail",exportGrTaskList:"exportGrTaskList",checkGrTaskList:"checkGrTaskList",exportTaskRecord:"exportTaskRecord",multipleDelTaskRecord:"multipleDelTaskRecord",checkTaskRecord:"checkTaskRecord",exportTaskDetail:"exportTaskDetail",multipleDelTaskDetail:"multipleDelTaskDetail",delTaskDetail:"delTaskDetail",resolveTaskDetail:"resolveTaskDetail",previewTaskDetail:"previewTaskDetail",exportTaskView:"exportTaskView",multipleDelTaskView:"multipleDelTaskView",checkTaskView:"checkTaskView",exportTaskViewDetail:"exportTaskViewDetail",multipleDelTaskViewDetail:"multipleDelTaskViewDetail",checkTaskDetail:"checkTaskDetail",addSalutatory:"addSalutatory",editSalutatory:"editSalutatory",delSalutatory:"delSalutatory",multipleResolve:"multipleResolve",singleResolve:"singleResolve",singleReject:"singleReject",saveApplySetting:"saveApplySetting",refreshStoreMember:"refreshStoreMember",exportContact:"exportContact",checkContactDetail:"checkContactDetail",checkContactMemberDetail:"checkContactMemberDetail",checkLog:"checkLog",saveGuideSetting:"saveGuideSetting",saveAppsVisible:"saveAppsVisible",refreshStoreInfo:"refreshStoreInfo",saveMemberSecret:"saveMemberSecret",addMemberAppsSecret:"addMemberAppsSecret",editMemberAppsSecret:"editMemberAppsSecret",delMemberAppsSecret:"delMemberAppsSecret",addAppsSecret:"addAppsSecret",getAppsSecret:"getAppsSecret",editAppsSecret:"editAppsSecret",delAppsSecret:"delAppsSecret",checkAuth:"checkAuth",bindStoreList:"bindStoreList",refreshStore:"refreshStore",refreshAdminList:"refreshAdminList",addActCode:"addActCode",batchActCode:"batchActCode",batchGroup:"batchGroup",dataActCode:"dataActCode",infoActCode:"infoActCode",editActCode:"editActCode",downActCode:"downActCode",delActCode:"delActCode",recordCode:"recordCode",addLink:"addLink",dataLink:"dataLink",infoLink:"infoLink",editLink:"editLink",downLink:"downLink",recordLink:"recordLink"}},MtkU:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),r=(a("j1ja"),a("hKoQ")),s=a.n(r),i=a("mvHQ"),p=a.n(i),d=a("//Fk"),c=a.n(d),l=a("lRwf"),u=a.n(l),m=a("Ch4/"),g=a("P9l9"),h=a("Gu7T"),f=a.n(h),v=a("pRNm"),w=a.n(v),S=a("5tgt"),C=a.n(S),k=[{path:"/staffActCode",name:"员工活码",component:C()("salesleads/actCodeManage/staffActCode","index"),meta:{keepAlive:!0,fromPath:["/actCodeAdd","/actCodeEdit","/actCodeBatch","/actCodeDetail","/actCodeDetails"]}},{path:"/actCodeRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/actCodeDetail",name:"活码详情-数据",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeDetails",name:"活码详情-详情",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeAdd",name:"新增活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode"),meta:{keepAlive:!0,fromPath:["/salutatorySet"]}},{path:"/actCodeEdit",name:"编辑活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode"),meta:{keepAlive:!0,fromPath:["/salutatorySet"]}},{path:"/actCodeBatch",name:"批量创建活码",component:C()("salesleads/actCodeManage/staffActCode/views","batchAddCode"),meta:{keepAlive:!0,fromPath:["/salutatorySet"]}}],D=[{path:"/attractFlowLink",name:"引流链接",component:C()("salesleads/actCodeManage/attractFlowLink","index"),meta:{keepAlive:!0,fromPath:["/attractFlowLinkAdd","/attractFlowLinkEdit/:id","/attractFlowLinkInfo/:id","/attractFlowLinkInfos/:id"]}},{path:"/attractFlowLinkAdd",name:"新增引流链接",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkEdit/:id",name:"编辑引流链接",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkInfo/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attractFlowLinkInfos/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attLinkRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/ladingPageList",name:"落地页列表",component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","list"),meta:{keepAlive:!0,fromPath:["/ladingPageAdd","/ladingPageEdit/:id"]}},{path:"/ladingPageAdd",name:"新建落地页",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/ladingPageEdit/:id",name:"编辑落地页",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/operationLog",name:"操作日志",component:C()("salesleads/actCodeManage","operateLog")}],A=[].concat(f()(k),f()(D));u.a.use(w.a);var b=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var y=[{path:"/loginMore",name:"登录",component:C()("login","login-more")},{path:"/refresh",name:"刷新",component:C()("errorPage","refresh")},{path:"/",redirect:"/index",component:function(){return Promise.all([a.e(0),a.e(6)]).then(a.bind(null,"xW93"))},children:[{path:"/contactsList",name:"通讯录",component:C()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:C()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:C()("business","authMerchant")},{path:"/authMerchantForm",name:"新建授权商户",component:C()("business","authMerchant-form")},{path:"/merchantStoreList",name:"绑定门店列表",component:C()("business","storeList")},{path:"/enterpriseSet",name:"企业信息",component:C()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:C()("enterprise","adminList")},{path:"/material",name:"素材库",component:C()("enterprise","material")},{path:"/salutatory",name:"欢迎语",component:C()("enterprise","salutatoryIndex"),meta:{keepAlive:!0,fromPath:["/editSalutatorySet","/salutatorySet"]}},{path:"/salutatorySet",name:"新建欢迎语",component:C()("enterprise","salutatorySet")},{path:"/editSalutatorySet",name:"编辑欢迎语",component:C()("enterprise","salutatorySet")},{path:"/guide-setting",name:"导购设置",component:C()("enterprise","guide-setting")},{path:"/setting",name:"操作设置",component:C()("setting","index")},{path:"/unreview",name:"未审核",component:C()("reviewCenter","unreview")},{path:"/reviewed",name:"已审核",component:C()("reviewCenter","reviewed")},{path:"/reviewSet",name:"审核设置",component:C()("reviewCenter","reviewSet")},{path:"/taskRecord",name:"话务任务记录",component:C()("salesleads/trafficTask","taskRecord"),meta:{keepAlive:!0,fromPath:["/taskDetail"]}},{path:"/taskView",name:"话务任务记录",component:C()("salesleads/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:C()("salesleads/trafficTask","trafficTaskSet")},{path:"/grStoreList",name:"门店视图",component:C()("salesleads/groupSend","grStoreList"),meta:{keepAlive:!0,fromPath:["/grStoreDetail/:id"]}},{path:"/grStoreDetail/:id",name:"门店视图",component:C()("salesleads/groupSend","grStoreDetail")},{path:"/grTaskList",name:"计划视图",component:C()("salesleads/groupSend","grTaskList")},{path:"/enterpriseUseData",name:"好办使用详情",component:C()("enterpriseData","enterpriseUseData")},{path:"/activeDetail",name:"激活人员明细",component:C()("enterpriseData","activeDetail")},{path:"/loginDetail",name:"登录人员明细",component:C()("enterpriseData","loginDetail")},{path:"/areaLoginDetail",name:"区域登录人员明细",component:C()("enterpriseData","areaLoginDetail")},{path:"/overStoreList",name:"溢出门店",component:C()("overstore","overStoreList")},{path:"/memberShowSet",name:"客户展示设置",component:C()("apps/customerApp","memberShowSet")},{path:"/addMemberShowRules",name:"新增特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/editMemberShowRules",name:"编辑特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/memberGroupSet",name:"客户分组设置",component:C()("apps/customerApp","memberGroupSet"),meta:{keepAlive:!0,fromPath:["/addGroupTemplate","/editGroupTemplate","/storeRangeSet"]}},{path:"/memberSearchSet",name:"客户搜索设置",component:C()("apps/customerApp","memberSearchSet")},{path:"/memberTagSet",name:"客户标签设置",component:C()("apps/customerApp","memberTagSet")},{path:"/syncHistory",name:"同步历史",component:C()("apps/customerApp","syncHistory")},{path:"/myCustomerList",name:"我的客户列表",component:C()("apps/customerApp","myCustomerList")},{path:"/addGroupTemplate",name:"添加模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/editGroupTemplate",name:"编辑模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/storeRangeSet",name:"门店范围设置",component:C()("apps/customerApp","storeRangeSet")},{path:"/dailyRecord",name:"云日报记录",component:C()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:C()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:C()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:C()("apps/cloudDaily","taskAssign")},{path:"/daily-setting",name:"系统报表",component:C()("apps/cloudDaily","daily-setting")},{path:"/customReportSet",name:"新增自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportCopy",name:"复制自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportEdit",name:"编辑自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/monthList",name:"月指标列表",component:C()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:C()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:C()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:C()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:C()("apps/quota","monthTask"),meta:{keepAlive:!0,fromPath:["/monthTaskDetail"]}},{path:"/monthTaskDetail",name:"月指标任务详情",component:C()("apps/quota","monthTaskDetail")},{path:"/cardList",name:"卡券列表",component:C()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:C()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:C()("apps/card","newCard")},{path:"/editCard",name:"编辑卡券",component:C()("apps/card","newCard")},{path:"/cardTemplate",name:"卡券模板",component:C()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:C()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:C()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:C()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:C()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:C()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:C()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:C()("apps/protectCard","cardGetRecord")},{path:"/goodsShowSet",name:"商品展示设置",component:C()("apps/shoppingCenter","goodsShowSet")},{path:"/evaluate-set",name:"订单评价",component:C()("apps/order-evaluate","evaluate-set")}].concat(f()(A),[{path:"/403",name:"无权访问",component:b},{path:"/404",name:"error404",component:b},{path:"/500",name:"error500",component:b}])},{path:"/gic-error",name:"gic跳转失败页",component:C()("errorPage","gic-error")}],x=new w.a({routes:y,scrollBehavior:function(){return{y:0}}}),T=["/login","/loginMore"],M="",R="";x.beforeEach(function(e,t,a){M=e.path,R=t.path,sessionStorage.getItem("hbReload")?sessionStorage.removeItem("hbReload"):T.includes(R)&&(sessionStorage.setItem("hbReload",1),setTimeout(function(){location.reload()},50)),a()});var L={name:"App",data:function(){return{loading:!0,menuList:[],pageRight:[]}},beforeDestroy:function(){document.removeEventListener("visibilitychange",this.checkUser)},created:function(){var e=this;document.addEventListener("visibilitychange",this.checkUser),this.getUserInfo().then(function(){T.includes(M)||T.includes(R)?e.loading=!1:c.a.all([e.getRight(),e.getMenuList()]).finally(function(){setTimeout(function(){return e.loading=!1},200)})})},methods:{checkUser:function(){var e=this;if(!document.hidden){var t=JSON.parse(sessionStorage.getItem("userInfos"));this.getUserInfo().then(function(){JSON.parse(sessionStorage.getItem("userInfos")).clerkId!=t.clerkId&&e.$router.push("/refresh")})}},getUserInfo:function(){return Object(g.g)("/haoban-manage3-web/get-login-info",{}).then(function(e){var t=e.data||{},a=t.errorCode,o=t.result;1==a?(sessionStorage.setItem("userInfos",p()(o)),o.enterpriseId&&(u.a.axios.defaults.headers.common.enterpriseId=o.enterpriseId)):m.a.errorMsg(e.data)})},getMenuList:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-menu",{}).then(function(t){var a=t.data||[],o=a.errorCode,n=a.result;1==o?Array.isArray(n)&&(e.menuList=n,e.setIndexRoute(n)):m.a.errorMsg(t.data)})},getRight:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-right",{}).then(function(t){var a=t.data||{},o=a.errorCode,n=a.result;1==o?(e.pageRight=e.getPageRight(n.menu),e.checkButtonRight(n.button),e.checkPageRight(e.pageRight,function(e){return function(e,t){e&&e.menuCode&&console.log(t.filter(function(t){return t.parentCode==e.menuCode}))}(e,n.button)})):m.a.errorMsg(t.data)})},getPageRight:function(e){return e.filter(function(e){return"string"==typeof e.menuUrl&&e.menuUrl.length>0}).map(function(e){for(var t=e.menuUrl,a=/(:.*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(a=/(\/\*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return e.regexp=new RegExp("^/"+t+"$"),e})},checkButtonRight:function(e){u.a.prototype.$getButtonLimit=function(t){return 1==(e.find(function(e){return e.menuCode==t})||{}).hasRight}},checkPageRight:function(e,t){var a=e.find(function(e){return e.regexp.test(M)});if(a&&0==a.hasRight){var o=sessionStorage.getItem("hbReloadPath")||"";a.menuUrl==o.substr(1)?(this.$router.push("/index"),sessionStorage.removeItem("hbReloadPath")):this.$router.push({path:"/403"})}t(a),x.beforeEach(function(a,o,n){var r=e.find(function(e){return e.regexp.test(a.path)});if(t(r),r&&0==r.hasRight)return n({path:"/403"});n()})},setIndexRoute:function(e){var t="",a=[{path:"*",redirect:"/404"}];e.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&(t=e.menuUrl),e.hasRight&&e.isShow}),t}),t}),t&&a.push({path:"/index",redirect:"/"+t}),this.$router.addRoutes(a)}}},P={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticStyle:{"min-height":"100vh"},attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[this.loading?this._e():t("router-view",{attrs:{"menu-list":this.menuList,"page-right":this.pageRight}})],1)],1)},staticRenderFns:[]};var E,I=a("VU/8")(L,P,!1,function(e){a("MtkU")},null,null).exports,F=a("bOdI"),G=a.n(F),V=a("SJI6"),j=a.n(V),q=a("0xDb");u.a.use(j.a);var N=new j.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[],wxEnterpriseType:0,salesDate:Object(q.a)()},mutations:(E={},G()(E,"login",function(e,t){sessionStorage.token=t,e.token=t}),G()(E,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),G()(E,"title",function(e,t){e.title=t}),G()(E,"show",function(e,t){e.show=t}),G()(E,"saveAdd",function(e,t){e.addDepartment.push(t)}),G()(E,"saveEdit",function(e,t){e.editDepartment.push(t)}),G()(E,"saveDel",function(e,t){e.delDepartment.push(t)}),G()(E,"clearAdd",function(e){e.addDepartment=[]}),G()(E,"clearEdit",function(e){e.editDepartment=[]}),G()(E,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),G()(E,"changeWxEntertype",function(e,t){e.wxEnterpriseType=t}),G()(E,"changeSalesDate",function(e,t){e.salesDate=t}),E),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")},changeWxEntertypeData:function(e,t){e.commit("changeWxEntertype",t)},changeSales:function(e,t){e.commit("changeSalesDate",t)}}}),U={code:"https://www.yuque.com/exnmlu/oo64hg/thm172#w4sOg",link:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#eV2NM"},H={clipboard:{bind:function(e,t,a,o){e.val=t.value,e.handler=function(){var t=e.val,a=document.createElement("input");e.appendChild(a),a.value=t,a.select(),document.execCommand("Copy"),u.a.prototype.$message({type:"success",message:"复制成功"}),a.parentNode.removeChild(a)},e.addEventListener("click",e.handler)},update:function(e,t,a,o){e.val=t.value},unbind:function(e){e.removeEventListener("click",e.handler)}},jumpLink:{bind:function(e,t){var a=t.arg;e.handler=function(){window.open(U[a])},e.addEventListener("click",e.handler)},unbind:function(e){e.removeEventListener("click",e.handler)}}},O=(a("/wAz"),a("pc4g"),a("4qCZ"),a("xtVA"),a("Q0Ca")),Y={props:{size:{type:[Number,String],default:20},iconname:{type:String,default:""}},computed:{ClassStyle:function(){return"width:"+parseInt(this.size)+";height:"+parseInt(this.size)+";"},IconName:function(){return"#"+this.iconname}}},W={render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"icon svg-icon svg-iconfont-hb3",style:this.ClassStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":this.IconName}})])},staticRenderFns:[]};var $=a("VU/8")(Y,W,!1,function(e){a("mF/g")},"data-v-aa28dd00",null).exports,z=a("TUaa"),J=a.n(z),B=a("tyqE"),X=a.n(B),Q=a("pRVe"),K=a.n(Q),Z=a("XsK6"),_=a.n(Z),ee=a("QRL9"),te=a.n(ee),ae=a("eMjc"),oe=a.n(ae),ne=a("l9mu"),re=a.n(ne),se={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;oe()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,o=t.height,n=a/592.28*841.89,r=o,s=0,i=592.28/a*o,p=t.toDataURL("image/jpeg",1),d=new re.a("","pt","a4");if(r<n)d.addImage(p,"JPEG",0,0,595.28,i);else for(;r>0;)d.addImage(p,"JPEG",0,s,595.28,i),s-=841.89,(r-=n)>0&&d.addPage();d.save(e+".pdf")})}}},ie=a("/IwO"),pe=a.n(ie),de=a("FHfR"),ce=a.n(de),le={name:"HbFormBottom",inject:["layoutVm"],props:{horizontal:{type:String,default:"center"}},data:function(){return{width:"0px"}},mounted:function(){this.width=this.$parent.$el.offsetWidth+"px",this.layoutVm.pagePaddingBottom=this.$el.offsetHeight+"px"},beforeDestroy:function(){this.layoutVm.pagePaddingBottom=null}},ue={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"hb-form-bottom",style:{width:this.width,"justify-content":"left"==this.horizontal?"flex-start":"right"==this.horizontal?"flex-end":"center"}},[this._t("default")],2)},staticRenderFns:[]};var me=a("VU/8")(le,ue,!1,function(e){a("dKGT")},"data-v-87d7ea0c",null).exports;s.a.polyfill(),u.a.component("svg-icon",$),n()(H).map(function(e){return u.a.directive(e,H[e])}),u.a.use(pe.a),pe.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,u.a.use(se),u.a.use(_.a),u.a.use(te.a),u.a.use(K.a),u.a.use(X.a),u.a.use(J.a),u.a.component("hb-form-bottom",me),u.a.config.productionTip=!1,n()(O.a).forEach(function(e){u.a.filter(e,O.a[e])}),x.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var o=window.location.origin;o.indexOf("localhost");var n=t.meta||{},r=n.fromPath,s=void 0===r?[]:r,i=n.refresh;Array.isArray(s)&&(t.meta.keepAlive=s.some(function(t){for(var a=t,o=/(:.*)(\/?)/;o.test(a);)a=a.replace(o,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(o=/(\/\*)(\/?)/;o.test(a);)a=a.replace(o,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return new RegExp(a).test(e.path)}),t.meta.keepAlive?e.meta.refresh=!1:e.meta.refresh=i),a()}),u.a.prototype.$buttonCode=ce.a,new u.a({el:"#app",router:x,store:N,components:{App:I},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},Opzk:function(e,t,a){var o={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,80],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,97],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,87],"./apps/badEvaluate/index.vue":["AG22",0,38],"./apps/card/cardList.vue":["X5LE",0,100],"./apps/card/cardRecord.vue":["xDJN",0,28],"./apps/card/index.vue":["nV1L",0,69],"./apps/card/newCard.vue":["7/Zw",0,23],"./apps/cloudDaily/customReport.vue":["ak3k",0,66],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,7],"./apps/cloudDaily/daily-setting.vue":["RnLd",0,8],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,29],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,39],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,68],"./apps/cloudDaily/index.vue":["4QyY",0,88],"./apps/cloudDaily/systemReport.vue":["J/6z",0,9],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,52],"./apps/cloudDaily/template/block.vue":["O3gZ",94],"./apps/cloudDaily/template/date-range.vue":["2WGr",90],"./apps/cloudDaily/template/image.vue":["8dpP",55],"./apps/cloudDaily/template/input.vue":["zHtI",116],"./apps/cloudDaily/template/select.vue":["rYZf",103],"./apps/customerApp/add-member-show-rules.vue":["SUcx",57],"./apps/customerApp/addGroupTemplate.vue":["vIlm",0,40],"./apps/customerApp/index.vue":["QHTa",0,60],"./apps/customerApp/memberDetailSet.vue":["F1Rz",0,53],"./apps/customerApp/memberGroupList.vue":["scn4",0,70],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,18],"./apps/customerApp/memberGroupSetList.vue":["8fbE",0,113],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,120],"./apps/customerApp/memberShowSet.vue":["odfG",98],"./apps/customerApp/memberTagSet.vue":["HmLC",50],"./apps/customerApp/myCustomerList.vue":["9CCr",0,12],"./apps/customerApp/storeRangeSet.vue":["z3jf",0,85],"./apps/customerApp/syncHistory.vue":["T435",51],"./apps/index.vue":["K1Vb",0,99],"./apps/order-evaluate/bad-evaluate-set.vue":["z2RJ",0,79],"./apps/order-evaluate/evaluate-set.vue":["RvMj",93],"./apps/order-evaluate/index.vue":["NUSj",0,59],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,115],"./apps/protectCard/cardPut.vue":["cD4x",0,78],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,106],"./apps/protectCard/cardStrategy.vue":["rUvh",0,44],"./apps/protectCard/cardTemplate.vue":["c7iB",0,102],"./apps/protectCard/index.vue":["aWmL",0,104],"./apps/protectCard/newCardPut.vue":["9db3",0,15],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,16],"./apps/protectCard/newCardTemp.vue":["tF0P",0,83],"./apps/quota/companyDaySet.vue":["NiGE",0,91],"./apps/quota/index.vue":["qSX4",0,95],"./apps/quota/monthList.vue":["fAFA",0,96],"./apps/quota/monthTask.vue":["NpHY",0,101],"./apps/quota/monthTaskDetail.vue":["YKf6",0,82],"./apps/quota/salerMonthDetail.vue":["+qr5",0,119],"./apps/quota/storeMonthTask.vue":["qWC+",0,71],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,92],"./apps/shoppingCenter/index.vue":["FIFf",0,110],"./business/authMerchant-dailog.vue":["/cEq",0,33],"./business/authMerchant-form.vue":["2xxS",0,10],"./business/authMerchant.vue":["mjMK",121],"./business/contacts.vue":["/W60",0,4],"./business/index.vue":["jPcV",0,74],"./business/not-manager.vue":["9F6+",0],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,77],"./business/storeList.vue":["QZxC",0,112],"./business/syncLog.vue":["20P3",0,46],"./enterprise/adminList.vue":["zYBJ",0,117],"./enterprise/app-visible-setting.vue":["w5vQ",75],"./enterprise/enterpriseSet.vue":["x5Fx",0,22],"./enterprise/guide-auth-setting.vue":["i0rV",114],"./enterprise/guide-setting.vue":["tPY2",24],"./enterprise/index.vue":["m9dW",0,108],"./enterprise/material.vue":["q+Sm",0,2],"./enterprise/relationDialog.vue":["+hGG",0],"./enterprise/salutatory.vue":["xWf4",0,122],"./enterprise/salutatoryIndex.vue":["nExe",0,32],"./enterprise/salutatorySet.vue":["vqCN",0,19],"./enterpriseData/activeDetail.vue":["h9Ca",0,31],"./enterpriseData/areaLoginDetail.vue":["TLd+",0,26],"./enterpriseData/enterpriseUseData.vue":["i4c9",0,5],"./enterpriseData/index.vue":["CTf4",0,89],"./enterpriseData/loginDetail.vue":["kX6v",0,11],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",41],"./errorPage/500.vue":["FskK",34],"./errorPage/gic-error.vue":["Q3j/",72],"./errorPage/index.vue":["ODjX",1],"./errorPage/refresh.vue":["0/JE",124],"./index/index.vue":["JXTs",0,37],"./login/index.vue":["T+/8",0,36],"./login/login-more.vue":["AVFt",0,48],"./overstore/index.vue":["Y55K",0,81],"./overstore/overStoreList.vue":["vuAV",0,56],"./reviewCenter/index.vue":["+lem",111],"./reviewCenter/reviewSet.vue":["6j9f",0,105],"./reviewCenter/reviewed.vue":["CLYF",0,30],"./reviewCenter/unreview.vue":["xCEU",0,17],"./salesleads/actCodeManage/attractFlowLink/detail.vue":["ATNk",0,43],"./salesleads/actCodeManage/attractFlowLink/index.vue":["7m4r",0,63],"./salesleads/actCodeManage/attractFlowLink/info.vue":["phd8",0,20],"./salesleads/actCodeManage/attractFlowLink/landingPage/cardView.vue":["4KYo",49],"./salesleads/actCodeManage/attractFlowLink/landingPage/detail.vue":["t/sc",0,123],"./salesleads/actCodeManage/attractFlowLink/landingPage/list.vue":["fjEt",0,13],"./salesleads/actCodeManage/attractFlowLink/landingPage/relationDialog.vue":["GdW8",0,107],"./salesleads/actCodeManage/attractFlowLink/newAddChart.vue":["tqu3",0,73],"./salesleads/actCodeManage/components/select-clerk/index.vue":["znzC",0],"./salesleads/actCodeManage/components/select-clerk/select-clerk.vue":["1Am8",0],"./salesleads/actCodeManage/components/select-clerk/selected-clerk-item.vue":["jMsE",0],"./salesleads/actCodeManage/operateLog.vue":["EzCA",0,67],"./salesleads/actCodeManage/staffActCode/actCodeDetail.vue":["DWsn",0,27],"./salesleads/actCodeManage/staffActCode/actCodeDetailStatistics.vue":["YQXN",0,64],"./salesleads/actCodeManage/staffActCode/actCodeRecord.vue":["jx8Q",0,45],"./salesleads/actCodeManage/staffActCode/index.vue":["tVK0",0,14],"./salesleads/actCodeManage/staffActCode/newAddChart.vue":["eaYI",0],"./salesleads/actCodeManage/staffActCode/views/act-code-table.vue":["XZyq",0,65],"./salesleads/actCodeManage/staffActCode/views/batchAddCode.vue":["/pg7",0,76],"./salesleads/actCodeManage/staffActCode/views/group-list.vue":["t6Nl",0,54],"./salesleads/actCodeManage/staffActCode/views/setActCode.vue":["txZy",0,86],"./salesleads/components/act-code-set.vue":["1fzb",0],"./salesleads/components/actCodeDetailInfo.vue":["DvcT",0],"./salesleads/components/dataDetail.vue":["/p6h",0],"./salesleads/components/welcomesItem.vue":["42hH",0],"./salesleads/groupSend/grStoreDetail.vue":["XF7X",0,21],"./salesleads/groupSend/grStoreList.vue":["w4UW",0,118],"./salesleads/groupSend/grTaskList.vue":["Uvr8",0,109],"./salesleads/index.vue":["owWS",0,42],"./salesleads/trafficTask/taskDetail.vue":["wRTX",0,25],"./salesleads/trafficTask/taskRecord.vue":["Wj0m",0,58],"./salesleads/trafficTask/taskView.vue":["TsS9",0,47],"./salesleads/trafficTask/taskViewDetail.vue":["f1qT",0,61],"./salesleads/trafficTask/trafficTaskSet.vue":["3Qek",0,62],"./setting/index.vue":["VlR1",0,84]};function n(e){var t=o[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}n.keys=function(){return Object.keys(o)},n.id="Opzk",e.exports=n},P9l9:function(e,t,a){"use strict";a.d(t,"b",function(){return k}),a.d(t,"a",function(){return D}),a.d(t,"g",function(){return A}),a.d(t,"f",function(){return b}),a.d(t,"e",function(){return y}),a.d(t,"d",function(){return x}),a.d(t,"c",function(){return T});var o=a("//Fk"),n=a.n(o),r=a("lRwf"),s=a.n(r),i=a("Rf8U"),p=a.n(i),d=a("OMN4"),c=a.n(d),l=a("mw3O"),u=a.n(l),m=a("l6IN");a.n(m);s.a.use(p.a,c.a),s.a.axios.defaults.withCredentials=!0,s.a.axios.defaults.headers.common.platform="haoban",s.a.axios.defaults.timeout=5e5;var g=window.location.origin,h=JSON.parse(sessionStorage.getItem("userInfos")||"{}"),f="string"==typeof h.gicHost?h.gicHost.replace(/\/$/,""):"";console.log(f),g.indexOf("localhost")>=0&&(f=g);var v=[],w=[],S=s.a.axios.CancelToken,C=function(e){for(var t in w)w[t].u===e.url+"&"+e.method&&(w[t].f(),w.splice(t,1))};s.a.axios.interceptors.request.use(function(e){if(C(e),e.cancelToken=new S(function(t){w.push({u:e.url+"&"+e.method,f:t})}),e.cancelToken=new s.a.axios.CancelToken(function(e){v.push({cancel:e})}),sessionStorage.getItem("userInfoBrandId")){var t=sessionStorage.getItem("userInfoBrandId");t&&(e.headers.enterpriseId=t)}return e},function(e){return m.Message.error({message:"请求超时!"}),n.a.resolve(e)}),s.a.axios.interceptors.response.use(function(e){if(C(e.config),e.status&&200==e.status&&(1!=e.data.errorCode||1!=e.data.code)){if(4==e.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/gic-web/#/login?ishb=1"}return 10!=e.data.errorCode&&7!=e.data.errorCode||(window.location.href=f+"/haoban-3/#/index"),e}return e},function(e){return 502==e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"服务异常⊙﹏⊙∥"})),403!=e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"登录失效!"})),n.a.resolve(e)});var k=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"get",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},D=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"delete",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},A=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),headers:{"Content-type":"application/x-www-form-urlencoded"}})},b=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},y=function(e,t){return s.a.axios({method:"post",url:""+g+e,data:t,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},x=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{}})},T=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})}},Q0Ca:function(e,t,a){"use strict";t.a={dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),o={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+n+"-"+o+" "+r+":"+s+":"+i}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=a<10?"0"+a:a;return t.getFullYear()+"-"+o}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+n+"."+o+" "+r+":"+s+":"+i}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},timeStampToYmd2:function(e){if(e){var t=new Date(e-864e5),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var o=a%864e5,n=o%36e5;return Math.floor(a/864e5)+"天"+Math.floor(o/36e5)+"小时"+Math.floor(n/6e4)+"分"}},formatTime:function(e){if(!e)return"00:00:00";var t=e/1e3,a=Math.floor(t/60/60/24);return(24*a+Math.floor(t/60/60)%24<10?"0"+(24*a+Math.floor(t/60/60)%24):24*a+Math.floor(t/60/60)%24)+":"+(Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60)+":"+(Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60)},formatInvalidStatus:function(e){var t="--";return 1==e?t="未失效":2==e&&(t="已失效"),t}}},SJI6:function(e,t){e.exports=Vuex},dKGT:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},"mF/g":function(e,t){},pRNm:function(e,t){e.exports=VueRouter},pc4g:function(e,t){},xtVA:function(e,t){}},[0]);
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={127:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"745a34b8b06c806a4e9e",1:"fd15a7f381f3fc4a55fe",2:"33ca69c2404d9b90316e",3:"7fd67035818165a93586",4:"ea9ede8a7544c3adee66",5:"eabe03423c3050c7b9ea",6:"88f20a11e0be0f0ca548",7:"e498a4aae4ea45688d49",8:"2dcfb05995428c016b0e",9:"d1e8e5604cbe5d7e16b9",10:"0c309eceb04d492e8695",11:"c6b47ca46378b23a7dda",12:"de0d92825f5659f53f9a",13:"3ba16dae07eca0a21735",14:"f6a9ebc9f4540effdcb3",15:"9d0d587ff1c54fd27ed2",16:"03efbc3fd86def29dffe",17:"d9ddcd42678248204f81",18:"a37e76fd87dfd4b68a75",19:"e004122dbb0e72557b10",20:"3f8de9161b6fa9bd7a11",21:"8432777a47934440c964",22:"7e7dbae4cb830b10fcad",23:"8d952fd3815b2a556520",24:"4931fac6869db0d74ecc",25:"f0488296b7e86a8c6ef0",26:"91abd00c5c82c9b5326f",27:"72676bc9d0f6f871b8a4",28:"29c7f2707ca85abf0017",29:"609b38a8c86e6e684f01",30:"4056b61db48119d2a1c2",31:"525973777ed6973ea92c",32:"83143918abc7e277f288",33:"7905d75f9175f609d621",34:"97a4c2aa8b717546cfba",35:"f2bec3e39e1538cd6f31",36:"b26f1fa4037daf7abd44",37:"850afd86dcf45b00c297",38:"63149e5f6af8ebdbd9d8",39:"5cea80e00b64152c89ab",40:"b0e7a40d7a0c6e38740a",41:"ba2dc6c4bf52333ed7e3",42:"4f6eb774951a18ef66aa",43:"fc3891259be853066bb8",44:"5b7e93cb7db48761eebc",45:"cf47cdd6da007b37a000",46:"9970cbb72ad518cecdbc",47:"a5eeb72656805944f910",48:"1d703fcda8c1841d32b9",49:"fcebf9bf5b7e95b216c8",50:"485018b8549f36059c43",51:"75c13e0a19dc0f54c1f5",52:"2186bd4be4408d59d718",53:"515104094303f44a2d44",54:"c4b7a09cc216c32bc29f",55:"b6e727b20fb3f6b2db14",56:"526593ac3d2a5913eba8",57:"07a244d52c166f8884a0",58:"46417183229f03d64a87",59:"26a036286f9426a81cf8",60:"f9c9af8af1e35327ab25",61:"f9818758ba86dd5a1485",62:"5530c678ce4cd6fab6b6",63:"9bcf8d7df4219b5a3e7a",64:"76d8f4ce4d8f5f761c17",65:"4879c25cdfda3d45f9dc",66:"bf333fac598e5fb02c53",67:"d46243fb66f5b4f6fcd9",68:"1f315dace19b5b31469f",69:"4bc7a625869c5145c33c",70:"18b36c1e74199f323ae6",71:"3e6d6b4c00e06bb9f31e",72:"c435b5902d336d5f8bd6",73:"13f017d893e609859ff5",74:"3dc27f108f34c42c0b2d",75:"f84b32bd0cae88c97337",76:"4b76d6ca0cb2a55aa117",77:"b17fc6f1125a4f973965",78:"4b827334e7ffc17e2414",79:"f1ca95067111a0285c38",80:"dfb034f9275e1874ed2a",81:"35158135abe854a0566c",82:"7b9713fd7d06a267a588",83:"16b5ea59c5455c7d4222",84:"bdd495b150c120b2659d",85:"e5439abe451416c8a344",86:"0e9970308b73c069900b",87:"3406472bbdb16e57c8d8",88:"6370bc1d598bbd93ef7e",89:"f558f43eff906e67634b",90:"c580546f4c76d22b03b1",91:"cb219ccb86704f454c6c",92:"b8b28f280177a918217c",93:"c2f6f864a42a2ba094b6",94:"3d988d189d5d181dad6d",95:"1cd2779682b88f36cc44",96:"168bdc512c663b26a069",97:"56e642d412b2fc947deb",98:"236e110d8120c6acfd7d",99:"51d3d25be9a7fc9ed94d",100:"d80ce773babc92db3bc2",101:"1f0864e7d0ad29d0048a",102:"6266585ead51278628b3",103:"bf3271c7c2a2e2595645",104:"fbf8f7757c815bd29f87",105:"a6ec2f20981d7b73244b",106:"bc8af3d6ea53d2eb4793",107:"2cdefa0c5d3920657539",108:"a57f00210dd4490dd770",109:"c9d92551dffacb0047dc",110:"575e081904c33fdaceb3",111:"9b98441d0d1d959de366",112:"080a4eafa46f0d98bc85",113:"327231106e788fa15be9",114:"3c3dbc6fe09c11a4ab99",115:"2dea2dae59d86a380936",116:"0acdac6af5dc9e43c19f",117:"7a08db5a06bf55c2055c",118:"6755682ecf1da7eefa0e",119:"44bfc28e04e836746793",120:"b71e87c7102749f9755c",121:"2edbff142c990b47fc8b",122:"a806cc58daea088865eb",123:"1cd586aae6ed61aaf302",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},d={127:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var b=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:"6041b0d550f559afb40d",1:"fd15a7f381f3fc4a55fe",2:"33ca69c2404d9b90316e",3:"7fd67035818165a93586",4:"ea9ede8a7544c3adee66",5:"eabe03423c3050c7b9ea",6:"88f20a11e0be0f0ca548",7:"7d4e956fc6f52c69d82f",8:"c42c5d0538ae81e498a4",9:"d1e8e5604cbe5d7e16b9",10:"0c309eceb04d492e8695",11:"c6b47ca46378b23a7dda",12:"de0d92825f5659f53f9a",13:"620f9f7634072af4aefd",14:"26148f83d84fa3e2da4c",15:"9d0d587ff1c54fd27ed2",16:"03efbc3fd86def29dffe",17:"d9ddcd42678248204f81",18:"d2ededd1728f1c703179",19:"e004122dbb0e72557b10",20:"fd15bb6305e3b83af376",21:"8432777a47934440c964",22:"7e7dbae4cb830b10fcad",23:"8d952fd3815b2a556520",24:"8c19926527e91afc8a96",25:"f0488296b7e86a8c6ef0",26:"91abd00c5c82c9b5326f",27:"bb796e11e93028d7bc79",28:"29c7f2707ca85abf0017",29:"609b38a8c86e6e684f01",30:"4056b61db48119d2a1c2",31:"525973777ed6973ea92c",32:"83143918abc7e277f288",33:"7905d75f9175f609d621",34:"97a4c2aa8b717546cfba",35:"f2bec3e39e1538cd6f31",36:"b26f1fa4037daf7abd44",37:"850afd86dcf45b00c297",38:"63149e5f6af8ebdbd9d8",39:"5cea80e00b64152c89ab",40:"b0e7a40d7a0c6e38740a",41:"ba2dc6c4bf52333ed7e3",42:"4f6eb774951a18ef66aa",43:"fc3891259be853066bb8",44:"5b7e93cb7db48761eebc",45:"cf47cdd6da007b37a000",46:"9970cbb72ad518cecdbc",47:"a5eeb72656805944f910",48:"1d703fcda8c1841d32b9",49:"fcebf9bf5b7e95b216c8",50:"485018b8549f36059c43",51:"75c13e0a19dc0f54c1f5",52:"2186bd4be4408d59d718",53:"48b2112f85830555f34e",54:"000e875fc44a37d1bffa",55:"1266dbe1609500d9967b",56:"cc7296abecc6659a4f75",57:"f65318474f9d86cf98a3",58:"7eb9b5cd2237002868a5",59:"50b2d76fa25ec0d3093c",60:"37d504b0e79dcadcd2e6",61:"974a1ebda8e4385bd0c8",62:"4d347da89bc6d3304aa4",63:"5d0fae117f5bc0d9b4f8",64:"1e0a029884660fc343bc",65:"856c10e74c91199848f4",66:"03080ad423813ed1bb42",67:"615c9d72194fbc2ea7bf",68:"bd7b4a7141029596038d",69:"05d13ba3066ee18da0f2",70:"cf64b2de59dc209ffbf9",71:"61e3ab8de2b09b957e42",72:"a5713c086dd6e39ef86a",73:"49dd6ed4cb1afd279be1",74:"ecbe11a588138d1bd125",75:"e4cf3c0a19b99c2def82",76:"fc68cdfebf29306ddf20",77:"b17fc6f1125a4f973965",78:"4b827334e7ffc17e2414",79:"f1ca95067111a0285c38",80:"dfb034f9275e1874ed2a",81:"35158135abe854a0566c",82:"7b9713fd7d06a267a588",83:"16b5ea59c5455c7d4222",84:"bdd495b150c120b2659d",85:"e5439abe451416c8a344",86:"5446e2acdbbb4672a578",87:"c2113c68cac9212a020c",88:"aa866576b636f2a9dc8f",89:"297b980a12a499b04e76",90:"994dd7cce539ae77968d",91:"58633bbdb65bf7a99314",92:"34523dde597eff7fc319",93:"75301903d8fa9bdca20c",94:"c42e61e21bb25d9e0150",95:"87aa1d9a8211a61dd521",96:"5ba4fcd947ac0fcd12e3",97:"e3151e3549e49fa305eb",98:"060cc66c4c66378dc6e9",99:"11030c85bf7d05a6714f",100:"5269784a0d2d068d7380",101:"bfa3746f2798e933b920",102:"83b02579ab9ecbab7e35",103:"fd498c2ef46e8cf9c786",104:"7f28165e2d0dc3132611",105:"9a55b9e62ee0791e0a91",106:"360b805cc2bdec5f62f8",107:"666d576bb039b61dfed5",108:"952fcfe0345090a6311b",109:"c9d92551dffacb0047dc",110:"575e081904c33fdaceb3",111:"9b98441d0d1d959de366",112:"080a4eafa46f0d98bc85",113:"327231106e788fa15be9",114:"3c3dbc6fe09c11a4ab99",115:"2dea2dae59d86a380936",116:"0acdac6af5dc9e43c19f",117:"7a08db5a06bf55c2055c",118:"6755682ecf1da7eefa0e",119:"44bfc28e04e836746793",120:"b71e87c7102749f9755c",121:"2edbff142c990b47fc8b",122:"a806cc58daea088865eb",123:"1cd586aae6ed61aaf302",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.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
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