Commit ea445e57 by 无尘

feat: 增加素材上传

parent 85561373
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.2c854c167a23df830256bee305bdc976.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.8a8723a47c4d3480575d.js></script><script type=text/javascript src=./static/js/vendor.329cb88147b5a2d6f4c1.js></script><script type=text/javascript src=./static/js/app.f2b14b83772d5ad945c3.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.378bcf6b55c55936aacb2403724ea8d3.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.3f15aabf6456f5a51a1c.js></script><script type=text/javascript src=./static/js/vendor.329cb88147b5a2d6f4c1.js></script><script type=text/javascript src=./static/js/app.7796b5a13d0460a03675.js></script></body></html>
\ No newline at end of file
webpackJsonp([19],{"7fkC":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),s=a("Gu7T"),n=a.n(s),l=a("Ke24"),o=a("Ie7z"),c=a("c4uw"),u=a("vRJf"),d=a("l46T"),m=a("Kkt8"),g=a("//Fk"),p=a.n(g),f=a("DAYN"),h={name:"mult-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:"/haoban-manage-web/upload-img"},maxImageLength:{type:Number,default:9},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:this.imageList,fileDatas:[],initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var e,t=window.location.origin,a=void 0;return e=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",a="-1"!=t.indexOf("localhost")?"https://www.gicdev.com":t,this.upUrl=a+this.actionUrl+"?"+e+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(e){var t=this,a=e.size/1024/1024<5;return a||t.$message.error("上传图片大小不能超过 5MB!"),a&&new p.a(function(a,i){var r=new FileReader;r.onload=function(e){var r=new Image;r.onload=function(){var e=this.width,r=this.height;t.imgRate&&""!==t.imgRate&&(Number(t.imgRate.split(":")[0])/Number(t.imgRate.split(":")[1])!=Number(e)/Number(r)&&(t.$message.error("上传图片比例不正确!"),i()));t.imgRate&&""!=t.imgRate||!t.limitW||!t.limitH||e===t.limitW||r===t.limitH||(t.$message.error("上传图片尺寸不正确!"),i()),a()},r.src=e.target.result},r.readAsDataURL(e)})},uploadOnSuccess:function(e,t){this.pass=!0,console.log(e,t),1==e.errorCode?(this.$message.success("上传成功"),this.$emit("uploadOnSuccess",{res:e,file:t})):this.$message.error(e.message)},uploadOnProgress:function(e,t){e&&e.percent&&(this.progress=Math.floor(e.percent))},uploadOnChange:function(e,t){"ready"===e.status?(this.pass=null,this.progress=0):"fail"===e.status&&this.$message.error("图片上传失败,请重试!"),console.log(t,this.fileDatas)},handleExceed:function(e,t){this.$message.warning("当前限制选择 9 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},uploadOnError:function(){this.$message.error("图片上传失败,请重试!")},previewImage:function(e){this.isEnlargeImage=!0,this.initialImg=e},deleteImage:function(e){this.$emit("deleteImage",e)},handleClose:function(e){e()},itemMoveEnd:function(e){this.$emit("sortImg",this.dragImageList)}},watch:{imageList:function(e,t){this.dragImageList=e}},mounted:function(){this.dragImageList=this.imageList},components:{draggable:a.n(f).a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"gic-upload__img"},[a("div",{staticClass:"gic-upload__img__drag"},[a("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:e.itemMoveEnd},model:{value:e.dragImageList,callback:function(t){e.dragImageList=t},expression:"dragImageList"}},[a("transition-group",{attrs:{name:"slide-fade"}},e._l(e.imageList,function(t,i){return a("div",{key:i,class:["img-content",i>=6?"m-t-8":""]},[a("a",{staticClass:"item-img",attrs:{href:t.url}},[a("img",{attrs:{src:t.url,alt:"上传图片"}})]),e._v(" "),a("div",{staticClass:"upload-icon__btn"},[a("i",{staticClass:"el-icon-view",on:{click:function(t){e.previewImage(i)}}}),e._v(" "),a("i",{staticClass:"el-icon-delete",on:{click:function(t){e.deleteImage(i)}}})])])}))],1),e._v(" "),e.pass||0===e.progress?e._e():a("div",{class:["img-content","img-progress",e.imageList.length>=6?"m-t-8":""]},[a("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:e.progress,status:e.propStatus}})],1),e._v(" "),e.imageList&&e.imageList.length<e.maxImageLength?a("div",{class:["img-upload",e.imageList.length>=6?"m-t-8":""]},[a("el-upload",{staticClass:"loader",attrs:{multiple:"",accept:"image/jpg,image/jpeg,image/png,image/gif,image/bmp",action:e.uploadUrl(),"list-type":"picture-card",limit:9,"on-exceed":e.handleExceed,"on-change":e.uploadOnChange,"before-upload":e.beforeAvatarUpload,"on-success":e.uploadOnSuccess,"on-error":e.uploadOnError,"on-progress":e.uploadOnProgress,"file-list":e.fileDatas}},[a("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"图片预览",visible:e.isEnlargeImage,"modal-append-to-body":!1,"before-close":e.handleClose,width:"520px"},on:{"update:visible":function(t){e.isEnlargeImage=t}}},[e.isEnlargeImage?a("el-carousel",{attrs:{trigger:"click","initial-index":e.initialImg,autoplay:!1,height:"500px"}},e._l(e.imageList,function(t,i){return a("el-carousel-item",{key:i,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:t.url},on:{click:function(t){e.isEnlargeImage=!1}}})])})):e._e()],1)],1)},staticRenderFns:[]};var b=a("VU/8")(h,v,!1,function(e){a("oSFG")},null,null).exports,I=a("P9l9"),S=a("3E4D"),_=a("Ch4/"),C=a("PI0u"),y={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:l.a,vueSelectStore:o.a,vueSelectEmployee:c.a,materialPreview:u.a,limitInput:d.a,limitTextarea:m.a,multUploadImage:b},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",topMenuData:[{id:"1",name:"图文素材",path:"/enjoyMaterial?appIcon="+this.$route.query.appIcon},{id:"2",name:this.$route.query.materialId?"查看素材":"新建素材"}],tableData:[],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{}}},methods:{submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(n()(a.defaultStoreList),n()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,materialContent:t.formData.materialContent,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:2,brandId:t.brandId,userId:t.userId};Object(I.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/enjoyMaterial?appIcon="+t.$route.query.appIcon)),_.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.$refs[e].validate(function(e){e&&(t.materialPreviewData=t.ruleFormData,t.previewVisible=!0)})},toReturn:function(){this.$router.go(-1)},changeId:function(e,t){this.formData.imageTextWechatId="",this.formData.imageTextGicId=t.imageTextId},toInput:Object(C.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(I.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeList&&a.result.rangeList.forEach(function(e){1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeList},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}_.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(I.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,t.$route.query.materialId&&t.getImageData(),!1;_.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[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:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"图片上传:",prop:""}},[a("mult-upload-image",{attrs:{imageList:e.imgUrlList}})],1),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var L=a("VU/8")(y,w,!1,function(e){a("vkHu")},"data-v-ebea3626",null);t.default=L.exports},oSFG:function(e,t){},ugwD:function(e,t){},vRJf:function(e,t,a){"use strict";var i={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:Object,default:function(){return{announcementId:"",sendTime:"",sendCount:0,readCount:0,adminCheck:!1,stroreCheck:!1,adminStructor:[],storeStructor:[],receiveType:"0",labelId:"",title:"",img:"",content:"",sendType:"0",attachment:[],pageTop:!1}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{announcementId:"",sendCount:0,readCount:0,title:"",content:""}}},methods:{closeDialog:function(){this.$emit("input",!1)}},watch:{materialPreviewData:function(e,t){this.materialData=e}},mounted:function(){this.materialData=this.materialPreviewData}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left"},[e._v(e._s(e.materialData.title))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("formatTimeYmdHms")(e.materialData.announcementId?e.materialData.sendTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.content,expression:"materialData.content"}],staticClass:"notice-body border-box color-222"})])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])},staticRenderFns:[]};var s=a("VU/8")(i,r,!1,function(e){a("ugwD")},"data-v-045cb006",null);t.a=s.exports},vkHu:function(e,t){}});
\ No newline at end of file
webpackJsonp([19],{"7fkC":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),s=a("Gu7T"),n=a.n(s),l=a("Ke24"),o=a("Ie7z"),c=a("c4uw"),u=a("vRJf"),d=a("l46T"),m=a("Kkt8"),g=a("//Fk"),p=a.n(g),f=a("DAYN"),h={name:"mult-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:"/haoban-manage-web/upload-img"},maxImageLength:{type:Number,default:9},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:this.imageList,initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var e,t=window.location.origin,a=void 0;return e=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",a="-1"!=t.indexOf("localhost")?"https://www.gicdev.com":t,this.upUrl=a+this.actionUrl+"?"+e+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(e){var t=this,a=e.size/1024/1024<5;return a||t.$message.error("上传图片大小不能超过 5MB!"),a&&new p.a(function(a,i){var r=new FileReader;r.onload=function(e){var r=new Image;r.onload=function(){var e=this.width,r=this.height;t.imgRate&&""!==t.imgRate&&(Number(t.imgRate.split(":")[0])/Number(t.imgRate.split(":")[1])!=Number(e)/Number(r)&&(t.$message.error("上传图片比例不正确!"),i()));t.imgRate&&""!=t.imgRate||!t.limitW||!t.limitH||e===t.limitW||r===t.limitH||(t.$message.error("上传图片尺寸不正确!"),i()),a()},r.src=e.target.result},r.readAsDataURL(e)})},uploadOnSuccess:function(e,t){this.pass=!0,console.log(e,t),0==e.errorCode?(this.$message.success("上传成功"),this.$emit("uploadOnSuccess",{res:e,file:t})):this.$message.error(e.message)},uploadOnProgress:function(e,t){e&&e.percent&&(this.progress=Math.floor(e.percent))},uploadOnChange:function(e){"ready"===e.status?(this.pass=null,this.progress=0):"fail"===e.status&&this.$message.error("图片上传失败,请重试!")},uploadOnError:function(){this.$message.error("图片上传失败,请重试!")},previewImage:function(e){this.isEnlargeImage=!0,this.initialImg=e},deleteImage:function(e){this.$emit("deleteImage",e)},handleClose:function(e){e()},itemMoveEnd:function(e){this.$emit("sortImg",this.dragImageList)}},watch:{imageList:function(e,t){this.dragImageList=e}},mounted:function(){this.dragImageList=this.imageList},components:{draggable:a.n(f).a}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"gic-upload__img"},[a("div",{staticClass:"gic-upload__img__drag"},[a("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:e.itemMoveEnd},model:{value:e.dragImageList,callback:function(t){e.dragImageList=t},expression:"dragImageList"}},[a("transition-group",{attrs:{name:"slide-fade"}},e._l(e.imageList,function(t,i){return a("div",{key:i,class:["img-content",i>=6?"m-t-8":""]},[a("a",{staticClass:"item-img",attrs:{href:t.url}},[a("img",{attrs:{src:t.url,alt:"上传图片"}})]),e._v(" "),a("div",{staticClass:"upload-icon__btn"},[a("i",{staticClass:"el-icon-view",on:{click:function(t){e.previewImage(i)}}}),e._v(" "),a("i",{staticClass:"el-icon-delete",on:{click:function(t){e.deleteImage(i)}}})])])}))],1),e._v(" "),e.pass||0===e.progress?e._e():a("div",{class:["img-content","img-progress",e.imageList.length>=6?"m-t-8":""]},[a("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:e.progress,status:e.propStatus}})],1),e._v(" "),e.imageList&&e.imageList.length<e.maxImageLength?a("div",{class:["img-upload",e.imageList.length>=6?"m-t-8":""]},[a("el-upload",{staticClass:"loader",attrs:{multiple:"",accept:"image/jpg,image/jpeg,image/png,image/gif",action:e.uploadUrl(),"list-type":"picture-card","on-change":e.uploadOnChange,"before-upload":e.beforeAvatarUpload,"on-success":e.uploadOnSuccess,"on-error":e.uploadOnError,"on-progress":e.uploadOnProgress}},[a("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"图片预览",visible:e.isEnlargeImage,"modal-append-to-body":!1,"before-close":e.handleClose,width:"520px"},on:{"update:visible":function(t){e.isEnlargeImage=t}}},[e.isEnlargeImage?a("el-carousel",{attrs:{trigger:"click","initial-index":e.initialImg,autoplay:!1,height:"500px"}},e._l(e.imageList,function(t,i){return a("el-carousel-item",{key:i,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[a("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:t.url},on:{click:function(t){e.isEnlargeImage=!1}}})])})):e._e()],1)],1)},staticRenderFns:[]};var b=a("VU/8")(h,v,!1,function(e){a("hWYj")},null,null).exports,I=a("P9l9"),S=a("3E4D"),C=a("Ch4/"),_=a("PI0u"),y={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:l.a,vueSelectStore:o.a,vueSelectEmployee:c.a,materialPreview:u.a,limitInput:d.a,limitTextarea:m.a,multUploadImage:b},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",topMenuData:[{id:"1",name:"图文素材",path:"/enjoyMaterial?appIcon="+this.$route.query.appIcon},{id:"2",name:this.$route.query.materialId?"查看素材":"新建素材"}],tableData:[],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",rangeList:[],imgUrlList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"change"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"change"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{}}},methods:{submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(n()(a.defaultStoreList),n()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,materialContent:t.formData.materialContent,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:2,brandId:t.brandId,userId:t.userId};Object(I.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(S.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/enjoyMaterial?appIcon="+t.$route.query.appIcon)),C.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.$refs[e].validate(function(e){e&&(t.materialPreviewData=t.ruleFormData,t.previewVisible=!0)})},toReturn:function(){this.$router.go(-1)},changeId:function(e,t){this.formData.imageTextWechatId="",this.formData.imageTextGicId=t.imageTextId},toInput:Object(_.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(I.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeList&&a.result.rangeList.forEach(function(e){1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeList},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}C.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(I.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,t.$route.query.materialId&&t.getImageData(),!1;C.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},w={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[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:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"图片上传:",prop:""}},[a("mult-upload-image",{attrs:{imageList:e.imgUrlList}})],1),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var L=a("VU/8")(y,w,!1,function(e){a("Cqfi")},"data-v-47057154",null);t.default=L.exports},Cqfi:function(e,t){},hWYj:function(e,t){},ugwD:function(e,t){},vRJf:function(e,t,a){"use strict";var i={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:Object,default:function(){return{announcementId:"",sendTime:"",sendCount:0,readCount:0,adminCheck:!1,stroreCheck:!1,adminStructor:[],storeStructor:[],receiveType:"0",labelId:"",title:"",img:"",content:"",sendType:"0",attachment:[],pageTop:!1}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{announcementId:"",sendCount:0,readCount:0,title:"",content:""}}},methods:{closeDialog:function(){this.$emit("input",!1)}},watch:{materialPreviewData:function(e,t){this.materialData=e}},mounted:function(){this.materialData=this.materialPreviewData}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left"},[e._v(e._s(e.materialData.title))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("formatTimeYmdHms")(e.materialData.announcementId?e.materialData.sendTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.content,expression:"materialData.content"}],staticClass:"notice-body border-box color-222"})])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])},staticRenderFns:[]};var s=a("VU/8")(i,r,!1,function(e){a("ugwD")},"data-v-045cb006",null);t.a=s.exports}});
\ No newline at end of file
webpackJsonp([22],{J17o:function(t,e){},JO1U:function(t,e){},SB6x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),o=a("Ke24"),s=a("joH8"),l=a("P9l9"),r=a("Ch4/"),c=a("3E4D"),u=a("PI0u"),d={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:o.a,materialRecord:s.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"纷享素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1}},methods:{toInput:Object(u.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newEnjoy")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(l.a)("/haoban-app-material-web/material-to-top",i).then(function(t){1==t.data.errorCode&&(0==e?c.a.showmsg("置顶成功","success"):c.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList())}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDetail:function(t,e){this.showFlag=!0;var a=JSON.parse(n()(e));a.userMessageId="",this.itemRow=a},showRecord:function(){this.detailShow=!0},hideDetailDialog:function(){this.detailShow=!1},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(l.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return c.a.showmsg("删除成功","success"),void a.getTableList();r.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(l.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("新建素材")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.imgUrlList,function(t,e){return a("img",{key:e+"img",staticClass:"table-img",attrs:{src:t.imgUrl,alt:""}})})}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"点赞数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.thumbsUpCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转发数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])},staticRenderFns:[]};var h=a("VU/8")(d,p,!1,function(t){a("JO1U")},"data-v-51eee59c",null);e.default=h.exports},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),s={name:"material-record",props:{detailShow:{type:Boolean,default:!1}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:""},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t,this.currentPage=1,this.getTableList()}},mounted:function(){this.customDialog=this.detailShow}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:t.customDialog,width:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(s,l,!1,function(t){a("J17o")},"data-v-af694bfe",null);e.a=r.exports}});
\ No newline at end of file
webpackJsonp([22],{J17o:function(t,e){},SB6x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),o=a("Ke24"),s=a("joH8"),l=a("P9l9"),r=a("Ch4/"),c=a("3E4D"),u=a("PI0u"),d={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:o.a,materialRecord:s.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"纷享素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1}},methods:{toInput:Object(u.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newEnjoy")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶次数超过限制次数,可关闭其他置顶素材再开启置顶置顶功能":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(l.a)("/haoban-app-material-web/material-to-top",i).then(function(t){1==t.data.errorCode&&(0==e?c.a.showmsg("置顶成功","success"):c.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getNoticeList())}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDetail:function(t,e){this.showFlag=!0;var a=JSON.parse(n()(e));a.userMessageId="",this.itemRow=a},showRecord:function(){this.detailShow=!0},hideDetailDialog:function(){this.detailShow=!1},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(l.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return c.a.showmsg("删除成功","success"),void a.getTableList();r.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(l.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("新建素材")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.imgUrlList,function(t,e){return a("img",{key:e+"img",staticClass:"table-img",attrs:{src:t.imgUrl,alt:""}})})}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"点赞数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.thumbsUpCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转发数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1)])},staticRenderFns:[]};var h=a("VU/8")(d,p,!1,function(t){a("mDS/")},"data-v-516dfd03",null);e.default=h.exports},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),s={name:"material-record",props:{detailShow:{type:Boolean,default:!1}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:""},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t,this.currentPage=1,this.getTableList()}},mounted:function(){this.customDialog=this.detailShow}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:t.customDialog,width:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(s,l,!1,function(t){a("J17o")},"data-v-af694bfe",null);e.a=r.exports},"mDS/":function(t,e){}});
\ No newline at end of file
webpackJsonp([25],{"0qiV":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),l=a("Ch4/"),s=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"图文素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newImageText")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){1==t.data.errorCode&&(0==e?s.a.showmsg("置顶成功","success"):s.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getTableList())}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("删除成功","success"),void a.getTableList();l.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},showDetail:function(t,e){this.$router.push("/newImageText?materialId="+e.materialId)},showRecord:function(){this.detailShow=!0},hideDetailDialog:function(){this.detailShow=!1},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("选择图文")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图文"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.imageTextUrl?a("img",{attrs:{src:e.row.imageTextUrl,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.imageTextTitle)+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"点赞数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.thumbsUpCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转发数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"219"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1),t._v(" "),a("material-record",{attrs:{detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("EKzd")},"data-v-10146a52",null);e.default=d.exports},EKzd:function(t,e){},J17o:function(t,e){},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),l={name:"material-record",props:{detailShow:{type:Boolean,default:!1}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:""},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t,this.currentPage=1,this.getTableList()}},mounted:function(){this.customDialog=this.detailShow}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:t.customDialog,width:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(l,s,!1,function(t){a("J17o")},"data-v-af694bfe",null);e.a=r.exports}});
\ No newline at end of file
webpackJsonp([25],{"1usg":function(t,e){},"33SU":function(t,e){},"AKs/":function(t,e){},ahzF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"card-record-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"52"}}},data:function(){return{}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{toSendDetail:function(t,e,a){this.$router.push("/"+(1==a?"cardSendRecord":"cardGetRecord")+"?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-record-table m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("发送数量"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.usageQuantity))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.saleAmount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送卡券人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sendMemberCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("领取记录")])]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(t){a("AKs/")},"data-v-0698d03e",null).exports,r={name:"card-list-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"51"}}},data:function(){return{}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.$emit("delCard",e.coupCardId)}).catch(function(){})},toEdit:function(t,e){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(r,l,!1,function(t){a("33SU")},"data-v-552374d2",null).exports,c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),p=a("PI0u"),f={name:"online-chat",props:{brandId:{type:String,default:function(){return""}}},components:{cardRecordTable:i,cardListTable:n},data:function(){return{activeTab:"1",leftData:[{tabId:"1",tabName:"短信提醒"},{tabId:"2",tabName:"模板消息"},{tabId:"3",tabName:"图文"},{tabId:"4",tabName:"商品"},{tabId:"5",tabName:"卡券",children:[{tabId:"51",tabName:"卡券列表"},{tabId:"52",tabName:"卡券记录"}]}],chatData:{chatFlag:!1,isMessageRemind:!1,messageRemindTime:"",isTemplateMessage:!1,isImgMessage:!1,isGoodMessage:!1,isIntegralGoodMessage:!1},rules:{messageRemindTime:[{required:!0,message:"请选择时间",trigger:"blur"}]},templateName:"",articleList:[],pageSize:4,pageNum:1,total:0,activeName:"first",goodsList:[],pointList:[],cardCoupChatSwitch:!1,cardListData:[],cardRecordData:[]}},methods:{toNewCard:function(){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon)},delCard:function(t){this.delCardList(t)},toSendDetail:function(t,e,a){this.$router.push("/sendRecord?activeTab="+this.activeTab+"&tabType="+a+"&appIcon="+this.$route.query.appIcon+"&relatedId="+(e.id||e.goodId))},changeChatFlag:function(){this.postSave(this.brandId)},handleCurrentChange:function(t){this.pageNum=t,3==this.activeTab?this.getArticleList(this.brandId):4==this.activeTab?"first"==this.activeName?this.getGoodsList(this.brandId):this.getPointList(this.brandId):51==this.activeTab?this.getCardList(this.brandId):52==this.activeTab&&this.getCardRecord(this.brandId)},saveData:Object(p.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postSave(e.brandId)})},500),postSave:function(t){var e=this;e.pageNum=1,e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second");var a={brandId:t,chatFlag:e.chatData.chatFlag?1:0,isMessageRemind:e.chatData.isMessageRemind?1:0,messageRemindTime:e.chatData.messageRemindTime,isTemplateMessage:e.chatData.isTemplateMessage?1:0,isImgMessage:e.chatData.isImgMessage?1:0,isGoodMessage:e.chatData.isGoodMessage?1:0,isIntegralGoodMessage:e.chatData.isIntegralGoodMessage?1:0,mainStoreFlag:e.chatData.mainStoreFlag,minorStoreFlag:e.chatData.minorStoreFlag,openCardStoreFlag:e.chatData.openCardStoreFlag,clerkSeeOtherFlag:e.chatData.clerkSeeOtherFlag,allowGuideContact:e.chatData.allowGuideContact,allowGuideMobile:e.chatData.allowGuideMobile,allowGuideMessage:e.chatData.allowGuideMessage,allowGuideOnlineChat:e.chatData.allowGuideOnlineChat,isSeeAuthMember:e.chatData.isSeeAuthMember};Object(c.e)("/haoban-app-member-web/customer/save-member-show-setting",a).then(function(a){var s=a.data;if(1==s.errorCode)return u.a.showmsg("保存成功","success"),3==e.activeTab&&e.chatData.isImgMessage&&e.getArticleList(t),void(4==e.activeTab&&(e.chatData.isGoodMessage&&e.getGoodsList(t),e.chatData.isIntegralGoodMessage&&e.getPointList(t),e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second"),e.chatData.isGoodMessage&&!e.chatData.isIntegralGoodMessage&&(e.activeName="first")));d.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTab:function(t){if(t.children)return this.activeTab=t.children[0].tabId,this.getCardSet(this.brandId),!1;this.pageNum=1,this.activeTab=t.tabId,this.getChatSet(this.brandId),this.getCardSet(this.brandId)},handleTab:function(t,e){this.pageNum=1,"first"==t.name?this.getGoodsList(this.brandId):this.getPointList(this.brandId)},getTemplate:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_message_template",a).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.templateName=a.result||"--"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsList:function(t){var e=this,a={pageSize:e.pageSize,pageNum:e.pageNum,brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.goodsList=a.result.list||[],void("first"==e.activeName&&(e.total=a.result.total));e.goodsList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getPointList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_integal_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.pointList=a.result.list||[],void("second"==e.activeName&&(e.total=a.result.total));e.pointList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getArticleList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_img_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.articleList=a.result.list||[],void(e.total=a.result.total);e.articleList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delCardList:function(t){var e=this,a={brandId:e.brandId,coupCardId:t};Object(c.e)("/haoban-app-member-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getCardList(e.brandId);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardListData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardRecord:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardRecordData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postSaveCard:function(t){var e=this,a={cardCoupChatSwitch:e.cardCoupChatSwitch?1:0,brandId:t};Object(c.e)("/haoban-app-member-web/customer/save-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("设置成功","success"),void(e.cardCoupChatSwitch&&e.getCardList(e.brandId));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardCoupChatSwitch=1==a.result.cardCoupChatSwitch,e.cardCoupChatSwitch=a.result.cardCoupChatSwitch,"51"==e.activeTab&&e.cardCoupChatSwitch&&(e.pageSize=4,e.getCardList(e.brandId)),void("52"==e.activeTab&&(e.pageSize=6,e.getCardRecord(e.brandId)));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-online-chat-setting",a).then(function(a){var s=a.data;1!=s.errorCode?d.a.errorMsg(s):s.result&&(s.result.chatFlag=1==s.result.chatFlag,s.result.isMessageRemind=1==s.result.isMessageRemind,s.result.messageRemindTime=s.result.messageRemindTime,s.result.isTemplateMessage=1==s.result.isTemplateMessage,s.result.isImgMessage=1==s.result.isImgMessage,s.result.isGoodMessage=1==s.result.isGoodMessage,s.result.isIntegralGoodMessage=1==s.result.isIntegralGoodMessage,e.chatData=s.result,2==e.activeTab&&e.getTemplate(t),3==e.activeTab&&s.result.isImgMessage&&(e.pageSize=4,e.getArticleList(t)),4==e.activeTab&&(e.pageSize=3,s.result.isGoodMessage&&e.getGoodsList(t),s.result.isIntegralGoodMessage&&e.getPointList(t),s.result.isIntegralGoodMessage&&!s.result.isGoodMessage&&(e.activeName="second"),s.result.isGoodMessage&&!s.result.isIntegralGoodMessage&&(e.activeName="first")))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){""!=t&&(this.getChatSet(t),this.getCardSet(t))}},mounted:function(){this.$emit("showTab","2"),""!=this.brandId&&(this.getChatSet(this.brandId),this.getCardSet(this.brandId)),""!=this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab||"1")}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"online-chat-content border-box"},[a("div",{staticClass:"online-chat-switch"},[a("span",{staticClass:"font-14 color-606266 p-r-18"},[t._v("在线沟通")]),a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeChatFlag},model:{value:t.chatData.chatFlag,callback:function(e){t.$set(t.chatData,"chatFlag",e)},expression:"chatData.chatFlag"}}),a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("若小程序使用了GIC 好办客服功能,会员将无法在公众号联系导购")])],1),t._v(" "),a("div",{staticClass:"online-chat-body"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"online-chat-left"},[a("ul",[t._l(t.leftData,function(e,s){return[a("li",{key:s+"left",class:["online-chat-left_li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))]),t._v(" "),e.children&&e.children.length?a("ul",{key:s+"left1"},[t._l(e.children,function(e,s){return[a("li",{key:s+"left12",class:["online-chat-left_li child-li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))])]})],2):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"online-chat-right border-box"},[a("div",{staticClass:"online-chat-right_body"},[1==t.activeTab?a("div",{staticClass:"online-chat-message"},[a("el-form",{ref:"msgForm",staticClass:"demo-ruleForm",attrs:{model:t.chatData,rules:t.rules,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"短信提醒",prop:"name"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isMessageRemind,callback:function(e){t.$set(t.chatData,"isMessageRemind",e)},expression:"chatData.isMessageRemind"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心")])],1),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:"",prop:"messageRemindTime"}},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("下发时间设置")]),a("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:59"},placeholder:"选择时间"},model:{value:t.chatData.messageRemindTime,callback:function(e){t.$set(t.chatData,"messageRemindTime",e)},expression:"chatData.messageRemindTime"}}),a("span",{staticClass:"font-14 color-909399 p-l-20"},[t._v("该事件设置将在当日生效")])],1):t._e(),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveData("msgForm")}}},[t._v("保存")])],1):t._e()],1)],1):t._e(),t._v(" "),2==t.activeTab?a("div",{staticClass:"online-chat-template"},[t._m(0),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板消息")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isTemplateMessage,callback:function(e){t.$set(t.chatData,"isTemplateMessage",e)},expression:"chatData.isTemplateMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后立即生效。")])],1),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板名字:")]),t._v(t._s(t.templateName))])]):t._e(),t._v(" "),3==t.activeTab?a("div",{staticClass:"online-chat-article"},[t._m(1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("图文")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isImgMessage,callback:function(e){t.$set(t.chatData,"isImgMessage",e)},expression:"chatData.isImgMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC图文")])],1),t._v(" "),t.chatData.isImgMessage?a("div",{staticClass:"m-t-20 p-l-50"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.articleList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"图片","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.img?a("img",{attrs:{src:e.row.img,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.title)+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"作者","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.authorName||"--"))]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"4")}}},[t._v("发送记录")])]}}])})],1),t._v(" "),0!=t.articleList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),4==t.activeTab?a("div",{staticClass:"online-chat-goods"},[t._m(2),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("达摩微商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isGoodMessage,callback:function(e){t.$set(t.chatData,"isGoodMessage",e)},expression:"chatData.isGoodMessage"}}),a("span",{staticClass:"font-14 color-303133 p-l-40"},[t._v("积分商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isIntegralGoodMessage,callback:function(e){t.$set(t.chatData,"isIntegralGoodMessage",e)},expression:"chatData.isIntegralGoodMessage"}})],1),t._v(" "),t.chatData.isGoodMessage||t.chatData.isIntegralGoodMessage?a("div",{staticClass:"m-t-20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.chatData.isGoodMessage?a("el-tab-pane",{attrs:{label:"达摩微商城",name:"first"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.goodsList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap flex flex-align-center flex-pack-center border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"单价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.stock||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"总销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.saleAmount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")])]}}])})],1)],1):t._e(),t._v(" "),t.chatData.isIntegralGoodMessage?a("el-tab-pane",{attrs:{label:"积分商城",name:"second"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.pointList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"积分费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.integral))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"现金费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("发送记录")])]}}])})],1)],1):t._e()],1),t._v(" "),0!=t.goodsList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),51==t.activeTab?a("div",{staticClass:"online-chat-card"},[t._m(3),t._v(" "),a("div",{staticClass:"m-t-20 m-b-20 flex flex-space-between"},[a("div",{staticClass:"card-top-left"},[a("span",{staticClass:"font-14 color-303133"},[t._v("卡券")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSaveCard(t.brandId)}},model:{value:t.cardCoupChatSwitch,callback:function(e){t.cardCoupChatSwitch=e},expression:"cardCoupChatSwitch"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC卡券")])],1),t._v(" "),a("div",{staticClass:"card-top-right"},[a("el-button",{attrs:{disabled:!t.cardCoupChatSwitch,type:"primary"},on:{click:t.toNewCard}},[t._v("新建卡券")])],1)]),t._v(" "),t.cardCoupChatSwitch?a("card-list-table",{attrs:{activeTab:t.activeTab,tableData:t.cardListData},on:{delCard:t.delCard}}):t._e(),t._v(" "),t.cardListData.length&&t.cardCoupChatSwitch?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e(),t._v(" "),52==t.activeTab?a("div",{staticClass:"online-chat-card_record"},[t._m(4),t._v(" "),a("card-record-table",{attrs:{activeTab:t.activeTab,tableData:t.cardRecordData}}),t._v(" "),t.cardRecordData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:1.导购可在未和会员建立会话的情况下,发送消息给会员"),e("br"),this._v("\n 2.发送形式为模板消息,发送模板消息即表示发送了一条消息通知,并非建立主动会话"),e("br"),this._v("\n 3.频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])}]};var h=a("VU/8")(f,m,!1,function(t){a("1usg")},"data-v-31a27156",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([26],{"1usg":function(t,e){},"33SU":function(t,e){},"AKs/":function(t,e){},ahzF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"card-record-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"52"}}},data:function(){return{}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{toSendDetail:function(t,e,a){this.$router.push("/"+(1==a?"cardSendRecord":"cardGetRecord")+"?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card-record-table m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("发送数量"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.usageQuantity))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.saleAmount))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送卡券人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sendMemberCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("领取记录")])]}}])})],1)],1)},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(t){a("AKs/")},"data-v-0698d03e",null).exports,r={name:"card-list-table",props:{tableData:{type:[Array,Object],default:function(){return[]}},activeTab:{type:[String,Number],default:function(){return"51"}}},data:function(){return{}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的分类?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.$emit("delCard",e.coupCardId)}).catch(function(){})},toEdit:function(t,e){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon+"&coupCardId="+e.coupCardId)}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e(),t._v(" "),2==e.row.cardType?a("span",[t._v("兑换券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"有效期","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(r,l,!1,function(t){a("33SU")},"data-v-552374d2",null).exports,c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),p=a("PI0u"),f={name:"online-chat",props:{brandId:{type:String,default:function(){return""}}},components:{cardRecordTable:i,cardListTable:n},data:function(){return{activeTab:"1",leftData:[{tabId:"1",tabName:"短信提醒"},{tabId:"2",tabName:"模板消息"},{tabId:"3",tabName:"图文"},{tabId:"4",tabName:"商品"},{tabId:"5",tabName:"卡券",children:[{tabId:"51",tabName:"卡券列表"},{tabId:"52",tabName:"卡券记录"}]}],chatData:{chatFlag:!1,isMessageRemind:!1,messageRemindTime:"",isTemplateMessage:!1,isImgMessage:!1,isGoodMessage:!1,isIntegralGoodMessage:!1},rules:{messageRemindTime:[{required:!0,message:"请选择时间",trigger:"blur"}]},templateName:"",articleList:[],pageSize:4,pageNum:1,total:0,activeName:"first",goodsList:[],pointList:[],cardCoupChatSwitch:!1,cardListData:[],cardRecordData:[]}},methods:{toNewCard:function(){this.$router.push("/newCard?activeTab="+this.activeTab+"&appIcon="+this.$route.query.appIcon)},delCard:function(t){this.delCardList(t)},toSendDetail:function(t,e,a){this.$router.push("/sendRecord?activeTab="+this.activeTab+"&tabType="+a+"&appIcon="+this.$route.query.appIcon+"&relatedId="+(e.id||e.goodId))},changeChatFlag:function(){this.postSave(this.brandId)},handleCurrentChange:function(t){this.pageNum=t,3==this.activeTab?this.getArticleList(this.brandId):4==this.activeTab?"first"==this.activeName?this.getGoodsList(this.brandId):this.getPointList(this.brandId):51==this.activeTab?this.getCardList(this.brandId):52==this.activeTab&&this.getCardRecord(this.brandId)},saveData:Object(p.a)(function(t){var e=this;e.$refs[t].validate(function(t){if(!t)return!1;e.postSave(e.brandId)})},500),postSave:function(t){var e=this;e.pageNum=1,e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second");var a={brandId:t,chatFlag:e.chatData.chatFlag?1:0,isMessageRemind:e.chatData.isMessageRemind?1:0,messageRemindTime:e.chatData.messageRemindTime,isTemplateMessage:e.chatData.isTemplateMessage?1:0,isImgMessage:e.chatData.isImgMessage?1:0,isGoodMessage:e.chatData.isGoodMessage?1:0,isIntegralGoodMessage:e.chatData.isIntegralGoodMessage?1:0,mainStoreFlag:e.chatData.mainStoreFlag,minorStoreFlag:e.chatData.minorStoreFlag,openCardStoreFlag:e.chatData.openCardStoreFlag,clerkSeeOtherFlag:e.chatData.clerkSeeOtherFlag,allowGuideContact:e.chatData.allowGuideContact,allowGuideMobile:e.chatData.allowGuideMobile,allowGuideMessage:e.chatData.allowGuideMessage,allowGuideOnlineChat:e.chatData.allowGuideOnlineChat,isSeeAuthMember:e.chatData.isSeeAuthMember};Object(c.e)("/haoban-app-member-web/customer/save-member-show-setting",a).then(function(a){var s=a.data;if(1==s.errorCode)return u.a.showmsg("保存成功","success"),3==e.activeTab&&e.chatData.isImgMessage&&e.getArticleList(t),void(4==e.activeTab&&(e.chatData.isGoodMessage&&e.getGoodsList(t),e.chatData.isIntegralGoodMessage&&e.getPointList(t),e.chatData.isIntegralGoodMessage&&!e.chatData.isGoodMessage&&(e.activeName="second"),e.chatData.isGoodMessage&&!e.chatData.isIntegralGoodMessage&&(e.activeName="first")));d.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTab:function(t){if(t.children)return this.activeTab=t.children[0].tabId,this.getCardSet(this.brandId),!1;this.pageNum=1,this.activeTab=t.tabId,this.getChatSet(this.brandId),this.getCardSet(this.brandId)},handleTab:function(t,e){this.pageNum=1,"first"==t.name?this.getGoodsList(this.brandId):this.getPointList(this.brandId)},getTemplate:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_message_template",a).then(function(t){var a=t.data;1!=a.errorCode?d.a.errorMsg(a):e.templateName=a.result||"--"}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGoodsList:function(t){var e=this,a={pageSize:e.pageSize,pageNum:e.pageNum,brandId:t};Object(c.e)("/haoban-app-member-web/customer/find_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.goodsList=a.result.list||[],void("first"==e.activeName&&(e.total=a.result.total));e.goodsList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getPointList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_integal_good_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.pointList=a.result.list||[],void("second"==e.activeName&&(e.total=a.result.total));e.pointList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getArticleList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/customer/find_img_list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.articleList=a.result.list||[],void(e.total=a.result.total);e.articleList=[],e.total=0,d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delCardList:function(t){var e=this,a={brandId:e.brandId,coupCardId:t};Object(c.e)("/haoban-app-member-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getCardList(e.brandId);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardList:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardListData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardRecord:function(t){var e=this,a={brandId:t,pageSize:e.pageSize,pageNum:e.pageNum};Object(c.e)("/haoban-app-member-web/cardCoupon/find-card-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.cardRecordData=a.result.list||[],void(e.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postSaveCard:function(t){var e=this,a={cardCoupChatSwitch:e.cardCoupChatSwitch?1:0,brandId:t};Object(c.e)("/haoban-app-member-web/customer/save-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("设置成功","success"),void(e.cardCoupChatSwitch&&e.getCardList(e.brandId));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getCardSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-card-coup-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.cardCoupChatSwitch=1==a.result.cardCoupChatSwitch,e.cardCoupChatSwitch=a.result.cardCoupChatSwitch,"51"==e.activeTab&&e.cardCoupChatSwitch&&(e.pageSize=4,e.getCardList(e.brandId)),void("52"==e.activeTab&&(e.pageSize=6,e.getCardRecord(e.brandId)));d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getChatSet:function(t){var e=this,a={brandId:t};Object(c.e)("/haoban-app-member-web/customer/find-online-chat-setting",a).then(function(a){var s=a.data;1!=s.errorCode?d.a.errorMsg(s):s.result&&(s.result.chatFlag=1==s.result.chatFlag,s.result.isMessageRemind=1==s.result.isMessageRemind,s.result.messageRemindTime=s.result.messageRemindTime,s.result.isTemplateMessage=1==s.result.isTemplateMessage,s.result.isImgMessage=1==s.result.isImgMessage,s.result.isGoodMessage=1==s.result.isGoodMessage,s.result.isIntegralGoodMessage=1==s.result.isIntegralGoodMessage,e.chatData=s.result,2==e.activeTab&&e.getTemplate(t),3==e.activeTab&&s.result.isImgMessage&&(e.pageSize=4,e.getArticleList(t)),4==e.activeTab&&(e.pageSize=3,s.result.isGoodMessage&&e.getGoodsList(t),s.result.isIntegralGoodMessage&&e.getPointList(t),s.result.isIntegralGoodMessage&&!s.result.isGoodMessage&&(e.activeName="second"),s.result.isGoodMessage&&!s.result.isIntegralGoodMessage&&(e.activeName="first")))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){""!=t&&(this.getChatSet(t),this.getCardSet(t))}},mounted:function(){this.$emit("showTab","2"),""!=this.brandId&&(this.getChatSet(this.brandId),this.getCardSet(this.brandId)),""!=this.$route.query.activeTab&&(this.activeTab=this.$route.query.activeTab||"1")}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"online-chat-content border-box"},[a("div",{staticClass:"online-chat-switch"},[a("span",{staticClass:"font-14 color-606266 p-r-18"},[t._v("在线沟通")]),a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeChatFlag},model:{value:t.chatData.chatFlag,callback:function(e){t.$set(t.chatData,"chatFlag",e)},expression:"chatData.chatFlag"}}),a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("若小程序使用了GIC 好办客服功能,会员将无法在公众号联系导购")])],1),t._v(" "),a("div",{staticClass:"online-chat-body"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"online-chat-left"},[a("ul",[t._l(t.leftData,function(e,s){return[a("li",{key:s+"left",class:["online-chat-left_li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))]),t._v(" "),e.children&&e.children.length?a("ul",{key:s+"left1"},[t._l(e.children,function(e,s){return[a("li",{key:s+"left12",class:["online-chat-left_li child-li",t.activeTab==e.tabId?"active-li":""],on:{click:function(a){t.changeTab(e)}}},[t._v(t._s(e.tabName))])]})],2):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"online-chat-right border-box"},[a("div",{staticClass:"online-chat-right_body"},[1==t.activeTab?a("div",{staticClass:"online-chat-message"},[a("el-form",{ref:"msgForm",staticClass:"demo-ruleForm",attrs:{model:t.chatData,rules:t.rules,"label-width":"70px"}},[a("el-form-item",{attrs:{label:"短信提醒",prop:"name"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isMessageRemind,callback:function(e){t.$set(t.chatData,"isMessageRemind",e)},expression:"chatData.isMessageRemind"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,会员发送消息,超出10条后,即发送短信给导购,每日最多触发一条短信,短信计入商家计费中心")])],1),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:"",prop:"messageRemindTime"}},[a("span",{staticClass:"font-14 color-606266 p-r-10"},[t._v("下发时间设置")]),a("el-time-select",{attrs:{"picker-options":{start:"00:00",step:"00:15",end:"23:59"},placeholder:"选择时间"},model:{value:t.chatData.messageRemindTime,callback:function(e){t.$set(t.chatData,"messageRemindTime",e)},expression:"chatData.messageRemindTime"}}),a("span",{staticClass:"font-14 color-909399 p-l-20"},[t._v("该事件设置将在当日生效")])],1):t._e(),t._v(" "),t.chatData.isMessageRemind?a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveData("msgForm")}}},[t._v("保存")])],1):t._e()],1)],1):t._e(),t._v(" "),2==t.activeTab?a("div",{staticClass:"online-chat-template"},[t._m(0),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板消息")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isTemplateMessage,callback:function(e){t.$set(t.chatData,"isTemplateMessage",e)},expression:"chatData.isTemplateMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("仅支持专属导购对会员发送模板消息,每个会员每个自然月模板消息发送次数不超过三次。设置后立即生效。")])],1),t._v(" "),a("div",{staticClass:"m-t-23"},[a("span",{staticClass:"font-14 color-303133"},[t._v("模板名字:")]),t._v(t._s(t.templateName))])]):t._e(),t._v(" "),3==t.activeTab?a("div",{staticClass:"online-chat-article"},[t._m(1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("图文")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isImgMessage,callback:function(e){t.$set(t.chatData,"isImgMessage",e)},expression:"chatData.isImgMessage"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC图文")])],1),t._v(" "),t.chatData.isImgMessage?a("div",{staticClass:"m-t-20 p-l-50"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.articleList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"图片","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.img?a("img",{attrs:{src:e.row.img,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.title)+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"作者","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.authorName||"--"))]}}])}),t._v(" "),a("el-table-column",{scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"4")}}},[t._v("发送记录")])]}}])})],1),t._v(" "),0!=t.articleList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),4==t.activeTab?a("div",{staticClass:"online-chat-goods"},[t._m(2),t._v(" "),a("div",{staticClass:"m-t-20"},[a("span",{staticClass:"font-14 color-303133"},[t._v("达摩微商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isGoodMessage,callback:function(e){t.$set(t.chatData,"isGoodMessage",e)},expression:"chatData.isGoodMessage"}}),a("span",{staticClass:"font-14 color-303133 p-l-40"},[t._v("积分商城")]),a("el-switch",{staticClass:"m-l-10",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSave(t.brandId)}},model:{value:t.chatData.isIntegralGoodMessage,callback:function(e){t.$set(t.chatData,"isIntegralGoodMessage",e)},expression:"chatData.isIntegralGoodMessage"}})],1),t._v(" "),t.chatData.isGoodMessage||t.chatData.isIntegralGoodMessage?a("div",{staticClass:"m-t-20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.chatData.isGoodMessage?a("el-tab-pane",{attrs:{label:"达摩微商城",name:"first"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.goodsList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap flex flex-align-center flex-pack-center border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"单价(元)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"库存"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.stock||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"总销量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.saleAmount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"1")}}},[t._v("发送记录")])]}}])})],1)],1):t._e(),t._v(" "),t.chatData.isIntegralGoodMessage?a("el-tab-pane",{attrs:{label:"积分商城",name:"second"}},[a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.pointList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"商品信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box"},[a("img",{attrs:{src:e.row.goodImg,alt:""}})]),t._v(" "),a("div",{staticClass:"article-title flex flex-column"},[a("p",{staticClass:"font-14 color-606266"},[t._v(t._s(e.row.goodName))]),t._v(" "),a("p",{staticClass:"font-12 color-909399"},[t._v(t._s(e.row.goodCode))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"积分费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.integral))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"现金费用"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.goodPrice))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.publishTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.publishTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送图文的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer"}},[t._v("导购发送图文人数"),a("i",{staticClass:"el-icon-info font-12 color-606266"})])])]}},{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.pushCount)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toSendDetail(e.$index,e.row,"2")}}},[t._v("发送记录")])]}}])})],1)],1):t._e()],1),t._v(" "),0!=t.goodsList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()]):t._e(),t._v(" "),51==t.activeTab?a("div",{staticClass:"online-chat-card"},[t._m(3),t._v(" "),a("div",{staticClass:"m-t-20 m-b-20 flex flex-space-between"},[a("div",{staticClass:"card-top-left"},[a("span",{staticClass:"font-14 color-303133"},[t._v("卡券")]),a("el-switch",{staticClass:"m-l-20",attrs:{"active-text":"","inactive-text":""},on:{change:function(e){t.postSaveCard(t.brandId)}},model:{value:t.cardCoupChatSwitch,callback:function(e){t.cardCoupChatSwitch=e},expression:"cardCoupChatSwitch"}}),a("span",{staticClass:"font-14 color-909399 p-l-24"},[t._v("开启后,导购与会员聊天可发送GIC卡券")])],1),t._v(" "),a("div",{staticClass:"card-top-right"},[a("el-button",{attrs:{disabled:!t.cardCoupChatSwitch,type:"primary"},on:{click:t.toNewCard}},[t._v("新建卡券")])],1)]),t._v(" "),t.cardCoupChatSwitch?a("card-list-table",{attrs:{activeTab:t.activeTab,tableData:t.cardListData},on:{delCard:t.delCard}}):t._e(),t._v(" "),t.cardListData.length&&t.cardCoupChatSwitch?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e(),t._v(" "),52==t.activeTab?a("div",{staticClass:"online-chat-card_record"},[t._m(4),t._v(" "),a("card-record-table",{attrs:{activeTab:t.activeTab,tableData:t.cardRecordData}}),t._v(" "),t.cardRecordData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{"current-page":t.pageNum,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1):t._e()])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:1.导购可在未和会员建立会话的情况下,发送消息给会员"),e("br"),this._v("\n 2.发送形式为模板消息,发送模板消息即表示发送了一条消息通知,并非建立主动会话"),e("br"),this._v("\n 3.频繁使用模板消息,可能导致微信封闭模板消息及会员取关率增加,请谨慎使用")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取微信营销素材库中的图文,配置后,导购可以选择对应的营销图文发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("配置说明:选取达摩微商城及积分商城中的商品,配置后,导购可以选择对应的商品发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("选取GIC中卡券营销适用好办的卡券,配置后,导购可以选择对应的卡券发送给会员")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-1890ff",staticStyle:{"align-self":"flex-start"}}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])}]};var h=a("VU/8")(f,m,!1,function(t){a("1usg")},"data-v-31a27156",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([26],{"0qiV":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Ke24"),n=a("joH8"),o=a("P9l9"),l=a("Ch4/"),s=a("3E4D"),r=a("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:i.a,materialRecord:n.a},data:function(){var t=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",topMenuData:[{id:"1",name:"图文素材"}],tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近一个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"最近三个月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}}],onPick:function(e){var a=e.maxDate,i=e.minDate;t.choiceDateCopy=[i.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,i=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>i||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0,detailShow:!1}},methods:{toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},toCreate:function(){this.$router.push("/newImageText")},toSetTop:function(t,e){var a=this;a.$confirm(0==e?"置顶次数超过限制次数,可关闭其他置顶素材再开启置顶置顶功能":"确定「取消置顶」该条素材吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postTop(t,e)})},postTop:function(t,e){var a=this,i={materialId:t,topFlag:0==e?1:0};Object(o.a)("/haoban-app-material-web/material-to-top",i).then(function(t){1==t.data.errorCode&&(0==e?s.a.showmsg("置顶成功","success"):s.a.showmsg("取消置顶成功","success"),a.currentPage=1,a.getNoticeList())}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除该素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(t,e){var a=this,i={materialId:t.materialId};Object(o.e)("/haoban-app-material-web/material-del",i).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("删除成功","success"),void a.getTableList();l.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},showDetail:function(t,e){this.$router.push("/newImageText?materialId="+e.materialId)},showRecord:function(){this.detailShow=!0},hideDetailDialog:function(){this.detailShow=!1},getTableList:function(t){var e=this;e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={materialTitle:e.conditionObj.searchInput||"",startTimeStr:e.conditionObj.dateRange[0]||"",endTimeStr:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(o.a)("/haoban-app-material-web/material-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log border-box"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"chat-log-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toCreate}},[t._v("选择图文")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"标题","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.materialTitle||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"图文"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"img-wrap border-box flex flex-align-center flex-pack-center"},[e.row.imageTextUrl?a("img",{attrs:{src:e.row.imageTextUrl,alt:""}}):t._e()]),t._v(" "),a("div",{staticClass:"article-title font-14 color-606266 p-l-10"},[t._v("\n "+t._s(e.row.imageTextTitle)+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"点赞数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.thumbsUpCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"转发数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.tranferCount||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发布时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSetTop(e.row.materialId,e.row.topFlag)}}},[t._v(t._s(1==e.row.topFlag?"取消置顶":"置顶"))]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showDetail(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.showRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)],1),t._v(" "),a("material-record",{attrs:{detailShow:t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("F5YQ")},"data-v-0468b6a4",null);e.default=d.exports},F5YQ:function(t,e){},J17o:function(t,e){},joH8:function(t,e,a){"use strict";var i=a("P9l9"),n=a("Ch4/"),o=a("PI0u"),l={name:"material-record",props:{detailShow:{type:Boolean,default:!1}},data:function(){return{customDialog:!1,activeName:"first",tableData:[],conditionObj:{searchInput:""},currentPage:1,pageSize:5,total:0}},methods:{handleTab:function(){this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},handleClose:function(t){t(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableList:function(t){var e=this,a={materialTitle:e.conditionObj.searchInput||"",relatedType:"first"==e.activeName?2:1,pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(i.a)("/haoban-app-material-web/material-log",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(t,e){this.customDialog=t,this.currentPage=1,this.getTableList()}},mounted:function(){this.customDialog=this.detailShow}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"记录",visible:t.customDialog,width:"739px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"点赞记录",name:"first"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条点赞记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"点赞人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"点赞时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"转发记录",name:"second"}},[a("div",{staticClass:"m-b-20 flex"},[a("el-input",{staticClass:"w-203",attrs:{placeholder:"请输入姓名/手机号/code","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}}),t._v(" "),a("span",{staticClass:"p-l-10 l-h-32"},[t._v("共"+t._s(t.total)+"条转发记录")])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{label:"转发人",width:"150","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[t._v(t._s(e.row.userName))]),t._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[t._v(t._s(e.row.storeName))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转发时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1)],1)],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(l,s,!1,function(t){a("J17o")},"data-v-af694bfe",null);e.a=r.exports}});
\ No newline at end of file
webpackJsonp([27],{NajC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),o=a.n(l),n=a("Ke24"),s=a("Ie7z"),c=a("c4uw"),u=a("vRJf"),d=a("l46T"),m=a("Kkt8"),p=a("P9l9"),f=a("3E4D"),g=a("Ch4/"),h=a("PI0u"),v={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:n.a,vueSelectStore:s.a,vueSelectEmployee:c.a,materialPreview:u.a,limitInput:d.a,limitTextarea:m.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",topMenuData:[{id:"1",name:"图文素材",path:"/imageText?appIcon="+this.$route.query.appIcon},{id:"2",name:"选择图文"}],tableData:[],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{imageTextWechatId:[{required:!0,message:"请选择图文",trigger:"change"}],materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"change"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"change"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{}}},methods:{submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(o()(a.defaultStoreList),o()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,imageTextWechatId:t.formData.imageTextWechatId,imageTextGicId:t.formData.imageTextGicId,materialContent:t.formData.materialContent,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:1,brandId:t.brandId,userId:t.userId};Object(p.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(f.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/imageText?appIcon="+t.$route.query.appIcon)),g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.$refs[e].validate(function(e){e&&(t.materialPreviewData=t.ruleFormData,t.previewVisible=!0)})},toReturn:function(){this.$router.go(-1)},changeId:function(e,t){this.formData.imageTextWechatId=e,this.formData.imageTextGicId=t.imageTextId},toInput:Object(h.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e,this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1),this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(p.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeList&&a.result.rangeList.forEach(function(e){1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeList},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(p.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,t.$route.query.materialId&&t.getImageData(),!1;g.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[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:"imageTextWechatId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入图文标题",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:!!e.$route.query.materialId,label:t.row.imageTextWechatId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.formData.imageTextWechatId,callback:function(t){e.$set(e.formData,"imageTextWechatId",t)},expression:"formData.imageTextWechatId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"图文标题","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"作者","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.authorName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"使用记录","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[e._v(e._s(t.row.useCount||"--"))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var I=a("VU/8")(v,b,!1,function(e){a("ptgN")},"data-v-e494500e",null);t.default=I.exports},ptgN:function(e,t){},ugwD:function(e,t){},vRJf:function(e,t,a){"use strict";var i={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:Object,default:function(){return{announcementId:"",sendTime:"",sendCount:0,readCount:0,adminCheck:!1,stroreCheck:!1,adminStructor:[],storeStructor:[],receiveType:"0",labelId:"",title:"",img:"",content:"",sendType:"0",attachment:[],pageTop:!1}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{announcementId:"",sendCount:0,readCount:0,title:"",content:""}}},methods:{closeDialog:function(){this.$emit("input",!1)}},watch:{materialPreviewData:function(e,t){this.materialData=e}},mounted:function(){this.materialData=this.materialPreviewData}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left"},[e._v(e._s(e.materialData.title))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("formatTimeYmdHms")(e.materialData.announcementId?e.materialData.sendTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.content,expression:"materialData.content"}],staticClass:"notice-body border-box color-222"})])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])},staticRenderFns:[]};var l=a("VU/8")(i,r,!1,function(e){a("ugwD")},"data-v-045cb006",null);t.a=l.exports}});
\ No newline at end of file
webpackJsonp([27],{NajC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("mvHQ"),r=a.n(i),l=a("Gu7T"),o=a.n(l),n=a("Ke24"),s=a("Ie7z"),c=a("c4uw"),u=a("vRJf"),d=a("l46T"),m=a("Kkt8"),p=a("P9l9"),f=a("3E4D"),g=a("Ch4/"),v=a("PI0u"),h={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{commonDetailTop:n.a,vueSelectStore:s.a,vueSelectEmployee:c.a,materialPreview:u.a,limitInput:d.a,limitTextarea:m.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",topMenuData:[{id:"1",name:"图文素材",path:"/imageText?appIcon="+this.$route.query.appIcon},{id:"2",name:"选择图文"}],tableData:[],searchInput:"",selectType:"",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1,openNextBool:!0},defaultSelection:[],changed:"",onlyPerson:!1,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},currentPage:1,pageSize:6,total:0,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,userId:JSON.parse(localStorage.getItem("userInfo")).userId,formData:{materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},rules:{imageTextWechatId:[{required:!0,message:"请选择图文",trigger:"change"}],materialTitle:[{required:!0,message:"请请输入素材标题",trigger:"blur"}],materialContent:[{required:!0,message:"请请输入发送内容",trigger:"blur"}],rangeList:[{validator:function(e,t,a){if(""==t||!t.length)return a(new Error("请选择选择行政架构或门店架构"));a()},trigger:"change"}]},previewVisible:!1,materialPreviewData:{}}},methods:{submitForm:function(e,t){var a=this;a.formData.rangeList=[].concat(o()(a.defaultStoreList),o()(a.defaultSelection)),a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})},postSaveCard:function(e){var t=this,a=[];t.formData.rangeList.forEach(function(e){a.push({groupId:2==e.type?e.groupId:"",storeId:3==e.type?e.storeId:"",storeFlag:e.isStoreGroup})});var i={enterpriseId:t.enterpriseId,imageTextWechatId:t.formData.imageTextWechatId,imageTextGicId:t.formData.imageTextGicId,materialContent:t.formData.materialContent,materialTitle:t.formData.materialTitle,rangeListStr:r()(a),topFlag:t.formData.topFlag?1:0,relatedType:1,brandId:t.brandId,userId:t.userId};Object(p.e)("/haoban-app-material-web/material-add",i).then(function(a){var i=a.data;1==i.errorCode&&(f.a.showmsg("新建成功","success"),e?(t.formData={materialId:"",imageTextWechatId:"",imageTextGicId:"",rangeList:[],materialTitle:"",materialContent:"",topFlag:!1},t.defaultStoreList=[],t.defaultSelection=[]):t.$router.push("/imageText?appIcon="+t.$route.query.appIcon)),g.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},previewData:function(e){var t=this;t.$refs[e].validate(function(e){e&&(t.materialPreviewData=t.ruleFormData,t.previewVisible=!0)})},toReturn:function(){this.$router.go(-1)},changeId:function(e,t){this.formData.imageTextWechatId=e,this.formData.imageTextGicId=t.imageTextId},toInput:Object(v.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},showDialogLayer:function(e,t){return!this.$route.query.materialId&&(this.selectType=e,this.changed=e,"store"===e?(this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0})):(this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1,openNextBool:!0},void(this.defaultSelection=t)))},handleSelectedList:function(e){"store"===this.selectType?this.defaultStoreList=e:this.defaultSelection=e,this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},delDepart:function(e,t,a){if(this.$route.query.materialId)return!1;t.splice(e,1),this.formData.rangeList=[].concat(o()(this.defaultStoreList),o()(this.defaultSelection))},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getImageData:function(){var e=this,t={materialId:e.$route.query.materialId,brandId:e.brandId};Object(p.a)("/haoban-app-material-web/material-detail",t).then(function(t){var a=t.data;if(1==a.errorCode){var i=[],r=[];return a.result.rangeList&&a.result.rangeList.forEach(function(e){1==e.storeFlag?i.push(e):r.push(e)}),e.formData={materialId:a.result.materialId,imageTextWechatId:a.result.imageTextWechatId,materialTitle:a.result.materialTitle,materialContent:a.result.materialContent,topFlag:1==a.result.topFlag,rangeList:a.result.rangeList},e.defaultStoreList=i||[],e.defaultSelection=r||[],!1}g.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(e){var t=this,a={title:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(p.a)("/haoban-app-material-web/wechat-material-detail",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.total,t.$route.query.materialId&&t.getImageData(),!1;g.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"chat-log boder-box"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"new-card-body"},[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:"imageTextWechatId"}},[a("div",{staticClass:"search-div"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入图文标题",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:!!e.$route.query.materialId,label:t.row.imageTextWechatId},on:{change:function(a){e.changeId(a,t.row)}},model:{value:e.formData.imageTextWechatId,callback:function(t){e.$set(e.formData,"imageTextWechatId",t)},expression:"formData.imageTextWechatId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"titleName",label:"图文标题","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"作者","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.authorName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"使用记录","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cell"},[e._v(e._s(t.row.useCount||"--"))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-size":e.pageSize,layout:" prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()],1)]),e._v(" "),a("el-form-item",{staticClass:"input-item is-required",attrs:{label:"发送范围:",prop:"rangeList"}},[a("div",{staticClass:"form-item-tip fonr-14 color-909399"},[e._v("下面两项可二选一,非全选。可选择行政架构或门店架构")]),e._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex-column item-cell-select inline-block "},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("depart",e.defaultSelection)}}},[e.defaultSelection.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择行政架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultSelection,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultSelection,"depart")}}})])]})],2)])])])])]),e._v(" "),a("div",{staticClass:"flex m-t-20"},[a("div",{staticClass:"flex-column item-cell-select inline-block"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"240px"},on:{click:function(t){e.showDialogLayer("store",e.defaultStoreList)}}},[e.defaultStoreList.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc p-l-10"},[e._v("请选择门店架构")]),e._v(" "),a("div",{staticClass:"el-select__tags"},[a("span",[e._l(e.defaultStoreList,function(t,i){return[a("span",{key:i,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(i,e.defaultStoreList,"store")}}})])]})],2)])])])])])]),e._v(" "),a("el-form-item",{attrs:{label:"发送内容标题:",prop:"materialTitle"}},[a("limitInput",{attrs:{disflag:!!e.$route.query.materialId,inputWidth:320,inputValue:e.formData.materialTitle,holder:"请输入素材标题",getByType:"word",maxLength:15},on:{"update:inputValue":function(t){e.$set(e.formData,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发送内容:",prop:"materialContent"}},[a("limitTextarea",{attrs:{inputWidth:320,inputValue:e.formData.materialContent,holder:"请输入素材内容",maxLength:1500},on:{"update:inputValue":function(t){e.$set(e.formData,"materialContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"更多设置:",prop:""}},[a("div",[a("el-checkbox",{attrs:{disabled:!!e.$route.query.materialId},model:{value:e.formData.topFlag,callback:function(t){e.$set(e.formData,"topFlag",t)},expression:"formData.topFlag"}},[e._v("置顶")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{on:{click:e.toReturn}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewData("ruleForm")}}},[e._v("预览")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("发布")]),e._v(" "),a("el-button",{attrs:{disabled:!!e.$route.query.materialId,type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("发布并添加下一个")])],1)],1)],1)],1),e._v(" "),a("vue-select-employee",{attrs:{appScene:e.appScene,defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),a("material-preview",{ref:"materialPreview",attrs:{materialPreviewData:e.materialPreviewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var I=a("VU/8")(h,b,!1,function(e){a("SceI")},"data-v-6c6047df",null);t.default=I.exports},SceI:function(e,t){},ugwD:function(e,t){},vRJf:function(e,t,a){"use strict";var i={name:"material-preview",props:{value:{type:Boolean,default:function(){return!1}},materialPreviewData:{type:Object,default:function(){return{announcementId:"",sendTime:"",sendCount:0,readCount:0,adminCheck:!1,stroreCheck:!1,adminStructor:[],storeStructor:[],receiveType:"0",labelId:"",title:"",img:"",content:"",sendType:"0",attachment:[],pageTop:!1}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{materialData:{announcementId:"",sendCount:0,readCount:0,title:"",content:""}}},methods:{closeDialog:function(){this.$emit("input",!1)}},watch:{materialPreviewData:function(e,t){this.materialData=e}},mounted:function(){this.materialData=this.materialPreviewData}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("h2",{staticClass:"font-20 color-222 text-left"},[e._v(e._s(e.materialData.title))]),e._v(" "),a("div",{staticClass:"notice-date m-t-10 flex flex-space-between"},[a("div",{staticClass:"notice-date-left font-10 color-88949C"},[e._v(e._s(e._f("formatTimeYmdHms")(e.materialData.announcementId?e.materialData.sendTime:(new Date).getTime())))]),e._v(" "),a("div",{staticClass:"notice-date-right font-10 color-4d7fd0"})]),e._v(" "),a("div",{directives:[{name:"htmlContent",rawName:"v-htmlContent",value:e.materialData.content,expression:"materialData.content"}],staticClass:"notice-body border-box color-222"})])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])},staticRenderFns:[]};var l=a("VU/8")(i,r,!1,function(e){a("ugwD")},"data-v-045cb006",null);t.a=l.exports}});
\ No newline at end of file
webpackJsonp([97],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,u=n("lRwf"),d=n.n(u),l=n("pRNm"),h=n.n(l),g=n("5tgt"),v=n.n(g);d.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:v()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:v()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:v()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:v()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:v()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:v()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:v()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:v()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:v()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:v()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:v()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:v()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:v()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/workTimeManage",component:v()("enterpriseApp/dailyAttendance","index"),children:[{path:"/workTimeManage",name:"排班管理",component:v()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:v()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:v()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),D=n("zL8q"),x=n.n(D),w=n("Rf8U"),R=n.n(w),C=n("mtWM"),S=n.n(C),T=n("bOdI"),M=n.n(T),b=n("SJI6"),E=n.n(b);d.a.use(E.a);var I=new E.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),H=n("tyqE"),P=n.n(H),F=n("pRVe"),L=n.n(F),G=n("SE7k"),N=n.n(G),O=n("XsK6"),Y=n.n(O),z=n("QRL9"),J=n.n(z),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Z={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(Z),Vue.use(Y.a),Vue.use(J.a),Vue.use(N.a),Vue.use(L.a),Vue.use(P.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(x.a,{size:"large"}),Vue.use(R.a,S.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||S.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){D.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,21],"./contacts/addDepartment.vue":["HHRu",0,18],"./contacts/addEmployee.vue":["00Sv",57],"./contacts/addGroup.vue":["mPjx",0,66],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,56],"./contacts/employeeIo.vue":["Rwbg",0,77],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,63],"./contacts/recordInfo.vue":["67iC",0,15],"./contacts/recordIo.vue":["738z",0,23],"./contacts/recycle.vue":["HkK0",0,35],"./contacts/shareAddDepartment.vue":["q5Ri",0,17],"./contacts/shareCode.vue":["JsWW",0,40],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,86],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,54],"./contacts/storeIo.vue":["RHxA",0,83],"./contacts/unemployee.vue":["TGrv",0,16],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,37],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,55],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,49],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,76],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,47],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,81],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,61],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,38],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,95],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,39],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,78],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",51],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",93],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",58],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",68],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",75],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,92],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",31],"./enterpriseApp/index.vue":["da9f",48],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,22],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,26],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,64],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,19],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,27],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,71],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,91],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,53],"./enterpriseApp/myCustomer/index.vue":["/rje",0,94],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,44],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,84],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,25],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,80],"./enterpriseApp/mycustomer.vue":["cuIN",0,45],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,62],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,43],"./enterpriseApp/quota/index.vue":["FB5x",0,82],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,73],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,79],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,72],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,59],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,42],"./enterpriseApp/signApp/index.vue":["Gk4o",0,67],"./enterpriseApp/signApp/signList.vue":["kCy7",0,60],"./enterpriseApp/trafficTask/index.vue":["e88N",0,65],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,46],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,32],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,70],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,90],"./errorPage/403.vue":["6XGN",33],"./errorPage/404.vue":["AejC",36],"./errorPage/500.vue":["FskK",28],"./errorPage/gic-error.vue":["Q3j/",30],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,34],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",87],"./reviewCenter/reviewed.vue":["CLYF",0,20],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,52],"./setting/addAdminRole.vue":["fZsz",0,74],"./setting/companyAddress.vue":["SKyE",0,50],"./setting/companyCertify.vue":["3zYh",0,14],"./setting/contactPermission.vue":["6zFj",0,69],"./setting/index.vue":["VlR1",41],"./setting/replaceAdmin.vue":["ys9I",0,85],"./setting/setChildAdmin.vue":["VqB7",0,88],"./setting/staffDetails.vue":["Zyzf",0,29],"./setting/storePermission.vue":["Xwfy",0,24],"./sign/index.vue":["RQuk",0,89]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([97],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),r=n.n(a),o=n("fZjL"),p=n.n(o),i=(n("j1ja"),n("hKoQ")),s=n.n(i),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var m=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,u=n("lRwf"),d=n.n(u),l=n("pRNm"),h=n.n(l),g=n("5tgt"),v=n.n(g);d.a.use(h.a);var A=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,y=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客的",redirect:"/memeberBaseSet",component:v()("enterpriseApp/myCustomer","index"),children:[{path:"/memeberBaseSet",name:"会员基础设置",component:v()("enterpriseApp/myCustomer","memeberBaseSet")},{path:"/onlineChatSet",name:"在线沟通设置",component:v()("enterpriseApp/myCustomer","onlineChatSet")},{path:"/chatRecord",name:"聊天记录",component:v()("enterpriseApp/myCustomer","chatRecord")},{path:"/sendRecord",name:"发送记录",component:v()("enterpriseApp/myCustomer","sendRecord")},{path:"/newCard",name:"新建卡券",component:v()("enterpriseApp/myCustomer","newCard")},{path:"/cardSendRecord",name:"卡券发送记录",component:v()("enterpriseApp/myCustomer","cardSendRecord")},{path:"/cardGetRecord",name:"卡券领取卡券",component:v()("enterpriseApp/myCustomer","cardGetRecord")}]},{path:"/marketing",name:"营销素材",redirect:"/imageText",component:v()("enterpriseApp/marketingMaterial","index"),children:[{path:"/imageText",name:"图文素材",component:v()("enterpriseApp/marketingMaterial","imageText")},{path:"/newImageText",name:"选择图文",component:v()("enterpriseApp/marketingMaterial","newImageText")},{path:"/enjoyMaterial",name:"纷享素材",component:v()("enterpriseApp/marketingMaterial","enjoyMaterial")},{path:"/newEnjoy",name:"新建素材",component:v()("enterpriseApp/marketingMaterial","newEnjoy")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]},{path:"/clockin",name:"考勤打卡",redirect:"/workTimeManage",component:v()("enterpriseApp/dailyAttendance","index"),children:[{path:"/workTimeManage",name:"排班管理",component:v()("enterpriseApp/dailyAttendance","workTimeManage")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/contactPermission",name:"通讯录控制",component:v()("setting","contactPermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/gic-error",name:"gic跳转失败页",component:v()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:A},{path:"/404",name:"error404",component:A},{path:"/500",name:"error500",component:A},{path:"*",redirect:"/404",hidden:!0}],k=new h.a({routes:y,scrollBehavior:function(){return{y:0}}}),D=n("zL8q"),x=n.n(D),w=n("Rf8U"),R=n.n(w),C=n("mtWM"),S=n.n(C),T=n("bOdI"),M=n.n(T),b=n("SJI6"),E=n.n(b);d.a.use(E.a);var I=new E.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(f={},M()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),M()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),M()(f,"title",function(e,t){e.title=t}),M()(f,"show",function(e,t){e.show=t}),f)}),j=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+a+" "+o+":"+p+":"+i}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+a}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+a+" "+o+":"+p+":"+i}}}),V=n("TUaa"),q=n.n(V),H=n("tyqE"),P=n.n(H),F=n("pRVe"),L=n.n(F),G=n("SE7k"),N=n.n(G),O=n("XsK6"),Y=n.n(O),z=n("QRL9"),J=n.n(z),K=n("2Pnh"),B=n.n(K),U=n("l9mu"),X=n.n(U),Z={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;B()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,r=n/592.28*841.89,o=a,p=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(o<r)c.addImage(s,"JPEG",0,0,595.28,i);else for(;o>0;)c.addImage(s,"JPEG",0,p,595.28,i),p-=841.89,(o-=r)>0&&c.addPage();c.save(e+".pdf")})}}};s.a.polyfill(),Vue.use(Z),Vue.use(Y.a),Vue.use(J.a),Vue.use(N.a),Vue.use(L.a),Vue.use(P.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(x.a,{size:"large"}),Vue.use(R.a,S.a),Vue.axios.defaults.withCredentials=!0,p()(j).forEach(function(e){Vue.filter(e,j[e])}),k.beforeEach(function(e,t,n){var a=void 0,o=window.location.origin;a=-1!=o.indexOf("localhost")?"http://www.gicdev.com":o,localStorage.getItem("userInfo")||S.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",r()(t.result))}).catch(function(e){D.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:k,store:I,components:{App:m},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,21],"./contacts/addDepartment.vue":["HHRu",0,18],"./contacts/addEmployee.vue":["00Sv",57],"./contacts/addGroup.vue":["mPjx",0,66],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,56],"./contacts/employeeIo.vue":["Rwbg",0,77],"./contacts/employeeRecord.vue":["zGJY",0,9],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,63],"./contacts/recordInfo.vue":["67iC",0,15],"./contacts/recordIo.vue":["738z",0,23],"./contacts/recycle.vue":["HkK0",0,35],"./contacts/shareAddDepartment.vue":["q5Ri",0,17],"./contacts/shareCode.vue":["JsWW",0,40],"./contacts/shareContact.vue":["Gfms",0,3],"./contacts/staffRecordsTemplate.vue":["lFAe",0,86],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,54],"./contacts/storeIo.vue":["RHxA",0,83],"./contacts/unemployee.vue":["TGrv",0,16],"./download/index.vue":["ASGJ",0,8],"./enterpriseApp/appcenter.vue":["yuVF",0,37],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,55],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,49],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,76],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,47],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,81],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,61],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,38],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,95],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,39],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,78],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",51],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",93],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",58],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",68],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",75],"./enterpriseApp/dailyAttendance/index.vue":["vgwM",0,92],"./enterpriseApp/dailyAttendance/workTimeManage.vue":["/n/x",31],"./enterpriseApp/index.vue":["da9f",48],"./enterpriseApp/marketingMaterial/enjoyMaterial.vue":["SB6x",0,22],"./enterpriseApp/marketingMaterial/imageText.vue":["0qiV",0,25],"./enterpriseApp/marketingMaterial/index.vue":["m0O4",0,64],"./enterpriseApp/marketingMaterial/newEnjoy.vue":["7fkC",0,19],"./enterpriseApp/marketingMaterial/newImageText.vue":["NajC",0,27],"./enterpriseApp/myCustomer/cardGetRecord.vue":["YqmZ",0,71],"./enterpriseApp/myCustomer/cardSendRecord.vue":["+Q5U",0,91],"./enterpriseApp/myCustomer/chatRecord.vue":["gjw3",0,53],"./enterpriseApp/myCustomer/index.vue":["/rje",0,94],"./enterpriseApp/myCustomer/memeberBaseSet.vue":["N+Or",0,44],"./enterpriseApp/myCustomer/newCard.vue":["G/J9",0,84],"./enterpriseApp/myCustomer/onlineChatSet.vue":["ahzF",0,26],"./enterpriseApp/myCustomer/sendRecord.vue":["8msp",0,80],"./enterpriseApp/mycustomer.vue":["cuIN",0,45],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,2],"./enterpriseApp/notice/index.vue":["av/3",0,62],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,13],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,43],"./enterpriseApp/quota/index.vue":["FB5x",0,82],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,73],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,79],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,72],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,59],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,42],"./enterpriseApp/signApp/index.vue":["Gk4o",0,67],"./enterpriseApp/signApp/signList.vue":["kCy7",0,60],"./enterpriseApp/trafficTask/index.vue":["e88N",0,65],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,46],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,32],"./enterpriseApp/trafficTask/taskViewDetail.vue":["Akas",0,70],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,90],"./errorPage/403.vue":["6XGN",33],"./errorPage/404.vue":["AejC",36],"./errorPage/500.vue":["FskK",28],"./errorPage/gic-error.vue":["Q3j/",30],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,34],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",87],"./reviewCenter/reviewed.vue":["CLYF",0,20],"./reviewCenter/unreview.vue":["xCEU",0,12],"./setting/addAdmin.vue":["rs/A",0,52],"./setting/addAdminRole.vue":["fZsz",0,74],"./setting/companyAddress.vue":["SKyE",0,50],"./setting/companyCertify.vue":["3zYh",0,14],"./setting/contactPermission.vue":["6zFj",0,69],"./setting/index.vue":["VlR1",41],"./setting/replaceAdmin.vue":["ys9I",0,85],"./setting/setChildAdmin.vue":["VqB7",0,88],"./setting/staffDetails.vue":["Zyzf",0,29],"./setting/storePermission.vue":["Xwfy",0,24],"./sign/index.vue":["RQuk",0,89]};function r(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(a)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,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 d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={99:0};function b(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,b),f.l=!0,f.exports}b.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,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"0c92ca6a177308e38600",1:"fe9dec1f31b04053fd7e",2:"91fc9939f46ed2248be2",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"2784801807ecd1469c27",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"9a6eed75cb81e8530491",14:"906484db655680062129",15:"dc1ca8ebc6cc47b86e2d",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"4b5e4ee96f2607285a8a",19:"23a459a61f756e5959c5",20:"1b54392e7af3a5224220",21:"6a4f413720f3f3c7b17c",22:"46bb0abdfbcd793fb3ee",23:"6586d8dbbc88ff9e7868",24:"ae973093bb8dd3a5b495",25:"590178a61c722c371e91",26:"2ac7a379669e2cb1bfb1",27:"156e3fe5ec1cf6bc1302",28:"4967b74d6bbb9e6cc702",29:"28ccae4d06ea6b595ca9",30:"fd04453caecf77de05a2",31:"320f1a0aa86ca13e4306",32:"5e1383bc5cac66f2999a",33:"61635e97ee430e22a19b",34:"50c83d54c676bdfa7dd4",35:"ac9cb6aa5dc9b6fc2b6f",36:"7674738e3017ed5fcc1c",37:"e223c4067dc6c2fd38ab",38:"eaa34f0904ef970709a7",39:"f4a6c4a1b3881e31a92c",40:"655877fc2e44168b8c1c",41:"89560c4643dfa5754a23",42:"5c09b508b0a58d47c09c",43:"7c7427290d655f79f005",44:"8c27aaae1582618d2ab0",45:"235e93346fe2b95897cb",46:"cc4d205e90682c5b93c0",47:"26a5ded2bad54156ad19",48:"67316f92922aa44a4689",49:"a8a17bd4a62cf533f17e",50:"1892aba5601ac79c8a77",51:"3b64bf9b851ae6715634",52:"600a530c5d3ecac3db2c",53:"f93433cfdb48cb98bb84",54:"e9011eb58ee8fb0165ad",55:"3aff1a161f4b3876181c",56:"bd1d8ffdf7749d7d6e7a",57:"77278d614a1fc68d5681",58:"f8d434e5d4758ae8626c",59:"b3e479223a01f87d8337",60:"c05387a974f25645ee7b",61:"b93d3f6b5ec653e5c4c6",62:"12ee3896f6851cd2cb4c",63:"ab6bd438d590a7aa1e85",64:"8f377047299728a7c625",65:"b9df0942284c0dbfdc27",66:"5433d9783d667005811b",67:"0f6d447133b1acbc532b",68:"7830c5679af6f8b2cb9d",69:"61cee4c7c7a26b880f84",70:"6f28138a852985cde574",71:"4cf18546d28a67295cf8",72:"fe9d1bbd12f4274225e1",73:"88e613d232847cb90be2",74:"ab208d1118bb1a9aa540",75:"b14512ee0a369c73d41f",76:"6143595e7025663becbc",77:"98f5d41a602eec297e70",78:"bd75ce697ff5a3211d53",79:"7ede10f0ba3b16700fc9",80:"4d61def8e6694657ea56",81:"e7670320995684cfa512",82:"4194ad3d53ad440bfb80",83:"44fd11f0fbdad5fdfe01",84:"1823d3e667816d0f2259",85:"779373ab4595fb2a48f9",86:"72fd057b1111acefbe95",87:"f616874d7e40fcf1caa1",88:"5e52821a3ece9ccdeb3f",89:"85a2bbd9554df0f81300",90:"6d7f539733951e52b9e1",91:"44545722d2e68c8f5b69",92:"b5b46350bd10a723b0b2",93:"0cf2ca11a7d3aa4b1ef3",94:"4eb1775c97e0c0097641",95:"d14fcdfe817ed45c25db",98:"4afc4e966f02914d8565"}[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,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],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={99: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:"0c92ca6a177308e38600",1:"fe9dec1f31b04053fd7e",2:"91fc9939f46ed2248be2",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"2784801807ecd1469c27",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"9a6eed75cb81e8530491",14:"906484db655680062129",15:"dc1ca8ebc6cc47b86e2d",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"4b5e4ee96f2607285a8a",19:"0708fe2eb673bedaa970",20:"1b54392e7af3a5224220",21:"6a4f413720f3f3c7b17c",22:"1c7008ee04fe6b121232",23:"6586d8dbbc88ff9e7868",24:"ae973093bb8dd3a5b495",25:"0af7295ba7b1c6c894de",26:"13962bf105070352b110",27:"57f367dff6dc03b81aee",28:"4967b74d6bbb9e6cc702",29:"28ccae4d06ea6b595ca9",30:"fd04453caecf77de05a2",31:"320f1a0aa86ca13e4306",32:"5e1383bc5cac66f2999a",33:"61635e97ee430e22a19b",34:"50c83d54c676bdfa7dd4",35:"ac9cb6aa5dc9b6fc2b6f",36:"7674738e3017ed5fcc1c",37:"e223c4067dc6c2fd38ab",38:"eaa34f0904ef970709a7",39:"f4a6c4a1b3881e31a92c",40:"655877fc2e44168b8c1c",41:"89560c4643dfa5754a23",42:"5c09b508b0a58d47c09c",43:"7c7427290d655f79f005",44:"8c27aaae1582618d2ab0",45:"235e93346fe2b95897cb",46:"cc4d205e90682c5b93c0",47:"26a5ded2bad54156ad19",48:"67316f92922aa44a4689",49:"a8a17bd4a62cf533f17e",50:"1892aba5601ac79c8a77",51:"3b64bf9b851ae6715634",52:"600a530c5d3ecac3db2c",53:"f93433cfdb48cb98bb84",54:"e9011eb58ee8fb0165ad",55:"3aff1a161f4b3876181c",56:"bd1d8ffdf7749d7d6e7a",57:"77278d614a1fc68d5681",58:"f8d434e5d4758ae8626c",59:"b3e479223a01f87d8337",60:"c05387a974f25645ee7b",61:"b93d3f6b5ec653e5c4c6",62:"12ee3896f6851cd2cb4c",63:"ab6bd438d590a7aa1e85",64:"8f377047299728a7c625",65:"b9df0942284c0dbfdc27",66:"5433d9783d667005811b",67:"0f6d447133b1acbc532b",68:"7830c5679af6f8b2cb9d",69:"61cee4c7c7a26b880f84",70:"6f28138a852985cde574",71:"4cf18546d28a67295cf8",72:"fe9d1bbd12f4274225e1",73:"88e613d232847cb90be2",74:"ab208d1118bb1a9aa540",75:"b14512ee0a369c73d41f",76:"6143595e7025663becbc",77:"98f5d41a602eec297e70",78:"bd75ce697ff5a3211d53",79:"7ede10f0ba3b16700fc9",80:"4d61def8e6694657ea56",81:"e7670320995684cfa512",82:"4194ad3d53ad440bfb80",83:"44fd11f0fbdad5fdfe01",84:"1823d3e667816d0f2259",85:"779373ab4595fb2a48f9",86:"72fd057b1111acefbe95",87:"f616874d7e40fcf1caa1",88:"5e52821a3ece9ccdeb3f",89:"85a2bbd9554df0f81300",90:"6d7f539733951e52b9e1",91:"44545722d2e68c8f5b69",92:"b5b46350bd10a723b0b2",93:"0cf2ca11a7d3aa4b1ef3",94:"4eb1775c97e0c0097641",95:"d14fcdfe817ed45c25db",98:"4afc4e966f02914d8565"}[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
......@@ -4,12 +4,13 @@
* @Author: 无尘
* @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘
* @LastEditTime: 2019-12-10 10:31:42
* @LastEditTime: 2019-12-10 11:45:40
-->
<!--
多个上传组件
<mult-upload-image
:imageList="imageList">
:imageList="imageList"
@deleteImage="deleteImage">
</mult-upload-image>
-->
<template>
......@@ -36,7 +37,7 @@
</div>
<!-- 图片上传部分 -->
<div :class="['img-upload', imageList.length >= 6 ? 'm-t-8' : '']" v-if="imageList && imageList.length < maxImageLength">
<el-upload multiple class="loader" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp" :action="uploadUrl()" list-type="picture-card" :on-change="uploadOnChange" :before-upload="beforeAvatarUpload" :on-success="uploadOnSuccess" :on-error="uploadOnError" :on-progress="uploadOnProgress">
<el-upload multiple class="loader" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp" :action="uploadUrl()" list-type="picture-card" :limit="9" :on-exceed="handleExceed" :on-change="uploadOnChange" :before-upload="beforeAvatarUpload" :on-success="uploadOnSuccess" :on-error="uploadOnError" :on-progress="uploadOnProgress" :file-list="fileDatas">
<i class="el-icon-plus gic-upload-btn"></i>
</el-upload>
</div>
......@@ -103,6 +104,7 @@ export default {
data() {
return {
dragImageList: this.imageList, // 传递的图片数据
fileDatas: [],
initialImg: 0, // 初始索引
progress: 0, // 上传进度
pass: null, // 是否上传成功
......@@ -144,16 +146,16 @@ export default {
beforeAvatarUpload(file) {
const that = this;
// const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg' || file.type === 'image/jpg';
const isLt2M = file.size / 1024 / 1024 < 5;
const isLt5M = file.size / 1024 / 1024 < 5;
// if (!isJPG) {
// that.$message.error('上传图片只能是 JPG/JPEG 格式!');
// }
if (!isLt2M) {
if (!isLt5M) {
that.$message.error('上传图片大小不能超过 5MB!');
}
return (
isLt2M &&
isLt5M &&
new Promise(function(resolve, reject) {
let reader = new FileReader();
reader.onload = function(event) {
......@@ -190,7 +192,7 @@ export default {
that.pass = true;
/* eslint-disable */
console.log(res, file);
if (res.errorCode == 0) {
if (res.errorCode == 1) {
that.$message.success('上传成功');
that.$emit('uploadOnSuccess', { res: res, file: file });
} else {
......@@ -199,17 +201,24 @@ export default {
},
// 开始上传
uploadOnProgress(e, file) {
const that = this;
if (e && e.percent) {
this.progress = Math.floor(e.percent);
that.progress = Math.floor(e.percent);
}
},
uploadOnChange(file) {
uploadOnChange(file, fileList) {
const that = this;
if (file.status === 'ready') {
this.pass = null;
this.progress = 0;
that.pass = null;
that.progress = 0;
} else if (file.status === 'fail') {
this.$message.error('图片上传失败,请重试!');
that.$message.error('图片上传失败,请重试!');
}
/* eslint-disable */
console.log(fileList, that.fileDatas)
},
handleExceed(files, fileList) {
this.$message.warning(`当前限制选择 9 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
},
uploadOnError() {
this.$message.error('图片上传失败,请重试!');
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘
* @LastEditTime: 2019-12-09 15:20:21
* @LastEditTime: 2019-12-10 10:53:09
-->
<!--
......@@ -50,7 +50,7 @@ components: {
<div>{{ scope.row.createTime | timeStampToHms }}</div>
</template>
</el-table-column>
<el-table-column label="操作">
<el-table-column label="操作" width="219">
<template slot-scope="scope">
<el-button @click="toSetTop(scope.row.materialId, scope.row.topFlag)" type="text">{{ scope.row.topFlag == 1 ? '取消置顶' : '置顶' }}</el-button>
<el-button type="text" size="small" @click="showDetail(scope.$index, scope.row)">查看</el-button>
......@@ -206,7 +206,7 @@ export default {
toSetTop(materialId, topFlag) {
const that = this;
that
.$confirm(topFlag == 0 ? '置顶次数超过限制次数,可关闭其他置顶素材再开启置顶置顶功能' : '确定「取消置顶」该条素材吗?', '提示', {
.$confirm(topFlag == 0 ? '置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗' : '确定「取消置顶」该条素材吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......@@ -231,7 +231,7 @@ export default {
showMsg.showmsg('取消置顶成功', 'success');
}
that.currentPage = 1;
that.getNoticeList();
that.getTableList();
}
})
.catch(function(error) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘
* @LastEditTime: 2019-12-10 09:36:00
* @LastEditTime: 2019-12-10 10:53:02
-->
<!--
......@@ -57,7 +57,7 @@ components: {
<div>{{ scope.row.createTime | timeStampToHms }}</div>
</template>
</el-table-column>
<el-table-column label="操作">
<el-table-column label="操作" width="219">
<template slot-scope="scope">
<el-button @click="toSetTop(scope.row.materialId, scope.row.topFlag)" type="text">{{ scope.row.topFlag == 1 ? '取消置顶' : '置顶' }}</el-button>
<el-button type="text" size="small" @click="showDetail(scope.$index, scope.row)">查看</el-button>
......@@ -213,7 +213,7 @@ export default {
toSetTop(materialId, topFlag) {
const that = this;
that
.$confirm(topFlag == 0 ? '置顶次数超过限制次数,可关闭其他置顶素材再开启置顶置顶功能' : '确定「取消置顶」该条素材吗?', '提示', {
.$confirm(topFlag == 0 ? '置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗' : '确定「取消置顶」该条素材吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......@@ -238,7 +238,7 @@ export default {
showMsg.showmsg('取消置顶成功', 'success');
}
that.currentPage = 1;
that.getNoticeList();
that.getTableList();
}
})
.catch(function(error) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘
* @LastEditTime: 2019-12-10 10:28:46
* @LastEditTime: 2019-12-10 10:54:15
-->
<!--
......@@ -192,8 +192,8 @@ export default {
topFlag: false // 置顶
},
rules: {
materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'change' }],
materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'change' }],
materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'blur' }],
materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'blur' }],
rangeList: [{ validator: validRange, trigger: 'change' }]
},
// 预览
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘
* @LastEditTime: 2019-12-10 10:26:49
* @LastEditTime: 2019-12-10 10:54:06
-->
<!--
......@@ -216,8 +216,8 @@ export default {
},
rules: {
imageTextWechatId: [{ required: true, message: '请选择图文', trigger: 'change' }],
materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'change' }],
materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'change' }],
materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'blur' }],
materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'blur' }],
rangeList: [{ validator: validRange, trigger: 'change' }]
},
// 预览
......
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