Commit 3874e35d by 无尘

fix: 修改我的顾客

parent d6423ad9
<!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.28.css><link href=./static/css/app.9b35300495b0aca570736f62dd5c18d0.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.2f45aaaabe8de9a0b326.js></script><script type=text/javascript src=./static/js/vendor.62ac2d475dfcb7888aad.js></script><script type=text/javascript src=./static/js/app.41cf9f0f06f76da99a8c.js></script></body></html> <!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.28.css><link href=./static/css/app.e04bfbb7e10f01d4b3967007f6401e39.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.006ca549f618dbc0537e.js></script><script type=text/javascript src=./static/js/vendor.62ac2d475dfcb7888aad.js></script><script type=text/javascript src=./static/js/app.afa835a6d46a5e7c196c.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.
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([7],{"+kZ0":function(e,t,a){"use strict";var n=a("3Xzz"),o=a("Qs+A"),r=a("P9l9"),s=a("Ch4/"),i={name:"select-card-template",props:{cardTempShow:{type:Boolean,default:function(){return!1}},selectTemp:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[]}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleClose:function(){var e=this;e.$emit("closeTemp"),e.$refs.multipleTable.clearSelection();var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})},submitForm:function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20?(e.$message.error({duration:1e3,message:"最多只能选择20个模板"}),!1):(e.$emit("returnData",e.multipleSelection),void e.$nextTick(function(){var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})})):(e.$message.error({duration:1e3,message:"请选择模板"}),!1)},changeRoute:function(e){this.$router.push(e)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.a)("/haoban-app-customer-web/inner/list-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this,t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.$refs.multipleTable.clearSelection(),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.multipleSelection.push(a)}),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})}},watch:{cardTempShow:function(e){this.dialogVisible=e},selectTemp:function(e,t){}},mounted:function(){this.dialogVisible=this.cardTempShow,this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"选择模板",visible:e.dialogVisible,width:"700px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},open:e.initData}},[a("div",{},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{height:"450",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName)+"\n ")]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("F0WV")},"data-v-71d02420",null);t.a=c.exports},"8Rwt":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("mvHQ"),o=a.n(n),r=a("l46T"),s=a("+kZ0"),i=a("ja1h"),l=a("P9l9"),c=a("3E4D"),p=a("Ch4/"),d=a("PI0u"),m={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{limitInput:r.a,selectCardTemplate:s.a,selectWxDepart:i.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},cardErr:!1,rules:{policyName:[{required:!0,message:"请输入卡券策略名称",trigger:"blur"}],cardTemplateJson:[{type:"array",required:!0,message:"请至少选择一个卡券模板",trigger:"change"}]},cardSelectShow:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()<Date.now()-864e5}return t.getTime()<Date.now()-864e5}},dateOptions:[],monthOptions:[],inputVisible:!1,inputValue:"",cardTempShow:!1,departShow:!1,loadingBtn:!1}},methods:{showDepartDilog:function(){this.departShow=!0},delDepart:function(e,t){t.splice(e,1)},toInput:function(e){/^[0-9]*$/.test(e.target.value)||(this.formData.sendTimes=1)},changeNoPosition:function(e){if(e&&this.formData.positionNames.length>=50)return this.$message.error({duration:1e3,message:"最多可添加50个职务"}),this.formData.noPosition=!1,!1;e?this.formData.positionNames.push("-1"):this.formData.positionNames.splice(this.formData.positionNames.indexOf("-1"),1)},changeSendType:function(){1==this.formData.sendRange?this.departShow=!0:(this.formData.departmentJson=[],this.departShow=!1)},clickSendType:function(){this.departShow=!0},refreshData:function(e){if(this.departShow=!1,"close"==e)return!1;this.formData.departmentJson=e},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},showCardTemp:function(){this.cardTempShow=!0},returnData:function(e){e.forEach(function(e){e.effectiveType="0",e.dateRange=[],e.sendNumberDay="0",e.effectiveDay="366",e.sendLimit="50000"});var t=e.map(function(e){return e.templateId}),a=[];this.formData.cardTemplateJson.forEach(function(e){t.includes(e.templateId)&&a.push(e)}),e.forEach(function(e){a.forEach(function(t){e.templateId==t.templateId&&(e.effectiveType=t.effectiveType,e.dateRange=t.dateRange,e.sendNumberDay=t.sendNumberDay,e.effectiveDay=t.effectiveDay)})}),this.formData.cardTemplateJson=JSON.parse(o()(e)),this.cardTempShow=!1},closeTemp:function(){this.cardTempShow=!1},handleClose:function(e){this.formData.positionNames.splice(this.formData.positionNames.indexOf(e),1)},showInput:function(){var e=this;if(e.formData.positionNames.length>=50)return e.$message.error({duration:1e3,message:"最多可添加50个职务"}),!1;e.inputVisible=!0,e.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.formData.positionNames.push(e),this.inputVisible=!1,this.inputValue=""},toDelTemp:function(e,t,a){a.splice(e,1)},handleDay:function(){for(var e=[],t=0;t<91;t++)0==t?e.push({label:"当天",value:String(t)}):e.push({label:"第"+t+"天",value:String(t)});this.dateOptions=e,this.monthOptions=[];for(var a=1;a<13;a++)this.monthOptions.push({label:a+"月",value:String(a)})},submitForm:Object(d.a)(function(e,t){var a=this;if(a.formData.validDateRange||(a.formData.validDateRange=[]),!(1!=a.formData.policyExpireDateType||a.formData.validDateRange&&a.formData.validDateRange.length))return a.$message.error({duration:1e3,message:"请先选择固定期限日期"}),!1;if(!a.formData.cardTemplateJson)return!1;var n=!0;return a.formData.cardTemplateJson.forEach(function(e){0!=e.effectiveType||e.dateRange&&e.dateRange.length&&e.dateRange[0]||(e.dateRange=[],n=!1),e.startTimeString=e.dateRange?e.dateRange[0]:"",e.endTimeString=e.dateRange?e.dateRange[1]:""}),n?a.formData.cardTemplateJson.length?(a.cardErr=!1,1!=a.formData.sendRange||a.formData.departmentJson.length?1!=a.formData.sendMonthType||a.formData.sendMonthTimes.length?a.formData.sendTimes?(a.loadingBtn=!0,void a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})):(a.$message.error({duration:1e3,message:"请先选择策略执行次数"}),!1):(a.$message.error({duration:1e3,message:"请先选择多月循环"}),!1):(a.$message.error({duration:1e3,message:"请先选择发送的部门"}),!1)):(a.cardErr=!0,!1):(a.$message.error({duration:1e3,message:"请先选择模板有效期"}),!1)},1e3),postSaveCard:function(e){var t=this,a={policyId:t.formData.policyId,policyName:t.formData.policyName,cardTemplateJson:o()(t.formData.cardTemplateJson),sendRange:t.formData.sendRange,positionFlag:t.formData.positionFlag?1:0,positionNames:t.formData.positionNames.length?t.formData.positionNames.join(","):"",departmentJson:o()(t.formData.departmentJson),sendMonthType:t.formData.sendMonthType,sendTimes:t.formData.sendTimes,sendMonthTimes:t.formData.sendMonthTimes.length?t.formData.sendMonthTimes.join(","):"",policyExpireDateType:t.formData.policyExpireDateType,startTimeString:t.formData.validDateRange[0],endTimeString:t.formData.validDateRange[1],onlineFlag:t.formData.onlineFlag,wxEnterpriseId:t.wxEnterpriseId};Object(l.d)((t.$route.query.policyId,"/haoban-app-customer-web/inner/save-policy"),a).then(function(a){var n=a.data;t.loadingBtn=!1,1==n.errorCode&&(c.a.showmsg(t.$route.query.policyId?"编辑卡券策略成功":"新建卡券策略成功","success"),e?(t.formData={policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},t.choiceDateCopy=[]):t.$router.push("/cardStrategy")),p.a.errorMsg(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getCardData:function(){var e=this,t={policyId:e.$route.query.policyId,gicEnterpriseId:e.brandId};Object(l.a)("/haoban-app-customer-web/inner/find-policy",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardTemplateRelateds.forEach(function(e){e.sendNumberDay=String(e.sendNumberDay),e.effectiveType=String(e.effectiveType),e.dateRange=[e.startTimeString?e.startTimeString:"",e.endTimeString?e.endTimeString:""]}),e.formData={policyId:a.result.policyId,policyName:a.result.policyName,cardTemplateJson:a.result.cardTemplateRelateds||[],sendRange:String(a.result.sendRange),positionFlag:1==a.result.positionFlag,noPosition:!(!a.result.positionNames.includes("-1")&&!a.result.positionNames.includes(-1)),positionNames:a.result.positionNames?a.result.positionNames.split(","):[],departmentJson:a.result.departmentRelateds||[],sendMonthType:String(a.result.sendMonthType),sendTimes:a.result.sendTimes,sendMonthTimes:a.result.sendMonthTimes.length?a.result.sendMonthTimes.split(","):[],policyExpireDateType:String(a.result.policyExpireDateType),startTimeString:a.result.startTimeString,endTimeString:a.result.endTimeString,onlineFlag:a.result.onlineFlag,validDateRange:[a.result.startTimeString?a.result.startTimeString:"",a.result.endTimeString?a.result.endTimeString:""]},!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.policyId&&(this.activeBrand=e,this.getCardData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","2"),e.$nextTick(function(){e.handleDay()}),e.$route.query.policyId&&e.getCardData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"卡券策略名称",prop:"policyName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.policyName,getByType:"word",holder:"请输入卡券策略名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"policyName",t)}}})],1),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("卡券选择策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large is-required"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"支持多选,最多可选20个模板",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择卡券模板")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCardTemp}},[a("span",{staticClass:"font-14 color-606266"},[e._v("选择卡券模板")])]),e._v(" "),e.formData.cardTemplateJson.length?a("div",{staticClass:"m-t-20"},[a("el-table",{staticClass:"select-table",style:{width:"100%"},attrs:{"max-height":"450",data:e.formData.cardTemplateJson,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"卡券模板名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期",width:"505"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"w-100",attrs:{placeholder:""},model:{value:t.row.effectiveType,callback:function(a){e.$set(t.row,"effectiveType",a)},expression:"scope.row.effectiveType"}},[a("el-option",{attrs:{label:"固定日期",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"发送后",value:"1"}})],1),0==t.row.effectiveType?a("el-date-picker",{staticClass:"m-l-10 w-300 vertical-middle",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:t.row.dateRange,callback:function(a){e.$set(t.row,"dateRange",a)},expression:"scope.row.dateRange"}}):e._e(),e._v(" "),1==t.row.effectiveType?a("el-select",{staticClass:"w-100 m-l-10",attrs:{placeholder:"请选择"},model:{value:t.row.sendNumberDay,callback:function(a){e.$set(t.row,"sendNumberDay",a)},expression:"scope.row.sendNumberDay"}},e._l(e.dateOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("有效,有效天数")]):e._e(),1==t.row.effectiveType?a("el-input-number",{staticClass:"w-100 m-l-10",attrs:{"controls-position":"right",min:1,max:366},model:{value:t.row.effectiveDay,callback:function(a){e.$set(t.row,"effectiveDay",a)},expression:"scope.row.effectiveDay"}}):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("天")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送总数",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendLimit)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDelTemp(t.$index,t.row,e.formData.cardTemplateJson)}}},[e._v("删除")])]}}])})],1)],1):e._e(),e._v(" "),!e.formData.cardTemplateJson.length&&e.cardErr?a("div",{staticClass:"el-form-item__error"},[e._v("请选择卡券模板")]):e._e()])]),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("执行策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("全企业")]),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[a("span",{on:{click:e.clickSendType}},[e._v("部分部门")])]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap",on:{click:e.showDepartDilog}},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"357px"}},[e.formData.departmentJson.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}}),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.formData.departmentJson,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.departmentName))]),e._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.formData.departmentJson)}}})])]})],2)]),e._v(" "),a("div",{staticClass:"count-number font-12 color-909399"},[e._v("已选"+e._s(e.formData.departmentJson.length)+"个部门")])])])]):e._e(),e._v(" "),a("div",{staticClass:"position-select"},[a("div",{staticClass:"position-check"},[a("el-checkbox",{model:{value:e.formData.positionFlag,callback:function(t){e.$set(e.formData,"positionFlag",t)},expression:"formData.positionFlag"}},[e._v("按职务筛选")])],1),e._v(" "),a("div",{staticClass:"position-check-tags"},[a("el-checkbox",{staticClass:" no-position-tag",on:{change:e.changeNoPosition},model:{value:e.formData.noPosition,callback:function(t){e.$set(e.formData,"noPosition",t)},expression:"formData.noPosition"}},[e._v("无职务")]),e._v(" "),e._l(e.formData.positionNames,function(t){return[-1!=t?a("el-tag",{key:t,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")]):e._e()]}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"20","show-word-limit":""},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleInputConfirm(t):null}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 添加职务")])],2)])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略执行次数\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{staticStyle:{"margin-right":"0px"},attrs:{label:"0"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每月该策略针对单一成员执行几次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("每月循环")])]),a("el-radio",{staticStyle:{"margin-right":"0px","margin-left":"30px"},attrs:{label:"1"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"第n月发送次数,例如第3,6,9月,每月1次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("多月循环")])]),e._v(" "),0==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("每月")]),a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e(),e._v(" "),1==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),a("el-select",{staticClass:"w-150",attrs:{multiple:"","collapse-tags":"",placeholder:"请选择"},model:{value:e.formData.sendMonthTimes,callback:function(t){e.$set(e.formData,"sendMonthTimes",t)},expression:"formData.sendMonthTimes"}},e._l(e.monthOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-input-number",{staticClass:"m-l-10 w-100",staticStyle:{"vertical-align":"middle"},attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e()],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略有效期\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("长期有效")]),a("el-radio",{attrs:{label:"1"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("固定期限")]),e._v(" "),1==e.formData.policyExpireDateType?a("div",{staticClass:"date-valid"},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.formData.validDateRange,callback:function(t){e.$set(e.formData,"validDateRange",t)},expression:"formData.validDateRange"}})],1):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.policyId?"编辑":"新建"))]),e._v(" "),e.$route.query.policyId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),a("select-card-template",{attrs:{cardTempShow:e.cardTempShow,selectTemp:e.formData.cardTemplateJson},on:{returnData:e.returnData,closeTemp:e.closeTemp}}),e._v(" "),a("select-wx-depart",{attrs:{departShow:e.departShow,departArr:e.formData.departmentJson},on:{refreshData:e.refreshData}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("qdhD")},"data-v-cb6cec4c",null);t.default=f.exports},F0WV:function(e,t){},M29i:function(e,t){},ja1h:function(e,t,a){"use strict";var n=a("mvHQ"),o=a.n(n),r=a("Xxa5"),s=a.n(r),i=a("exGp"),l=a.n(i),c=a("P9l9"),p=a("Ch4/"),d={name:"select-wx-depart",components:{},props:{departShow:{type:Boolean,default:function(){return!1}},departArr:{type:[Object,Array],default:function(){return[]}}},data:function(){return{selDepart:[],groupNodes:[],groupData:[],departVisible:!1,checkedKeys:this.departArr.length?this.departArr.map(function(e){return e.departmentId}):[],defaultProps:{children:"children",label:"departmentName",isLeaf:"isLeaf"},checkList:[]}},methods:{loadNode:function(e,t){var a=this;return l()(s.a.mark(function n(){var o;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=a,0!==e.level){n.next=5;break}return n.abrupt("return",t(o.getGroup()));case 5:return n.next=7,o.getGroup(e,e.data,t);case 7:o.checkedKeys=o.departArr.length?o.departArr.map(function(e){return e.departmentId}):[],o.initData();case 9:case"end":return n.stop()}},n,a)}))()},checkGroup:function(e){this.groupNodes=this.$refs.groupTrees.getCheckedNodes()},toRight:function(){this.selDepart=this.$refs.groupTrees.getCheckedNodes()},toLeft:function(){var e=this,t=[];e.selDepart.forEach(function(a){e.checkList.includes(a.departmentId)||t.push(a)}),e.selDepart=t,e.$refs.groupTrees.setCheckedNodes(e.selDepart)},handleClose:function(e){this.$emit("refreshData","close"),e()},cancel:function(){this.$emit("refreshData","close")},submitForm:function(e){return this.selDepart.length?this.selDepart.length>50?(this.$message.error({duration:1e3,message:"最多可选50个部门"}),!1):void this.$emit("refreshData",this.selDepart):(this.$message.error({duration:1e3,message:"请选择部门"}),!1)},getGroup:function(e,t,a){var n=this,o={parentId:t?t.departmentId:"",isStore:0};if(e&&(!t.hasSonNode||1==t.isStore))return a([]),!1;Object(c.a)("/haoban-manage3-web/department-list-level",o).then(function(o){var r=o.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName,e.isLeaf=!e.hasSonNode}),e?(a(r.result),t.children||n.$set(t,"children",[]),t.children=r.result||[],n.$forceUpdate(),!1):(n.groupData=r.result||[],void n.initData());p.a.errorMsg(r)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this;e.$nextTick(function(){e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},watch:{departShow:function(e){this.departVisible=e},departArr:function(e){var t=this;t.checkedKeys=t.departArr.length?t.departArr.map(function(e){return e.departmentId}):[],e.length?t.selDepart=JSON.parse(o()(e)):t.selDepart=[],t.$nextTick(function(){t.$refs.groupTrees.setCheckedKeys(t.checkedKeys),t.groupNodes=t.$refs.groupTrees.getCheckedNodes()})}},mounted:function(){var e=this;e.departVisible=e.departShow,e.getGroup(),e.departArr.length?e.selDepart=JSON.parse(o()(e.departArr)):e.selDepart=[],e.checkedKeys=e.departArr.length?e.departArr.map(function(e){return e.departmentId}):[],e.$nextTick(function(){e.$refs.groupTrees.setCheckedKeys(e.checkedKeys),e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"选择部门",visible:e.departVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.departVisible=t},open:e.initData}},[a("div",{staticClass:"depart-transfor"},[a("div",{staticClass:"depart-transfor-left"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("组织架构")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"})]),e._v(" "),a("div",{staticClass:"transfor-body"},[a("div",{staticClass:"transfor-body-tree"},[a("el-tree",{ref:"groupTrees",attrs:{data:e.groupData,load:e.loadNode,"default-checked-keys":e.checkedKeys,"node-key":"departmentId","check-strictly":"",lazy:"","show-checkbox":"",props:e.defaultProps},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",1==o.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==o.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))])])}}])})],1)])]),e._v(" "),a("div",{staticClass:"depart-transfor-middle"},[a("div",{staticClass:"m-b-10"},[a("el-button",{attrs:{disabled:!e.groupNodes.length,type:"primary",icon:"el-icon-arrow-right"},on:{click:e.toRight}},[e._v("转入")])],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:!e.checkList.length,type:"primary",icon:"el-icon-arrow-left"},on:{click:e.toLeft}},[e._v("移除")])],1)]),e._v(" "),a("div",{staticClass:"depart-transfor-right"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("已选")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v(e._s(e.selDepart.length))])]),e._v(" "),a("div",{staticClass:"select-body"},[a("div",{staticClass:"select-body-list"},[a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("div",e._l(e.selDepart,function(t,n){return a("el-checkbox",{key:n+"sel",attrs:{label:t.departmentId}},[e._v(e._s(t.departmentName))])}))])],1)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("partForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(d,m,!1,function(e){a("M29i")},"data-v-643f63dd",null);t.a=u.exports},qdhD:function(e,t){}}); webpackJsonp([8],{"+kZ0":function(e,t,a){"use strict";var n=a("3Xzz"),o=a("Qs+A"),r=a("P9l9"),s=a("Ch4/"),i={name:"select-card-template",props:{cardTempShow:{type:Boolean,default:function(){return!1}},selectTemp:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!1,currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[]}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleClose:function(){var e=this;e.$emit("closeTemp"),e.$refs.multipleTable.clearSelection();var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})},submitForm:function(){var e=this;return e.multipleSelection.length?e.multipleSelection.length>20?(e.$message.error({duration:1e3,message:"最多只能选择20个模板"}),!1):(e.$emit("returnData",e.multipleSelection),void e.$nextTick(function(){var t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})})):(e.$message.error({duration:1e3,message:"请选择模板"}),!1)},changeRoute:function(e){this.$router.push(e)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.a)("/haoban-app-customer-web/inner/list-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result||[],!1;s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this,t=e.selectTemp.map(function(e){return e.templateId});e.$nextTick(function(){e.$refs.multipleTable.clearSelection(),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.multipleSelection.push(a)}),e.tableData.forEach(function(a){t.includes(a.templateId)&&e.$refs.multipleTable.toggleRowSelection(a,!0)})})}},watch:{cardTempShow:function(e){this.dialogVisible=e},selectTemp:function(e,t){}},mounted:function(){this.dialogVisible=this.cardTempShow,this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:o.a}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"选择模板",visible:e.dialogVisible,width:"700px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},open:e.initData}},[a("div",{},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{height:"450",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName)+"\n ")]}}])})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("F0WV")},"data-v-71d02420",null);t.a=c.exports},"8Rwt":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("mvHQ"),o=a.n(n),r=a("l46T"),s=a("+kZ0"),i=a("ja1h"),l=a("P9l9"),c=a("3E4D"),p=a("Ch4/"),d=a("PI0u"),m={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{limitInput:r.a,selectCardTemplate:s.a,selectWxDepart:i.a},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},cardErr:!1,rules:{policyName:[{required:!0,message:"请输入卡券策略名称",trigger:"blur"}],cardTemplateJson:[{type:"array",required:!0,message:"请至少选择一个卡券模板",trigger:"change"}]},cardSelectShow:!1,choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()<Date.now()-864e5}return t.getTime()<Date.now()-864e5}},dateOptions:[],monthOptions:[],inputVisible:!1,inputValue:"",cardTempShow:!1,departShow:!1,loadingBtn:!1}},methods:{showDepartDilog:function(){this.departShow=!0},delDepart:function(e,t){t.splice(e,1)},toInput:function(e){/^[0-9]*$/.test(e.target.value)||(this.formData.sendTimes=1)},changeNoPosition:function(e){if(e&&this.formData.positionNames.length>=50)return this.$message.error({duration:1e3,message:"最多可添加50个职务"}),this.formData.noPosition=!1,!1;e?this.formData.positionNames.push("-1"):this.formData.positionNames.splice(this.formData.positionNames.indexOf("-1"),1)},changeSendType:function(){1==this.formData.sendRange?this.departShow=!0:(this.formData.departmentJson=[],this.departShow=!1)},clickSendType:function(){this.departShow=!0},refreshData:function(e){if(this.departShow=!1,"close"==e)return!1;this.formData.departmentJson=e},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},showCardTemp:function(){this.cardTempShow=!0},returnData:function(e){e.forEach(function(e){e.effectiveType="0",e.dateRange=[],e.sendNumberDay="0",e.effectiveDay="366",e.sendLimit="50000"});var t=e.map(function(e){return e.templateId}),a=[];this.formData.cardTemplateJson.forEach(function(e){t.includes(e.templateId)&&a.push(e)}),e.forEach(function(e){a.forEach(function(t){e.templateId==t.templateId&&(e.effectiveType=t.effectiveType,e.dateRange=t.dateRange,e.sendNumberDay=t.sendNumberDay,e.effectiveDay=t.effectiveDay)})}),this.formData.cardTemplateJson=JSON.parse(o()(e)),this.cardTempShow=!1},closeTemp:function(){this.cardTempShow=!1},handleClose:function(e){this.formData.positionNames.splice(this.formData.positionNames.indexOf(e),1)},showInput:function(){var e=this;if(e.formData.positionNames.length>=50)return e.$message.error({duration:1e3,message:"最多可添加50个职务"}),!1;e.inputVisible=!0,e.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.formData.positionNames.push(e),this.inputVisible=!1,this.inputValue=""},toDelTemp:function(e,t,a){a.splice(e,1)},handleDay:function(){for(var e=[],t=0;t<91;t++)0==t?e.push({label:"当天",value:String(t)}):e.push({label:"第"+t+"天",value:String(t)});this.dateOptions=e,this.monthOptions=[];for(var a=1;a<13;a++)this.monthOptions.push({label:a+"月",value:String(a)})},submitForm:Object(d.a)(function(e,t){var a=this;if(a.formData.validDateRange||(a.formData.validDateRange=[]),!(1!=a.formData.policyExpireDateType||a.formData.validDateRange&&a.formData.validDateRange.length))return a.$message.error({duration:1e3,message:"请先选择固定期限日期"}),!1;if(!a.formData.cardTemplateJson)return!1;var n=!0;return a.formData.cardTemplateJson.forEach(function(e){0!=e.effectiveType||e.dateRange&&e.dateRange.length&&e.dateRange[0]||(e.dateRange=[],n=!1),e.startTimeString=e.dateRange?e.dateRange[0]:"",e.endTimeString=e.dateRange?e.dateRange[1]:""}),n?a.formData.cardTemplateJson.length?(a.cardErr=!1,1!=a.formData.sendRange||a.formData.departmentJson.length?1!=a.formData.sendMonthType||a.formData.sendMonthTimes.length?a.formData.sendTimes?(a.loadingBtn=!0,void a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})):(a.$message.error({duration:1e3,message:"请先选择策略执行次数"}),!1):(a.$message.error({duration:1e3,message:"请先选择多月循环"}),!1):(a.$message.error({duration:1e3,message:"请先选择发送的部门"}),!1)):(a.cardErr=!0,!1):(a.$message.error({duration:1e3,message:"请先选择模板有效期"}),!1)},1e3),postSaveCard:function(e){var t=this,a={policyId:t.formData.policyId,policyName:t.formData.policyName,cardTemplateJson:o()(t.formData.cardTemplateJson),sendRange:t.formData.sendRange,positionFlag:t.formData.positionFlag?1:0,positionNames:t.formData.positionNames.length?t.formData.positionNames.join(","):"",departmentJson:o()(t.formData.departmentJson),sendMonthType:t.formData.sendMonthType,sendTimes:t.formData.sendTimes,sendMonthTimes:t.formData.sendMonthTimes.length?t.formData.sendMonthTimes.join(","):"",policyExpireDateType:t.formData.policyExpireDateType,startTimeString:t.formData.validDateRange[0],endTimeString:t.formData.validDateRange[1],onlineFlag:t.formData.onlineFlag,wxEnterpriseId:t.wxEnterpriseId};Object(l.d)((t.$route.query.policyId,"/haoban-app-customer-web/inner/save-policy"),a).then(function(a){var n=a.data;t.loadingBtn=!1,1==n.errorCode&&(c.a.showmsg(t.$route.query.policyId?"编辑卡券策略成功":"新建卡券策略成功","success"),e?(t.formData={policyId:"",policyName:"",cardTemplateJson:[],sendRange:"0",positionFlag:!1,noPosition:!1,positionNames:[],departmentJson:[],sendMonthType:"0",sendTimes:"",sendMonthTimes:[],policyExpireDateType:"0",validDateRange:[],startTimeString:"",endTimeString:"",onlineFlag:"1"},t.choiceDateCopy=[]):t.$router.push("/cardStrategy")),p.a.errorMsg(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getCardData:function(){var e=this,t={policyId:e.$route.query.policyId,gicEnterpriseId:e.brandId};Object(l.a)("/haoban-app-customer-web/inner/find-policy",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardTemplateRelateds.forEach(function(e){e.sendNumberDay=String(e.sendNumberDay),e.effectiveType=String(e.effectiveType),e.dateRange=[e.startTimeString?e.startTimeString:"",e.endTimeString?e.endTimeString:""]}),e.formData={policyId:a.result.policyId,policyName:a.result.policyName,cardTemplateJson:a.result.cardTemplateRelateds||[],sendRange:String(a.result.sendRange),positionFlag:1==a.result.positionFlag,noPosition:!(!a.result.positionNames.includes("-1")&&!a.result.positionNames.includes(-1)),positionNames:a.result.positionNames?a.result.positionNames.split(","):[],departmentJson:a.result.departmentRelateds||[],sendMonthType:String(a.result.sendMonthType),sendTimes:a.result.sendTimes,sendMonthTimes:a.result.sendMonthTimes.length?a.result.sendMonthTimes.split(","):[],policyExpireDateType:String(a.result.policyExpireDateType),startTimeString:a.result.startTimeString,endTimeString:a.result.endTimeString,onlineFlag:a.result.onlineFlag,validDateRange:[a.result.startTimeString?a.result.startTimeString:"",a.result.endTimeString?a.result.endTimeString:""]},!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.policyId&&(this.activeBrand=e,this.getCardData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","2"),e.$nextTick(function(){e.handleDay()}),e.$route.query.policyId&&e.getCardData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"卡券策略名称",prop:"policyName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.policyName,getByType:"word",holder:"请输入卡券策略名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"policyName",t)}}})],1),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("卡券选择策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large is-required"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"支持多选,最多可选20个模板",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择卡券模板")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCardTemp}},[a("span",{staticClass:"font-14 color-606266"},[e._v("选择卡券模板")])]),e._v(" "),e.formData.cardTemplateJson.length?a("div",{staticClass:"m-t-20"},[a("el-table",{staticClass:"select-table",style:{width:"100%"},attrs:{"max-height":"450",data:e.formData.cardTemplateJson,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"卡券模板名称","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期",width:"505"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{staticClass:"w-100",attrs:{placeholder:""},model:{value:t.row.effectiveType,callback:function(a){e.$set(t.row,"effectiveType",a)},expression:"scope.row.effectiveType"}},[a("el-option",{attrs:{label:"固定日期",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"发送后",value:"1"}})],1),0==t.row.effectiveType?a("el-date-picker",{staticClass:"m-l-10 w-300 vertical-middle",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:t.row.dateRange,callback:function(a){e.$set(t.row,"dateRange",a)},expression:"scope.row.dateRange"}}):e._e(),e._v(" "),1==t.row.effectiveType?a("el-select",{staticClass:"w-100 m-l-10",attrs:{placeholder:"请选择"},model:{value:t.row.sendNumberDay,callback:function(a){e.$set(t.row,"sendNumberDay",a)},expression:"scope.row.sendNumberDay"}},e._l(e.dateOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("有效,有效天数")]):e._e(),1==t.row.effectiveType?a("el-input-number",{staticClass:"w-100 m-l-10",attrs:{"controls-position":"right",min:1,max:366},model:{value:t.row.effectiveDay,callback:function(a){e.$set(t.row,"effectiveDay",a)},expression:"scope.row.effectiveDay"}}):e._e(),1==t.row.effectiveType?a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v("天")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送总数",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendLimit)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDelTemp(t.$index,t.row,e.formData.cardTemplateJson)}}},[e._v("删除")])]}}])})],1)],1):e._e(),e._v(" "),!e.formData.cardTemplateJson.length&&e.cardErr?a("div",{staticClass:"el-form-item__error"},[e._v("请选择卡券模板")]):e._e()])]),e._v(" "),a("div",{staticClass:"item-title font-14 color-303133 font-w-600"},[e._v("执行策略")]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("全企业")]),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},on:{change:e.changeSendType},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[a("span",{on:{click:e.clickSendType}},[e._v("部分部门")])]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap",on:{click:e.showDepartDilog}},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"357px"}},[e.formData.departmentJson.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}}),e._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"348px"}},[a("span",{staticStyle:{display:"block"}},[e._l(e.formData.departmentJson,function(t,n){return[a("span",{key:n,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.departmentName))]),e._v(" "),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(n,e.formData.departmentJson)}}})])]})],2)]),e._v(" "),a("div",{staticClass:"count-number font-12 color-909399"},[e._v("已选"+e._s(e.formData.departmentJson.length)+"个部门")])])])]):e._e(),e._v(" "),a("div",{staticClass:"position-select"},[a("div",{staticClass:"position-check"},[a("el-checkbox",{model:{value:e.formData.positionFlag,callback:function(t){e.$set(e.formData,"positionFlag",t)},expression:"formData.positionFlag"}},[e._v("按职务筛选")])],1),e._v(" "),a("div",{staticClass:"position-check-tags"},[a("el-checkbox",{staticClass:" no-position-tag",on:{change:e.changeNoPosition},model:{value:e.formData.noPosition,callback:function(t){e.$set(e.formData,"noPosition",t)},expression:"formData.noPosition"}},[e._v("无职务")]),e._v(" "),e._l(e.formData.positionNames,function(t){return[-1!=t?a("el-tag",{key:t,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")]):e._e()]}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small",maxlength:"20","show-word-limit":""},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleInputConfirm(t):null}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 添加职务")])],2)])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略执行次数\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{staticStyle:{"margin-right":"0px"},attrs:{label:"0"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每月该策略针对单一成员执行几次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("每月循环")])]),a("el-radio",{staticStyle:{"margin-right":"0px","margin-left":"30px"},attrs:{label:"1"},model:{value:e.formData.sendMonthType,callback:function(t){e.$set(e.formData,"sendMonthType",t)},expression:"formData.sendMonthType"}},[e._v(e._s(""))]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"第n月发送次数,例如第3,6,9月,每月1次",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("多月循环")])]),e._v(" "),0==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("每月")]),a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e(),e._v(" "),1==e.formData.sendMonthType?a("div",{staticClass:"m-t-10 month-recyle"},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("第")]),a("el-select",{staticClass:"w-150",attrs:{multiple:"","collapse-tags":"",placeholder:"请选择"},model:{value:e.formData.sendMonthTimes,callback:function(t){e.$set(e.formData,"sendMonthTimes",t)},expression:"formData.sendMonthTimes"}},e._l(e.monthOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-input-number",{staticClass:"m-l-10 w-100",staticStyle:{"vertical-align":"middle"},attrs:{"controls-position":"right",min:1,max:99},nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.formData.sendTimes,callback:function(t){e.$set(e.formData,"sendTimes",t)},expression:"formData.sendTimes"}}),a("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v(" 次")])],1):e._e()],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[e._v("\n 策略有效期\n ")]),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("长期有效")]),a("el-radio",{attrs:{label:"1"},model:{value:e.formData.policyExpireDateType,callback:function(t){e.$set(e.formData,"policyExpireDateType",t)},expression:"formData.policyExpireDateType"}},[e._v("固定期限")]),e._v(" "),1==e.formData.policyExpireDateType?a("div",{staticClass:"date-valid"},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],type:"datetimerange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.formData.validDateRange,callback:function(t){e.$set(e.formData,"validDateRange",t)},expression:"formData.validDateRange"}})],1):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.policyId?"编辑":"新建"))]),e._v(" "),e.$route.query.policyId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),a("select-card-template",{attrs:{cardTempShow:e.cardTempShow,selectTemp:e.formData.cardTemplateJson},on:{returnData:e.returnData,closeTemp:e.closeTemp}}),e._v(" "),a("select-wx-depart",{attrs:{departShow:e.departShow,departArr:e.formData.departmentJson},on:{refreshData:e.refreshData}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("qdhD")},"data-v-cb6cec4c",null);t.default=f.exports},F0WV:function(e,t){},M29i:function(e,t){},ja1h:function(e,t,a){"use strict";var n=a("mvHQ"),o=a.n(n),r=a("Xxa5"),s=a.n(r),i=a("exGp"),l=a.n(i),c=a("P9l9"),p=a("Ch4/"),d={name:"select-wx-depart",components:{},props:{departShow:{type:Boolean,default:function(){return!1}},departArr:{type:[Object,Array],default:function(){return[]}}},data:function(){return{selDepart:[],groupNodes:[],groupData:[],departVisible:!1,checkedKeys:this.departArr.length?this.departArr.map(function(e){return e.departmentId}):[],defaultProps:{children:"children",label:"departmentName",isLeaf:"isLeaf"},checkList:[]}},methods:{loadNode:function(e,t){var a=this;return l()(s.a.mark(function n(){var o;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=a,0!==e.level){n.next=5;break}return n.abrupt("return",t(o.getGroup()));case 5:return n.next=7,o.getGroup(e,e.data,t);case 7:o.checkedKeys=o.departArr.length?o.departArr.map(function(e){return e.departmentId}):[],o.initData();case 9:case"end":return n.stop()}},n,a)}))()},checkGroup:function(e){this.groupNodes=this.$refs.groupTrees.getCheckedNodes()},toRight:function(){this.selDepart=this.$refs.groupTrees.getCheckedNodes()},toLeft:function(){var e=this,t=[];e.selDepart.forEach(function(a){e.checkList.includes(a.departmentId)||t.push(a)}),e.selDepart=t,e.$refs.groupTrees.setCheckedNodes(e.selDepart)},handleClose:function(e){this.$emit("refreshData","close"),e()},cancel:function(){this.$emit("refreshData","close")},submitForm:function(e){return this.selDepart.length?this.selDepart.length>50?(this.$message.error({duration:1e3,message:"最多可选50个部门"}),!1):void this.$emit("refreshData",this.selDepart):(this.$message.error({duration:1e3,message:"请选择部门"}),!1)},getGroup:function(e,t,a){var n=this,o={parentId:t?t.departmentId:"",isStore:0};if(e&&(!t.hasSonNode||1==t.isStore))return a([]),!1;Object(c.a)("/haoban-manage3-web/department-list-level",o).then(function(o){var r=o.data;if(1==r.errorCode)return r.result&&r.result.length&&r.result.forEach(function(e){e.expand=!1,e.children=[],e.label=e.departmentName,e.isLeaf=!e.hasSonNode}),e?(a(r.result),t.children||n.$set(t,"children",[]),t.children=r.result||[],n.$forceUpdate(),!1):(n.groupData=r.result||[],void n.initData());p.a.errorMsg(r)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})},initData:function(){var e=this;e.$nextTick(function(){e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},watch:{departShow:function(e){this.departVisible=e},departArr:function(e){var t=this;t.checkedKeys=t.departArr.length?t.departArr.map(function(e){return e.departmentId}):[],e.length?t.selDepart=JSON.parse(o()(e)):t.selDepart=[],t.$nextTick(function(){t.$refs.groupTrees.setCheckedKeys(t.checkedKeys),t.groupNodes=t.$refs.groupTrees.getCheckedNodes()})}},mounted:function(){var e=this;e.departVisible=e.departShow,e.getGroup(),e.departArr.length?e.selDepart=JSON.parse(o()(e.departArr)):e.selDepart=[],e.checkedKeys=e.departArr.length?e.departArr.map(function(e){return e.departmentId}):[],e.$nextTick(function(){e.$refs.groupTrees.setCheckedKeys(e.checkedKeys),e.groupNodes=e.$refs.groupTrees.getCheckedNodes()})}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"选择部门",visible:e.departVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.departVisible=t},open:e.initData}},[a("div",{staticClass:"depart-transfor"},[a("div",{staticClass:"depart-transfor-left"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("组织架构")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"})]),e._v(" "),a("div",{staticClass:"transfor-body"},[a("div",{staticClass:"transfor-body-tree"},[a("el-tree",{ref:"groupTrees",attrs:{data:e.groupData,load:e.loadNode,"default-checked-keys":e.checkedKeys,"node-key":"departmentId","check-strictly":"",lazy:"","show-checkbox":"",props:e.defaultProps},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,o=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",{class:["font-14 p-r-10 iconfont",1==o.isStore?"icondianpu-kuai":"iconqiye-tianchong",1==o.bindFlag?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))])])}}])})],1)])]),e._v(" "),a("div",{staticClass:"depart-transfor-middle"},[a("div",{staticClass:"m-b-10"},[a("el-button",{attrs:{disabled:!e.groupNodes.length,type:"primary",icon:"el-icon-arrow-right"},on:{click:e.toRight}},[e._v("转入")])],1),e._v(" "),a("div",[a("el-button",{attrs:{disabled:!e.checkList.length,type:"primary",icon:"el-icon-arrow-left"},on:{click:e.toLeft}},[e._v("移除")])],1)]),e._v(" "),a("div",{staticClass:"depart-transfor-right"},[a("div",{staticClass:"transfor-header flex flex-space-between"},[a("span",{staticClass:"font-14 color-303133"},[e._v("已选")]),e._v(" "),a("span",{staticClass:"font-12 color-909399"},[e._v(e._s(e.selDepart.length))])]),e._v(" "),a("div",{staticClass:"select-body"},[a("div",{staticClass:"select-body-list"},[a("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("div",e._l(e.selDepart,function(t,n){return a("el-checkbox",{key:n+"sel",attrs:{label:t.departmentId}},[e._v(e._s(t.departmentName))])}))])],1)])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("partForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(d,m,!1,function(e){a("M29i")},"data-v-643f63dd",null);t.a=u.exports},qdhD:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([79],{"/NA0":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),r=(a("j1ja"),a("hKoQ")),p=a.n(r),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=a("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){a("/NA0")},null,null).exports,c=a("lRwf"),u=a.n(c),m=a("pRNm"),d=a.n(m),l=a("5tgt"),h=a.n(l);u.a.use(d.a);var v=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,g=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:h()("login","index")},{path:"/index",name:"index",component:h()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:h()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:h()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:h()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:h()("business","authMerchant")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:h()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:h()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:h()("enterprise","adminList")},{path:"/material",name:"素材库",component:h()("enterprise","material")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:h()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:h()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:h()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:h()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:h()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:h()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:h()("apps/customerApp","memberSearchSet")},{path:"/myCustomerList",name:"我的顾客列表",component:h()("apps/customerApp","myCustomerList")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:h()("apps/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:h()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:h()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:h()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:h()("apps/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:h()("apps/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:h()("apps/cloudDaily","customReport")},{path:"/customReportSet",name:"自定义报表设置",component:h()("apps/cloudDaily","customReportSet")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:h()("apps/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:h()("apps/trafficTask","taskRecord")},{path:"/taskView",name:"话务任务记录",component:h()("apps/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:h()("apps/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:h()("apps/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:h()("apps/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:h()("apps/badEvaluate","badEvaluateSet")},{path:"/taskList",name:"会话任务列表",component:h()("apps/trafficTask","taskList")},{path:"/newSession",name:"新建会话任务",component:h()("apps/trafficTask","newSession")},{path:"/taskSessionSet",name:"会话任务设置",component:h()("apps/trafficTask","taskSessionSet")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:h()("apps/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:h()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:h()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:h()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:h()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:h()("apps/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:h()("apps/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/cardList",name:"卡券赠送",redirect:"/cardList",component:h()("apps/card","index"),children:[{path:"/cardList",name:"卡券列表",component:h()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:h()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:h()("apps/card","newCard")}]},{path:"/protectCard",name:"内购券",redirect:"/cardTemplate",component:h()("apps/protectCard","index"),children:[{path:"/cardTemplate",name:"卡券模板",component:h()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:h()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:h()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:h()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:h()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:h()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:h()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:h()("apps/protectCard","cardGetRecord")}]},{path:"/shoppingCenter",name:"商品中心",redirect:"/goodsShowSet",component:h()("apps/shoppingCenter","index"),children:[{path:"/goodsShowSet",name:"商品展示设置",component:h()("apps/shoppingCenter","goodsShowSet")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:h()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:h()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:h()("reviewCenter","unreview")},{path:"/reviewSet",name:"审核设置",component:h()("reviewCenter","reviewSet")}]},{path:"/gic-error",name:"gic跳转失败页",component:h()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],S=new d.a({routes:g,scrollBehavior:function(){return{y:0}}}),w=a("zL8q"),D=a.n(w),k=a("Rf8U"),y=a.n(k),x=a("mtWM"),C=a.n(x),T=a("bOdI"),b=a.n(T),R=a("SJI6"),A=a.n(R);u.a.use(A.a);var L=new A.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[]},mutations:(f={},b()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(f,"title",function(e,t){e.title=t}),b()(f,"show",function(e,t){e.show=t}),b()(f,"saveAdd",function(e,t){e.addDepartment.push(t)}),b()(f,"saveEdit",function(e,t){e.editDepartment.push(t)}),b()(f,"saveDel",function(e,t){e.delDepartment.push(t)}),b()(f,"clearAdd",function(e){e.addDepartment=[]}),b()(f,"clearEdit",function(e){e.editDepartment=[]}),b()(f,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),f),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")}}}),M=(a("4qCZ"),a("tvR6"),a("uKUT"),a("Xcu2"),a("xtVA"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),n={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+n+" "+r+":"+p+":"+s}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=a<10?"0"+a:a;return t.getFullYear()+"-"+n}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a;return t.getFullYear()+"-"+o+"-"+n}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+n+" "+r+":"+p+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var n=a%864e5,o=n%36e5;return Math.floor(a/864e5)+"天"+Math.floor(n/36e5)+"小时"+Math.floor(o/6e4)+"分"}}}),E=a("TUaa"),P=a.n(E),V=a("tyqE"),q=a.n(V),H=a("pRVe"),I=a.n(H),Y=a("XsK6"),j=a.n(Y),F=a("QRL9"),G=a.n(F),N=a("2Pnh"),O=a.n(N),J=a("l9mu"),X=a.n(J),U={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;O()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,n=t.height,o=a/592.28*841.89,r=n,p=0,s=592.28/a*n,i=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(r<o)c.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)c.addImage(i,"JPEG",0,p,595.28,s),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}},K=a("/IwO"),z=a.n(K);p.a.polyfill(),Vue.use(z.a),z.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(U),Vue.use(j.a),Vue.use(G.a),Vue.use(I.a),Vue.use(q.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(y.a,C.a),Vue.axios.defaults.withCredentials=!0,o()(M).forEach(function(e){Vue.filter(e,M[e])}),S.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var n=window.location.origin;n.indexOf("localhost"),localStorage.getItem("userInfos"),"/"==e.path?a({path:"/login"}):a()}),new Vue({el:"#app",router:S,store:L,components:{App:i},template:"<App/>"})},Opzk:function(e,t,a){var n={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,69],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,70],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,71],"./apps/badEvaluate/index.vue":["AG22",0,26],"./apps/card/cardList.vue":["X5LE",0,41],"./apps/card/cardRecord.vue":["xDJN",0,16],"./apps/card/index.vue":["nV1L",0,33],"./apps/card/newCard.vue":["7/Zw",0,12],"./apps/cloudDaily/customReport.vue":["ak3k",0,34],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,3],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,15],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,21],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,77],"./apps/cloudDaily/index.vue":["4QyY",0,28],"./apps/cloudDaily/systemReport.vue":["J/6z",0,6],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,32],"./apps/cloudDaily/template/block.vue":["O3gZ",53],"./apps/cloudDaily/template/date-range.vue":["2WGr",54],"./apps/cloudDaily/template/image.vue":["8dpP",65],"./apps/cloudDaily/template/input.vue":["zHtI",76],"./apps/cloudDaily/template/select.vue":["rYZf",60],"./apps/customerApp/index.vue":["QHTa",0,47],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,73],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,68],"./apps/customerApp/memberShowSet.vue":["odfG",0,64],"./apps/customerApp/myCustomerList.vue":["9CCr",0,8],"./apps/index.vue":["K1Vb",0,58],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,36],"./apps/protectCard/cardPut.vue":["cD4x",0,37],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,29],"./apps/protectCard/cardStrategy.vue":["rUvh",0,27],"./apps/protectCard/cardTemplate.vue":["c7iB",0,40],"./apps/protectCard/index.vue":["aWmL",0,46],"./apps/protectCard/newCardPut.vue":["9db3",0,9],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,7],"./apps/protectCard/newCardTemp.vue":["tF0P",0,61],"./apps/quota/companyDaySet.vue":["NiGE",0,72],"./apps/quota/index.vue":["qSX4",0,63],"./apps/quota/monthList.vue":["fAFA",0,42],"./apps/quota/monthTask.vue":["NpHY",0,39],"./apps/quota/monthTaskDetail.vue":["YKf6",0,49],"./apps/quota/salerMonthDetail.vue":["+qr5",0,67],"./apps/quota/storeMonthTask.vue":["qWC+",0,66],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,52],"./apps/shoppingCenter/index.vue":["FIFf",0,48],"./apps/trafficTask/index.vue":["FmZU",0,30],"./apps/trafficTask/newSession.vue":["upTI",0,74],"./apps/trafficTask/taskDetail.vue":["XrDD",0,13],"./apps/trafficTask/taskList.vue":["FMQe",0,38],"./apps/trafficTask/taskRecord.vue":["m+x7",0,56],"./apps/trafficTask/taskSessionSet.vue":["lPa5",0,43],"./apps/trafficTask/taskView.vue":["w2fd",0,22],"./apps/trafficTask/taskViewDetail.vue":["SBUJ",0,50],"./apps/trafficTask/trafficTaskSet.vue":["OUXi",0,44],"./business/authMerchant.vue":["mjMK",0,14],"./business/contacts.vue":["/W60",0,5],"./business/index.vue":["jPcV",0,75],"./business/orgStructSet.vue":["OI5V",0,4],"./business/recycle.vue":["K8Yn",0,55],"./business/syncLog.vue":["20P3",0,23],"./enterprise/adminList.vue":["zYBJ",0,57],"./enterprise/enterpriseSet.vue":["x5Fx",0,11],"./enterprise/index.vue":["m9dW",0,45],"./enterprise/material.vue":["q+Sm",0,2],"./errorPage/403.vue":["6XGN",20],"./errorPage/404.vue":["AejC",24],"./errorPage/500.vue":["FskK",19],"./errorPage/gic-error.vue":["Q3j/",25],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,59],"./login/index.vue":["T+/8",0,18],"./overstore/index.vue":["Y55K",0,62],"./overstore/overStoreList.vue":["vuAV",0,51],"./reviewCenter/index.vue":["+lem",0,31],"./reviewCenter/reviewSet.vue":["6j9f",0,35],"./reviewCenter/reviewed.vue":["CLYF",0,17],"./reviewCenter/unreview.vue":["xCEU",0,10]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},tvR6:function(e,t){},uKUT:function(e,t){},xtVA:function(e,t){}},[0]); webpackJsonp([79],{"/NA0":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),r=(a("j1ja"),a("hKoQ")),p=a.n(r),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=a("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){a("/NA0")},null,null).exports,c=a("lRwf"),u=a.n(c),m=a("pRNm"),d=a.n(m),l=a("5tgt"),h=a.n(l);u.a.use(d.a);var v=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,g=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:h()("login","index")},{path:"/index",name:"index",component:h()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:h()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:h()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:h()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:h()("business","authMerchant")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:h()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:h()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:h()("enterprise","adminList")},{path:"/material",name:"素材库",component:h()("enterprise","material")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:h()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:h()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:h()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:h()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:h()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:h()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:h()("apps/customerApp","memberSearchSet")},{path:"/myCustomerList",name:"我的顾客列表",component:h()("apps/customerApp","myCustomerList")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:h()("apps/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:h()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:h()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:h()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:h()("apps/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:h()("apps/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:h()("apps/cloudDaily","customReport")},{path:"/customReportSet",name:"自定义报表设置",component:h()("apps/cloudDaily","customReportSet")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:h()("apps/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:h()("apps/trafficTask","taskRecord")},{path:"/taskView",name:"话务任务记录",component:h()("apps/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:h()("apps/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:h()("apps/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:h()("apps/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:h()("apps/badEvaluate","badEvaluateSet")},{path:"/taskList",name:"会话任务列表",component:h()("apps/trafficTask","taskList")},{path:"/newSession",name:"新建会话任务",component:h()("apps/trafficTask","newSession")},{path:"/taskSessionSet",name:"会话任务设置",component:h()("apps/trafficTask","taskSessionSet")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:h()("apps/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:h()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:h()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:h()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:h()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:h()("apps/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:h()("apps/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/cardList",name:"卡券赠送",redirect:"/cardList",component:h()("apps/card","index"),children:[{path:"/cardList",name:"卡券列表",component:h()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:h()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:h()("apps/card","newCard")}]},{path:"/protectCard",name:"内购券",redirect:"/cardTemplate",component:h()("apps/protectCard","index"),children:[{path:"/cardTemplate",name:"卡券模板",component:h()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:h()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:h()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:h()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:h()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:h()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:h()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:h()("apps/protectCard","cardGetRecord")}]},{path:"/shoppingCenter",name:"商品中心",redirect:"/goodsShowSet",component:h()("apps/shoppingCenter","index"),children:[{path:"/goodsShowSet",name:"商品展示设置",component:h()("apps/shoppingCenter","goodsShowSet")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:h()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:h()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:h()("reviewCenter","unreview")},{path:"/reviewSet",name:"审核设置",component:h()("reviewCenter","reviewSet")}]},{path:"/gic-error",name:"gic跳转失败页",component:h()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],S=new d.a({routes:g,scrollBehavior:function(){return{y:0}}}),w=a("zL8q"),D=a.n(w),k=a("Rf8U"),y=a.n(k),x=a("mtWM"),C=a.n(x),T=a("bOdI"),b=a.n(T),R=a("SJI6"),A=a.n(R);u.a.use(A.a);var L=new A.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[]},mutations:(f={},b()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(f,"title",function(e,t){e.title=t}),b()(f,"show",function(e,t){e.show=t}),b()(f,"saveAdd",function(e,t){e.addDepartment.push(t)}),b()(f,"saveEdit",function(e,t){e.editDepartment.push(t)}),b()(f,"saveDel",function(e,t){e.delDepartment.push(t)}),b()(f,"clearAdd",function(e){e.addDepartment=[]}),b()(f,"clearEdit",function(e){e.editDepartment=[]}),b()(f,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),f),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")}}}),M=(a("4qCZ"),a("tvR6"),a("uKUT"),a("Xcu2"),a("xtVA"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),n={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+n+" "+r+":"+p+":"+s}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=a<10?"0"+a:a;return t.getFullYear()+"-"+n}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a;return t.getFullYear()+"-"+o+"-"+n}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+n+" "+r+":"+p+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var n=a%864e5,o=n%36e5;return Math.floor(a/864e5)+"天"+Math.floor(n/36e5)+"小时"+Math.floor(o/6e4)+"分"}}}),E=a("TUaa"),P=a.n(E),V=a("tyqE"),q=a.n(V),H=a("pRVe"),I=a.n(H),Y=a("XsK6"),j=a.n(Y),F=a("QRL9"),G=a.n(F),N=a("2Pnh"),O=a.n(N),J=a("l9mu"),X=a.n(J),U={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;O()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,n=t.height,o=a/592.28*841.89,r=n,p=0,s=592.28/a*n,i=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(r<o)c.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)c.addImage(i,"JPEG",0,p,595.28,s),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}},K=a("/IwO"),z=a.n(K);p.a.polyfill(),Vue.use(z.a),z.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(U),Vue.use(j.a),Vue.use(G.a),Vue.use(I.a),Vue.use(q.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(D.a,{size:"large"}),Vue.use(y.a,C.a),Vue.axios.defaults.withCredentials=!0,o()(M).forEach(function(e){Vue.filter(e,M[e])}),S.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var n=window.location.origin;n.indexOf("localhost"),localStorage.getItem("userInfos"),"/"==e.path?a({path:"/login"}):a()}),new Vue({el:"#app",router:S,store:L,components:{App:i},template:"<App/>"})},Opzk:function(e,t,a){var n={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,69],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,70],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,71],"./apps/badEvaluate/index.vue":["AG22",0,26],"./apps/card/cardList.vue":["X5LE",0,41],"./apps/card/cardRecord.vue":["xDJN",0,16],"./apps/card/index.vue":["nV1L",0,33],"./apps/card/newCard.vue":["7/Zw",0,12],"./apps/cloudDaily/customReport.vue":["ak3k",0,34],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,3],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,15],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,21],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,77],"./apps/cloudDaily/index.vue":["4QyY",0,28],"./apps/cloudDaily/systemReport.vue":["J/6z",0,6],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,32],"./apps/cloudDaily/template/block.vue":["O3gZ",53],"./apps/cloudDaily/template/date-range.vue":["2WGr",54],"./apps/cloudDaily/template/image.vue":["8dpP",65],"./apps/cloudDaily/template/input.vue":["zHtI",76],"./apps/cloudDaily/template/select.vue":["rYZf",60],"./apps/customerApp/index.vue":["QHTa",0,47],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,73],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,68],"./apps/customerApp/memberShowSet.vue":["odfG",0,64],"./apps/customerApp/myCustomerList.vue":["9CCr",0,7],"./apps/index.vue":["K1Vb",0,58],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,36],"./apps/protectCard/cardPut.vue":["cD4x",0,37],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,29],"./apps/protectCard/cardStrategy.vue":["rUvh",0,27],"./apps/protectCard/cardTemplate.vue":["c7iB",0,40],"./apps/protectCard/index.vue":["aWmL",0,46],"./apps/protectCard/newCardPut.vue":["9db3",0,9],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,8],"./apps/protectCard/newCardTemp.vue":["tF0P",0,61],"./apps/quota/companyDaySet.vue":["NiGE",0,72],"./apps/quota/index.vue":["qSX4",0,63],"./apps/quota/monthList.vue":["fAFA",0,42],"./apps/quota/monthTask.vue":["NpHY",0,39],"./apps/quota/monthTaskDetail.vue":["YKf6",0,49],"./apps/quota/salerMonthDetail.vue":["+qr5",0,67],"./apps/quota/storeMonthTask.vue":["qWC+",0,66],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,52],"./apps/shoppingCenter/index.vue":["FIFf",0,48],"./apps/trafficTask/index.vue":["FmZU",0,30],"./apps/trafficTask/newSession.vue":["upTI",0,74],"./apps/trafficTask/taskDetail.vue":["XrDD",0,13],"./apps/trafficTask/taskList.vue":["FMQe",0,38],"./apps/trafficTask/taskRecord.vue":["m+x7",0,56],"./apps/trafficTask/taskSessionSet.vue":["lPa5",0,43],"./apps/trafficTask/taskView.vue":["w2fd",0,22],"./apps/trafficTask/taskViewDetail.vue":["SBUJ",0,50],"./apps/trafficTask/trafficTaskSet.vue":["OUXi",0,44],"./business/authMerchant.vue":["mjMK",0,14],"./business/contacts.vue":["/W60",0,5],"./business/index.vue":["jPcV",0,75],"./business/orgStructSet.vue":["OI5V",0,4],"./business/recycle.vue":["K8Yn",0,55],"./business/syncLog.vue":["20P3",0,23],"./enterprise/adminList.vue":["zYBJ",0,57],"./enterprise/enterpriseSet.vue":["x5Fx",0,11],"./enterprise/index.vue":["m9dW",0,45],"./enterprise/material.vue":["q+Sm",0,2],"./errorPage/403.vue":["6XGN",20],"./errorPage/404.vue":["AejC",24],"./errorPage/500.vue":["FskK",19],"./errorPage/gic-error.vue":["Q3j/",25],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,59],"./login/index.vue":["T+/8",0,18],"./overstore/index.vue":["Y55K",0,62],"./overstore/overStoreList.vue":["vuAV",0,51],"./reviewCenter/index.vue":["+lem",0,31],"./reviewCenter/reviewSet.vue":["6j9f",0,35],"./reviewCenter/reviewed.vue":["CLYF",0,17],"./reviewCenter/unreview.vue":["xCEU",0,10]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},tvR6:function(e,t){},uKUT: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={80: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:"cbedb09f8527f7df9eb0",1:"954a8a70c5f1171933ac",2:"a280cacc2b4b43a244e1",3:"00e1cab932674e11a7ac",4:"7fb54b0d6edc84c910b5",5:"3c335bf1dd72ca957262",6:"987ab930d70320e9de11",7:"e2471fa3903291b9c591",8:"7411f2676b22263af82a",9:"893877b035c3b35f556e",10:"72fccf60a68381f76d55",11:"e50caf7e54aeba14012b",12:"3a716cdc462dbec28cf8",13:"3d730de7c60fa8d18ccb",14:"e11f31e60dab3db1f2ea",15:"6f6e42df3e657913869b",16:"b692b43283275c0bc6b9",17:"62255cf03bb549956c58",18:"7ffc38554bc63393a91e",19:"35726f60c578a23e9017",20:"ba2e2bd0823422a4de6c",21:"2073753ae49abdc23a5e",22:"41ffd63f72a1ec6e59b8",23:"e0c916556828fa70af60",24:"7a57624e89e34e420a52",25:"b33652a002af7a00f907",26:"9cbcbc21da1497c3c88d",27:"7b3dd90cfa2c0d5203d2",28:"53e6616ed021ab731d6c",29:"44433e90d6affacc76f8",30:"196dbd7ed8dc5dac2699",31:"18ef42ac5cec84cc247e",32:"5c7e44cdd6fbfea3e17b",33:"9081ead4ff7da6bbcc09",34:"5ddc08b92106aa050122",35:"813f9fa7bd98fbca9dd8",36:"cf85d431bf885b5e642d",37:"47cbd1ef2f65ae69c2d6",38:"778a114acece521cbeb2",39:"3b0a409728d724b82c12",40:"9b42df34317bf72a31fd",41:"d897544ef0e120fa5e4e",42:"bce71b4227f6a89e1f0e",43:"6dbdea53d2130ebc0609",44:"3cb0ad37cd3b652bf968",45:"2c6b2a0c1ecdf5dbf3c8",46:"9dad3123f2fc347c9f46",47:"a7bb6a30ce7426c8424b",48:"e7d2534c955cec793d9d",49:"27afa66e95971d59227a",50:"adff1b1ecb27fb4bfcad",51:"f693420dcf48a7d94ae8",52:"4c730b50f978ad037ef1",53:"10ff6c8961898574121c",54:"057590a3480a333bd474",55:"3295563b7fbab7d7c92f",56:"392c874cbb83e68ba9b0",57:"0e458cb17af2cd84e871",58:"1606f8fed39bf289ed0e",59:"cb5a57c61337260a25ea",60:"e10d02ed3d3fd3f20f60",61:"ad09f0a95c5679ad6552",62:"7e6e0052d51c7547d70a",63:"0f8d3111b2b4e4f8c57b",64:"ce82fb945a44f47f1c1f",65:"52304eb24aada488c91f",66:"806271562f576dd0122c",67:"371a3d9f0e8c7aa3be9b",68:"5b0ebf4833498e06a8ed",69:"a76ca6ffb3668870b792",70:"da7c2a6096a1f44d78c1",71:"1730b154501db72324c2",72:"c3f9e8708ab92c13ba82",73:"54639ebdb8b503e723e0",74:"ddf9ccf79dcddaf6526e",75:"cf01c9adbf3c4e3828c7",76:"e98d846979e8bfbcf0dd",77:"57945ae646bb44434010"}[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}}([]); !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={80: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:"cbedb09f8527f7df9eb0",1:"954a8a70c5f1171933ac",2:"a280cacc2b4b43a244e1",3:"00e1cab932674e11a7ac",4:"7fb54b0d6edc84c910b5",5:"3c335bf1dd72ca957262",6:"987ab930d70320e9de11",7:"21ba80aa3751b3b4b200",8:"bbbda38e867acaa03e56",9:"893877b035c3b35f556e",10:"72fccf60a68381f76d55",11:"e50caf7e54aeba14012b",12:"3a716cdc462dbec28cf8",13:"3d730de7c60fa8d18ccb",14:"e11f31e60dab3db1f2ea",15:"6f6e42df3e657913869b",16:"b692b43283275c0bc6b9",17:"62255cf03bb549956c58",18:"7ffc38554bc63393a91e",19:"35726f60c578a23e9017",20:"ba2e2bd0823422a4de6c",21:"2073753ae49abdc23a5e",22:"41ffd63f72a1ec6e59b8",23:"e0c916556828fa70af60",24:"7a57624e89e34e420a52",25:"b33652a002af7a00f907",26:"9cbcbc21da1497c3c88d",27:"7b3dd90cfa2c0d5203d2",28:"53e6616ed021ab731d6c",29:"44433e90d6affacc76f8",30:"196dbd7ed8dc5dac2699",31:"18ef42ac5cec84cc247e",32:"5c7e44cdd6fbfea3e17b",33:"9081ead4ff7da6bbcc09",34:"5ddc08b92106aa050122",35:"813f9fa7bd98fbca9dd8",36:"cf85d431bf885b5e642d",37:"47cbd1ef2f65ae69c2d6",38:"778a114acece521cbeb2",39:"3b0a409728d724b82c12",40:"9b42df34317bf72a31fd",41:"d897544ef0e120fa5e4e",42:"bce71b4227f6a89e1f0e",43:"6dbdea53d2130ebc0609",44:"3cb0ad37cd3b652bf968",45:"2c6b2a0c1ecdf5dbf3c8",46:"9dad3123f2fc347c9f46",47:"a7bb6a30ce7426c8424b",48:"e7d2534c955cec793d9d",49:"27afa66e95971d59227a",50:"adff1b1ecb27fb4bfcad",51:"f693420dcf48a7d94ae8",52:"4c730b50f978ad037ef1",53:"10ff6c8961898574121c",54:"057590a3480a333bd474",55:"3295563b7fbab7d7c92f",56:"392c874cbb83e68ba9b0",57:"0e458cb17af2cd84e871",58:"1606f8fed39bf289ed0e",59:"cb5a57c61337260a25ea",60:"e10d02ed3d3fd3f20f60",61:"ad09f0a95c5679ad6552",62:"7e6e0052d51c7547d70a",63:"0f8d3111b2b4e4f8c57b",64:"ce82fb945a44f47f1c1f",65:"52304eb24aada488c91f",66:"806271562f576dd0122c",67:"371a3d9f0e8c7aa3be9b",68:"5b0ebf4833498e06a8ed",69:"a76ca6ffb3668870b792",70:"da7c2a6096a1f44d78c1",71:"1730b154501db72324c2",72:"c3f9e8708ab92c13ba82",73:"54639ebdb8b503e723e0",74:"ddf9ccf79dcddaf6526e",75:"cf01c9adbf3c4e3828c7",76:"e98d846979e8bfbcf0dd",77:"57945ae646bb44434010"}[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 \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-04-14 09:50:16 * @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-06-18 15:11:23 * @LastEditTime: 2020-06-19 11:36:57
--> -->
<!-- <!--
<customer-assign v-if="assignShow" :brandId="brandId" :clerkId="clerkId" :searchParams="searchInput" :chooseAll="selectRadio" :departObj="departObj" :multipleData="multipleSelection" @closeText="closeText" @submitText="submitText"></customer-assign> <customer-assign v-if="assignShow" :brandId="brandId" :clerkId="clerkId" :searchParams="searchInput" :chooseAll="selectRadio" :departObj="departObj" :multipleData="multipleSelection" @closeText="closeText" @submitText="submitText"></customer-assign>
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
let para = { let para = {
enterpriseId: that.brandId, enterpriseId: that.brandId,
wxEnterpriseRelatedId: that.wxEnterpriseRelatedId, wxEnterpriseRelatedId: that.wxEnterpriseRelatedId,
storeId: that.departObj.departmentId storeId: that.departObj.storeId
}; };
postRequest('/haoban-app-customer-web/clerk-list', para) postRequest('/haoban-app-customer-web/clerk-list', para)
.then(res => { .then(res => {
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
let para = { let para = {
enterpriseId: that.brandId, enterpriseId: that.brandId,
wxEnterpriseRelatedId: that.wxEnterpriseRelatedId, wxEnterpriseRelatedId: that.wxEnterpriseRelatedId,
storeId: that.departObj.departmentId, storeId: that.departObj.storeId,
clerkId: that.clerkId, clerkId: that.clerkId,
keyword: that.searchParams keyword: that.searchParams
}; };
...@@ -331,7 +331,7 @@ export default { ...@@ -331,7 +331,7 @@ export default {
const data = { const data = {
enterpriseId: that.brandId, enterpriseId: that.brandId,
chooseAll: that.chooseAll, chooseAll: that.chooseAll,
storeId: that.departObj.departmentId, storeId: that.departObj.storeId,
clerkId: that.clerkId, clerkId: that.clerkId,
keyword: that.searchParams, keyword: that.searchParams,
memberIds: that.chooseAll == 1 ? '' : Object.keys(that.editRow).length ? that.editRow.memberId : that.multipleData.map(ele => ele.memberId).join(','), memberIds: that.chooseAll == 1 ? '' : Object.keys(that.editRow).length ? that.editRow.memberId : that.multipleData.map(ele => ele.memberId).join(','),
...@@ -370,7 +370,7 @@ export default { ...@@ -370,7 +370,7 @@ export default {
watch: { watch: {
departObj(newData) { departObj(newData) {
const that = this; const that = this;
if (Object.keys(newData).length && newData.isStore == 1) { if (Object.keys(newData).length) {
that.getClerkData(); that.getClerkData();
that.setNum(); that.setNum();
} }
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
}, },
mounted() { mounted() {
const that = this; const that = this;
if (Object.keys(that.departObj).length && that.departObj.isStore == 1) { if (Object.keys(that.departObj).length) {
that.getClerkData(); that.getClerkData();
that.setNum(); that.setNum();
} }
......
<!--
* @Descripttion : 当前组件信息
* @Author : 无尘
* @Date : 2020-02-13 14:02:22
* @LastEditors: 无尘
* @LastEditTime: 2020-06-19 10:55:10
* @FilePath : haoban-3\src\components\app\customer\store-list.vue
-->
<!--
<store-list :departObj="departObj" @getStore="getStore"></store-list>
import storeList from '@/components/app/customer/store-list.vue';
-->
<template>
<div class="depart-list-body">
<div class="depart-name-wrap m-b-20">
<div class="font-14 color-303133">门店 {{ total }}</div>
<div class="flex flex-space-between">
<div>
<el-input placeholder="请输入门店名称/代码" prefix-icon="el-icon-search" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div>
<div class="to-log flex m-t-20"></div>
</div>
</div>
<div class="depart-children-list border-box m-t-18">
<div class="m-t-20">
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
<el-table-column class="cursor-pointer" label="门店名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.storeName || '--' }}</template>
</el-table-column>
<el-table-column class="cursor-pointer" prop="" label="门店类型" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.storeType || '--' }}</template>
</el-table-column>
<el-table-column class="cursor-pointer" prop="" label="门店分组" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.storeGroupName || '--' }}
</template>
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" @click="showMember(scope.row)">查看会员</el-button>
</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<dm-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize" layout="total, prev, pager, next, jumper" :total="total"> </dm-pagination>
</div>
</div>
</div>
</div>
</template>
<script>
import { _debounce } from '@/common/js/public';
import { getRequest } from '@/api/api';
import errMsg from '@/common/js/error';
// import showMsg from '@/common/js/showmsg';
export default {
name: 'depart-list',
components: {},
props: {
departObj: {
type: Object,
default() {
return {
departmentId: '',
departmentName: '',
wxDepartmentId: '',
parentId: '',
isStore: '',
staffCount: '',
bindFlag: ''
};
}
}
},
data() {
return {
nameVisible: false,
departmentName: this.departObj.departmentName || '',
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 10,
total: 0,
tableData: []
};
},
methods: {
showMember(item) {
const that = this;
that.$emit('getStore', item);
},
/**
* 输入
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableList();
}, 500),
// 搜索清除
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableList();
},
/**
* 分页---页码变化
*/
handleSizeChange(val) {
const that = this;
that.pageSize = val;
that.getTableList();
},
/**
* 分页---当前页变化
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableList();
},
/**
* 获取列表数据
*/
getTableList() {
const that = this;
let para = {
parentId: that.departObj.departmentId,
isStore: that.departObj.isStore,
keyWord: that.searchInput || '', // 搜索字段
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize // 一页显示个数
};
getRequest('/haoban-manage3-web/department-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.tableData = resData.result.list || [];
that.total = resData.result.total;
return false;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {
departObj(newData, oldData) {
const that = this;
if (Object.keys(newData)) {
that.currentPage = 1;
that.getTableList();
}
}
},
mounted() {
const that = this;
if (Object.keys(that.departObj)) {
that.currentPage = 1;
that.getTableList();
}
}
};
</script>
<style lang="less" scoped>
.m-b-10 {
margin-bottom: 10px;
}
.el-breadcrumb__inner.is-link:hover,
.el-breadcrumb__inner a:hover {
color: #2f54eb;
}
.log-icon {
width: 28px;
height: 28px;
border-radius: 2px;
margin-right: 15px;
span {
color: #c0c4cc;
}
&:hover {
background: rgba(240, 245, 255, 1);
span {
color: #909399;
}
}
}
.to-log-btn {
width: 102px;
height: 28px;
line-height: 28px;
text-align: center;
background: rgba(245, 247, 250, 1);
&:hover {
color: #597ef7;
}
}
.w-274 {
width: 274px;
}
.iconchangyongicon- {
&:hover {
background: #eaedfd;
border-radius: 2px;
}
}
.depart-list-body {
.depart-id {
margin-top: 5px;
}
.depart-children-list {
padding: 16px 10px;
background: #f5f7fa;
}
}
</style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-06-19 10:25:21 * @LastEditTime: 2020-06-19 11:31:40
--> -->
<template> <template>
<div class="app-detail-wrap"> <div class="app-detail-wrap">
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
<org-tree v-if="gicData.length" :brandId="brandId" :departObj="departObj" :itemData="gicData" @getSelectData="getSelectData"></org-tree> <org-tree v-if="gicData.length" :brandId="brandId" :departObj="departObj" :itemData="gicData" @getSelectData="getSelectData"></org-tree>
</div> </div>
<div class="list-right p-20 border-box"> <div class="list-right p-20 border-box">
<div class="list-right-body"> <store-list v-if="!showMember" :departObj="departObj" @getStore="getStore"></store-list>
<div v-if="showMember" class="list-right-body">
<div class="table-top flex flex-space-between"> <div class="table-top flex flex-space-between">
<div> <div>
<el-select class="w-168" v-model="clerkId" placeholder="" @change="changeCondition"> <el-select class="w-168" v-model="clerkId" placeholder="" @change="changeCondition">
...@@ -77,12 +79,13 @@ ...@@ -77,12 +79,13 @@
</div> </div>
</div> </div>
</div> </div>
<customer-assign v-if="assignShow" :brandId="brandId" :clerkId="clerkId" :searchParams="searchInput" :editRow="editRow" :chooseAll="selectRadio" :departObj="departObj" :multipleData="multipleSelection" @closeText="closeText" @submitText="submitText"></customer-assign> <customer-assign v-if="assignShow" :brandId="brandId" :clerkId="clerkId" :searchParams="searchInput" :editRow="editRow" :chooseAll="selectRadio" :departObj="storeObj" :multipleData="multipleSelection" @closeText="closeText" @submitText="submitText"></customer-assign>
</div> </div>
</template> </template>
<script> <script>
import orgTree from '@/components/company/org-tree.vue'; import orgTree from '@/components/company/org-tree.vue';
import customerAssign from '@/components/app/customer/customer-assign.vue'; import customerAssign from '@/components/app/customer/customer-assign.vue';
import storeList from '@/components/app/customer/store-list.vue';
// import showMsg from '@/common/js/showmsg'; // import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
...@@ -117,7 +120,7 @@ export default { ...@@ -117,7 +120,7 @@ export default {
gicData: [], // gic gicData: [], // gic
clerkId: '0', // 导购 clerkId: '0', // 导购
searchInput: '', searchInput: '',
clerkOptions: [], clerkOptions: [], // 导购下拉列表
tableData: [], tableData: [],
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
...@@ -125,18 +128,31 @@ export default { ...@@ -125,18 +128,31 @@ export default {
loading: false, loading: false,
selectRadio: 0, // 0:选择当页; 1:选择全部 selectRadio: 0, // 0:选择当页; 1:选择全部
multipleSelection: [], multipleSelection: [],
assignShow: false assignShow: false,
// 是否显示会员列表
showMember: false,
storeObj: {}
}; };
}, },
methods: { methods: {
/** /**
* 获取会员数据
*/
getStore(obj) {
const that = this;
that.storeObj = obj;
that.showMember = true;
that.getClerkData();
that.getTableList();
},
/**
* 是否在分配中 * 是否在分配中
*/ */
async assignStatus() { async assignStatus() {
const that = this; const that = this;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let para = { let para = {
storeId: that.departObj.departmentId storeId: that.storeObj.storeId
}; };
getRequest('/haoban-app-customer-web/app-distribute-status', para) getRequest('/haoban-app-customer-web/app-distribute-status', para)
.then(res => { .then(res => {
...@@ -197,26 +213,22 @@ export default { ...@@ -197,26 +213,22 @@ export default {
}, },
/** /**
* 每次选中一个树中节点,把当前数据返回, * 每次选中一个树中节点,把当前数据返回,
* 获取选中部门/门店数据 * 获取选中部门
*/ */
getSelectData(obj) { getSelectData(obj) {
const that = this; const that = this;
console.log(obj); console.log(obj);
that.departObj = obj; that.departObj = obj;
that.selectRadio = 0; that.selectRadio = 0;
that.showMember = false;
that.storeObj = {};
// 判断是不是门店 // 判断是不是门店
if (obj.isStore == 0) { that.currentPage = 1;
that.currentPage = 1; that.tableData = [];
that.tableData = []; that.clerkOptions = [];
that.clerkOptions = []; that.clerkId = '0'; // 导购
that.clerkId = '0'; // 导购 that.searchInput = '';
that.searchInput = ''; that.multipleSelection = [];
that.multipleSelection = [];
return false;
}
// 如果是门店
that.getClerkData();
that.getTableList();
}, },
/** /**
* 表格选择 * 表格选择
...@@ -313,8 +325,12 @@ export default { ...@@ -313,8 +325,12 @@ export default {
ele.expand = false; ele.expand = false;
ele.children = []; ele.children = [];
ele.label = ele.storeGroupName; ele.label = ele.storeGroupName;
if (ele.parentGroupId == 0) {
ele.expand = true;
that.departObj = ele;
}
}); });
that.gicData = await that.treeData(resData.result); that.gicData = await that.treeData(JSON.parse(JSON.stringify(resData.result)));
} }
return false; return false;
} }
...@@ -361,7 +377,7 @@ export default { ...@@ -361,7 +377,7 @@ export default {
let para = { let para = {
enterpriseId: that.brandId, enterpriseId: that.brandId,
wxEnterpriseRelatedId: that.wxEnterpriseRelatedId, wxEnterpriseRelatedId: that.wxEnterpriseRelatedId,
storeId: that.departObj.departmentId storeId: that.storeObj.storeId
}; };
postRequest('/haoban-app-customer-web/clerk-list', para) postRequest('/haoban-app-customer-web/clerk-list', para)
.then(res => { .then(res => {
...@@ -389,7 +405,7 @@ export default { ...@@ -389,7 +405,7 @@ export default {
wxEnterpriseRelatedId: that.wxEnterpriseRelatedId, wxEnterpriseRelatedId: that.wxEnterpriseRelatedId,
pageNum: that.currentPage, pageNum: that.currentPage,
pageSize: that.pageSize, pageSize: that.pageSize,
storeId: that.departObj.departmentId, storeId: that.storeObj.storeId,
clerkId: that.clerkId, clerkId: that.clerkId,
keyword: that.searchInput keyword: that.searchInput
}; };
...@@ -415,6 +431,7 @@ export default { ...@@ -415,6 +431,7 @@ export default {
brandId: function(newData, oldData) { brandId: function(newData, oldData) {
const that = this; const that = this;
if (newData) { if (newData) {
that.showMember = false;
that.currentPage = 1; that.currentPage = 1;
that.tableData = []; that.tableData = [];
that.clerkOptions = []; that.clerkOptions = [];
...@@ -422,6 +439,7 @@ export default { ...@@ -422,6 +439,7 @@ export default {
that.searchInput = ''; that.searchInput = '';
that.selectRadio = 0; that.selectRadio = 0;
that.multipleSelection = []; that.multipleSelection = [];
that.storeObj = {};
that.getGicData(that.brandId); that.getGicData(that.brandId);
} }
} }
...@@ -433,7 +451,7 @@ export default { ...@@ -433,7 +451,7 @@ export default {
that.getGicData(that.brandId); that.getGicData(that.brandId);
} }
}, },
components: { orgTree, customerAssign } components: { orgTree, customerAssign, storeList }
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
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